Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tender-flowers-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ultraviolet/ui": minor
---

Refactor `<VerificationCode /> to use vanilla extract`
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:
pnpm run build

build_examples:
strategy:
matrix:
node: ["22"]
runs-on: ubuntu-24.04
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
Expand All @@ -42,7 +39,7 @@ jobs:
- uses: pnpm/action-setup@v4.1.0
- uses: actions/setup-node@v4.4.0
with:
node-version: ${{ matrix.node }}
node-version: 22.19.0
- name: build
run: |
pnpm install --frozen-lockfile
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ on:
types: ["opened", "edited", "reopened", "synchronize"]
jobs:
size:
strategy:
matrix:
node: ["22"]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v4.1.0
- name: Use Node.js
uses: actions/setup-node@v4.4.0
with:
node-version: ${{ matrix.node }}
node-version: 22.19.0
- run: |
pnpm install
pnpm run size
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,99 +2,15 @@

exports[`verificationCodeField > should render correctly 1`] = `
<DocumentFragment>
.emotion-0 {
border: none;
padding: 0;
margin: 0;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
gap: 0.25rem;
}

.emotion-2 {
background: #ffffff;
color: #3f4250;
font-size: 1rem;
font-weight: 400;
text-align: center;
border-radius: 0.25rem;
margin-right: 0.5rem;
width: 2.5rem;
height: 3rem;
outline-style: none;
-webkit-transition: border-color 0.2s ease,box-shadow 0.2s ease;
transition: border-color 0.2s ease,box-shadow 0.2s ease;
border: solid 1px #d9dadd;
}

.emotion-2[aria-invalid='true'] {
border-color: #b3144d;
}

.emotion-2[data-success='true'] {
border-color: #22674e;
}

.emotion-2:hover,
.emotion-2:focus {
border-color: #792dd4;
}

.emotion-2:hover[aria-invalid='true'],
.emotion-2:focus[aria-invalid='true'] {
border-color: #92103f;
}

.emotion-2:hover[data-success='true'],
.emotion-2:focus[data-success='true'] {
border-color: #1b533f;
}

.emotion-2:focus {
box-shadow: 0px 0px 0px 3px #8c40ef40;
}

.emotion-2:last-child {
margin-right: 0;
}

.emotion-2::-webkit-input-placeholder {
color: #727683;
}

.emotion-2::-moz-placeholder {
color: #727683;
}

.emotion-2:-ms-input-placeholder {
color: #727683;
}

.emotion-2::placeholder {
color: #727683;
}

.emotion-2:disabled {
cursor: not-allowed;
background: #f3f3f4;
color: #b5b7bd;
border: solid 1px #e9eaeb;
}

<div
<div
data-testid="testing"
>
<form
novalidate=""
style="display: contents;"
>
<fieldset
class="emotion-0 emotion-1"
class="uv_1k9synd5"
>
<div
class="uv_toi52u0 uv_toi52u3j uv_toi52u2j uv_toi52u7d uv_toi52u1v uv_toi52u5d"
Expand All @@ -117,7 +33,7 @@ exports[`verificationCodeField > should render correctly 1`] = `
aria-invalid="false"
aria-label="Verification code 0"
autocomplete="off"
class="emotion-2 emotion-3"
class="uv_1k9synd2 uv_1k9synd4"
data-success="false"
data-testid="0"
id="verification-code-input-0"
Expand All @@ -131,7 +47,7 @@ exports[`verificationCodeField > should render correctly 1`] = `
aria-invalid="false"
aria-label="Verification code 1"
autocomplete="off"
class="emotion-2 emotion-3"
class="uv_1k9synd2 uv_1k9synd4"
data-success="false"
data-testid="1"
id="verification-code-input-1"
Expand All @@ -145,7 +61,7 @@ exports[`verificationCodeField > should render correctly 1`] = `
aria-invalid="false"
aria-label="Verification code 2"
autocomplete="off"
class="emotion-2 emotion-3"
class="uv_1k9synd2 uv_1k9synd4"
data-success="false"
data-testid="2"
id="verification-code-input-2"
Expand All @@ -159,7 +75,7 @@ exports[`verificationCodeField > should render correctly 1`] = `
aria-invalid="false"
aria-label="Verification code 3"
autocomplete="off"
class="emotion-2 emotion-3"
class="uv_1k9synd2 uv_1k9synd4"
data-success="false"
data-testid="3"
id="verification-code-input-3"
Expand Down
Loading
Loading