@vaadin/vaadin-avatar 22.0.0-alpha9 → 22.0.0
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/README.md +7 -63
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,68 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @vaadin/vaadin-avatar
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> ⚠️ Starting from Vaadin 22, this package is deprecated.
|
|
4
|
+
> Please use [`@vaadin/avatar`](https://www.npmjs.com/package/@vaadin/avatar) and [`@vaadin/avatar-group`](https://www.npmjs.com/package/@vaadin/avatar-group) instead.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
|
7
|
-
[API documentation ↗](https://vaadin.com/components/vaadin-avatar/html-api)
|
|
6
|
+
A web component for graphical representation of an object or entity, for example a person or an organization.
|
|
8
7
|
|
|
9
|
-
[
|
|
10
|
-
[](https://vaadin.com/directory/component/vaadinvaadin-avatar)
|
|
11
|
-
[](https://discord.gg/PHmkCKC)
|
|
12
|
-
|
|
13
|
-
```html
|
|
14
|
-
<vaadin-avatar></vaadin-avatar>
|
|
15
|
-
<vaadin-avatar name="Jens Jansson"></vaadin-avatar>
|
|
16
|
-
<vaadin-avatar abbr="SK"></vaadin-avatar>
|
|
17
|
-
<vaadin-avatar-group max="2"></vaadin-avatar-group>
|
|
18
|
-
<script>
|
|
19
|
-
document.querySelector('vaadin-avatar-group').items = [
|
|
20
|
-
{ name: 'Foo Bar', colorIndex: 1 },
|
|
21
|
-
{ colorIndex: 2 },
|
|
22
|
-
{ name: 'Foo Bar', colorIndex: 3 }
|
|
23
|
-
];
|
|
24
|
-
</script>
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
[<img src="https://raw.githubusercontent.com/vaadin/vaadin-avatar/master/screenshot.png" width="200" alt="Screenshot of vaadin-avatar">](https://vaadin.com/components/vaadin-avatar)
|
|
28
|
-
|
|
29
|
-
## Installation
|
|
30
|
-
|
|
31
|
-
Install `vaadin-avatar`:
|
|
32
|
-
|
|
33
|
-
```sh
|
|
34
|
-
npm i @vaadin/vaadin-avatar --save
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
Once installed, import it in your application:
|
|
38
|
-
|
|
39
|
-
```js
|
|
40
|
-
import '@vaadin/vaadin-avatar/vaadin-avatar.js';
|
|
41
|
-
import '@vaadin/vaadin-avatar/vaadin-avatar-group.js';
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## Getting started
|
|
45
|
-
|
|
46
|
-
Vaadin components use the Lumo theme by default.
|
|
47
|
-
|
|
48
|
-
To use the Material theme, import the correspondent file from the `theme/material` folder.
|
|
49
|
-
|
|
50
|
-
## Entry points
|
|
51
|
-
|
|
52
|
-
- The components with the Lumo theme:
|
|
53
|
-
|
|
54
|
-
`theme/lumo/vaadin-avatar.js`
|
|
55
|
-
`theme/lumo/vaadin-avatar-group.js`
|
|
56
|
-
|
|
57
|
-
- The components with the Material theme:
|
|
58
|
-
|
|
59
|
-
`theme/material/vaadin-avatar.js`
|
|
60
|
-
`theme/material/vaadin-avatar-group.js`
|
|
61
|
-
|
|
62
|
-
- Alias for `theme/lumo/vaadin-avatar.js` `theme/lumo/vaadin-avatar-group.js`:
|
|
63
|
-
|
|
64
|
-
`vaadin-avatar.js`
|
|
65
|
-
`vaadin-avatar-group.js`
|
|
8
|
+
[Documentation + Live Demo ↗](https://vaadin.com/docs/latest/ds/components/avatar)
|
|
66
9
|
|
|
67
10
|
## Contributing
|
|
68
11
|
|
|
@@ -72,4 +15,5 @@ Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/
|
|
|
72
15
|
|
|
73
16
|
Apache License 2.0
|
|
74
17
|
|
|
75
|
-
Vaadin collects development time
|
|
18
|
+
Vaadin collects usage statistics at development time to improve this product..
|
|
19
|
+
For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/vaadin-avatar",
|
|
3
|
-
"version": "22.0.0
|
|
3
|
+
"version": "22.0.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"polymer"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vaadin/avatar": "22.0.0
|
|
36
|
-
"@vaadin/avatar-group": "22.0.0
|
|
35
|
+
"@vaadin/avatar": "^22.0.0",
|
|
36
|
+
"@vaadin/avatar-group": "^22.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@esm-bundle/chai": "^4.3.4",
|
|
40
|
-
"@vaadin/testing-helpers": "^0.3.
|
|
40
|
+
"@vaadin/testing-helpers": "^0.3.2",
|
|
41
41
|
"sinon": "^9.2.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "b668e9b1a975227fbe34beb70d1cd5b03dce2348"
|
|
44
44
|
}
|