diff --git a/.changeset/five-radios-tie.md b/.changeset/five-radios-tie.md new file mode 100644 index 0000000000..a8163dda4e --- /dev/null +++ b/.changeset/five-radios-tie.md @@ -0,0 +1,5 @@ +--- +"@ultraviolet/ui": patch +--- + +Refactor `image` prop in `` component. If the prop is a string, it will be displayed inside img tag so you can set a url to simply set the image. diff --git a/packages/ui/src/components/Banner/__tests__/__snapshots__/index.test.tsx.snap b/packages/ui/src/components/Banner/__tests__/__snapshots__/index.test.tsx.snap index 4b0ba6a93e..a0fc1fc19c 100644 --- a/packages/ui/src/components/Banner/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/ui/src/components/Banner/__tests__/__snapshots__/index.test.tsx.snap @@ -41,30 +41,6 @@ exports[`Banner > renders correctly with a button 1`] = ` } .emotion-2 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - gap: 0rem; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - -webkit-align-items: normal; - -webkit-box-align: normal; - -ms-flex-align: normal; - align-items: normal; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-box-flex-wrap: nowrap; - -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - width: 140px; -} - -.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -86,7 +62,7 @@ exports[`Banner > renders correctly with a button 1`] = ` flex-wrap: nowrap; } -.emotion-6 { +.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -109,7 +85,7 @@ exports[`Banner > renders correctly with a button 1`] = ` flex-wrap: nowrap; } -.emotion-8 { +.emotion-6 { color: #641cb3; font-size: 1.3125rem; font-family: Space Grotesk,Inter,Asap,sans-serif; @@ -121,7 +97,7 @@ exports[`Banner > renders correctly with a button 1`] = ` text-decoration: none; } -.emotion-10 { +.emotion-8 { color: #3f4250; font-size: 1rem; font-family: Inter,Asap,sans-serif; @@ -133,7 +109,7 @@ exports[`Banner > renders correctly with a button 1`] = ` text-decoration: none; } -.emotion-12 { +.emotion-10 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -156,7 +132,7 @@ exports[`Banner > renders correctly with a button 1`] = ` flex-wrap: nowrap; } -.emotion-14 { +.emotion-12 { display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; @@ -195,22 +171,22 @@ exports[`Banner > renders correctly with a button 1`] = ` color: #ffffff; } -.emotion-14:hover { +.emotion-12:hover { -webkit-text-decoration: none; text-decoration: none; } -.emotion-14:active { +.emotion-12:active { box-shadow: 0px 0px 0px 3px #8c40ef40; } -.emotion-14:hover, -.emotion-14:active { +.emotion-12:hover, +.emotion-12:active { background: #792dd4; color: #f9f9fa; } -.emotion-16 { +.emotion-14 { display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; @@ -249,22 +225,22 @@ exports[`Banner > renders correctly with a button 1`] = ` color: #3f4250; } -.emotion-16:hover { +.emotion-14:hover { -webkit-text-decoration: none; text-decoration: none; } -.emotion-16:active { +.emotion-14:active { box-shadow: 0px 0px 0px 3px #151a2d5c; } -.emotion-16:hover, -.emotion-16:active { +.emotion-14:hover, +.emotion-14:active { background: #e9eaeb; color: #222638; } -.emotion-18 { +.emotion-16 { vertical-align: middle; fill: currentColor; height: 16px; @@ -273,7 +249,7 @@ exports[`Banner > renders correctly with a button 1`] = ` min-height: 16px; } -.emotion-18 .fillStroke { +.emotion-16 .fillStroke { stroke: currentColor; fill: none; } @@ -284,38 +260,34 @@ exports[`Banner > renders correctly with a button 1`] = `
+
- -
-

Title

Description