@htmlbricks/hb-site-contacts-row 0.71.36 → 0.71.37
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 +11 -3
- package/manifest.json +2 -19
- package/package.json +2 -2
- package/types/webcomponent.type.d.ts +1 -3
- package/types/webcomponent_events.type.d.json +0 -17
package/README.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
The component registers the custom element **`hb-site-contacts-row`**. It runs inside a **shadow root** with Bulma layout and typography, and loads the **Bootstrap Icons** font from jsDelivr in `<svelte:head>`.
|
|
12
12
|
|
|
13
|
+
## Custom element
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<hb-site-contacts-row …></hb-site-contacts-row>
|
|
17
|
+
```
|
|
18
|
+
|
|
13
19
|
## Layout: `model`
|
|
14
20
|
|
|
15
21
|
- **`small`** — Compact blocks: addresses use an inline “icon + content” row; phones, emails, websites, and availability use column halves on tablet and full width on mobile.
|
|
@@ -19,8 +25,6 @@ The component registers the custom element **`hb-site-contacts-row`**. It runs i
|
|
|
19
25
|
|
|
20
26
|
**Invalid values:** Any `model` other than `small` or `big` renders the fallback text `wrong model provided` plus the value you passed (still inside the shadow tree).
|
|
21
27
|
|
|
22
|
-
> The metadata description mentions “auto” layouts; the current Svelte implementation only supports **`big`** and **`small`**. Omitting `model` is the same as **`small`**, not a separate adaptive mode.
|
|
23
|
-
|
|
24
28
|
## Attributes (HTML)
|
|
25
29
|
|
|
26
30
|
Use **snake_case** attribute names. From plain HTML, pass **objects as JSON strings** (single-quoted in HTML, escaped quotes inside JSON).
|
|
@@ -98,7 +102,7 @@ For each address with non-empty `address`:
|
|
|
98
102
|
|
|
99
103
|
## Events
|
|
100
104
|
|
|
101
|
-
`types/webcomponent.type.d.ts` declares
|
|
105
|
+
`types/webcomponent.type.d.ts` declares **`Events`** as `{}` (no custom events). The current `component.wc.svelte` does not dispatch custom events.
|
|
102
106
|
|
|
103
107
|
## Styling
|
|
104
108
|
|
|
@@ -150,3 +154,7 @@ None. All content is supplied via JSON attributes.
|
|
|
150
154
|
## Authoring types
|
|
151
155
|
|
|
152
156
|
For Svelte or TypeScript consumers, see `types/webcomponent.type.d.ts` for the full `Component`, `Address`, `Phone`, `Email`, `Website`, and `Events` definitions.
|
|
157
|
+
|
|
158
|
+
## License
|
|
159
|
+
|
|
160
|
+
Package metadata references **Apache-2.0** (see `LICENSE.md` in the published package when consuming from npm).
|
package/manifest.json
CHANGED
|
@@ -6,23 +6,6 @@
|
|
|
6
6
|
"definitions": {
|
|
7
7
|
"Events": {
|
|
8
8
|
"additionalProperties": false,
|
|
9
|
-
"properties": {
|
|
10
|
-
"event": {
|
|
11
|
-
"additionalProperties": false,
|
|
12
|
-
"properties": {
|
|
13
|
-
"test": {
|
|
14
|
-
"type": "boolean"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"required": [
|
|
18
|
-
"test"
|
|
19
|
-
],
|
|
20
|
-
"type": "object"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"required": [
|
|
24
|
-
"event"
|
|
25
|
-
],
|
|
26
9
|
"type": "object"
|
|
27
10
|
}
|
|
28
11
|
}
|
|
@@ -236,7 +219,7 @@
|
|
|
236
219
|
}
|
|
237
220
|
}
|
|
238
221
|
},
|
|
239
|
-
"description": "Contact strip for addresses (with optional `latLng`), phones, emails, websites, and `availability` (times, appointment flag). `model` `big`
|
|
222
|
+
"description": "Contact strip for addresses (with optional `latLng` or `link`), phones, emails, websites, and `availability` (times, optional appointment flag). Layout `model` is `big` or `small` (implementation defaults to `small` when omitted).",
|
|
240
223
|
"storybookArgs": {
|
|
241
224
|
"addresses": {
|
|
242
225
|
"control": {
|
|
@@ -734,5 +717,5 @@
|
|
|
734
717
|
"size": {},
|
|
735
718
|
"iifePath": "main.iife.js",
|
|
736
719
|
"repoName": "@htmlbricks/hb-site-contacts-row",
|
|
737
|
-
"version": "0.71.
|
|
720
|
+
"version": "0.71.37"
|
|
738
721
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-site-contacts-row",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.37",
|
|
4
4
|
"contributors": [],
|
|
5
|
-
"description": "Contact strip for addresses (with optional `latLng`), phones, emails, websites, and `availability` (times, appointment flag). `model` `big`
|
|
5
|
+
"description": "Contact strip for addresses (with optional `latLng` or `link`), phones, emails, websites, and `availability` (times, optional appointment flag). Layout `model` is `big` or `small` (implementation defaults to `small` when omitted).",
|
|
6
6
|
"licenses": [
|
|
7
7
|
{
|
|
8
8
|
"type": "Apache-2.0",
|
|
@@ -4,23 +4,6 @@
|
|
|
4
4
|
"definitions": {
|
|
5
5
|
"Events": {
|
|
6
6
|
"additionalProperties": false,
|
|
7
|
-
"properties": {
|
|
8
|
-
"event": {
|
|
9
|
-
"additionalProperties": false,
|
|
10
|
-
"properties": {
|
|
11
|
-
"test": {
|
|
12
|
-
"type": "boolean"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"required": [
|
|
16
|
-
"test"
|
|
17
|
-
],
|
|
18
|
-
"type": "object"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"required": [
|
|
22
|
-
"event"
|
|
23
|
-
],
|
|
24
7
|
"type": "object"
|
|
25
8
|
}
|
|
26
9
|
}
|