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