@justeattakeaway/pie-avatar 0.4.19 → 0.4.21

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.
@@ -26,7 +26,7 @@
26
26
  "type": {
27
27
  "text": "DefaultProps"
28
28
  },
29
- "default": "{\n tag: 'div',\n}"
29
+ "default": "{\r\n tag: 'div',\r\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.\nIf the label is not provided or is invalid, it returns null."
98
+ "description": "Attempts to extract initials from the label string.\r\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.\nWe assign an empty string to the alt attribute for a11y clarity as it explicitly declares the image as decorative"
147
+ "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
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.\nIt is a getter because the value is computed based on properties",
156
+ "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
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.\nCan be a `button`, `a` or a `div`."
176
+ "description": "Renders the avatar wrapper element based on the `tag` property.\r\nCan be a `button`, `a` or a `div`."
177
177
  }
178
178
  ],
179
179
  "mixins": [
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { LitElement as h, html as s, unsafeCSS as g } from "lit";
2
- import { RtlMixin as f, validPropertyValues as b, safeCustomElement as m } from "@justeattakeaway/pie-webc-core";
1
+ import { LitElement as h, html as s, unsafeCSS as f } from "lit";
2
+ import { RtlMixin as g, validPropertyValues as b, safeCustomElement as m } from "@justeattakeaway/pie-webc-core";
3
3
  import "@justeattakeaway/pie-icons-webc/dist/IconUser.js";
4
4
  import { property as v } from "lit/decorators.js";
5
5
  const o = class o extends h {
@@ -7,9 +7,9 @@ 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.19";
10
+ o.v = "0.4.21";
11
11
  let p = o;
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 = {
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"
14
14
  };
15
15
  var w = Object.defineProperty, I = Object.getOwnPropertyDescriptor, l = (t, a, r, i) => {
@@ -18,7 +18,7 @@ var w = Object.defineProperty, I = Object.getOwnPropertyDescriptor, l = (t, a, r
18
18
  return i && e && w(a, r, e), e;
19
19
  };
20
20
  const S = "pie-avatar";
21
- let n = class extends f(p) {
21
+ let n = class extends g(p) {
22
22
  constructor() {
23
23
  super(...arguments), this.tag = u.tag;
24
24
  }
@@ -100,7 +100,7 @@ let n = class extends f(p) {
100
100
  return this.renderAvatarWrapper(this.avatarContent);
101
101
  }
102
102
  };
103
- n.styles = g(y);
103
+ n.styles = f(y);
104
104
  l([
105
105
  v({ type: String }),
106
106
  b(S, x, u.tag)
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.19",
4
+ "version": "0.4.21",
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.30.0",
42
+ "@justeattakeaway/pie-css": "0.31.0",
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.6",
48
- "@justeattakeaway/pie-webc-core": "10.0.0"
47
+ "@justeattakeaway/pie-icons-webc": "1.20.7",
48
+ "@justeattakeaway/pie-webc-core": "11.0.0"
49
49
  },
50
50
  "volta": {
51
51
  "extends": "../../../package.json"
package/src/avatar.scss CHANGED
@@ -16,6 +16,7 @@
16
16
  display: flex;
17
17
  justify-content: center;
18
18
  align-items: center;
19
+ font-family: var(--dt-font-body-s-family);
19
20
  @include p.font-size(--dt-font-body-s-size);
20
21
  background-color: var(--dt-color-container-inverse);
21
22
  color: var(--dt-color-content-interactive-primary);