Skip to content

Commit 9a37b84

Browse files
matthprostphilibea
authored andcommitted
refactor(row): vanilla extract (#5503)
* refactor(Row): use vanilla extract * ci: add more tests * fix: feedback alex * fix: feedback alex
1 parent 192e5c5 commit 9a37b84

File tree

33 files changed

+54324
-16047
lines changed

33 files changed

+54324
-16047
lines changed

packages/form/src/components/DateInputField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 228 additions & 0 deletions
Large diffs are not rendered by default.

packages/form/src/components/NumberInputField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 143 additions & 4 deletions
Large diffs are not rendered by default.

packages/form/src/components/SelectableCardGroupField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 851 additions & 97 deletions
Large diffs are not rendered by default.

packages/form/src/components/SelectableCardOptionGroupField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 390 additions & 45 deletions
Large diffs are not rendered by default.

packages/form/src/components/SliderField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 138 additions & 2 deletions
Large diffs are not rendered by default.

packages/form/src/components/ToggleField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 64 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,7 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
10611061
<<<<<<< HEAD
10621062
<<<<<<< HEAD
10631063
<<<<<<< HEAD
1064+
<<<<<<< HEAD
10641065
.emotion-0:active .emotion-3[data-disabled='false']:after {
10651066
=======
10661067
.emotion-0:active .emotion-9[data-disabled='false']:after {
@@ -1071,6 +1072,9 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
10711072
=======
10721073
.emotion-0:active .emotion-5[data-disabled='false']:after {
10731074
>>>>>>> be21b81f1 (refactor(Stack): vanilla extract (#5492))
1075+
=======
1076+
.emotion-0:active .emotion-3[data-disabled='false']:after {
1077+
>>>>>>> 81cb7b1fc (refactor(row): vanilla extract (#5503))
10741078
width: calc(1rem * 1.3775);
10751079
}
10761080
@@ -1082,6 +1086,7 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
10821086
.emotion-2 {
10831087
<<<<<<< HEAD
10841088
<<<<<<< HEAD
1089+
<<<<<<< HEAD
10851090
=======
10861091
display: -webkit-box;
10871092
display: -webkit-flex;
@@ -1142,6 +1147,8 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
11421147
=======
11431148
.emotion-4 {
11441149
>>>>>>> be21b81f1 (refactor(Stack): vanilla extract (#5492))
1150+
=======
1151+
>>>>>>> 81cb7b1fc (refactor(row): vanilla extract (#5503))
11451152
box-sizing: content-box;
11461153
outline: none;
11471154
overflow: hidden;
@@ -1166,6 +1173,7 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
11661173
<<<<<<< HEAD
11671174
<<<<<<< HEAD
11681175
<<<<<<< HEAD
1176+
<<<<<<< HEAD
11691177
.emotion-2:hover {
11701178
background-color: #d9dadd;
11711179
}
@@ -1192,6 +1200,13 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
11921200
11931201
.emotion-4:after {
11941202
>>>>>>> be21b81f1 (refactor(Stack): vanilla extract (#5492))
1203+
=======
1204+
.emotion-2:hover {
1205+
background-color: #d9dadd;
1206+
}
1207+
1208+
.emotion-2:after {
1209+
>>>>>>> 81cb7b1fc (refactor(row): vanilla extract (#5503))
11951210
content: "";
11961211
position: absolute;
11971212
top: calc(1.5rem / 2 - 1rem / 2);
@@ -1207,6 +1222,7 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
12071222
<<<<<<< HEAD
12081223
<<<<<<< HEAD
12091224
<<<<<<< HEAD
1225+
<<<<<<< HEAD
12101226
.emotion-2:focus-within,
12111227
.emotion-2:focus {
12121228
box-shadow: 0px 0px 0px 3px #151a2d5c;
@@ -1228,13 +1244,18 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
12281244
.emotion-4:focus-within,
12291245
.emotion-4:focus {
12301246
>>>>>>> be21b81f1 (refactor(Stack): vanilla extract (#5492))
1247+
=======
1248+
.emotion-2:focus-within,
1249+
.emotion-2:focus {
1250+
>>>>>>> 81cb7b1fc (refactor(row): vanilla extract (#5503))
12311251
box-shadow: 0px 0px 0px 3px #151a2d5c;
12321252
}
12331253
1234-
.emotion-4[data-disabled="false"]:active:after {
1254+
.emotion-2[data-disabled="false"]:active:after {
12351255
width: calc(1rem * 1.3775);
12361256
}
12371257
1258+
<<<<<<< HEAD
12381259
<<<<<<< HEAD
12391260
<<<<<<< HEAD
12401261
.emotion-8:has(:checked) {
@@ -1245,13 +1266,17 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
12451266
=======
12461267
.emotion-4:has(:checked) {
12471268
>>>>>>> be21b81f1 (refactor(Stack): vanilla extract (#5492))
1269+
=======
1270+
.emotion-2:has(:checked) {
1271+
>>>>>>> 81cb7b1fc (refactor(row): vanilla extract (#5503))
12481272
color: #222638;
12491273
background-color: #8c40ef;
12501274
}
12511275
12521276
<<<<<<< HEAD
12531277
<<<<<<< HEAD
12541278
<<<<<<< HEAD
1279+
<<<<<<< HEAD
12551280
.emotion-2:has(:checked):hover {
12561281
background-color: #792dd4;
12571282
}
@@ -1278,6 +1303,13 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
12781303
12791304
.emotion-4:has(:checked):after {
12801305
>>>>>>> be21b81f1 (refactor(Stack): vanilla extract (#5492))
1306+
=======
1307+
.emotion-2:has(:checked):hover {
1308+
background-color: #792dd4;
1309+
}
1310+
1311+
.emotion-2:has(:checked):after {
1312+
>>>>>>> 81cb7b1fc (refactor(row): vanilla extract (#5503))
12811313
left: calc(100% - 5px);
12821314
-webkit-transform: translateX(-100%);
12831315
-moz-transform: translateX(-100%);
@@ -1288,6 +1320,7 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
12881320
<<<<<<< HEAD
12891321
<<<<<<< HEAD
12901322
<<<<<<< HEAD
1323+
<<<<<<< HEAD
12911324
.emotion-2:has(:checked):focus-within,
12921325
.emotion-2:has(:checked):focus {
12931326
box-shadow: 0px 0px 0px 3px #8c40ef40;
@@ -1334,38 +1367,43 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
13341367
.emotion-4:has(:checked):focus-within,
13351368
.emotion-4:has(:checked):focus {
13361369
>>>>>>> be21b81f1 (refactor(Stack): vanilla extract (#5492))
1370+
=======
1371+
.emotion-2:has(:checked):focus-within,
1372+
.emotion-2:has(:checked):focus {
1373+
>>>>>>> 81cb7b1fc (refactor(row): vanilla extract (#5503))
13371374
box-shadow: 0px 0px 0px 3px #8c40ef40;
13381375
}
13391376
1340-
.emotion-4[data-disabled="true"] {
1377+
.emotion-2[data-disabled="true"] {
13411378
background: #f3f3f4;
13421379
}
13431380
1344-
.emotion-4[data-disabled="true"]:has(:checked) {
1381+
.emotion-2[data-disabled="true"]:has(:checked) {
13451382
background: #e5dbfd;
13461383
}
13471384
1348-
.emotion-4[data-error="true"] {
1385+
.emotion-2[data-error="true"] {
13491386
background-color: #ffebf2;
13501387
}
13511388
1352-
.emotion-4[data-error="true"]:focus-within,
1353-
.emotion-4[data-error="true"]:focus {
1389+
.emotion-2[data-error="true"]:focus-within,
1390+
.emotion-2[data-error="true"]:focus {
13541391
box-shadow: 0px 0px 0px 3px #f91b6c40;
13551392
}
13561393
1357-
.emotion-4[data-error="true"]:has(:checked) {
1394+
.emotion-2[data-error="true"]:has(:checked) {
13581395
background-color: #e51963;
13591396
}
13601397
1361-
.emotion-4[data-error="true"][data-disabled="true"] {
1398+
.emotion-2[data-error="true"][data-disabled="true"] {
13621399
background-color: #fff3f7;
13631400
}
13641401
1365-
.emotion-4[data-error="true"][data-disabled="true"]:has(:checked) {
1402+
.emotion-2[data-error="true"][data-disabled="true"]:has(:checked) {
13661403
background-color: #ffd3e3;
13671404
}
13681405
1406+
<<<<<<< HEAD
13691407
<<<<<<< HEAD
13701408
<<<<<<< HEAD
13711409
.emotion-10 {
@@ -1376,6 +1414,9 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
13761414
=======
13771415
.emotion-6 {
13781416
>>>>>>> be21b81f1 (refactor(Stack): vanilla extract (#5492))
1417+
=======
1418+
.emotion-4 {
1419+
>>>>>>> 81cb7b1fc (refactor(row): vanilla extract (#5503))
13791420
position: absolute;
13801421
opacity: 0;
13811422
top: 0;
@@ -1388,6 +1429,7 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
13881429
<<<<<<< HEAD
13891430
<<<<<<< HEAD
13901431
<<<<<<< HEAD
1432+
<<<<<<< HEAD
13911433
.emotion-4[disabled] {
13921434
=======
13931435
.emotion-10[disabled] {
@@ -1398,6 +1440,9 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
13981440
=======
13991441
.emotion-6[disabled] {
14001442
>>>>>>> be21b81f1 (refactor(Stack): vanilla extract (#5492))
1443+
=======
1444+
.emotion-4[disabled] {
1445+
>>>>>>> 81cb7b1fc (refactor(row): vanilla extract (#5503))
14011446
cursor: not-allowed;
14021447
}
14031448
@@ -1431,7 +1476,8 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
14311476
>>>>>>> be21b81f1 (refactor(Stack): vanilla extract (#5492))
14321477
>
14331478
<div
1434-
class="emotion-2 emotion-3"
1479+
class="uv_x6hyh50 uv_x6hyh52p uv_x6hyh57"
1480+
style="--uv_3mg8xe0: auto 1fr; --uv_3mg8xe1: auto 1fr; --uv_3mg8xe2: auto 1fr; --uv_3mg8xe3: auto 1fr; --uv_3mg8xe4: auto 1fr; --uv_3mg8xe5: auto 1fr;"
14351481
>
14361482
<span
14371483
<<<<<<< HEAD
@@ -1448,6 +1494,7 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
14481494
<div
14491495
<<<<<<< HEAD
14501496
<<<<<<< HEAD
1497+
<<<<<<< HEAD
14511498
<<<<<<< HEAD
14521499
class="emotion-2 emotion-3"
14531500
=======
@@ -1459,6 +1506,9 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
14591506
=======
14601507
class="emotion-4 emotion-5"
14611508
>>>>>>> be21b81f1 (refactor(Stack): vanilla extract (#5492))
1509+
=======
1510+
class="emotion-2 emotion-3"
1511+
>>>>>>> 81cb7b1fc (refactor(row): vanilla extract (#5503))
14621512
data-disabled="false"
14631513
data-error="false"
14641514
>
@@ -1467,6 +1517,7 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
14671517
checked=""
14681518
<<<<<<< HEAD
14691519
<<<<<<< HEAD
1520+
<<<<<<< HEAD
14701521
<<<<<<< HEAD
14711522
class="emotion-4 emotion-5"
14721523
=======
@@ -1478,6 +1529,9 @@ exports[`toggleField > should render correctly with label and checked 1`] = `
14781529
=======
14791530
class="emotion-6 emotion-7"
14801531
>>>>>>> be21b81f1 (refactor(Stack): vanilla extract (#5492))
1532+
=======
1533+
class="emotion-4 emotion-5"
1534+
>>>>>>> 81cb7b1fc (refactor(row): vanilla extract (#5503))
14811535
id="«r6»"
14821536
name="test"
14831537
type="checkbox"

0 commit comments

Comments
 (0)