Skip to content

Commit 984a83f

Browse files
authored
Merge 00149a4 into 20bed35
2 parents 20bed35 + 00149a4 commit 984a83f

6 files changed

Lines changed: 52 additions & 45 deletions

File tree

.changeset/floppy-carpets-talk.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+
`Alert`: fix padding, icons size, icons type (oultine -> filled) and close button (size and sentiment)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ exports[`submitErrorAlert > should display an alert when submitError is present
2828
>
2929
<svg
3030
aria-hidden="true"
31-
class="uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkze uv_icons_1sbwqkz1k"
31+
class="uv_1b838gxd uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkzf uv_icons_1sbwqkz1k"
3232
height="20"
3333
viewBox="0 0 20 20"
3434
width="20"
@@ -43,7 +43,7 @@ exports[`submitErrorAlert > should display an alert when submitError is present
4343
/>
4444
</svg>
4545
<div
46-
class="uv_1b838gx9 uv_toi52u0 uv_toi52ud uv_toi52u2j uv_toi52u37 uv_toi52u5p"
46+
class="uv_1b838gx9 uv_toi52u0 uv_toi52ud uv_toi52u2j uv_toi52u37 uv_toi52u3p"
4747
style="--uv_4k0ekn3: 1 1 auto;"
4848
>
4949
<p

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

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ exports[`alert > renders correctly small 1`] = `
3232
/>
3333
</svg>
3434
<div
35-
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.75rem_xxsmall__toi52u5p"
35+
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.25rem_xxsmall__toi52u5j"
3636
style="--_4k0ekn3: 1 1 auto;"
3737
>
3838
<span
@@ -70,7 +70,7 @@ exports[`alert > renders correctly with all sentiments > renders correctly senti
7070
>
7171
<svg
7272
aria-hidden="true"
73-
class="uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkze uv_icons_1sbwqkz1k"
73+
class="styles__1b838gxd uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkzf uv_icons_1sbwqkz1k"
7474
height="20"
7575
viewBox="0 0 20 20"
7676
width="20"
@@ -85,7 +85,7 @@ exports[`alert > renders correctly with all sentiments > renders correctly senti
8585
/>
8686
</svg>
8787
<div
88-
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.75rem_xxsmall__toi52u5p"
88+
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.5rem_xxsmall__toi52u3p"
8989
style="--_4k0ekn3: 1 1 auto;"
9090
>
9191
<p
@@ -118,21 +118,22 @@ exports[`alert > renders correctly with all sentiments > renders correctly senti
118118
>
119119
<svg
120120
aria-hidden="true"
121-
class="uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzd uv_icons_1sbwqkze uv_icons_1sbwqkz1m"
121+
class="styles__1b838gxd uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzd uv_icons_1sbwqkzf uv_icons_1sbwqkz1m"
122122
height="20"
123123
viewBox="0 0 20 20"
124124
width="20"
125125
>
126126
<title>
127-
InformationOutlineIcon
127+
InformationIcon
128128
</title>
129129
<path
130130
clip-rule="evenodd"
131-
d="M10 3.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13M2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0m7.25-3.02a.75.75 0 0 1 .75-.75h.006a.75.75 0 0 1 .75.75v.005a.75.75 0 0 1-.75.75H10a.75.75 0 0 1-.75-.75zm.244 3.16a.75.75 0 0 1-.434-1.415l.034-.017c1.035-.517 2.2.418 1.92 1.54l-.508 2.03a.75.75 0 0 1 .434 1.414l-.034.016c-1.035.518-2.2-.417-1.92-1.54z"
131+
d="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM11 6C11 6.55228 10.5523 7 10 7C9.44771 7 9 6.55228 9 6C9 5.44772 9.44771 5 10 5C10.5523 5 11 5.44772 11 6ZM9 9C8.58579 9 8.25 9.33579 8.25 9.75C8.25 10.1642 8.58579 10.5 9 10.5H9.25338C9.41332 10.5 9.53213 10.6481 9.49743 10.8042L9.03829 12.8704C8.79542 13.9633 9.62706 15 10.7466 15H11C11.4142 15 11.75 14.6642 11.75 14.25C11.75 13.8358 11.4142 13.5 11 13.5H10.7466C10.5867 13.5 10.4679 13.3519 10.5026 13.1958L10.9617 11.1296C11.2046 10.0367 10.3729 9 9.25338 9H9Z"
132+
fill-rule="evenodd"
132133
/>
133134
</svg>
134135
<div
135-
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.75rem_xxsmall__toi52u5p"
136+
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.5rem_xxsmall__toi52u3p"
136137
style="--_4k0ekn3: 1 1 auto;"
137138
>
138139
<p
@@ -165,7 +166,7 @@ exports[`alert > renders correctly with all sentiments > renders correctly senti
165166
>
166167
<svg
167168
aria-hidden="true"
168-
class="uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz4 uv_icons_1sbwqkz9 uv_icons_1sbwqkze uv_icons_1sbwqkz1q"
169+
class="styles__1b838gxd uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz4 uv_icons_1sbwqkz9 uv_icons_1sbwqkzf uv_icons_1sbwqkz1q"
169170
height="20"
170171
viewBox="0 0 20 20"
171172
width="20"
@@ -182,7 +183,7 @@ exports[`alert > renders correctly with all sentiments > renders correctly senti
182183
/>
183184
</svg>
184185
<div
185-
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.75rem_xxsmall__toi52u5p"
186+
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.5rem_xxsmall__toi52u3p"
186187
style="--_4k0ekn3: 1 1 auto;"
187188
>
188189
<p
@@ -215,21 +216,22 @@ exports[`alert > renders correctly with all sentiments > renders correctly senti
215216
>
216217
<svg
217218
aria-hidden="true"
218-
class="uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkza uv_icons_1sbwqkze uv_icons_1sbwqkz1j"
219+
class="styles__1b838gxd uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkza uv_icons_1sbwqkzf uv_icons_1sbwqkz1j"
219220
height="20"
220221
viewBox="0 0 20 20"
221222
width="20"
222223
>
223224
<title>
224-
CheckCircleOutlineIcon
225+
CheckCircleIcon
225226
</title>
226227
<path
227228
clip-rule="evenodd"
228-
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"
229+
d="M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM13.8566 8.19113C14.1002 7.85614 14.0261 7.38708 13.6911 7.14345C13.3561 6.89982 12.8871 6.97388 12.6434 7.30887L9.15969 12.099L7.28033 10.2197C6.98744 9.92678 6.51256 9.92678 6.21967 10.2197C5.92678 10.5126 5.92678 10.9874 6.21967 11.2803L8.71967 13.7803C8.87477 13.9354 9.08999 14.0149 9.30867 13.9977C9.52734 13.9805 9.72754 13.8685 9.85655 13.6911L13.8566 8.19113Z"
230+
fill-rule="evenodd"
229231
/>
230232
</svg>
231233
<div
232-
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.75rem_xxsmall__toi52u5p"
234+
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.5rem_xxsmall__toi52u3p"
233235
style="--_4k0ekn3: 1 1 auto;"
234236
>
235237
<p
@@ -262,7 +264,7 @@ exports[`alert > renders correctly with all sentiments > renders correctly senti
262264
>
263265
<svg
264266
aria-hidden="true"
265-
class="uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzc uv_icons_1sbwqkze uv_icons_1sbwqkz1l"
267+
class="styles__1b838gxd uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzc uv_icons_1sbwqkzf uv_icons_1sbwqkz1l"
266268
height="20"
267269
viewBox="0 0 20 20"
268270
width="20"
@@ -277,7 +279,7 @@ exports[`alert > renders correctly with all sentiments > renders correctly senti
277279
/>
278280
</svg>
279281
<div
280-
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.75rem_xxsmall__toi52u5p"
282+
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.5rem_xxsmall__toi52u3p"
281283
style="--_4k0ekn3: 1 1 auto;"
282284
>
283285
<p
@@ -310,7 +312,7 @@ exports[`alert > renders correctly with buttonText and onClickButton 1`] = `
310312
>
311313
<svg
312314
aria-hidden="true"
313-
class="uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkze uv_icons_1sbwqkz1k"
315+
class="styles__1b838gxd uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkzf uv_icons_1sbwqkz1k"
314316
height="20"
315317
viewBox="0 0 20 20"
316318
width="20"
@@ -325,7 +327,7 @@ exports[`alert > renders correctly with buttonText and onClickButton 1`] = `
325327
/>
326328
</svg>
327329
<div
328-
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.75rem_xxsmall__toi52u5p"
330+
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.5rem_xxsmall__toi52u3p"
329331
style="--_4k0ekn3: 1 1 auto;"
330332
>
331333
<p
@@ -364,7 +366,7 @@ exports[`alert > renders correctly with children as component 1`] = `
364366
>
365367
<svg
366368
aria-hidden="true"
367-
class="uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkze uv_icons_1sbwqkz1k"
369+
class="styles__1b838gxd uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkzf uv_icons_1sbwqkz1k"
368370
height="20"
369371
viewBox="0 0 20 20"
370372
width="20"
@@ -379,7 +381,7 @@ exports[`alert > renders correctly with children as component 1`] = `
379381
/>
380382
</svg>
381383
<div
382-
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.75rem_xxsmall__toi52u5p"
384+
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.5rem_xxsmall__toi52u3p"
383385
style="--_4k0ekn3: 1 1 auto;"
384386
>
385387
<p>
@@ -410,7 +412,7 @@ exports[`alert > renders correctly with closable and onClose 1`] = `
410412
>
411413
<svg
412414
aria-hidden="true"
413-
class="uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkze uv_icons_1sbwqkz1k"
415+
class="styles__1b838gxd uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkzf uv_icons_1sbwqkz1k"
414416
height="20"
415417
viewBox="0 0 20 20"
416418
width="20"
@@ -425,7 +427,7 @@ exports[`alert > renders correctly with closable and onClose 1`] = `
425427
/>
426428
</svg>
427429
<div
428-
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.75rem_xxsmall__toi52u5p"
430+
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.5rem_xxsmall__toi52u3p"
429431
style="--_4k0ekn3: 1 1 auto;"
430432
>
431433
<p
@@ -438,11 +440,11 @@ exports[`alert > renders correctly with closable and onClose 1`] = `
438440
</div>
439441
<button
440442
aria-label="close"
441-
class="styles__1b838gxc styles__e1wcoe0 styles_disabled_false__e1wcoe1 styles_fullWidth_false__e1wcoe3 styles_sentiment_neutral__e1wcoe8 styles_size_small__e1wcoeg styles_variant_ghost__e1wcoej styles_undefined_compound_24__e1wcoe19"
443+
class="styles__1b838gxc styles__e1wcoe0 styles_disabled_false__e1wcoe1 styles_fullWidth_false__e1wcoe3 styles_sentiment_danger__e1wcoe6 styles_size_xsmall__e1wcoeh styles_variant_ghost__e1wcoej styles_undefined_compound_20__e1wcoe15"
442444
type="button"
443445
>
444446
<svg
445-
class="uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzg uv_icons_1sbwqkz1n"
447+
class="uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkz9 uv_icons_1sbwqkzg uv_icons_1sbwqkz1i"
446448
height="16"
447449
viewBox="0 0 16 16"
448450
width="16"
@@ -477,7 +479,7 @@ exports[`alert > renders correctly with default values 1`] = `
477479
>
478480
<svg
479481
aria-hidden="true"
480-
class="uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkze uv_icons_1sbwqkz1k"
482+
class="styles__1b838gxd uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkzf uv_icons_1sbwqkz1k"
481483
height="20"
482484
viewBox="0 0 20 20"
483485
width="20"
@@ -492,7 +494,7 @@ exports[`alert > renders correctly with default values 1`] = `
492494
/>
493495
</svg>
494496
<div
495-
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.75rem_xxsmall__toi52u5p"
497+
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.5rem_xxsmall__toi52u3p"
496498
style="--_4k0ekn3: 1 1 auto;"
497499
>
498500
<p
@@ -525,7 +527,7 @@ exports[`alert > renders correctly with disabled 1`] = `
525527
>
526528
<svg
527529
aria-hidden="true"
528-
class="uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkze uv_icons_1sbwqkz1k"
530+
class="styles__1b838gxd uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkzf uv_icons_1sbwqkz1k"
529531
height="20"
530532
viewBox="0 0 20 20"
531533
width="20"
@@ -540,7 +542,7 @@ exports[`alert > renders correctly with disabled 1`] = `
540542
/>
541543
</svg>
542544
<div
543-
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.75rem_xxsmall__toi52u5p"
545+
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.5rem_xxsmall__toi52u3p"
544546
style="--_4k0ekn3: 1 1 auto;"
545547
>
546548
<p
@@ -580,7 +582,7 @@ exports[`alert > renders correctly with title 1`] = `
580582
>
581583
<svg
582584
aria-hidden="true"
583-
class="uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkze uv_icons_1sbwqkz1k"
585+
class="styles__1b838gxd uv_icons_1sbwqkz0 uv_icons_1sbwqkz1 uv_icons_1sbwqkz3 uv_icons_1sbwqkzb uv_icons_1sbwqkzf uv_icons_1sbwqkz1k"
584586
height="20"
585587
viewBox="0 0 20 20"
586588
width="20"
@@ -595,7 +597,7 @@ exports[`alert > renders correctly with title 1`] = `
595597
/>
596598
</svg>
597599
<div
598-
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.75rem_xxsmall__toi52u5p"
600+
class="styles__1b838gx9 styles__toi52u0 styles_alignItems_center_xxsmall__toi52ud styles_flexDirection_row_xxsmall__toi52u2j styles_flexWrap_wrap_xxsmall__toi52u37 styles_gap_0.5rem_xxsmall__toi52u3p"
599601
style="--_4k0ekn3: 1 1 auto;"
600602
>
601603
<span

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

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

33
import { AlertCircleIcon } from '@ultraviolet/icons/AlertCircleIcon'
4-
import { CheckCircleOutlineIcon } from '@ultraviolet/icons/CheckCircleOutlineIcon'
4+
import { CheckCircleIcon } from '@ultraviolet/icons/CheckCircleIcon'
55
import { CloseIcon } from '@ultraviolet/icons/CloseIcon'
6-
import { InformationOutlineIcon } from '@ultraviolet/icons/InformationOutlineIcon'
6+
import { InformationIcon } from '@ultraviolet/icons/InformationIcon'
77
import { LightBulbIcon } from '@ultraviolet/icons/LightBulbIcon'
88
import { cn } from '@ultraviolet/utils'
99
import { useState } from 'react'
@@ -19,9 +19,9 @@ import type { ComponentProps, CSSProperties, ReactNode } from 'react'
1919

2020
const sentimentIcons = {
2121
danger: AlertCircleIcon,
22-
info: InformationOutlineIcon,
22+
info: InformationIcon,
2323
neutral: LightBulbIcon,
24-
success: CheckCircleOutlineIcon,
24+
success: CheckCircleIcon,
2525
warning: AlertCircleIcon,
2626
}
2727

@@ -94,17 +94,17 @@ export const Alert = ({
9494
>
9595
<Icon
9696
aria-hidden="true"
97-
className={size === 'small' ? alertStyle.smallIcon : ''}
97+
className={alertStyle.icon}
9898
prominence={sentiment === 'neutral' ? 'strong' : undefined}
9999
sentiment={sentiment}
100-
size={size === 'small' ? 'small' : 'large'}
100+
size={size === 'small' ? 'small' : 'medium'}
101101
/>
102102
<Stack
103103
alignItems="center"
104104
className={alertStyle.text}
105105
direction="row"
106106
flex="1 1 auto"
107-
gap={1.5}
107+
gap={size === 'small' ? 0.5 : 1}
108108
wrap
109109
>
110110
{title ? (
@@ -147,11 +147,11 @@ export const Alert = ({
147147
setOpened(false)
148148
onClose?.()
149149
}}
150-
sentiment="neutral"
151-
size="small"
150+
sentiment={sentiment}
151+
size="xsmall"
152152
variant="ghost"
153153
>
154-
<CloseIcon />
154+
<CloseIcon sentiment="neutral" />
155155
</Button>
156156
) : null}
157157
</Stack>

packages/ui/src/components/Alert/styles.css.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const buttonClose = style({
6969

7070
export type AlertVariants = NonNullable<RecipeVariants<typeof alert>>
7171

72-
const smallIcon = style({
72+
const icon = style({
7373
marginTop: theme.space['0.25'],
7474
})
7575

@@ -79,5 +79,5 @@ export const alertStyle = {
7979
text,
8080
button,
8181
buttonClose,
82-
smallIcon,
82+
icon,
8383
}

0 commit comments

Comments
 (0)