@justeattakeaway/pie-avatar 0.4.30 → 0.4.32
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/custom-elements.json +28 -5
- package/dist/index.d.ts +0 -0
- package/dist/index.js +1 -1
- package/dist/react.d.ts +0 -0
- package/dist/react.js +0 -0
- package/package.json +4 -4
- package/src/react.ts +0 -0
package/custom-elements.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"type": {
|
|
27
27
|
"text": "DefaultProps"
|
|
28
28
|
},
|
|
29
|
-
"default": "{
|
|
29
|
+
"default": "{ tag: 'div', }"
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"exports": [
|
|
@@ -60,7 +60,8 @@
|
|
|
60
60
|
{
|
|
61
61
|
"kind": "field",
|
|
62
62
|
"name": "tag",
|
|
63
|
-
"privacy": "public"
|
|
63
|
+
"privacy": "public",
|
|
64
|
+
"attribute": "tag"
|
|
64
65
|
},
|
|
65
66
|
{
|
|
66
67
|
"kind": "field",
|
|
@@ -68,7 +69,8 @@
|
|
|
68
69
|
"type": {
|
|
69
70
|
"text": "AvatarProps['label']"
|
|
70
71
|
},
|
|
71
|
-
"privacy": "public"
|
|
72
|
+
"privacy": "public",
|
|
73
|
+
"attribute": "label"
|
|
72
74
|
},
|
|
73
75
|
{
|
|
74
76
|
"kind": "field",
|
|
@@ -76,7 +78,8 @@
|
|
|
76
78
|
"type": {
|
|
77
79
|
"text": "AvatarProps['src']"
|
|
78
80
|
},
|
|
79
|
-
"privacy": "public"
|
|
81
|
+
"privacy": "public",
|
|
82
|
+
"attribute": "src"
|
|
80
83
|
},
|
|
81
84
|
{
|
|
82
85
|
"kind": "method",
|
|
@@ -176,6 +179,26 @@
|
|
|
176
179
|
"description": "Renders the avatar wrapper element based on the `tag` property.\r\nCan be a `button`, `a` or a `div`."
|
|
177
180
|
}
|
|
178
181
|
],
|
|
182
|
+
"attributes": [
|
|
183
|
+
{
|
|
184
|
+
"name": "tag",
|
|
185
|
+
"fieldName": "tag"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "label",
|
|
189
|
+
"type": {
|
|
190
|
+
"text": "AvatarProps['label']"
|
|
191
|
+
},
|
|
192
|
+
"fieldName": "label"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "src",
|
|
196
|
+
"type": {
|
|
197
|
+
"text": "AvatarProps['src']"
|
|
198
|
+
},
|
|
199
|
+
"fieldName": "src"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
179
202
|
"mixins": [
|
|
180
203
|
{
|
|
181
204
|
"name": "RtlMixin",
|
|
@@ -196,7 +219,7 @@
|
|
|
196
219
|
"name": "*",
|
|
197
220
|
"declaration": {
|
|
198
221
|
"name": "*",
|
|
199
|
-
"
|
|
222
|
+
"module": "src/defs"
|
|
200
223
|
}
|
|
201
224
|
},
|
|
202
225
|
{
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
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.32";
|
|
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-family:var(--dt-font-body-s-family);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
|
File without changes
|
package/dist/react.js
CHANGED
|
File without changes
|
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.32",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"author": "Just Eat Takeaway.com - Design System Team",
|
|
38
38
|
"license": "Apache-2.0",
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@justeattakeaway/pie-components-config": "0.21.
|
|
40
|
+
"@justeattakeaway/pie-components-config": "0.21.2",
|
|
41
41
|
"@justeattakeaway/pie-css": "1.1.1",
|
|
42
|
-
"@justeattakeaway/pie-monorepo-utils": "0.9.
|
|
42
|
+
"@justeattakeaway/pie-monorepo-utils": "0.9.1"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@justeattakeaway/pie-icons-webc": "1.
|
|
45
|
+
"@justeattakeaway/pie-icons-webc": "1.23.0",
|
|
46
46
|
"@justeattakeaway/pie-webc-core": "14.0.1"
|
|
47
47
|
},
|
|
48
48
|
"volta": {
|
package/src/react.ts
CHANGED
|
File without changes
|