Skip to content

Commit be21b81

Browse files
authored
refactor(Stack): vanilla extract (#5492)
* refactor(Stack): vanilla extract * fix: add changeset * fix: issue with css type
1 parent 0c071df commit be21b81

File tree

97 files changed

+43416
-103457
lines changed

Some content is hidden

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

97 files changed

+43416
-103457
lines changed

.changeset/quick-badgers-behave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ultraviolet/ui": minor
3+
---
4+
5+
Refactor `<Stack />` using vanilla extract

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

Lines changed: 16 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,63 +1618,11 @@ exports[`CheckboxField > should render correctly with errors 1`] = `
16181618
}
16191619
16201620
.emotion-8 {
1621-
display: -webkit-box;
1622-
display: -webkit-flex;
1623-
display: -ms-flexbox;
1624-
display: flex;
1625-
-webkit-box-flex-wrap: nowrap;
1626-
-webkit-flex-wrap: nowrap;
1627-
-ms-flex-wrap: nowrap;
1628-
flex-wrap: nowrap;
1629-
-webkit-flex: 1;
1630-
-ms-flex: 1;
1631-
flex: 1;
1632-
-webkit-align-items: normal;
1633-
-webkit-box-align: normal;
1634-
-ms-flex-align: normal;
1635-
align-items: normal;
1636-
-webkit-box-pack: normal;
1637-
-ms-flex-pack: normal;
1638-
-webkit-justify-content: normal;
1639-
justify-content: normal;
1640-
-webkit-flex-direction: column;
1641-
-ms-flex-direction: column;
1642-
flex-direction: column;
1643-
gap: 0.25rem;
1644-
}
1645-
1646-
.emotion-10 {
1647-
display: -webkit-box;
1648-
display: -webkit-flex;
1649-
display: -ms-flexbox;
1650-
display: flex;
1651-
-webkit-box-flex-wrap: nowrap;
1652-
-webkit-flex-wrap: nowrap;
1653-
-ms-flex-wrap: nowrap;
1654-
flex-wrap: nowrap;
1655-
-webkit-flex: 1;
1656-
-ms-flex: 1;
1657-
flex: 1;
1658-
-webkit-align-items: center;
1659-
-webkit-box-align: center;
1660-
-ms-flex-align: center;
1661-
align-items: center;
1662-
-webkit-box-pack: normal;
1663-
-ms-flex-pack: normal;
1664-
-webkit-justify-content: normal;
1665-
justify-content: normal;
1666-
-webkit-flex-direction: row;
1667-
-ms-flex-direction: row;
1668-
flex-direction: row;
1669-
gap: 0.25rem;
1670-
}
1671-
1672-
.emotion-12 {
16731621
width: 100%;
16741622
cursor: pointer;
16751623
}
16761624
1677-
.emotion-14 {
1625+
.emotion-10 {
16781626
padding-top: 0.25rem;
16791627
}
16801628
@@ -1728,20 +1676,24 @@ exports[`CheckboxField > should render correctly with errors 1`] = `
17281676
</g>
17291677
</svg>
17301678
<div
1731-
class="emotion-8 emotion-9"
1679+
class="uv_toi52u0 uv_toi52u31 uv_toi52u2d uv_toi52u7d uv_toi52u1v uv_toi52u5d"
1680+
flex="1"
1681+
style="--uv_4k0ekn0: var(--uv_4k0ekn0); --uv_4k0ekn1: var(--uv_4k0ekn1); --uv_4k0ekn2: var(--uv_4k0ekn2); --uv_4k0ekn3: var(--uv_4k0ekn3);"
17321682
>
17331683
<div
1734-
class="emotion-10 emotion-9"
1684+
class="uv_toi52u0 uv_toi52u3d uv_toi52u2j uv_toi52u7d uv_toi52u1v uv_toi52u5d"
1685+
flex="1"
1686+
style="--uv_4k0ekn0: var(--uv_4k0ekn0); --uv_4k0ekn1: var(--uv_4k0ekn1); --uv_4k0ekn2: var(--uv_4k0ekn2); --uv_4k0ekn3: var(--uv_4k0ekn3);"
17351687
>
17361688
<label
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"
1689+
class="emotion-8 emotion-9 uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owi uv_m4c9owm uv_m4c9ow1b uv_m4c9ow20 uv_m4c9ow3c"
17381690
for="«rd»"
17391691
>
17401692
Checkbox field error
17411693
</label>
17421694
</div>
17431695
<span
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"
1696+
class="emotion-10 emotion-11 uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owd uv_m4c9owi uv_m4c9ows uv_m4c9ow1b uv_m4c9ow1k uv_m4c9ow3c"
17451697
>
17461698
This field is required
17471699
</span>
@@ -1980,58 +1932,6 @@ exports[`CheckboxField > should trigger events correctly 1`] = `
19801932
}
19811933
19821934
.emotion-8 {
1983-
display: -webkit-box;
1984-
display: -webkit-flex;
1985-
display: -ms-flexbox;
1986-
display: flex;
1987-
-webkit-box-flex-wrap: nowrap;
1988-
-webkit-flex-wrap: nowrap;
1989-
-ms-flex-wrap: nowrap;
1990-
flex-wrap: nowrap;
1991-
-webkit-flex: 1;
1992-
-ms-flex: 1;
1993-
flex: 1;
1994-
-webkit-align-items: normal;
1995-
-webkit-box-align: normal;
1996-
-ms-flex-align: normal;
1997-
align-items: normal;
1998-
-webkit-box-pack: normal;
1999-
-ms-flex-pack: normal;
2000-
-webkit-justify-content: normal;
2001-
justify-content: normal;
2002-
-webkit-flex-direction: column;
2003-
-ms-flex-direction: column;
2004-
flex-direction: column;
2005-
gap: 0.25rem;
2006-
}
2007-
2008-
.emotion-10 {
2009-
display: -webkit-box;
2010-
display: -webkit-flex;
2011-
display: -ms-flexbox;
2012-
display: flex;
2013-
-webkit-box-flex-wrap: nowrap;
2014-
-webkit-flex-wrap: nowrap;
2015-
-ms-flex-wrap: nowrap;
2016-
flex-wrap: nowrap;
2017-
-webkit-flex: 1;
2018-
-ms-flex: 1;
2019-
flex: 1;
2020-
-webkit-align-items: center;
2021-
-webkit-box-align: center;
2022-
-ms-flex-align: center;
2023-
align-items: center;
2024-
-webkit-box-pack: normal;
2025-
-ms-flex-pack: normal;
2026-
-webkit-justify-content: normal;
2027-
justify-content: normal;
2028-
-webkit-flex-direction: row;
2029-
-ms-flex-direction: row;
2030-
flex-direction: row;
2031-
gap: 0.25rem;
2032-
}
2033-
2034-
.emotion-12 {
20351935
width: 100%;
20361936
cursor: pointer;
20371937
}
@@ -2085,13 +1985,17 @@ exports[`CheckboxField > should trigger events correctly 1`] = `
20851985
</g>
20861986
</svg>
20871987
<div
2088-
class="emotion-8 emotion-9"
1988+
class="uv_toi52u0 uv_toi52u31 uv_toi52u2d uv_toi52u7d uv_toi52u1v uv_toi52u5d"
1989+
flex="1"
1990+
style="--uv_4k0ekn0: var(--uv_4k0ekn0); --uv_4k0ekn1: var(--uv_4k0ekn1); --uv_4k0ekn2: var(--uv_4k0ekn2); --uv_4k0ekn3: var(--uv_4k0ekn3);"
20891991
>
20901992
<div
2091-
class="emotion-10 emotion-9"
1993+
class="uv_toi52u0 uv_toi52u3d uv_toi52u2j uv_toi52u7d uv_toi52u1v uv_toi52u5d"
1994+
flex="1"
1995+
style="--uv_4k0ekn0: var(--uv_4k0ekn0); --uv_4k0ekn1: var(--uv_4k0ekn1); --uv_4k0ekn2: var(--uv_4k0ekn2); --uv_4k0ekn3: var(--uv_4k0ekn3);"
20921996
>
20931997
<label
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"
1998+
class="emotion-8 emotion-9 uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owi uv_m4c9owm uv_m4c9ow1b uv_m4c9ow20 uv_m4c9ow3c"
20951999
for="«ra»"
20962000
>
20972001
Checkbox field events

0 commit comments

Comments
 (0)