@justeattakeaway/pie-avatar 0.4.32 → 0.4.33
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 +4 -4
- 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/custom-elements.json
CHANGED
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
],
|
|
101
|
-
"description": "Attempts to extract initials from the label string.\
|
|
101
|
+
"description": "Attempts to extract initials from the label string.\nIf the label is not provided or is invalid, it returns null."
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"kind": "method",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
],
|
|
150
|
-
"description": "Renders an image.\
|
|
150
|
+
"description": "Renders an image.\nWe assign an empty string to the alt attribute for a11y clarity as it explicitly declares the image as decorative"
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"kind": "field",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"text": "TemplateResult"
|
|
157
157
|
},
|
|
158
158
|
"privacy": "private",
|
|
159
|
-
"description": "Renders the inner content of the avatar such as initials, an icon or an image.\
|
|
159
|
+
"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",
|
|
160
160
|
"readonly": true
|
|
161
161
|
},
|
|
162
162
|
{
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
],
|
|
179
|
-
"description": "Renders the avatar wrapper element based on the `tag` property.\
|
|
179
|
+
"description": "Renders the avatar wrapper element based on the `tag` property.\nCan be a `button`, `a` or a `div`."
|
|
180
180
|
}
|
|
181
181
|
],
|
|
182
182
|
"attributes": [
|
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.33";
|
|
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.33",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
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.24.0",
|
|
46
46
|
"@justeattakeaway/pie-webc-core": "14.0.1"
|
|
47
47
|
},
|
|
48
48
|
"volta": {
|