@htmlbricks/hb-site-contacts-row 0.66.8 → 0.66.10
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 +40 -0
- package/manifest.json +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
## `hb-site-contacts-row` — site-contacts-row
|
|
2
|
+
|
|
3
|
+
**Category:** content
|
|
4
|
+
**Tags:** content, contact
|
|
5
|
+
|
|
6
|
+
### What it does
|
|
7
|
+
|
|
8
|
+
Contact strip for addresses (with optional `latLng`), phones, emails, websites, and `availability` (times, appointment flag). `model` `big` / `small` or omit for auto layouts that adapt to which fields you pass.
|
|
9
|
+
|
|
10
|
+
### Custom element
|
|
11
|
+
|
|
12
|
+
`hb-site-contacts-row`
|
|
13
|
+
|
|
14
|
+
### Attributes (snake_case; use string values in HTML)
|
|
15
|
+
|
|
16
|
+
- `id` (optional): string.
|
|
17
|
+
- `style` (optional): string (inline style).
|
|
18
|
+
- `availability` (optional): JSON string — `{ icon?, times: string[], title?, appointment? }`.
|
|
19
|
+
- `addresses` (optional): JSON string — `{ icon?, addresses: Address[], title? }` (`Address`: `address`, optional `latLng`, `link`, `name`).
|
|
20
|
+
- `phones` (optional): JSON string — `{ icon?, phones: { name?, number }[], title? }`.
|
|
21
|
+
- `emails` (optional): JSON string — `{ icon?, emails: { label?, address, name? }[], title? }`.
|
|
22
|
+
- `websites` (optional): JSON string — `{ icon?, websites: { label?, url, name? }[], title? }`.
|
|
23
|
+
- `model` (optional): `"big"` | `"small"`.
|
|
24
|
+
|
|
25
|
+
### Events
|
|
26
|
+
|
|
27
|
+
- `event`: `{ test: boolean }` (integration hook per typings).
|
|
28
|
+
|
|
29
|
+
### Usage notes
|
|
30
|
+
|
|
31
|
+
- No named slots in `extra/docs.ts`. Pass complex blocks as JSON attributes or bind after custom element upgrade.
|
|
32
|
+
|
|
33
|
+
### Minimal HTML example
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<hb-site-contacts-row
|
|
37
|
+
model="small"
|
|
38
|
+
emails='{"emails":[{"label":"Info","address":"info@example.com","name":"main"}]}'
|
|
39
|
+
></hb-site-contacts-row>
|
|
40
|
+
```
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-site-contacts-row",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.10",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Contact strip for addresses (with optional `latLng`), phones, emails, websites, and `availability` (times, appointment flag). `model` `big` / `small` or omit for auto layouts that adapt to which fields you pass.",
|
|
6
6
|
"licenses": [
|