Skip to content

Commit 8d11143

Browse files
committed
refactor: text and alert to vanilla extract (#5464)
* refactor: text and alert to vanilla extract * fix: rebase * fix: tests * fix: rebase
1 parent 52f4748 commit 8d11143

File tree

102 files changed

+32627
-49147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+32627
-49147
lines changed

.changeset/spicy-waves-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ultraviolet/ui": major
3+
---
4+
5+
Refactor components `Text` and `Alert` to use vanilla-extract instead of Emotion

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

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,30 +1669,12 @@ exports[`CheckboxField > should render correctly with errors 1`] = `
16691669
gap: 0.25rem;
16701670
}
16711671
1672-
.emotion-13 {
1673-
color: #3f4250;
1674-
font-size: 1rem;
1675-
font-family: Inter,sans-serif;
1676-
font-weight: 400;
1677-
letter-spacing: 0;
1678-
line-height: 1.5rem;
1679-
text-transform: none;
1680-
-webkit-text-decoration: none;
1681-
text-decoration: none;
1672+
.emotion-12 {
16821673
width: 100%;
16831674
cursor: pointer;
16841675
}
16851676
1686-
.emotion-16 {
1687-
color: #b3144d;
1688-
font-size: 0.75rem;
1689-
font-family: Inter,sans-serif;
1690-
font-weight: 400;
1691-
letter-spacing: 0;
1692-
line-height: 1rem;
1693-
text-transform: none;
1694-
-webkit-text-decoration: none;
1695-
text-decoration: none;
1677+
.emotion-14 {
16961678
padding-top: 0.25rem;
16971679
}
16981680
@@ -1752,14 +1734,14 @@ exports[`CheckboxField > should render correctly with errors 1`] = `
17521734
class="emotion-10 emotion-9"
17531735
>
17541736
<label
1755-
class="emotion-12 emotion-13 emotion-14"
1737+
class="emotion-12 emotion-13 uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owi uv_m4c9owm uv_m4c9ow1b uv_m4c9ow20 uv_m4c9ow3c"
17561738
for="«rd»"
17571739
>
17581740
Checkbox field error
17591741
</label>
17601742
</div>
17611743
<span
1762-
class="emotion-15 emotion-16 emotion-14"
1744+
class="emotion-14 emotion-15 uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owd uv_m4c9owi uv_m4c9ows uv_m4c9ow1b uv_m4c9ow1k uv_m4c9ow3c"
17631745
>
17641746
This field is required
17651747
</span>
@@ -2049,16 +2031,7 @@ exports[`CheckboxField > should trigger events correctly 1`] = `
20492031
gap: 0.25rem;
20502032
}
20512033
2052-
.emotion-13 {
2053-
color: #3f4250;
2054-
font-size: 1rem;
2055-
font-family: Inter,sans-serif;
2056-
font-weight: 400;
2057-
letter-spacing: 0;
2058-
line-height: 1.5rem;
2059-
text-transform: none;
2060-
-webkit-text-decoration: none;
2061-
text-decoration: none;
2034+
.emotion-12 {
20622035
width: 100%;
20632036
cursor: pointer;
20642037
}
@@ -2118,7 +2091,7 @@ exports[`CheckboxField > should trigger events correctly 1`] = `
21182091
class="emotion-10 emotion-9"
21192092
>
21202093
<label
2121-
class="emotion-12 emotion-13 emotion-14"
2094+
class="emotion-12 emotion-13 uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owi uv_m4c9owm uv_m4c9ow1b uv_m4c9ow20 uv_m4c9ow3c"
21222095
for="«ra»"
21232096
>
21242097
Checkbox field events

0 commit comments

Comments
 (0)