@loomidev/contact-card 0.5.0 → 0.7.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 +8 -9
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @loomidev/contact-card
|
|
2
2
|
|
|
3
|
-
`<loomi-contact-card>`
|
|
3
|
+
`<loomi-contact-card>` - a ready-made card for displaying a contact, with avatar, name,
|
|
4
4
|
position and contact rows. Saves you from manually building this layout out of
|
|
5
5
|
[`<loomi-card>`](../card) and [`<loomi-avatar>`](../avatar) every time.
|
|
6
6
|
|
|
@@ -34,12 +34,11 @@ A default avatar placeholder is used when `image` isn't set.
|
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
When no `image` is set, initials are derived from `name` and shown as a label avatar
|
|
37
|
-
instead
|
|
37
|
+
instead - same fallback behavior as [`<loomi-avatar>`](../avatar).
|
|
38
38
|
|
|
39
39
|
## Centered Layout
|
|
40
40
|
|
|
41
|
-
`centered` reflows the card to stack the avatar above the details, vertically centered
|
|
42
|
-
— handy in a grid of team members.
|
|
41
|
+
`centered` reflows the card to stack the avatar above the details, vertically centered - handy in a grid of team members.
|
|
43
42
|
|
|
44
43
|
```html
|
|
45
44
|
<div style="display:grid;grid-template-columns:repeat(3,1fr);gap:1rem">
|
|
@@ -51,7 +50,7 @@ instead — same fallback behavior as [`<loomi-avatar>`](../avatar).
|
|
|
51
50
|
|
|
52
51
|
## Clickable Contact Cards
|
|
53
52
|
|
|
54
|
-
Same `url` semantics as [`<loomi-card>`](../card)
|
|
53
|
+
Same `url` semantics as [`<loomi-card>`](../card) - a path, full URL, or JS function
|
|
55
54
|
call.
|
|
56
55
|
|
|
57
56
|
```html
|
|
@@ -60,7 +59,7 @@ call.
|
|
|
60
59
|
|
|
61
60
|
## Extra Content
|
|
62
61
|
|
|
63
|
-
The default slot renders below the contact details
|
|
62
|
+
The default slot renders below the contact details - useful for tags, a short bio, or
|
|
64
63
|
action buttons.
|
|
65
64
|
|
|
66
65
|
```html
|
|
@@ -79,15 +78,15 @@ action buttons.
|
|
|
79
78
|
|
|
80
79
|
## Accessibility
|
|
81
80
|
|
|
82
|
-
For the library-wide baseline, see [Foundations
|
|
81
|
+
For the library-wide baseline, see [Foundations - Accessibility](https://loomiui.com/foundations/#accessibility).
|
|
83
82
|
|
|
84
83
|
## Responsive behavior
|
|
85
84
|
|
|
86
|
-
For the shared container and viewport rules, see [Foundations
|
|
85
|
+
For the shared container and viewport rules, see [Foundations - Responsive behavior](https://loomiui.com/foundations/#responsive-behavior).
|
|
87
86
|
|
|
88
87
|
## Dark mode
|
|
89
88
|
|
|
90
|
-
For theme activation, token overrides, and contrast guidance, see [Foundations
|
|
89
|
+
For theme activation, token overrides, and contrast guidance, see [Foundations - Dark mode](https://loomiui.com/foundations/#dark-mode).
|
|
91
90
|
|
|
92
91
|
## Attributes
|
|
93
92
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loomidev/contact-card",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "<loomi-contact-card> — a ready-made contact card.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@loomidev/card": "^0.
|
|
34
|
-
"@loomidev/
|
|
35
|
-
"@loomidev/
|
|
33
|
+
"@loomidev/card": "^0.7.0",
|
|
34
|
+
"@loomidev/core": "^0.7.0",
|
|
35
|
+
"@loomidev/icons": "^0.7.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"lit": "^3.0.0"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"lit": "^3.3.3",
|
|
43
43
|
"tailwindcss": "^4.3.3",
|
|
44
44
|
"typescript": "^5.6.3",
|
|
45
|
-
"@loomidev/theme": "^0.
|
|
45
|
+
"@loomidev/theme": "^0.7.0"
|
|
46
46
|
},
|
|
47
47
|
"keywords": [
|
|
48
48
|
"web-components",
|