@htmlbricks/hb-vertical-img-txt-archive 0.71.35 → 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/manifest.json CHANGED
@@ -10,6 +10,14 @@
10
10
  "collectionItemClick": {
11
11
  "additionalProperties": false,
12
12
  "properties": {
13
+ "link_type": {
14
+ "enum": [
15
+ "tab",
16
+ "page",
17
+ "event"
18
+ ],
19
+ "type": "string"
20
+ },
13
21
  "uri": {
14
22
  "type": "string"
15
23
  }
@@ -44,6 +52,7 @@
44
52
  "type": "string"
45
53
  },
46
54
  "size": {
55
+ "description": "Reserved for future layout tuning; column count is derived from viewport width.",
47
56
  "type": "number"
48
57
  },
49
58
  "style": {
@@ -66,6 +75,7 @@
66
75
  },
67
76
  "link": {
68
77
  "additionalProperties": false,
78
+ "description": "When set, the card is clickable: dispatches `collectionItemClick` and applies `tab` / `page` navigation; `event` only notifies the host.",
69
79
  "properties": {
70
80
  "type": {
71
81
  "enum": [
@@ -98,7 +108,6 @@
98
108
  "required": [
99
109
  "title",
100
110
  "text",
101
- "link",
102
111
  "image"
103
112
  ],
104
113
  "type": "object"
@@ -106,7 +115,7 @@
106
115
  }
107
116
  }
108
117
  },
109
- "description": "Vertical archive grid: `collection` items with `title`, `text`, `image`, and `link` (e.g. `type` + `uri`). Optional `size` sets column count; CSS parts style container, item, image, title, and text. Emits `collectionItemClick` when an item is chosen.",
118
+ "description": "Vertical archive grid: `collection` items with `title`, `text`, `image`, and optional `link` (`type` + `uri`). Clicking a card with a link dispatches `collectionItemClick` and performs `tab` / `page` navigation; `event` link types only emit. CSS parts style container, item, image, title, and text.",
110
119
  "storybookArgs": {
111
120
  "collection": {
112
121
  "control": {
@@ -119,26 +128,68 @@
119
128
  }
120
129
  },
121
130
  "collectionItemClick": {
122
- "collectionItemClick": "eventEvent"
131
+ "action": "collectionItemClick"
123
132
  }
124
133
  },
125
134
  "styleSetup": {
126
- "vars": [],
135
+ "vars": [
136
+ {
137
+ "name": "--bulma-block-spacing",
138
+ "valueType": "number",
139
+ "defaultValue": "",
140
+ "description": "Grid gap between archive cards."
141
+ },
142
+ {
143
+ "name": "--bulma-radius",
144
+ "valueType": "number",
145
+ "defaultValue": "",
146
+ "description": "Rounded corners on card images."
147
+ },
148
+ {
149
+ "name": "--bulma-column-gap",
150
+ "valueType": "number",
151
+ "defaultValue": "",
152
+ "description": "Space between image stack and text block."
153
+ },
154
+ {
155
+ "name": "--bulma-size-5",
156
+ "valueType": "number",
157
+ "defaultValue": "",
158
+ "description": "Card title (`h3`) font size."
159
+ },
160
+ {
161
+ "name": "--bulma-text",
162
+ "valueType": "color",
163
+ "defaultValue": "",
164
+ "description": "Body copy color under each title."
165
+ },
166
+ {
167
+ "name": "--bulma-line-height-main",
168
+ "valueType": "number",
169
+ "defaultValue": "",
170
+ "description": "Line height for description paragraphs."
171
+ }
172
+ ],
127
173
  "parts": [
128
174
  {
129
- "name": "container"
175
+ "name": "container",
176
+ "description": "CSS grid host; column count follows viewport width (not the optional `size` prop)."
130
177
  },
131
178
  {
132
- "name": "item"
179
+ "name": "item",
180
+ "description": "Single archive card wrapper (image + text column)."
133
181
  },
134
182
  {
135
- "name": "image"
183
+ "name": "image",
184
+ "description": "Cover image element for the card."
136
185
  },
137
186
  {
138
- "name": "title"
187
+ "name": "title",
188
+ "description": "Card heading (`h3`)."
139
189
  },
140
190
  {
141
- "name": "text"
191
+ "name": "text",
192
+ "description": "Supporting paragraph under the title."
142
193
  }
143
194
  ]
144
195
  },
@@ -378,7 +429,7 @@
378
429
  }
379
430
  }
380
431
  ],
381
- "iifeIntegrity": "sha384-NjMP2z4SJRYGrqckfTGCIpeonzU/HjrpwlKmzqzaztGWXYdhLeC0CYnHzEbN6cL5",
432
+ "iifeIntegrity": "sha384-gZbNjFzZEIOLk21lxyWkiqYceE79JVZFYcKEJxaqubJWKTrK2l+nFPhfnhyL12HX",
382
433
  "dependencies": [],
383
434
  "screenshots": [],
384
435
  "licenses": [
@@ -399,5 +450,5 @@
399
450
  "size": {},
400
451
  "iifePath": "main.iife.js",
401
452
  "repoName": "@htmlbricks/hb-vertical-img-txt-archive",
402
- "version": "0.71.35"
453
+ "version": "0.71.37"
403
454
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-vertical-img-txt-archive",
3
- "version": "0.71.35",
3
+ "version": "0.71.37",
4
4
  "contributors": [],
5
- "description": "Vertical archive grid: `collection` items with `title`, `text`, `image`, and `link` (e.g. `type` + `uri`). Optional `size` sets column count; CSS parts style container, item, image, title, and text. Emits `collectionItemClick` when an item is chosen.",
5
+ "description": "Vertical archive grid: `collection` items with `title`, `text`, `image`, and optional `link` (`type` + `uri`). Clicking a card with a link dispatches `collectionItemClick` and performs `tab` / `page` navigation; `event` link types only emit. CSS parts style container, item, image, title, and text.",
6
6
  "licenses": [
7
7
  {
8
8
  "type": "Apache-2.0",
@@ -15,6 +15,7 @@
15
15
  "type": "string"
16
16
  },
17
17
  "size": {
18
+ "description": "Reserved for future layout tuning; column count is derived from viewport width.",
18
19
  "type": "number"
19
20
  },
20
21
  "style": {
@@ -37,6 +38,7 @@
37
38
  },
38
39
  "link": {
39
40
  "additionalProperties": false,
41
+ "description": "When set, the card is clickable: dispatches `collectionItemClick` and applies `tab` / `page` navigation; `event` only notifies the host.",
40
42
  "properties": {
41
43
  "type": {
42
44
  "enum": [
@@ -69,7 +71,6 @@
69
71
  "required": [
70
72
  "title",
71
73
  "text",
72
- "link",
73
74
  "image"
74
75
  ],
75
76
  "type": "object"
@@ -2,7 +2,8 @@ export type Item = {
2
2
  title: string;
3
3
  subtitle?: string;
4
4
  text: string;
5
- link: { type: "tab" | "page" | "event"; uri: string };
5
+ /** When set, the card is clickable: dispatches `collectionItemClick` and applies `tab` / `page` navigation; `event` only notifies the host. */
6
+ link?: { type: "tab" | "page" | "event"; uri: string };
6
7
  index?: number;
7
8
  image: string;
8
9
  };
@@ -11,9 +12,10 @@ export type Component = {
11
12
  id?: string;
12
13
  style?: string;
13
14
  collection: Item[];
15
+ /** Reserved for future layout tuning; column count is derived from viewport width. */
14
16
  size?: number;
15
17
  };
16
18
 
17
19
  export type Events = {
18
- collectionItemClick: { uri: string };
20
+ collectionItemClick: { uri: string; link_type?: "tab" | "page" | "event" };
19
21
  };
@@ -8,6 +8,14 @@
8
8
  "collectionItemClick": {
9
9
  "additionalProperties": false,
10
10
  "properties": {
11
+ "link_type": {
12
+ "enum": [
13
+ "tab",
14
+ "page",
15
+ "event"
16
+ ],
17
+ "type": "string"
18
+ },
11
19
  "uri": {
12
20
  "type": "string"
13
21
  }