@loomidev/contact-card 0.4.1 → 0.6.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @loomidev/contact-card
2
2
 
3
- `<loomi-contact-card>` — a ready-made card for displaying a contact, with avatar, name,
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 — same fallback behavior as [`<loomi-avatar>`](../avatar).
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) — a path, full URL, or JS function
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 — useful for tags, a short bio, or
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 — Accessibility](https://loomiui.com/foundations/#accessibility).
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 — Responsive behavior](https://loomiui.com/foundations/#responsive-behavior).
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 — Dark mode](https://loomiui.com/foundations/#dark-mode).
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
 
@@ -1,5 +1,5 @@
1
1
  // Generated by @loomidev/contact-card — do not edit by hand. Run `pnpm build` to regenerate.
2
2
  import { unsafeCSS } from "lit";
3
3
  /** Compiled, Shadow-DOM-scoped styles. Colors resolve via `var(--loomi-*)`. */
4
- export const componentStyles = unsafeCSS("/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n@layer theme,base,components,utilities;:host{display:block}:host([hidden]){display:none}.loomi-cc{color:var(--loomi-text-secondary);gap:1rem;display:flex}.loomi-cc.clickable{cursor:pointer}.loomi-cc.centered{text-align:center;flex-direction:column;align-items:center}.loomi-cc.flush{margin:calc(-1 * var(--loomi-card-spacing,1rem))}.loomi-avatar{object-fit:cover;background:var(--loomi-surface-hover);width:3.5rem;height:3.5rem;color:var(--loomi-text-muted);text-transform:uppercase;border-radius:9999px;flex:none;justify-content:center;align-items:center;font-weight:600;display:flex}.loomi-body{min-width:0}.loomi-name{color:var(--loomi-text);font-size:1.05rem;font-weight:600}.loomi-position{color:var(--loomi-text-muted);margin-bottom:.4rem;font-size:.875rem}.loomi-row{color:var(--loomi-text-secondary);align-items:center;gap:.45rem;margin-top:.2rem;font-size:.85rem;display:flex}.loomi-cc.centered .loomi-row{justify-content:center}.loomi-row svg{width:1rem;height:1rem;color:var(--loomi-text-faint);flex:none}.loomi-row a{color:inherit;text-decoration:none}.loomi-row a:hover{text-decoration:underline}");
4
+ export const componentStyles = unsafeCSS("/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer theme,base,components,utilities;:host{display:block}:host([hidden]){display:none}.loomi-cc{color:var(--loomi-text-secondary);gap:1rem;display:flex}.loomi-cc.clickable{cursor:pointer}.loomi-cc.centered{text-align:center;flex-direction:column;align-items:center}.loomi-cc.flush{margin:calc(-1 * var(--loomi-card-spacing,1rem))}.loomi-avatar{object-fit:cover;background:var(--loomi-surface-hover);width:3.5rem;height:3.5rem;color:var(--loomi-text-muted);text-transform:uppercase;border-radius:9999px;flex:none;justify-content:center;align-items:center;font-weight:600;display:flex}.loomi-body{min-width:0}.loomi-name{color:var(--loomi-text);font-size:1.05rem;font-weight:600}.loomi-position{color:var(--loomi-text-muted);margin-bottom:.4rem;font-size:.875rem}.loomi-row{color:var(--loomi-text-secondary);align-items:center;gap:.45rem;margin-top:.2rem;font-size:.85rem;display:flex}.loomi-cc.centered .loomi-row{justify-content:center}.loomi-row svg{width:1rem;height:1rem;color:var(--loomi-text-faint);flex:none}.loomi-row a{color:inherit;text-decoration:none}.loomi-row a:hover{text-decoration:underline}");
5
5
  //# sourceMappingURL=styles.css.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomidev/contact-card",
3
- "version": "0.4.1",
3
+ "version": "0.6.0",
4
4
  "description": "<loomi-contact-card> — a ready-made contact card.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,19 +30,19 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@loomidev/card": "^0.4.1",
34
- "@loomidev/core": "^0.4.1",
35
- "@loomidev/icons": "^0.4.1"
33
+ "@loomidev/card": "^0.6.0",
34
+ "@loomidev/core": "^0.6.0",
35
+ "@loomidev/icons": "^0.6.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "lit": "^3.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@tailwindcss/cli": "^4.0.0",
41
+ "@tailwindcss/cli": "^4.3.3",
42
42
  "lit": "^3.3.3",
43
- "tailwindcss": "^4.0.0",
43
+ "tailwindcss": "^4.3.3",
44
44
  "typescript": "^5.6.3",
45
- "@loomidev/theme": "^0.4.1"
45
+ "@loomidev/theme": "^0.6.0"
46
46
  },
47
47
  "keywords": [
48
48
  "web-components",