@vaadin/avatar 25.3.0-dev.3a3c2d7d2a → 25.3.0-rc1

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.
@@ -179,7 +179,7 @@
179
179
  "declarations": [
180
180
  {
181
181
  "kind": "class",
182
- "description": "`<vaadin-avatar>` is a Web Component providing avatar displaying functionality.\n\n```html\n<vaadin-avatar img=\"avatars/avatar-1.jpg\"></vaadin-avatar>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n--------- | ---------------\n`abbr` | The abbreviation element\n`icon` | The icon element\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property | Description\n-------------------------------|-------------\n`--vaadin-avatar-background` | Background color of the avatar\n`--vaadin-avatar-border-color` | Border color of the avatar\n`--vaadin-avatar-border-width` | Border width of the avatar\n`--vaadin-avatar-font-size` | Font size of the avatar\n`--vaadin-avatar-font-weight` | Font weight of the avatar\n`--vaadin-avatar-size` | Size of the avatar\n`--vaadin-avatar-text-color` | Text color of the avatar\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`focus-ring` | Set when the avatar is focused using the keyboard.\n`focused` | Set when the avatar is focused.\n`has-color-index` | Set when the avatar has `colorIndex` and the corresponding custom CSS property exists.\n`has-tooltip` | Set when the element has a slotted tooltip.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
182
+ "description": "`<vaadin-avatar>` is a Web Component providing avatar displaying functionality.\n\n```html\n<vaadin-avatar img=\"avatars/avatar-1.jpg\"></vaadin-avatar>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n--------- | ---------------\n`abbr` | The abbreviation element\n`icon` | The icon element\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:----------------------------------|\n| `--vaadin-avatar-background` |\n| `--vaadin-avatar-border-color` |\n| `--vaadin-avatar-border-width` |\n| `--vaadin-avatar-font-size` |\n| `--vaadin-avatar-font-weight` |\n| `--vaadin-avatar-size` |\n| `--vaadin-avatar-text-color` |\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`focus-ring` | Set when the avatar is focused using the keyboard.\n`focused` | Set when the avatar is focused.\n`has-color-index` | Set when the avatar has `colorIndex` and the corresponding custom CSS property exists.\n`has-tooltip` | Set when the element has a slotted tooltip.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
183
183
  "name": "Avatar",
184
184
  "members": [
185
185
  {
@@ -267,34 +267,6 @@
267
267
  }
268
268
  }
269
269
  ],
270
- "mixins": [
271
- {
272
- "name": "AvatarMixin",
273
- "module": "src/vaadin-avatar-mixin.js"
274
- },
275
- {
276
- "name": "ElementMixin",
277
- "package": "@vaadin/component-base/src/element-mixin.js"
278
- },
279
- {
280
- "name": "ThemableMixin",
281
- "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
282
- },
283
- {
284
- "name": "PolylitMixin",
285
- "package": "@vaadin/component-base/src/polylit-mixin.js"
286
- },
287
- {
288
- "name": "LumoInjectionMixin",
289
- "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
290
- }
291
- ],
292
- "superclass": {
293
- "name": "LitElement",
294
- "package": "lit"
295
- },
296
- "tagName": "vaadin-avatar",
297
- "customElement": true,
298
270
  "attributes": [
299
271
  {
300
272
  "name": "abbr",
@@ -356,6 +328,13 @@
356
328
  "module": "src/vaadin-avatar-mixin.js"
357
329
  }
358
330
  },
331
+ {
332
+ "type": {
333
+ "text": "string"
334
+ },
335
+ "description": "The theme variants to apply to the component.",
336
+ "name": "theme"
337
+ },
359
338
  {
360
339
  "name": "with-tooltip",
361
340
  "type": {
@@ -369,6 +348,34 @@
369
348
  }
370
349
  }
371
350
  ],
351
+ "mixins": [
352
+ {
353
+ "name": "AvatarMixin",
354
+ "module": "src/vaadin-avatar-mixin.js"
355
+ },
356
+ {
357
+ "name": "ElementMixin",
358
+ "package": "@vaadin/component-base/src/element-mixin.js"
359
+ },
360
+ {
361
+ "name": "ThemableMixin",
362
+ "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
363
+ },
364
+ {
365
+ "name": "PolylitMixin",
366
+ "package": "@vaadin/component-base/src/polylit-mixin.js"
367
+ },
368
+ {
369
+ "name": "LumoInjectionMixin",
370
+ "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
371
+ }
372
+ ],
373
+ "superclass": {
374
+ "name": "LitElement",
375
+ "package": "lit"
376
+ },
377
+ "tagName": "vaadin-avatar",
378
+ "customElement": true,
372
379
  "events": []
373
380
  }
374
381
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/avatar",
3
- "version": "25.3.0-dev.3a3c2d7d2a",
3
+ "version": "25.3.0-rc1",
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.3.0-dev.3a3c2d7d2a",
40
- "@vaadin/component-base": "25.3.0-dev.3a3c2d7d2a",
41
- "@vaadin/tooltip": "25.3.0-dev.3a3c2d7d2a",
42
- "@vaadin/vaadin-themable-mixin": "25.3.0-dev.3a3c2d7d2a",
39
+ "@vaadin/a11y-base": "25.3.0-rc1",
40
+ "@vaadin/component-base": "25.3.0-rc1",
41
+ "@vaadin/tooltip": "25.3.0-rc1",
42
+ "@vaadin/vaadin-themable-mixin": "25.3.0-rc1",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/aura": "25.3.0-dev.3a3c2d7d2a",
47
- "@vaadin/chai-plugins": "25.3.0-dev.3a3c2d7d2a",
48
- "@vaadin/test-runner-commands": "25.3.0-dev.3a3c2d7d2a",
46
+ "@vaadin/aura": "25.3.0-rc1",
47
+ "@vaadin/chai-plugins": "25.3.0-rc1",
48
+ "@vaadin/test-runner-commands": "25.3.0-rc1",
49
49
  "@vaadin/testing-helpers": "^2.0.0",
50
- "@vaadin/vaadin-lumo-styles": "25.3.0-dev.3a3c2d7d2a",
50
+ "@vaadin/vaadin-lumo-styles": "25.3.0-rc1",
51
51
  "sinon": "^22.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": "ac506ca7800c23e05da55863c56bcedf12812d37"
58
+ "gitHead": "d4809590b2f61bd607e376ab3dec84f4bfb059a7"
59
59
  }
@@ -27,15 +27,15 @@ export { AvatarI18n } from './vaadin-avatar-mixin.js';
27
27
  *
28
28
  * The following custom CSS properties are available for styling:
29
29
  *
30
- * Custom CSS property | Description
31
- * -------------------------------|-------------
32
- * `--vaadin-avatar-background` | Background color of the avatar
33
- * `--vaadin-avatar-border-color` | Border color of the avatar
34
- * `--vaadin-avatar-border-width` | Border width of the avatar
35
- * `--vaadin-avatar-font-size` | Font size of the avatar
36
- * `--vaadin-avatar-font-weight` | Font weight of the avatar
37
- * `--vaadin-avatar-size` | Size of the avatar
38
- * `--vaadin-avatar-text-color` | Text color of the avatar
30
+ * Custom CSS property |
31
+ * :----------------------------------|
32
+ * | `--vaadin-avatar-background` |
33
+ * | `--vaadin-avatar-border-color` |
34
+ * | `--vaadin-avatar-border-width` |
35
+ * | `--vaadin-avatar-font-size` |
36
+ * | `--vaadin-avatar-font-weight` |
37
+ * | `--vaadin-avatar-size` |
38
+ * | `--vaadin-avatar-text-color` |
39
39
  *
40
40
  * The following state attributes are available for styling:
41
41
  *
@@ -33,15 +33,15 @@ import { AvatarMixin } from './vaadin-avatar-mixin.js';
33
33
  *
34
34
  * The following custom CSS properties are available for styling:
35
35
  *
36
- * Custom CSS property | Description
37
- * -------------------------------|-------------
38
- * `--vaadin-avatar-background` | Background color of the avatar
39
- * `--vaadin-avatar-border-color` | Border color of the avatar
40
- * `--vaadin-avatar-border-width` | Border width of the avatar
41
- * `--vaadin-avatar-font-size` | Font size of the avatar
42
- * `--vaadin-avatar-font-weight` | Font weight of the avatar
43
- * `--vaadin-avatar-size` | Size of the avatar
44
- * `--vaadin-avatar-text-color` | Text color of the avatar
36
+ * Custom CSS property |
37
+ * :----------------------------------|
38
+ * | `--vaadin-avatar-background` |
39
+ * | `--vaadin-avatar-border-color` |
40
+ * | `--vaadin-avatar-border-width` |
41
+ * | `--vaadin-avatar-font-size` |
42
+ * | `--vaadin-avatar-font-weight` |
43
+ * | `--vaadin-avatar-size` |
44
+ * | `--vaadin-avatar-text-color` |
45
45
  *
46
46
  * The following state attributes are available for styling:
47
47
  *
@@ -54,6 +54,7 @@ import { AvatarMixin } from './vaadin-avatar-mixin.js';
54
54
  *
55
55
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
56
56
  *
57
+ * @attr {string} theme - The theme variants to apply to the component.
57
58
  * @customElement vaadin-avatar
58
59
  * @extends HTMLElement
59
60
  */
package/web-types.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/avatar",
4
- "version": "25.3.0-dev.3a3c2d7d2a",
4
+ "version": "25.3.0-rc1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-avatar",
11
- "description": "`<vaadin-avatar>` is a Web Component providing avatar displaying functionality.\n\n```html\n<vaadin-avatar img=\"avatars/avatar-1.jpg\"></vaadin-avatar>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n--------- | ---------------\n`abbr` | The abbreviation element\n`icon` | The icon element\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property | Description\n-------------------------------|-------------\n`--vaadin-avatar-background` | Background color of the avatar\n`--vaadin-avatar-border-color` | Border color of the avatar\n`--vaadin-avatar-border-width` | Border width of the avatar\n`--vaadin-avatar-font-size` | Font size of the avatar\n`--vaadin-avatar-font-weight` | Font weight of the avatar\n`--vaadin-avatar-size` | Size of the avatar\n`--vaadin-avatar-text-color` | Text color of the avatar\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`focus-ring` | Set when the avatar is focused using the keyboard.\n`focused` | Set when the avatar is focused.\n`has-color-index` | Set when the avatar has `colorIndex` and the corresponding custom CSS property exists.\n`has-tooltip` | Set when the element has a slotted tooltip.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
11
+ "description": "`<vaadin-avatar>` is a Web Component providing avatar displaying functionality.\n\n```html\n<vaadin-avatar img=\"avatars/avatar-1.jpg\"></vaadin-avatar>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n--------- | ---------------\n`abbr` | The abbreviation element\n`icon` | The icon element\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:----------------------------------|\n| `--vaadin-avatar-background` |\n| `--vaadin-avatar-border-color` |\n| `--vaadin-avatar-border-width` |\n| `--vaadin-avatar-font-size` |\n| `--vaadin-avatar-font-weight` |\n| `--vaadin-avatar-size` |\n| `--vaadin-avatar-text-color` |\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`focus-ring` | Set when the avatar is focused using the keyboard.\n`focused` | Set when the avatar is focused.\n`has-color-index` | Set when the avatar has `colorIndex` and the corresponding custom CSS property exists.\n`has-tooltip` | Set when the element has a slotted tooltip.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "abbr",
@@ -51,9 +51,7 @@
51
51
  "description": "The theme variants to apply to the component.",
52
52
  "value": {
53
53
  "type": [
54
- "string",
55
- "null",
56
- "undefined"
54
+ "string"
57
55
  ]
58
56
  }
59
57
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/avatar",
4
- "version": "25.3.0-dev.3a3c2d7d2a",
4
+ "version": "25.3.0-rc1",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,7 +16,7 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-avatar",
19
- "description": "`<vaadin-avatar>` is a Web Component providing avatar displaying functionality.\n\n```html\n<vaadin-avatar img=\"avatars/avatar-1.jpg\"></vaadin-avatar>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n--------- | ---------------\n`abbr` | The abbreviation element\n`icon` | The icon element\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property | Description\n-------------------------------|-------------\n`--vaadin-avatar-background` | Background color of the avatar\n`--vaadin-avatar-border-color` | Border color of the avatar\n`--vaadin-avatar-border-width` | Border width of the avatar\n`--vaadin-avatar-font-size` | Font size of the avatar\n`--vaadin-avatar-font-weight` | Font weight of the avatar\n`--vaadin-avatar-size` | Size of the avatar\n`--vaadin-avatar-text-color` | Text color of the avatar\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`focus-ring` | Set when the avatar is focused using the keyboard.\n`focused` | Set when the avatar is focused.\n`has-color-index` | Set when the avatar has `colorIndex` and the corresponding custom CSS property exists.\n`has-tooltip` | Set when the element has a slotted tooltip.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
19
+ "description": "`<vaadin-avatar>` is a Web Component providing avatar displaying functionality.\n\n```html\n<vaadin-avatar img=\"avatars/avatar-1.jpg\"></vaadin-avatar>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n--------- | ---------------\n`abbr` | The abbreviation element\n`icon` | The icon element\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:----------------------------------|\n| `--vaadin-avatar-background` |\n| `--vaadin-avatar-border-color` |\n| `--vaadin-avatar-border-width` |\n| `--vaadin-avatar-font-size` |\n| `--vaadin-avatar-font-weight` |\n| `--vaadin-avatar-size` |\n| `--vaadin-avatar-text-color` |\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`focus-ring` | Set when the avatar is focused using the keyboard.\n`focused` | Set when the avatar is focused.\n`has-color-index` | Set when the avatar has `colorIndex` and the corresponding custom CSS property exists.\n`has-tooltip` | Set when the element has a slotted tooltip.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {