@weapp-tailwindcss/merge 2.1.6 → 2.2.0-next.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,982 @@
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
+ "box": [{ box: ["border", "content"] }],
296
+ "display": [
297
+ "block",
298
+ "inline-block",
299
+ "inline",
300
+ "flex",
301
+ "inline-flex",
302
+ "table",
303
+ "inline-table",
304
+ "table-caption",
305
+ "table-cell",
306
+ "table-column",
307
+ "table-column-group",
308
+ "table-footer-group",
309
+ "table-header-group",
310
+ "table-row-group",
311
+ "table-row",
312
+ "flow-root",
313
+ "grid",
314
+ "inline-grid",
315
+ "contents",
316
+ "list-item",
317
+ "hidden"
318
+ ],
319
+ "float": [{ float: [
320
+ "right",
321
+ "left",
322
+ "none",
323
+ "start",
324
+ "end"
325
+ ] }],
326
+ "clear": [{ clear: [
327
+ "left",
328
+ "right",
329
+ "both",
330
+ "none",
331
+ "start",
332
+ "end"
333
+ ] }],
334
+ "isolation": ["isolate", "isolation-auto"],
335
+ "object-fit": [{ object: [
336
+ "contain",
337
+ "cover",
338
+ "fill",
339
+ "none",
340
+ "scale-down"
341
+ ] }],
342
+ "object-position": [{ object: scalePositionWithArbitrary() }],
343
+ "overflow": [{ overflow: scaleOverflow() }],
344
+ "overflow-x": [{ "overflow-x": scaleOverflow() }],
345
+ "overflow-y": [{ "overflow-y": scaleOverflow() }],
346
+ "position": [
347
+ "static",
348
+ "fixed",
349
+ "absolute",
350
+ "relative",
351
+ "sticky"
352
+ ],
353
+ "visibility": [
354
+ "visible",
355
+ "invisible",
356
+ "collapse"
357
+ ],
358
+ "z": [{ z: [
359
+ isInteger,
360
+ "auto",
361
+ isArbitraryVariable,
362
+ isArbitraryValue
363
+ ] }],
364
+ "inset": [{ inset: scaleInset() }],
365
+ "inset-x": [{ "inset-x": scaleInset() }],
366
+ "inset-y": [{ "inset-y": scaleInset() }],
367
+ "start": [{
368
+ "inset-s": scaleInset(),
369
+ "start": scaleInset()
370
+ }],
371
+ "end": [{
372
+ "inset-e": scaleInset(),
373
+ "end": scaleInset()
374
+ }],
375
+ "top": [{ top: scaleInset() }],
376
+ "right": [{ right: scaleInset() }],
377
+ "bottom": [{ bottom: scaleInset() }],
378
+ "left": [{ left: scaleInset() }],
379
+ "basis": [{ basis: [
380
+ isFraction,
381
+ "full",
382
+ "auto",
383
+ themeContainer,
384
+ ...scaleUnambiguousSpacing()
385
+ ] }],
386
+ "flex-direction": [{ flex: [
387
+ "row",
388
+ "row-reverse",
389
+ "col",
390
+ "col-reverse"
391
+ ] }],
392
+ "flex-wrap": [{ flex: [
393
+ "nowrap",
394
+ "wrap",
395
+ "wrap-reverse"
396
+ ] }],
397
+ "flex": [{ flex: [
398
+ isNumber,
399
+ isFraction,
400
+ "auto",
401
+ "initial",
402
+ "none",
403
+ isArbitraryValue
404
+ ] }],
405
+ "grow": [{ grow: [
406
+ "",
407
+ isNumber,
408
+ isArbitraryVariable,
409
+ isArbitraryValue
410
+ ] }],
411
+ "shrink": [{ shrink: [
412
+ "",
413
+ isNumber,
414
+ isArbitraryVariable,
415
+ isArbitraryValue
416
+ ] }],
417
+ "order": [{ order: [
418
+ isInteger,
419
+ "first",
420
+ "last",
421
+ "none",
422
+ isArbitraryVariable,
423
+ isArbitraryValue
424
+ ] }],
425
+ "grid-cols": [{ "grid-cols": scaleGridTemplateColsRows() }],
426
+ "col-start-end": [{ col: scaleGridColRowStartAndEnd() }],
427
+ "col-start": [{ "col-start": scaleGridColRowStartOrEnd() }],
428
+ "col-end": [{ "col-end": scaleGridColRowStartOrEnd() }],
429
+ "grid-rows": [{ "grid-rows": scaleGridTemplateColsRows() }],
430
+ "row-start-end": [{ row: scaleGridColRowStartAndEnd() }],
431
+ "row-start": [{ "row-start": scaleGridColRowStartOrEnd() }],
432
+ "row-end": [{ "row-end": scaleGridColRowStartOrEnd() }],
433
+ "grid-flow": [{ "grid-flow": [
434
+ "row",
435
+ "col",
436
+ "dense",
437
+ "row-dense",
438
+ "col-dense"
439
+ ] }],
440
+ "auto-cols": [{ "auto-cols": scaleGridAutoColsRows() }],
441
+ "auto-rows": [{ "auto-rows": scaleGridAutoColsRows() }],
442
+ "gap": [{ gap: scaleUnambiguousSpacing() }],
443
+ "gap-x": [{ "gap-x": scaleUnambiguousSpacing() }],
444
+ "gap-y": [{ "gap-y": scaleUnambiguousSpacing() }],
445
+ "justify-content": [{ justify: [...scaleAlignPrimaryAxis(), "normal"] }],
446
+ "justify-items": [{ "justify-items": [...scaleAlignSecondaryAxis(), "normal"] }],
447
+ "justify-self": [{ "justify-self": ["auto", ...scaleAlignSecondaryAxis()] }],
448
+ "align-content": [{ content: ["normal", ...scaleAlignPrimaryAxis()] }],
449
+ "align-items": [{ items: [...scaleAlignSecondaryAxis(), { baseline: ["", "last"] }] }],
450
+ "align-self": [{ self: [
451
+ "auto",
452
+ ...scaleAlignSecondaryAxis(),
453
+ { baseline: ["", "last"] }
454
+ ] }],
455
+ "place-content": [{ "place-content": scaleAlignPrimaryAxis() }],
456
+ "place-items": [{ "place-items": [...scaleAlignSecondaryAxis(), "baseline"] }],
457
+ "place-self": [{ "place-self": ["auto", ...scaleAlignSecondaryAxis()] }],
458
+ "p": [{ p: scaleUnambiguousSpacing() }],
459
+ "px": [{ px: scaleUnambiguousSpacing() }],
460
+ "py": [{ py: scaleUnambiguousSpacing() }],
461
+ "ps": [{ ps: scaleUnambiguousSpacing() }],
462
+ "pe": [{ pe: scaleUnambiguousSpacing() }],
463
+ "pt": [{ pt: scaleUnambiguousSpacing() }],
464
+ "pr": [{ pr: scaleUnambiguousSpacing() }],
465
+ "pb": [{ pb: scaleUnambiguousSpacing() }],
466
+ "pl": [{ pl: scaleUnambiguousSpacing() }],
467
+ "m": [{ m: scaleMargin() }],
468
+ "mx": [{ mx: scaleMargin() }],
469
+ "my": [{ my: scaleMargin() }],
470
+ "ms": [{ ms: scaleMargin() }],
471
+ "me": [{ me: scaleMargin() }],
472
+ "mt": [{ mt: scaleMargin() }],
473
+ "mr": [{ mr: scaleMargin() }],
474
+ "mb": [{ mb: scaleMargin() }],
475
+ "ml": [{ ml: scaleMargin() }],
476
+ "space-x": [{ "space-x": scaleUnambiguousSpacing() }],
477
+ "space-x-reverse": ["space-x-reverse"],
478
+ "space-y": [{ "space-y": scaleUnambiguousSpacing() }],
479
+ "space-y-reverse": ["space-y-reverse"],
480
+ "size": [{ size: scaleSizing() }],
481
+ "w": [{ w: [
482
+ themeContainer,
483
+ "screen",
484
+ ...scaleSizing()
485
+ ] }],
486
+ "min-w": [{ "min-w": [
487
+ themeContainer,
488
+ "screen",
489
+ "none",
490
+ ...scaleSizing()
491
+ ] }],
492
+ "max-w": [{ "max-w": [
493
+ themeContainer,
494
+ "screen",
495
+ "none",
496
+ "prose",
497
+ { screen: [themeBreakpoint] },
498
+ ...scaleSizing()
499
+ ] }],
500
+ "h": [{ h: [
501
+ "screen",
502
+ "lh",
503
+ ...scaleSizing()
504
+ ] }],
505
+ "min-h": [{ "min-h": [
506
+ "screen",
507
+ "lh",
508
+ "none",
509
+ ...scaleSizing()
510
+ ] }],
511
+ "max-h": [{ "max-h": [
512
+ "screen",
513
+ "lh",
514
+ ...scaleSizing()
515
+ ] }],
516
+ "font-size": [{ text: [
517
+ "base",
518
+ themeText,
519
+ isArbitraryVariableLength,
520
+ isArbitraryLength
521
+ ] }],
522
+ "font-style": ["italic", "not-italic"],
523
+ "font-weight": [{ font: [
524
+ themeFontWeight,
525
+ isArbitraryVariable,
526
+ isArbitraryValue
527
+ ] }],
528
+ "font-family": [{ font: [
529
+ isArbitraryVariable,
530
+ isArbitraryValue,
531
+ themeFont
532
+ ] }],
533
+ "tracking": [{ tracking: [
534
+ themeTracking,
535
+ isArbitraryVariable,
536
+ isArbitraryValue
537
+ ] }],
538
+ "leading": [{ leading: [themeLeading, ...scaleUnambiguousSpacing()] }],
539
+ "text-alignment": [{ text: [
540
+ "left",
541
+ "center",
542
+ "right",
543
+ "justify",
544
+ "start",
545
+ "end"
546
+ ] }],
547
+ "text-color": [{ text: scaleColor() }],
548
+ "text-decoration": [
549
+ "underline",
550
+ "overline",
551
+ "line-through",
552
+ "no-underline"
553
+ ],
554
+ "text-decoration-color": [{ decoration: scaleColor() }],
555
+ "text-decoration-style": [{ decoration: [...scaleLineStyle(), "wavy"] }],
556
+ "text-decoration-thickness": [{ decoration: [
557
+ isNumber,
558
+ "from-font",
559
+ "auto",
560
+ isArbitraryVariable,
561
+ isArbitraryLength
562
+ ] }],
563
+ "text-transform": [
564
+ "uppercase",
565
+ "lowercase",
566
+ "capitalize",
567
+ "normal-case"
568
+ ],
569
+ "text-overflow": [
570
+ "truncate",
571
+ "text-ellipsis",
572
+ "text-clip"
573
+ ],
574
+ "text-wrap": [{ text: [
575
+ "wrap",
576
+ "nowrap",
577
+ "balance",
578
+ "pretty"
579
+ ] }],
580
+ "indent": [{ indent: scaleUnambiguousSpacing() }],
581
+ "whitespace": [{ whitespace: [
582
+ "normal",
583
+ "nowrap",
584
+ "pre",
585
+ "pre-line",
586
+ "pre-wrap",
587
+ "break-spaces"
588
+ ] }],
589
+ "break": [{ break: [
590
+ "normal",
591
+ "words",
592
+ "all",
593
+ "keep"
594
+ ] }],
595
+ "hyphens": [{ hyphens: [
596
+ "none",
597
+ "manual",
598
+ "auto"
599
+ ] }],
600
+ "content": [{ content: [
601
+ "none",
602
+ isArbitraryVariable,
603
+ isArbitraryValue
604
+ ] }],
605
+ "bg-attachment": [{ bg: [
606
+ "fixed",
607
+ "local",
608
+ "scroll"
609
+ ] }],
610
+ "bg-clip": [{ "bg-clip": [
611
+ "border",
612
+ "padding",
613
+ "content",
614
+ "text"
615
+ ] }],
616
+ "bg-origin": [{ "bg-origin": [
617
+ "border",
618
+ "padding",
619
+ "content"
620
+ ] }],
621
+ "bg-position": [{ bg: scaleBgPosition() }],
622
+ "bg-repeat": [{ bg: scaleBgRepeat() }],
623
+ "bg-size": [{ bg: scaleBgSize() }],
624
+ "bg-image": [{ bg: [
625
+ "none",
626
+ {
627
+ linear: [
628
+ { to: [
629
+ "t",
630
+ "tr",
631
+ "r",
632
+ "br",
633
+ "b",
634
+ "bl",
635
+ "l",
636
+ "tl"
637
+ ] },
638
+ isInteger,
639
+ isArbitraryVariable,
640
+ isArbitraryValue
641
+ ],
642
+ radial: [
643
+ "",
644
+ isArbitraryVariable,
645
+ isArbitraryValue
646
+ ],
647
+ conic: [
648
+ isInteger,
649
+ isArbitraryVariable,
650
+ isArbitraryValue
651
+ ]
652
+ },
653
+ isArbitraryVariable,
654
+ isArbitraryValue
655
+ ] }],
656
+ "bg-color": [{ bg: scaleColor() }],
657
+ "rounded": [{ rounded: scaleRadius() }],
658
+ "rounded-s": [{ "rounded-s": scaleRadius() }],
659
+ "rounded-e": [{ "rounded-e": scaleRadius() }],
660
+ "rounded-t": [{ "rounded-t": scaleRadius() }],
661
+ "rounded-r": [{ "rounded-r": scaleRadius() }],
662
+ "rounded-b": [{ "rounded-b": scaleRadius() }],
663
+ "rounded-l": [{ "rounded-l": scaleRadius() }],
664
+ "rounded-ss": [{ "rounded-ss": scaleRadius() }],
665
+ "rounded-se": [{ "rounded-se": scaleRadius() }],
666
+ "rounded-ee": [{ "rounded-ee": scaleRadius() }],
667
+ "rounded-es": [{ "rounded-es": scaleRadius() }],
668
+ "rounded-tl": [{ "rounded-tl": scaleRadius() }],
669
+ "rounded-tr": [{ "rounded-tr": scaleRadius() }],
670
+ "rounded-br": [{ "rounded-br": scaleRadius() }],
671
+ "rounded-bl": [{ "rounded-bl": scaleRadius() }],
672
+ "border-w": [{ border: scaleBorderWidth() }],
673
+ "border-w-x": [{ "border-x": scaleBorderWidth() }],
674
+ "border-w-y": [{ "border-y": scaleBorderWidth() }],
675
+ "border-w-s": [{ "border-s": scaleBorderWidth() }],
676
+ "border-w-e": [{ "border-e": scaleBorderWidth() }],
677
+ "border-w-t": [{ "border-t": scaleBorderWidth() }],
678
+ "border-w-r": [{ "border-r": scaleBorderWidth() }],
679
+ "border-w-b": [{ "border-b": scaleBorderWidth() }],
680
+ "border-w-l": [{ "border-l": scaleBorderWidth() }],
681
+ "border-style": [{ border: [
682
+ ...scaleLineStyle(),
683
+ "hidden",
684
+ "none"
685
+ ] }],
686
+ "border-color": [{ border: scaleColor() }],
687
+ "border-color-x": [{ "border-x": scaleColor() }],
688
+ "border-color-y": [{ "border-y": scaleColor() }],
689
+ "border-color-s": [{ "border-s": scaleColor() }],
690
+ "border-color-e": [{ "border-e": scaleColor() }],
691
+ "border-color-t": [{ "border-t": scaleColor() }],
692
+ "border-color-r": [{ "border-r": scaleColor() }],
693
+ "border-color-b": [{ "border-b": scaleColor() }],
694
+ "border-color-l": [{ "border-l": scaleColor() }],
695
+ "outline-style": [{ outline: [
696
+ ...scaleLineStyle(),
697
+ "none",
698
+ "hidden"
699
+ ] }],
700
+ "outline-w": [{ outline: [
701
+ "",
702
+ isNumber,
703
+ isArbitraryVariableLength,
704
+ isArbitraryLength
705
+ ] }],
706
+ "outline-color": [{ outline: scaleColor() }],
707
+ "outline-offset": [{ "outline-offset": [
708
+ isNumber,
709
+ isArbitraryVariable,
710
+ isArbitraryValue
711
+ ] }],
712
+ "ring-w": [{ ring: scaleBorderWidth() }],
713
+ "ring-color": [{ ring: scaleColor() }],
714
+ "ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }],
715
+ "ring-offset-color": [{ "ring-offset": scaleColor() }],
716
+ "opacity": [{ opacity: [
717
+ isNumber,
718
+ isArbitraryVariable,
719
+ isArbitraryValue
720
+ ] }],
721
+ "shadow": [{ shadow: [
722
+ "",
723
+ "none",
724
+ themeShadow,
725
+ isArbitraryVariable,
726
+ isArbitraryValue
727
+ ] }],
728
+ "shadow-color": [{ shadow: scaleColor() }],
729
+ "mix-blend": [{ "mix-blend": [
730
+ ...scaleBlendMode(),
731
+ "plus-darker",
732
+ "plus-lighter"
733
+ ] }],
734
+ "bg-blend": [{ "bg-blend": scaleBlendMode() }],
735
+ "translate": [{ translate: scaleTranslate() }],
736
+ "translate-x": [{ "translate-x": scaleTranslate() }],
737
+ "translate-y": [{ "translate-y": scaleTranslate() }],
738
+ "translate-none": ["translate-none"],
739
+ "scale": [{ scale: scaleScale() }],
740
+ "scale-x": [{ "scale-x": scaleScale() }],
741
+ "scale-y": [{ "scale-y": scaleScale() }],
742
+ "rotate": [{ rotate: scaleRotate() }],
743
+ "transition": [{ transition: [
744
+ "",
745
+ "all",
746
+ "colors",
747
+ "opacity",
748
+ "shadow",
749
+ "transform",
750
+ "none",
751
+ isArbitraryVariable,
752
+ isArbitraryValue
753
+ ] }],
754
+ "duration": [{ duration: [
755
+ isNumber,
756
+ "initial",
757
+ isArbitraryVariable,
758
+ isArbitraryValue
759
+ ] }],
760
+ "ease": [{ ease: [
761
+ "linear",
762
+ "initial",
763
+ themeEase,
764
+ isArbitraryVariable,
765
+ isArbitraryValue
766
+ ] }],
767
+ "delay": [{ delay: [
768
+ isNumber,
769
+ isArbitraryVariable,
770
+ isArbitraryValue
771
+ ] }],
772
+ "animate": [{ animate: [
773
+ "none",
774
+ themeAnimate,
775
+ isArbitraryVariable,
776
+ isArbitraryValue
777
+ ] }],
778
+ "cursor": [{ cursor: [
779
+ "auto",
780
+ "default",
781
+ "pointer",
782
+ "wait",
783
+ "text",
784
+ "move",
785
+ "help",
786
+ "not-allowed",
787
+ "none",
788
+ "context-menu",
789
+ "progress",
790
+ "cell",
791
+ "crosshair",
792
+ "vertical-text",
793
+ "alias",
794
+ "copy",
795
+ "no-drop",
796
+ "grab",
797
+ "grabbing",
798
+ "all-scroll",
799
+ "col-resize",
800
+ "row-resize",
801
+ "n-resize",
802
+ "e-resize",
803
+ "s-resize",
804
+ "w-resize",
805
+ "ne-resize",
806
+ "nw-resize",
807
+ "se-resize",
808
+ "sw-resize",
809
+ "ew-resize",
810
+ "ns-resize",
811
+ "nesw-resize",
812
+ "nwse-resize",
813
+ "zoom-in",
814
+ "zoom-out",
815
+ isArbitraryVariable,
816
+ isArbitraryValue
817
+ ] }],
818
+ "pointer-events": [{ "pointer-events": ["auto", "none"] }],
819
+ "resize": [{ resize: [
820
+ "none",
821
+ "",
822
+ "y",
823
+ "x"
824
+ ] }],
825
+ "select": [{ select: [
826
+ "none",
827
+ "text",
828
+ "all",
829
+ "auto"
830
+ ] }]
831
+ },
832
+ conflictingClassGroups: {
833
+ "overflow": ["overflow-x", "overflow-y"],
834
+ "inset": [
835
+ "inset-x",
836
+ "inset-y",
837
+ "start",
838
+ "end",
839
+ "top",
840
+ "right",
841
+ "bottom",
842
+ "left"
843
+ ],
844
+ "inset-x": ["right", "left"],
845
+ "inset-y": ["top", "bottom"],
846
+ "flex": [
847
+ "basis",
848
+ "grow",
849
+ "shrink"
850
+ ],
851
+ "gap": ["gap-x", "gap-y"],
852
+ "p": [
853
+ "px",
854
+ "py",
855
+ "ps",
856
+ "pe",
857
+ "pt",
858
+ "pr",
859
+ "pb",
860
+ "pl"
861
+ ],
862
+ "px": ["pr", "pl"],
863
+ "py": ["pt", "pb"],
864
+ "m": [
865
+ "mx",
866
+ "my",
867
+ "ms",
868
+ "me",
869
+ "mt",
870
+ "mr",
871
+ "mb",
872
+ "ml"
873
+ ],
874
+ "mx": ["mr", "ml"],
875
+ "my": ["mt", "mb"],
876
+ "size": ["w", "h"],
877
+ "font-size": ["leading"],
878
+ "rounded": [
879
+ "rounded-s",
880
+ "rounded-e",
881
+ "rounded-t",
882
+ "rounded-r",
883
+ "rounded-b",
884
+ "rounded-l",
885
+ "rounded-ss",
886
+ "rounded-se",
887
+ "rounded-ee",
888
+ "rounded-es",
889
+ "rounded-tl",
890
+ "rounded-tr",
891
+ "rounded-br",
892
+ "rounded-bl"
893
+ ],
894
+ "rounded-s": ["rounded-ss", "rounded-es"],
895
+ "rounded-e": ["rounded-se", "rounded-ee"],
896
+ "rounded-t": ["rounded-tl", "rounded-tr"],
897
+ "rounded-r": ["rounded-tr", "rounded-br"],
898
+ "rounded-b": ["rounded-br", "rounded-bl"],
899
+ "rounded-l": ["rounded-tl", "rounded-bl"],
900
+ "border-w": [
901
+ "border-w-x",
902
+ "border-w-y",
903
+ "border-w-s",
904
+ "border-w-e",
905
+ "border-w-t",
906
+ "border-w-r",
907
+ "border-w-b",
908
+ "border-w-l"
909
+ ],
910
+ "border-w-x": ["border-w-r", "border-w-l"],
911
+ "border-w-y": ["border-w-t", "border-w-b"],
912
+ "border-color": [
913
+ "border-color-x",
914
+ "border-color-y",
915
+ "border-color-s",
916
+ "border-color-e",
917
+ "border-color-t",
918
+ "border-color-r",
919
+ "border-color-b",
920
+ "border-color-l"
921
+ ],
922
+ "border-color-x": ["border-color-r", "border-color-l"],
923
+ "border-color-y": ["border-color-t", "border-color-b"],
924
+ "translate": [
925
+ "translate-x",
926
+ "translate-y",
927
+ "translate-none"
928
+ ],
929
+ "translate-none": [
930
+ "translate",
931
+ "translate-x",
932
+ "translate-y",
933
+ "translate-z"
934
+ ]
935
+ },
936
+ conflictingClassGroupModifiers: { "font-size": ["leading"] },
937
+ orderSensitiveModifiers: [
938
+ "*",
939
+ "**",
940
+ "after",
941
+ "backdrop",
942
+ "before",
943
+ "details-content",
944
+ "file",
945
+ "first-letter",
946
+ "first-line",
947
+ "marker",
948
+ "placeholder",
949
+ "selection"
950
+ ]
951
+ };
952
+ }
953
+ //#endregion
954
+ //#region src/slim.ts
955
+ const rpxTransform = (0, _weapp_tailwindcss_runtime.createRpxLengthTransform)();
956
+ /**
957
+ * 基于 Slim_Config 的 `extendTailwindMerge`。
958
+ *
959
+ * 与上游 `extendTailwindMerge` 行为一致,但使用 `getSlimConfig` 替代 `getDefaultConfig` 作为基础配置。
960
+ */
961
+ function _extendTailwindMerge(configExtension, ...createConfig) {
962
+ return typeof configExtension === "function" ? (0, tailwind_merge.createTailwindMerge)(getSlimConfig, configExtension, ...createConfig) : (0, tailwind_merge.createTailwindMerge)(() => (0, tailwind_merge.mergeConfigs)(getSlimConfig(), configExtension), ...createConfig);
963
+ }
964
+ const create = (0, _weapp_tailwindcss_runtime.createRuntimeFactory)({
965
+ createTailwindMerge: tailwind_merge.createTailwindMerge,
966
+ extendTailwindMerge: _extendTailwindMerge,
967
+ twJoin: tailwind_merge.twJoin,
968
+ twMerge: (0, tailwind_merge.createTailwindMerge)(getSlimConfig),
969
+ version: 3,
970
+ ...rpxTransform
971
+ });
972
+ const { version: tailwindMergeVersion, twMerge, twJoin, extendTailwindMerge, createTailwindMerge } = create();
973
+ //#endregion
974
+ exports.create = create;
975
+ exports.createTailwindMerge = createTailwindMerge;
976
+ exports.extendTailwindMerge = extendTailwindMerge;
977
+ exports.getSlimConfig = getSlimConfig;
978
+ exports.mergeConfigs = tailwind_merge.mergeConfigs;
979
+ exports.tailwindMergeVersion = tailwindMergeVersion;
980
+ exports.twJoin = twJoin;
981
+ exports.twMerge = twMerge;
982
+ exports.weappTwIgnore = _weapp_tailwindcss_runtime.weappTwIgnore;