@itcenteratunihelsinki/huds-lib 0.5.0 → 0.5.4

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 (421) hide show
  1. package/dist/cjs/huds-lib.cjs.js +1 -1
  2. package/dist/cjs/hy-accordion-container.cjs.entry.js +1 -1
  3. package/dist/cjs/hy-accordion-item.cjs.entry.js +2 -2
  4. package/dist/cjs/hy-adjacent-image-text.cjs.entry.js +1 -1
  5. package/dist/cjs/hy-anchor-link-list.cjs.entry.js +1 -1
  6. package/dist/cjs/hy-badge.cjs.entry.js +1 -1
  7. package/dist/cjs/hy-banner.cjs.entry.js +2 -2
  8. package/dist/cjs/hy-box.cjs.entry.js +1 -1
  9. package/dist/cjs/hy-breadcrumbs.cjs.entry.js +2 -2
  10. package/dist/cjs/hy-button.cjs.entry.js +1 -1
  11. package/dist/cjs/hy-checkbox.cjs.entry.js +2 -2
  12. package/dist/cjs/hy-collaboration.cjs.entry.js +1 -1
  13. package/dist/cjs/hy-content-list-item.cjs.entry.js +9 -3
  14. package/dist/cjs/hy-content-list.cjs.entry.js +40 -37
  15. package/dist/cjs/hy-crisis-banner.cjs.entry.js +1 -1
  16. package/dist/cjs/hy-cta-button.cjs.entry.js +2 -10
  17. package/dist/cjs/hy-cta-link.cjs.entry.js +4 -22
  18. package/dist/cjs/hy-desktop-menu-links.cjs.entry.js +2 -2
  19. package/dist/cjs/hy-dropdown.cjs.entry.js +1 -1
  20. package/dist/cjs/hy-filter-group-item.cjs.entry.js +1 -1
  21. package/dist/cjs/hy-filter-group.cjs.entry.js +1 -1
  22. package/dist/cjs/hy-filter-list-type.cjs.entry.js +2 -2
  23. package/dist/cjs/hy-filter-visibility-tool.cjs.entry.js +1 -1
  24. package/dist/cjs/hy-footer_5.cjs.entry.js +6 -6
  25. package/dist/cjs/hy-general-list_2.cjs.entry.js +3 -3
  26. package/dist/cjs/hy-grid-container.cjs.entry.js +1 -1
  27. package/dist/cjs/hy-grid-item.cjs.entry.js +2 -2
  28. package/dist/cjs/hy-grid-row.cjs.entry.js +1 -1
  29. package/dist/cjs/hy-heading.cjs.entry.js +3 -3
  30. package/dist/cjs/hy-hero.cjs.entry.js +23 -130
  31. package/dist/cjs/hy-image.cjs.entry.js +1 -1
  32. package/dist/cjs/hy-ingress.cjs.entry.js +1 -1
  33. package/dist/cjs/hy-introduction.cjs.entry.js +2 -2
  34. package/dist/cjs/hy-key-figure-group.cjs.entry.js +2 -2
  35. package/dist/cjs/hy-key-figure.cjs.entry.js +2 -2
  36. package/dist/cjs/hy-key-highlight-group.cjs.entry.js +2 -2
  37. package/dist/cjs/hy-key-highlight.cjs.entry.js +2 -2
  38. package/dist/cjs/hy-large-process-flow-phase.cjs.entry.js +1 -1
  39. package/dist/cjs/hy-large-process-flow.cjs.entry.js +2 -2
  40. package/dist/cjs/hy-link-box-list.cjs.entry.js +2 -2
  41. package/dist/cjs/hy-link-box.cjs.entry.js +2 -2
  42. package/dist/cjs/hy-link-list.cjs.entry.js +9 -6
  43. package/dist/cjs/hy-link.cjs.entry.js +2 -2
  44. package/dist/cjs/hy-list-item.cjs.entry.js +2 -2
  45. package/dist/cjs/hy-logo-grid-item.cjs.entry.js +30 -0
  46. package/dist/cjs/hy-logo-grid.cjs.entry.js +5 -9
  47. package/dist/cjs/hy-main-content-wrapper.cjs.entry.js +1 -1
  48. package/dist/cjs/hy-main.cjs.entry.js +1 -1
  49. package/dist/cjs/hy-menu-item-sidebar.cjs.entry.js +2 -2
  50. package/dist/cjs/hy-menu-item.cjs.entry.js +2 -2
  51. package/dist/cjs/hy-menu-language-item.cjs.entry.js +1 -1
  52. package/dist/cjs/hy-menu-language_2.cjs.entry.js +2 -2
  53. package/dist/cjs/hy-menu-level-container.cjs.entry.js +2 -2
  54. package/dist/cjs/hy-menu-main-group.cjs.entry.js +2 -2
  55. package/dist/cjs/hy-menu-sidebar.cjs.entry.js +2 -2
  56. package/dist/cjs/hy-menu.cjs.entry.js +2 -2
  57. package/dist/cjs/hy-opening-hours-content.cjs.entry.js +1 -1
  58. package/dist/cjs/hy-opening-hours.cjs.entry.js +2 -2
  59. package/dist/cjs/hy-pager-item.cjs.entry.js +2 -2
  60. package/dist/cjs/hy-pager.cjs.entry.js +1 -1
  61. package/dist/cjs/hy-paragraph-text.cjs.entry.js +4 -4
  62. package/dist/cjs/hy-person-card.cjs.entry.js +2 -2
  63. package/dist/cjs/hy-process-flow-box.cjs.entry.js +2 -2
  64. package/dist/cjs/hy-process.cjs.entry.js +2 -2
  65. package/dist/cjs/hy-prominent-image.cjs.entry.js +1 -1
  66. package/dist/cjs/hy-quote.cjs.entry.js +1 -1
  67. package/dist/cjs/hy-search-field.cjs.entry.js +2 -2
  68. package/dist/cjs/hy-section-container.cjs.entry.js +1 -1
  69. package/dist/cjs/hy-shortcuts.cjs.entry.js +2 -2
  70. package/dist/cjs/hy-site-header_3.cjs.entry.js +4 -4
  71. package/dist/cjs/hy-table-container.cjs.entry.js +1 -1
  72. package/dist/cjs/hy-tabs-item.cjs.entry.js +1 -1
  73. package/dist/cjs/hy-tabs.cjs.entry.js +1 -1
  74. package/dist/cjs/hy-tag.cjs.entry.js +1 -1
  75. package/dist/cjs/hy-tiny-text.cjs.entry.js +1 -1
  76. package/dist/cjs/hy-two-columns.cjs.entry.js +1 -1
  77. package/dist/cjs/hy-user-login-form.cjs.entry.js +2 -2
  78. package/dist/cjs/hy-video.cjs.entry.js +2 -2
  79. package/dist/cjs/loader.cjs.js +1 -1
  80. package/dist/cjs/{utils-250efadd.js → utils-f2f5569b.js} +14 -0
  81. package/dist/collection/collection-manifest.json +1 -0
  82. package/dist/collection/components/accordion-container/accordion-container.css +2 -0
  83. package/dist/collection/components/accordion-item/accordion-item.css +2 -0
  84. package/dist/collection/components/adjacent-image-text/adjacent-image-text.css +2 -0
  85. package/dist/collection/components/button/button.css +2 -0
  86. package/dist/collection/components/courses/hy-content-list/hy-content-list.css +2 -0
  87. package/dist/collection/components/courses/hy-content-list/hy-content-list.js +62 -36
  88. package/dist/collection/components/courses/hy-content-list-item/hy-content-list-item.css +10 -0
  89. package/dist/collection/components/courses/hy-content-list-item/hy-content-list-item.js +32 -3
  90. package/dist/collection/components/cta-button/cta-button.css +101 -138
  91. package/dist/collection/components/cta-button/cta-button.js +1 -9
  92. package/dist/collection/components/cta-link/cta-link.css +21 -121
  93. package/dist/collection/components/cta-link/cta-link.js +7 -63
  94. package/dist/collection/components/footer/hy-footer/hy-footer.css +2 -0
  95. package/dist/collection/components/footer/hy-footer-action/hy-footer-action.css +2 -0
  96. package/dist/collection/components/footer/hy-footer-base/hy-footer-base.css +2 -0
  97. package/dist/collection/components/footer/hy-footer-info/hy-footer-info.css +2 -0
  98. package/dist/collection/components/footer/hy-footer-link-item/hy-footer-link-item.css +2 -0
  99. package/dist/collection/components/grid-container/grid-container.css +2 -0
  100. package/dist/collection/components/grid-item/grid-item.css +2 -0
  101. package/dist/collection/components/grid-row/grid-row.css +2 -0
  102. package/dist/collection/components/heading/heading-fw.css +6 -75
  103. package/dist/collection/components/heading/heading.css +6 -75
  104. package/dist/collection/components/heading/heading.js +1 -1
  105. package/dist/collection/components/hy-anchor-link-list/hy-anchor-link-list.css +2 -0
  106. package/dist/collection/components/hy-badge/hy-badge.css +2 -0
  107. package/dist/collection/components/hy-banner/hy-banner.css +2 -0
  108. package/dist/collection/components/hy-box/hy-box.css +2 -0
  109. package/dist/collection/components/hy-breadcrumbs/hy-breadcrumbs.css +2 -0
  110. package/dist/collection/components/hy-checkbox/hy-checkbox.css +2 -0
  111. package/dist/collection/components/hy-collaboration/hy-collaboration.css +2 -0
  112. package/dist/collection/components/hy-crisis-banner/hy-crisis-banner.css +2 -0
  113. package/dist/collection/components/hy-dropdown/hy-dropdown.css +2 -0
  114. package/dist/collection/components/hy-filter-group/hy-filter-group.css +2 -0
  115. package/dist/collection/components/hy-filter-list-type/hy-filter-list-type.css +2 -0
  116. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.css +2 -0
  117. package/dist/collection/components/hy-general-list/hy-general-list.css +2 -0
  118. package/dist/collection/components/hy-general-list-item/hy-general-list-item.css +2 -0
  119. package/dist/collection/components/hy-hero/hy-hero.css +129 -712
  120. package/dist/collection/components/hy-hero/hy-hero.js +56 -168
  121. package/dist/collection/components/hy-introduction/hy-introduction.css +2 -0
  122. package/dist/collection/components/hy-key-figure/hy-key-figure.css +2 -0
  123. package/dist/collection/components/hy-key-figure-group/hy-key-figure-group.css +2 -0
  124. package/dist/collection/components/hy-key-highlight/hy-key-highlight.css +2 -0
  125. package/dist/collection/components/hy-key-highlight-group/hy-key-highlight-group.css +2 -0
  126. package/dist/collection/components/hy-large-process-flow/hy-large-process-flow.css +2 -0
  127. package/dist/collection/components/hy-large-process-flow-phase/hy-large-process-flow-phase.css +2 -0
  128. package/dist/collection/components/hy-link-list/hy-link-list.css +223 -14
  129. package/dist/collection/components/hy-link-list/hy-link-list.js +45 -7
  130. package/dist/collection/components/hy-list-item/hy-list-item.css +2 -0
  131. package/dist/collection/components/hy-logo-grid/hy-logo-grid.css +2 -0
  132. package/dist/collection/components/hy-logo-grid/hy-logo-grid.item.js +64 -0
  133. package/dist/collection/components/hy-logo-grid/hy-logo-grid.js +3 -27
  134. package/dist/collection/components/hy-main/hy-main.css +2 -0
  135. package/dist/collection/components/hy-main-content-wrapper/hy-main-content-wrapper.css +2 -0
  136. package/dist/collection/components/hy-opening-hours/hy-opening-hours.css +2 -0
  137. package/dist/collection/components/hy-opening-hours-content/hy-opening-hours-content.css +2 -0
  138. package/dist/collection/components/hy-person-card/hy-person-card.css +2 -0
  139. package/dist/collection/components/hy-prominent-image/hy-prominent-image.css +2 -0
  140. package/dist/collection/components/hy-quote/hy-quote.css +2 -0
  141. package/dist/collection/components/hy-search-field/hy-search-field.css +2 -0
  142. package/dist/collection/components/hy-shortcuts/hy-shortcuts.css +2 -0
  143. package/dist/collection/components/hy-table-container/hy-table-container.css +2 -0
  144. package/dist/collection/components/hy-tabs/hy-tabs.css +2 -0
  145. package/dist/collection/components/hy-tabs-item/hy-tabs-item.css +2 -0
  146. package/dist/collection/components/hy-tag/hy-tag.css +2 -0
  147. package/dist/collection/components/hy-two-columns/hy-two-columns.css +2 -0
  148. package/dist/collection/components/hy-user-login-form/hy-user-login-form.css +2 -0
  149. package/dist/collection/components/hy-video/hy-video.css +2 -0
  150. package/dist/collection/components/image/image.css +2 -0
  151. package/dist/collection/components/ingress/ingress.css +2 -0
  152. package/dist/collection/components/link/link.css +2 -0
  153. package/dist/collection/components/link-box/link-box.css +2 -0
  154. package/dist/collection/components/link-box-list/link-box-list.css +2 -0
  155. package/dist/collection/components/navigation/hy-menu-main-group/hy-menu-main-group.css +2 -0
  156. package/dist/collection/components/navigation/menu/menu.css +2 -0
  157. package/dist/collection/components/navigation/menu-item/menu-item.css +2 -0
  158. package/dist/collection/components/navigation/menu-item-sidebar/menu-item-sidebar.css +2 -0
  159. package/dist/collection/components/navigation/menu-language/menu-language.css +2 -0
  160. package/dist/collection/components/navigation/menu-language-item/menu-language-item.css +2 -0
  161. package/dist/collection/components/navigation/menu-level-container/menu-level-container.css +2 -0
  162. package/dist/collection/components/navigation/menu-mobile-breadcrumb/menu-mobile-breadcrumb.css +2 -0
  163. package/dist/collection/components/navigation/menu-sidebar/menu-sidebar.css +2 -0
  164. package/dist/collection/components/pagination/hy-pager/hy-pager.css +2 -0
  165. package/dist/collection/components/pagination/hy-pager-item/hy-pager-item.css +2 -0
  166. package/dist/collection/components/paragraph-text/paragraph-text-content.css +2 -0
  167. package/dist/collection/components/paragraph-text/paragraph-text-landing.css +2 -0
  168. package/dist/collection/components/paragraph-text/paragraph-text.css +7 -0
  169. package/dist/collection/components/paragraph-text/paragraph-text.js +1 -2
  170. package/dist/collection/components/process/process.css +2 -0
  171. package/dist/collection/components/process-flow-box/process-flow-box.css +2 -0
  172. package/dist/collection/components/section-container/section-container.css +2 -0
  173. package/dist/collection/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.css +2 -0
  174. package/dist/collection/components/site-header/site-header.css +2 -0
  175. package/dist/collection/components/site-header/site-logo/site-logo.css +2 -0
  176. package/dist/collection/components/site-header/site-search/site-search.css +2 -0
  177. package/dist/collection/components/tiny-text/tiny-text.css +2 -0
  178. package/dist/collection/utils/utils.js +14 -0
  179. package/dist/esm/huds-lib.js +1 -1
  180. package/dist/esm/hy-accordion-container.entry.js +1 -1
  181. package/dist/esm/hy-accordion-item.entry.js +2 -2
  182. package/dist/esm/hy-adjacent-image-text.entry.js +1 -1
  183. package/dist/esm/hy-anchor-link-list.entry.js +1 -1
  184. package/dist/esm/hy-badge.entry.js +1 -1
  185. package/dist/esm/hy-banner.entry.js +2 -2
  186. package/dist/esm/hy-box.entry.js +1 -1
  187. package/dist/esm/hy-breadcrumbs.entry.js +2 -2
  188. package/dist/esm/hy-button.entry.js +1 -1
  189. package/dist/esm/hy-checkbox.entry.js +2 -2
  190. package/dist/esm/hy-collaboration.entry.js +1 -1
  191. package/dist/esm/hy-content-list-item.entry.js +9 -3
  192. package/dist/esm/hy-content-list.entry.js +40 -37
  193. package/dist/esm/hy-crisis-banner.entry.js +1 -1
  194. package/dist/esm/hy-cta-button.entry.js +2 -10
  195. package/dist/esm/hy-cta-link.entry.js +4 -22
  196. package/dist/esm/hy-desktop-menu-links.entry.js +2 -2
  197. package/dist/esm/hy-dropdown.entry.js +1 -1
  198. package/dist/esm/hy-filter-group-item.entry.js +1 -1
  199. package/dist/esm/hy-filter-group.entry.js +1 -1
  200. package/dist/esm/hy-filter-list-type.entry.js +2 -2
  201. package/dist/esm/hy-filter-visibility-tool.entry.js +1 -1
  202. package/dist/esm/hy-footer_5.entry.js +6 -6
  203. package/dist/esm/hy-general-list_2.entry.js +3 -3
  204. package/dist/esm/hy-grid-container.entry.js +1 -1
  205. package/dist/esm/hy-grid-item.entry.js +2 -2
  206. package/dist/esm/hy-grid-row.entry.js +1 -1
  207. package/dist/esm/hy-heading.entry.js +3 -3
  208. package/dist/esm/hy-hero.entry.js +23 -130
  209. package/dist/esm/hy-image.entry.js +1 -1
  210. package/dist/esm/hy-ingress.entry.js +1 -1
  211. package/dist/esm/hy-introduction.entry.js +2 -2
  212. package/dist/esm/hy-key-figure-group.entry.js +2 -2
  213. package/dist/esm/hy-key-figure.entry.js +2 -2
  214. package/dist/esm/hy-key-highlight-group.entry.js +2 -2
  215. package/dist/esm/hy-key-highlight.entry.js +2 -2
  216. package/dist/esm/hy-large-process-flow-phase.entry.js +1 -1
  217. package/dist/esm/hy-large-process-flow.entry.js +2 -2
  218. package/dist/esm/hy-link-box-list.entry.js +2 -2
  219. package/dist/esm/hy-link-box.entry.js +2 -2
  220. package/dist/esm/hy-link-list.entry.js +9 -6
  221. package/dist/esm/hy-link.entry.js +2 -2
  222. package/dist/esm/hy-list-item.entry.js +2 -2
  223. package/dist/esm/hy-logo-grid-item.entry.js +26 -0
  224. package/dist/esm/hy-logo-grid.entry.js +5 -9
  225. package/dist/esm/hy-main-content-wrapper.entry.js +1 -1
  226. package/dist/esm/hy-main.entry.js +1 -1
  227. package/dist/esm/hy-menu-item-sidebar.entry.js +2 -2
  228. package/dist/esm/hy-menu-item.entry.js +2 -2
  229. package/dist/esm/hy-menu-language-item.entry.js +1 -1
  230. package/dist/esm/hy-menu-language_2.entry.js +2 -2
  231. package/dist/esm/hy-menu-level-container.entry.js +2 -2
  232. package/dist/esm/hy-menu-main-group.entry.js +2 -2
  233. package/dist/esm/hy-menu-sidebar.entry.js +2 -2
  234. package/dist/esm/hy-menu.entry.js +2 -2
  235. package/dist/esm/hy-opening-hours-content.entry.js +1 -1
  236. package/dist/esm/hy-opening-hours.entry.js +2 -2
  237. package/dist/esm/hy-pager-item.entry.js +2 -2
  238. package/dist/esm/hy-pager.entry.js +1 -1
  239. package/dist/esm/hy-paragraph-text.entry.js +4 -4
  240. package/dist/esm/hy-person-card.entry.js +2 -2
  241. package/dist/esm/hy-process-flow-box.entry.js +2 -2
  242. package/dist/esm/hy-process.entry.js +2 -2
  243. package/dist/esm/hy-prominent-image.entry.js +1 -1
  244. package/dist/esm/hy-quote.entry.js +1 -1
  245. package/dist/esm/hy-search-field.entry.js +2 -2
  246. package/dist/esm/hy-section-container.entry.js +1 -1
  247. package/dist/esm/hy-shortcuts.entry.js +2 -2
  248. package/dist/esm/hy-site-header_3.entry.js +4 -4
  249. package/dist/esm/hy-table-container.entry.js +1 -1
  250. package/dist/esm/hy-tabs-item.entry.js +1 -1
  251. package/dist/esm/hy-tabs.entry.js +1 -1
  252. package/dist/esm/hy-tag.entry.js +1 -1
  253. package/dist/esm/hy-tiny-text.entry.js +1 -1
  254. package/dist/esm/hy-two-columns.entry.js +1 -1
  255. package/dist/esm/hy-user-login-form.entry.js +2 -2
  256. package/dist/esm/hy-video.entry.js +2 -2
  257. package/dist/esm/loader.js +1 -1
  258. package/dist/esm/{utils-8abfa3c2.js → utils-5edb511a.js} +15 -1
  259. package/dist/huds-lib/huds-lib.css +1 -1
  260. package/dist/huds-lib/huds-lib.esm.js +1 -1
  261. package/dist/huds-lib/p-031d3bf8.entry.js +1 -0
  262. package/dist/huds-lib/{p-4d4f7c93.entry.js → p-039f663c.entry.js} +1 -1
  263. package/dist/huds-lib/p-0523053d.entry.js +1 -0
  264. package/dist/huds-lib/p-06a18d92.entry.js +1 -0
  265. package/dist/huds-lib/p-0c682a0e.entry.js +1 -0
  266. package/dist/huds-lib/{p-94d8d10a.entry.js → p-0f50c3f9.entry.js} +1 -1
  267. package/dist/huds-lib/p-124131e3.entry.js +1 -0
  268. package/dist/huds-lib/p-1296897a.entry.js +1 -0
  269. package/dist/huds-lib/p-20a265d7.js +1 -0
  270. package/dist/huds-lib/p-23820e91.entry.js +1 -0
  271. package/dist/huds-lib/p-253f796c.entry.js +1 -0
  272. package/dist/huds-lib/p-2ae655ad.entry.js +1 -0
  273. package/dist/huds-lib/p-2ee57761.entry.js +1 -0
  274. package/dist/huds-lib/p-31ff02c7.entry.js +1 -0
  275. package/dist/huds-lib/{p-c3f5d0ce.entry.js → p-35bc6516.entry.js} +1 -1
  276. package/dist/huds-lib/p-3637543d.entry.js +1 -0
  277. package/dist/huds-lib/p-3663dfa6.entry.js +1 -0
  278. package/dist/huds-lib/p-381e756f.entry.js +1 -0
  279. package/dist/huds-lib/p-40da4ea2.entry.js +1 -0
  280. package/dist/huds-lib/p-4539ca8d.entry.js +1 -0
  281. package/dist/huds-lib/p-485099a1.entry.js +1 -0
  282. package/dist/huds-lib/p-499b6c19.entry.js +1 -0
  283. package/dist/huds-lib/p-4c8a98c2.entry.js +1 -0
  284. package/dist/huds-lib/p-57aaf7d3.entry.js +1 -0
  285. package/dist/huds-lib/p-57ab4e6e.entry.js +1 -0
  286. package/dist/huds-lib/p-5a95b265.entry.js +1 -0
  287. package/dist/huds-lib/p-6053432d.entry.js +1 -0
  288. package/dist/huds-lib/p-636002e9.entry.js +1 -0
  289. package/dist/huds-lib/p-665bab39.entry.js +1 -0
  290. package/dist/huds-lib/p-69bb03b5.entry.js +1 -0
  291. package/dist/huds-lib/p-69fdd152.entry.js +1 -0
  292. package/dist/huds-lib/p-70fcc954.entry.js +1 -0
  293. package/dist/huds-lib/p-711691d9.entry.js +1 -0
  294. package/dist/huds-lib/p-727a9714.entry.js +1 -0
  295. package/dist/huds-lib/p-7b16ec44.entry.js +1 -0
  296. package/dist/huds-lib/{p-0f8df159.entry.js → p-7b2c2481.entry.js} +1 -1
  297. package/dist/huds-lib/p-7d777e18.entry.js +1 -0
  298. package/dist/huds-lib/p-8942d01b.entry.js +1 -0
  299. package/dist/huds-lib/p-8d9ced03.entry.js +1 -0
  300. package/dist/huds-lib/p-8f8c3f99.entry.js +1 -0
  301. package/dist/huds-lib/p-91397c3c.entry.js +1 -0
  302. package/dist/huds-lib/p-98dd30e9.entry.js +1 -0
  303. package/dist/huds-lib/p-9b834399.entry.js +1 -0
  304. package/dist/huds-lib/p-9deb2733.entry.js +1 -0
  305. package/dist/huds-lib/p-9f108905.entry.js +1 -0
  306. package/dist/huds-lib/p-a2a007e9.entry.js +1 -0
  307. package/dist/huds-lib/p-a847e865.entry.js +1 -0
  308. package/dist/huds-lib/p-a8618be5.entry.js +1 -0
  309. package/dist/huds-lib/p-abebc2df.entry.js +1 -0
  310. package/dist/huds-lib/p-ad5233f6.entry.js +1 -0
  311. package/dist/huds-lib/p-ad8591a4.entry.js +1 -0
  312. package/dist/huds-lib/p-af8801e4.entry.js +1 -0
  313. package/dist/huds-lib/p-b4bf94bd.entry.js +1 -0
  314. package/dist/huds-lib/p-b542ab10.entry.js +1 -0
  315. package/dist/huds-lib/p-b6cc78ce.entry.js +1 -0
  316. package/dist/huds-lib/p-b87355aa.entry.js +1 -0
  317. package/dist/huds-lib/p-ba8ac70e.entry.js +1 -0
  318. package/dist/huds-lib/p-c0b247d8.entry.js +1 -0
  319. package/dist/huds-lib/p-c1c66328.entry.js +1 -0
  320. package/dist/huds-lib/p-c78875fd.entry.js +1 -0
  321. package/dist/huds-lib/p-c89d1618.entry.js +1 -0
  322. package/dist/huds-lib/p-c8b11427.entry.js +1 -0
  323. package/dist/huds-lib/p-d06af299.entry.js +1 -0
  324. package/dist/huds-lib/p-d38b0576.entry.js +1 -0
  325. package/dist/huds-lib/p-d8161ace.entry.js +1 -0
  326. package/dist/huds-lib/p-db4c74a2.entry.js +1 -0
  327. package/dist/huds-lib/p-df306531.entry.js +1 -0
  328. package/dist/huds-lib/p-e00b9ff1.entry.js +1 -0
  329. package/dist/huds-lib/p-e07cc533.entry.js +1 -0
  330. package/dist/huds-lib/p-e4930926.entry.js +1 -0
  331. package/dist/huds-lib/p-e5bf0843.entry.js +1 -0
  332. package/dist/huds-lib/p-ef6935c1.entry.js +1 -0
  333. package/dist/huds-lib/{p-ef257bde.entry.js → p-f05bdce1.entry.js} +6 -6
  334. package/dist/huds-lib/p-f60f8340.entry.js +1 -0
  335. package/dist/huds-lib/p-f6117edb.entry.js +1 -0
  336. package/dist/huds-lib/p-fc2f0ada.entry.js +1 -0
  337. package/dist/huds-lib/p-fe6eb2b6.entry.js +1 -0
  338. package/dist/huds-lib/p-ff55795d.entry.js +1 -0
  339. package/dist/types/components/courses/hy-content-list/hy-content-list.d.ts +2 -0
  340. package/dist/types/components/courses/hy-content-list-item/hy-content-list-item.d.ts +2 -1
  341. package/dist/types/components/cta-button/cta-button.d.ts +0 -1
  342. package/dist/types/components/cta-link/cta-link.d.ts +0 -3
  343. package/dist/types/components/hy-hero/hy-hero.d.ts +2 -6
  344. package/dist/types/components/hy-link-list/hy-link-list.d.ts +3 -0
  345. package/dist/types/components/hy-logo-grid/hy-logo-grid.d.ts +1 -2
  346. package/dist/types/components/hy-logo-grid/hy-logo-grid.item.d.ts +5 -0
  347. package/dist/types/components.d.ts +28 -9
  348. package/dist/types/utils/utils.d.ts +13 -1
  349. package/package.json +1 -1
  350. package/dist/huds-lib/p-04c0025f.entry.js +0 -1
  351. package/dist/huds-lib/p-073c159c.entry.js +0 -1
  352. package/dist/huds-lib/p-07879e63.entry.js +0 -1
  353. package/dist/huds-lib/p-09d51ef3.entry.js +0 -1
  354. package/dist/huds-lib/p-0ad985b7.entry.js +0 -1
  355. package/dist/huds-lib/p-133ae856.entry.js +0 -1
  356. package/dist/huds-lib/p-231a4ecb.entry.js +0 -1
  357. package/dist/huds-lib/p-234d4903.entry.js +0 -1
  358. package/dist/huds-lib/p-241754b9.entry.js +0 -1
  359. package/dist/huds-lib/p-257478e6.entry.js +0 -1
  360. package/dist/huds-lib/p-276d93ec.entry.js +0 -1
  361. package/dist/huds-lib/p-2c370ae5.entry.js +0 -1
  362. package/dist/huds-lib/p-3000b90a.entry.js +0 -1
  363. package/dist/huds-lib/p-3173b79e.entry.js +0 -1
  364. package/dist/huds-lib/p-31d6ddf6.entry.js +0 -1
  365. package/dist/huds-lib/p-334d3c51.entry.js +0 -1
  366. package/dist/huds-lib/p-345d3f01.entry.js +0 -1
  367. package/dist/huds-lib/p-3626953d.entry.js +0 -1
  368. package/dist/huds-lib/p-3a317b1f.entry.js +0 -1
  369. package/dist/huds-lib/p-3b456fd6.entry.js +0 -1
  370. package/dist/huds-lib/p-3dd8acb8.entry.js +0 -1
  371. package/dist/huds-lib/p-3de303ab.entry.js +0 -1
  372. package/dist/huds-lib/p-3f27e439.entry.js +0 -1
  373. package/dist/huds-lib/p-4080818c.entry.js +0 -1
  374. package/dist/huds-lib/p-47c87b1c.js +0 -1
  375. package/dist/huds-lib/p-4e509573.entry.js +0 -1
  376. package/dist/huds-lib/p-559f5267.entry.js +0 -1
  377. package/dist/huds-lib/p-609402fd.entry.js +0 -1
  378. package/dist/huds-lib/p-60ec6d2e.entry.js +0 -1
  379. package/dist/huds-lib/p-611fb7df.entry.js +0 -1
  380. package/dist/huds-lib/p-650c6e4e.entry.js +0 -1
  381. package/dist/huds-lib/p-6b792a8c.entry.js +0 -1
  382. package/dist/huds-lib/p-72db0033.entry.js +0 -1
  383. package/dist/huds-lib/p-7a6780e4.entry.js +0 -1
  384. package/dist/huds-lib/p-7c83f52e.entry.js +0 -1
  385. package/dist/huds-lib/p-7ede0f30.entry.js +0 -1
  386. package/dist/huds-lib/p-7effbe77.entry.js +0 -1
  387. package/dist/huds-lib/p-8319d830.entry.js +0 -1
  388. package/dist/huds-lib/p-90505cc3.entry.js +0 -1
  389. package/dist/huds-lib/p-9361deb2.entry.js +0 -1
  390. package/dist/huds-lib/p-97bf12b5.entry.js +0 -1
  391. package/dist/huds-lib/p-97d03f15.entry.js +0 -1
  392. package/dist/huds-lib/p-9d3a8885.entry.js +0 -1
  393. package/dist/huds-lib/p-a08adde3.entry.js +0 -1
  394. package/dist/huds-lib/p-a2f65964.entry.js +0 -1
  395. package/dist/huds-lib/p-a3e75fcd.entry.js +0 -1
  396. package/dist/huds-lib/p-a6b86c8d.entry.js +0 -1
  397. package/dist/huds-lib/p-a6fecd61.entry.js +0 -1
  398. package/dist/huds-lib/p-a79930ee.entry.js +0 -1
  399. package/dist/huds-lib/p-a8ec267d.entry.js +0 -1
  400. package/dist/huds-lib/p-afab35ab.entry.js +0 -1
  401. package/dist/huds-lib/p-b2d88ab1.entry.js +0 -1
  402. package/dist/huds-lib/p-b40af061.entry.js +0 -1
  403. package/dist/huds-lib/p-b4c5f23b.entry.js +0 -1
  404. package/dist/huds-lib/p-c1a6c019.entry.js +0 -1
  405. package/dist/huds-lib/p-c6c6db7a.entry.js +0 -1
  406. package/dist/huds-lib/p-cbb94daf.entry.js +0 -1
  407. package/dist/huds-lib/p-cc578c01.entry.js +0 -1
  408. package/dist/huds-lib/p-d1e6dc01.entry.js +0 -1
  409. package/dist/huds-lib/p-d4e9dad5.entry.js +0 -1
  410. package/dist/huds-lib/p-d53511e8.entry.js +0 -1
  411. package/dist/huds-lib/p-d794037a.entry.js +0 -1
  412. package/dist/huds-lib/p-da8e3d7b.entry.js +0 -1
  413. package/dist/huds-lib/p-db1cd38d.entry.js +0 -1
  414. package/dist/huds-lib/p-dd632aee.entry.js +0 -1
  415. package/dist/huds-lib/p-e4daac5b.entry.js +0 -1
  416. package/dist/huds-lib/p-e70d2a38.entry.js +0 -1
  417. package/dist/huds-lib/p-ebfda04f.entry.js +0 -1
  418. package/dist/huds-lib/p-ecb15145.entry.js +0 -1
  419. package/dist/huds-lib/p-ee7451da.entry.js +0 -1
  420. package/dist/huds-lib/p-f0b37b49.entry.js +0 -1
  421. package/dist/huds-lib/p-fa1e92fa.entry.js +0 -1
@@ -1,179 +1,69 @@
1
- import { Component, Element, h, Host, Listen, Prop } from '@stencil/core';
1
+ import { Component, Element, h, Host, Prop } from '@stencil/core';
2
2
  import { jsonParserWorker } from '../../global/globalScript';
3
- import { CtaLinkButtonVariants, HeadingSectionVariants, HeadingVarians, HeroColorVariant, HeroGroupTypeVariant, HeroTypeVariant, } from '../../utils/utils';
3
+ import { CtaLinkButtonVariants, HeadingSectionVariants, HeadingVarians, HeroColorVariant, HeroSizeVariant, HeroGroupTypeVariant, HeroTypeVariant, } from '../../utils/utils';
4
4
  export class HyHero {
5
5
  constructor() {
6
6
  this.heroType = HeroTypeVariant.landing;
7
7
  this.heroGroupType = HeroGroupTypeVariant.default;
8
8
  this.colorVariant = HeroColorVariant.blue;
9
+ this.sizeVariant = HeroSizeVariant.large;
9
10
  this.disableLazy = false;
10
11
  this.hasShortcuts = false;
11
12
  this.isExternal = false;
12
- this.headerstyle = 'common';
13
13
  }
14
14
  async componentWillLoad() {
15
15
  this._sourceSet = await jsonParserWorker(this.sourceSet);
16
16
  }
17
- componentDidLoad() {
18
- let hyMainDiv = this.el.closest('.hy-main');
19
- if (hyMainDiv) {
20
- if (!hyMainDiv.classList.contains('with-sidebar')) {
21
- this.headerstyle = 'large';
22
- }
17
+ render() {
18
+ let variant = CtaLinkButtonVariants.heroWhite;
19
+ let colorVariantValue = this.colorVariant;
20
+ let heroTypeValue = this.heroType;
21
+ if (this.heroType === 'minor_landing') {
22
+ colorVariantValue = HeroColorVariant.white;
23
+ heroTypeValue = HeroTypeVariant.landing;
23
24
  }
24
- this.setContentDivPosition();
25
- }
26
- setContentDivPosition() {
27
- const contentDiv = document.querySelectorAll('.hy-hero__content--container')[0];
28
- if (!contentDiv)
29
- return;
30
- if (document.body.scrollWidth <= 1200) {
31
- contentDiv.style.left = '0';
25
+ if (colorVariantValue === HeroColorVariant.blue) {
26
+ variant = CtaLinkButtonVariants.heroBlue;
32
27
  }
33
- if (document.body.scrollWidth >= 1201) {
34
- const contentWrapper = document.querySelectorAll('div.hy-main-content-wrapper')[0];
35
- if (!contentWrapper)
36
- return;
37
- if (document.body.scrollWidth >= 1441) {
38
- const marginLeft = parseInt(window.getComputedStyle(contentWrapper).getPropertyValue('margin-left'));
39
- if (marginLeft > 32) {
40
- contentDiv.style.left = `${marginLeft}px`;
41
- }
42
- else if (marginLeft > 0) {
43
- contentDiv.style.left = '32px';
44
- }
45
- else if (marginLeft == 0) {
46
- contentDiv.style.left = '0px';
47
- }
48
- }
49
- else {
50
- contentDiv.style.left = window.getComputedStyle(contentWrapper).getPropertyValue('padding-left');
51
- }
28
+ if (colorVariantValue === HeroColorVariant.black) {
29
+ variant = CtaLinkButtonVariants.heroBlack;
52
30
  }
53
- }
54
- resizeEventListener(event) {
55
- if (!event)
56
- return;
57
- this.setContentDivPosition();
58
- }
59
- scrollToContent(e) {
60
- e.preventDefault();
61
- e.stopPropagation();
62
- const heroHeight = document.getElementsByClassName('hy-hero');
63
- // Set here how much should the arrow scroll down.
64
- const scrollAmount = heroHeight[0].offsetHeight / 2;
65
- window.scrollBy({
66
- top: scrollAmount,
67
- left: 0,
68
- behavior: 'smooth',
69
- });
70
- }
71
- render() {
72
- let variant = CtaLinkButtonVariants.onWhiteBkgd;
73
- let colorVariantValue = HeroColorVariant.white;
74
- // Hero on minor landing pages always uses White Background.
75
- if (this.heroType !== HeroTypeVariant.minor_landing) {
76
- colorVariantValue = this.colorVariant;
77
- if (this.colorVariant == HeroColorVariant.black) {
78
- variant = CtaLinkButtonVariants.onBlackBkgd;
79
- }
80
- else if (this.colorVariant == HeroColorVariant.blue) {
81
- variant = CtaLinkButtonVariants.onBlueBkgd;
82
- }
83
- else if (this.colorVariant == HeroColorVariant.fp_white) {
84
- colorVariantValue = HeroColorVariant.white;
85
- }
31
+ if (!colorVariantValue || colorVariantValue === 'fp_white') {
32
+ colorVariantValue = HeroColorVariant.white;
86
33
  }
87
- let classAttributesArray = [
34
+ let hyHeroClasses = [
88
35
  'hy-hero',
89
- `hy-hero--${this.heroType}`,
36
+ `hy-hero--${heroTypeValue}`,
90
37
  `hy-hero--${this.heroGroupType}`,
91
- `hy-hero__${this.headerstyle}`,
92
38
  `hy-hero--${colorVariantValue}`,
93
- ];
94
- let classHeroContainerArray = [
95
- 'hy-hero__container',
96
- `hy-hero__container--${this.heroType}--${this.headerstyle}`,
97
- `hy-hero__container--${this.heroType}`,
98
- `${this.heroGroupType}`,
99
- `${this.headerstyle}`,
100
- `hy-hero__container--${colorVariantValue}`,
39
+ `hy-hero--${this.sizeVariant}`,
101
40
  ];
102
41
  // If there is a Shortcuts block after hero, add the class 'shortcuts' to remove underline.
103
42
  if (this.hasShortcuts) {
104
- classAttributesArray.push('shortcuts');
105
- classHeroContainerArray.push('shortcuts');
43
+ hyHeroClasses.push('has-shortcuts');
106
44
  }
107
- const classAttributes = classAttributesArray.join(' ');
108
- const classHeroContainer = classHeroContainerArray.join(' ');
109
- const classDescription = [
110
- 'hy-hero__description',
111
- `hy-hero__description__${this.headerstyle}`,
112
- `hy-hero__description--${this.heroType}`,
113
- `hy-hero__description--${colorVariantValue}`,
114
- ].join(' ');
115
- const classContentContainer = [
116
- 'hy-hero__content',
117
- `hy-hero__content--${this.headerstyle}`,
118
- `hy-hero__content--${this.heroType}`,
119
- ].join(' ');
120
- const classHeroTitle = [
121
- 'hy-hero__title',
122
- `hy-hero__title--${this.heroType}`,
123
- `hy-hero__title--${colorVariantValue}`,
124
- ].join(' ');
125
- const classHeroTitleOverlay = [
126
- 'hy-hero__title',
127
- 'hy-hero__title--overlay',
128
- `hy-hero__title--overlay--${colorVariantValue}`,
129
- ].join(' ');
130
- const classHeroActions = ['hy-hero__actions', `hy-hero__actions--${this.heroType}`].join(' ');
131
- const classHeroImage = ['hy-image__image', `hy-image__image--${this.heroType}`].join(' ');
132
- const classHeroImageContainer = ['hy-hero__image-container', `hy-hero__image-container--${this.heroType}`].join(' ');
133
- const classHeroContentContainer = [
134
- 'hy-hero__content-container',
135
- `hy-hero__content-container--${this.heroType}`,
136
- `hy-hero__content-container--${colorVariantValue}`,
137
- ].join(' ');
138
- const classSpacerBox = [
139
- 'hy-hero__spacer-box',
140
- `hy-hero__spacer-box--${this.heroType}`,
141
- `hy-hero__spacer-box--${colorVariantValue}`,
142
- ].join(' ');
143
- const classHeroTitleContainer = ['hy-hero__title-container', `hy-hero__title-container--${this.heroType}`].join(' ');
144
- const classScrollButton = ['hy-hero__scroll-button', `${this.heroGroupType}`].join(' ');
145
45
  const aspectRatioWidth = 16;
146
46
  const aspectRatioHeight = 10;
147
47
  const aspect = (aspectRatioHeight / aspectRatioWidth) * 100;
148
48
  const aspectRatio = {
149
49
  '--aspectRatio': `${aspect}%`,
150
50
  };
151
- // headingSection defines the font-sizes of h1 used in hero.
152
- let headingSection = HeadingSectionVariants.landingMinor;
153
- if (this.heroType == HeroTypeVariant.front_page) {
154
- headingSection = HeadingSectionVariants.frontPage;
155
- }
156
- else if (this.heroType == HeroTypeVariant.landing) {
157
- headingSection = HeadingSectionVariants.landingMajor;
158
- }
51
+ const headingSection = HeadingSectionVariants.hero;
159
52
  return (h(Host, null,
160
- h("div", { class: classAttributes },
161
- h("div", { class: classHeroContainer },
162
- h("div", { class: classHeroImageContainer, style: aspectRatio }, this.image &&
53
+ h("div", { class: hyHeroClasses.join(' ') },
54
+ h("div", { class: `hy-hero__container` },
55
+ h("div", { class: `hy-hero__image-container`, style: aspectRatio }, this.image &&
163
56
  (this._sourceSet ? (h("picture", null,
164
57
  this._sourceSet.map((item) => (h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes : '' }))),
165
- h("img", { loading: this.disableLazy ? 'eager' : 'lazy', alt: this.scLabel, class: classHeroImage, src: this.image }))) : (h("img", { loading: this.disableLazy ? 'eager' : 'lazy', alt: this.scLabel, class: classHeroImage, src: this.image })))),
166
- h("div", { class: classSpacerBox }),
167
- h("div", { class: classHeroContentContainer },
168
- h("div", { class: classContentContainer },
169
- h("div", { class: classHeroTitleContainer },
170
- h("hy-heading", { class: classHeroTitle, heading: HeadingVarians.default, section: headingSection }, this.heading),
171
- h("hy-heading", { class: classHeroTitleOverlay, heading: HeadingVarians.default, section: headingSection }, this.heading)),
172
- this.description && h("p", { class: classDescription }, this.description),
173
- this.url && (h("div", { class: classHeroActions },
174
- h("hy-cta-button", { "link-content": this.urlTitle, "sc-label": this.scLabel, url: this.url, "is-external": this.isExternal, variant: variant })))))),
175
- h("button", { onClick: (e) => this.scrollToContent(e), class: classScrollButton, type: "button", "aria-label": "Scroll to content" },
176
- h("hy-icon", { class: "hy-hero__scroll-icon", icon: 'hy-icon-caret-down', size: 14, "aria-hidden": "true" }))),
58
+ h("img", { loading: this.disableLazy ? 'eager' : 'lazy', alt: this.scLabel, class: `hy-image__image`, src: this.image }))) : (h("img", { loading: this.disableLazy ? 'eager' : 'lazy', alt: this.scLabel, class: `hy-image__image`, src: this.image })))),
59
+ h("div", { class: `hy-hero__spacer-box` }),
60
+ h("div", { class: `hy-hero__content-container` },
61
+ h("div", { class: `hy-hero__content` },
62
+ h("div", { class: `hy-hero__title-container` },
63
+ h("hy-heading", { class: `hy-hero__title`, heading: HeadingVarians.default, section: headingSection }, this.heading)),
64
+ this.description && h("p", { class: `hy-hero__description` }, this.description),
65
+ this.url && (h("div", { class: `hy-hero__actions` },
66
+ h("hy-cta-button", { "link-content": this.urlTitle, "sc-label": this.scLabel, url: this.url, "is-external": this.isExternal, variant: variant }))))))),
177
67
  h("hy-box", { mb: "2, 2, 1, 1" })));
178
68
  }
179
69
  static get is() { return "hy-hero"; }
@@ -253,6 +143,29 @@ export class HyHero {
253
143
  "reflect": false,
254
144
  "defaultValue": "HeroColorVariant.blue"
255
145
  },
146
+ "sizeVariant": {
147
+ "type": "string",
148
+ "mutable": false,
149
+ "complexType": {
150
+ "original": "HeroSizeVariant",
151
+ "resolved": "HeroSizeVariant.large | HeroSizeVariant.small",
152
+ "references": {
153
+ "HeroSizeVariant": {
154
+ "location": "import",
155
+ "path": "../../utils/utils"
156
+ }
157
+ }
158
+ },
159
+ "required": false,
160
+ "optional": false,
161
+ "docs": {
162
+ "tags": [],
163
+ "text": ""
164
+ },
165
+ "attribute": "size-variant",
166
+ "reflect": false,
167
+ "defaultValue": "HeroSizeVariant.large"
168
+ },
256
169
  "image": {
257
170
  "type": "string",
258
171
  "mutable": false,
@@ -409,24 +322,6 @@ export class HyHero {
409
322
  "reflect": false,
410
323
  "defaultValue": "false"
411
324
  },
412
- "headerstyle": {
413
- "type": "string",
414
- "mutable": false,
415
- "complexType": {
416
- "original": "string",
417
- "resolved": "string",
418
- "references": {}
419
- },
420
- "required": false,
421
- "optional": false,
422
- "docs": {
423
- "tags": [],
424
- "text": ""
425
- },
426
- "attribute": "headerstyle",
427
- "reflect": false,
428
- "defaultValue": "'common'"
429
- },
430
325
  "sourceSet": {
431
326
  "type": "string",
432
327
  "mutable": false,
@@ -450,11 +345,4 @@ export class HyHero {
450
345
  }
451
346
  }; }
452
347
  static get elementRef() { return "el"; }
453
- static get listeners() { return [{
454
- "name": "resize",
455
- "method": "resizeEventListener",
456
- "target": "window",
457
- "capture": false,
458
- "passive": true
459
- }]; }
460
348
  }
@@ -1,5 +1,7 @@
1
1
  :root {
2
2
  --brand-main: #0e688b;
3
+ --brand-main-soft: #b1e7ff;
4
+ --brand-main-bright: #48c5f8;
3
5
  --brand-main-light: #107eab;
4
6
  --brand-main-active: #005379;
5
7
  --brand-main-dark: #003146;
@@ -1,5 +1,7 @@
1
1
  :root {
2
2
  --brand-main: #0e688b;
3
+ --brand-main-soft: #b1e7ff;
4
+ --brand-main-bright: #48c5f8;
3
5
  --brand-main-light: #107eab;
4
6
  --brand-main-active: #005379;
5
7
  --brand-main-dark: #003146;
@@ -1,5 +1,7 @@
1
1
  :root {
2
2
  --brand-main: #0e688b;
3
+ --brand-main-soft: #b1e7ff;
4
+ --brand-main-bright: #48c5f8;
3
5
  --brand-main-light: #107eab;
4
6
  --brand-main-active: #005379;
5
7
  --brand-main-dark: #003146;
@@ -1,5 +1,7 @@
1
1
  :root {
2
2
  --brand-main: #0e688b;
3
+ --brand-main-soft: #b1e7ff;
4
+ --brand-main-bright: #48c5f8;
3
5
  --brand-main-light: #107eab;
4
6
  --brand-main-active: #005379;
5
7
  --brand-main-dark: #003146;
@@ -1,5 +1,7 @@
1
1
  :root {
2
2
  --brand-main: #0e688b;
3
+ --brand-main-soft: #b1e7ff;
4
+ --brand-main-bright: #48c5f8;
3
5
  --brand-main-light: #107eab;
4
6
  --brand-main-active: #005379;
5
7
  --brand-main-dark: #003146;
@@ -1,5 +1,7 @@
1
1
  :root {
2
2
  --brand-main: #0e688b;
3
+ --brand-main-soft: #b1e7ff;
4
+ --brand-main-bright: #48c5f8;
3
5
  --brand-main-light: #107eab;
4
6
  --brand-main-active: #005379;
5
7
  --brand-main-dark: #003146;
@@ -1,5 +1,7 @@
1
1
  :root {
2
2
  --brand-main: #0e688b;
3
+ --brand-main-soft: #b1e7ff;
4
+ --brand-main-bright: #48c5f8;
3
5
  --brand-main-light: #107eab;
4
6
  --brand-main-active: #005379;
5
7
  --brand-main-dark: #003146;
@@ -1,5 +1,7 @@
1
1
  :root {
2
2
  --brand-main: #0e688b;
3
+ --brand-main-soft: #b1e7ff;
4
+ --brand-main-bright: #48c5f8;
3
5
  --brand-main-light: #107eab;
4
6
  --brand-main-active: #005379;
5
7
  --brand-main-dark: #003146;
@@ -58,26 +60,233 @@
58
60
  display: block;
59
61
  }
60
62
 
61
- .hy-link-list .list-title {
62
- color: var(--brand-main-nearly-black);
63
- font-family: var(--main-font-family);
64
- font-size: 16px;
65
- font-weight: bold;
66
- letter-spacing: -0.5px;
67
- line-height: 24px;
63
+ .hy-link-list {
64
+ margin-bottom: 32px;
65
+ }
66
+
67
+ .hy-link-list__links {
68
+ display: grid;
69
+ gap: 16px;
70
+ list-style: none;
68
71
  margin: 0;
69
- padding-bottom: 19px;
72
+ padding: 0;
73
+ }
74
+
75
+ @media (min-width: 30rem) {
76
+ .hy-link-list__links--grid {
77
+ gap: 16px 24px;
78
+ grid-template-columns: repeat(2, 1fr);
79
+ }
80
+ }
81
+
82
+ @media (min-width: 60rem) {
83
+ .without-sidebar .hy-link-list__links--grid.col-3 {
84
+ gap: 16px 24px;
85
+ grid-template-columns: repeat(3, 1fr);
86
+ }
87
+ }
88
+
89
+ @media (min-width: 75.0625rem) {
90
+ .without-sidebar .hy-link-list__links--grid.col-3 {
91
+ gap: 16px 32px;
92
+ }
93
+ }
94
+
95
+ @media (min-width: 60rem) {
96
+ .without-sidebar .hy-link-list__links--grid.col-4 {
97
+ gap: 16px 24px;
98
+ grid-template-columns: repeat(4, 1fr);
99
+ }
100
+ }
101
+
102
+ @media (min-width: 75.0625rem) {
103
+ .without-sidebar .hy-link-list__links--grid.col-4 {
104
+ gap: 16px 32px;
105
+ }
106
+ }
107
+
108
+ @media (min-width: 75.0625rem) {
109
+ .with-sidebar .hy-link-list__links--grid.col-3 {
110
+ gap: 16px 24px;
111
+ grid-template-columns: repeat(3, 1fr);
112
+ }
113
+ }
114
+
115
+ @media (min-width: 1601px) {
116
+ .with-sidebar .hy-link-list__links--grid.col-3 {
117
+ gap: 16px 32px;
118
+ }
119
+ }
120
+
121
+ @media (min-width: 75.0625rem) {
122
+ .with-sidebar .hy-link-list__links--grid.col-4 {
123
+ gap: 16px 24px;
124
+ grid-template-columns: repeat(4, 1fr);
125
+ }
126
+ }
127
+
128
+ @media (min-width: 1601px) {
129
+ .with-sidebar .hy-link-list__links--grid.col-4 {
130
+ gap: 16px 32px;
131
+ }
132
+ }
133
+
134
+ .hy-link-list__title {
135
+ font-weight: 700;
136
+ font-family: var(--main-font-family);
137
+ margin: 0 0 32px;
138
+ color: var(--brand-main-nearly-black);
139
+ }
140
+
141
+ .is-content-page h2.hy-link-list__title {
142
+ font-size: 1.625rem;
143
+ line-height: 32px;
144
+ letter-spacing: -0.82px;
145
+ }
146
+
147
+ @media (min-width: 30rem) {
148
+ .is-content-page h2.hy-link-list__title {
149
+ font-size: 1.875rem;
150
+ line-height: 36px;
151
+ letter-spacing: -0.6px;
152
+ }
153
+ }
154
+
155
+ @media (min-width: 75.0625rem) {
156
+ .without-sidebar .is-content-page h2.hy-link-list__title {
157
+ font-size: 2.125rem;
158
+ line-height: 40px;
159
+ letter-spacing: -0.68px;
160
+ }
161
+ }
162
+
163
+ @media (min-width: 1601px) {
164
+ .with-sidebar .is-content-page h2.hy-link-list__title {
165
+ font-size: 2.125rem;
166
+ line-height: 40px;
167
+ letter-spacing: -0.68px;
168
+ }
169
+ }
170
+
171
+ .is-front-page h2.hy-link-list__title, .is-landing-page h2.hy-link-list__title {
172
+ font-size: 1.75rem;
173
+ line-height: 32px;
174
+ letter-spacing: -0.7px;
70
175
  text-transform: uppercase;
71
176
  }
72
177
 
73
178
  @media (min-width: 30rem) {
74
- .hy-link-list .list-title {
75
- font-size: 18px;
76
- letter-spacing: -0.56px;
179
+ .is-front-page h2.hy-link-list__title, .is-landing-page h2.hy-link-list__title {
180
+ font-size: 2.125rem;
181
+ line-height: 40px;
182
+ letter-spacing: -0.85px;
183
+ }
184
+ }
185
+
186
+ @media (min-width: 75.0625rem) {
187
+ .without-sidebar .is-front-page h2.hy-link-list__title, .without-sidebar .is-landing-page h2.hy-link-list__title {
188
+ font-size: 2.625rem;
189
+ line-height: 48px;
190
+ letter-spacing: -1.05px;
191
+ }
192
+ }
193
+
194
+ @media (min-width: 1601px) {
195
+ .with-sidebar .is-front-page h2.hy-link-list__title, .with-sidebar .is-landing-page h2.hy-link-list__title {
196
+ font-size: 2.625rem;
197
+ line-height: 48px;
198
+ letter-spacing: -1.05px;
199
+ }
200
+ }
201
+
202
+ .hy-two-columns h2.hy-link-list__title {
203
+ font-size: 1.125rem;
204
+ line-height: 22px;
205
+ letter-spacing: -0.45px;
206
+ margin-bottom: 16px;
207
+ text-transform: none;
208
+ }
209
+
210
+ @media (min-width: 75.0625rem) {
211
+ .without-sidebar .hy-two-columns h2.hy-link-list__title {
212
+ font-size: 1.25rem;
213
+ line-height: 24px;
214
+ letter-spacing: -0.5px;
215
+ }
216
+ }
217
+
218
+ @media (min-width: 1601px) {
219
+ .with-sidebar .hy-two-columns h2.hy-link-list__title {
220
+ font-size: 1.25rem;
221
+ line-height: 24px;
222
+ letter-spacing: -0.5px;
223
+ }
224
+ }
225
+
226
+ .is-content-page h3.hy-link-list__title {
227
+ font-size: 1.3125rem;
228
+ line-height: 28px;
229
+ letter-spacing: -0.42px;
230
+ }
231
+
232
+ @media (min-width: 30rem) {
233
+ .is-content-page h3.hy-link-list__title {
234
+ font-size: 1.5625rem;
235
+ line-height: 32px;
236
+ letter-spacing: -0.5px;
237
+ }
238
+ }
239
+
240
+ .is-front-page h3.hy-link-list__title, .is-landing-page h3.hy-link-list__title {
241
+ font-size: 1.625rem;
242
+ line-height: 32px;
243
+ letter-spacing: -0.52px;
244
+ }
245
+
246
+ @media (min-width: 30rem) {
247
+ .is-front-page h3.hy-link-list__title, .is-landing-page h3.hy-link-list__title {
248
+ font-size: 1.875rem;
249
+ line-height: 36px;
250
+ letter-spacing: -0.6px;
251
+ }
252
+ }
253
+
254
+ @media (min-width: 75.0625rem) {
255
+ .without-sidebar .is-front-page h3.hy-link-list__title, .without-sidebar .is-landing-page h3.hy-link-list__title {
256
+ font-size: 2.125rem;
257
+ line-height: 40px;
258
+ letter-spacing: -0.68px;
259
+ }
260
+ }
261
+
262
+ @media (min-width: 1601px) {
263
+ .with-sidebar .is-front-page h3.hy-link-list__title, .with-sidebar .is-landing-page h3.hy-link-list__title {
264
+ font-size: 2.125rem;
265
+ line-height: 40px;
266
+ letter-spacing: -0.68px;
77
267
  }
78
268
  }
79
269
 
80
- .hy-link-list hy-cta-link {
81
- background-color: var(--grayscale-background-box);
82
- margin: 8px 0;
270
+ .hy-two-columns h3.hy-link-list__title {
271
+ font-size: 1.125rem;
272
+ line-height: 22px;
273
+ letter-spacing: -0.45px;
274
+ margin-bottom: 16px;
275
+ text-transform: none;
276
+ }
277
+
278
+ @media (min-width: 75.0625rem) {
279
+ .without-sidebar .hy-two-columns h3.hy-link-list__title {
280
+ font-size: 1.25rem;
281
+ line-height: 24px;
282
+ letter-spacing: -0.5px;
283
+ }
284
+ }
285
+
286
+ @media (min-width: 1601px) {
287
+ .with-sidebar .hy-two-columns h3.hy-link-list__title {
288
+ font-size: 1.25rem;
289
+ line-height: 24px;
290
+ letter-spacing: -0.5px;
291
+ }
83
292
  }
@@ -5,6 +5,7 @@ export class HyLinkList {
5
5
  constructor() {
6
6
  this.headerstyle = 'default';
7
7
  this.listHeading = '';
8
+ this.headingVariant = 'h2';
8
9
  }
9
10
  async componentWillLoad() {
10
11
  this._dataItems = await jsonParserWorker(this.dataItems);
@@ -18,18 +19,20 @@ export class HyLinkList {
18
19
  }
19
20
  }
20
21
  render() {
21
- const classAttributes = ['hy-link-list', `hy-link-list__${this.headerstyle}`].join(' ');
22
22
  const linkVariant = CtaLinkVariants.linkList;
23
+ const HeadingVariant = this.headingVariant.toLowerCase();
24
+ let columnType = 'col-3';
25
+ if (this._dataItems.length === 7 || this._dataItems.length % 4 === 0) {
26
+ columnType = 'col-4';
27
+ }
23
28
  return [
24
- h("div", { class: classAttributes },
25
- this.listHeading.length > 0 && h("h3", { class: 'list-title' }, this.listHeading),
26
- this._dataItems.map((x) => {
27
- return (h("hy-cta-link", { variant: linkVariant, "link-content": x.heading, "sc-label": x.ariaLabel, url: x.url, "is-external": x.isExternal }));
28
- })),
29
+ h("section", { class: `hy-link-list hy-link-list__${this.headerstyle}` },
30
+ this.listHeading.length > 0 && (h(HeadingVariant, { class: 'hy-link-list__title' }, this.listHeading)),
31
+ h("ul", { class: `hy-link-list__links hy-link-list__links--${this.variation} ${this.variation === 'grid' ? columnType : ''}` }, this._dataItems.map(({ heading, ariaLabel, url, isExternal }) => (h("li", { class: "hy-link-list__links-item" },
32
+ h("hy-cta-link", { variant: linkVariant, "link-content": heading, "sc-label": ariaLabel, url: url, "is-external": isExternal })))))),
29
33
  ];
30
34
  }
31
35
  static get is() { return "hy-link-list"; }
32
- static get encapsulation() { return "shadow"; }
33
36
  static get originalStyleUrls() { return {
34
37
  "$": ["hy-link-list.scss"]
35
38
  }; }
@@ -93,6 +96,41 @@ export class HyLinkList {
93
96
  "attribute": "list-heading",
94
97
  "reflect": false,
95
98
  "defaultValue": "''"
99
+ },
100
+ "variation": {
101
+ "type": "string",
102
+ "mutable": false,
103
+ "complexType": {
104
+ "original": "string",
105
+ "resolved": "string",
106
+ "references": {}
107
+ },
108
+ "required": false,
109
+ "optional": false,
110
+ "docs": {
111
+ "tags": [],
112
+ "text": ""
113
+ },
114
+ "attribute": "variation",
115
+ "reflect": false
116
+ },
117
+ "headingVariant": {
118
+ "type": "string",
119
+ "mutable": false,
120
+ "complexType": {
121
+ "original": "string",
122
+ "resolved": "string",
123
+ "references": {}
124
+ },
125
+ "required": false,
126
+ "optional": false,
127
+ "docs": {
128
+ "tags": [],
129
+ "text": ""
130
+ },
131
+ "attribute": "heading-variant",
132
+ "reflect": false,
133
+ "defaultValue": "'h2'"
96
134
  }
97
135
  }; }
98
136
  static get elementRef() { return "el"; }
@@ -1,5 +1,7 @@
1
1
  :root {
2
2
  --brand-main: #0e688b;
3
+ --brand-main-soft: #b1e7ff;
4
+ --brand-main-bright: #48c5f8;
3
5
  --brand-main-light: #107eab;
4
6
  --brand-main-active: #005379;
5
7
  --brand-main-dark: #003146;