Skip to content

Commit ec99ee5

Browse files
authored
fix: update style password check (#5863)
1 parent 43f3811 commit ec99ee5

File tree

3 files changed

+18
-23
lines changed

3 files changed

+18
-23
lines changed

.changeset/early-phones-accept.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ultraviolet/ui": patch
3+
---
4+
5+
`PasswordCheck`: update style

packages/ui/src/components/PasswordCheck/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ exports[`passwordCheck > render with custom values 1`] = `
1212
class="styles__toi52u0 styles_alignItems_center_xxsmall__toi52u3d styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_nowrap_xxsmall__toi52u7d styles_gap_0.5rem_xxsmall__toi52u7 styles_justifyContent_normal_xxsmall__toi52u5d"
1313
>
1414
<svg
15-
class="styles__vbm0wq0 styles_prominence_weak__vbm0wqj styles_disabled_false__vbm0wqf styles_sentiment_neutral__vbm0wq3 styles_size_large__vbm0wq8 styles_undefined_compound_58__vbm0wq26"
16-
viewBox="0 0 20 20"
15+
class="styles__vbm0wq0 styles_prominence_weak__vbm0wqj styles_disabled_false__vbm0wqf styles_sentiment_neutral__vbm0wq3 styles_size_small__vbm0wqa styles_undefined_compound_58__vbm0wq26"
16+
viewBox="0 0 16 16"
1717
>
1818
<path
19-
d="M10 16.67c-3.675 0-6.67-2.995-6.67-6.67S6.325 3.33 10 3.33s6.67 2.995 6.67 6.67-2.995 6.67-6.67 6.67m0-15c-4.61 0-8.33 3.72-8.33 8.33s3.72 8.33 8.33 8.33 8.33-3.72 8.33-8.33S14.61 1.67 10 1.67m2.16 5L10 8.83 7.84 6.67 6.67 7.84 8.83 10l-2.16 2.16 1.17 1.17L10 11.17l2.16 2.16 1.17-1.17L11.17 10l2.16-2.16z"
19+
d="M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94z"
2020
/>
2121
</svg>
2222
<p
23-
class="style__m4c9ow0 style_strikeThrough_false__m4c9ow2 style_italic_false__m4c9ow4 style_underline_false__m4c9ow6 style_oneLine_false__m4c9ow8 style_prominence_default__m4c9owi style_variant_bodySmall__m4c9own style_disabled_false__m4c9ow1b style_undefined_compound_72__m4c9ow3c"
23+
class="style__m4c9ow0 style_strikeThrough_false__m4c9ow2 style_italic_false__m4c9ow4 style_underline_false__m4c9ow6 style_oneLine_false__m4c9ow8 style_prominence_default__m4c9owi style_variant_caption__m4c9ows style_disabled_false__m4c9ow1b style_undefined_compound_72__m4c9ow3c"
2424
>
2525
That's a beautiful custom password check we have right there
2626
</p>
@@ -29,16 +29,17 @@ exports[`passwordCheck > render with custom values 1`] = `
2929
class="styles__toi52u0 styles_alignItems_center_xxsmall__toi52u3d styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_nowrap_xxsmall__toi52u7d styles_gap_0.5rem_xxsmall__toi52u7 styles_justifyContent_normal_xxsmall__toi52u5d"
3030
>
3131
<svg
32-
class="styles__vbm0wq0 styles_prominence_weak__vbm0wqj styles_disabled_false__vbm0wqf styles_sentiment_success__vbm0wq4 styles_size_large__vbm0wq8 styles_undefined_compound_59__vbm0wq27"
33-
viewBox="0 0 20 20"
32+
class="styles__vbm0wq0 styles_prominence_weak__vbm0wqj styles_disabled_false__vbm0wqf styles_sentiment_success__vbm0wq4 styles_size_small__vbm0wqa styles_undefined_compound_59__vbm0wq27"
33+
viewBox="0 0 16 16"
3434
>
3535
<path
3636
clip-rule="evenodd"
37-
d="M10 3.455a6.545 6.545 0 1 0 0 13.09 6.545 6.545 0 0 0 0-13.09M2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0m10.847-2.41a.727.727 0 0 1 .169 1.015l-3.03 4.242a.727.727 0 0 1-1.106.091L7.06 11.12a.727.727 0 1 1 1.029-1.028l1.211 1.21 2.531-3.543a.727.727 0 0 1 1.015-.169"
37+
d="M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM11.8435 6.20859C12.0967 5.88082 12.0363 5.40981 11.7086 5.15654C11.3808 4.90327 10.9098 4.96365 10.6565 5.29141L6.95615 10.0801L5.30747 8.24828C5.03038 7.94039 4.55616 7.91543 4.24828 8.19253C3.94039 8.46962 3.91544 8.94384 4.19253 9.25172L6.44253 11.7517C6.59132 11.917 6.80582 12.0078 7.02809 11.9995C7.25036 11.9911 7.45746 11.8846 7.59346 11.7086L11.8435 6.20859Z"
38+
fill-rule="evenodd"
3839
/>
3940
</svg>
4041
<p
41-
class="style__m4c9ow0 style_strikeThrough_false__m4c9ow2 style_italic_false__m4c9ow4 style_underline_false__m4c9ow6 style_oneLine_false__m4c9ow8 style_prominence_default__m4c9owi style_variant_bodySmall__m4c9own style_disabled_false__m4c9ow1b style_undefined_compound_72__m4c9ow3c"
42+
class="style__m4c9ow0 style_strikeThrough_false__m4c9ow2 style_italic_false__m4c9ow4 style_underline_false__m4c9ow6 style_oneLine_false__m4c9ow8 style_prominence_default__m4c9owi style_variant_caption__m4c9ows style_disabled_false__m4c9ow1b style_undefined_compound_72__m4c9ow3c"
4243
>
4344
That's a second beautiful custom password check we have right there
4445
</p>

packages/ui/src/components/PasswordCheck/index.tsx

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
'use client'
22

3-
import {
4-
CheckCircleOutlineIcon,
5-
CloseCircleOutlineIcon,
6-
} from '@ultraviolet/icons'
3+
import { CheckCircleIcon, CloseIcon } from '@ultraviolet/icons'
74
import type { CSSProperties } from 'react'
85
import { Stack } from '../Stack'
96
import { Text } from '../Text'
@@ -44,20 +41,12 @@ export const PasswordCheck = ({
4441
{rules.map(rule => (
4542
<Stack alignItems="center" direction="row" gap={1} key={rule.name}>
4643
{rule.valid ? (
47-
<CheckCircleOutlineIcon
48-
prominence="weak"
49-
sentiment="success"
50-
size="large"
51-
/>
44+
<CheckCircleIcon prominence="weak" sentiment="success" size="small" />
5245
) : (
53-
<CloseCircleOutlineIcon
54-
prominence="weak"
55-
sentiment="neutral"
56-
size="large"
57-
/>
46+
<CloseIcon prominence="weak" sentiment="neutral" size="small" />
5847
)}
5948

60-
<Text as="p" variant="bodySmall">
49+
<Text as="p" variant="caption">
6150
{rule.text}
6251
</Text>
6352
</Stack>

0 commit comments

Comments
 (0)