@vaadin/avatar 25.1.0-alpha9 → 25.1.0-beta2

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.
@@ -50,19 +50,9 @@
50
50
  "kind": "field",
51
51
  "name": "i18n",
52
52
  "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n```js\n{\n // Translation of the anonymous user avatar tooltip.\n anonymous: 'anonymous'\n}\n```",
53
- "return": {
54
- "type": {
55
- "text": "!AvatarI18n"
56
- }
53
+ "type": {
54
+ "text": "Object"
57
55
  },
58
- "parameters": [
59
- {
60
- "name": "value",
61
- "type": {
62
- "text": "Object"
63
- }
64
- }
65
- ],
66
56
  "inheritedFrom": {
67
57
  "name": "I18nMixin",
68
58
  "package": "@vaadin/component-base/src/i18n-mixin.js"
@@ -152,6 +142,10 @@
152
142
  {
153
143
  "name": "I18nMixin",
154
144
  "package": "@vaadin/component-base/src/i18n-mixin.js"
145
+ },
146
+ {
147
+ "name": "FocusMixin",
148
+ "package": "@vaadin/a11y-base/src/focus-mixin.js"
155
149
  }
156
150
  ],
157
151
  "parameters": [
@@ -213,19 +207,9 @@
213
207
  "kind": "field",
214
208
  "name": "i18n",
215
209
  "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n```js\n{\n // Translation of the anonymous user avatar tooltip.\n anonymous: 'anonymous'\n}\n```",
216
- "return": {
217
- "type": {
218
- "text": "!AvatarI18n"
219
- }
210
+ "type": {
211
+ "text": "Object"
220
212
  },
221
- "parameters": [
222
- {
223
- "name": "value",
224
- "type": {
225
- "text": "Object"
226
- }
227
- }
228
- ],
229
213
  "inheritedFrom": {
230
214
  "name": "I18nMixin",
231
215
  "package": "@vaadin/component-base/src/i18n-mixin.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/avatar",
3
- "version": "25.1.0-alpha9",
3
+ "version": "25.1.0-beta2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,18 +36,18 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
- "@vaadin/a11y-base": "25.1.0-alpha9",
40
- "@vaadin/component-base": "25.1.0-alpha9",
41
- "@vaadin/tooltip": "25.1.0-alpha9",
42
- "@vaadin/vaadin-themable-mixin": "25.1.0-alpha9",
39
+ "@vaadin/a11y-base": "25.1.0-beta2",
40
+ "@vaadin/component-base": "25.1.0-beta2",
41
+ "@vaadin/tooltip": "25.1.0-beta2",
42
+ "@vaadin/vaadin-themable-mixin": "25.1.0-beta2",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/aura": "25.1.0-alpha9",
47
- "@vaadin/chai-plugins": "25.1.0-alpha9",
48
- "@vaadin/test-runner-commands": "25.1.0-alpha9",
46
+ "@vaadin/aura": "25.1.0-beta2",
47
+ "@vaadin/chai-plugins": "25.1.0-beta2",
48
+ "@vaadin/test-runner-commands": "25.1.0-beta2",
49
49
  "@vaadin/testing-helpers": "^2.0.0",
50
- "@vaadin/vaadin-lumo-styles": "25.1.0-alpha9",
50
+ "@vaadin/vaadin-lumo-styles": "25.1.0-beta2",
51
51
  "sinon": "^21.0.0"
52
52
  },
53
53
  "customElements": "custom-elements.json",
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "ef432311376ba3dac4233cb23d393a49a425e0a4"
58
+ "gitHead": "ffbedbae08a5160d13bcd1c6fcaa328df5103a05"
59
59
  }
@@ -15,7 +15,7 @@ export const avatarStyles = css`
15
15
  cursor: default;
16
16
  color: var(--vaadin-avatar-text-color, var(--vaadin-text-color-secondary));
17
17
  overflow: hidden;
18
- --_size: var(--vaadin-avatar-size, calc(1lh + var(--vaadin-padding-xs) * 2));
18
+ --_size: var(--vaadin-avatar-size, calc(1lh + var(--vaadin-padding-block-container) * 2));
19
19
  height: var(--_size);
20
20
  width: var(--_size);
21
21
  border: var(--vaadin-focus-ring-width) solid transparent;
@@ -29,6 +29,7 @@ export const avatarStyles = css`
29
29
  position: relative;
30
30
  font-weight: var(--vaadin-avatar-font-weight, 400);
31
31
  font-size: var(--vaadin-avatar-font-size, inherit);
32
+ contain: strict;
32
33
  }
33
34
 
34
35
  /* Overlay border on top of image and icon as well */
@@ -102,7 +102,7 @@ export const AvatarMixin = (superClass) =>
102
102
  * anonymous: 'anonymous'
103
103
  * }
104
104
  * ```
105
- * @return {!AvatarI18n}
105
+ * @type {!AvatarI18n}
106
106
  */
107
107
  get i18n() {
108
108
  return super.i18n;
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/avatar",
4
- "version": "25.1.0-alpha9",
4
+ "version": "25.1.0-beta2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -106,7 +106,7 @@
106
106
  "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nThe object has the following JSON structure and default values:\n```js\n{\n // Translation of the anonymous user avatar tooltip.\n anonymous: 'anonymous'\n}\n```",
107
107
  "value": {
108
108
  "type": [
109
- "AvatarI18n"
109
+ "?"
110
110
  ]
111
111
  }
112
112
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/avatar",
4
- "version": "25.1.0-alpha9",
4
+ "version": "25.1.0-beta2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {