@yakad/ui 1.3.154 → 1.3.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Avatar/Avatar.js
CHANGED
|
@@ -17,7 +17,6 @@ import { Symbol } from "@yakad/symbols";
|
|
|
17
17
|
export const Avatar = forwardRef(function Avatar(_a, ref) {
|
|
18
18
|
var { src, className } = _a, restProps = __rest(_a, ["src", "className"]);
|
|
19
19
|
const joinedClassNames = classNames(styles.profileContainer, className);
|
|
20
|
-
|
|
21
|
-
return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, style: { backgroundImage }, children: _jsx("div", { className: styles.editOverlay, children: _jsx(Symbol, { icon: "edit" }) }) })));
|
|
20
|
+
return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, style: src ? { backgroundImage: `url(${src})` } : {}, children: _jsx("div", { className: styles.editOverlay, children: _jsx(Symbol, { icon: "edit" }) }) })));
|
|
22
21
|
});
|
|
23
22
|
export default Avatar;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
<svg
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
+
width="256"
|
|
4
|
+
height="256"
|
|
5
|
+
viewBox="0 0 256 256"
|
|
6
|
+
role="img"
|
|
7
|
+
aria-label="Default avatar"
|
|
8
|
+
>
|
|
9
|
+
<rect width="100%" height="100%" rx="24" fill="#E6EEF8" />
|
|
10
|
+
<g transform="translate(48,40)" fill="none" fill-rule="evenodd">
|
|
11
|
+
<circle cx="80" cy="56" r="40" fill="#CBDFF6" />
|
|
12
|
+
<path
|
|
13
|
+
d="M0 152c0-44.18 35.82-80 80-80s80 35.82 80 80v8H0v-8z"
|
|
14
|
+
fill="#B6D0FB"
|
|
15
|
+
/>
|
|
16
|
+
</g>
|
|
8
17
|
</svg>
|