@justeattakeaway/pie-avatar 0.4.21 → 0.4.22
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 +5 -5
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/custom-elements.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"type": {
|
|
27
27
|
"text": "DefaultProps"
|
|
28
28
|
},
|
|
29
|
-
"default": "{\
|
|
29
|
+
"default": "{\n tag: 'div',\n}"
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"exports": [
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
],
|
|
98
|
-
"description": "Attempts to extract initials from the label string.\
|
|
98
|
+
"description": "Attempts to extract initials from the label string.\nIf the label is not provided or is invalid, it returns null."
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"kind": "method",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
],
|
|
147
|
-
"description": "Renders an image.\
|
|
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"
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"kind": "field",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"text": "TemplateResult"
|
|
154
154
|
},
|
|
155
155
|
"privacy": "private",
|
|
156
|
-
"description": "Renders the inner content of the avatar such as initials, an icon or an image.\
|
|
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",
|
|
157
157
|
"readonly": true
|
|
158
158
|
},
|
|
159
159
|
{
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
],
|
|
176
|
-
"description": "Renders the avatar wrapper element based on the `tag` property.\
|
|
176
|
+
"description": "Renders the avatar wrapper element based on the `tag` property.\nCan be a `button`, `a` or a `div`."
|
|
177
177
|
}
|
|
178
178
|
],
|
|
179
179
|
"mixins": [
|
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.22";
|
|
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/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.22",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@custom-elements-manifest/analyzer": "0.9.0",
|
|
41
41
|
"@justeattakeaway/pie-components-config": "0.21.0",
|
|
42
|
-
"@justeattakeaway/pie-css": "0.31.
|
|
42
|
+
"@justeattakeaway/pie-css": "0.31.1",
|
|
43
43
|
"@justeattakeaway/pie-monorepo-utils": "0.7.0",
|
|
44
44
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@justeattakeaway/pie-icons-webc": "1.20.
|
|
48
|
-
"@justeattakeaway/pie-webc-core": "11.0.
|
|
47
|
+
"@justeattakeaway/pie-icons-webc": "1.20.8",
|
|
48
|
+
"@justeattakeaway/pie-webc-core": "11.0.1"
|
|
49
49
|
},
|
|
50
50
|
"volta": {
|
|
51
51
|
"extends": "../../../package.json"
|