@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.
@@ -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
- const backgroundImage = src ? `url(${src})` : `url("./default-avatar.svg")`;
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,4 +1,5 @@
1
1
  .profileContainer {
2
+ background-image: url("./default-avatar.svg");
2
3
  position: relative;
3
4
  width: 60px;
4
5
  height: 60px;
@@ -1,8 +1,17 @@
1
- <!-- default-avatar.svg -->
2
- <svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256" role="img" aria-label="Default avatar">
3
- <rect width="100%" height="100%" rx="24" fill="#E6EEF8"/>
4
- <g transform="translate(48,40)" fill="none" fill-rule="evenodd">
5
- <circle cx="80" cy="56" r="40" fill="#CBDFF6"/>
6
- <path d="M0 152c0-44.18 35.82-80 80-80s80 35.82 80 80v8H0v-8z" fill="#B6D0FB"/>
7
- </g>
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yakad/ui",
3
- "version": "1.3.154",
3
+ "version": "1.3.156",
4
4
  "private": false,
5
5
  "author": "Natiq",
6
6
  "description": "UI components for NextJS/React",