Skip to content

Commit f411162

Browse files
committed
bucket sorting
1 parent d123c18 commit f411162

21 files changed

+442
-261
lines changed

integrations/upgrade/index.test.ts

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ test(
337337
If we ever want to remove these styles, we need to add an explicit border
338338
color utility to any element that depends on these defaults.
339339
*/
340-
341340
@layer base {
342341
*,
343342
::after,
@@ -941,6 +940,7 @@ test(
941940
border-color: var(--color-gray-200, currentColor);
942941
}
943942
}
943+
944944
/*
945945
Form elements have a 1px border by default in Tailwind CSS v4, so we've
946946
added these compatibility styles to make sure everything still looks the
@@ -1132,6 +1132,7 @@ test(
11321132
11331133
--- ./src/a.1.utilities.1.css ---
11341134
@import './a.1.utilities.utilities.css';
1135+
11351136
@utility foo-from-a {
11361137
color: red;
11371138
}
@@ -1153,12 +1154,14 @@ test(
11531154
11541155
--- ./src/b.1.css ---
11551156
@import './b.1.components.css';
1157+
11561158
@utility bar-from-b {
11571159
color: red;
11581160
}
11591161
11601162
--- ./src/c.1.css ---
11611163
@import './c.2.css' layer(utilities);
1164+
11621165
.baz-from-c {
11631166
color: green;
11641167
}
@@ -1168,12 +1171,14 @@ test(
11681171
11691172
--- ./src/c.2.css ---
11701173
@import './c.3.css';
1174+
11711175
#baz {
11721176
--keep: me;
11731177
}
11741178
11751179
--- ./src/c.2.utilities.css ---
11761180
@import './c.3.utilities.css';
1181+
11771182
@utility baz-from-import {
11781183
color: yellow;
11791184
}
@@ -1356,6 +1361,8 @@ test(
13561361
/* Inject missing @config */
13571362
@import 'tailwindcss';
13581363
1364+
@config '../tailwind.config.ts';
1365+
13591366
/*
13601367
The default border color has changed to \`currentColor\` in Tailwind CSS v4,
13611368
so we've added these compatibility styles to make sure everything still
@@ -1373,6 +1380,7 @@ test(
13731380
border-color: var(--color-gray-200, currentColor);
13741381
}
13751382
}
1383+
13761384
/*
13771385
Form elements have a 1px border by default in Tailwind CSS v4, so we've
13781386
added these compatibility styles to make sure everything still looks the
@@ -1388,12 +1396,13 @@ test(
13881396
border-width: 0;
13891397
}
13901398
}
1391-
@config '../tailwind.config.ts';
13921399
13931400
--- ./src/root.2.css ---
13941401
/* Already contains @config */
13951402
@import 'tailwindcss';
13961403
1404+
@config "../tailwind.config.ts";
1405+
13971406
/*
13981407
The default border color has changed to \`currentColor\` in Tailwind CSS v4,
13991408
so we've added these compatibility styles to make sure everything still
@@ -1411,6 +1420,7 @@ test(
14111420
border-color: var(--color-gray-200, currentColor);
14121421
}
14131422
}
1423+
14141424
/*
14151425
Form elements have a 1px border by default in Tailwind CSS v4, so we've
14161426
added these compatibility styles to make sure everything still looks the
@@ -1426,12 +1436,23 @@ test(
14261436
border-width: 0;
14271437
}
14281438
}
1429-
@config "../tailwind.config.ts";
14301439
14311440
--- ./src/root.3.css ---
14321441
/* Inject missing @config above first @theme */
14331442
@import 'tailwindcss';
14341443
1444+
@config '../tailwind.config.ts';
1445+
1446+
@variant hocus (&:hover, &:focus);
1447+
1448+
@theme {
1449+
--color-red-500: #f00;
1450+
}
1451+
1452+
@theme {
1453+
--color-blue-500: #00f;
1454+
}
1455+
14351456
/*
14361457
The default border color has changed to \`currentColor\` in Tailwind CSS v4,
14371458
so we've added these compatibility styles to make sure everything still
@@ -1449,6 +1470,7 @@ test(
14491470
border-color: var(--color-gray-200, currentColor);
14501471
}
14511472
}
1473+
14521474
/*
14531475
Form elements have a 1px border by default in Tailwind CSS v4, so we've
14541476
added these compatibility styles to make sure everything still looks the
@@ -1464,22 +1486,12 @@ test(
14641486
border-width: 0;
14651487
}
14661488
}
1467-
@config '../tailwind.config.ts';
1468-
1469-
@variant hocus (&:hover, &:focus);
1470-
1471-
@theme {
1472-
--color-red-500: #f00;
1473-
}
1474-
1475-
@theme {
1476-
--color-blue-500: #00f;
1477-
}
14781489
14791490
--- ./src/root.4.css ---
14801491
/* Inject missing @config due to nested imports with tailwind imports */
14811492
@import './root.4/base.css';
14821493
@import './root.4/utilities.css';
1494+
14831495
@config '../tailwind.config.ts';
14841496
14851497
--- ./src/root.5.css ---
@@ -1530,6 +1542,8 @@ test(
15301542
/* Inject missing @config in this file, due to full import */
15311543
@import 'tailwindcss';
15321544
1545+
@config '../../tailwind.config.ts';
1546+
15331547
/*
15341548
The default border color has changed to \`currentColor\` in Tailwind CSS v4,
15351549
so we've added these compatibility styles to make sure everything still
@@ -1547,6 +1561,7 @@ test(
15471561
border-color: var(--color-gray-200, currentColor);
15481562
}
15491563
}
1564+
15501565
/*
15511566
Form elements have a 1px border by default in Tailwind CSS v4, so we've
15521567
added these compatibility styles to make sure everything still looks the
@@ -1562,7 +1577,6 @@ test(
15621577
border-width: 0;
15631578
}
15641579
}
1565-
@config '../../tailwind.config.ts';
15661580
"
15671581
`)
15681582
},
@@ -1620,6 +1634,7 @@ test(
16201634
border-color: var(--color-gray-200, currentColor);
16211635
}
16221636
}
1637+
16231638
/*
16241639
Form elements have a 1px border by default in Tailwind CSS v4, so we've
16251640
added these compatibility styles to make sure everything still looks the

0 commit comments

Comments
 (0)