@qhealth-design-system/core 1.18.3 → 1.19.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.
Files changed (91) hide show
  1. package/.storybook/assets/accordion-js.js +344 -0
  2. package/.storybook/assets/animate-js.js +247 -0
  3. package/.storybook/assets/index.js +15 -0
  4. package/.storybook/globals.js +39 -41
  5. package/.storybook/main.js +4 -3
  6. package/.storybook/preview.js +11 -13
  7. package/CHANGELOG.md +4 -0
  8. package/README.md +1 -1
  9. package/package.json +10 -15
  10. package/src/component-loader.js +23 -0
  11. package/src/components/_global/css/body/component.scss +3 -3
  12. package/src/components/_global/css/btn/component.scss +1 -1
  13. package/src/components/_global/css/cta_links/component.scss +2 -2
  14. package/src/components/_global/css/example/component.scss +11 -19
  15. package/src/components/_global/css/forms/control_inputs/component.scss +2 -2
  16. package/src/components/_global/css/forms/general/component.scss +5 -5
  17. package/src/components/_global/css/headings/component.scss +42 -44
  18. package/src/components/_global/css/img/images.scss +20 -36
  19. package/src/components/_global/css/link_columns/component.scss +2 -2
  20. package/src/components/_global/css/modal/component.scss +20 -26
  21. package/src/components/_global/css/table/component.scss +14 -21
  22. package/src/components/_global/css/tabs/component.scss +2 -2
  23. package/src/components/_global/css/tags/component.scss +1 -1
  24. package/src/components/_global/css/toggle_and_tool_tip/component.scss +3 -3
  25. package/src/components/_global/js/global.js +1 -1
  26. package/src/components/_global/js/select_boxes/global.js +26 -35
  27. package/src/components/accordion/css/component.scss +289 -326
  28. package/src/components/banner/css/component.scss +77 -173
  29. package/src/components/banner/html/component.hbs +2 -4
  30. package/src/components/banner_advanced/html/component.hbs +2 -2
  31. package/src/components/banner_advanced/js/manifest.json +1422 -1386
  32. package/src/components/basic_search/css/component.scss +13 -14
  33. package/src/components/basic_search/html/component.hbs +11 -20
  34. package/src/components/breadcrumbs/js/global.js +6 -1
  35. package/src/components/callout/css/component.scss +37 -40
  36. package/src/components/card_feature/css/component.scss +28 -167
  37. package/src/components/card_multi_action/css/component.scss +46 -58
  38. package/src/components/code/css/component.scss +3 -3
  39. package/src/components/code/html/component.hbs +12 -12
  40. package/src/components/code/js/global.js +6 -1
  41. package/src/components/file_upload/css/component.scss +5 -5
  42. package/src/components/file_upload/js/global.js +46 -43
  43. package/src/components/footer/css/component.scss +3 -3
  44. package/src/components/global_alert/css/component.scss +8 -14
  45. package/src/components/global_alert/html/component.hbs +3 -3
  46. package/src/components/header/css/component.scss +16 -4
  47. package/src/components/header/html/component.hbs +3 -2
  48. package/src/components/header/js/global.js +8 -1
  49. package/src/components/in_page_navigation/css/component.scss +14 -16
  50. package/src/components/in_page_navigation/js/global.js +48 -58
  51. package/src/components/internal_navigation/css/component.scss +3 -3
  52. package/src/components/internal_navigation/js/global.js +27 -35
  53. package/src/components/left_hand_navigation/css/component.scss +8 -2
  54. package/src/components/main_navigation/css/component.scss +16 -7
  55. package/src/components/main_navigation/html/component.hbs +1 -0
  56. package/src/components/mega_main_navigation/css/component.scss +5 -5
  57. package/src/components/mega_main_navigation/html/component.hbs +1 -0
  58. package/src/components/pagination/css/component.scss +32 -28
  59. package/src/components/pagination/html/component.hbs +37 -40
  60. package/src/components/promo_panel/css/component.scss +1 -4
  61. package/src/components/promo_panel/html/component.hbs +11 -5
  62. package/src/components/promo_panel/js/global.js +24 -39
  63. package/src/components/promo_panel/js/manifest.json +8 -0
  64. package/src/components/tab/css/component.scss +3 -3
  65. package/src/components/toggle_tip/css/component.scss +1 -1
  66. package/src/components/tool_tip/css/component.scss +1 -1
  67. package/src/components/video_player/js/global.js +16 -13
  68. package/src/data/current.json +33 -1
  69. package/src/helpers/global-helpers.js +56 -0
  70. package/src/html/component-in_page_navigation.html +2 -2
  71. package/src/index.js +4 -8
  72. package/src/stories/BackToTop/BackToTop.mdx +3 -21
  73. package/src/stories/CTALink/CTALink.mdx +1 -4
  74. package/src/stories/Checkboxes/Checkboxes.mdx +1 -4
  75. package/src/stories/DirectionLinks/DirectionLinks.mdx +1 -4
  76. package/src/stories/InPageAlert/InPageAlert.mdx +1 -4
  77. package/src/stories/Introduction.mdx +9 -5
  78. package/src/stories/LinkColumns/LinkColumns.mdx +1 -4
  79. package/src/stories/Pagination/Pagination.mdx +26 -0
  80. package/src/stories/Pagination/Pagination.stories.js +257 -0
  81. package/src/stories/PromoPanel/PromoPanel.mdx +26 -0
  82. package/src/stories/PromoPanel/PromoPanel.stories.js +219 -0
  83. package/src/stories/RadioButtons/RadioButtons.mdx +1 -4
  84. package/src/stories/SelectBox/SelectBox.mdx +1 -4
  85. package/src/stories/Tags/Tags.js +3 -3
  86. package/src/stories/Tags/Tags.mdx +1 -4
  87. package/src/stories/VideoPlayer/VideoPlayer.mdx +3 -28
  88. package/src/stories/VideoPlayer/VideoPlayer.stories.js +19 -46
  89. package/src/styles/imports/utilities.scss +3 -3
  90. package/src/styles/imports/variables.scss +5 -0
  91. package/src/stories/VideoPlayer/VideoPlayer.js +0 -0
@@ -39,11 +39,11 @@
39
39
  }
40
40
 
41
41
  &-summary-text {
42
- font-weight: bold;
42
+ font-weight: $QLD-font-weight-semibold;
43
43
  color: var(--QLD-color-light__heading);
44
44
  }
45
45
  &-summary-matching {
46
- font-weight: bold;
46
+ font-weight: $QLD-font-weight-semibold;
47
47
  }
48
48
  }
49
49
 
@@ -60,7 +60,7 @@
60
60
  }
61
61
 
62
62
  &-text {
63
- font-weight: bold;
63
+ font-weight: $QLD-font-weight-semibold;
64
64
  color: var(--QLD-color-light__heading);
65
65
  @include QLD-space(padding-right, 0.75unit);
66
66
  white-space: nowrap;
@@ -86,7 +86,7 @@
86
86
  }
87
87
 
88
88
  &-title {
89
- font-weight: bold;
89
+ font-weight: $QLD-font-weight-semibold;
90
90
  display: block;
91
91
  white-space: nowrap;
92
92
  @include QLD-space(padding-right, 1unit);
@@ -147,6 +147,11 @@
147
147
  @include QLD-media(lg) {
148
148
  flex-direction: row-reverse;
149
149
  }
150
+
151
+ svg.qld__icon {
152
+ width: 24px;
153
+ height: 24px;
154
+ }
150
155
  }
151
156
  .qld__tag {
152
157
  margin: 0;
@@ -208,10 +213,7 @@
208
213
  @include QLD-space(padding-bottom, 1.5unit);
209
214
  @include QLD-space(padding-left, 2unit);
210
215
  @include QLD-space(padding-right, 2unit);
211
- @include QLD-space(
212
- border-top,
213
- solid 0.25unit var(--QLD-color-light__design-accent)
214
- );
216
+ @include QLD-space(border-top, solid 0.25unit var(--QLD-color-light__design-accent));
215
217
 
216
218
  &-title {
217
219
  @include QLD-space(font-size, 1.25unit);
@@ -221,7 +223,7 @@
221
223
  text-transform: capitalize;
222
224
  }
223
225
  &-query {
224
- font-weight: bold;
226
+ font-weight: $QLD-font-weight-semibold;
225
227
  }
226
228
  }
227
229
  }
@@ -233,12 +235,9 @@
233
235
  @include QLD-space(padding-bottom, 1.5unit);
234
236
  @include QLD-space(padding-left, 2unit);
235
237
  @include QLD-space(padding-right, 2unit);
236
- @include QLD-space(
237
- border-top,
238
- solid 0.25unit var(--QLD-color-light__design-accent)
239
- );
238
+ @include QLD-space(border-top, solid 0.25unit var(--QLD-color-light__design-accent));
240
239
  &-text {
241
- font-weight: bold;
240
+ font-weight: $QLD-font-weight-semibold;
242
241
  }
243
242
  }
244
243
  }
@@ -4,7 +4,7 @@
4
4
  {{#ifCond site.metadata.defaultBannerColour.value '==' 'alternate'}}qld__banner--alt{{/ifCond}}
5
5
  {{#ifCond site.metadata.defaultBannerColour.value '==' 'dark'}}qld__banner--dark{{/ifCond}}
6
6
  {{#ifCond site.metadata.defaultBannerColour.value '==' 'dark-alternate'}}qld__banner--dark-alt{{/ifCond}}
7
-
7
+
8
8
  {{#ifCond current.data.metadata.displayBreadcrumbs.value '==' 'true'}}qld__banner--breadcrumbs{{/ifCond}}"
9
9
 
10
10
  {{#ifCond site.metadata.defaultBannerType.value '==' 'texture'}}
@@ -15,11 +15,8 @@
15
15
  {{#ifCond current.data.metadata.displayBreadcrumbs.value '==' 'true'}}
16
16
  <nav class="qld__breadcrumbs
17
17
  {{#ifCond site.metadata.defaultBannerColour.value '==' 'light'}}qld__breadcrumbs--light{{/ifCond}}
18
-
19
18
  {{#ifCond site.metadata.defaultBannerColour.value '==' 'alternate'}}qld__breadcrumbs--alt{{/ifCond}}
20
-
21
19
  {{#ifCond site.metadata.defaultBannerColour.value '==' 'dark'}}qld__breadcrumbs--dark{{/ifCond}}
22
-
23
20
  {{#ifCond site.metadata.defaultBannerColour.value '==' 'dark-alternate'}}qld__breadcrumbs--dark-alt{{/ifCond}}
24
21
 
25
22
  qld__banner__breadcrumbs qld__banner__breadcrumbs--mobile" aria-label="breadcrumb">
@@ -45,11 +42,8 @@
45
42
  {{#ifCond current.data.metadata.displayBreadcrumbs.value '==' 'true'}}
46
43
  <nav class="qld__breadcrumbs
47
44
  {{#ifCond site.metadata.defaultBannerColour.value '==' 'light'}}qld__breadcrumbs--light{{/ifCond}}
48
-
49
45
  {{#ifCond site.metadata.defaultBannerColour.value '==' 'alternate'}}qld__breadcrumbs--alt{{/ifCond}}
50
-
51
46
  {{#ifCond site.metadata.defaultBannerColour.value '==' 'dark'}}qld__breadcrumbs--dark{{/ifCond}}
52
-
53
47
  {{#ifCond site.metadata.defaultBannerColour.value '==' 'dark-alternate'}}qld__breadcrumbs--dark-alt{{/ifCond}}
54
48
 
55
49
  qld__banner__breadcrumbs qld__banner__breadcrumbs--tablet" aria-label="breadcrumb" data-path="{{@root.site.metadata.coreSiteIcons.value}}">
@@ -227,42 +221,41 @@
227
221
  {{#if metaData.articleType}}
228
222
  {{#ifCond metaData.articleType '==' 'news'}}
229
223
  <span class="qld__search__result-type-name">
230
- <svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 0H4.5C3.65625 0 3 0.6875 3 1.5V12C3 12.5625 2.53125 13 2 13C1.4375 13 1 12.5625 1 12V2.5C1 2.25 0.75 2 0.5 2C0.21875 2 0 2.25 0 2.5V12C0 13.125 0.875 14 2 14H13.5C14.875 14 16 12.9062 16 11.5V1.5C16 0.6875 15.3125 0 14.5 0ZM15 11.5C15 12.3438 14.3125 13 13.5 13H3.71875C3.875 12.7188 4 12.375 4 12V1.5C4 1.25 4.21875 1 4.5 1H14.5C14.75 1 15 1.25 15 1.5V11.5ZM8.5 8.5H5.5C5.21875 8.5 5 8.75 5 9C5 9.28125 5.21875 9.5 5.5 9.5H8.5C8.75 9.5 9 9.28125 9 9C9 8.75 8.75 8.5 8.5 8.5ZM13.5 8.5H10.5C10.2188 8.5 10 8.75 10 9C10 9.28125 10.2188 9.5 10.5 9.5H13.5C13.75 9.5 14 9.28125 14 9C14 8.75 13.75 8.5 13.5 8.5ZM8.5 10.5H5.5C5.21875 10.5 5 10.75 5 11C5 11.2812 5.21875 11.5 5.5 11.5H8.5C8.75 11.5 9 11.2812 9 11C9 10.75 8.75 10.5 8.5 10.5ZM13.5 10.5H10.5C10.2188 10.5 10 10.75 10 11C10 11.2812 10.2188 11.5 10.5 11.5H13.5C13.75 11.5 14 11.2812 14 11C14 10.75 13.75 10.5 13.5 10.5ZM13 2H6C5.4375 2 5 2.46875 5 3V6C5 6.5625 5.4375 7 6 7H13C13.5312 7 14 6.5625 14 6V3C14 2.46875 13.5312 2 13 2ZM13 6H6V3H13V6Z" fill="#008635"/></svg>
224
+ <svg class="qld__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" ><use href="{{@root.site.metadata.coreSiteIcons.value}}#article"></use></svg>
231
225
  News
232
226
  </span>
233
227
  {{/ifCond}}
234
228
  {{#ifCond metaData.articleType '==' 'feature-article'}}
235
229
  <span class="qld__search__result-type-name">
236
- <svg width="18" height="14" viewBox="0 0 18 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 0.5V13.5C18 13.7812 17.75 14 17.5 14C17.2188 14 17 13.7812 17 13.5V13.1562L10.9062 11.625C10.625 13 9.4375 14 8 14C6.3125 14 5 12.6562 5 11C5 10.7188 5.03125 10.4375 5.09375 10.1875L1 9.15625V9.5C1 9.78125 0.75 10 0.5 10C0.21875 10 0 9.78125 0 9.5V4.5C0 4.25 0.21875 4 0.5 4C0.75 4 1 4.25 1 4.5V4.875L17 0.875V0.5C17 0.25 17.2188 0 17.5 0C17.75 0 18 0.25 18 0.5ZM17 12.125V1.90625L1 5.90625V8.125L17 12.125ZM8 13C8.96875 13 9.78125 12.3125 9.9375 11.4062L6.0625 10.4375C6 10.625 6 10.8125 6 11C6 12.125 6.875 13 8 13Z" fill="#008635"/></svg>
230
+ <svg class="qld__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" ><use href="{{@root.site.metadata.coreSiteIcons.value}}#announcement"></use></svg>
237
231
  Feature Article
238
232
  </span>
239
233
  {{/ifCond}}
240
234
  {{#ifCond metaData.articleType '==' 'podcast-series'}}
241
235
  <span class="qld__search__result-type-name">
242
- <svg width="14" height="16" viewBox="0 0 14 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 9.75C5.96875 9.75 5 10.0312 5 11.125C5 12.1562 5.375 14.4062 5.625 15.2812C5.78125 15.875 6.40625 16 7 16C7.5625 16 8.1875 15.875 8.34375 15.2812C8.59375 14.375 9 12.1562 9 11.125C9 10.0312 8 9.75 7 9.75ZM7.40625 14.9688C7.21875 15.0312 6.78125 15.0312 6.59375 14.9688C6.34375 14.0625 6 12 6 11.125C6 10.625 8 10.625 8 11.125C8 12 7.625 14.0625 7.40625 14.9688ZM7 5C5.875 5 5 5.90625 5 7C5 8.125 5.875 9 7 9C8.09375 9 9 8.125 9 7C9 5.90625 8.09375 5 7 5ZM7 8C6.4375 8 6 7.5625 6 7C6 6.46875 6.4375 6 7 6C7.53125 6 8 6.46875 8 7C8 7.5625 7.53125 8 7 8ZM7 0C3.125 0 0 3.15625 0 7C0 9.1875 0.96875 11.1875 2.6875 12.5312C2.90625 12.7188 3.21875 12.6562 3.375 12.4375C3.5625 12.2188 3.5 11.9062 3.28125 11.75C1.8125 10.5938 1 8.875 1 7C1 3.71875 3.6875 1 7 1C10.2812 1 13 3.71875 13 7C13 8.875 12.1562 10.5938 10.6875 11.75C10.4688 11.9062 10.4062 12.2188 10.5938 12.4375C10.6875 12.5625 10.8438 12.625 11 12.625C11.0938 12.625 11.1875 12.5625 11.2812 12.5C13 11.1875 14 9.1875 14 7C14 3.15625 10.8438 0 7 0ZM11.5 7C11.5 4.53125 9.46875 2.5 7 2.5C4.5 2.5 2.5 4.53125 2.5 7C2.5 7.8125 2.6875 8.59375 3.09375 9.28125C3.21875 9.5 3.53125 9.59375 3.78125 9.4375C4 9.3125 4.09375 9 3.9375 8.75C3.65625 8.25 3.5 7.625 3.5 7C3.5 5.09375 5.0625 3.5 7 3.5C8.90625 3.5 10.5 5.09375 10.5 7C10.5 7.625 10.3125 8.25 10.0312 8.75C9.875 9 9.96875 9.3125 10.1875 9.4375C10.2812 9.5 10.375 9.5 10.4375 9.5C10.625 9.5 10.7812 9.4375 10.875 9.28125C11.2812 8.59375 11.5 7.8125 11.5 7Z" fill="#008635"/></svg>
236
+ <svg class="qld__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" ><use href="{{@root.site.metadata.coreSiteIcons.value}}#podcast"></use></svg>
243
237
  Podcast
244
238
  </span>
245
239
  {{/ifCond}}
246
- {{!-- <span class="qld__tag qld__tag--info">Read Time Here</span> --}}
247
240
  {{/if}}
248
241
  {{#if fileType}}
249
242
  {{#ifCond fileType '==' 'pdf'}}
250
243
  <span class="qld__search__result-type-name">
251
- <svg width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 14C12 15.125 11.0938 16 10 16H2C0.875 16 0 15.125 0 14H1C1 14.5625 1.4375 15 2 15H10C10.5312 15 11 14.5625 11 14H12ZM7.5 6C6.65625 6 6 5.34375 6 4.5V1H2C1.4375 1 1 1.46875 1 2V7H0V2C0 0.90625 0.875 0 2 0H6.875C7.25 0 7.65625 0.1875 7.9375 0.46875L11.5312 4.0625C11.8125 4.34375 12 4.75 12 5.125V7H11V6H7.5ZM10.8438 4.78125L7.21875 1.15625C7.15625 1.09375 7.0625 1.0625 7 1.03125V4.5C7 4.78125 7.21875 5 7.5 5H10.9688C10.9375 4.9375 10.9062 4.84375 10.8438 4.78125ZM2.75 8C3.6875 8 4.5 8.8125 4.5 9.75C4.5 10.7188 3.6875 11.5 2.75 11.5H2.5V12.5C2.5 12.7812 2.25 13 2 13C1.71875 13 1.5 12.7812 1.5 12.5V8.5C1.5 8.25 1.71875 8 2 8H2.75ZM3.5 9.75C3.5 9.34375 3.15625 9 2.75 9H2.5V10.5H2.75C3.15625 10.5 3.5 10.1875 3.5 9.75ZM5 8.5C5 8.25 5.21875 8 5.5 8H6.25C7.0625 8 7.75 8.6875 7.75 9.5V11.5C7.75 12.3438 7.0625 13 6.25 13H5.5C5.21875 13 5 12.7812 5 12.5V8.5ZM6 12H6.25C6.5 12 6.75 11.7812 6.75 11.5V9.5C6.75 9.25 6.5 9 6.25 9H6V12ZM10.5 8C10.75 8 11 8.25 11 8.5C11 8.78125 10.75 9 10.5 9H9.5V10H10.5C10.75 10 11 10.25 11 10.5C11 10.7812 10.75 11 10.5 11H9.5V12.5C9.5 12.7812 9.25 13 9 13C8.71875 13 8.5 12.7812 8.5 12.5V8.5C8.5 8.25 8.71875 8 9 8H10.5Z" fill="#008635"/></svg>
244
+ <svg class="qld__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" ><use href="{{@root.site.metadata.coreSiteIcons.value}}#document-pdf"></use></svg>
252
245
  Document
253
246
  </span>
254
247
  <span class="qld__tag qld__tag--info">{{toUpperCase fileType}} {{sizeFormat fileSize}}</span>
255
248
  {{/ifCond}}
256
249
  {{#ifCond fileType '==' 'docx'}}
257
250
  <span class="qld__search__result-type-name">
258
- <svg width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.53125 7.84375L4.15625 11.2812L3.46875 7.90625C3.40625 7.65625 3.15625 7.46875 2.875 7.53125C2.625 7.5625 2.4375 7.84375 2.5 8.125L3.5 13.125C3.53125 13.3438 3.71875 13.5 3.9375 13.5C4.15625 13.5312 4.375 13.4062 4.4375 13.1875L6 9.375L7.53125 13.1875C7.59375 13.4062 7.78125 13.5 8 13.5C8 13.5 8 13.5 8.03125 13.5C8.25 13.5 8.4375 13.3438 8.46875 13.125L9.46875 8.125C9.53125 7.84375 9.34375 7.59375 9.09375 7.53125C8.8125 7.46875 8.5625 7.65625 8.5 7.90625L7.8125 11.2812L6.4375 7.84375C6.28125 7.4375 5.6875 7.4375 5.53125 7.84375ZM11.4062 3.9375L8.0625 0.59375C7.6875 0.21875 7.1875 0 6.65625 0H2C0.875 0 0 0.90625 0 2V14C0 15.125 0.875 16 2 16H10C11.0938 16 12 15.125 12 14V5.34375C12 4.8125 11.7812 4.3125 11.4062 3.9375ZM7 1.09375C7.125 1.125 7.25 1.1875 7.375 1.3125L10.6875 4.625C10.8125 4.75 10.875 4.875 10.9062 5H7.5C7.21875 5 7 4.78125 7 4.5V1.09375ZM11 14C11 14.5625 10.5312 15 10 15H2C1.4375 15 1 14.5625 1 14V2C1 1.46875 1.4375 1 2 1H6V4.5C6 5.34375 6.65625 6 7.5 6H11V14Z" fill="#008635"/></svg>
251
+ <svg class="qld__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" ><use href="{{@root.site.metadata.coreSiteIcons.value}}#document-word"></use></svg>
259
252
  Document
260
253
  </span>
261
254
  <span class="qld__tag qld__tag--info">{{toUpperCase fileType}} {{sizeFormat fileSize}}</span>
262
255
  {{/ifCond}}
263
256
  {{#ifCond fileType '==' 'xls'}}
264
257
  <span class="qld__search__result-type-name">
265
- <svg width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.4062 3.9375L8.0625 0.59375C7.6875 0.21875 7.1875 0 6.65625 0H2C0.875 0 0 0.90625 0 2V14C0 15.125 0.875 16 2 16H10C11.0938 16 12 15.125 12 14V5.34375C12 4.8125 11.7812 4.3125 11.4062 3.9375ZM7 1.09375C7.125 1.125 7.25 1.1875 7.375 1.3125L10.6875 4.625C10.8125 4.75 10.875 4.875 10.9062 5H7.5C7.21875 5 7 4.78125 7 4.5V1.09375ZM11 14C11 14.5625 10.5312 15 10 15H2C1.4375 15 1 14.5625 1 14V2C1 1.46875 1.4375 1 2 1H6V4.5C6 5.34375 6.65625 6 7.5 6H11V14ZM2 8V13C2 13.5625 2.4375 14 3 14H9C9.53125 14 10 13.5625 10 13V8C10 7.46875 9.53125 7 9 7H3C2.4375 7 2 7.46875 2 8ZM4 13H3V12H4V13ZM4 11H3V10H4V11ZM7 13H5V12H7V13ZM7 11H5V10H7V11ZM9 13H8V12H9V13ZM9 11H8V10H9V11ZM9 9H3V8H9V9Z" fill="#008635"/></svg>
258
+ <svg class="qld__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" ><use href="{{@root.site.metadata.coreSiteIcons.value}}#document-spreadsheet"></use></svg>
266
259
  Document
267
260
  </span>
268
261
  <span class="qld__tag qld__tag--info">{{toUpperCase fileType}} {{sizeFormat fileSize}}</span>
@@ -271,12 +264,12 @@
271
264
  {{#ifCond collection 'contains' 'service-finder'}}
272
265
  {{#ifCond collection 'contains' '__facilities'}}
273
266
  <span class="qld__search__result-type-name">
274
- <svg width="20" height="20" viewBox="0 0 20 20" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path d="M2.268,9.158l-1.423,1.252c-0.21,0.185 -0.531,0.165 -0.716,-0.046c-0.186,-0.21 -0.165,-0.531 0.045,-0.716l9.507,-8.37c0.192,-0.169 0.48,-0.169 0.672,0l9.472,8.365c0.21,0.185 0.23,0.506 0.045,0.716c-0.186,0.21 -0.507,0.23 -0.717,0.045l-1.385,-1.223l-0,6.984c-0,1.502 -1.22,2.721 -2.721,2.721c-0,-0 -10.058,-0 -10.058,-0c-1.502,-0 -2.721,-1.219 -2.721,-2.721l-0,-7.007Zm1.014,-0.893l6.734,-5.929l6.737,5.949l-0,3.144l-0.001,-0l0,4.736c0,0.941 -0.764,1.705 -1.705,1.705l-10.058,0c-0.941,0 -1.706,-0.764 -1.706,-1.705l0,-4.736l-0.001,-0l-0,-3.164Z" style="fill:#008635;"/><path d="M8.107,9.236l-1.54,-0c-0.52,-0 -0.942,0.422 -0.942,0.942l-0,1.906c-0,0.52 0.422,0.943 0.942,0.943c0,-0 1.54,-0 1.54,-0c0,-0 0,1.545 0,1.545c0,0.521 0.423,0.943 0.943,0.943c-0,-0 1.905,-0 1.905,-0c0.521,-0 0.943,-0.422 0.943,-0.943c-0,0 -0,-1.545 -0,-1.545c-0,-0 1.592,-0 1.592,-0c0.52,-0 0.943,-0.423 0.943,-0.943c-0,0 -0,-1.906 -0,-1.906c-0,-0.52 -0.423,-0.942 -0.943,-0.942c0,-0 -1.592,-0 -1.592,-0c-0,-0 -0,-1.587 -0,-1.587c-0,-0.52 -0.422,-0.943 -0.943,-0.943c0,0 -1.905,0 -1.905,0c-0.52,0 -0.943,0.423 -0.943,0.943l0,1.587Zm2.775,-1.514l-1.759,-0l-0,2.529l-2.483,0l0,1.76l2.483,0l-0,2.488l1.759,0l0,-2.488l2.535,0l0,-1.76l-2.535,0l0,-2.529Z" style="fill:#008635;"/></svg>
267
+ <svg class="qld__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" ><use href="{{@root.site.metadata.extendedSiteIcons.value}}#hospital"></use></svg>
275
268
  Hospital
276
269
  </span>
277
270
  {{else}}
278
271
  <span class="qld__search__result-type-name">
279
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="mask0_2774_246598" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="2" y="3" width="16" height="13"><path d="M16.125 3.625H3.875C2.89062 3.625 2.125 4.41797 2.125 5.375V14.125C2.125 15.1094 2.89062 15.875 3.875 15.875H16.125C17.082 15.875 17.875 15.1094 17.875 14.125V5.375C17.875 4.41797 17.082 3.625 16.125 3.625ZM4.75 15H3.875C3.38281 15 3 14.6172 3 14.125V5.375C3 4.91016 3.38281 4.5 3.875 4.5H4.75V15ZM14.375 15H5.625V4.5H14.375V15ZM17 14.125C17 14.6172 16.5898 15 16.125 15H15.25V4.5H16.125C16.5898 4.5 17 4.91016 17 5.375V14.125ZM7.8125 10.625H9.125V11.9375C9.125 12.1836 9.31641 12.375 9.5625 12.375H10.4375C10.6562 12.375 10.875 12.1836 10.875 11.9375V10.625H12.1875C12.4062 10.625 12.625 10.4336 12.625 10.1875V9.3125C12.625 9.09375 12.4062 8.875 12.1875 8.875H10.875V7.5625C10.875 7.34375 10.6562 7.125 10.4375 7.125H9.5625C9.31641 7.125 9.125 7.34375 9.125 7.5625V8.875H7.8125C7.56641 8.875 7.375 9.09375 7.375 9.3125V10.1875C7.375 10.4336 7.56641 10.625 7.8125 10.625Z" fill="black"/></mask><g mask="url(#mask0_2774_246598)"><rect width="20" height="20" fill="#008635"/></g></svg>
272
+ <svg class="qld__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" ><use href="{{@root.site.metadata.extendedSiteIcons.value}}#health_services"></use></svg>
280
273
  Health Service
281
274
  </span>
282
275
  {{/ifCond}}
@@ -284,16 +277,14 @@
284
277
  {{#if metaData.format}}
285
278
  {{#ifCond metaData.format 'contains' 'video'}}
286
279
  <span class="qld__search__result-type-name">
287
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true" focusable="false" width="20" height="20" role="img"><path fill="currentColor" d="M558.8 99.64c-10.59-5.484-23.37-4.76-33.15 2.099l-102.8 72.04c-7.25 5.062-9 15.05-3.938 22.28C423.1 203.3 433.9 205 441.2 200L544 128v255.9L441.2 312c-7.266-5.047-17.22-3.312-22.28 3.938c-5.062 7.234-3.312 17.22 3.938 22.28l102.8 71.98c5.5 3.844 11.94 5.786 18.38 5.786c5.047 0 10.12-1.203 14.78-3.625C569.4 406.8 576 395.1 576 383.1V128C576 116 569.4 105.2 558.8 99.64zM320 64H64C28.65 64 0 92.65 0 128v256c0 35.35 28.65 64 64 64h256c35.35 0 64-28.65 64-64V128C384 92.65 355.3 64 320 64zM352 384c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V128c0-17.64 14.36-32 32-32h256c17.64 0 32 14.36 32 32V384z"/></svg>
280
+ <svg class="qld__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" ><use href="{{@root.site.metadata.coreSiteIcons.value}}#video"></use></svg>
288
281
  Video
289
282
  </span>
290
- {{!-- <span class="qld__tag qld__tag--info">Video Length Here</span> --}}
291
283
  {{else ifCond metaData.format 'contains' 'audio'}}
292
284
  <span class="qld__search__result-type-name">
293
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true" focusable="false" width="20" height="20" role="img"><path fill="currentColor" d="M224 312c-32.88 0-64 8.625-64 43.75c0 33.13 12.88 104.5 20.62 132.8C185.8 507.7 205.1 512 224 512s38.25-4.375 43.38-23.38C275.1 459.9 288 388.8 288 355.8C288 320.6 256.9 312 224 312zM237 478.5c-6 2-20 2-26 0C203.5 449.5 192 383.4 192 355.8c0-16.25 64-16.38 64 0C256 383.4 244.5 449.6 237 478.5zM224 160C188.6 160 160 188.6 160 224s28.62 64 64 64s64-28.62 64-64S259.4 160 224 160zM224 256C206.4 256 192 241.6 192 224s14.38-32 32-32s32 14.38 32 32S241.6 256 224 256zM224 0C100.5 0 0 100.5 0 224c0 69.39 31.41 133.8 86.16 176.6c6.875 5.406 16.97 4.203 22.44-2.75c5.469-6.969 4.219-17.02-2.75-22.47C58.91 338.7 32 283.5 32 224c0-105.9 86.13-192 192-192s192 86.13 192 192c0 59.48-26.91 114.7-73.84 151.4c-6.969 5.453-8.219 15.5-2.75 22.47C342.6 401.9 347.3 403.1 352 403.1c3.469 0 6.938-1.109 9.844-3.391C416.6 357.8 448 293.4 448 224C448 100.5 347.5 0 224 0zM368 224c0-79.41-64.59-144-144-144S80 144.6 80 224c0 25.34 6.656 50.25 19.28 72.02c4.438 7.672 14.25 10.2 21.88 5.828c7.625-4.422 10.25-14.22 5.812-21.86C117.2 263.1 112 243.7 112 224c0-61.75 50.25-112 112-112s112 50.25 112 112c0 19.72-5.188 39.08-14.97 55.98c-4.438 7.641-1.812 17.44 5.812 21.86C329.4 303.3 332.1 304 334.9 304c5.5 0 10.88-2.859 13.84-7.984C361.3 274.3 368 249.3 368 224z"/></svg>
285
+ <svg class="qld__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" ><use href="{{@root.site.metadata.coreSiteIcons.value}}#audio"></use></svg>
294
286
  Audio
295
287
  </span>
296
- {{!-- <span class="qld__tag qld__tag--info">Audio Length Here</span> --}}
297
288
  {{/ifCond}}
298
289
  {{/if}}
299
290
  </div>
@@ -1,3 +1,5 @@
1
+ import { validateInternalSvgPath, buildIconPath } from "../../../helpers/global-helpers.js";
2
+
1
3
  (function () {
2
4
  "use strict";
3
5
 
@@ -74,7 +76,10 @@
74
76
 
75
77
  // Create <use>
76
78
  const use = document.createElementNS("http://www.w3.org/2000/svg", "use");
77
- use.setAttributeNS(null, "href", `${svgPath}#more-horizontal`);
79
+ // Attempt to validate SVG path before using it
80
+ if (validateInternalSvgPath(svgPath)) {
81
+ use.setAttributeNS(null, "href", buildIconPath(svgPath, "more-horizontal").toString());
82
+ }
78
83
 
79
84
  // Append <use> to <svg>
80
85
  svg.appendChild(use);
@@ -10,13 +10,13 @@
10
10
  word-wrap: break-word;
11
11
  @include QLD-space(max-width, $QLD-font-maxwidth);
12
12
 
13
- & &__heading{
13
+ & &__heading {
14
14
  margin: 0;
15
15
  color: var(--QLD-color-light__heading);
16
16
 
17
17
  &.qld__callout__heading--sronly {
18
18
  @include QLD-sronly();
19
-
19
+
20
20
  & + * {
21
21
  margin-top: 0;
22
22
  }
@@ -24,47 +24,47 @@
24
24
  }
25
25
 
26
26
  p {
27
- margin: 0;
28
- }
27
+ margin: 0;
28
+ }
29
29
 
30
- a{
30
+ a {
31
31
  color: var(--QLD-color-light__link);
32
32
  }
33
33
 
34
34
  * + p {
35
- @include QLD-space( margin-top, 1unit );
36
- }
35
+ @include QLD-space(margin-top, 1unit);
36
+ }
37
37
 
38
- #content > &{
39
- @include QLD-space( margin-top, 0unit );
38
+ #content > & {
39
+ @include QLD-space(margin-top, 0unit);
40
40
  }
41
41
 
42
42
  * + & {
43
- @include QLD-space( margin-top, 1.5unit );
43
+ @include QLD-space(margin-top, 1.5unit);
44
44
  @include QLD-media(lg) {
45
- @include QLD-space( margin-top, 2unit );
45
+ @include QLD-space(margin-top, 2unit);
46
46
  }
47
- }
47
+ }
48
48
 
49
49
  // Visual treatment for paragraphs following callout
50
- & + p {
51
- @include QLD-space( margin-top, 2unit );
52
- }
50
+ & + p {
51
+ @include QLD-space(margin-top, 2unit);
52
+ }
53
53
 
54
54
  //Event callout
55
- &--calendar-event{
55
+ &--calendar-event {
56
56
  .qld__callout--calendar-event__lede {
57
- @include QLD-fontgrid( sm, nospace );
57
+ @include QLD-fontgrid(sm, nospace);
58
58
  margin: 0;
59
59
  }
60
60
 
61
61
  .qld__callout--calendar-event__time,
62
62
  .qld__callout--calendar-event__name {
63
- @include QLD-fontgrid( xl, heading );
63
+ @include QLD-fontgrid(xl, heading);
64
64
  }
65
65
 
66
66
  .qld__callout--calendar-event__time {
67
- font-weight: bold;
67
+ font-weight: $QLD-font-weight-semibold;
68
68
  }
69
69
 
70
70
  .qld__callout--calendar-event__lede,
@@ -76,21 +76,20 @@
76
76
  * + .qld__callout--calendar-event__time,
77
77
  * + .qld__callout--calendar-event__name,
78
78
  * + .qld__callout--calendar-event__lede {
79
- @include QLD-space( margin-top, 0.5unit ); // overrides body, to allow for var. text markup.
79
+ @include QLD-space(margin-top, 0.5unit); // overrides body, to allow for var. text markup.
80
80
  }
81
-
82
81
  }
83
82
 
84
83
  &--light,
85
84
  .qld__body--light & {
86
85
  border-left-color: var(--QLD-color-light__design-accent);
87
- background-color: var(--QLD-color-light__background--shade);
88
- }
86
+ background-color: var(--QLD-color-light__background--shade);
87
+ }
89
88
  &--alt,
90
89
  .qld__body--alt & {
91
90
  border-left-color: var(--QLD-color-light__design-accent);
92
- background-color: var(--QLD-color-light__background--alt-shade);
93
- }
91
+ background-color: var(--QLD-color-light__background--alt-shade);
92
+ }
94
93
 
95
94
  &--dark,
96
95
  .qld__body--dark & {
@@ -98,19 +97,19 @@
98
97
  background-color: var(--QLD-color-dark__background--shade);
99
98
  border-left-color: var(--QLD-color-dark__design-accent);
100
99
 
101
- .qld__callout__heading{
100
+ .qld__callout__heading {
102
101
  color: var(--QLD-color-dark__heading);
103
102
  }
104
103
 
105
- a{
104
+ a {
106
105
  color: var(--QLD-color-dark__link);
107
106
 
108
- &:hover{
107
+ &:hover {
109
108
  color: var(--QLD-color-dark__text);
110
109
  }
111
110
  }
112
111
 
113
- &.qld__callout--calendar-event{
112
+ &.qld__callout--calendar-event {
114
113
  .qld__callout--calendar-event__lede {
115
114
  color: var(--QLD-color-dark__text);
116
115
  }
@@ -120,37 +119,35 @@
120
119
  &--dark-alt,
121
120
  .qld__body--dark-alt & {
122
121
  color: var(--QLD-color-dark__text);
123
- background-color: var(--QLD-color-dark__background--alt-shade);
122
+ background-color: var(--QLD-color-dark__background--alt-shade);
124
123
  border-left-color: var(--QLD-color-dark__design-accent);
125
124
 
126
- .qld__callout__heading{
125
+ .qld__callout__heading {
127
126
  color: var(--QLD-color-dark__heading);
128
127
  }
129
128
 
130
- a{
129
+ a {
131
130
  color: var(--QLD-color-dark__link);
132
131
 
133
- &:hover{
132
+ &:hover {
134
133
  color: var(--QLD-color-dark__text);
135
134
  }
136
135
  }
137
136
 
138
- &.qld__callout--calendar-event{
137
+ &.qld__callout--calendar-event {
139
138
  .qld__callout--calendar-event__lede {
140
139
  color: var(--QLD-color-dark__text);
141
140
  }
142
141
  }
143
142
  }
144
-
145
-
146
143
  }
147
144
 
148
145
  // Print styles
149
146
  @media print {
150
- .qld__callout {
151
- @include QLD-space( border-left-width, 1unit !important );
147
+ .qld__callout {
148
+ @include QLD-space(border-left-width, 1unit !important);
152
149
  border: 1px solid #000 !important;
153
150
  color: #000 !important;
154
151
  background-color: transparent !important;
155
- }
156
- }
152
+ }
153
+ }