@qld-gov-au/qgds-bootstrap5 1.0.7 → 1.0.9

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.
Files changed (70) hide show
  1. package/.storybook/preview.js +2 -1
  2. package/dist/assets/css/qld.bootstrap.css +1 -1
  3. package/dist/assets/css/qld.bootstrap.css.map +2 -2
  4. package/dist/assets/js/handlebars.helpers.bundle.js +1 -1
  5. package/dist/assets/js/handlebars.helpers.bundle.js.map +3 -3
  6. package/dist/assets/js/handlebars.helpers.js +8 -1
  7. package/dist/assets/js/qld.bootstrap.min.js +16 -1
  8. package/dist/assets/js/qld.bootstrap.min.js.map +4 -4
  9. package/dist/components/bs5/dateinput/dateinput.hbs +12 -12
  10. package/dist/components/bs5/header/header.hbs +131 -33
  11. package/dist/components/bs5/navbar/navbar.hbs +65 -3
  12. package/dist/components/bs5/select/select.hbs +3 -3
  13. package/dist/components/bs5/textarea/textarea.hbs +8 -8
  14. package/dist/components/bs5/textbox/textbox.hbs +7 -6
  15. package/dist/components/bs5/video/video.hbs +10 -11
  16. package/dist/components/handlebars.helpers.js +8 -1
  17. package/dist/components/handlebars.init.bundle.js +1 -1
  18. package/dist/components/handlebars.init.bundle.js.map +3 -3
  19. package/dist/sample-data/card/card.data.json +8 -2
  20. package/dist/sample-data/dateinput/dateinput.data.json +1 -0
  21. package/dist/sample-data/header/header.data.json +245 -31
  22. package/dist/sample-data/select/select.data.json +1 -0
  23. package/dist/sample-data/textarea/textarea.data.json +1 -0
  24. package/dist/sample-data/textbox/textbox.data.json +1 -0
  25. package/dist/sample-data/video/video.data.json +20 -11
  26. package/package.json +20 -20
  27. package/src/components/bs5/card/card--multi-action.stories.js +1 -0
  28. package/src/components/bs5/card/card.data.json +8 -2
  29. package/src/components/bs5/card/card.scss +34 -1
  30. package/src/components/bs5/dateinput/Dateinput.stories.js +2 -32
  31. package/src/components/bs5/dateinput/dateinput.data.json +1 -0
  32. package/src/components/bs5/dateinput/dateinput.hbs +12 -12
  33. package/src/components/bs5/header/_colours.scss +31 -15
  34. package/src/components/bs5/header/_icons.scss +1 -1
  35. package/src/components/bs5/header/_search.json +45 -0
  36. package/src/components/bs5/header/header.data.json +245 -31
  37. package/src/components/bs5/header/header.functions.js +143 -8
  38. package/src/components/bs5/header/header.hbs +131 -33
  39. package/src/components/bs5/header/header.scss +178 -35
  40. package/src/components/bs5/navbar/_colours.scss +19 -19
  41. package/src/components/bs5/navbar/navbar.functions.js +59 -52
  42. package/src/components/bs5/navbar/navbar.hbs +65 -3
  43. package/src/components/bs5/navbar/navbar.scss +73 -27
  44. package/src/components/bs5/select/Select.stories.js +4 -4
  45. package/src/components/bs5/select/select.data.json +1 -0
  46. package/src/components/bs5/select/select.hbs +3 -3
  47. package/src/components/bs5/textarea/Textarea.stories.js +2 -32
  48. package/src/components/bs5/textarea/textarea.data.json +1 -0
  49. package/src/components/bs5/textarea/textarea.hbs +8 -8
  50. package/src/components/bs5/textbox/Textbox.stories.js +2 -15
  51. package/src/components/bs5/textbox/textInput.scss +10 -2
  52. package/src/components/bs5/textbox/textbox.data.json +1 -0
  53. package/src/components/bs5/textbox/textbox.hbs +7 -6
  54. package/src/components/bs5/video/video.data.json +20 -11
  55. package/src/components/bs5/video/video.hbs +10 -11
  56. package/src/components/bs5/video/video.scss +42 -5
  57. package/src/components/bs5/video/video.stories.js +9 -0
  58. package/src/js/handlebars.helpers.js +8 -1
  59. package/src/main.js +26 -2
  60. package/dist/components/bs5/card/cardblock.hbs +0 -14
  61. package/dist/sample-data/card/cardblock.data.json +0 -33
  62. package/src/components/bs5/card/Cardblock.js +0 -14
  63. package/src/components/bs5/card/cardblock-hbs-backup.txt +0 -29
  64. package/src/components/bs5/card/cardblock.data.json +0 -33
  65. package/src/components/bs5/card/cardblock.hbs +0 -14
  66. package/src/components/bs5/card/cardblock.stories.js +0 -60
  67. package/src/stories/templates/ContentPage/ContentPage.mdx +0 -40
  68. package/src/stories/templates/ContentPage/ContentPage.stories.js +0 -36
  69. package/src/stories/templates/LandingPage/LandingPage.mdx +0 -20
  70. package/src/stories/templates/LandingPage/LandingPage.stories.js +0 -25
@@ -11,8 +11,10 @@
11
11
  "action": "no",
12
12
  "link": "",
13
13
  "arrow": false,
14
- "video": "",
15
- "videoDuration": false,
14
+ "feature": false,
15
+ "featureImagePosition": "",
16
+ "video": false,
17
+ "videoDuration": "",
16
18
  "footer": "",
17
19
  "equalHeight": false
18
20
  },
@@ -28,6 +30,8 @@
28
30
  "action": "single",
29
31
  "link": "javascript:void(0)",
30
32
  "arrow": false,
33
+ "feature": false,
34
+ "featureImagePosition": "",
31
35
  "video": false,
32
36
  "videoDuration": "",
33
37
  "footer": "",
@@ -45,6 +49,8 @@
45
49
  "action": "multi",
46
50
  "link": "javascript:void(0)",
47
51
  "arrow": false,
52
+ "feature": false,
53
+ "featureImagePosition": "",
48
54
  "video": false,
49
55
  "videoDuration": "",
50
56
  "footer": "<ul><li><a href='javascript:void(0)'>Link text</a></li><li><a href='javascript:void(0)'>Link text</a></li><li><a href='javascript:void(0)'>Link text</a></li></ul>",
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "isDisabled": false,
3
3
  "isRequired": true,
4
+ "isFilled": false,
4
5
  "customClass": "",
5
6
  "label-text": "Date label",
6
7
  "day-placeholder": "DD",
@@ -8,24 +8,185 @@
8
8
  "text": {
9
9
  "value": "Queensland Government websites"
10
10
  },
11
- "mainNavCtaOne": {
12
- "value": "#",
13
- "icon": {
14
- "value": "ctaIcon"
11
+ "CTA": [
12
+ {
13
+ "id": "CTAone",
14
+ "url": {
15
+ "value": "#"
16
+ },
17
+ "icon": {
18
+ "value": "ctaIcon"
19
+ },
20
+ "text": {
21
+ "value": "For Queenslanders"
22
+ },
23
+ "dropdown_enabled": true,
24
+ "dropdown_options": {
25
+ "dropdown_type": "list",
26
+ "view_more_label": "Browse all information and services",
27
+ "view_more_url": "https://www.qld.gov.au/queenslanders",
28
+ "dropdown_config": {
29
+ "groups": [
30
+ {
31
+ "action": "_blank",
32
+ "url": "#",
33
+ "label": "Transport and motoring"
34
+ },
35
+ {
36
+ "action": "_blank",
37
+ "url": "#",
38
+ "label": "Employment and jobs"
39
+ },
40
+ {
41
+ "action": "_blank",
42
+ "url": "#",
43
+ "label": "Education and training"
44
+ },
45
+ {
46
+ "action": "_blank",
47
+ "url": "#",
48
+ "label": "Queensland and its government"
49
+ },
50
+ {
51
+ "action": "_blank",
52
+ "url": "#",
53
+ "label": "Health and wellbeing"
54
+ },
55
+ {
56
+ "action": "_blank",
57
+ "url": "#",
58
+ "label": "Community support"
59
+ }
60
+ ],
61
+ "view_more": true,
62
+ "view_more_options": {
63
+ "url": "#",
64
+ "label": "View more",
65
+ "target": "_blank"
66
+ }
67
+ }
68
+ }
15
69
  },
16
- "text": {
17
- "value": "Link 1"
18
- }
19
- },
20
- "mainNavCtaTwo": {
21
- "value": "#",
22
- "icon": {
23
- "value": "ctaIcon"
70
+ {
71
+ "id": "CTAtwo",
72
+ "url": {
73
+ "value": "#"
74
+ },
75
+ "icon": {
76
+ "value": "ctaIcon"
77
+ },
78
+ "text": {
79
+ "value": "Business and Industry"
80
+ },
81
+ "dropdown_enabled": true,
82
+ "dropdown_options": {
83
+ "dropdown_type": "list",
84
+ "view_more_label": "All categories",
85
+ "view_more_url": "https://www.business.qld.gov.au/",
86
+ "dropdown_config": {
87
+ "groups": [
88
+ {
89
+ "action": "_blank",
90
+ "url": "#",
91
+ "label": "Starting a business"
92
+ },
93
+ {
94
+ "action": "_blank",
95
+ "url": "#",
96
+ "label": "Running a business"
97
+ },
98
+ {
99
+ "action": "_blank",
100
+ "url": "#",
101
+ "label": "Employing people"
102
+ },
103
+ {
104
+ "action": "_blank",
105
+ "url": "#",
106
+ "label": "Payroll tax"
107
+ },
108
+ {
109
+ "action": "_blank",
110
+ "url": "#",
111
+ "label": "Industries"
112
+ },
113
+ {
114
+ "action": "_blank",
115
+ "url": "#",
116
+ "label": "Investing in Queensland"
117
+ }
118
+ ],
119
+ "view_more": true,
120
+ "view_more_options": {
121
+ "url": "#",
122
+ "label": "View more",
123
+ "target": "_blank"
124
+ }
125
+ }
126
+ }
24
127
  },
25
- "text": {
26
- "value": "Link 2"
128
+ {
129
+ "id": "CTAthree",
130
+ "url": {
131
+ "value": "#"
132
+ },
133
+ "icon": {
134
+ "value": "ctaIcon"
135
+ },
136
+ "text": {
137
+ "value": "Login"
138
+ },
139
+ "dropdown_enabled": true,
140
+ "dropdown_options": {
141
+ "dropdown_type": "form",
142
+ "dropdown_config": {
143
+ "groups": [
144
+ {
145
+ "heading": "Log in to For government",
146
+ "content": "Most employees can log in using single sign on (SSO).",
147
+ "usesButton": "true",
148
+ "actionType": "button",
149
+ "action": {
150
+ "button_action": "#",
151
+ "button_targetAttr": "_blank",
152
+ "button_label": "Login"
153
+ },
154
+ "links": [
155
+ {
156
+ "action": "_blank",
157
+ "label": "If your agency doesn't use SSO.",
158
+ "url": "https://www.forgov.qld.gov.au/user#log-in"
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ "heading": "Select your agency",
164
+ "content": "See information relevant to your agency.",
165
+ "actionType": "select",
166
+ "options": [
167
+ {
168
+ "value": "agency 1"
169
+ }
170
+ ]
171
+ }
172
+ ],
173
+ "examples": [
174
+ {
175
+ "heading": "For employees",
176
+ "actionType": "list",
177
+ "list_items": [
178
+ {
179
+ "action": "_self",
180
+ "label": "Your profile",
181
+ "href": "#"
182
+ }
183
+ ]
184
+ }
185
+ ]
186
+ }
187
+ }
27
188
  }
28
- }
189
+ ]
29
190
  },
30
191
  "siteHeader": {
31
192
  "config": {
@@ -49,13 +210,20 @@
49
210
  },
50
211
  "siteSearchAsset": {
51
212
  "value": "#",
52
- "icons": {
53
- "menu-icon": "qld__icon__mobile-menu",
54
- "search-icon": "qld__icon__search",
55
- "search-close-icon": "qld__icon__close"
213
+ "placeholder": "",
214
+ "label": "",
215
+ "formAction": {
216
+ "url": "https://www.forgov.qld.gov.au/search"
56
217
  },
57
- "siteSearchUrl": {
58
- "value": ""
218
+ "options": {
219
+ "icons": {
220
+ "menu-icon": "qld__icon__mobile-menu",
221
+ "search-icon": "qld__icon__search",
222
+ "search-close-icon": "qld__icon__close"
223
+ },
224
+ "borderStyle": {
225
+ "full": true
226
+ }
59
227
  }
60
228
  }
61
229
  },
@@ -74,7 +242,11 @@
74
242
  "value": "#"
75
243
  },
76
244
  "text": {
77
- "value": "Link 1"
245
+ "value": "List 1"
246
+ },
247
+ "dropdown_enabled": true,
248
+ "dropdown_options": {
249
+ "dropdown_type": "list"
78
250
  }
79
251
  },
80
252
  "mainNavCtaTwo": {
@@ -83,7 +255,43 @@
83
255
  "value": "#"
84
256
  },
85
257
  "text": {
86
- "value": "Link 2"
258
+ "value": "List 2"
259
+ },
260
+ "dropdown_enabled": true,
261
+ "dropdown_options": {
262
+ "dropdown_type": "list"
263
+ }
264
+ },
265
+ "mainNavCtaThree": {
266
+ "value": "#",
267
+ "icon": {
268
+ "value": "ctaIcon"
269
+ },
270
+ "text": {
271
+ "value": "Login"
272
+ },
273
+ "dropdown_enabled": true,
274
+ "dropdown_options": {
275
+ "dropdown_type": "form",
276
+ "dropdown_config": {
277
+ "groups": [
278
+ {
279
+ "heading": "Log in to For government",
280
+ "button_action": "#",
281
+ "button_targetAttr": "_blank",
282
+ "button_label": "Login"
283
+ }
284
+ ],
285
+ "examples": [
286
+ {
287
+ "heading": "For employees",
288
+ "content": "See information relevant to your agency.",
289
+ "button_action": "#",
290
+ "button_targetAttr": "_blank",
291
+ "button_label": "Login"
292
+ }
293
+ ]
294
+ }
87
295
  }
88
296
  }
89
297
  },
@@ -95,8 +303,7 @@
95
303
  "url": {
96
304
  "value": "https://qld.gov.au"
97
305
  },
98
- "logo": {
99
- },
306
+ "logo": {},
100
307
  "secondaryType": {
101
308
  "logo": {
102
309
  "value": ""
@@ -111,13 +318,20 @@
111
318
  },
112
319
  "siteSearchAsset": {
113
320
  "value": "#",
114
- "icons": {
115
- "menu-icon": "qld__icon__mobile-menu",
116
- "search-icon": "qld__icon__search",
117
- "search-close-icon": "qld__icon__close"
321
+ "placeholder": "Placeholder",
322
+ "label": "Label",
323
+ "formAction": {
324
+ "url": "https://www.forgov.qld.gov.au/search"
118
325
  },
119
- "siteSearchUrl": {
120
- "value": ""
326
+ "options": {
327
+ "icons": {
328
+ "menu-icon": "qld__icon__mobile-menu",
329
+ "search-icon": "qld__icon__search",
330
+ "search-close-icon": "qld__icon__close"
331
+ },
332
+ "borderStyle": {
333
+ "full": false
334
+ }
121
335
  }
122
336
  }
123
337
  }
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "isDisabled": false,
3
3
  "isRequired": true,
4
+ "isFilled": false,
4
5
  "customClass": "",
5
6
  "label-text": "Label",
6
7
  "placeholder": "Please select",
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "isDisabled": false,
3
3
  "isRequired": true,
4
+ "isFilled": false,
4
5
  "customClass": "",
5
6
  "rows": 3,
6
7
  "label-text": "Label",
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "isDisabled": false,
3
3
  "isRequired": true,
4
+ "isFilled": false,
4
5
  "customClass": "",
5
6
  "label-text": "Label",
6
7
  "placeholder": "Hello World",
@@ -1,4 +1,19 @@
1
1
  {
2
+ "youtube": {
3
+ "source": "youtube",
4
+ "videoId": "LDU_Txk06tM",
5
+ "videoSize": "col-12",
6
+ "aspectRatio": "16x9",
7
+ "duration": "3:12",
8
+ "thumbnail": "https://img.youtube.com/vi/LDU_Txk06tM/sddefault.jpg",
9
+ "urlParams": {
10
+ "autoplay": 0,
11
+ "controls": 0
12
+ },
13
+ "description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa.",
14
+ "transcriptContent": "<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna. Nunc viverra imperdiet enim. Fusce est. Vivamus a tellus.</p><p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede. Mauris et orci. Aenean nec lorem. In porttitor. Donec laoreet nonummy augue.</p><p>Suspendisse dui purus, scelerisque at, vulputate vitae, pretium mattis, nunc. Mauris eget neque at sem venenatis eleifend. Ut nonummy. Fusce aliquet pede non pede. Suspendisse dapibus lorem pellentesque magna. Integer nulla.</p><p>Donec blandit feugiat ligula. Donec hendrerit, felis et imperdiet euismod, purus ipsum pretium metus, in lacinia nulla nisl eget sapien. Donec ut est in lectus consequat consequat. Etiam eget dui. Aliquam erat volutpat. Sed at lorem in nunc porta tristique.</p><p>Proin nec augue. Quisque aliquam tempor magna. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc ac magna. Maecenas odio dolor, vulputate vel, auctor ac, accumsan id, felis. Pellentesque cursus sagittis felis.</p><p>Pellentesque porttitor, velit lacinia egestas auctor, diam eros tempus arcu, nec vulputate augue magna vel risus. Cras non magna vel ante adipiscing rhoncus. Vivamus a mi. Morbi neque. Aliquam erat volutpat. Integer ultrices lobortis eros.</p><p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin semper, ante vitae sollicitudin posuere, metus quam iaculis nibh, vitae scelerisque nunc massa eget pede. Sed velit urna, interdum vel, ultricies vel, faucibus at, quam. Donec elit est, consectetuer eget, consequat quis, tempus quis, wisi. In in nunc. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos.</p><p>Donec ullamcorper fringilla eros. Fusce in sapien eu purus dapibus commodo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Cras faucibus condimentum odio. Sed ac ligula. Aliquam at eros.</p><p>Etiam at ligula et tellus ullamcorper ultrices. In fermentum, lorem non cursus porttitor, diam urna accumsan lacus, sed interdum wisi nibh nec nisl. Ut tincidunt volutpat urna. Mauris eleifend nulla eget mauris. Sed cursus quam id felis. Curabitur posuere quam vel nibh.</p><p>Cras dapibus dapibus nisl. Vestibulum quis dolor a felis congue vehicula. Maecenas pede purus, tristique ac, tempus eget, egestas quis, mauris. Curabitur non eros. Nullam hendrerit bibendum justo. Fusce iaculis, est quis lacinia pretium, pede metus molestie lacus, at gravida wisi ante at libero.</p>",
15
+ "transcript": ""
16
+ },
2
17
  "vimeo": {
3
18
  "source": "vimeo",
4
19
  "videoId": "251763826",
@@ -6,22 +21,16 @@
6
21
  "aspectRatio": "4x3",
7
22
  "duration": "5:00",
8
23
  "thumbnail": "./assets/img/banner-example-3-to-2.jpg",
24
+ "urlParams": {
25
+ "autoplay": 0,
26
+ "background": 0,
27
+ "controls": 0
28
+ },
9
29
  "analyticsTrackingCode": "",
10
30
  "description": "<h3>Vimeo video embed</h3><p>Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna. Nunc viverra imperdiet enim.</p>",
11
31
  "transcriptContent": "<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna. Nunc viverra imperdiet enim. Fusce est. Vivamus a tellus.</p><p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede. Mauris et orci. Aenean nec lorem. In porttitor. Donec laoreet nonummy augue.</p><p>Suspendisse dui purus, scelerisque at, vulputate vitae, pretium mattis, nunc. Mauris eget neque at sem venenatis eleifend. Ut nonummy. Fusce aliquet pede non pede. Suspendisse dapibus lorem pellentesque magna. Integer nulla.</p>",
12
32
  "transcript": ""
13
33
  },
14
- "youtube": {
15
- "source": "youtube",
16
- "videoId": "LDU_Txk06tM",
17
- "videoSize": "col-12",
18
- "aspectRatio": "16x9",
19
- "duration": "3:12",
20
- "thumbnail": "https://img.youtube.com/vi/LDU_Txk06tM/sddefault.jpg",
21
- "description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa.",
22
- "transcriptContent": "<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna. Nunc viverra imperdiet enim. Fusce est. Vivamus a tellus.</p><p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede. Mauris et orci. Aenean nec lorem. In porttitor. Donec laoreet nonummy augue.</p><p>Suspendisse dui purus, scelerisque at, vulputate vitae, pretium mattis, nunc. Mauris eget neque at sem venenatis eleifend. Ut nonummy. Fusce aliquet pede non pede. Suspendisse dapibus lorem pellentesque magna. Integer nulla.</p><p>Donec blandit feugiat ligula. Donec hendrerit, felis et imperdiet euismod, purus ipsum pretium metus, in lacinia nulla nisl eget sapien. Donec ut est in lectus consequat consequat. Etiam eget dui. Aliquam erat volutpat. Sed at lorem in nunc porta tristique.</p><p>Proin nec augue. Quisque aliquam tempor magna. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc ac magna. Maecenas odio dolor, vulputate vel, auctor ac, accumsan id, felis. Pellentesque cursus sagittis felis.</p><p>Pellentesque porttitor, velit lacinia egestas auctor, diam eros tempus arcu, nec vulputate augue magna vel risus. Cras non magna vel ante adipiscing rhoncus. Vivamus a mi. Morbi neque. Aliquam erat volutpat. Integer ultrices lobortis eros.</p><p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin semper, ante vitae sollicitudin posuere, metus quam iaculis nibh, vitae scelerisque nunc massa eget pede. Sed velit urna, interdum vel, ultricies vel, faucibus at, quam. Donec elit est, consectetuer eget, consequat quis, tempus quis, wisi. In in nunc. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos.</p><p>Donec ullamcorper fringilla eros. Fusce in sapien eu purus dapibus commodo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Cras faucibus condimentum odio. Sed ac ligula. Aliquam at eros.</p><p>Etiam at ligula et tellus ullamcorper ultrices. In fermentum, lorem non cursus porttitor, diam urna accumsan lacus, sed interdum wisi nibh nec nisl. Ut tincidunt volutpat urna. Mauris eleifend nulla eget mauris. Sed cursus quam id felis. Curabitur posuere quam vel nibh.</p><p>Cras dapibus dapibus nisl. Vestibulum quis dolor a felis congue vehicula. Maecenas pede purus, tristique ac, tempus eget, egestas quis, mauris. Curabitur non eros. Nullam hendrerit bibendum justo. Fusce iaculis, est quis lacinia pretium, pede metus molestie lacus, at gravida wisi ante at libero.</p>",
23
- "transcript": ""
24
- },
25
34
  "custom": {
26
35
  "source": "custom",
27
36
  "videoId": "https://embed.ted.com/talks/lang/en/adam_grosser_a_mobile_fridge_for_vaccines",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qld-gov-au/qgds-bootstrap5",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,7 @@
9
9
  "main": "index.js",
10
10
  "scripts": {
11
11
  "start": "npm run build",
12
- "lint": "eslint --fix --ext .js,.json --ignore-pattern 'docs/*' --ignore-pattern 'dist/*' .",
12
+ "lint": "eslint --fix --ext .js,.json --ignore-pattern 'docs/*' --ignore-pattern 'dist/*' --ignore-pattern 'storybook-static/*' .",
13
13
  "build": "node esbuild.js",
14
14
  "test": "echo 'no tests yet'",
15
15
  "watch": "node esbuild.js --watch",
@@ -39,37 +39,37 @@
39
39
  "dependencies": {
40
40
  "@fortawesome/fontawesome-free": "^6.5.2",
41
41
  "bootstrap": "^5.3.1",
42
- "material-symbols": "^0.17.4"
42
+ "material-symbols": "^0.18.0"
43
43
  },
44
44
  "devDependencies": {
45
- "handlebars": "4.7.8",
46
- "@chromatic-com/storybook": "^1.3.5",
47
- "@storybook/addon-essentials": "^8.1.0",
48
- "@storybook/addon-interactions": "^8.1.0",
49
- "@storybook/addon-links": "^8.1.0",
50
- "@storybook/addon-mdx-gfm": "^8.1.0",
51
- "@storybook/addon-themes": "^8.1.0",
52
- "@storybook/blocks": "^8.1.0",
53
- "@storybook/cli": "^8.1.0",
54
- "@storybook/html": "^8.1.0",
55
- "@storybook/html-vite": "^8.1.0",
56
- "@storybook/manager-api": "^8.1.0",
57
- "@storybook/test": "^8.1.0",
58
- "@storybook/theming": "^8.1.0",
45
+ "@chromatic-com/storybook": "^1.4.0",
46
+ "@storybook/addon-essentials": "^8.1.2",
47
+ "@storybook/addon-interactions": "^8.1.2",
48
+ "@storybook/addon-links": "^8.1.2",
49
+ "@storybook/addon-mdx-gfm": "^8.1.2",
50
+ "@storybook/addon-themes": "^8.1.2",
51
+ "@storybook/blocks": "^8.1.2",
52
+ "@storybook/cli": "^8.1.2",
53
+ "@storybook/html": "^8.1.2",
54
+ "@storybook/html-vite": "^8.1.2",
55
+ "@storybook/manager-api": "^8.1.2",
56
+ "@storybook/test": "^8.1.2",
57
+ "@storybook/theming": "^8.1.2",
59
58
  "@stylistic/eslint-plugin-js": "2.1.0",
60
59
  "@vitejs/plugin-vue": "5.0.4",
61
60
  "@whitespace/storybook-addon-html": "^6.1.1",
62
61
  "autoprefixer": "^10.4.15",
63
62
  "chalk": "^5.3.0",
64
63
  "chromatic": "^11.3.5",
65
- "esbuild": "0.20.2",
64
+ "esbuild": "0.21.3",
66
65
  "esbuild-plugin-copy": "^2.1.1",
67
66
  "esbuild-plugin-eslint": "^0.3.7",
68
67
  "esbuild-plugin-handlebars": "1.0.3",
69
- "esbuild-sass-plugin": "3.2.0",
68
+ "esbuild-sass-plugin": "3.3.0",
70
69
  "eslint": "8.57.0",
71
70
  "eslint-plugin-json": "^3.1.0",
72
71
  "eslint-plugin-storybook": "^0.8.0",
72
+ "handlebars": "4.7.8",
73
73
  "live-server": "1.2.2",
74
74
  "minimist": "^1.2.8",
75
75
  "npm-run-all2": "^6.1.2",
@@ -79,7 +79,7 @@
79
79
  "raw-loader": "^4.0.2",
80
80
  "rimraf": "^5.0.7",
81
81
  "sass": "^1.76.0",
82
- "storybook": "^8.1.0",
82
+ "storybook": "^8.1.2",
83
83
  "vite": "^5.2.11",
84
84
  "watch": "^1.0.2"
85
85
  },
@@ -18,6 +18,7 @@ export default {
18
18
  ${new Card({ ...args, iconClasses: "fa-solid fa-pen-ruler", iconPosition: "icon-left" }).html}
19
19
  ${new Card({ ...args, description: "" }).html}
20
20
  ${new Card({ ...args, footer: tags }).html}
21
+ ${new Card({ ...args, description: "<ul><li><a href='javascript:void(0)'>Link text</a></li><li><a href='javascript:void(0)'>Link text</a></li><li><a href='javascript:void(0)'>Link text</a></li></ul>", footer: "<div class='view-all'><a href='javascript:void(0)'>View all</a></div>" }).html}
21
22
  ${new Card({ ...args, iconClasses: "fa-solid fa-pen-ruler", iconPosition: "icon-top" }).html}
22
23
  ${new Card({ ...args, image: "./assets/img/image-placeholder.png", imageAlt: "A grey placeholder image with an icon in the centre." }).html}
23
24
  ${new Card({ ...args, image: "./assets/img/image-placeholder.png", imageAlt: "A grey placeholder image with an icon in the centre.", video: true, videoDuration: "2:34" }).html}
@@ -11,8 +11,10 @@
11
11
  "action": "no",
12
12
  "link": "",
13
13
  "arrow": false,
14
- "video": "",
15
- "videoDuration": false,
14
+ "feature": false,
15
+ "featureImagePosition": "",
16
+ "video": false,
17
+ "videoDuration": "",
16
18
  "footer": "",
17
19
  "equalHeight": false
18
20
  },
@@ -28,6 +30,8 @@
28
30
  "action": "single",
29
31
  "link": "javascript:void(0)",
30
32
  "arrow": false,
33
+ "feature": false,
34
+ "featureImagePosition": "",
31
35
  "video": false,
32
36
  "videoDuration": "",
33
37
  "footer": "",
@@ -45,6 +49,8 @@
45
49
  "action": "multi",
46
50
  "link": "javascript:void(0)",
47
51
  "arrow": false,
52
+ "feature": false,
53
+ "featureImagePosition": "",
48
54
  "video": false,
49
55
  "videoDuration": "",
50
56
  "footer": "<ul><li><a href='javascript:void(0)'>Link text</a></li><li><a href='javascript:void(0)'>Link text</a></li><li><a href='javascript:void(0)'>Link text</a></li></ul>",
@@ -21,6 +21,12 @@ $video-play-icon-dark: url("data:image/svg+xml,<svg width='32' height='21' viewB
21
21
  $video-play-icon-hover-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'><path fill='#{$video-icon-color-dark}' d='M0 128C0 92.7 28.7 64 64 64H320c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128zM559.1 99.8c10.4 5.6 16.9 16.4 16.9 28.2V384c0 11.8-6.5 22.6-16.9 28.2s-23 5-32.9-1.6l-96-64L416 337.1V320 192 174.9l14.2-9.5 96-64c9.8-6.5 22.4-7.2 32.9-1.6z'/></svg>");
22
22
  $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='#{$video-icon-color-dark}'><path d='m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 320q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Z' /></svg>"); // Material Symbols 'Schedule'
23
23
 
24
+ $view-all-icon-color: $qld-light-action-secondary;
25
+ $view-all-icon: url("data:image/svg+xml,<svg width='21' height='21' viewBox='0 0 21 21' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M11.3867 6.32031C11.1523 6.08594 10.7227 6.08594 10.4883 6.32031C10.2539 6.55469 10.2539 6.98437 10.4883 7.21875L13.1836 9.875L5.95703 9.875C5.60547 9.875 5.33203 10.1875 5.33203 10.5C5.33203 10.8516 5.60547 11.125 5.95703 11.125L13.1836 11.125L10.4883 13.8203C10.2539 14.0547 10.2539 14.4844 10.4883 14.7187C10.7227 14.9531 11.1523 14.9531 11.3867 14.7187L15.1367 10.9687C15.2539 10.8516 15.332 10.6953 15.332 10.5C15.332 10.3437 15.2539 10.1875 15.1367 10.0703L11.3867 6.32031ZM10.332 0.5C4.78516 0.5 0.332031 4.99219 0.332031 10.5C0.332031 16.0469 4.78516 20.5 10.332 20.5C15.8398 20.5 20.332 16.0469 20.332 10.5C20.332 4.99219 15.8398 0.5 10.332 0.5ZM10.332 19.25C5.48828 19.25 1.58203 15.3438 1.58203 10.5C1.58203 5.69531 5.48828 1.75 10.332 1.75C15.1367 1.75 19.082 5.69531 19.082 10.5C19.082 15.3437 15.1367 19.25 10.332 19.25Z' fill='#{$view-all-icon-color}' /></svg>");
26
+
27
+ $view-all-icon-dark-color: $qld-dark-action-secondary;
28
+ $view-all-icon-dark: url("data:image/svg+xml,<svg width='21' height='21' viewBox='0 0 21 21' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M11.3867 6.32031C11.1523 6.08594 10.7227 6.08594 10.4883 6.32031C10.2539 6.55469 10.2539 6.98437 10.4883 7.21875L13.1836 9.875L5.95703 9.875C5.60547 9.875 5.33203 10.1875 5.33203 10.5C5.33203 10.8516 5.60547 11.125 5.95703 11.125L13.1836 11.125L10.4883 13.8203C10.2539 14.0547 10.2539 14.4844 10.4883 14.7187C10.7227 14.9531 11.1523 14.9531 11.3867 14.7187L15.1367 10.9687C15.2539 10.8516 15.332 10.6953 15.332 10.5C15.332 10.3437 15.2539 10.1875 15.1367 10.0703L11.3867 6.32031ZM10.332 0.5C4.78516 0.5 0.332031 4.99219 0.332031 10.5C0.332031 16.0469 4.78516 20.5 10.332 20.5C15.8398 20.5 20.332 16.0469 20.332 10.5C20.332 4.99219 15.8398 0.5 10.332 0.5ZM10.332 19.25C5.48828 19.25 1.58203 15.3438 1.58203 10.5C1.58203 5.69531 5.48828 1.75 10.332 1.75C15.1367 1.75 19.082 5.69531 19.082 10.5C19.082 15.3437 15.1367 19.25 10.332 19.25Z' fill='#{$view-all-icon-dark-color}' /></svg>");
29
+
24
30
 
25
31
  .card {
26
32
 
@@ -98,6 +104,10 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
98
104
  --#{$prefix}card-icon-font-size: 1.5rem;
99
105
  }
100
106
 
107
+ .view-all {
108
+ --#{$prefix}card-view-all-icon: #{escape-svg($view-all-icon)};
109
+ }
110
+
101
111
  // Colour variants
102
112
  &-light {
103
113
  --#{$prefix}card-bg: var(--#{$prefix}light-background);
@@ -127,6 +137,10 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
127
137
  --#{$prefix}card-arrow-icon: #{escape-svg($card-arrow-icon-dark)};
128
138
  }
129
139
 
140
+ .view-all {
141
+ --#{$prefix}card-view-all-icon: #{escape-svg($view-all-icon-dark)};
142
+ }
143
+
130
144
  .video-overlay {
131
145
  --#{$prefix}video-nav-bg: var(--#{$prefix}dark-action-primary);
132
146
  --#{$prefix}video-nav-bg-rgb: 120, 186, 0;
@@ -372,7 +386,7 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
372
386
  position: relative;
373
387
  padding: 0 var(--#{$prefix}card-spacer-x) var(--#{$prefix}card-spacer-y) var(--#{$prefix}card-spacer-x);
374
388
  width: 100%;
375
- flex: 0 1 100%;
389
+ flex: 0 1 auto;
376
390
 
377
391
  &:before {
378
392
  content: "";
@@ -393,6 +407,25 @@ $video-clock-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/20
393
407
  margin: 0;
394
408
  }
395
409
  }
410
+
411
+ .view-all {
412
+ text-align-last: end;
413
+
414
+ a {
415
+ padding: 0.25rem 0.25rem 0.5rem;
416
+
417
+ &:after {
418
+ content: '';
419
+ background-image: var(--#{$prefix}card-view-all-icon);
420
+ background-size: cover;
421
+ display: inline-block;
422
+ height: 2rem;
423
+ width: 2rem;
424
+ vertical-align: middle;
425
+ margin-left: 0.5rem;
426
+ }
427
+ }
428
+ }
396
429
  }
397
430
  }
398
431