@justeattakeaway/pie-avatar 0.4.12 → 0.4.13
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/index.js +1 -1
- package/dist/react.d.ts +1 -1
- package/package.json +2 -2
- package/src/react.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const o = class o extends h {
|
|
|
7
7
|
this.getAttribute("v") || this.setAttribute("v", o.v);
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
|
-
o.v = "0.4.
|
|
10
|
+
o.v = "0.4.13";
|
|
11
11
|
let p = o;
|
|
12
12
|
const y = "*,*:after,*:before{box-sizing:inherit}:host{display:block;--avatar-size: 32px}.c-avatar-visuallyHidden{position:absolute;display:block;height:1px;width:1px;overflow:hidden;padding:1px;white-space:nowrap}.c-avatar{display:flex;justify-content:center;align-items:center;font-size:calc(var(--dt-font-body-s-size) * 1px);background-color:var(--dt-color-container-inverse);color:var(--dt-color-content-interactive-primary);width:var(--avatar-size);height:var(--avatar-size);border-radius:var(--dt-radius-rounded-e);overflow:hidden}.c-avatar--image{width:100%;height:100%;object-fit:cover}.c-avatar--button{border:none;font-family:inherit}", x = ["a", "button", "div"], u = {
|
|
13
13
|
tag: "div"
|
package/dist/react.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare type Initials = {
|
|
|
30
30
|
screenreader: string;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
export declare const PieAvatar: React_2.ForwardRefExoticComponent<React_2.PropsWithoutRef<AvatarProps
|
|
33
|
+
export declare const PieAvatar: React_2.ForwardRefExoticComponent<React_2.PropsWithChildren<Omit<React_2.PropsWithoutRef<AvatarProps>, "children">> & React_2.RefAttributes<PieAvatar_2> & ReactBaseType>;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* @tagname pie-avatar
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-avatar",
|
|
3
3
|
"description": "PIE Design System Avatar built using Web Components",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.13",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@justeattakeaway/pie-icons-webc": "1.
|
|
47
|
+
"@justeattakeaway/pie-icons-webc": "1.20.0",
|
|
48
48
|
"@justeattakeaway/pie-webc-core": "6.0.1"
|
|
49
49
|
},
|
|
50
50
|
"volta": {
|
package/src/react.ts
CHANGED
|
@@ -15,5 +15,5 @@ const PieAvatarReact = createComponent({
|
|
|
15
15
|
|
|
16
16
|
type ReactBaseType = React.HTMLAttributes<HTMLElement>
|
|
17
17
|
|
|
18
|
-
export const PieAvatar = PieAvatarReact as React.ForwardRefExoticComponent<React.PropsWithoutRef<AvatarProps
|
|
18
|
+
export const PieAvatar = PieAvatarReact as React.ForwardRefExoticComponent<React.PropsWithChildren<Omit<React.PropsWithoutRef<AvatarProps>, 'children'>>
|
|
19
19
|
& React.RefAttributes<PieAvatarLit> & ReactBaseType>;
|