@justeattakeaway/pie-avatar 0.4.31 → 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 +32 -9
- 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 +2 -2
- 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",
|
|
@@ -95,7 +98,7 @@
|
|
|
95
98
|
}
|
|
96
99
|
}
|
|
97
100
|
],
|
|
98
|
-
"description": "Attempts to extract initials from the label string.\nIf the label is not provided or is invalid, it returns null."
|
|
101
|
+
"description": "Attempts to extract initials from the label string.\r\nIf the label is not provided or is invalid, it returns null."
|
|
99
102
|
},
|
|
100
103
|
{
|
|
101
104
|
"kind": "method",
|
|
@@ -144,7 +147,7 @@
|
|
|
144
147
|
}
|
|
145
148
|
}
|
|
146
149
|
],
|
|
147
|
-
"description": "Renders an image.\nWe assign an empty string to the alt attribute for a11y clarity as it explicitly declares the image as decorative"
|
|
150
|
+
"description": "Renders an image.\r\nWe assign an empty string to the alt attribute for a11y clarity as it explicitly declares the image as decorative"
|
|
148
151
|
},
|
|
149
152
|
{
|
|
150
153
|
"kind": "field",
|
|
@@ -153,7 +156,7 @@
|
|
|
153
156
|
"text": "TemplateResult"
|
|
154
157
|
},
|
|
155
158
|
"privacy": "private",
|
|
156
|
-
"description": "Renders the inner content of the avatar such as initials, an icon or an image.\nIt is a getter because the value is computed based on properties",
|
|
159
|
+
"description": "Renders the inner content of the avatar such as initials, an icon or an image.\r\nIt is a getter because the value is computed based on properties",
|
|
157
160
|
"readonly": true
|
|
158
161
|
},
|
|
159
162
|
{
|
|
@@ -173,7 +176,27 @@
|
|
|
173
176
|
}
|
|
174
177
|
}
|
|
175
178
|
],
|
|
176
|
-
"description": "Renders the avatar wrapper element based on the `tag` property.\nCan be a `button`, `a` or a `div`."
|
|
179
|
+
"description": "Renders the avatar wrapper element based on the `tag` property.\r\nCan be a `button`, `a` or a `div`."
|
|
180
|
+
}
|
|
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"
|
|
177
200
|
}
|
|
178
201
|
],
|
|
179
202
|
"mixins": [
|
|
@@ -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,7 +37,7 @@
|
|
|
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
42
|
"@justeattakeaway/pie-monorepo-utils": "0.9.1"
|
|
43
43
|
},
|
package/src/react.ts
CHANGED
|
File without changes
|