@ongov/ontario-design-system-component-library 6.0.0-alpha.1 → 6.0.0-alpha.2

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 (883) hide show
  1. package/dist/cjs/{index-DB72lIKj.js → index-D8WnzEKE.js} +4 -2
  2. package/dist/cjs/index-D8WnzEKE.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/ontario-accordion_46.cjs.entry.js +1 -1
  5. package/dist/cjs/ontario-design-system-components.cjs.js +1 -1
  6. package/dist/cjs/ontario-icon-account.cjs.entry.js +1 -1
  7. package/dist/cjs/ontario-icon-add-alt.cjs.entry.js +1 -1
  8. package/dist/cjs/ontario-icon-add.cjs.entry.js +1 -1
  9. package/dist/cjs/ontario-icon-arrow-up.cjs.entry.js +1 -1
  10. package/dist/cjs/ontario-icon-attach.cjs.entry.js +1 -1
  11. package/dist/cjs/ontario-icon-bookmark-off.cjs.entry.js +1 -1
  12. package/dist/cjs/ontario-icon-bookmark-on.cjs.entry.js +1 -1
  13. package/dist/cjs/ontario-icon-calendar.cjs.entry.js +1 -1
  14. package/dist/cjs/ontario-icon-chevron-right.cjs.entry.js +1 -1
  15. package/dist/cjs/ontario-icon-clock.cjs.entry.js +1 -1
  16. package/dist/cjs/ontario-icon-close-header.cjs.entry.js +1 -1
  17. package/dist/cjs/ontario-icon-close.cjs.entry.js +1 -1
  18. package/dist/cjs/ontario-icon-cloud.cjs.entry.js +1 -1
  19. package/dist/cjs/ontario-icon-collapse.cjs.entry.js +1 -1
  20. package/dist/cjs/ontario-icon-credit-card.cjs.entry.js +1 -1
  21. package/dist/cjs/ontario-icon-critical-alert-warning.cjs.entry.js +1 -1
  22. package/dist/cjs/ontario-icon-delete.cjs.entry.js +1 -1
  23. package/dist/cjs/ontario-icon-document.cjs.entry.js +1 -1
  24. package/dist/cjs/ontario-icon-download.cjs.entry.js +1 -1
  25. package/dist/cjs/ontario-icon-dropdown-arrow.cjs.entry.js +1 -1
  26. package/dist/cjs/ontario-icon-edit.cjs.entry.js +1 -1
  27. package/dist/cjs/ontario-icon-expand.cjs.entry.js +1 -1
  28. package/dist/cjs/ontario-icon-export.cjs.entry.js +1 -1
  29. package/dist/cjs/ontario-icon-facebook-alt.cjs.entry.js +1 -1
  30. package/dist/cjs/ontario-icon-facebook.cjs.entry.js +1 -1
  31. package/dist/cjs/ontario-icon-favourite-off.cjs.entry.js +1 -1
  32. package/dist/cjs/ontario-icon-favourite-on.cjs.entry.js +1 -1
  33. package/dist/cjs/ontario-icon-filter.cjs.entry.js +1 -1
  34. package/dist/cjs/ontario-icon-flickr.cjs.entry.js +1 -1
  35. package/dist/cjs/ontario-icon-grid.cjs.entry.js +1 -1
  36. package/dist/cjs/ontario-icon-instagram.cjs.entry.js +1 -1
  37. package/dist/cjs/ontario-icon-interac-en-alt.cjs.entry.js +1 -1
  38. package/dist/cjs/ontario-icon-interac-en.cjs.entry.js +1 -1
  39. package/dist/cjs/ontario-icon-interac-fr-alt.cjs.entry.js +1 -1
  40. package/dist/cjs/ontario-icon-interac-fr.cjs.entry.js +1 -1
  41. package/dist/cjs/ontario-icon-linkedin-alt.cjs.entry.js +1 -1
  42. package/dist/cjs/ontario-icon-linkedin.cjs.entry.js +1 -1
  43. package/dist/cjs/ontario-icon-list.cjs.entry.js +1 -1
  44. package/dist/cjs/ontario-icon-live-chat.cjs.entry.js +1 -1
  45. package/dist/cjs/ontario-icon-location-off.cjs.entry.js +1 -1
  46. package/dist/cjs/ontario-icon-location-on.cjs.entry.js +1 -1
  47. package/dist/cjs/ontario-icon-lock-off.cjs.entry.js +1 -1
  48. package/dist/cjs/ontario-icon-lock-on.cjs.entry.js +1 -1
  49. package/dist/cjs/ontario-icon-map.cjs.entry.js +1 -1
  50. package/dist/cjs/ontario-icon-mastercard-alt.cjs.entry.js +1 -1
  51. package/dist/cjs/ontario-icon-media-fast-forward.cjs.entry.js +1 -1
  52. package/dist/cjs/ontario-icon-media-fast-rewind.cjs.entry.js +1 -1
  53. package/dist/cjs/ontario-icon-media-pause.cjs.entry.js +1 -1
  54. package/dist/cjs/ontario-icon-media-play.cjs.entry.js +1 -1
  55. package/dist/cjs/ontario-icon-media-stop.cjs.entry.js +1 -1
  56. package/dist/cjs/ontario-icon-menu-header.cjs.entry.js +1 -1
  57. package/dist/cjs/ontario-icon-menu.cjs.entry.js +1 -1
  58. package/dist/cjs/ontario-icon-microphone-off.cjs.entry.js +1 -1
  59. package/dist/cjs/ontario-icon-microphone-on.cjs.entry.js +1 -1
  60. package/dist/cjs/ontario-icon-more-vertical.cjs.entry.js +1 -1
  61. package/dist/cjs/ontario-icon-new-window.cjs.entry.js +1 -1
  62. package/dist/cjs/ontario-icon-next.cjs.entry.js +1 -1
  63. package/dist/cjs/ontario-icon-password-hide.cjs.entry.js +1 -1
  64. package/dist/cjs/ontario-icon-password-show.cjs.entry.js +1 -1
  65. package/dist/cjs/ontario-icon-phone.cjs.entry.js +1 -1
  66. package/dist/cjs/ontario-icon-photo.cjs.entry.js +1 -1
  67. package/dist/cjs/ontario-icon-pin-location-off.cjs.entry.js +1 -1
  68. package/dist/cjs/ontario-icon-pin-location-on.cjs.entry.js +1 -1
  69. package/dist/cjs/ontario-icon-previous.cjs.entry.js +1 -1
  70. package/dist/cjs/ontario-icon-remove-alt.cjs.entry.js +1 -1
  71. package/dist/cjs/ontario-icon-remove.cjs.entry.js +1 -1
  72. package/dist/cjs/ontario-icon-replay.cjs.entry.js +1 -1
  73. package/dist/cjs/ontario-icon-rss-feed.cjs.entry.js +1 -1
  74. package/dist/cjs/ontario-icon-save.cjs.entry.js +1 -1
  75. package/dist/cjs/ontario-icon-search-white.cjs.entry.js +1 -1
  76. package/dist/cjs/ontario-icon-search.cjs.entry.js +1 -1
  77. package/dist/cjs/ontario-icon-sentiment-1.cjs.entry.js +1 -1
  78. package/dist/cjs/ontario-icon-sentiment-2.cjs.entry.js +1 -1
  79. package/dist/cjs/ontario-icon-sentiment-3.cjs.entry.js +1 -1
  80. package/dist/cjs/ontario-icon-sentiment-4.cjs.entry.js +1 -1
  81. package/dist/cjs/ontario-icon-settings.cjs.entry.js +1 -1
  82. package/dist/cjs/ontario-icon-share.cjs.entry.js +1 -1
  83. package/dist/cjs/ontario-icon-sort.cjs.entry.js +1 -1
  84. package/dist/cjs/ontario-icon-tag.cjs.entry.js +1 -1
  85. package/dist/cjs/ontario-icon-timer.cjs.entry.js +1 -1
  86. package/dist/cjs/ontario-icon-transport-bicycle.cjs.entry.js +1 -1
  87. package/dist/cjs/ontario-icon-transport-car.cjs.entry.js +1 -1
  88. package/dist/cjs/ontario-icon-transport-walk.cjs.entry.js +1 -1
  89. package/dist/cjs/ontario-icon-tty.cjs.entry.js +1 -1
  90. package/dist/cjs/ontario-icon-twitter-alt.cjs.entry.js +1 -1
  91. package/dist/cjs/ontario-icon-twitter.cjs.entry.js +1 -1
  92. package/dist/cjs/ontario-icon-upload.cjs.entry.js +1 -1
  93. package/dist/cjs/ontario-icon-video.cjs.entry.js +1 -1
  94. package/dist/cjs/ontario-icon-visa.cjs.entry.js +1 -1
  95. package/dist/cjs/ontario-icon-vote-dislike.cjs.entry.js +1 -1
  96. package/dist/cjs/ontario-icon-vote-like.cjs.entry.js +1 -1
  97. package/dist/cjs/ontario-icon-vpn-key.cjs.entry.js +1 -1
  98. package/dist/cjs/ontario-icon-wheelchair.cjs.entry.js +1 -1
  99. package/dist/cjs/ontario-icon-wifi.cjs.entry.js +1 -1
  100. package/dist/cjs/ontario-icon-youtube.cjs.entry.js +1 -1
  101. package/dist/collection/global.js +1 -6
  102. package/dist/collection/global.js.map +1 -1
  103. package/dist/components/index.js +1 -1407
  104. package/dist/components/index.js.map +1 -1
  105. package/dist/components/ontario-accordion.js +6 -6
  106. package/dist/components/ontario-accordion.js.map +1 -1
  107. package/dist/components/ontario-aside.js +5 -5
  108. package/dist/components/ontario-aside.js.map +1 -1
  109. package/dist/components/ontario-back-to-top.js +4 -4
  110. package/dist/components/ontario-back-to-top.js.map +1 -1
  111. package/dist/components/ontario-badge.js +1 -1
  112. package/dist/components/ontario-badge2.js +1 -1
  113. package/dist/components/ontario-blockquote.js +4 -4
  114. package/dist/components/ontario-blockquote.js.map +1 -1
  115. package/dist/components/ontario-button.js +4 -4
  116. package/dist/components/ontario-button.js.map +1 -1
  117. package/dist/components/ontario-callout.js +5 -5
  118. package/dist/components/ontario-callout.js.map +1 -1
  119. package/dist/components/ontario-card-collection.js +3 -3
  120. package/dist/components/ontario-card-collection.js.map +1 -1
  121. package/dist/components/ontario-card.js +5 -5
  122. package/dist/components/ontario-card.js.map +1 -1
  123. package/dist/components/ontario-checkboxes.js +18 -18
  124. package/dist/components/ontario-checkboxes.js.map +1 -1
  125. package/dist/components/ontario-critical-alert.js +4 -4
  126. package/dist/components/ontario-critical-alert.js.map +1 -1
  127. package/dist/components/ontario-date-input.js +16 -16
  128. package/dist/components/ontario-date-input.js.map +1 -1
  129. package/dist/components/ontario-dropdown-list.js +20 -20
  130. package/dist/components/ontario-dropdown-list.js.map +1 -1
  131. package/dist/components/ontario-fieldset.js +5 -5
  132. package/dist/components/ontario-fieldset.js.map +1 -1
  133. package/dist/components/ontario-footer.js +6 -6
  134. package/dist/components/ontario-footer.js.map +1 -1
  135. package/dist/components/ontario-header.js +8 -8
  136. package/dist/components/ontario-header.js.map +1 -1
  137. package/dist/components/ontario-hint-expander.js +1 -1
  138. package/dist/components/ontario-hint-expander2.js +1 -1
  139. package/dist/components/ontario-hint-text.js +1 -1
  140. package/dist/components/ontario-hint-text2.js +1 -1
  141. package/dist/components/ontario-icon-accessibility.js +5 -5
  142. package/dist/components/ontario-icon-accessibility.js.map +1 -1
  143. package/dist/components/ontario-icon-account.js +5 -5
  144. package/dist/components/ontario-icon-account.js.map +1 -1
  145. package/dist/components/ontario-icon-add-alt.js +5 -5
  146. package/dist/components/ontario-icon-add-alt.js.map +1 -1
  147. package/dist/components/ontario-icon-add.js +5 -5
  148. package/dist/components/ontario-icon-add.js.map +1 -1
  149. package/dist/components/ontario-icon-alert-error.js +1 -1
  150. package/dist/components/ontario-icon-alert-information.js +1 -1
  151. package/dist/components/ontario-icon-alert-success.js +1 -1
  152. package/dist/components/ontario-icon-alert-warning.js +1 -1
  153. package/dist/components/ontario-icon-arrow-up.js +5 -5
  154. package/dist/components/ontario-icon-arrow-up.js.map +1 -1
  155. package/dist/components/ontario-icon-attach.js +5 -5
  156. package/dist/components/ontario-icon-attach.js.map +1 -1
  157. package/dist/components/ontario-icon-bookmark-off.js +5 -5
  158. package/dist/components/ontario-icon-bookmark-off.js.map +1 -1
  159. package/dist/components/ontario-icon-bookmark-on.js +5 -5
  160. package/dist/components/ontario-icon-bookmark-on.js.map +1 -1
  161. package/dist/components/ontario-icon-calendar.js +5 -5
  162. package/dist/components/ontario-icon-calendar.js.map +1 -1
  163. package/dist/components/ontario-icon-camera.js +5 -5
  164. package/dist/components/ontario-icon-camera.js.map +1 -1
  165. package/dist/components/ontario-icon-chevron-down.js +1 -1
  166. package/dist/components/ontario-icon-chevron-down2.js +1 -1
  167. package/dist/components/ontario-icon-chevron-left.js +1 -1
  168. package/dist/components/ontario-icon-chevron-left2.js +1 -1
  169. package/dist/components/ontario-icon-chevron-right.js +5 -5
  170. package/dist/components/ontario-icon-chevron-right.js.map +1 -1
  171. package/dist/components/ontario-icon-chevron-up.js +1 -1
  172. package/dist/components/ontario-icon-chevron-up2.js +1 -1
  173. package/dist/components/ontario-icon-clock.js +5 -5
  174. package/dist/components/ontario-icon-clock.js.map +1 -1
  175. package/dist/components/ontario-icon-close-header.js +5 -5
  176. package/dist/components/ontario-icon-close-header.js.map +1 -1
  177. package/dist/components/ontario-icon-close.js +5 -5
  178. package/dist/components/ontario-icon-close.js.map +1 -1
  179. package/dist/components/ontario-icon-cloud.js +5 -5
  180. package/dist/components/ontario-icon-cloud.js.map +1 -1
  181. package/dist/components/ontario-icon-collapse.js +5 -5
  182. package/dist/components/ontario-icon-collapse.js.map +1 -1
  183. package/dist/components/ontario-icon-credit-card.js +5 -5
  184. package/dist/components/ontario-icon-credit-card.js.map +1 -1
  185. package/dist/components/ontario-icon-critical-alert-warning.js +5 -5
  186. package/dist/components/ontario-icon-critical-alert-warning.js.map +1 -1
  187. package/dist/components/ontario-icon-delete.js +5 -5
  188. package/dist/components/ontario-icon-delete.js.map +1 -1
  189. package/dist/components/ontario-icon-document.js +5 -5
  190. package/dist/components/ontario-icon-document.js.map +1 -1
  191. package/dist/components/ontario-icon-download.js +5 -5
  192. package/dist/components/ontario-icon-download.js.map +1 -1
  193. package/dist/components/ontario-icon-dropdown-arrow.js +3 -3
  194. package/dist/components/ontario-icon-dropdown-arrow.js.map +1 -1
  195. package/dist/components/ontario-icon-edit.js +5 -5
  196. package/dist/components/ontario-icon-edit.js.map +1 -1
  197. package/dist/components/ontario-icon-email.js +5 -5
  198. package/dist/components/ontario-icon-email.js.map +1 -1
  199. package/dist/components/ontario-icon-expand.js +5 -5
  200. package/dist/components/ontario-icon-expand.js.map +1 -1
  201. package/dist/components/ontario-icon-export.js +5 -5
  202. package/dist/components/ontario-icon-export.js.map +1 -1
  203. package/dist/components/ontario-icon-facebook-alt.js +5 -5
  204. package/dist/components/ontario-icon-facebook-alt.js.map +1 -1
  205. package/dist/components/ontario-icon-facebook.js +5 -5
  206. package/dist/components/ontario-icon-facebook.js.map +1 -1
  207. package/dist/components/ontario-icon-favourite-off.js +5 -5
  208. package/dist/components/ontario-icon-favourite-off.js.map +1 -1
  209. package/dist/components/ontario-icon-favourite-on.js +5 -5
  210. package/dist/components/ontario-icon-favourite-on.js.map +1 -1
  211. package/dist/components/ontario-icon-filter.js +5 -5
  212. package/dist/components/ontario-icon-filter.js.map +1 -1
  213. package/dist/components/ontario-icon-flickr.js +5 -5
  214. package/dist/components/ontario-icon-flickr.js.map +1 -1
  215. package/dist/components/ontario-icon-grid.js +5 -5
  216. package/dist/components/ontario-icon-grid.js.map +1 -1
  217. package/dist/components/ontario-icon-help.js +5 -5
  218. package/dist/components/ontario-icon-help.js.map +1 -1
  219. package/dist/components/ontario-icon-instagram.js +5 -5
  220. package/dist/components/ontario-icon-instagram.js.map +1 -1
  221. package/dist/components/ontario-icon-interac-en-alt.js +3 -3
  222. package/dist/components/ontario-icon-interac-en-alt.js.map +1 -1
  223. package/dist/components/ontario-icon-interac-en.js +3 -3
  224. package/dist/components/ontario-icon-interac-en.js.map +1 -1
  225. package/dist/components/ontario-icon-interac-fr-alt.js +3 -3
  226. package/dist/components/ontario-icon-interac-fr-alt.js.map +1 -1
  227. package/dist/components/ontario-icon-interac-fr.js +3 -3
  228. package/dist/components/ontario-icon-interac-fr.js.map +1 -1
  229. package/dist/components/ontario-icon-linkedin-alt.js +5 -5
  230. package/dist/components/ontario-icon-linkedin-alt.js.map +1 -1
  231. package/dist/components/ontario-icon-linkedin.js +5 -5
  232. package/dist/components/ontario-icon-linkedin.js.map +1 -1
  233. package/dist/components/ontario-icon-list.js +5 -5
  234. package/dist/components/ontario-icon-list.js.map +1 -1
  235. package/dist/components/ontario-icon-live-chat.js +5 -5
  236. package/dist/components/ontario-icon-live-chat.js.map +1 -1
  237. package/dist/components/ontario-icon-location-off.js +5 -5
  238. package/dist/components/ontario-icon-location-off.js.map +1 -1
  239. package/dist/components/ontario-icon-location-on.js +5 -5
  240. package/dist/components/ontario-icon-location-on.js.map +1 -1
  241. package/dist/components/ontario-icon-lock-off.js +5 -5
  242. package/dist/components/ontario-icon-lock-off.js.map +1 -1
  243. package/dist/components/ontario-icon-lock-on.js +5 -5
  244. package/dist/components/ontario-icon-lock-on.js.map +1 -1
  245. package/dist/components/ontario-icon-map.js +5 -5
  246. package/dist/components/ontario-icon-map.js.map +1 -1
  247. package/dist/components/ontario-icon-mastercard-alt.js +3 -3
  248. package/dist/components/ontario-icon-mastercard-alt.js.map +1 -1
  249. package/dist/components/ontario-icon-mastercard.js +3 -3
  250. package/dist/components/ontario-icon-mastercard.js.map +1 -1
  251. package/dist/components/ontario-icon-media-fast-forward.js +5 -5
  252. package/dist/components/ontario-icon-media-fast-forward.js.map +1 -1
  253. package/dist/components/ontario-icon-media-fast-rewind.js +5 -5
  254. package/dist/components/ontario-icon-media-fast-rewind.js.map +1 -1
  255. package/dist/components/ontario-icon-media-pause.js +5 -5
  256. package/dist/components/ontario-icon-media-pause.js.map +1 -1
  257. package/dist/components/ontario-icon-media-play.js +5 -5
  258. package/dist/components/ontario-icon-media-play.js.map +1 -1
  259. package/dist/components/ontario-icon-media-stop.js +5 -5
  260. package/dist/components/ontario-icon-media-stop.js.map +1 -1
  261. package/dist/components/ontario-icon-menu-header.js +5 -5
  262. package/dist/components/ontario-icon-menu-header.js.map +1 -1
  263. package/dist/components/ontario-icon-menu.js +5 -5
  264. package/dist/components/ontario-icon-menu.js.map +1 -1
  265. package/dist/components/ontario-icon-microphone-off.js +5 -5
  266. package/dist/components/ontario-icon-microphone-off.js.map +1 -1
  267. package/dist/components/ontario-icon-microphone-on.js +5 -5
  268. package/dist/components/ontario-icon-microphone-on.js.map +1 -1
  269. package/dist/components/ontario-icon-more-vertical.js +5 -5
  270. package/dist/components/ontario-icon-more-vertical.js.map +1 -1
  271. package/dist/components/ontario-icon-new-window.js +5 -5
  272. package/dist/components/ontario-icon-new-window.js.map +1 -1
  273. package/dist/components/ontario-icon-next.js +5 -5
  274. package/dist/components/ontario-icon-next.js.map +1 -1
  275. package/dist/components/ontario-icon-notification.js +5 -5
  276. package/dist/components/ontario-icon-notification.js.map +1 -1
  277. package/dist/components/ontario-icon-password-hide.js +5 -5
  278. package/dist/components/ontario-icon-password-hide.js.map +1 -1
  279. package/dist/components/ontario-icon-password-show.js +5 -5
  280. package/dist/components/ontario-icon-password-show.js.map +1 -1
  281. package/dist/components/ontario-icon-phone.js +5 -5
  282. package/dist/components/ontario-icon-phone.js.map +1 -1
  283. package/dist/components/ontario-icon-photo.js +5 -5
  284. package/dist/components/ontario-icon-photo.js.map +1 -1
  285. package/dist/components/ontario-icon-pin-location-off.js +5 -5
  286. package/dist/components/ontario-icon-pin-location-off.js.map +1 -1
  287. package/dist/components/ontario-icon-pin-location-on.js +5 -5
  288. package/dist/components/ontario-icon-pin-location-on.js.map +1 -1
  289. package/dist/components/ontario-icon-previous.js +5 -5
  290. package/dist/components/ontario-icon-previous.js.map +1 -1
  291. package/dist/components/ontario-icon-print.js +5 -5
  292. package/dist/components/ontario-icon-print.js.map +1 -1
  293. package/dist/components/ontario-icon-remove-alt.js +5 -5
  294. package/dist/components/ontario-icon-remove-alt.js.map +1 -1
  295. package/dist/components/ontario-icon-remove.js +5 -5
  296. package/dist/components/ontario-icon-remove.js.map +1 -1
  297. package/dist/components/ontario-icon-replay.js +5 -5
  298. package/dist/components/ontario-icon-replay.js.map +1 -1
  299. package/dist/components/ontario-icon-rss-feed.js +5 -5
  300. package/dist/components/ontario-icon-rss-feed.js.map +1 -1
  301. package/dist/components/ontario-icon-save.js +5 -5
  302. package/dist/components/ontario-icon-save.js.map +1 -1
  303. package/dist/components/ontario-icon-search-white.js +5 -5
  304. package/dist/components/ontario-icon-search-white.js.map +1 -1
  305. package/dist/components/ontario-icon-search.js +5 -5
  306. package/dist/components/ontario-icon-search.js.map +1 -1
  307. package/dist/components/ontario-icon-sentiment-1.js +5 -5
  308. package/dist/components/ontario-icon-sentiment-1.js.map +1 -1
  309. package/dist/components/ontario-icon-sentiment-2.js +5 -5
  310. package/dist/components/ontario-icon-sentiment-2.js.map +1 -1
  311. package/dist/components/ontario-icon-sentiment-3.js +5 -5
  312. package/dist/components/ontario-icon-sentiment-3.js.map +1 -1
  313. package/dist/components/ontario-icon-sentiment-4.js +5 -5
  314. package/dist/components/ontario-icon-sentiment-4.js.map +1 -1
  315. package/dist/components/ontario-icon-sentiment-5.js +5 -5
  316. package/dist/components/ontario-icon-sentiment-5.js.map +1 -1
  317. package/dist/components/ontario-icon-settings.js +5 -5
  318. package/dist/components/ontario-icon-settings.js.map +1 -1
  319. package/dist/components/ontario-icon-share.js +5 -5
  320. package/dist/components/ontario-icon-share.js.map +1 -1
  321. package/dist/components/ontario-icon-sort.js +5 -5
  322. package/dist/components/ontario-icon-sort.js.map +1 -1
  323. package/dist/components/ontario-icon-tag.js +5 -5
  324. package/dist/components/ontario-icon-tag.js.map +1 -1
  325. package/dist/components/ontario-icon-text-message.js +5 -5
  326. package/dist/components/ontario-icon-text-message.js.map +1 -1
  327. package/dist/components/ontario-icon-timer.js +5 -5
  328. package/dist/components/ontario-icon-timer.js.map +1 -1
  329. package/dist/components/ontario-icon-transport-bicycle.js +5 -5
  330. package/dist/components/ontario-icon-transport-bicycle.js.map +1 -1
  331. package/dist/components/ontario-icon-transport-bus.js +5 -5
  332. package/dist/components/ontario-icon-transport-bus.js.map +1 -1
  333. package/dist/components/ontario-icon-transport-car.js +5 -5
  334. package/dist/components/ontario-icon-transport-car.js.map +1 -1
  335. package/dist/components/ontario-icon-transport-walk.js +5 -5
  336. package/dist/components/ontario-icon-transport-walk.js.map +1 -1
  337. package/dist/components/ontario-icon-tty.js +5 -5
  338. package/dist/components/ontario-icon-tty.js.map +1 -1
  339. package/dist/components/ontario-icon-twitter-alt.js +5 -5
  340. package/dist/components/ontario-icon-twitter-alt.js.map +1 -1
  341. package/dist/components/ontario-icon-twitter.js +5 -5
  342. package/dist/components/ontario-icon-twitter.js.map +1 -1
  343. package/dist/components/ontario-icon-upload.js +5 -5
  344. package/dist/components/ontario-icon-upload.js.map +1 -1
  345. package/dist/components/ontario-icon-video.js +5 -5
  346. package/dist/components/ontario-icon-video.js.map +1 -1
  347. package/dist/components/ontario-icon-visa.js +3 -3
  348. package/dist/components/ontario-icon-visa.js.map +1 -1
  349. package/dist/components/ontario-icon-vote-dislike.js +5 -5
  350. package/dist/components/ontario-icon-vote-dislike.js.map +1 -1
  351. package/dist/components/ontario-icon-vote-like.js +5 -5
  352. package/dist/components/ontario-icon-vote-like.js.map +1 -1
  353. package/dist/components/ontario-icon-vpn-key.js +5 -5
  354. package/dist/components/ontario-icon-vpn-key.js.map +1 -1
  355. package/dist/components/ontario-icon-wheelchair.js +5 -5
  356. package/dist/components/ontario-icon-wheelchair.js.map +1 -1
  357. package/dist/components/ontario-icon-wifi.js +5 -5
  358. package/dist/components/ontario-icon-wifi.js.map +1 -1
  359. package/dist/components/ontario-icon-youtube.js +5 -5
  360. package/dist/components/ontario-icon-youtube.js.map +1 -1
  361. package/dist/components/ontario-input.js +20 -20
  362. package/dist/components/ontario-input.js.map +1 -1
  363. package/dist/components/ontario-language-toggle.js +1 -1
  364. package/dist/components/ontario-language-toggle2.js +1 -1
  365. package/dist/components/ontario-loading-indicator.js +5 -5
  366. package/dist/components/ontario-loading-indicator.js.map +1 -1
  367. package/dist/components/ontario-page-alert.js +6 -6
  368. package/dist/components/ontario-page-alert.js.map +1 -1
  369. package/dist/components/ontario-radio-buttons.js +18 -18
  370. package/dist/components/ontario-radio-buttons.js.map +1 -1
  371. package/dist/components/ontario-search-box.js +13 -13
  372. package/dist/components/ontario-search-box.js.map +1 -1
  373. package/dist/components/ontario-step-indicator.js +5 -5
  374. package/dist/components/ontario-step-indicator.js.map +1 -1
  375. package/dist/components/ontario-table.js +4 -4
  376. package/dist/components/ontario-table.js.map +1 -1
  377. package/dist/components/ontario-task-list.js +6 -6
  378. package/dist/components/ontario-task-list.js.map +1 -1
  379. package/dist/components/ontario-task.js +9 -9
  380. package/dist/components/ontario-task.js.map +1 -1
  381. package/dist/components/ontario-textarea.js +19 -19
  382. package/dist/components/ontario-textarea.js.map +1 -1
  383. package/dist/components/utils.js +2 -2
  384. package/dist/components/validation-functions.js +1 -1
  385. package/dist/esm/{index-DMZw5oVx.js → index-Z6XKfgxi.js} +4 -2
  386. package/dist/esm/index-Z6XKfgxi.js.map +1 -0
  387. package/dist/esm/loader.js +2 -2
  388. package/dist/esm/ontario-accordion_46.entry.js +1 -1
  389. package/dist/esm/ontario-design-system-components.js +2 -2
  390. package/dist/esm/ontario-icon-account.entry.js +1 -1
  391. package/dist/esm/ontario-icon-add-alt.entry.js +1 -1
  392. package/dist/esm/ontario-icon-add.entry.js +1 -1
  393. package/dist/esm/ontario-icon-arrow-up.entry.js +1 -1
  394. package/dist/esm/ontario-icon-attach.entry.js +1 -1
  395. package/dist/esm/ontario-icon-bookmark-off.entry.js +1 -1
  396. package/dist/esm/ontario-icon-bookmark-on.entry.js +1 -1
  397. package/dist/esm/ontario-icon-calendar.entry.js +1 -1
  398. package/dist/esm/ontario-icon-chevron-right.entry.js +1 -1
  399. package/dist/esm/ontario-icon-clock.entry.js +1 -1
  400. package/dist/esm/ontario-icon-close-header.entry.js +1 -1
  401. package/dist/esm/ontario-icon-close.entry.js +1 -1
  402. package/dist/esm/ontario-icon-cloud.entry.js +1 -1
  403. package/dist/esm/ontario-icon-collapse.entry.js +1 -1
  404. package/dist/esm/ontario-icon-credit-card.entry.js +1 -1
  405. package/dist/esm/ontario-icon-critical-alert-warning.entry.js +1 -1
  406. package/dist/esm/ontario-icon-delete.entry.js +1 -1
  407. package/dist/esm/ontario-icon-document.entry.js +1 -1
  408. package/dist/esm/ontario-icon-download.entry.js +1 -1
  409. package/dist/esm/ontario-icon-dropdown-arrow.entry.js +1 -1
  410. package/dist/esm/ontario-icon-edit.entry.js +1 -1
  411. package/dist/esm/ontario-icon-expand.entry.js +1 -1
  412. package/dist/esm/ontario-icon-export.entry.js +1 -1
  413. package/dist/esm/ontario-icon-facebook-alt.entry.js +1 -1
  414. package/dist/esm/ontario-icon-facebook.entry.js +1 -1
  415. package/dist/esm/ontario-icon-favourite-off.entry.js +1 -1
  416. package/dist/esm/ontario-icon-favourite-on.entry.js +1 -1
  417. package/dist/esm/ontario-icon-filter.entry.js +1 -1
  418. package/dist/esm/ontario-icon-flickr.entry.js +1 -1
  419. package/dist/esm/ontario-icon-grid.entry.js +1 -1
  420. package/dist/esm/ontario-icon-instagram.entry.js +1 -1
  421. package/dist/esm/ontario-icon-interac-en-alt.entry.js +1 -1
  422. package/dist/esm/ontario-icon-interac-en.entry.js +1 -1
  423. package/dist/esm/ontario-icon-interac-fr-alt.entry.js +1 -1
  424. package/dist/esm/ontario-icon-interac-fr.entry.js +1 -1
  425. package/dist/esm/ontario-icon-linkedin-alt.entry.js +1 -1
  426. package/dist/esm/ontario-icon-linkedin.entry.js +1 -1
  427. package/dist/esm/ontario-icon-list.entry.js +1 -1
  428. package/dist/esm/ontario-icon-live-chat.entry.js +1 -1
  429. package/dist/esm/ontario-icon-location-off.entry.js +1 -1
  430. package/dist/esm/ontario-icon-location-on.entry.js +1 -1
  431. package/dist/esm/ontario-icon-lock-off.entry.js +1 -1
  432. package/dist/esm/ontario-icon-lock-on.entry.js +1 -1
  433. package/dist/esm/ontario-icon-map.entry.js +1 -1
  434. package/dist/esm/ontario-icon-mastercard-alt.entry.js +1 -1
  435. package/dist/esm/ontario-icon-media-fast-forward.entry.js +1 -1
  436. package/dist/esm/ontario-icon-media-fast-rewind.entry.js +1 -1
  437. package/dist/esm/ontario-icon-media-pause.entry.js +1 -1
  438. package/dist/esm/ontario-icon-media-play.entry.js +1 -1
  439. package/dist/esm/ontario-icon-media-stop.entry.js +1 -1
  440. package/dist/esm/ontario-icon-menu-header.entry.js +1 -1
  441. package/dist/esm/ontario-icon-menu.entry.js +1 -1
  442. package/dist/esm/ontario-icon-microphone-off.entry.js +1 -1
  443. package/dist/esm/ontario-icon-microphone-on.entry.js +1 -1
  444. package/dist/esm/ontario-icon-more-vertical.entry.js +1 -1
  445. package/dist/esm/ontario-icon-new-window.entry.js +1 -1
  446. package/dist/esm/ontario-icon-next.entry.js +1 -1
  447. package/dist/esm/ontario-icon-password-hide.entry.js +1 -1
  448. package/dist/esm/ontario-icon-password-show.entry.js +1 -1
  449. package/dist/esm/ontario-icon-phone.entry.js +1 -1
  450. package/dist/esm/ontario-icon-photo.entry.js +1 -1
  451. package/dist/esm/ontario-icon-pin-location-off.entry.js +1 -1
  452. package/dist/esm/ontario-icon-pin-location-on.entry.js +1 -1
  453. package/dist/esm/ontario-icon-previous.entry.js +1 -1
  454. package/dist/esm/ontario-icon-remove-alt.entry.js +1 -1
  455. package/dist/esm/ontario-icon-remove.entry.js +1 -1
  456. package/dist/esm/ontario-icon-replay.entry.js +1 -1
  457. package/dist/esm/ontario-icon-rss-feed.entry.js +1 -1
  458. package/dist/esm/ontario-icon-save.entry.js +1 -1
  459. package/dist/esm/ontario-icon-search-white.entry.js +1 -1
  460. package/dist/esm/ontario-icon-search.entry.js +1 -1
  461. package/dist/esm/ontario-icon-sentiment-1.entry.js +1 -1
  462. package/dist/esm/ontario-icon-sentiment-2.entry.js +1 -1
  463. package/dist/esm/ontario-icon-sentiment-3.entry.js +1 -1
  464. package/dist/esm/ontario-icon-sentiment-4.entry.js +1 -1
  465. package/dist/esm/ontario-icon-settings.entry.js +1 -1
  466. package/dist/esm/ontario-icon-share.entry.js +1 -1
  467. package/dist/esm/ontario-icon-sort.entry.js +1 -1
  468. package/dist/esm/ontario-icon-tag.entry.js +1 -1
  469. package/dist/esm/ontario-icon-timer.entry.js +1 -1
  470. package/dist/esm/ontario-icon-transport-bicycle.entry.js +1 -1
  471. package/dist/esm/ontario-icon-transport-car.entry.js +1 -1
  472. package/dist/esm/ontario-icon-transport-walk.entry.js +1 -1
  473. package/dist/esm/ontario-icon-tty.entry.js +1 -1
  474. package/dist/esm/ontario-icon-twitter-alt.entry.js +1 -1
  475. package/dist/esm/ontario-icon-twitter.entry.js +1 -1
  476. package/dist/esm/ontario-icon-upload.entry.js +1 -1
  477. package/dist/esm/ontario-icon-video.entry.js +1 -1
  478. package/dist/esm/ontario-icon-visa.entry.js +1 -1
  479. package/dist/esm/ontario-icon-vote-dislike.entry.js +1 -1
  480. package/dist/esm/ontario-icon-vote-like.entry.js +1 -1
  481. package/dist/esm/ontario-icon-vpn-key.entry.js +1 -1
  482. package/dist/esm/ontario-icon-wheelchair.entry.js +1 -1
  483. package/dist/esm/ontario-icon-wifi.entry.js +1 -1
  484. package/dist/esm/ontario-icon-youtube.entry.js +1 -1
  485. package/dist/ontario-design-system-components/ontario-design-system-components.esm.js +3 -3
  486. package/{www/build/p-9c2b998d.entry.js → dist/ontario-design-system-components/p-0164666e.entry.js} +13 -13
  487. package/dist/ontario-design-system-components/{p-69c634db.entry.js → p-06397814.entry.js} +13 -13
  488. package/{www/build/p-95e9eb2d.entry.js → dist/ontario-design-system-components/p-073230c2.entry.js} +2 -2
  489. package/{www/build/p-03ce0e4f.entry.js → dist/ontario-design-system-components/p-0b4f9ec0.entry.js} +2 -2
  490. package/dist/ontario-design-system-components/{p-fceb57c1.entry.js → p-0dd3dffd.entry.js} +2 -2
  491. package/dist/ontario-design-system-components/{p-68f9d7d2.entry.js → p-11d753b7.entry.js} +2 -2
  492. package/{www/build/p-2a873dd9.entry.js → dist/ontario-design-system-components/p-12f0f2b4.entry.js} +2 -2
  493. package/{www/build/p-6554ce67.entry.js → dist/ontario-design-system-components/p-15df0107.entry.js} +2 -2
  494. package/dist/ontario-design-system-components/{p-f44c7aea.entry.js → p-17407497.entry.js} +2 -2
  495. package/dist/ontario-design-system-components/{p-1f5f95ee.entry.js → p-19c27012.entry.js} +7 -7
  496. package/dist/ontario-design-system-components/{p-6e6b81c0.entry.js → p-1a658564.entry.js} +2 -2
  497. package/{www/build/p-712d4b56.entry.js → dist/ontario-design-system-components/p-1b13bdbb.entry.js} +2 -2
  498. package/dist/ontario-design-system-components/{p-e4442c85.entry.js → p-1b6c3d61.entry.js} +2 -2
  499. package/dist/ontario-design-system-components/{p-cc0f4a69.entry.js → p-201594dc.entry.js} +13 -13
  500. package/dist/ontario-design-system-components/{p-3ae00fd2.entry.js → p-224ac275.entry.js} +2 -2
  501. package/{www/build/p-60599895.entry.js → dist/ontario-design-system-components/p-2308cab7.entry.js} +13 -13
  502. package/dist/ontario-design-system-components/{p-cdc7b103.entry.js → p-2341df54.entry.js} +13 -13
  503. package/{www/build/p-49302510.entry.js → dist/ontario-design-system-components/p-2a365fec.entry.js} +2 -2
  504. package/{www/build/p-dded4508.entry.js → dist/ontario-design-system-components/p-2e845374.entry.js} +13 -13
  505. package/{www/build/p-2cd49ffd.entry.js → dist/ontario-design-system-components/p-2ed7f164.entry.js} +2 -2
  506. package/{www/build/p-ec53c132.entry.js → dist/ontario-design-system-components/p-2ef0057e.entry.js} +2 -2
  507. package/{www/build/p-46f066be.entry.js → dist/ontario-design-system-components/p-3459dfba.entry.js} +9 -9
  508. package/{www/build/p-d464fe1c.entry.js → dist/ontario-design-system-components/p-399b16d4.entry.js} +2 -2
  509. package/{www/build/p-76630ce4.entry.js → dist/ontario-design-system-components/p-3cb71072.entry.js} +2 -2
  510. package/{www/build/p-446bc22e.entry.js → dist/ontario-design-system-components/p-40771f5b.entry.js} +2 -2
  511. package/dist/ontario-design-system-components/{p-a352d9e8.entry.js → p-4366f704.entry.js} +2 -2
  512. package/{www/build/p-c5ac4772.entry.js → dist/ontario-design-system-components/p-43734e72.entry.js} +2 -2
  513. package/{www/build/p-0665f5ae.entry.js → dist/ontario-design-system-components/p-4622b378.entry.js} +2 -2
  514. package/dist/ontario-design-system-components/{p-a3261401.entry.js → p-4e1ca81b.entry.js} +13 -13
  515. package/dist/ontario-design-system-components/{p-94bebac1.entry.js → p-5257d724.entry.js} +2 -2
  516. package/dist/ontario-design-system-components/{p-1e4cd98c.entry.js → p-55002351.entry.js} +2 -2
  517. package/{www/build/p-f79019d2.entry.js → dist/ontario-design-system-components/p-59b2a51d.entry.js} +2 -2
  518. package/{www/build/p-3289dedb.entry.js → dist/ontario-design-system-components/p-59f23a25.entry.js} +13 -13
  519. package/dist/ontario-design-system-components/{p-7aa141a1.entry.js → p-5ef3b2cc.entry.js} +13 -13
  520. package/{www/build/p-f549e195.entry.js → dist/ontario-design-system-components/p-5fa71c0d.entry.js} +2 -2
  521. package/{www/build/p-8d29cf15.entry.js → dist/ontario-design-system-components/p-61612d3e.entry.js} +2 -2
  522. package/dist/ontario-design-system-components/{p-f6b59189.entry.js → p-66bf6e42.entry.js} +2 -2
  523. package/{www/build/p-f3382275.entry.js → dist/ontario-design-system-components/p-66c93663.entry.js} +2 -2
  524. package/dist/ontario-design-system-components/{p-fafd9d3d.entry.js → p-66f53f37.entry.js} +2 -2
  525. package/{www/build/p-f2972261.entry.js → dist/ontario-design-system-components/p-696a1b00.entry.js} +2 -2
  526. package/{www/build/p-85128abf.entry.js → dist/ontario-design-system-components/p-6e1b8a34.entry.js} +2 -2
  527. package/dist/ontario-design-system-components/{p-a87667e9.entry.js → p-73a29c94.entry.js} +2 -2
  528. package/{www/build/p-31c88438.entry.js → dist/ontario-design-system-components/p-76a2f0c7.entry.js} +2 -2
  529. package/{www/build/p-a06d65b1.entry.js → dist/ontario-design-system-components/p-7818d8a2.entry.js} +2 -2
  530. package/{www/build/p-c629473c.entry.js → dist/ontario-design-system-components/p-799e9674.entry.js} +2 -2
  531. package/{www/build/p-3e5affb9.entry.js → dist/ontario-design-system-components/p-7e7c7dd2.entry.js} +2 -2
  532. package/dist/ontario-design-system-components/{p-b5bc89c2.entry.js → p-805cdde0.entry.js} +2 -2
  533. package/{www/build/p-9fab3d9c.entry.js → dist/ontario-design-system-components/p-83127110.entry.js} +2 -2
  534. package/{www/build/p-07b86c19.entry.js → dist/ontario-design-system-components/p-84bff712.entry.js} +13 -13
  535. package/dist/ontario-design-system-components/{p-7ec8da45.entry.js → p-85f4e413.entry.js} +13 -13
  536. package/dist/ontario-design-system-components/{p-e81e179d.entry.js → p-8788910b.entry.js} +13 -13
  537. package/dist/ontario-design-system-components/{p-a28f26cb.entry.js → p-8fccb34c.entry.js} +2 -2
  538. package/dist/ontario-design-system-components/{p-fb713995.entry.js → p-9450f10f.entry.js} +2 -2
  539. package/dist/ontario-design-system-components/{p-028c86ea.entry.js → p-95d2c69f.entry.js} +2 -2
  540. package/dist/ontario-design-system-components/{p-db91a1bf.entry.js → p-9ebd9d9c.entry.js} +13 -13
  541. package/dist/ontario-design-system-components/{p-DMZw5oVx.js → p-Z6XKfgxi.js} +1 -1
  542. package/dist/ontario-design-system-components/p-Z6XKfgxi.js.map +1 -0
  543. package/{www/build/p-2cfa9325.entry.js → dist/ontario-design-system-components/p-a1171a59.entry.js} +2 -2
  544. package/{www/build/p-2cd26474.entry.js → dist/ontario-design-system-components/p-a4448b11.entry.js} +13 -13
  545. package/{www/build/p-d0ca1fc8.entry.js → dist/ontario-design-system-components/p-a528a1ca.entry.js} +2 -2
  546. package/dist/ontario-design-system-components/{p-ee74fbc6.entry.js → p-a9216eae.entry.js} +2 -2
  547. package/{www/build/p-8dcb5821.entry.js → dist/ontario-design-system-components/p-a9c103cf.entry.js} +13 -13
  548. package/dist/ontario-design-system-components/{p-79cf7e05.entry.js → p-aab543f6.entry.js} +2 -2
  549. package/dist/ontario-design-system-components/{p-f73e74d9.entry.js → p-aed58958.entry.js} +2 -2
  550. package/dist/ontario-design-system-components/{p-3e722569.entry.js → p-af452b01.entry.js} +2 -2
  551. package/dist/ontario-design-system-components/{p-6612cf3a.entry.js → p-af865300.entry.js} +2 -2
  552. package/{www/build/p-d47abbea.entry.js → dist/ontario-design-system-components/p-b06f6e12.entry.js} +9 -9
  553. package/{www/build/p-6144ee55.entry.js → dist/ontario-design-system-components/p-b1c01063.entry.js} +2 -2
  554. package/dist/ontario-design-system-components/{p-88a7d660.entry.js → p-b47a18b8.entry.js} +2 -2
  555. package/{www/build/p-ace3dc5e.entry.js → dist/ontario-design-system-components/p-b7ea81d2.entry.js} +2 -2
  556. package/dist/ontario-design-system-components/{p-2f10d76b.entry.js → p-b96cbcc5.entry.js} +13 -13
  557. package/dist/ontario-design-system-components/{p-49c2486a.entry.js → p-b9a60843.entry.js} +2 -2
  558. package/dist/ontario-design-system-components/{p-d25eeba1.entry.js → p-bf53ed44.entry.js} +2 -2
  559. package/{www/build/p-a3b4779c.entry.js → dist/ontario-design-system-components/p-c30623c7.entry.js} +2 -2
  560. package/dist/ontario-design-system-components/{p-e94f4595.entry.js → p-c9cdcee1.entry.js} +2 -2
  561. package/{www/build/p-82589b3a.entry.js → dist/ontario-design-system-components/p-cc3e3d4c.entry.js} +13 -13
  562. package/{www/build/p-9548d3a8.entry.js → dist/ontario-design-system-components/p-cca22349.entry.js} +2 -2
  563. package/dist/ontario-design-system-components/{p-ba78db75.entry.js → p-cfbaaed2.entry.js} +2 -2
  564. package/dist/ontario-design-system-components/{p-b4bd86d3.entry.js → p-d340442c.entry.js} +2 -2
  565. package/{www/build/p-89b6b512.entry.js → dist/ontario-design-system-components/p-d40a8f30.entry.js} +2 -2
  566. package/dist/ontario-design-system-components/{p-6c70f7b2.entry.js → p-d4dfdd88.entry.js} +2 -2
  567. package/dist/ontario-design-system-components/{p-cb393765.entry.js → p-d7a79820.entry.js} +2 -2
  568. package/{www/build/p-90b478e3.entry.js → dist/ontario-design-system-components/p-dba8a3d4.entry.js} +2 -2
  569. package/dist/ontario-design-system-components/{p-b491241d.entry.js → p-ded78746.entry.js} +2 -2
  570. package/dist/ontario-design-system-components/{p-c586ad7a.entry.js → p-deeb4109.entry.js} +2 -2
  571. package/{www/build/p-a93c0de9.entry.js → dist/ontario-design-system-components/p-df1fbb93.entry.js} +2 -2
  572. package/dist/ontario-design-system-components/{p-479a4e11.entry.js → p-df3ae0a8.entry.js} +2 -2
  573. package/{www/build/p-d52d766f.entry.js → dist/ontario-design-system-components/p-e076287c.entry.js} +2 -2
  574. package/dist/ontario-design-system-components/{p-cab46732.entry.js → p-e3699001.entry.js} +7 -7
  575. package/dist/ontario-design-system-components/{p-15fe1397.entry.js → p-e558a0c3.entry.js} +2 -2
  576. package/{www/build/p-649cdc72.entry.js → dist/ontario-design-system-components/p-e7511cdf.entry.js} +2 -2
  577. package/{www/build/p-27549f53.entry.js → dist/ontario-design-system-components/p-e8d91fb5.entry.js} +2 -2
  578. package/dist/ontario-design-system-components/{p-f470c076.entry.js → p-f15c44b6.entry.js} +2 -2
  579. package/dist/ontario-design-system-components/{p-44eb14b2.entry.js → p-f4864f2d.entry.js} +2 -2
  580. package/dist/ontario-design-system-components/{p-dc2914fb.entry.js → p-f5a300a4.entry.js} +2 -2
  581. package/{www/build/p-f0c9e4f7.entry.js → dist/ontario-design-system-components/p-fc8177ed.entry.js} +13 -13
  582. package/{www/build/p-98b5c2dc.entry.js → dist/ontario-design-system-components/p-fe2f2364.entry.js} +2 -2
  583. package/{www/build/p-c029b6bb.entry.js → dist/ontario-design-system-components/p-ff1b397e.entry.js} +7 -7
  584. package/dist/types/global.d.ts +0 -1
  585. package/package.json +2 -2
  586. package/src/global.ts +1 -7
  587. package/www/build/ontario-design-system-components.esm.js +3 -3
  588. package/{dist/ontario-design-system-components/p-9c2b998d.entry.js → www/build/p-0164666e.entry.js} +13 -13
  589. package/www/build/{p-69c634db.entry.js → p-06397814.entry.js} +13 -13
  590. package/{dist/ontario-design-system-components/p-95e9eb2d.entry.js → www/build/p-073230c2.entry.js} +2 -2
  591. package/{dist/ontario-design-system-components/p-03ce0e4f.entry.js → www/build/p-0b4f9ec0.entry.js} +2 -2
  592. package/www/build/{p-fceb57c1.entry.js → p-0dd3dffd.entry.js} +2 -2
  593. package/www/build/{p-68f9d7d2.entry.js → p-11d753b7.entry.js} +2 -2
  594. package/{dist/ontario-design-system-components/p-2a873dd9.entry.js → www/build/p-12f0f2b4.entry.js} +2 -2
  595. package/{dist/ontario-design-system-components/p-6554ce67.entry.js → www/build/p-15df0107.entry.js} +2 -2
  596. package/www/build/{p-f44c7aea.entry.js → p-17407497.entry.js} +2 -2
  597. package/www/build/{p-1f5f95ee.entry.js → p-19c27012.entry.js} +7 -7
  598. package/www/build/{p-6e6b81c0.entry.js → p-1a658564.entry.js} +2 -2
  599. package/{dist/ontario-design-system-components/p-712d4b56.entry.js → www/build/p-1b13bdbb.entry.js} +2 -2
  600. package/www/build/{p-e4442c85.entry.js → p-1b6c3d61.entry.js} +2 -2
  601. package/www/build/{p-cc0f4a69.entry.js → p-201594dc.entry.js} +13 -13
  602. package/www/build/{p-3ae00fd2.entry.js → p-224ac275.entry.js} +2 -2
  603. package/{dist/ontario-design-system-components/p-60599895.entry.js → www/build/p-2308cab7.entry.js} +13 -13
  604. package/www/build/{p-cdc7b103.entry.js → p-2341df54.entry.js} +13 -13
  605. package/{dist/ontario-design-system-components/p-49302510.entry.js → www/build/p-2a365fec.entry.js} +2 -2
  606. package/{dist/ontario-design-system-components/p-dded4508.entry.js → www/build/p-2e845374.entry.js} +13 -13
  607. package/{dist/ontario-design-system-components/p-2cd49ffd.entry.js → www/build/p-2ed7f164.entry.js} +2 -2
  608. package/{dist/ontario-design-system-components/p-ec53c132.entry.js → www/build/p-2ef0057e.entry.js} +2 -2
  609. package/{dist/ontario-design-system-components/p-46f066be.entry.js → www/build/p-3459dfba.entry.js} +9 -9
  610. package/{dist/ontario-design-system-components/p-d464fe1c.entry.js → www/build/p-399b16d4.entry.js} +2 -2
  611. package/www/build/{p-7bc79341.js → p-399dfa9e.js} +3 -3
  612. package/{dist/ontario-design-system-components/p-76630ce4.entry.js → www/build/p-3cb71072.entry.js} +2 -2
  613. package/{dist/ontario-design-system-components/p-446bc22e.entry.js → www/build/p-40771f5b.entry.js} +2 -2
  614. package/www/build/{p-a352d9e8.entry.js → p-4366f704.entry.js} +2 -2
  615. package/{dist/ontario-design-system-components/p-c5ac4772.entry.js → www/build/p-43734e72.entry.js} +2 -2
  616. package/{dist/ontario-design-system-components/p-0665f5ae.entry.js → www/build/p-4622b378.entry.js} +2 -2
  617. package/www/build/{p-a3261401.entry.js → p-4e1ca81b.entry.js} +13 -13
  618. package/www/build/{p-94bebac1.entry.js → p-5257d724.entry.js} +2 -2
  619. package/www/build/{p-1e4cd98c.entry.js → p-55002351.entry.js} +2 -2
  620. package/{dist/ontario-design-system-components/p-f79019d2.entry.js → www/build/p-59b2a51d.entry.js} +2 -2
  621. package/{dist/ontario-design-system-components/p-3289dedb.entry.js → www/build/p-59f23a25.entry.js} +13 -13
  622. package/www/build/{p-7aa141a1.entry.js → p-5ef3b2cc.entry.js} +13 -13
  623. package/{dist/ontario-design-system-components/p-f549e195.entry.js → www/build/p-5fa71c0d.entry.js} +2 -2
  624. package/{dist/ontario-design-system-components/p-8d29cf15.entry.js → www/build/p-61612d3e.entry.js} +2 -2
  625. package/www/build/{p-f6b59189.entry.js → p-66bf6e42.entry.js} +2 -2
  626. package/{dist/ontario-design-system-components/p-f3382275.entry.js → www/build/p-66c93663.entry.js} +2 -2
  627. package/www/build/{p-fafd9d3d.entry.js → p-66f53f37.entry.js} +2 -2
  628. package/{dist/ontario-design-system-components/p-f2972261.entry.js → www/build/p-696a1b00.entry.js} +2 -2
  629. package/{dist/ontario-design-system-components/p-85128abf.entry.js → www/build/p-6e1b8a34.entry.js} +2 -2
  630. package/www/build/{p-a87667e9.entry.js → p-73a29c94.entry.js} +2 -2
  631. package/{dist/ontario-design-system-components/p-31c88438.entry.js → www/build/p-76a2f0c7.entry.js} +2 -2
  632. package/{dist/ontario-design-system-components/p-a06d65b1.entry.js → www/build/p-7818d8a2.entry.js} +2 -2
  633. package/{dist/ontario-design-system-components/p-c629473c.entry.js → www/build/p-799e9674.entry.js} +2 -2
  634. package/{dist/ontario-design-system-components/p-3e5affb9.entry.js → www/build/p-7e7c7dd2.entry.js} +2 -2
  635. package/www/build/{p-b5bc89c2.entry.js → p-805cdde0.entry.js} +2 -2
  636. package/{dist/ontario-design-system-components/p-9fab3d9c.entry.js → www/build/p-83127110.entry.js} +2 -2
  637. package/{dist/ontario-design-system-components/p-07b86c19.entry.js → www/build/p-84bff712.entry.js} +13 -13
  638. package/www/build/{p-7ec8da45.entry.js → p-85f4e413.entry.js} +13 -13
  639. package/www/build/{p-e81e179d.entry.js → p-8788910b.entry.js} +13 -13
  640. package/www/build/{p-a28f26cb.entry.js → p-8fccb34c.entry.js} +2 -2
  641. package/www/build/{p-fb713995.entry.js → p-9450f10f.entry.js} +2 -2
  642. package/www/build/{p-028c86ea.entry.js → p-95d2c69f.entry.js} +2 -2
  643. package/www/build/{p-db91a1bf.entry.js → p-9ebd9d9c.entry.js} +13 -13
  644. package/www/build/{p-DMZw5oVx.js → p-Z6XKfgxi.js} +1 -1
  645. package/www/build/p-Z6XKfgxi.js.map +1 -0
  646. package/{dist/ontario-design-system-components/p-2cfa9325.entry.js → www/build/p-a1171a59.entry.js} +2 -2
  647. package/{dist/ontario-design-system-components/p-2cd26474.entry.js → www/build/p-a4448b11.entry.js} +13 -13
  648. package/{dist/ontario-design-system-components/p-d0ca1fc8.entry.js → www/build/p-a528a1ca.entry.js} +2 -2
  649. package/www/build/{p-ee74fbc6.entry.js → p-a9216eae.entry.js} +2 -2
  650. package/{dist/ontario-design-system-components/p-8dcb5821.entry.js → www/build/p-a9c103cf.entry.js} +13 -13
  651. package/www/build/{p-79cf7e05.entry.js → p-aab543f6.entry.js} +2 -2
  652. package/www/build/{p-f73e74d9.entry.js → p-aed58958.entry.js} +2 -2
  653. package/www/build/{p-3e722569.entry.js → p-af452b01.entry.js} +2 -2
  654. package/www/build/{p-6612cf3a.entry.js → p-af865300.entry.js} +2 -2
  655. package/{dist/ontario-design-system-components/p-d47abbea.entry.js → www/build/p-b06f6e12.entry.js} +9 -9
  656. package/{dist/ontario-design-system-components/p-6144ee55.entry.js → www/build/p-b1c01063.entry.js} +2 -2
  657. package/www/build/{p-88a7d660.entry.js → p-b47a18b8.entry.js} +2 -2
  658. package/{dist/ontario-design-system-components/p-ace3dc5e.entry.js → www/build/p-b7ea81d2.entry.js} +2 -2
  659. package/www/build/{p-2f10d76b.entry.js → p-b96cbcc5.entry.js} +13 -13
  660. package/www/build/{p-49c2486a.entry.js → p-b9a60843.entry.js} +2 -2
  661. package/www/build/{p-d25eeba1.entry.js → p-bf53ed44.entry.js} +2 -2
  662. package/{dist/ontario-design-system-components/p-a3b4779c.entry.js → www/build/p-c30623c7.entry.js} +2 -2
  663. package/www/build/{p-e94f4595.entry.js → p-c9cdcee1.entry.js} +2 -2
  664. package/{dist/ontario-design-system-components/p-82589b3a.entry.js → www/build/p-cc3e3d4c.entry.js} +13 -13
  665. package/{dist/ontario-design-system-components/p-9548d3a8.entry.js → www/build/p-cca22349.entry.js} +2 -2
  666. package/www/build/{p-ba78db75.entry.js → p-cfbaaed2.entry.js} +2 -2
  667. package/www/build/{p-b4bd86d3.entry.js → p-d340442c.entry.js} +2 -2
  668. package/{dist/ontario-design-system-components/p-89b6b512.entry.js → www/build/p-d40a8f30.entry.js} +2 -2
  669. package/www/build/{p-6c70f7b2.entry.js → p-d4dfdd88.entry.js} +2 -2
  670. package/www/build/{p-cb393765.entry.js → p-d7a79820.entry.js} +2 -2
  671. package/{dist/ontario-design-system-components/p-90b478e3.entry.js → www/build/p-dba8a3d4.entry.js} +2 -2
  672. package/www/build/{p-b491241d.entry.js → p-ded78746.entry.js} +2 -2
  673. package/www/build/{p-c586ad7a.entry.js → p-deeb4109.entry.js} +2 -2
  674. package/{dist/ontario-design-system-components/p-a93c0de9.entry.js → www/build/p-df1fbb93.entry.js} +2 -2
  675. package/www/build/{p-479a4e11.entry.js → p-df3ae0a8.entry.js} +2 -2
  676. package/{dist/ontario-design-system-components/p-d52d766f.entry.js → www/build/p-e076287c.entry.js} +2 -2
  677. package/www/build/{p-cab46732.entry.js → p-e3699001.entry.js} +7 -7
  678. package/www/build/{p-15fe1397.entry.js → p-e558a0c3.entry.js} +2 -2
  679. package/{dist/ontario-design-system-components/p-649cdc72.entry.js → www/build/p-e7511cdf.entry.js} +2 -2
  680. package/{dist/ontario-design-system-components/p-27549f53.entry.js → www/build/p-e8d91fb5.entry.js} +2 -2
  681. package/www/build/{p-f470c076.entry.js → p-f15c44b6.entry.js} +2 -2
  682. package/www/build/{p-44eb14b2.entry.js → p-f4864f2d.entry.js} +2 -2
  683. package/www/build/{p-dc2914fb.entry.js → p-f5a300a4.entry.js} +2 -2
  684. package/{dist/ontario-design-system-components/p-f0c9e4f7.entry.js → www/build/p-fc8177ed.entry.js} +13 -13
  685. package/{dist/ontario-design-system-components/p-98b5c2dc.entry.js → www/build/p-fe2f2364.entry.js} +2 -2
  686. package/{dist/ontario-design-system-components/p-c029b6bb.entry.js → www/build/p-ff1b397e.entry.js} +7 -7
  687. package/www/index.html +3 -3
  688. package/dist/cjs/index-DB72lIKj.js.map +0 -1
  689. package/dist/esm/index-DMZw5oVx.js.map +0 -1
  690. package/dist/ontario-design-system-components/p-DMZw5oVx.js.map +0 -1
  691. package/www/build/p-DMZw5oVx.js.map +0 -1
  692. /package/dist/ontario-design-system-components/{p-9c2b998d.entry.js.map → p-0164666e.entry.js.map} +0 -0
  693. /package/dist/ontario-design-system-components/{p-69c634db.entry.js.map → p-06397814.entry.js.map} +0 -0
  694. /package/dist/ontario-design-system-components/{p-95e9eb2d.entry.js.map → p-073230c2.entry.js.map} +0 -0
  695. /package/dist/ontario-design-system-components/{p-03ce0e4f.entry.js.map → p-0b4f9ec0.entry.js.map} +0 -0
  696. /package/dist/ontario-design-system-components/{p-fceb57c1.entry.js.map → p-0dd3dffd.entry.js.map} +0 -0
  697. /package/dist/ontario-design-system-components/{p-68f9d7d2.entry.js.map → p-11d753b7.entry.js.map} +0 -0
  698. /package/dist/ontario-design-system-components/{p-2a873dd9.entry.js.map → p-12f0f2b4.entry.js.map} +0 -0
  699. /package/dist/ontario-design-system-components/{p-6554ce67.entry.js.map → p-15df0107.entry.js.map} +0 -0
  700. /package/dist/ontario-design-system-components/{p-f44c7aea.entry.js.map → p-17407497.entry.js.map} +0 -0
  701. /package/dist/ontario-design-system-components/{p-1f5f95ee.entry.js.map → p-19c27012.entry.js.map} +0 -0
  702. /package/dist/ontario-design-system-components/{p-6e6b81c0.entry.js.map → p-1a658564.entry.js.map} +0 -0
  703. /package/dist/ontario-design-system-components/{p-712d4b56.entry.js.map → p-1b13bdbb.entry.js.map} +0 -0
  704. /package/dist/ontario-design-system-components/{p-e4442c85.entry.js.map → p-1b6c3d61.entry.js.map} +0 -0
  705. /package/dist/ontario-design-system-components/{p-cc0f4a69.entry.js.map → p-201594dc.entry.js.map} +0 -0
  706. /package/dist/ontario-design-system-components/{p-3ae00fd2.entry.js.map → p-224ac275.entry.js.map} +0 -0
  707. /package/dist/ontario-design-system-components/{p-60599895.entry.js.map → p-2308cab7.entry.js.map} +0 -0
  708. /package/dist/ontario-design-system-components/{p-cdc7b103.entry.js.map → p-2341df54.entry.js.map} +0 -0
  709. /package/dist/ontario-design-system-components/{p-49302510.entry.js.map → p-2a365fec.entry.js.map} +0 -0
  710. /package/dist/ontario-design-system-components/{p-dded4508.entry.js.map → p-2e845374.entry.js.map} +0 -0
  711. /package/dist/ontario-design-system-components/{p-2cd49ffd.entry.js.map → p-2ed7f164.entry.js.map} +0 -0
  712. /package/dist/ontario-design-system-components/{p-ec53c132.entry.js.map → p-2ef0057e.entry.js.map} +0 -0
  713. /package/dist/ontario-design-system-components/{p-46f066be.entry.js.map → p-3459dfba.entry.js.map} +0 -0
  714. /package/dist/ontario-design-system-components/{p-d464fe1c.entry.js.map → p-399b16d4.entry.js.map} +0 -0
  715. /package/dist/ontario-design-system-components/{p-76630ce4.entry.js.map → p-3cb71072.entry.js.map} +0 -0
  716. /package/dist/ontario-design-system-components/{p-446bc22e.entry.js.map → p-40771f5b.entry.js.map} +0 -0
  717. /package/dist/ontario-design-system-components/{p-a352d9e8.entry.js.map → p-4366f704.entry.js.map} +0 -0
  718. /package/dist/ontario-design-system-components/{p-c5ac4772.entry.js.map → p-43734e72.entry.js.map} +0 -0
  719. /package/dist/ontario-design-system-components/{p-0665f5ae.entry.js.map → p-4622b378.entry.js.map} +0 -0
  720. /package/dist/ontario-design-system-components/{p-a3261401.entry.js.map → p-4e1ca81b.entry.js.map} +0 -0
  721. /package/dist/ontario-design-system-components/{p-94bebac1.entry.js.map → p-5257d724.entry.js.map} +0 -0
  722. /package/dist/ontario-design-system-components/{p-1e4cd98c.entry.js.map → p-55002351.entry.js.map} +0 -0
  723. /package/dist/ontario-design-system-components/{p-f79019d2.entry.js.map → p-59b2a51d.entry.js.map} +0 -0
  724. /package/dist/ontario-design-system-components/{p-3289dedb.entry.js.map → p-59f23a25.entry.js.map} +0 -0
  725. /package/dist/ontario-design-system-components/{p-7aa141a1.entry.js.map → p-5ef3b2cc.entry.js.map} +0 -0
  726. /package/dist/ontario-design-system-components/{p-f549e195.entry.js.map → p-5fa71c0d.entry.js.map} +0 -0
  727. /package/dist/ontario-design-system-components/{p-8d29cf15.entry.js.map → p-61612d3e.entry.js.map} +0 -0
  728. /package/dist/ontario-design-system-components/{p-f6b59189.entry.js.map → p-66bf6e42.entry.js.map} +0 -0
  729. /package/dist/ontario-design-system-components/{p-f3382275.entry.js.map → p-66c93663.entry.js.map} +0 -0
  730. /package/dist/ontario-design-system-components/{p-fafd9d3d.entry.js.map → p-66f53f37.entry.js.map} +0 -0
  731. /package/dist/ontario-design-system-components/{p-f2972261.entry.js.map → p-696a1b00.entry.js.map} +0 -0
  732. /package/dist/ontario-design-system-components/{p-85128abf.entry.js.map → p-6e1b8a34.entry.js.map} +0 -0
  733. /package/dist/ontario-design-system-components/{p-a87667e9.entry.js.map → p-73a29c94.entry.js.map} +0 -0
  734. /package/dist/ontario-design-system-components/{p-31c88438.entry.js.map → p-76a2f0c7.entry.js.map} +0 -0
  735. /package/dist/ontario-design-system-components/{p-a06d65b1.entry.js.map → p-7818d8a2.entry.js.map} +0 -0
  736. /package/dist/ontario-design-system-components/{p-c629473c.entry.js.map → p-799e9674.entry.js.map} +0 -0
  737. /package/dist/ontario-design-system-components/{p-3e5affb9.entry.js.map → p-7e7c7dd2.entry.js.map} +0 -0
  738. /package/dist/ontario-design-system-components/{p-b5bc89c2.entry.js.map → p-805cdde0.entry.js.map} +0 -0
  739. /package/dist/ontario-design-system-components/{p-9fab3d9c.entry.js.map → p-83127110.entry.js.map} +0 -0
  740. /package/dist/ontario-design-system-components/{p-07b86c19.entry.js.map → p-84bff712.entry.js.map} +0 -0
  741. /package/dist/ontario-design-system-components/{p-7ec8da45.entry.js.map → p-85f4e413.entry.js.map} +0 -0
  742. /package/dist/ontario-design-system-components/{p-e81e179d.entry.js.map → p-8788910b.entry.js.map} +0 -0
  743. /package/dist/ontario-design-system-components/{p-a28f26cb.entry.js.map → p-8fccb34c.entry.js.map} +0 -0
  744. /package/dist/ontario-design-system-components/{p-fb713995.entry.js.map → p-9450f10f.entry.js.map} +0 -0
  745. /package/dist/ontario-design-system-components/{p-028c86ea.entry.js.map → p-95d2c69f.entry.js.map} +0 -0
  746. /package/dist/ontario-design-system-components/{p-db91a1bf.entry.js.map → p-9ebd9d9c.entry.js.map} +0 -0
  747. /package/dist/ontario-design-system-components/{p-2cfa9325.entry.js.map → p-a1171a59.entry.js.map} +0 -0
  748. /package/dist/ontario-design-system-components/{p-2cd26474.entry.js.map → p-a4448b11.entry.js.map} +0 -0
  749. /package/dist/ontario-design-system-components/{p-d0ca1fc8.entry.js.map → p-a528a1ca.entry.js.map} +0 -0
  750. /package/dist/ontario-design-system-components/{p-ee74fbc6.entry.js.map → p-a9216eae.entry.js.map} +0 -0
  751. /package/dist/ontario-design-system-components/{p-8dcb5821.entry.js.map → p-a9c103cf.entry.js.map} +0 -0
  752. /package/dist/ontario-design-system-components/{p-79cf7e05.entry.js.map → p-aab543f6.entry.js.map} +0 -0
  753. /package/dist/ontario-design-system-components/{p-f73e74d9.entry.js.map → p-aed58958.entry.js.map} +0 -0
  754. /package/dist/ontario-design-system-components/{p-3e722569.entry.js.map → p-af452b01.entry.js.map} +0 -0
  755. /package/dist/ontario-design-system-components/{p-6612cf3a.entry.js.map → p-af865300.entry.js.map} +0 -0
  756. /package/dist/ontario-design-system-components/{p-d47abbea.entry.js.map → p-b06f6e12.entry.js.map} +0 -0
  757. /package/dist/ontario-design-system-components/{p-6144ee55.entry.js.map → p-b1c01063.entry.js.map} +0 -0
  758. /package/dist/ontario-design-system-components/{p-88a7d660.entry.js.map → p-b47a18b8.entry.js.map} +0 -0
  759. /package/dist/ontario-design-system-components/{p-ace3dc5e.entry.js.map → p-b7ea81d2.entry.js.map} +0 -0
  760. /package/dist/ontario-design-system-components/{p-2f10d76b.entry.js.map → p-b96cbcc5.entry.js.map} +0 -0
  761. /package/dist/ontario-design-system-components/{p-49c2486a.entry.js.map → p-b9a60843.entry.js.map} +0 -0
  762. /package/dist/ontario-design-system-components/{p-d25eeba1.entry.js.map → p-bf53ed44.entry.js.map} +0 -0
  763. /package/dist/ontario-design-system-components/{p-a3b4779c.entry.js.map → p-c30623c7.entry.js.map} +0 -0
  764. /package/dist/ontario-design-system-components/{p-e94f4595.entry.js.map → p-c9cdcee1.entry.js.map} +0 -0
  765. /package/dist/ontario-design-system-components/{p-82589b3a.entry.js.map → p-cc3e3d4c.entry.js.map} +0 -0
  766. /package/dist/ontario-design-system-components/{p-9548d3a8.entry.js.map → p-cca22349.entry.js.map} +0 -0
  767. /package/dist/ontario-design-system-components/{p-ba78db75.entry.js.map → p-cfbaaed2.entry.js.map} +0 -0
  768. /package/dist/ontario-design-system-components/{p-b4bd86d3.entry.js.map → p-d340442c.entry.js.map} +0 -0
  769. /package/dist/ontario-design-system-components/{p-89b6b512.entry.js.map → p-d40a8f30.entry.js.map} +0 -0
  770. /package/dist/ontario-design-system-components/{p-6c70f7b2.entry.js.map → p-d4dfdd88.entry.js.map} +0 -0
  771. /package/dist/ontario-design-system-components/{p-cb393765.entry.js.map → p-d7a79820.entry.js.map} +0 -0
  772. /package/dist/ontario-design-system-components/{p-90b478e3.entry.js.map → p-dba8a3d4.entry.js.map} +0 -0
  773. /package/dist/ontario-design-system-components/{p-b491241d.entry.js.map → p-ded78746.entry.js.map} +0 -0
  774. /package/dist/ontario-design-system-components/{p-c586ad7a.entry.js.map → p-deeb4109.entry.js.map} +0 -0
  775. /package/dist/ontario-design-system-components/{p-a93c0de9.entry.js.map → p-df1fbb93.entry.js.map} +0 -0
  776. /package/dist/ontario-design-system-components/{p-479a4e11.entry.js.map → p-df3ae0a8.entry.js.map} +0 -0
  777. /package/dist/ontario-design-system-components/{p-d52d766f.entry.js.map → p-e076287c.entry.js.map} +0 -0
  778. /package/dist/ontario-design-system-components/{p-cab46732.entry.js.map → p-e3699001.entry.js.map} +0 -0
  779. /package/dist/ontario-design-system-components/{p-15fe1397.entry.js.map → p-e558a0c3.entry.js.map} +0 -0
  780. /package/dist/ontario-design-system-components/{p-649cdc72.entry.js.map → p-e7511cdf.entry.js.map} +0 -0
  781. /package/dist/ontario-design-system-components/{p-27549f53.entry.js.map → p-e8d91fb5.entry.js.map} +0 -0
  782. /package/dist/ontario-design-system-components/{p-f470c076.entry.js.map → p-f15c44b6.entry.js.map} +0 -0
  783. /package/dist/ontario-design-system-components/{p-44eb14b2.entry.js.map → p-f4864f2d.entry.js.map} +0 -0
  784. /package/dist/ontario-design-system-components/{p-dc2914fb.entry.js.map → p-f5a300a4.entry.js.map} +0 -0
  785. /package/dist/ontario-design-system-components/{p-f0c9e4f7.entry.js.map → p-fc8177ed.entry.js.map} +0 -0
  786. /package/dist/ontario-design-system-components/{p-98b5c2dc.entry.js.map → p-fe2f2364.entry.js.map} +0 -0
  787. /package/dist/ontario-design-system-components/{p-c029b6bb.entry.js.map → p-ff1b397e.entry.js.map} +0 -0
  788. /package/www/build/{p-9c2b998d.entry.js.map → p-0164666e.entry.js.map} +0 -0
  789. /package/www/build/{p-69c634db.entry.js.map → p-06397814.entry.js.map} +0 -0
  790. /package/www/build/{p-95e9eb2d.entry.js.map → p-073230c2.entry.js.map} +0 -0
  791. /package/www/build/{p-03ce0e4f.entry.js.map → p-0b4f9ec0.entry.js.map} +0 -0
  792. /package/www/build/{p-fceb57c1.entry.js.map → p-0dd3dffd.entry.js.map} +0 -0
  793. /package/www/build/{p-68f9d7d2.entry.js.map → p-11d753b7.entry.js.map} +0 -0
  794. /package/www/build/{p-2a873dd9.entry.js.map → p-12f0f2b4.entry.js.map} +0 -0
  795. /package/www/build/{p-6554ce67.entry.js.map → p-15df0107.entry.js.map} +0 -0
  796. /package/www/build/{p-f44c7aea.entry.js.map → p-17407497.entry.js.map} +0 -0
  797. /package/www/build/{p-1f5f95ee.entry.js.map → p-19c27012.entry.js.map} +0 -0
  798. /package/www/build/{p-6e6b81c0.entry.js.map → p-1a658564.entry.js.map} +0 -0
  799. /package/www/build/{p-712d4b56.entry.js.map → p-1b13bdbb.entry.js.map} +0 -0
  800. /package/www/build/{p-e4442c85.entry.js.map → p-1b6c3d61.entry.js.map} +0 -0
  801. /package/www/build/{p-cc0f4a69.entry.js.map → p-201594dc.entry.js.map} +0 -0
  802. /package/www/build/{p-3ae00fd2.entry.js.map → p-224ac275.entry.js.map} +0 -0
  803. /package/www/build/{p-60599895.entry.js.map → p-2308cab7.entry.js.map} +0 -0
  804. /package/www/build/{p-cdc7b103.entry.js.map → p-2341df54.entry.js.map} +0 -0
  805. /package/www/build/{p-49302510.entry.js.map → p-2a365fec.entry.js.map} +0 -0
  806. /package/www/build/{p-dded4508.entry.js.map → p-2e845374.entry.js.map} +0 -0
  807. /package/www/build/{p-2cd49ffd.entry.js.map → p-2ed7f164.entry.js.map} +0 -0
  808. /package/www/build/{p-ec53c132.entry.js.map → p-2ef0057e.entry.js.map} +0 -0
  809. /package/www/build/{p-46f066be.entry.js.map → p-3459dfba.entry.js.map} +0 -0
  810. /package/www/build/{p-d464fe1c.entry.js.map → p-399b16d4.entry.js.map} +0 -0
  811. /package/www/build/{p-76630ce4.entry.js.map → p-3cb71072.entry.js.map} +0 -0
  812. /package/www/build/{p-446bc22e.entry.js.map → p-40771f5b.entry.js.map} +0 -0
  813. /package/www/build/{p-a352d9e8.entry.js.map → p-4366f704.entry.js.map} +0 -0
  814. /package/www/build/{p-c5ac4772.entry.js.map → p-43734e72.entry.js.map} +0 -0
  815. /package/www/build/{p-0665f5ae.entry.js.map → p-4622b378.entry.js.map} +0 -0
  816. /package/www/build/{p-a3261401.entry.js.map → p-4e1ca81b.entry.js.map} +0 -0
  817. /package/www/build/{p-94bebac1.entry.js.map → p-5257d724.entry.js.map} +0 -0
  818. /package/www/build/{p-1e4cd98c.entry.js.map → p-55002351.entry.js.map} +0 -0
  819. /package/www/build/{p-f79019d2.entry.js.map → p-59b2a51d.entry.js.map} +0 -0
  820. /package/www/build/{p-3289dedb.entry.js.map → p-59f23a25.entry.js.map} +0 -0
  821. /package/www/build/{p-7aa141a1.entry.js.map → p-5ef3b2cc.entry.js.map} +0 -0
  822. /package/www/build/{p-f549e195.entry.js.map → p-5fa71c0d.entry.js.map} +0 -0
  823. /package/www/build/{p-8d29cf15.entry.js.map → p-61612d3e.entry.js.map} +0 -0
  824. /package/www/build/{p-f6b59189.entry.js.map → p-66bf6e42.entry.js.map} +0 -0
  825. /package/www/build/{p-f3382275.entry.js.map → p-66c93663.entry.js.map} +0 -0
  826. /package/www/build/{p-fafd9d3d.entry.js.map → p-66f53f37.entry.js.map} +0 -0
  827. /package/www/build/{p-f2972261.entry.js.map → p-696a1b00.entry.js.map} +0 -0
  828. /package/www/build/{p-85128abf.entry.js.map → p-6e1b8a34.entry.js.map} +0 -0
  829. /package/www/build/{p-a87667e9.entry.js.map → p-73a29c94.entry.js.map} +0 -0
  830. /package/www/build/{p-31c88438.entry.js.map → p-76a2f0c7.entry.js.map} +0 -0
  831. /package/www/build/{p-a06d65b1.entry.js.map → p-7818d8a2.entry.js.map} +0 -0
  832. /package/www/build/{p-c629473c.entry.js.map → p-799e9674.entry.js.map} +0 -0
  833. /package/www/build/{p-3e5affb9.entry.js.map → p-7e7c7dd2.entry.js.map} +0 -0
  834. /package/www/build/{p-b5bc89c2.entry.js.map → p-805cdde0.entry.js.map} +0 -0
  835. /package/www/build/{p-9fab3d9c.entry.js.map → p-83127110.entry.js.map} +0 -0
  836. /package/www/build/{p-07b86c19.entry.js.map → p-84bff712.entry.js.map} +0 -0
  837. /package/www/build/{p-7ec8da45.entry.js.map → p-85f4e413.entry.js.map} +0 -0
  838. /package/www/build/{p-e81e179d.entry.js.map → p-8788910b.entry.js.map} +0 -0
  839. /package/www/build/{p-a28f26cb.entry.js.map → p-8fccb34c.entry.js.map} +0 -0
  840. /package/www/build/{p-fb713995.entry.js.map → p-9450f10f.entry.js.map} +0 -0
  841. /package/www/build/{p-028c86ea.entry.js.map → p-95d2c69f.entry.js.map} +0 -0
  842. /package/www/build/{p-db91a1bf.entry.js.map → p-9ebd9d9c.entry.js.map} +0 -0
  843. /package/www/build/{p-2cfa9325.entry.js.map → p-a1171a59.entry.js.map} +0 -0
  844. /package/www/build/{p-2cd26474.entry.js.map → p-a4448b11.entry.js.map} +0 -0
  845. /package/www/build/{p-d0ca1fc8.entry.js.map → p-a528a1ca.entry.js.map} +0 -0
  846. /package/www/build/{p-ee74fbc6.entry.js.map → p-a9216eae.entry.js.map} +0 -0
  847. /package/www/build/{p-8dcb5821.entry.js.map → p-a9c103cf.entry.js.map} +0 -0
  848. /package/www/build/{p-79cf7e05.entry.js.map → p-aab543f6.entry.js.map} +0 -0
  849. /package/www/build/{p-f73e74d9.entry.js.map → p-aed58958.entry.js.map} +0 -0
  850. /package/www/build/{p-3e722569.entry.js.map → p-af452b01.entry.js.map} +0 -0
  851. /package/www/build/{p-6612cf3a.entry.js.map → p-af865300.entry.js.map} +0 -0
  852. /package/www/build/{p-d47abbea.entry.js.map → p-b06f6e12.entry.js.map} +0 -0
  853. /package/www/build/{p-6144ee55.entry.js.map → p-b1c01063.entry.js.map} +0 -0
  854. /package/www/build/{p-88a7d660.entry.js.map → p-b47a18b8.entry.js.map} +0 -0
  855. /package/www/build/{p-ace3dc5e.entry.js.map → p-b7ea81d2.entry.js.map} +0 -0
  856. /package/www/build/{p-2f10d76b.entry.js.map → p-b96cbcc5.entry.js.map} +0 -0
  857. /package/www/build/{p-49c2486a.entry.js.map → p-b9a60843.entry.js.map} +0 -0
  858. /package/www/build/{p-d25eeba1.entry.js.map → p-bf53ed44.entry.js.map} +0 -0
  859. /package/www/build/{p-a3b4779c.entry.js.map → p-c30623c7.entry.js.map} +0 -0
  860. /package/www/build/{p-e94f4595.entry.js.map → p-c9cdcee1.entry.js.map} +0 -0
  861. /package/www/build/{p-82589b3a.entry.js.map → p-cc3e3d4c.entry.js.map} +0 -0
  862. /package/www/build/{p-9548d3a8.entry.js.map → p-cca22349.entry.js.map} +0 -0
  863. /package/www/build/{p-ba78db75.entry.js.map → p-cfbaaed2.entry.js.map} +0 -0
  864. /package/www/build/{p-b4bd86d3.entry.js.map → p-d340442c.entry.js.map} +0 -0
  865. /package/www/build/{p-89b6b512.entry.js.map → p-d40a8f30.entry.js.map} +0 -0
  866. /package/www/build/{p-6c70f7b2.entry.js.map → p-d4dfdd88.entry.js.map} +0 -0
  867. /package/www/build/{p-cb393765.entry.js.map → p-d7a79820.entry.js.map} +0 -0
  868. /package/www/build/{p-90b478e3.entry.js.map → p-dba8a3d4.entry.js.map} +0 -0
  869. /package/www/build/{p-b491241d.entry.js.map → p-ded78746.entry.js.map} +0 -0
  870. /package/www/build/{p-c586ad7a.entry.js.map → p-deeb4109.entry.js.map} +0 -0
  871. /package/www/build/{p-a93c0de9.entry.js.map → p-df1fbb93.entry.js.map} +0 -0
  872. /package/www/build/{p-479a4e11.entry.js.map → p-df3ae0a8.entry.js.map} +0 -0
  873. /package/www/build/{p-d52d766f.entry.js.map → p-e076287c.entry.js.map} +0 -0
  874. /package/www/build/{p-cab46732.entry.js.map → p-e3699001.entry.js.map} +0 -0
  875. /package/www/build/{p-15fe1397.entry.js.map → p-e558a0c3.entry.js.map} +0 -0
  876. /package/www/build/{p-649cdc72.entry.js.map → p-e7511cdf.entry.js.map} +0 -0
  877. /package/www/build/{p-27549f53.entry.js.map → p-e8d91fb5.entry.js.map} +0 -0
  878. /package/www/build/{p-f470c076.entry.js.map → p-f15c44b6.entry.js.map} +0 -0
  879. /package/www/build/{p-44eb14b2.entry.js.map → p-f4864f2d.entry.js.map} +0 -0
  880. /package/www/build/{p-dc2914fb.entry.js.map → p-f5a300a4.entry.js.map} +0 -0
  881. /package/www/build/{p-f0c9e4f7.entry.js.map → p-fc8177ed.entry.js.map} +0 -0
  882. /package/www/build/{p-98b5c2dc.entry.js.map → p-fe2f2364.entry.js.map} +0 -0
  883. /package/www/build/{p-c029b6bb.entry.js.map → p-ff1b397e.entry.js.map} +0 -0
@@ -1,14 +1,14 @@
1
- import { p as proxyCustomElement, H, h } from './index.js';
2
- import { b as validateLanguage } from './p-CNqFEifG.js';
3
- import { t as translations } from './p-DgMhpSmi.js';
4
- import { d as defineCustomElement$3 } from './p-DyZbYpqr.js';
5
- import { d as defineCustomElement$2 } from './p-pYZtHvSO.js';
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { b as validateLanguage } from './validation-functions.js';
3
+ import { t as translations } from './global.i18n.js';
4
+ import { d as defineCustomElement$3 } from './ontario-icon-chevron-down2.js';
5
+ import { d as defineCustomElement$2 } from './ontario-icon-chevron-up2.js';
6
6
 
7
7
  const ontarioAccordionCss =
8
8
  '.ontario-accordion__button--expand-all:focus,.ontario-accordion__button:focus{box-shadow:0 0 0 4px #009ADB;outline:4px solid transparent;transition:box-shadow 0.1s ease-in-out}.ontario-accordion__button{font-style:normal;font-weight:700;text-rendering:optimizeLegibility;margin-bottom:1rem;font-feature-settings:normal;font-family:"Raleway Modified", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif}.ontario-accordion__button{font-size:1.25rem;letter-spacing:0.03rem;line-height:1.5;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){.ontario-accordion__button{font-size:1.5rem;letter-spacing:0.0313rem;line-height:1.5}}.ontario-accordions__container{max-width:48rem;width:100%}.ontario-accordion{border-top:2px solid #cccccc}.ontario-accordion:last-of-type{border-bottom:2px solid #cccccc}.ontario-accordion__controls{display:flex;justify-content:flex-end}.ontario-accordion__button,.ontario-accordion__button--expand-all{background:none;border:0;box-sizing:border-box}.ontario-accordion__button--expand-all{font-size:1rem;margin-bottom:0.5rem;color:#0066CC;cursor:pointer}.ontario-accordion__button--expand-all:focus,.ontario-accordion__button--expand-all:hover{color:#00478F;text-decoration:underline}.ontario-accordion__button--expand-all:active{color:#002142;text-decoration:underline}.ontario-accordion--expand-close-all{display:none}.ontario-accordion__controls--active .ontario-accordion--expand-close-all{display:block}.ontario-accordion__controls--active .ontario-accordion--expand-open-all{display:none}.ontario-accordion__button{display:flex;align-items:flex-start;color:#0066CC;cursor:pointer;padding:0.75rem 0.5rem;text-align:left;width:100%;margin-bottom:0}.ontario-accordion__button .ontario-accordion__button-icon--close,.ontario-accordion__button .ontario-accordion__button-icon--open{margin-right:0.5rem}.ontario-accordion__button .ontario-icon{width:1.75rem;height:1.75rem}.ontario-accordion__button:focus,.ontario-accordion__button:hover{background-color:#f2f2f2;color:#00478F}.ontario-accordion__button:focus{box-shadow:0 0 0 4px #009ADB inset}.ontario-accordion__button:active{color:#002142}.ontario-accordion__content{display:none;padding:0.75rem 0.75rem 2rem 0.75rem;margin-left:0}@media screen and (min-width: 40em){.ontario-accordion__content{margin-left:2rem}}.ontario-accordion__content *{margin-top:0;max-width:48rem;width:100%}.ontario-accordion__content ul,.ontario-accordion__content ol{max-width:calc(100% - 3rem)}.ontario-accordion__content>:last-child{margin-bottom:0}.ontario-accordion__button-icon--close,.ontario-expander--active .ontario-accordion__button-icon--open{display:none}.ontario-expander--active~.ontario-accordion__content,.ontario-expander--active .ontario-accordion__button-icon--close{display:block}.ontario-accordions__container .ontario-h1,.ontario-accordions__container .ontario-h2,.ontario-accordions__container .ontario-h3,.ontario-accordions__container .ontario-h4,.ontario-accordions__container .ontario-h5,.ontario-accordions__container p,.ontario-accordions__container h1,.ontario-accordions__container h2,.ontario-accordions__container h3,.ontario-accordions__container h4,.ontario-accordions__container h5,.ontario-accordions__container h6{margin:0}';
9
9
 
10
10
  const OntarioAccordion$1 = /*@__PURE__*/ proxyCustomElement(
11
- class OntarioAccordion extends H {
11
+ class OntarioAccordion extends HTMLElement {
12
12
  constructor() {
13
13
  super();
14
14
  this.__registerHost();
@@ -1 +1 @@
1
- {"file":"ontario-accordion.js","mappings":";;;;;;AAAA,MAAM,mBAAmB,GAAG,wrGAAwrG;;MCYvsGA,kBAAgB,iBAAAC,kBAAA,CAAA,MAAA,gBAAA,SAAAC,CAAA,CAAA;;;;;;;AAG5B;;;;AAIG;AACK,IAAA,IAAI;AAEZ;;;;;;;;;;;;;;;AAeG;AACK,IAAA,oBAAoB;AAE5B;;;;;;;;;;;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;;;;;;;;","names":["OntarioAccordion","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/ontario-accordion/ontario-accordion.scss?tag=ontario-accordion&encapsulation=shadow","src/components/ontario-accordion/ontario-accordion.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tplaceholders;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/typography.variables' as typography;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-sizes.variables' as fontSizes;\n\n.ontario-accordions__container {\n\tmax-width: globalVariables.$standard-width;\n\twidth: globalVariables.$full-width;\n}\n\n.ontario-accordion {\n\tborder-top: 2px solid colours.$ontario-greyscale-20;\n\n\t&:last-of-type {\n\t\tborder-bottom: 2px solid colours.$ontario-greyscale-20;\n\t}\n}\n\n.ontario-accordion__controls {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n}\n\n.ontario-accordion__button,\n.ontario-accordion__button--expand-all {\n\tbackground: none;\n\tborder: 0;\n\tbox-sizing: border-box;\n}\n\n.ontario-accordion__button--expand-all {\n\tfont-size: fontSizes.$ontario-font-size-standard-body-text;\n\tmargin-bottom: spacing.$spacing-2;\n\tcolor: colours.$ontario-colour-link;\n\tcursor: pointer;\n\n\t&:focus,\n\t&:hover {\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t\ttext-decoration: underline;\n\t}\n\n\t&:focus {\n\t\t@extend %ontario-focus;\n\t}\n\n\t&:active {\n\t\tcolor: colours.$ontario-colour-link--active;\n\t\ttext-decoration: underline;\n\t}\n}\n\n.ontario-accordion--expand-close-all {\n\tdisplay: none;\n}\n\n.ontario-accordion__controls--active {\n\t.ontario-accordion--expand-close-all {\n\t\tdisplay: block;\n\t}\n\n\t.ontario-accordion--expand-open-all {\n\t\tdisplay: none;\n\t}\n}\n\n.ontario-accordion__button {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tcolor: colours.$ontario-colour-link;\n\tcursor: pointer;\n\tpadding: spacing.$spacing-3 spacing.$spacing-2;\n\ttext-align: left;\n\twidth: globalVariables.$full-width;\n\t@extend %h4-styles;\n\tmargin-bottom: spacing.$spacing-0;\n\n\t.ontario-accordion__button-icon--close,\n\t.ontario-accordion__button-icon--open {\n\t\tmargin-right: spacing.$spacing-2;\n\t}\n\n\t.ontario-icon {\n\t\twidth: 1.75rem;\n\t\theight: 1.75rem;\n\t}\n\n\t&:focus,\n\t&:hover {\n\t\tbackground-color: colours.$ontario-greyscale-5;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t}\n\n\t&:focus {\n\t\t@extend %ontario-focus;\n\t\tbox-shadow: 0 0 0 4px colours.$ontario-colour-focus inset;\n\t}\n\n\t&:active {\n\t\tcolor: colours.$ontario-colour-link--active;\n\t}\n}\n\n.ontario-accordion__content {\n\tdisplay: none;\n\tpadding: spacing.$spacing-3 spacing.$spacing-3 spacing.$spacing-6 spacing.$spacing-3;\n\tmargin-left: spacing.$spacing-0;\n\n\t@media screen and (min-width: breakpoints.$small-breakpoint) {\n\t\tmargin-left: spacing.$spacing-6;\n\t}\n\n\t* {\n\t\tmargin-top: spacing.$spacing-0;\n\t\tmax-width: globalVariables.$standard-width;\n\t\twidth: globalVariables.$full-width;\n\t}\n\n\tul,\n\tol {\n\t\tmax-width: calc(100% - spacing.$spacing-8);\n\t}\n\n\t& > :last-child {\n\t\tmargin-bottom: spacing.$spacing-0;\n\t}\n}\n\n.ontario-accordion__button-icon--close,\n.ontario-expander--active .ontario-accordion__button-icon--open {\n\tdisplay: none;\n}\n\n.ontario-expander--active ~ .ontario-accordion__content,\n.ontario-expander--active .ontario-accordion__button-icon--close {\n\tdisplay: block;\n}\n\n.ontario-accordions__container {\n\t.ontario-h1,\n\t.ontario-h2,\n\t.ontario-h3,\n\t.ontario-h4,\n\t.ontario-h5,\n\tp,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tmargin: spacing.$spacing-0;\n\t}\n}\n","import { Component, Prop, Element, State, h, Listen, Watch } from '@stencil/core';\nimport { Accordion } from './accordion.interface';\nimport { ExpandCollapseButtonDetails } from './expandCollapseButtonDetails.interface';\nimport { Language } from '../../utils/common/language-types';\nimport { validateLanguage } from '../../utils/validation/validation-functions';\nimport translations from '../../translations/global.i18n.json';\n\n@Component({\n\ttag: 'ontario-accordion',\n\tstyleUrl: 'ontario-accordion.scss',\n\tshadow: true,\n})\nexport class OntarioAccordion {\n\t@Element() host: HTMLElement;\n\n\t/**\n\t * The name of the accordion component.\n\t *\n\t * This is not optional.\n\t */\n\t@Prop() name: string;\n\n\t/**\n\t * Custom Expand/Collapse button text.\n\t *\n\t * @example\n\t * <ontario-accordion\n\t *\t\tname=\"My Accordion\"\n\t *\t\texpand-collapse-button='{\n\t *\t\t\t\"expandAllSectionsLabel\": \"Expand All\",\n\t *\t\t\t\"collapseAllSectionsLabel\": \"Collapse All\"\n\t *\t\t}'\n\t *\t\taccordion-data='[\n\t *\t\t\t{\"label\": \"Accordion 1\", \"content\": [\"Item 1\", \"Item 2\", \"Item 3\"]},\n\t *\t\t\t{\"label\": \"Accordion 2\", \"content\": [\"Item A\", \"Item B\", \"Item C\"]}\n\t *\t\t]'\n\t *\t></ontario-accordion>\n\t */\n\t@Prop() expandCollapseButton?: string | ExpandCollapseButtonDetails;\n\n\t/**\n\t * Used to include individual accordion data for the accordion component.\n\t * This is passed in as an array of objects with key-value pairs.\n\t *\n\t * The `content` is expecting a string, that can either be written as HTML or a just a plain string, depending on the accordionContentType.\n\t *\n\t * @example\n\t * \t<ontario-accordion\n\t *\t\tname=\"My Accordion\"\n\t *\t\taccordion-data='[\n\t *\t\t\t{\"label\": \"Accordion 1\", \"content\": \"This is a string\"},\n\t *\t\t\t{\"label\": \"Accordion 2\", \"accordionContentType\": \"html\", \"content\": \"<ul><li>List A</li><li>List B</li><li>List C</li></ul>\"}\n\t *\t\t]'\n\t *\t></ontario-accordion>\n\t */\n\t@Prop() accordionData: string | Accordion[];\n\n\t/**\n\t * Used to show whether the accordion is opened or closed.\n\t */\n\t@Prop() isOpen: boolean = false;\n\n\t/**\n\t * The language of the component.\n\t * This is used for translations, and is by default set through event listeners checking for a language property from the header. If none are passed, it will default to English.\n\t */\n\t@Prop({ mutable: true }) language?: Language;\n\n\t/**\n\t * This listens for the `setAppLanguage` event sent from the test language toggler when it is is connected to the DOM. It is used for the initial language when the input component loads.\n\t */\n\t@Listen('setAppLanguage', { target: 'window' })\n\thandleSetAppLanguage(event: CustomEvent<Language>) {\n\t\tif (!this.language) {\n\t\t\tthis.language = validateLanguage(event);\n\t\t}\n\t}\n\n\t/**\n\t * Handle the language being toggled from the `<ontario-header>`.\n\t * @param event Event object passed when the event is fired.\n\t */\n\t@Listen('headerLanguageToggled', { target: 'window' })\n\thandleHeaderLanguageToggled(event: CustomEvent<Language>) {\n\t\tthis.language = validateLanguage(event);\n\t}\n\n\t/**\n\t * Store the translation dictionary for use within the component.\n\t */\n\t@State() translations: any = translations;\n\n\t/**\n\t * The label for the expand/collapse button.\n\t * This is internal and udpdated dynamically.\n\t */\n\t@State() private expandCollapseLabel: 'expand' | 'collapse';\n\n\t/**\n\t * Internal state of the expand/collapse label information.\n\t */\n\t@State() private internalExpandCollapseLabelDetails: ExpandCollapseButtonDetails;\n\n\t/**\n\t * Internal state containing the parsed Accordion Data\n\t */\n\t@State() private internalAccordionData: Accordion[] = [];\n\n\t/**\n\t * This state tracks which accordions are open.\n\t */\n\t@State() private openAccordionIndexes: number[] = [];\n\n\t/**\n\t * Parse Accordion data, this is used to handle JSON strings from HTML.\n\t */\n\t@Watch('accordionData')\n\tprivate parseAccordionData() {\n\t\tif (typeof this.accordionData !== 'undefined') {\n\t\t\tthis.internalAccordionData = Array.isArray(this.accordionData)\n\t\t\t\t? this.accordionData\n\t\t\t\t: JSON.parse(this.accordionData);\n\t\t}\n\n\t\t// Initialize the label based on the initial accordion state\n\t\tthis.updateLabel();\n\t}\n\n\t/**\n\t * Parse Expand/Collapse Button Details, this is used to handle JSON strings from HTML.\n\t */\n\t@Watch('expandCollapseButton')\n\tprivate parseExpandCollapseButtonDetails() {\n\t\tif (typeof this.expandCollapseButton !== 'undefined') {\n\t\t\tthis.internalExpandCollapseLabelDetails =\n\t\t\t\ttypeof this.expandCollapseButton === 'string'\n\t\t\t\t\t? JSON.parse(this.expandCollapseButton)\n\t\t\t\t\t: this.expandCollapseButton;\n\t\t}\n\t}\n\n\t// Toggle the accordion state when it's clicked\n\tprivate toggleAccordion(index: number) {\n\t\tif (this.openAccordionIndexes.includes(index)) {\n\t\t\t// If the accordion is already open, close it\n\t\t\tthis.openAccordionIndexes = this.openAccordionIndexes.filter((i) => i !== index);\n\t\t} else {\n\t\t\t// If the accordion is closed, open it\n\t\t\tthis.openAccordionIndexes = [...this.openAccordionIndexes, index];\n\t\t}\n\t\tthis.updateLabel();\n\t}\n\n\t/**\n\t * Toggle all accordions open/close\n\t */\n\tprivate toggleAll() {\n\t\tif (this.openAccordionIndexes.length === this.internalAccordionData.length) {\n\t\t\t// All accordions are open, close all\n\t\t\tthis.openAccordionIndexes = [];\n\t\t} else {\n\t\t\t// At least one accordion is closed, open all\n\t\t\tthis.openAccordionIndexes = this.internalAccordionData.map((_, index) => index);\n\t\t}\n\t\tthis.updateLabel();\n\t}\n\n\t/**\n\t * Update the label based on the current accordion state\n\t */\n\tprivate updateLabel() {\n\t\tconst allOpen = this.internalAccordionData.every((_, index) => this.openAccordionIndexes.includes(index));\n\n\t\tif (allOpen) {\n\t\t\t// All accordions are open, set label to \"Collapse all\"\n\t\t\tthis.expandCollapseLabel = 'collapse';\n\t\t} else {\n\t\t\t// At least one accordion is closed, set label to \"Expand all\"\n\t\t\tthis.expandCollapseLabel = 'expand';\n\t\t}\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.parseAccordionData();\n\t\tthis.parseExpandCollapseButtonDetails();\n\t\tthis.language = validateLanguage(this.language);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div>\n\t\t\t\t<h2>{this.name}</h2>\n\t\t\t\t<div class=\"ontario-accordions__container\">\n\t\t\t\t\t<div class=\"ontario-accordion__controls\">\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\tclass=\"ontario-accordion__button--expand-all\"\n\t\t\t\t\t\t\tonClick={() => this.toggleAll()}\n\t\t\t\t\t\t\taria-expanded={this.openAccordionIndexes.length === this.internalAccordionData.length ? 'true' : 'false'}\n\t\t\t\t\t\t\taria-label={this.internalExpandCollapseLabelDetails?.ariaLabelText}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span class=\"ontario-accordion--expand-open-all\">\n\t\t\t\t\t\t\t\t{this.expandCollapseLabel === 'expand' ? (\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t{this.internalExpandCollapseLabelDetails?.expandAllSectionsLabel ??\n\t\t\t\t\t\t\t\t\t\t\tthis.translations.accordion.expand[`${this.language}`]}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t{this.internalExpandCollapseLabelDetails?.collapseAllSectionsLabel ??\n\t\t\t\t\t\t\t\t\t\t\tthis.translations.accordion.collapse[`${this.language}`]}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.internalAccordionData?.map((accordion, index) => (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass={`ontario-accordion ${this.openAccordionIndexes.includes(index) ? 'open' : ''}`}\n\t\t\t\t\t\t\tkey={`accordion-${index}`}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<h3\n\t\t\t\t\t\t\t\tclass={`ontario-accordion__heading ${\n\t\t\t\t\t\t\t\t\tthis.openAccordionIndexes.includes(index) ? 'ontario-expander--active' : ''\n\t\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\tclass=\"ontario-accordion__button\"\n\t\t\t\t\t\t\t\t\taria-expanded={this.openAccordionIndexes.includes(index) ? 'true' : 'false'}\n\t\t\t\t\t\t\t\t\tdata-toggle=\"ontario-collapse\"\n\t\t\t\t\t\t\t\t\tonClick={() => this.toggleAccordion(index)}\n\t\t\t\t\t\t\t\t\taria-label={accordion.ariaLabelText}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<span class=\"ontario-accordion__button-icon--close\">\n\t\t\t\t\t\t\t\t\t\t<ontario-icon-chevron-up colour=\"blue\"></ontario-icon-chevron-up>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span class=\"ontario-accordion__button-icon--open\">\n\t\t\t\t\t\t\t\t\t\t<ontario-icon-chevron-down colour=\"blue\"></ontario-icon-chevron-down>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t{accordion.label}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t<section\n\t\t\t\t\t\t\t\tclass={`ontario-accordion__content ${\n\t\t\t\t\t\t\t\t\tthis.openAccordionIndexes.includes(index)\n\t\t\t\t\t\t\t\t\t\t? 'ontario-accordion__content--opened'\n\t\t\t\t\t\t\t\t\t\t: 'ontario-accordion__content--closed'\n\t\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\t\taria-hidden={!this.openAccordionIndexes.includes(index)}\n\t\t\t\t\t\t\t\tdata-toggle=\"ontario-expander-content\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{accordion.accordionContentType === 'html' ? (\n\t\t\t\t\t\t\t\t\t<div innerHTML={accordion.content}></div> // Render HTML content\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<div>{accordion.content}</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</section>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"ontario-accordion.js","mappings":";;;;;;AAAA,MAAM,mBAAmB,GAAG,wrGAAwrG;;MCYvsGA,kBAAgB,iBAAAC,kBAAA,CAAA,MAAA,gBAAA,SAAA,WAAA,CAAA;;;;;;;AAG5B;;;;AAIG;AACK,IAAA,IAAI;AAEZ;;;;;;;;;;;;;;;AAeG;AACK,IAAA,oBAAoB;AAE5B;;;;;;;;;;;;;;AAcG;AACK,IAAA,aAAa;AAErB;;AAEG;IACK,MAAM,GAAY,KAAK;AAE/B;;;AAGG;AACsB,IAAA,QAAQ;AAEjC;;AAEG;AAEH,IAAA,oBAAoB,CAAC,KAA4B,EAAA;AAChD,QAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AACnB,YAAA,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,KAAK,CAAC;;;AAIzC;;;AAGG;AAEH,IAAA,2BAA2B,CAAC,KAA4B,EAAA;AACvD,QAAA,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,KAAK,CAAC;;AAGxC;;AAEG;IACM,YAAY,GAAQ,YAAY;AAEzC;;;AAGG;AACc,IAAA,mBAAmB;AAEpC;;AAEG;AACc,IAAA,kCAAkC;AAEnD;;AAEG;IACc,qBAAqB,GAAgB,EAAE;AAExD;;AAEG;IACc,oBAAoB,GAAa,EAAE;AAEpD;;AAEG;IAEK,kBAAkB,GAAA;AACzB,QAAA,IAAI,OAAO,IAAI,CAAC,a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,MAAM,EAAA,CAA6B,CAC/D,EACN,SAAS,CAAC,KAAK,CACR,CACL,EACL,CACC,CAAA,SAAA,EAAA,EAAA,KAAK,EAAE,CAAA,2BAAA,EACN,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,KAAK;AACvC,kBAAE;AACF,kBAAE,oCACJ,CAAA,CAAE,EAAA,aAAA,EACW,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,iBAC3C,0BAA0B,EAAA,EAErC,SAAS,CAAC,oBAAoB,KAAK,MAAM,IACzC,CAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,SAAS,CAAC,OAAO,EAAA,CAAQ;aAEzC,CAAM,CAAA,KAAA,EAAA,IAAA,EAAA,SAAS,CAAC,OAAO,CAAO,CAC9B,CACQ,CACL,CACN,CAAC,CACG,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioAccordion","__stencil_proxyCustomElement"],"sources":["src/components/ontario-accordion/ontario-accordion.scss?tag=ontario-accordion&encapsulation=shadow","src/components/ontario-accordion/ontario-accordion.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tplaceholders;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/typography.variables' as typography;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-sizes.variables' as fontSizes;\n\n.ontario-accordions__container {\n\tmax-width: globalVariables.$standard-width;\n\twidth: globalVariables.$full-width;\n}\n\n.ontario-accordion {\n\tborder-top: 2px solid colours.$ontario-greyscale-20;\n\n\t&:last-of-type {\n\t\tborder-bottom: 2px solid colours.$ontario-greyscale-20;\n\t}\n}\n\n.ontario-accordion__controls {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n}\n\n.ontario-accordion__button,\n.ontario-accordion__button--expand-all {\n\tbackground: none;\n\tborder: 0;\n\tbox-sizing: border-box;\n}\n\n.ontario-accordion__button--expand-all {\n\tfont-size: fontSizes.$ontario-font-size-standard-body-text;\n\tmargin-bottom: spacing.$spacing-2;\n\tcolor: colours.$ontario-colour-link;\n\tcursor: pointer;\n\n\t&:focus,\n\t&:hover {\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t\ttext-decoration: underline;\n\t}\n\n\t&:focus {\n\t\t@extend %ontario-focus;\n\t}\n\n\t&:active {\n\t\tcolor: colours.$ontario-colour-link--active;\n\t\ttext-decoration: underline;\n\t}\n}\n\n.ontario-accordion--expand-close-all {\n\tdisplay: none;\n}\n\n.ontario-accordion__controls--active {\n\t.ontario-accordion--expand-close-all {\n\t\tdisplay: block;\n\t}\n\n\t.ontario-accordion--expand-open-all {\n\t\tdisplay: none;\n\t}\n}\n\n.ontario-accordion__button {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tcolor: colours.$ontario-colour-link;\n\tcursor: pointer;\n\tpadding: spacing.$spacing-3 spacing.$spacing-2;\n\ttext-align: left;\n\twidth: globalVariables.$full-width;\n\t@extend %h4-styles;\n\tmargin-bottom: spacing.$spacing-0;\n\n\t.ontario-accordion__button-icon--close,\n\t.ontario-accordion__button-icon--open {\n\t\tmargin-right: spacing.$spacing-2;\n\t}\n\n\t.ontario-icon {\n\t\twidth: 1.75rem;\n\t\theight: 1.75rem;\n\t}\n\n\t&:focus,\n\t&:hover {\n\t\tbackground-color: colours.$ontario-greyscale-5;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t}\n\n\t&:focus {\n\t\t@extend %ontario-focus;\n\t\tbox-shadow: 0 0 0 4px colours.$ontario-colour-focus inset;\n\t}\n\n\t&:active {\n\t\tcolor: colours.$ontario-colour-link--active;\n\t}\n}\n\n.ontario-accordion__content {\n\tdisplay: none;\n\tpadding: spacing.$spacing-3 spacing.$spacing-3 spacing.$spacing-6 spacing.$spacing-3;\n\tmargin-left: spacing.$spacing-0;\n\n\t@media screen and (min-width: breakpoints.$small-breakpoint) {\n\t\tmargin-left: spacing.$spacing-6;\n\t}\n\n\t* {\n\t\tmargin-top: spacing.$spacing-0;\n\t\tmax-width: globalVariables.$standard-width;\n\t\twidth: globalVariables.$full-width;\n\t}\n\n\tul,\n\tol {\n\t\tmax-width: calc(100% - spacing.$spacing-8);\n\t}\n\n\t& > :last-child {\n\t\tmargin-bottom: spacing.$spacing-0;\n\t}\n}\n\n.ontario-accordion__button-icon--close,\n.ontario-expander--active .ontario-accordion__button-icon--open {\n\tdisplay: none;\n}\n\n.ontario-expander--active ~ .ontario-accordion__content,\n.ontario-expander--active .ontario-accordion__button-icon--close {\n\tdisplay: block;\n}\n\n.ontario-accordions__container {\n\t.ontario-h1,\n\t.ontario-h2,\n\t.ontario-h3,\n\t.ontario-h4,\n\t.ontario-h5,\n\tp,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tmargin: spacing.$spacing-0;\n\t}\n}\n","import { Component, Prop, Element, State, h, Listen, Watch } from '@stencil/core';\nimport { Accordion } from './accordion.interface';\nimport { ExpandCollapseButtonDetails } from './expandCollapseButtonDetails.interface';\nimport { Language } from '../../utils/common/language-types';\nimport { validateLanguage } from '../../utils/validation/validation-functions';\nimport translations from '../../translations/global.i18n.json';\n\n@Component({\n\ttag: 'ontario-accordion',\n\tstyleUrl: 'ontario-accordion.scss',\n\tshadow: true,\n})\nexport class OntarioAccordion {\n\t@Element() host: HTMLElement;\n\n\t/**\n\t * The name of the accordion component.\n\t *\n\t * This is not optional.\n\t */\n\t@Prop() name: string;\n\n\t/**\n\t * Custom Expand/Collapse button text.\n\t *\n\t * @example\n\t * <ontario-accordion\n\t *\t\tname=\"My Accordion\"\n\t *\t\texpand-collapse-button='{\n\t *\t\t\t\"expandAllSectionsLabel\": \"Expand All\",\n\t *\t\t\t\"collapseAllSectionsLabel\": \"Collapse All\"\n\t *\t\t}'\n\t *\t\taccordion-data='[\n\t *\t\t\t{\"label\": \"Accordion 1\", \"content\": [\"Item 1\", \"Item 2\", \"Item 3\"]},\n\t *\t\t\t{\"label\": \"Accordion 2\", \"content\": [\"Item A\", \"Item B\", \"Item C\"]}\n\t *\t\t]'\n\t *\t></ontario-accordion>\n\t */\n\t@Prop() expandCollapseButton?: string | ExpandCollapseButtonDetails;\n\n\t/**\n\t * Used to include individual accordion data for the accordion component.\n\t * This is passed in as an array of objects with key-value pairs.\n\t *\n\t * The `content` is expecting a string, that can either be written as HTML or a just a plain string, depending on the accordionContentType.\n\t *\n\t * @example\n\t * \t<ontario-accordion\n\t *\t\tname=\"My Accordion\"\n\t *\t\taccordion-data='[\n\t *\t\t\t{\"label\": \"Accordion 1\", \"content\": \"This is a string\"},\n\t *\t\t\t{\"label\": \"Accordion 2\", \"accordionContentType\": \"html\", \"content\": \"<ul><li>List A</li><li>List B</li><li>List C</li></ul>\"}\n\t *\t\t]'\n\t *\t></ontario-accordion>\n\t */\n\t@Prop() accordionData: string | Accordion[];\n\n\t/**\n\t * Used to show whether the accordion is opened or closed.\n\t */\n\t@Prop() isOpen: boolean = false;\n\n\t/**\n\t * The language of the component.\n\t * This is used for translations, and is by default set through event listeners checking for a language property from the header. If none are passed, it will default to English.\n\t */\n\t@Prop({ mutable: true }) language?: Language;\n\n\t/**\n\t * This listens for the `setAppLanguage` event sent from the test language toggler when it is is connected to the DOM. It is used for the initial language when the input component loads.\n\t */\n\t@Listen('setAppLanguage', { target: 'window' })\n\thandleSetAppLanguage(event: CustomEvent<Language>) {\n\t\tif (!this.language) {\n\t\t\tthis.language = validateLanguage(event);\n\t\t}\n\t}\n\n\t/**\n\t * Handle the language being toggled from the `<ontario-header>`.\n\t * @param event Event object passed when the event is fired.\n\t */\n\t@Listen('headerLanguageToggled', { target: 'window' })\n\thandleHeaderLanguageToggled(event: CustomEvent<Language>) {\n\t\tthis.language = validateLanguage(event);\n\t}\n\n\t/**\n\t * Store the translation dictionary for use within the component.\n\t */\n\t@State() translations: any = translations;\n\n\t/**\n\t * The label for the expand/collapse button.\n\t * This is internal and udpdated dynamically.\n\t */\n\t@State() private expandCollapseLabel: 'expand' | 'collapse';\n\n\t/**\n\t * Internal state of the expand/collapse label information.\n\t */\n\t@State() private internalExpandCollapseLabelDetails: ExpandCollapseButtonDetails;\n\n\t/**\n\t * Internal state containing the parsed Accordion Data\n\t */\n\t@State() private internalAccordionData: Accordion[] = [];\n\n\t/**\n\t * This state tracks which accordions are open.\n\t */\n\t@State() private openAccordionIndexes: number[] = [];\n\n\t/**\n\t * Parse Accordion data, this is used to handle JSON strings from HTML.\n\t */\n\t@Watch('accordionData')\n\tprivate parseAccordionData() {\n\t\tif (typeof this.accordionData !== 'undefined') {\n\t\t\tthis.internalAccordionData = Array.isArray(this.accordionData)\n\t\t\t\t? this.accordionData\n\t\t\t\t: JSON.parse(this.accordionData);\n\t\t}\n\n\t\t// Initialize the label based on the initial accordion state\n\t\tthis.updateLabel();\n\t}\n\n\t/**\n\t * Parse Expand/Collapse Button Details, this is used to handle JSON strings from HTML.\n\t */\n\t@Watch('expandCollapseButton')\n\tprivate parseExpandCollapseButtonDetails() {\n\t\tif (typeof this.expandCollapseButton !== 'undefined') {\n\t\t\tthis.internalExpandCollapseLabelDetails =\n\t\t\t\ttypeof this.expandCollapseButton === 'string'\n\t\t\t\t\t? JSON.parse(this.expandCollapseButton)\n\t\t\t\t\t: this.expandCollapseButton;\n\t\t}\n\t}\n\n\t// Toggle the accordion state when it's clicked\n\tprivate toggleAccordion(index: number) {\n\t\tif (this.openAccordionIndexes.includes(index)) {\n\t\t\t// If the accordion is already open, close it\n\t\t\tthis.openAccordionIndexes = this.openAccordionIndexes.filter((i) => i !== index);\n\t\t} else {\n\t\t\t// If the accordion is closed, open it\n\t\t\tthis.openAccordionIndexes = [...this.openAccordionIndexes, index];\n\t\t}\n\t\tthis.updateLabel();\n\t}\n\n\t/**\n\t * Toggle all accordions open/close\n\t */\n\tprivate toggleAll() {\n\t\tif (this.openAccordionIndexes.length === this.internalAccordionData.length) {\n\t\t\t// All accordions are open, close all\n\t\t\tthis.openAccordionIndexes = [];\n\t\t} else {\n\t\t\t// At least one accordion is closed, open all\n\t\t\tthis.openAccordionIndexes = this.internalAccordionData.map((_, index) => index);\n\t\t}\n\t\tthis.updateLabel();\n\t}\n\n\t/**\n\t * Update the label based on the current accordion state\n\t */\n\tprivate updateLabel() {\n\t\tconst allOpen = this.internalAccordionData.every((_, index) => this.openAccordionIndexes.includes(index));\n\n\t\tif (allOpen) {\n\t\t\t// All accordions are open, set label to \"Collapse all\"\n\t\t\tthis.expandCollapseLabel = 'collapse';\n\t\t} else {\n\t\t\t// At least one accordion is closed, set label to \"Expand all\"\n\t\t\tthis.expandCollapseLabel = 'expand';\n\t\t}\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.parseAccordionData();\n\t\tthis.parseExpandCollapseButtonDetails();\n\t\tthis.language = validateLanguage(this.language);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div>\n\t\t\t\t<h2>{this.name}</h2>\n\t\t\t\t<div class=\"ontario-accordions__container\">\n\t\t\t\t\t<div class=\"ontario-accordion__controls\">\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\tclass=\"ontario-accordion__button--expand-all\"\n\t\t\t\t\t\t\tonClick={() => this.toggleAll()}\n\t\t\t\t\t\t\taria-expanded={this.openAccordionIndexes.length === this.internalAccordionData.length ? 'true' : 'false'}\n\t\t\t\t\t\t\taria-label={this.internalExpandCollapseLabelDetails?.ariaLabelText}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span class=\"ontario-accordion--expand-open-all\">\n\t\t\t\t\t\t\t\t{this.expandCollapseLabel === 'expand' ? (\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t{this.internalExpandCollapseLabelDetails?.expandAllSectionsLabel ??\n\t\t\t\t\t\t\t\t\t\t\tthis.translations.accordion.expand[`${this.language}`]}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t{this.internalExpandCollapseLabelDetails?.collapseAllSectionsLabel ??\n\t\t\t\t\t\t\t\t\t\t\tthis.translations.accordion.collapse[`${this.language}`]}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.internalAccordionData?.map((accordion, index) => (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass={`ontario-accordion ${this.openAccordionIndexes.includes(index) ? 'open' : ''}`}\n\t\t\t\t\t\t\tkey={`accordion-${index}`}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<h3\n\t\t\t\t\t\t\t\tclass={`ontario-accordion__heading ${\n\t\t\t\t\t\t\t\t\tthis.openAccordionIndexes.includes(index) ? 'ontario-expander--active' : ''\n\t\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\tclass=\"ontario-accordion__button\"\n\t\t\t\t\t\t\t\t\taria-expanded={this.openAccordionIndexes.includes(index) ? 'true' : 'false'}\n\t\t\t\t\t\t\t\t\tdata-toggle=\"ontario-collapse\"\n\t\t\t\t\t\t\t\t\tonClick={() => this.toggleAccordion(index)}\n\t\t\t\t\t\t\t\t\taria-label={accordion.ariaLabelText}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<span class=\"ontario-accordion__button-icon--close\">\n\t\t\t\t\t\t\t\t\t\t<ontario-icon-chevron-up colour=\"blue\"></ontario-icon-chevron-up>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span class=\"ontario-accordion__button-icon--open\">\n\t\t\t\t\t\t\t\t\t\t<ontario-icon-chevron-down colour=\"blue\"></ontario-icon-chevron-down>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t{accordion.label}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t<section\n\t\t\t\t\t\t\t\tclass={`ontario-accordion__content ${\n\t\t\t\t\t\t\t\t\tthis.openAccordionIndexes.includes(index)\n\t\t\t\t\t\t\t\t\t\t? 'ontario-accordion__content--opened'\n\t\t\t\t\t\t\t\t\t\t: 'ontario-accordion__content--closed'\n\t\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\t\taria-hidden={!this.openAccordionIndexes.includes(index)}\n\t\t\t\t\t\t\t\tdata-toggle=\"ontario-expander-content\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{accordion.accordionContentType === 'html' ? (\n\t\t\t\t\t\t\t\t\t<div innerHTML={accordion.content}></div> // Render HTML content\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<div>{accordion.content}</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</section>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,18 +1,18 @@
1
- import { p as proxyCustomElement, H } from './index.js';
1
+ import { proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
2
2
  import {
3
3
  i as isValidHeadingLevel,
4
4
  a as isValidHighlightColour,
5
5
  g as generateCalloutAside,
6
6
  H as HeadingContentTypes,
7
- } from './p-dXtLd1df.js';
8
- import { v as validateValueAgainstArray } from './p-CNqFEifG.js';
9
- import { C as ConsoleMessageClass } from './p-CJXRCL8b.js';
7
+ } from './callout-aside-helpers.js';
8
+ import { v as validateValueAgainstArray } from './validation-functions.js';
9
+ import { C as ConsoleMessageClass } from './console-message.js';
10
10
 
11
11
  const ontarioAsideCss =
12
12
  '@charset "UTF-8";h6,.ontario-h6,h5,.ontario-h5,h4,.ontario-h4,h3,.ontario-h3,h2,.ontario-h2,h1,.ontario-h1{font-style:normal;font-weight:700;text-rendering:optimizeLegibility;margin-bottom:1rem;font-feature-settings:normal;font-family:"Raleway Modified", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif}h1,.ontario-h1{font-size:2rem;letter-spacing:0.04rem;line-height:1.29;margin:2.5rem 0 1.5rem 0;max-width:70rem}@media screen and (min-width: 40em){h1,.ontario-h1{font-size:2.5rem;letter-spacing:0.04rem;line-height:1.2}}h2,.ontario-h2{font-size:1.6875rem;letter-spacing:0.03rem;line-height:1.37;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h2,.ontario-h2{font-size:2.0625rem;letter-spacing:0.02rem;line-height:1.33}}h3,.ontario-h3{font-size:1.4375rem;letter-spacing:0.02rem;line-height:1.39;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h3,.ontario-h3{font-size:1.75rem;letter-spacing:0.02rem;line-height:1.43}}h4,.ontario-h4{font-size:1.25rem;letter-spacing:0.03rem;line-height:1.5;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h4,.ontario-h4{font-size:1.5rem;letter-spacing:0.0313rem;line-height:1.5}}h5,.ontario-h5{font-size:1.125rem;letter-spacing:0.03rem;line-height:1.56;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h5,.ontario-h5{font-size:1.1875rem;letter-spacing:0.025rem;line-height:1.5}}h6,.ontario-h6{font-size:1rem;line-height:1.56;letter-spacing:0.03rem;max-width:48rem;margin:0 0 0.75rem 0}@media screen and (min-width: 40em){h6,.ontario-h6{font-size:1rem;letter-spacing:0.025rem;line-height:1.5}}.ontario-lead-statement{font-size:1.25rem;line-height:1.6;max-width:70rem}@media screen and (min-width: 40em){.ontario-lead-statement{font-size:1.375rem}}html{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem}body{font-size:1rem;line-height:1.6;background-color:#FFFFFF;color:#1a1a1a;margin:0}p{font-size:inherit;margin-bottom:1.25rem;text-rendering:optimizeLegibility;margin:0 0 1.5rem 0}cite{font-style:italic;line-height:inherit}strong{font-weight:700;line-height:inherit}*,*::before,*::after{box-sizing:inherit}main p,main p:not(.ontario-lead-statement),main dd,main li{max-width:48rem}hr{border:0;padding:0;margin:2.5rem 0;border-bottom:4px solid #cccccc}hr.ontario-hr--dark{border-bottom:4px solid #1a1a1a}a{color:#0066CC;text-decoration:underline}a:visited{color:#551A8B}a:hover{color:#00478F}a:active{color:#002142}a:focus{-moz-box-shadow:0 0 0 4px #009ADB;-webkit-box-shadow:0 0 0 4px #009ADB;box-shadow:0 0 0 4px #009ADB;outline:4px solid transparent;transition:all 0.1s ease-in-out}​p{margin:0 0 1.5rem 0}​p+h1,p+h2,p+h3,p+h4,p+h5,p+h6,ul+h1,ul+h2,ul+h3,ul+h4,ul+h5,ul+h6,ol+h1,ol+h2,ol+h3,ol+h4,ol+h5,ol+h6,h1+h2,h2+h3,h3+h4,h4+h5,h5+h6{margin-top:2rem}p code,td code,li code{line-height:2.25rem}input[type=text],input[type=number],input[type=email],input[type=date],input[type=color],input[type=search],input[type=tel],textarea{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}input[type=checkbox]+label,input[type=radio]+label{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:400;margin-left:0;margin-right:0}fieldset{border:0;margin:0;padding:0;page-break-inside:avoid}legend,label{display:block;margin:0}select{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}ul,ol{padding:0}ul{margin-left:2rem}ul li{padding:0 0 0.75rem 0}ol{margin-left:1.75rem}ol li{padding:0 0 0.75rem 0.25rem}ul li:last-child,ol li:last-child{padding-bottom:0}ul[class*=columns-] li:last-child,ol[class*=columns-] li:last-child{padding-bottom:0.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 2rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 1.75rem}p+ul,p+ol{margin-top:-0.75rem}@media screen and (min-width: 40em){ul{margin:0.5rem 0 1.5rem 3rem}ol{margin:0.5rem 0 1.5rem 2.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 3rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 2.75rem}}.ontario-aside{border-left:0.25rem solid #367A76;padding:1.5rem;margin:2rem 0 2.5rem 2rem}.ontario-aside *{max-width:48rem}.ontario-aside *:last-child{margin-bottom:0.5rem}@media screen and (max-width: 40em){.ontario-aside .ontario-aside{margin:2rem 0 2.5rem 1rem}}.ontario-aside__title{margin:0 0 1rem}.ontario-border-highlight--teal{border-color:#367A76 !important}.ontario-border-highlight--gold{border-color:#86743D !important}.ontario-border-highlight--yellow{border-color:#8A600D !important}.ontario-border-highlight--taupe{border-color:#7B725C !important}.ontario-border-highlight--green{border-color:#2B8737 !important}.ontario-border-highlight--lime{border-color:#5F8129 !important}.ontario-border-highlight--sky{border-color:#1080A6 !important}.ontario-border-highlight--blue{border-color:#0369ac !important}.ontario-border-highlight--purple{border-color:#92278F !important}';
13
13
 
14
14
  const OntarioAside$1 = /*@__PURE__*/ proxyCustomElement(
15
- class OntarioAside extends H {
15
+ class OntarioAside extends HTMLElement {
16
16
  constructor() {
17
17
  super();
18
18
  this.__registerHost();
@@ -1 +1 @@
1
- {"file":"ontario-aside.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,k0JAAk0J;;MCsB70JA,cAAY,iBAAAC,kBAAA,CAAA,MAAA,YAAA,SAAAC,CAAA,CAAA;;;;;;AACxB;;AAEG;AACsB,IAAA,WAAW;AAEpC;;AAEG;IACsB,kBAAkB,GAAuB,QAAQ;AAE1E;;AAEG;AACK,IAAA,cAAc;AAEtB;;;;;;;AAOG;AACK,IA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,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE;QACzC;AACE,aAAA,kBAAkB;aAClB,gBAAgB,CAAC,sBAAsB;aACvC,cAAc,CAAC,IAAI;aACnB,gBAAgB,CAAC,mBAAmB;aACpC,cAAc,CAAC,kCAAkC;aACjD,gBAAgB,CAAC,kBAAkB;aACnC,cAAc,CAAC,iCAAiC;aAChD,gBAAgB,CAAC,UAAU;aAC3B,cAAc,CAAC,aAAa;AAC5B,aAAA,YAAY,EAAE;AAChB,QAAA,QAAQ,IAAI,CAAC,kBAAkB,GAAG,QAAQ;;IAG3C,iBAAiB,GAAA;QAChB,IAAI,CAAC,uBAAuB,EAAE;QAC9B,IAAI,CAAC,mBAAmB,EAAE;QAC1B,IAAI,CAAC,0BAA0B,EAAE;;IAGlC,MAAM,GAAA;QACL,OAAO,oBAAoB,CAC1B,OAAO,EACP,IAAI,CAAC,kBAAkB,EACvB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,eAAe,CACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioAside","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/ontario-aside/ontario-aside.scss?tag=ontario-aside&encapsulation=shadow","src/components/ontario-aside/ontario-aside.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/4-elements/global.elements';\n\n.ontario-aside {\n\tborder-left: spacing.$spacing-1 solid colours.$ontario-colour-dark-teal;\n\tpadding: spacing.$spacing-5;\n\tmargin: spacing.$spacing-6 spacing.$spacing-0 spacing.$spacing-7 spacing.$spacing-6;\n\n\t* {\n\t\tmax-width: globalVariables.$standard-width;\n\n\t\t&:last-child {\n\t\t\tmargin-bottom: spacing.$spacing-2;\n\t\t}\n\t}\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\t.ontario-aside {\n\t\t\tmargin: spacing.$spacing-6 spacing.$spacing-0 spacing.$spacing-7 spacing.$spacing-4;\n\t\t}\n\t}\n}\n\n.ontario-aside__title {\n\tmargin: spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-4;\n}\n\n$aside-highlight-colours: (\n\t'teal': colours.$ontario-colour-dark-teal,\n\t'gold': colours.$ontario-colour-dark-gold,\n\t'yellow': colours.$ontario-colour-dark-yellow,\n\t'taupe': colours.$ontario-colour-dark-taupe,\n\t'green': colours.$ontario-colour-dark-green,\n\t'lime': colours.$ontario-colour-dark-lime,\n\t'sky': colours.$ontario-colour-dark-sky,\n\t'blue': colours.$ontario-colour-dark-blue,\n\t'purple': colours.$ontario-colour-dark-purple,\n);\n\n@each $colour-name, $hex in $aside-highlight-colours {\n\t.ontario-border-highlight--#{$colour-name} {\n\t\tborder-color: $hex !important;\n\t}\n}\n","import { Component, Prop, Watch } from '@stencil/core';\n\nimport {\n\tCalloutAside,\n\tHeadingLevelOptions,\n\tHeadingContentType,\n\tHeadingContentTypes,\n\tHighlightColourOptions,\n} from '../../utils/components/callout-aside/callout-aside.interface';\nimport {\n\tisValidHighlightColour,\n\tgenerateCalloutAside,\n\tisValidHeadingLevel,\n} from '../../utils/components/callout-aside/callout-aside-helpers';\nimport { validateValueAgainstArray } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\n\n@Component({\n\ttag: 'ontario-aside',\n\tstyleUrl: 'ontario-aside.scss',\n\tshadow: true,\n})\nexport class OntarioAside implements CalloutAside {\n\t/**\n\t * The heading level of the aside heading.\n\t */\n\t@Prop({ mutable: true }) headingType?: HeadingLevelOptions;\n\n\t/**\n\t * The type of the heading content. If no prop is passed, it will default to string.\n\t */\n\t@Prop({ mutable: true }) headingContentType: HeadingContentType = 'string';\n\n\t/**\n\t * Text or HTML to be displayed as the heading of the aside. If the heading content should be displayed as HTML, the `headingContentType` needs to be set to `html`.\n\t */\n\t@Prop() headingContent?: string;\n\n\t/**\n\t * Optional text to be displayed as the content for the aside component. If a string is passed, it will automatically be nested in a paragraph tag.\n\t *\n\t * HTML content can also be passed as the child/children of the aside component if additional/different elements for the content are needed.\n\t *\n\t * @example\n\t * <ontario-aside headingType='h3' headingContent='This is the aside heading'><p>This is the first sentence of the aside content.</p><p>This is the second sentence of the aside content.</p></ontario-aside>\n\t */\n\t@Prop() content?: string;\n\n\t/**\n\t * Optional prop to choose the border colour of the aside. If none is passed, the default colour will be teal.\n\t */\n\t@Prop({ mutable: true }) highlightColour?: HighlightColourOptions = 'teal';\n\n\t/**\n\t * Watch for changes to the `headingType` prop.\n\t *\n\t * This is for validation purposes to make sure the `headingType` matches one of the `HeadingLevelOptions`.\n\t */\n\t@Watch('headingType')\n\tvalidateHeadingType() {\n\t\tif (!!this.headingType) {\n\t\t\tif (isValidHeadingLevel(this.headingType)) return this.headingType;\n\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\treturn message\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(` headingType ${this.headingType} `)\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-aside> ')\n\t\t\t\t.addRegularText('is not a valid type. Please ensure your heading type matches one of the headingType types.')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes in the `headingContentType` prop for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `headingContentType` will be set to its default (`string`).\n\t * If a match is found in one of the array values then `headingContentType` will be set to the matching array key value.\n\t */\n\t@Watch('headingContentType')\n\tvalidateHeadingContentType() {\n\t\tconst isValid = validateValueAgainstArray(this.headingContentType, HeadingContentTypes);\n\t\tif (isValid) {\n\t\t\treturn this.headingContentType;\n\t\t} else {\n\t\t\treturn this.warnDefaultType();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `highlightColour` prop.\n\t *\n\t * If no `highlightColour` is passed, or if the `highlightColour` does not match the `highlightColour` options, a default value of 'teal' will be applied.\n\t */\n\t@Watch('highlightColour')\n\tvalidateHighlightColour() {\n\t\tif (this.highlightColour) {\n\t\t\tif (isValidHighlightColour(this.highlightColour)) return this.highlightColour;\n\t\t\telse {\n\t\t\t\tconst message = new ConsoleMessageClass();\n\t\t\t\tmessage\n\t\t\t\t\t.addDesignSystemTag()\n\t\t\t\t\t.addMonospaceText(` highlightColour ${this.highlightColour} `)\n\t\t\t\t\t.addRegularText('for')\n\t\t\t\t\t.addMonospaceText(' <ontario-aside> ')\n\t\t\t\t\t.addRegularText(\n\t\t\t\t\t\t'does not match one of the valid highlightColour types. A default colour of `teal` will be applied.',\n\t\t\t\t\t)\n\t\t\t\t\t.printMessage();\n\t\t\t}\n\t\t}\n\n\t\t// if no highlight colour is passed, return 'teal'\n\t\treturn 'teal';\n\t}\n\n\t/**\n\t * Print the invalid `type` warning message.\n\t * @returns default type ('string')\n\t */\n\tprivate warnDefaultType() {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' headingContentType ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-aside> ')\n\t\t\t.addRegularText('was set to an invalid type; only')\n\t\t\t.addMonospaceText(' string or html ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' string ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn (this.headingContentType = 'string');\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateHighlightColour();\n\t\tthis.validateHeadingType();\n\t\tthis.validateHeadingContentType();\n\t}\n\n\trender() {\n\t\treturn generateCalloutAside(\n\t\t\t'aside',\n\t\t\tthis.headingContentType,\n\t\t\tthis.headingType,\n\t\t\tthis.headingContent,\n\t\t\tthis.content,\n\t\t\tthis.highlightColour,\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"ontario-aside.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,k0JAAk0J;;MCsB70JA,cAAY,iBAAAC,kBAAA,CAAA,MAAA,YAAA,SAAA,WAAA,CAAA;;;;;;AACxB;;AAEG;AACsB,IAAA,WAAW;AAEpC;;AAEG;IACsB,kBAAkB,GAAuB,QAAQ;AAE1E;;AAEG;AACK,IAAA,cAAc;AAEtB;;;;;;;AAOG;AACK,IAAA,OAAO;AAEf;;AAEG;IACsB,eAAe,GAA4B,MAAM;AAE1E;;;;AAIG;IAEH,mBAAmB,GAAA;AAClB,QAAA,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE;AACvB,YAAA,IAAI,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC;gBAAE,OAAO,IAAI,CAAC,WAAW;AAElE,YAAA,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE;AACzC,YAAA,OAAO;AACL,iBAAA,kBAAkB;AAClB,iBAAA,gBAAgB,CAAC,CAAgB,aAAA,EAAA,IAAI,CAAC,WAAW,GAAG;iBACpD,cAAc,CAAC,KAAK;iBACpB,gBAAgB,CAAC,mBAAmB;iBACpC,cAAc,CAAC,4FAA4F;AAC3G,iBAAA,YAAY,EAAE;;;AAIlB;;;;;AAKG;IAEH,0BAA0B,GAAA;QACzB,MAAM,OAAO,GAAG,yBAAyB,CAAC,IAAI,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;QACvF,IAAI,OAAO,EAAE;YACZ,OAAO,IAAI,CAAC,kBAAkB;;aACxB;AACN,YAAA,OAAO,IAAI,CAAC,eAAe,EAAE;;;AAI/B;;;;AAIG;IAEH,uBAAuB,GAAA;AACtB,QAAA,IAAI,IAAI,CAAC,eAAe,EAAE;AACzB,YAAA,IAAI,sBAAsB,CAAC,IAAI,CAAC,eAAe,CAAC;gBAAE,OAAO,IAAI,CAAC,eAAe;iBACxE;AACJ,gBAAA,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE;gBACzC;AACE,qBAAA,kBAAkB;AAClB,qBAAA,gBAAgB,CAAC,CAAoB,iBAAA,EAAA,IAAI,CAAC,eAAe,GAAG;qBAC5D,cAAc,CAAC,KAAK;qBACpB,gBAAgB,CAAC,mBAAmB;qBACpC,cAAc,CACd,oGAAoG;AAEpG,qBAAA,YAAY,EAAE;;;;AAKlB,QAAA,OAAO,MAAM;;AAGd;;;AAGG;IACK,eAAe,GAAA;AACtB,QAAA,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE;QACzC;AACE,aAAA,kBAAkB;aAClB,gBAAgB,CAAC,sBAAsB;aACvC,cAAc,CAAC,IAAI;aACnB,gBAAgB,CAAC,mBAAmB;aACpC,cAAc,CAAC,kCAAkC;aACjD,gBAAgB,CAAC,kBAAkB;aACnC,cAAc,CAAC,iCAAiC;aAChD,gBAAgB,CAAC,UAAU;aAC3B,cAAc,CAAC,aAAa;AAC5B,aAAA,YAAY,EAAE;AAChB,QAAA,QAAQ,IAAI,CAAC,kBAAkB,GAAG,QAAQ;;IAG3C,iBAAiB,GAAA;QAChB,IAAI,CAAC,uBAAuB,EAAE;QAC9B,IAAI,CAAC,mBAAmB,EAAE;QAC1B,IAAI,CAAC,0BAA0B,EAAE;;IAGlC,MAAM,GAAA;QACL,OAAO,oBAAoB,CAC1B,OAAO,EACP,IAAI,CAAC,kBAAkB,EACvB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,eAAe,CACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioAside","__stencil_proxyCustomElement"],"sources":["src/components/ontario-aside/ontario-aside.scss?tag=ontario-aside&encapsulation=shadow","src/components/ontario-aside/ontario-aside.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/4-elements/global.elements';\n\n.ontario-aside {\n\tborder-left: spacing.$spacing-1 solid colours.$ontario-colour-dark-teal;\n\tpadding: spacing.$spacing-5;\n\tmargin: spacing.$spacing-6 spacing.$spacing-0 spacing.$spacing-7 spacing.$spacing-6;\n\n\t* {\n\t\tmax-width: globalVariables.$standard-width;\n\n\t\t&:last-child {\n\t\t\tmargin-bottom: spacing.$spacing-2;\n\t\t}\n\t}\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\t.ontario-aside {\n\t\t\tmargin: spacing.$spacing-6 spacing.$spacing-0 spacing.$spacing-7 spacing.$spacing-4;\n\t\t}\n\t}\n}\n\n.ontario-aside__title {\n\tmargin: spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-4;\n}\n\n$aside-highlight-colours: (\n\t'teal': colours.$ontario-colour-dark-teal,\n\t'gold': colours.$ontario-colour-dark-gold,\n\t'yellow': colours.$ontario-colour-dark-yellow,\n\t'taupe': colours.$ontario-colour-dark-taupe,\n\t'green': colours.$ontario-colour-dark-green,\n\t'lime': colours.$ontario-colour-dark-lime,\n\t'sky': colours.$ontario-colour-dark-sky,\n\t'blue': colours.$ontario-colour-dark-blue,\n\t'purple': colours.$ontario-colour-dark-purple,\n);\n\n@each $colour-name, $hex in $aside-highlight-colours {\n\t.ontario-border-highlight--#{$colour-name} {\n\t\tborder-color: $hex !important;\n\t}\n}\n","import { Component, Prop, Watch } from '@stencil/core';\n\nimport {\n\tCalloutAside,\n\tHeadingLevelOptions,\n\tHeadingContentType,\n\tHeadingContentTypes,\n\tHighlightColourOptions,\n} from '../../utils/components/callout-aside/callout-aside.interface';\nimport {\n\tisValidHighlightColour,\n\tgenerateCalloutAside,\n\tisValidHeadingLevel,\n} from '../../utils/components/callout-aside/callout-aside-helpers';\nimport { validateValueAgainstArray } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\n\n@Component({\n\ttag: 'ontario-aside',\n\tstyleUrl: 'ontario-aside.scss',\n\tshadow: true,\n})\nexport class OntarioAside implements CalloutAside {\n\t/**\n\t * The heading level of the aside heading.\n\t */\n\t@Prop({ mutable: true }) headingType?: HeadingLevelOptions;\n\n\t/**\n\t * The type of the heading content. If no prop is passed, it will default to string.\n\t */\n\t@Prop({ mutable: true }) headingContentType: HeadingContentType = 'string';\n\n\t/**\n\t * Text or HTML to be displayed as the heading of the aside. If the heading content should be displayed as HTML, the `headingContentType` needs to be set to `html`.\n\t */\n\t@Prop() headingContent?: string;\n\n\t/**\n\t * Optional text to be displayed as the content for the aside component. If a string is passed, it will automatically be nested in a paragraph tag.\n\t *\n\t * HTML content can also be passed as the child/children of the aside component if additional/different elements for the content are needed.\n\t *\n\t * @example\n\t * <ontario-aside headingType='h3' headingContent='This is the aside heading'><p>This is the first sentence of the aside content.</p><p>This is the second sentence of the aside content.</p></ontario-aside>\n\t */\n\t@Prop() content?: string;\n\n\t/**\n\t * Optional prop to choose the border colour of the aside. If none is passed, the default colour will be teal.\n\t */\n\t@Prop({ mutable: true }) highlightColour?: HighlightColourOptions = 'teal';\n\n\t/**\n\t * Watch for changes to the `headingType` prop.\n\t *\n\t * This is for validation purposes to make sure the `headingType` matches one of the `HeadingLevelOptions`.\n\t */\n\t@Watch('headingType')\n\tvalidateHeadingType() {\n\t\tif (!!this.headingType) {\n\t\t\tif (isValidHeadingLevel(this.headingType)) return this.headingType;\n\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\treturn message\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(` headingType ${this.headingType} `)\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-aside> ')\n\t\t\t\t.addRegularText('is not a valid type. Please ensure your heading type matches one of the headingType types.')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes in the `headingContentType` prop for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `headingContentType` will be set to its default (`string`).\n\t * If a match is found in one of the array values then `headingContentType` will be set to the matching array key value.\n\t */\n\t@Watch('headingContentType')\n\tvalidateHeadingContentType() {\n\t\tconst isValid = validateValueAgainstArray(this.headingContentType, HeadingContentTypes);\n\t\tif (isValid) {\n\t\t\treturn this.headingContentType;\n\t\t} else {\n\t\t\treturn this.warnDefaultType();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `highlightColour` prop.\n\t *\n\t * If no `highlightColour` is passed, or if the `highlightColour` does not match the `highlightColour` options, a default value of 'teal' will be applied.\n\t */\n\t@Watch('highlightColour')\n\tvalidateHighlightColour() {\n\t\tif (this.highlightColour) {\n\t\t\tif (isValidHighlightColour(this.highlightColour)) return this.highlightColour;\n\t\t\telse {\n\t\t\t\tconst message = new ConsoleMessageClass();\n\t\t\t\tmessage\n\t\t\t\t\t.addDesignSystemTag()\n\t\t\t\t\t.addMonospaceText(` highlightColour ${this.highlightColour} `)\n\t\t\t\t\t.addRegularText('for')\n\t\t\t\t\t.addMonospaceText(' <ontario-aside> ')\n\t\t\t\t\t.addRegularText(\n\t\t\t\t\t\t'does not match one of the valid highlightColour types. A default colour of `teal` will be applied.',\n\t\t\t\t\t)\n\t\t\t\t\t.printMessage();\n\t\t\t}\n\t\t}\n\n\t\t// if no highlight colour is passed, return 'teal'\n\t\treturn 'teal';\n\t}\n\n\t/**\n\t * Print the invalid `type` warning message.\n\t * @returns default type ('string')\n\t */\n\tprivate warnDefaultType() {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' headingContentType ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-aside> ')\n\t\t\t.addRegularText('was set to an invalid type; only')\n\t\t\t.addMonospaceText(' string or html ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' string ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn (this.headingContentType = 'string');\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateHighlightColour();\n\t\tthis.validateHeadingType();\n\t\tthis.validateHeadingContentType();\n\t}\n\n\trender() {\n\t\treturn generateCalloutAside(\n\t\t\t'aside',\n\t\t\tthis.headingContentType,\n\t\t\tthis.headingType,\n\t\t\tthis.headingContent,\n\t\t\tthis.content,\n\t\t\tthis.highlightColour,\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
- import { p as proxyCustomElement, H, h } from './index.js';
2
- import { b as validateLanguage } from './p-CNqFEifG.js';
3
- import { t as translations } from './p-DgMhpSmi.js';
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { b as validateLanguage } from './validation-functions.js';
3
+ import { t as translations } from './global.i18n.js';
4
4
 
5
5
  var OntarioIconArrowUp = `<svg class="ontario-icon" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg>
6
6
  `;
@@ -9,7 +9,7 @@ const ontarioBackToTopCss =
9
9
  '.ontario-back-to-top,.ontario-back-to-top--default{position:fixed;bottom:5%;right:2%;visibility:hidden;opacity:0;transition:0.1s ease-in-out;display:flex;justify-content:center;align-items:center;height:3rem;padding:0.5rem 1rem 0.5rem 0.75rem;background:#e6e6e6;border:0.125rem solid #FFFFFF;border-radius:4px;box-shadow:0 0.125rem 0.25rem rgba(26, 26, 26, 0.6);box-sizing:border-box;color:#1a1a1a;line-height:1.25rem;font-size:1rem;font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-weight:600;z-index:10000;cursor:pointer}.ontario-back-to-top .ontario-icon,.ontario-back-to-top--default .ontario-icon{margin:0.125rem 0.5rem 0 0;width:2rem;height:2rem}.ontario-back-to-top:hover,.ontario-back-to-top--default:hover{background-color:#cccccc}.ontario-back-to-top:focus,.ontario-back-to-top--default:focus{background-color:#e6e6e6;box-shadow:0 0 0 0.25rem #009ADB, 0 0.1875rem 0.3125rem 0.1875rem rgba(0, 0, 0, 0.6);outline:0.25rem solid transparent;transition:0.1s ease-in-out}.ontario-back-to-top:active,.ontario-back-to-top--default:active{background-color:#b2b2b2;box-shadow:0 0 0 0.25rem #009ADB, 0 0.3125rem 0.4375rem 0.1875rem rgba(0, 0, 0, 0.6);outline:0.25rem solid transparent;transition:background-color 0s, box-shadow 0.1s ease-in-out}@media screen and (max-width: 73em){.ontario-back-to-top,.ontario-back-to-top--default{flex-direction:column;height:4.75rem;padding:0.375rem 0.75rem 0.5625rem 0.75rem}.ontario-back-to-top .ontario-icon,.ontario-back-to-top--default .ontario-icon{margin:0.0625rem 0 0.25rem 0;width:2rem;height:2rem}}@media screen and (max-width: 40em){.ontario-back-to-top,.ontario-back-to-top--default{display:block;padding:0.25rem;font-size:0;width:3rem;height:3rem}.ontario-back-to-top .ontario-icon,.ontario-back-to-top--default .ontario-icon{margin:0.5rem 0 0 0}@-moz-document url-prefix(){.ontario-back-to-top .ontario-icon,.ontario-back-to-top--default .ontario-icon{margin-top:0.125rem}}}.ontario-back-to-top.active,.ontario-back-to-top--default.active{visibility:visible;opacity:1}';
10
10
 
11
11
  const OntarioBackToTop$1 = /*@__PURE__*/ proxyCustomElement(
12
- class OntarioBackToTop extends H {
12
+ class OntarioBackToTop extends HTMLElement {
13
13
  constructor() {
14
14
  super();
15
15
  this.__registerHost();
@@ -1 +1 @@
1
- {"file":"ontario-back-to-top.js","mappings":";;;;;;;AAAA,MAAM,mBAAmB,GAAG,kg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A,EAAkB,MAAM,EAAC,SAAS,EAAE,kBAAkB,EAAS,CAAA,EAC9D,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA,EAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioBackToTop","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/ontario-back-to-top/ontario-back-to-top.scss?tag=ontario-back-to-top&encapsulation=shadow","src/components/ontario-back-to-top/ontario-back-to-top.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/fonts.variables' as fonts;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/functions/global.functions' as globalFunctions;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-sizes.variables' as fontSizes;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-weights.variables' as fontWeights;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tfocusPlaceholders;\n\n$ontario-icon-margin-top: 0.125rem;\n\n// Colour variables\n$ontario-colour-back-to-top-background: #e6e6e6;\n$ontario-colour-back-to-top--active-background: #b2b2b2;\n\n.ontario-back-to-top,\n// Fractal component style coverage ↓\n.ontario-back-to-top--default {\n\tposition: fixed;\n\tbottom: 5%;\n\tright: 2%;\n\tvisibility: hidden;\n\topacity: 0;\n\ttransition: 0.1s ease-in-out;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\theight: globalFunctions.px-to-rem(48);\n\tpadding: spacing.$spacing-2 spacing.$spacing-4 spacing.$spacing-2 spacing.$spacing-3;\n\tbackground: $ontario-colour-back-to-top-background;\n\tborder: globalFunctions.px-to-rem(2) solid colours.$ontario-colour-white;\n\tborder-radius: globalVariables.$global-radius;\n\tbox-shadow: 0 globalFunctions.px-to-rem(2) globalFunctions.px-to-rem(4) rgba(colours.$ontario-colour-black, 0.6);\n\tbox-sizing: border-box;\n\tcolor: colours.$ontario-colour-black;\n\tline-height: globalFunctions.px-to-rem(20);\n\tfont-size: fontSizes.$ontario-font-size-standard-body-text;\n\tfont-family: fonts.$ontario-font-open-sans;\n\tfont-weight: fontWeights.$ontario-font-weights-semi-bold;\n\tz-index: 10000;\n\tcursor: pointer;\n\n\t.ontario-icon {\n\t\tmargin: $ontario-icon-margin-top spacing.$spacing-2 spacing.$spacing-0 spacing.$spacing-0;\n\t\twidth: globalFunctions.px-to-rem(32);\n\t\theight: globalFunctions.px-to-rem(32);\n\t}\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-greyscale-20;\n\t}\n\n\t&:focus {\n\t\tbackground-color: $ontario-colour-back-to-top-background;\n\t\tbox-shadow:\n\t\t\t0 0 0 globalFunctions.px-to-rem(4) colours.$ontario-colour-focus,\n\t\t\t0 globalFunctions.px-to-rem(3) globalFunctions.px-to-rem(5) globalFunctions.px-to-rem(3) rgba(0, 0, 0, 0.6);\n\t\toutline: globalFunctions.px-to-rem(4) solid transparent;\n\t\ttransition: 0.1s ease-in-out;\n\t}\n\n\t&:active {\n\t\tbackground-color: $ontario-colour-back-to-top--active-background;\n\t\tbox-shadow:\n\t\t\t0 0 0 globalFunctions.px-to-rem(4) colours.$ontario-colour-focus,\n\t\t\t0 globalFunctions.px-to-rem(5) globalFunctions.px-to-rem(7) globalFunctions.px-to-rem(3) rgba(0, 0, 0, 0.6);\n\t\toutline: globalFunctions.px-to-rem(4) solid transparent;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t@media screen and (max-width: breakpoints.$medium-breakpoint) {\n\t\tflex-direction: column;\n\t\theight: globalFunctions.px-to-rem(76);\n\t\tpadding: globalFunctions.px-to-rem(6) spacing.$spacing-3 globalFunctions.px-to-rem(9) spacing.$spacing-3;\n\n\t\t.ontario-icon {\n\t\t\tmargin: globalFunctions.px-to-rem(1) spacing.$spacing-0 spacing.$spacing-1 spacing.$spacing-0;\n\t\t\twidth: globalFunctions.px-to-rem(32);\n\t\t\theight: globalFunctions.px-to-rem(32);\n\t\t}\n\t}\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tdisplay: block;\n\t\tpadding: spacing.$spacing-1;\n\t\tfont-size: 0;\n\t\twidth: globalFunctions.px-to-rem(48);\n\t\theight: globalFunctions.px-to-rem(48);\n\n\t\t.ontario-icon {\n\t\t\tmargin: spacing.$spacing-2 spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-0;\n\n\t\t\t@-moz-document url-prefix() {\n\t\t\t\tmargin-top: $ontario-icon-margin-top;\n\t\t\t}\n\t\t}\n\t}\n\n\t&.active {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n","import { Component, h, Element, Prop, Listen, State } from '@stencil/core';\n\nimport OntarioIconArrowUp from '../ontario-icon/assets/ontario-icon-arrow-up.svg';\nimport { Language } from '../../utils/common/language-types';\nimport { validateLanguage } from '../../utils/validation/validation-functions';\n\nimport translations from '../../translations/global.i18n.json';\n\n@Component({\n\ttag: 'ontario-back-to-top',\n\tstyleUrl: 'ontario-back-to-top.scss',\n\tshadow: true,\n})\nexport class OntarioBackToTop {\n\t@Element() element: HTMLElement;\n\n\t/**\n\t * The language of the component.\n\t * This is used for translations, and is by default set through event listeners checking for a language property from the header. If no language prop is passed, it will default to English.\n\t */\n\t@Prop({ mutable: true }) language?: Language;\n\n\t@State() translations: any = translations;\n\n\t@State() private displayBackToTop: boolean = false;\n\n\t@State() private scrollYValue: number = 200;\n\n\t/**\n\t * This listens for the window Y scroll value to be above 200 pixels. Once it is, the Back to Top button will toggle the `displayBackToTop` state which will set an active class to control the components' visibility.\n\t */\n\t@Listen('scroll', { target: 'window' })\n\tshowBackToTopButton() {\n\t\tthis.displayBackToTop = window.scrollY > this.scrollYValue;\n\t}\n\n\t/**\n\t * This listens for the `setAppLanguage` event sent from the test language toggler when it is is connected to the DOM. It is used for the initial language when the input component loads.\n\t */\n\t@Listen('setAppLanguage', { target: 'window' })\n\thandleSetAppLanguage(event: CustomEvent<Language>) {\n\t\tif (!this.language) {\n\t\t\tthis.language = validateLanguage(event);\n\t\t}\n\t}\n\n\t@Listen('headerLanguageToggled', { target: 'window' })\n\thandleHeaderLanguageToggled(event: CustomEvent<Language>) {\n\t\tthis.language = validateLanguage(event);\n\t}\n\n\t/**\n\t * Scroll to top functionality when the Back to Top button is clicked\n\t */\n\tprivate scrollToTop() {\n\t\twindow.scrollTo({ top: 0, left: 0, behavior: 'smooth' });\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.language = validateLanguage(this.language);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<button\n\t\t\t\tclass={this.displayBackToTop ? `ontario-back-to-top active` : `ontario-back-to-top`}\n\t\t\t\tonClick={this.scrollToTop}\n\t\t\t\taria-label={this.translations.backToTop.ariaLabel[`${this.language}`]}\n\t\t\t>\n\t\t\t\t<span aria-hidden=\"true\" innerHTML={OntarioIconArrowUp}></span>\n\t\t\t\t{this.translations.backToTop.top[`${this.language}`]}\n\t\t\t</button>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"ontario-back-to-top.js","mappings":";;;;;;;AAAA,MAAM,mBAAmB,GAAG,kgEAAkgE;;MCajhEA,kBAAgB,iBAAAC,kBAAA,CAAA,MAAA,gBAAA,SAAA,WAAA,CAAA;;;;;;;AAG5B;;;AAGG;AACsB,IAAA,QAAQ;IAExB,YAAY,GAAQ,YAAY;IAExB,gBAAgB,GAAY,KAAK;IAEjC,YAAY,GAAW,GAAG;AAE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ackToTop","__stencil_proxyCustomElement"],"sources":["src/components/ontario-back-to-top/ontario-back-to-top.scss?tag=ontario-back-to-top&encapsulation=shadow","src/components/ontario-back-to-top/ontario-back-to-top.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/fonts.variables' as fonts;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/functions/global.functions' as globalFunctions;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-sizes.variables' as fontSizes;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-weights.variables' as fontWeights;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tfocusPlaceholders;\n\n$ontario-icon-margin-top: 0.125rem;\n\n// Colour variables\n$ontario-colour-back-to-top-background: #e6e6e6;\n$ontario-colour-back-to-top--active-background: #b2b2b2;\n\n.ontario-back-to-top,\n// Fractal component style coverage ↓\n.ontario-back-to-top--default {\n\tposition: fixed;\n\tbottom: 5%;\n\tright: 2%;\n\tvisibility: hidden;\n\topacity: 0;\n\ttransition: 0.1s ease-in-out;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\theight: globalFunctions.px-to-rem(48);\n\tpadding: spacing.$spacing-2 spacing.$spacing-4 spacing.$spacing-2 spacing.$spacing-3;\n\tbackground: $ontario-colour-back-to-top-background;\n\tborder: globalFunctions.px-to-rem(2) solid colours.$ontario-colour-white;\n\tborder-radius: globalVariables.$global-radius;\n\tbox-shadow: 0 globalFunctions.px-to-rem(2) globalFunctions.px-to-rem(4) rgba(colours.$ontario-colour-black, 0.6);\n\tbox-sizing: border-box;\n\tcolor: colours.$ontario-colour-black;\n\tline-height: globalFunctions.px-to-rem(20);\n\tfont-size: fontSizes.$ontario-font-size-standard-body-text;\n\tfont-family: fonts.$ontario-font-open-sans;\n\tfont-weight: fontWeights.$ontario-font-weights-semi-bold;\n\tz-index: 10000;\n\tcursor: pointer;\n\n\t.ontario-icon {\n\t\tmargin: $ontario-icon-margin-top spacing.$spacing-2 spacing.$spacing-0 spacing.$spacing-0;\n\t\twidth: globalFunctions.px-to-rem(32);\n\t\theight: globalFunctions.px-to-rem(32);\n\t}\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-greyscale-20;\n\t}\n\n\t&:focus {\n\t\tbackground-color: $ontario-colour-back-to-top-background;\n\t\tbox-shadow:\n\t\t\t0 0 0 globalFunctions.px-to-rem(4) colours.$ontario-colour-focus,\n\t\t\t0 globalFunctions.px-to-rem(3) globalFunctions.px-to-rem(5) globalFunctions.px-to-rem(3) rgba(0, 0, 0, 0.6);\n\t\toutline: globalFunctions.px-to-rem(4) solid transparent;\n\t\ttransition: 0.1s ease-in-out;\n\t}\n\n\t&:active {\n\t\tbackground-color: $ontario-colour-back-to-top--active-background;\n\t\tbox-shadow:\n\t\t\t0 0 0 globalFunctions.px-to-rem(4) colours.$ontario-colour-focus,\n\t\t\t0 globalFunctions.px-to-rem(5) globalFunctions.px-to-rem(7) globalFunctions.px-to-rem(3) rgba(0, 0, 0, 0.6);\n\t\toutline: globalFunctions.px-to-rem(4) solid transparent;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t@media screen and (max-width: breakpoints.$medium-breakpoint) {\n\t\tflex-direction: column;\n\t\theight: globalFunctions.px-to-rem(76);\n\t\tpadding: globalFunctions.px-to-rem(6) spacing.$spacing-3 globalFunctions.px-to-rem(9) spacing.$spacing-3;\n\n\t\t.ontario-icon {\n\t\t\tmargin: globalFunctions.px-to-rem(1) spacing.$spacing-0 spacing.$spacing-1 spacing.$spacing-0;\n\t\t\twidth: globalFunctions.px-to-rem(32);\n\t\t\theight: globalFunctions.px-to-rem(32);\n\t\t}\n\t}\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tdisplay: block;\n\t\tpadding: spacing.$spacing-1;\n\t\tfont-size: 0;\n\t\twidth: globalFunctions.px-to-rem(48);\n\t\theight: globalFunctions.px-to-rem(48);\n\n\t\t.ontario-icon {\n\t\t\tmargin: spacing.$spacing-2 spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-0;\n\n\t\t\t@-moz-document url-prefix() {\n\t\t\t\tmargin-top: $ontario-icon-margin-top;\n\t\t\t}\n\t\t}\n\t}\n\n\t&.active {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n","import { Component, h, Element, Prop, Listen, State } from '@stencil/core';\n\nimport OntarioIconArrowUp from '../ontario-icon/assets/ontario-icon-arrow-up.svg';\nimport { Language } from '../../utils/common/language-types';\nimport { validateLanguage } from '../../utils/validation/validation-functions';\n\nimport translations from '../../translations/global.i18n.json';\n\n@Component({\n\ttag: 'ontario-back-to-top',\n\tstyleUrl: 'ontario-back-to-top.scss',\n\tshadow: true,\n})\nexport class OntarioBackToTop {\n\t@Element() element: HTMLElement;\n\n\t/**\n\t * The language of the component.\n\t * This is used for translations, and is by default set through event listeners checking for a language property from the header. If no language prop is passed, it will default to English.\n\t */\n\t@Prop({ mutable: true }) language?: Language;\n\n\t@State() translations: any = translations;\n\n\t@State() private displayBackToTop: boolean = false;\n\n\t@State() private scrollYValue: number = 200;\n\n\t/**\n\t * This listens for the window Y scroll value to be above 200 pixels. Once it is, the Back to Top button will toggle the `displayBackToTop` state which will set an active class to control the components' visibility.\n\t */\n\t@Listen('scroll', { target: 'window' })\n\tshowBackToTopButton() {\n\t\tthis.displayBackToTop = window.scrollY > this.scrollYValue;\n\t}\n\n\t/**\n\t * This listens for the `setAppLanguage` event sent from the test language toggler when it is is connected to the DOM. It is used for the initial language when the input component loads.\n\t */\n\t@Listen('setAppLanguage', { target: 'window' })\n\thandleSetAppLanguage(event: CustomEvent<Language>) {\n\t\tif (!this.language) {\n\t\t\tthis.language = validateLanguage(event);\n\t\t}\n\t}\n\n\t@Listen('headerLanguageToggled', { target: 'window' })\n\thandleHeaderLanguageToggled(event: CustomEvent<Language>) {\n\t\tthis.language = validateLanguage(event);\n\t}\n\n\t/**\n\t * Scroll to top functionality when the Back to Top button is clicked\n\t */\n\tprivate scrollToTop() {\n\t\twindow.scrollTo({ top: 0, left: 0, behavior: 'smooth' });\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.language = validateLanguage(this.language);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<button\n\t\t\t\tclass={this.displayBackToTop ? `ontario-back-to-top active` : `ontario-back-to-top`}\n\t\t\t\tonClick={this.scrollToTop}\n\t\t\t\taria-label={this.translations.backToTop.ariaLabel[`${this.language}`]}\n\t\t\t>\n\t\t\t\t<span aria-hidden=\"true\" innerHTML={OntarioIconArrowUp}></span>\n\t\t\t\t{this.translations.backToTop.top[`${this.language}`]}\n\t\t\t</button>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { O as OntarioBadge$1, d as defineCustomElement$1 } from './p-CfKaEpHy.js';
1
+ import { O as OntarioBadge$1, d as defineCustomElement$1 } from './ontario-badge2.js';
2
2
 
3
3
  const OntarioBadge = OntarioBadge$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
  import { r as retrieveEnumKeys } from './utils.js';
3
3
  import { C as ConsoleMessageClass } from './console-message.js';
4
- import { a as validateValueAgainstArray } from './validation-functions.js';
4
+ import { v as validateValueAgainstArray } from './validation-functions.js';
5
5
 
6
6
  var BadgeColourToClass;
7
7
  (function (BadgeColourToClass) {
@@ -1,12 +1,12 @@
1
- import { p as proxyCustomElement, H, h } from './index.js';
2
- import { a as validatePropExists } from './p-CNqFEifG.js';
3
- import { C as ConsoleMessageClass } from './p-CJXRCL8b.js';
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { a as validatePropExists } from './validation-functions.js';
3
+ import { C as ConsoleMessageClass } from './console-message.js';
4
4
 
5
5
  const ontarioBlockquoteCss =
6
6
  '@charset "UTF-8";.ontario-blockquote{border-left:4px solid #4d4d4d;font-family:"Raleway Modified", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1.1875rem;font-weight:400;letter-spacing:0.025rem;line-height:1.56;max-width:48rem;margin:2rem;padding:1.5rem 0 1.5rem 1.5rem;quotes:"“" "”"}@media screen and (max-width: 40em){.ontario-blockquote{font-size:1.125rem;letter-spacing:0.03rem;line-height:1.5;margin:1.5rem 0 2rem 0}}.ontario-blockquote p{margin:0 0 1.5rem 0}.ontario-blockquote p::before{content:open-quote}.ontario-blockquote p::after{content:close-quote}.ontario-blockquote--short{font-size:1.75rem;letter-spacing:0.02rem;line-height:1.5}@media screen and (max-width: 40em){.ontario-blockquote--short{font-size:1.4375rem;line-height:1.43}}.ontario-blockquote__attribution,.ontario-blockquote__byline{display:block;font-size:1rem;letter-spacing:0.025rem;line-height:1.56;text-align:right}@media screen and (max-width: 40em){.ontario-blockquote__attribution,.ontario-blockquote__byline{letter-spacing:0.03rem;line-height:1.5}}.ontario-blockquote__attribution{font-style:normal;font-weight:700}.ontario-blockquote__attribution::before{content:"— "}html[lang=fr] blockquote{quotes:"« " " »"}';
7
7
 
8
8
  const OntarioBlockquote$1 = /*@__PURE__*/ proxyCustomElement(
9
- class OntarioBlockquote extends H {
9
+ class OntarioBlockquote extends HTMLElement {
10
10
  constructor() {
11
11
  super();
12
12
  this.__registerHost();
@@ -1 +1 @@
1
- {"file":"ontario-blockquote.js","mappings":";;;;AAAA,MAAM,oBAAoB,GAAG,ytCAAytC;;MCYzuCA,mBAAiB,iBAAAC,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AAI,EAAE;QACpC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC;;IAGrC,MAAM,GAAA;AACL,QAAA,QACC,CAAA,CAAA,YAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAY,KAAK,EAAE,IAAI,CAAC,UAAU,GAAG,CAA8C,4CAAA,CAAA,GAAG,oBAAoB,EAAA,EACzG,CAAI,CAAA,GAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EAAA,IAAI,CAAC,UAAU,CAAK,EACvB,IAAI,CAAC,WAAW,IAAI,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,iCAAiC,EAAE,EAAA,IAAI,CAAC,WAAW,CAAQ,EAC3F,IAAI,CAAC,MAAM,IAAI,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,4BAA4B,EAAE,EAAA,IAAI,CAAC,MAAM,CAAQ,CACjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioBlockquote","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/ontario-blockquote/ontario-blockquote.scss?tag=ontario-blockquote&encapsulation=shadow","src/components/ontario-blockquote/ontario-blockquote.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/fonts.variables' as fonts;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/line-heights.variables' as lineHeights;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-weights.variables' as fontWeights;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/functions/global.functions' as globalFunctions;\n\n.ontario-blockquote {\n\tborder-left: 4px solid colours.$ontario-greyscale-70;\n\tfont-family: fonts.$ontario-font-raleway-modified;\n\tfont-size: globalFunctions.px-to-rem(19);\n\tfont-weight: fontWeights.$ontario-font-weights-normal;\n\tletter-spacing: 0.025rem;\n\tline-height: lineHeights.$ontario-line-height-8;\n\tmax-width: globalVariables.$standard-width;\n\tmargin: spacing.$spacing-6;\n\tpadding: spacing.$spacing-5 0 spacing.$spacing-5 spacing.$spacing-5;\n\tquotes: '\\201C' '\\201D';\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tfont-size: globalFunctions.px-to-rem(18);\n\t\tletter-spacing: 0.03rem;\n\t\tline-height: lineHeights.$ontario-line-height-7;\n\t\tmargin: spacing.$spacing-5 spacing.$spacing-0 spacing.$spacing-6 spacing.$spacing-0;\n\t}\n}\n\n.ontario-blockquote p {\n\tmargin: spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-5 spacing.$spacing-0;\n\n\t&::before {\n\t\tcontent: open-quote;\n\t}\n\n\t&::after {\n\t\tcontent: close-quote;\n\t}\n}\n\n.ontario-blockquote--short {\n\tfont-size: globalFunctions.px-to-rem(28);\n\tletter-spacing: 0.02rem;\n\tline-height: lineHeights.$ontario-line-height-7;\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tfont-size: globalFunctions.px-to-rem(23);\n\t\tline-height: lineHeights.$ontario-line-height-6;\n\t}\n}\n\n.ontario-blockquote__attribution,\n.ontario-blockquote__byline {\n\tdisplay: block;\n\tfont-size: globalFunctions.px-to-rem(16);\n\tletter-spacing: 0.025rem;\n\tline-height: lineHeights.$ontario-line-height-8;\n\ttext-align: right;\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tletter-spacing: 0.03rem;\n\t\tline-height: lineHeights.$ontario-line-height-7;\n\t}\n}\n\n.ontario-blockquote__attribution {\n\tfont-style: normal;\n\tfont-weight: fontWeights.$ontario-font-weights-bold;\n\n\t&::before {\n\t\tcontent: '\\2014 \\0020';\n\t}\n}\n\nhtml[lang='fr'] blockquote {\n\tquotes: '« ' ' »';\n}\n","import { Component, h, Element, Prop, State, Watch } from '@stencil/core';\n\nimport { Blockquote } from './blockquote.interface';\n\nimport { validatePropExists } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\n\n@Component({\n\ttag: 'ontario-blockquote',\n\tstyleUrl: 'ontario-blockquote.scss',\n\tshadow: true,\n})\nexport class OntarioBlockquote implements Blockquote {\n\t@Element() host: HTMLElement;\n\n\t/**\n\t * Text to be displayed as the quote.\n\t *\n\t * Note that wrapping the quotes in quotations is not needed - this is handled through the component styles\n\t */\n\t@Prop({ mutable: true }) quote: string;\n\n\t/**\n\t * Optional text to be displayed as the attribution (the author) of the quote.\n\t */\n\t@Prop() attribution?: string;\n\n\t/**\n\t * Optional text to be displayed for additional information about the attribution/author.\n\t */\n\t@Prop() byline?: string;\n\n\t@State() shortQuoteLength: number = 140;\n\n\t@State() shortQuote: boolean = false;\n\n\t@State() private quoteState: string;\n\n\t/*\n\t * Watch for changes in the `quote` prop for validation purposes.\n\t *\n\t * If the `quote` prop is not provided, set the `quote` prop to the host textContent (if it exists).\n\t * If the `quote` prop length is 140 characters or less, set the `shortQuote` state to true - this will add additonal classes for the blockquote styles.\n\t */\n\t@Watch('quote')\n\tvalidateQuote() {\n\t\tthis.quoteState = this.quote ?? this.host.textContent ?? '';\n\t\tthis.validateQuoteContent(this.quoteState);\n\t\tthis.shortQuote = this.quoteState?.length <= this.shortQuoteLength ?? true;\n\t}\n\n\t/**\n\t * Print the missing `quote` prop warning message\n\t */\n\tvalidateQuoteContent(newValue: string) {\n\t\tif (validatePropExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' quote ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-blockquote> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateQuote();\n\t}\n\n\t/**\n\t * This helper is used to help load translations for any slots + text content passed in by the user.\n\t */\n\tcomponentDidLoad() {\n\t\tconst observer = new MutationObserver((mutations) => {\n\t\t\tmutations.forEach((mutation) => {\n\t\t\t\tif (mutation.type === 'attributes') {\n\t\t\t\t\tthis.validateQuote();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tconst options = { attributes: true };\n\t\tobserver.observe(this.host, options);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<blockquote class={this.shortQuote ? `ontario-blockquote ontario-blockquote--short` : `ontario-blockquote`}>\n\t\t\t\t<p>{this.quoteState}</p>\n\t\t\t\t{this.attribution && <cite class=\"ontario-blockquote__attribution\">{this.attribution}</cite>}\n\t\t\t\t{this.byline && <cite class=\"ontario-blockquote__byline\">{this.byline}</cite>}\n\t\t\t</blockquote>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"ontario-blockquote.js","mappings":";;;;AAAA,MAAM,oBAAoB,GAAG,ytCAAytC;;MCYzuCA,mBAAiB,iBAAAC,kBAAA,CAAA,MAAA,iBAAA,SAAA,WAAA,CAAA;;;;;;;AAG7B;;;;AAIG;AACsB,IAAA,KAAK;AAE9B;;AAEG;AACK,IAAA,WAAW;AAEnB;;AAEG;AACK,IAAA,MAAM;IAEL,gBAAgB,GAAW,GAAG;IAE9B,UAAU,GAAY,KAAK;AAEnB,IAAA,UAAU;AAE3B;;;;;AAKG;IAEH,aAAa,GAAA;AACZ,QAAA,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE;AAC3D,QAAA,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,UA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AA,EAAA,KAAK,EAAC,iCAAiC,EAAE,EAAA,IAAI,CAAC,WAAW,CAAQ,EAC3F,IAAI,CAAC,MAAM,IAAI,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,4BAA4B,EAAE,EAAA,IAAI,CAAC,MAAM,CAAQ,CACjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioBlockquote","__stencil_proxyCustomElement"],"sources":["src/components/ontario-blockquote/ontario-blockquote.scss?tag=ontario-blockquote&encapsulation=shadow","src/components/ontario-blockquote/ontario-blockquote.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/fonts.variables' as fonts;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/line-heights.variables' as lineHeights;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-weights.variables' as fontWeights;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/functions/global.functions' as globalFunctions;\n\n.ontario-blockquote {\n\tborder-left: 4px solid colours.$ontario-greyscale-70;\n\tfont-family: fonts.$ontario-font-raleway-modified;\n\tfont-size: globalFunctions.px-to-rem(19);\n\tfont-weight: fontWeights.$ontario-font-weights-normal;\n\tletter-spacing: 0.025rem;\n\tline-height: lineHeights.$ontario-line-height-8;\n\tmax-width: globalVariables.$standard-width;\n\tmargin: spacing.$spacing-6;\n\tpadding: spacing.$spacing-5 0 spacing.$spacing-5 spacing.$spacing-5;\n\tquotes: '\\201C' '\\201D';\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tfont-size: globalFunctions.px-to-rem(18);\n\t\tletter-spacing: 0.03rem;\n\t\tline-height: lineHeights.$ontario-line-height-7;\n\t\tmargin: spacing.$spacing-5 spacing.$spacing-0 spacing.$spacing-6 spacing.$spacing-0;\n\t}\n}\n\n.ontario-blockquote p {\n\tmargin: spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-5 spacing.$spacing-0;\n\n\t&::before {\n\t\tcontent: open-quote;\n\t}\n\n\t&::after {\n\t\tcontent: close-quote;\n\t}\n}\n\n.ontario-blockquote--short {\n\tfont-size: globalFunctions.px-to-rem(28);\n\tletter-spacing: 0.02rem;\n\tline-height: lineHeights.$ontario-line-height-7;\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tfont-size: globalFunctions.px-to-rem(23);\n\t\tline-height: lineHeights.$ontario-line-height-6;\n\t}\n}\n\n.ontario-blockquote__attribution,\n.ontario-blockquote__byline {\n\tdisplay: block;\n\tfont-size: globalFunctions.px-to-rem(16);\n\tletter-spacing: 0.025rem;\n\tline-height: lineHeights.$ontario-line-height-8;\n\ttext-align: right;\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tletter-spacing: 0.03rem;\n\t\tline-height: lineHeights.$ontario-line-height-7;\n\t}\n}\n\n.ontario-blockquote__attribution {\n\tfont-style: normal;\n\tfont-weight: fontWeights.$ontario-font-weights-bold;\n\n\t&::before {\n\t\tcontent: '\\2014 \\0020';\n\t}\n}\n\nhtml[lang='fr'] blockquote {\n\tquotes: '« ' ' »';\n}\n","import { Component, h, Element, Prop, State, Watch } from '@stencil/core';\n\nimport { Blockquote } from './blockquote.interface';\n\nimport { validatePropExists } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\n\n@Component({\n\ttag: 'ontario-blockquote',\n\tstyleUrl: 'ontario-blockquote.scss',\n\tshadow: true,\n})\nexport class OntarioBlockquote implements Blockquote {\n\t@Element() host: HTMLElement;\n\n\t/**\n\t * Text to be displayed as the quote.\n\t *\n\t * Note that wrapping the quotes in quotations is not needed - this is handled through the component styles\n\t */\n\t@Prop({ mutable: true }) quote: string;\n\n\t/**\n\t * Optional text to be displayed as the attribution (the author) of the quote.\n\t */\n\t@Prop() attribution?: string;\n\n\t/**\n\t * Optional text to be displayed for additional information about the attribution/author.\n\t */\n\t@Prop() byline?: string;\n\n\t@State() shortQuoteLength: number = 140;\n\n\t@State() shortQuote: boolean = false;\n\n\t@State() private quoteState: string;\n\n\t/*\n\t * Watch for changes in the `quote` prop for validation purposes.\n\t *\n\t * If the `quote` prop is not provided, set the `quote` prop to the host textContent (if it exists).\n\t * If the `quote` prop length is 140 characters or less, set the `shortQuote` state to true - this will add additonal classes for the blockquote styles.\n\t */\n\t@Watch('quote')\n\tvalidateQuote() {\n\t\tthis.quoteState = this.quote ?? this.host.textContent ?? '';\n\t\tthis.validateQuoteContent(this.quoteState);\n\t\tthis.shortQuote = this.quoteState?.length <= this.shortQuoteLength ?? true;\n\t}\n\n\t/**\n\t * Print the missing `quote` prop warning message\n\t */\n\tvalidateQuoteContent(newValue: string) {\n\t\tif (validatePropExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' quote ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-blockquote> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateQuote();\n\t}\n\n\t/**\n\t * This helper is used to help load translations for any slots + text content passed in by the user.\n\t */\n\tcomponentDidLoad() {\n\t\tconst observer = new MutationObserver((mutations) => {\n\t\t\tmutations.forEach((mutation) => {\n\t\t\t\tif (mutation.type === 'attributes') {\n\t\t\t\t\tthis.validateQuote();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tconst options = { attributes: true };\n\t\tobserver.observe(this.host, options);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<blockquote class={this.shortQuote ? `ontario-blockquote ontario-blockquote--short` : `ontario-blockquote`}>\n\t\t\t\t<p>{this.quoteState}</p>\n\t\t\t\t{this.attribution && <cite class=\"ontario-blockquote__attribution\">{this.attribution}</cite>}\n\t\t\t\t{this.byline && <cite class=\"ontario-blockquote__byline\">{this.byline}</cite>}\n\t\t\t</blockquote>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
- import { p as proxyCustomElement, H, h } from './index.js';
2
- import { v as validateValueAgainstArray, a as validatePropExists } from './p-CNqFEifG.js';
3
- import { C as ConsoleMessageClass } from './p-CJXRCL8b.js';
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { v as validateValueAgainstArray, a as validatePropExists } from './validation-functions.js';
3
+ import { C as ConsoleMessageClass } from './console-message.js';
4
4
 
5
5
  const ButtonTypes = ['primary', 'secondary', 'tertiary', 'internalThemeDark'];
6
6
  const HtmlTypes = ['button', 'reset', 'submit'];
@@ -9,7 +9,7 @@ const ontarioButtonCss =
9
9
  '.ontario-button:focus,.ontario-button:active{box-shadow:0 0 0 4px #009ADB;outline:4px solid transparent;transition:box-shadow 0.1s ease-in-out}.ontario-button{border:none;border-radius:4px;box-sizing:border-box;box-shadow:none;display:inline-block;font-size:1.125rem;font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-weight:600;line-height:1.5555555556;margin:0 1.75rem 1.5rem 0;min-width:10rem;padding:0.625rem 1.5rem;text-align:center;text-decoration:none;cursor:pointer}@media screen and (max-width: 40em){.ontario-button{margin-right:0;display:block;width:100%}}.ontario-button .ontario-icon{margin-right:4px}.ontario-button--primary{background-color:#0066CC;color:#FFFFFF}.ontario-button--primary:hover{background-color:#00478F;color:#FFFFFF}.ontario-button--primary:focus{background-color:#00478F;color:#FFFFFF;transition:background-color 0.2s ease-out, box-shadow 0.1s ease-in-out}.ontario-button--primary:active{background-color:#002142;color:#FFFFFF;transition:background-color 0s, box-shadow 0.1s ease-in-out}.ontario-button--primary:visited{color:#FFFFFF}.ontario-button--secondary{background-color:#FFFFFF;border:2px solid #0066CC;color:#0066CC;padding-top:0.5rem;padding-bottom:0.5rem}.ontario-button--secondary:hover{background-color:#e0f0ff;border-color:#00478F;color:#00478F}.ontario-button--secondary:focus{background-color:#e0f0ff;border-color:#00478F;color:#00478F;transition:background-color 0.2s ease-out, box-shadow 0.1s ease-in-out}.ontario-button--secondary:active{background-color:#c2e0ff;border-color:#002142;color:#002142;transition:background-color 0s, box-shadow 0.1s ease-in-out}.ontario-button--secondary:visited{color:#0066CC}.ontario-button--tertiary{background-color:transparent;color:#0066CC;text-decoration:underline}.ontario-button--tertiary:hover{background-color:#e8e8e8;color:#00478F;text-decoration:underline}.ontario-button--tertiary:focus{background-color:#e8e8e8;color:#00478F;text-decoration:underline;transition:background-color 0.2s ease-out, box-shadow 0.1s ease-in-out}.ontario-button--tertiary:active{background-color:#d1d1d1;color:#002142;text-decoration:underline;transition:background-color 0s, box-shadow 0.1s ease-in-out}.ontario-button--tertiary:visited{color:#0066CC}.ontario-button--internalThemeDark{background-color:#1a1a1a;border:2px solid #FFFFFF;color:#FFFFFF}.ontario-button--internalThemeDark:hover{background-color:#4d4d4d}.ontario-button--internalThemeDark:focus{background-color:#4d4d4d;transition:background-color 0.2s ease-out, box-shadow 0.1s ease-in-out}.ontario-button--internalThemeDark:active{background-color:#4d4d4d;transition:background-color 0s, box-shadow 0.1s ease-in-out}.ontario-button--internalThemeDark:visited{color:#0066CC}';
10
10
 
11
11
  const OntarioButton$1 = /*@__PURE__*/ proxyCustomElement(
12
- class OntarioButton extends H {
12
+ class OntarioButton extends HTMLElement {
13
13
  constructor() {
14
14
  super();
15
15
  this.__registerHost();
@@ -1 +1 @@
1
- {"file":"ontario-button.js","mappings":";;;;AAAO,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,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gBAAgB,EAAE;QACvB,IAAI,CAAC,YAAY,EAAE;QACnB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,UAAU;;IAG3D,gBAAgB,GAAA;;QAEf,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC,CAAC,SAAS,KAAI;AACnD,YAAA,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,KAAI;AAC9B,gBAAA,IAAI,QAAQ,CAAC,IAAI,KAAK,YAAY,EAAE;oBACnC,IAAI,CAAC,kBAAkB,EAAE;;AAE3B,aAAC,CAAC;AACH,SAAC,CAAC;AAEF,QAAA,MAAM,OAAO,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE;QACpC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC;;AAGpC,QAAA,IAAI,IAAI,CAAC,aAAa,KAAK,QAAQ,EAAE;YACpC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAK;AAC7C,gBAAA,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS;gBAC/B,IAAI,EAAE,aAAa,EAAE;AACtB,aAAC,CAAC;;;IAIJ,MAAM,GAAA;QACL,QACC,+DACC,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAuB,CAAC,EACvD,IAAI,EAAE,IAAI,CAAC,aAAa,EACxB,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,gBACV,IAAI,CAAC,aAAa,EAC9B,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,EAAA,EAEf,IAAI,CAAC,UAAU,CACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioButton","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/ontario-button/ontario-button.types.ts","src/components/ontario-button/ontario-button.scss?tag=ontario-button&encapsulation=shadow","src/components/ontario-button/ontario-button.tsx"],"sourcesContent":["export const ButtonTypes = ['primary', 'secondary', 'tertiary', 'internalThemeDark'] as const;\nexport const HtmlTypes = ['button', 'reset', 'submit'] as const;\n\nexport type ButtonType = (typeof ButtonTypes)[number];\nexport type HtmlType = (typeof HtmlTypes)[number];\n","@use 'sass:math';\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-weights.variables' as fontWeights;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/fonts.variables' as fonts;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tplaceholders;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tfocusPlaceholders;\n\n$ontario-button-bg-primary: colours.$ontario-colour-link;\n$ontario-button-bg-primary--hover: colours.$ontario-colour-link--hover;\n$ontario-button-bg-primary--active: colours.$ontario-colour-link--active;\n$ontario-button-bg-secondary: colours.$ontario-colour-white;\n\n.ontario-button {\n\tborder: none;\n\tborder-radius: globalVariables.$global-radius;\n\tbox-sizing: border-box;\n\tbox-shadow: none;\n\tdisplay: inline-block;\n\tfont-size: 1.125rem;\n\tfont-family: fonts.$ontario-font-open-sans;\n\tfont-weight: fontWeights.$ontario-font-weights-semi-bold;\n\tline-height: math.div(14, 9);\n\tmargin: spacing.$spacing-0 (spacing.$spacing-4 + spacing.$spacing-3) spacing.$spacing-5 spacing.$spacing-0;\n\tmin-width: 10rem;\n\tpadding: math.div((spacing.$spacing-4 + spacing.$spacing-1), 2) spacing.$spacing-5;\n\ttext-align: center;\n\ttext-decoration: none;\n\tcursor: pointer;\n\n\t&:focus,\n\t&:active {\n\t\t@extend %ontario-focus;\n\t}\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tmargin-right: 0;\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t}\n\n\t.ontario-icon {\n\t\tmargin-right: 4px;\n\t}\n}\n\n.ontario-button--primary {\n\tbackground-color: $ontario-button-bg-primary;\n\tcolor: colours.$ontario-colour-white;\n\n\t&:hover {\n\t\tbackground-color: $ontario-button-bg-primary--hover;\n\t\tcolor: colours.$ontario-colour-white;\n\t}\n\n\t&:focus {\n\t\tbackground-color: $ontario-button-bg-primary--hover;\n\t\tcolor: colours.$ontario-colour-white;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: $ontario-button-bg-primary--active;\n\t\tcolor: colours.$ontario-colour-white;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-white;\n\t}\n}\n\n.ontario-button--secondary {\n\tbackground-color: $ontario-button-bg-secondary;\n\tborder: globalVariables.$border-size-standard solid colours.$ontario-colour-link;\n\tcolor: colours.$ontario-colour-link;\n\tpadding-top: spacing.$spacing-2;\n\tpadding-bottom: spacing.$spacing-2;\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-colour-button-secondary--hover;\n\t\tborder-color: colours.$ontario-colour-link--hover;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t}\n\n\t&:focus {\n\t\tbackground-color: colours.$ontario-colour-button-secondary--hover;\n\t\tborder-color: colours.$ontario-colour-link--hover;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: colours.$ontario-colour-button-secondary--active;\n\t\tborder-color: colours.$ontario-colour-link--active;\n\t\tcolor: colours.$ontario-colour-link--active;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-link;\n\t}\n}\n\n.ontario-button--tertiary {\n\tbackground-color: transparent;\n\tcolor: colours.$ontario-colour-link;\n\ttext-decoration: underline;\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-colour-button-tertiary--hover;\n\t\tcolor: $ontario-button-bg-primary--hover;\n\t\ttext-decoration: underline;\n\t}\n\n\t&:focus {\n\t\tbackground-color: colours.$ontario-colour-button-tertiary--hover;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t\ttext-decoration: underline;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: colours.$ontario-colour-button-tertiary--active;\n\t\tcolor: colours.$ontario-colour-link--active;\n\t\ttext-decoration: underline;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-link;\n\t}\n}\n\n.ontario-button--internalThemeDark {\n\tbackground-color: colours.$ontario-colour-black;\n\tborder: globalVariables.$border-size-standard solid colours.$ontario-colour-white;\n\tcolor: colours.$ontario-colour-white;\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-greyscale-70;\n\t}\n\n\t&:focus {\n\t\tbackground-color: colours.$ontario-greyscale-70;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: colours.$ontario-greyscale-70;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-link;\n\t}\n}\n","import { Component, Prop, Element, h, Watch, State, AttachInternals } from '@stencil/core';\n\nimport { Button } from './button.interface';\nimport { ButtonType, ButtonTypes, HtmlType, HtmlTypes } from './ontario-button.types';\n\nimport { validatePropExists, validateValueAgainstArray } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\n\n@Component({\n\ttag: 'ontario-button',\n\tstyleUrl: 'ontario-button.scss',\n\tshadow: true,\n\tformAssociated: true,\n})\nexport class OntarioButton implements Button {\n\t@Element() host: HTMLElement;\n\t@AttachInternals() internals: ElementInternals;\n\n\t/**\n\t * The type of button to render.\n\t *\n\t * If no type is passed, it will default to 'secondary'.\n\t */\n\t@Prop() type: ButtonType = 'secondary';\n\n\t/**\n\t * The native HTML button type the button should use.\n\t *\n\t * If no htmlType is passed, it will default to 'button'.\n\t */\n\t@Prop() htmlType: HtmlType = 'button';\n\n\t/**\n\t * Text to be displayed within the button. This will override the text provided through the host element textContent.\n\t *\n\t * @example\n\t * <ontario-button label=\"Label Text\">Text</ontario-button>\n\t *\n\t * The resulting button will have the label `\"Label Text\"`.\n\t */\n\t@Prop() label?: string;\n\n\t/**\n\t * Provides more context as to what the button interaction is doing. This should only be used for accessibility purposes, if the button interaction requires more description than what the text provides.\n\t *\n\t * This is optional.\n\t *\n\t * @example\n\t * <ontario-button aria-label-text=\"Click button to open map\">Open</ontario button>\n\t */\n\t@Prop({ mutable: true }) ariaLabelText?: string;\n\n\t/**\n\t * The unique identifier of the button. This is optional - if no ID is passed, one will be generated.\n\t */\n\t@Prop({ mutable: true }) elementId?: string;\n\n\t/**\n\t * Mutable variable, for internal use only.\n\t * Set the button's type depending on validation result.\n\t */\n\t@State() private typeState: string;\n\n\t/**\n\t * Mutable variable, for internal use only.\n\t * Set the native HTML button type depending on validation result.\n\t */\n\t@State() private htmlTypeState: string;\n\n\t@State() private labelState: string;\n\n\t/**\n\t * A reference to the internal button element.\n\t */\n\n\tprivate buttonRef: HTMLButtonElement;\n\n\t/*\n\t * Watch for changes to the `label` property for validation purposes.\n\t *\n\t * If no `label` prop is provided, the `label` prop will be set to the host element textContent (if it exists).\n\t */\n\t@Watch('label')\n\tprivate updateLabelContent() {\n\t\tthis.labelState = this.label ?? this.host.textContent ?? '';\n\t\tthis.validateLabelContent(this.labelState);\n\t}\n\n\t/**\n\t * Watch for changes to the `type` property for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `type` will be set to its default (`secondary`).\n\t * If a match is found in one of the array values then `type` will be set to the matching array key value.\n\t */\n\t@Watch('type')\n\tvalidateType() {\n\t\tconst isValid = validateValueAgainstArray(this.type, ButtonTypes);\n\t\tthis.typeState = isValid ? this.type : this.warnDefaultType();\n\t}\n\n\t/**\n\t * Watch for changes to the `htmlType` property for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `htmlType` will be set to its default (`submit`).\n\t * If a match is found in one of the array values then `htmlType` will be set to the matching array key value.\n\t */\n\t@Watch('htmlType')\n\tvalidateHtmlType() {\n\t\tconst isValid = validateValueAgainstArray(this.htmlType, HtmlTypes);\n\t\tthis.htmlTypeState = isValid ? this.htmlType : this.warnDefaultHtmlType();\n\t}\n\n\t/**\n\t * Print the missing `label` prop warning message\n\t */\n\tvalidateLabelContent(newValue: string) {\n\t\tif (validatePropExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' label ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-button> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Print the invalid `type` prop warning message\n\t * @returns default type (secondary)\n\t */\n\tprivate warnDefaultType(): ButtonType {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' type ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-button> ')\n\t\t\t.addRegularText('was set to an invalid type; only')\n\t\t\t.addMonospaceText(' primary, secondary, or tertiary ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' secondary ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn 'secondary';\n\t}\n\n\t/**\n\t * Print the invalid `htmlType` warning message\n\t * @returns default htmlType (button)\n\t */\n\tprivate warnDefaultHtmlType(): HtmlType {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' htmlType ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-button> ')\n\t\t\t.addRegularText('was set to an invalid htmlType; only')\n\t\t\t.addMonospaceText(' button, reset, or submit ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' button ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn 'button';\n\t}\n\n\t/**\n\t * @returns the classes of the button based of the button's `type`.\n\t */\n\tprivate getClass() {\n\t\treturn `ontario-button ontario-button--${this.typeState}`;\n\t}\n\n\tpublic getId(): string {\n\t\treturn this.elementId ?? '';\n\t}\n\n\t/**\n\t * Set `buttonId`, `label`, and `ariaLabel` using internal component logic.\n\t */\n\tcomponentWillLoad() {\n\t\tthis.updateLabelContent();\n\t\tthis.validateHtmlType();\n\t\tthis.validateType();\n\t\tthis.ariaLabelText = this.ariaLabelText ?? this.labelState;\n\t}\n\n\tcomponentDidLoad() {\n\t\t// Used to help load translations for any slots + text content passed in by the user.\n\t\tconst observer = new MutationObserver((mutations) => {\n\t\t\tmutations.forEach((mutation) => {\n\t\t\t\tif (mutation.type === 'attributes') {\n\t\t\t\t\tthis.updateLabelContent();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tconst options = { attributes: true };\n\t\tobserver.observe(this.host, options);\n\n\t\t// Add a click event listener to handle submitting a form\n\t\tif (this.htmlTypeState === 'submit') {\n\t\t\tthis.buttonRef.addEventListener('click', () => {\n\t\t\t\tconst { form } = this.internals;\n\t\t\t\tform?.requestSubmit();\n\t\t\t});\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<button\n\t\t\t\tref={(el) => (this.buttonRef = el as HTMLButtonElement)}\n\t\t\t\ttype={this.htmlTypeState}\n\t\t\t\tclass={this.getClass()}\n\t\t\t\taria-label={this.ariaLabelText}\n\t\t\t\tid={this.getId()}\n\t\t\t>\n\t\t\t\t{this.labelState}\n\t\t\t</button>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"ontario-button.js","mappings":";;;;AAAO,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,mBAAmB,CAAU;AACtF,MAAM,SAAS,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAU;;ACD/D,MAAM,gBAAgB,GAAG,urFAAurF;;MCcnsFA,eAAa,iBAAAC,kBAAA,CAAA,MAAA,aAAA,SAAA,WAAA,CAAA;;;;;;;;AAEN,IAAA,SAAS;AAE5B;;;;AAIG;IACK,IAAI,GAAe,WAAW;AAEtC;;;;AAIG;IACK,QAAQ,GAAa,QAAQ;AAErC;;;;;;;AAOG;AACK,IAAA,KAAK;AAEb;;;;;;;AAOG;AACsB,IAAA,aAAa;AAEtC;;AAEG;AACsB,IAAA,SAAS;AAElC;;;AAGG;AACc,IAAA,SAAS;AAE1B;;;AAGG;AACc,IAAA,aAAa;AAEb,IAAA,UAAU;AAE3B;;AAEG;AAEK,IAAA,SAAS;AAEjB;;;;AAIG;IAEK,kBAAkB,GAAA;AACzB,QAAA,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE;AAC3D,QAAA,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,UAAU,CAAC;;AAG3C;;;;;AAKG;IAEH,YAAY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IAIJ,MAAM,GAAA;QACL,QACC,+DACC,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAuB,CAAC,EACvD,IAAI,EAAE,IAAI,CAAC,aAAa,EACxB,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,gBACV,IAAI,CAAC,aAAa,EAC9B,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,EAAA,EAEf,IAAI,CAAC,UAAU,CACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioButton","__stencil_proxyCustomElement"],"sources":["src/components/ontario-button/ontario-button.types.ts","src/components/ontario-button/ontario-button.scss?tag=ontario-button&encapsulation=shadow","src/components/ontario-button/ontario-button.tsx"],"sourcesContent":["export const ButtonTypes = ['primary', 'secondary', 'tertiary', 'internalThemeDark'] as const;\nexport const HtmlTypes = ['button', 'reset', 'submit'] as const;\n\nexport type ButtonType = (typeof ButtonTypes)[number];\nexport type HtmlType = (typeof HtmlTypes)[number];\n","@use 'sass:math';\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-weights.variables' as fontWeights;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/fonts.variables' as fonts;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tplaceholders;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tfocusPlaceholders;\n\n$ontario-button-bg-primary: colours.$ontario-colour-link;\n$ontario-button-bg-primary--hover: colours.$ontario-colour-link--hover;\n$ontario-button-bg-primary--active: colours.$ontario-colour-link--active;\n$ontario-button-bg-secondary: colours.$ontario-colour-white;\n\n.ontario-button {\n\tborder: none;\n\tborder-radius: globalVariables.$global-radius;\n\tbox-sizing: border-box;\n\tbox-shadow: none;\n\tdisplay: inline-block;\n\tfont-size: 1.125rem;\n\tfont-family: fonts.$ontario-font-open-sans;\n\tfont-weight: fontWeights.$ontario-font-weights-semi-bold;\n\tline-height: math.div(14, 9);\n\tmargin: spacing.$spacing-0 (spacing.$spacing-4 + spacing.$spacing-3) spacing.$spacing-5 spacing.$spacing-0;\n\tmin-width: 10rem;\n\tpadding: math.div((spacing.$spacing-4 + spacing.$spacing-1), 2) spacing.$spacing-5;\n\ttext-align: center;\n\ttext-decoration: none;\n\tcursor: pointer;\n\n\t&:focus,\n\t&:active {\n\t\t@extend %ontario-focus;\n\t}\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tmargin-right: 0;\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t}\n\n\t.ontario-icon {\n\t\tmargin-right: 4px;\n\t}\n}\n\n.ontario-button--primary {\n\tbackground-color: $ontario-button-bg-primary;\n\tcolor: colours.$ontario-colour-white;\n\n\t&:hover {\n\t\tbackground-color: $ontario-button-bg-primary--hover;\n\t\tcolor: colours.$ontario-colour-white;\n\t}\n\n\t&:focus {\n\t\tbackground-color: $ontario-button-bg-primary--hover;\n\t\tcolor: colours.$ontario-colour-white;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: $ontario-button-bg-primary--active;\n\t\tcolor: colours.$ontario-colour-white;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-white;\n\t}\n}\n\n.ontario-button--secondary {\n\tbackground-color: $ontario-button-bg-secondary;\n\tborder: globalVariables.$border-size-standard solid colours.$ontario-colour-link;\n\tcolor: colours.$ontario-colour-link;\n\tpadding-top: spacing.$spacing-2;\n\tpadding-bottom: spacing.$spacing-2;\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-colour-button-secondary--hover;\n\t\tborder-color: colours.$ontario-colour-link--hover;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t}\n\n\t&:focus {\n\t\tbackground-color: colours.$ontario-colour-button-secondary--hover;\n\t\tborder-color: colours.$ontario-colour-link--hover;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: colours.$ontario-colour-button-secondary--active;\n\t\tborder-color: colours.$ontario-colour-link--active;\n\t\tcolor: colours.$ontario-colour-link--active;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-link;\n\t}\n}\n\n.ontario-button--tertiary {\n\tbackground-color: transparent;\n\tcolor: colours.$ontario-colour-link;\n\ttext-decoration: underline;\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-colour-button-tertiary--hover;\n\t\tcolor: $ontario-button-bg-primary--hover;\n\t\ttext-decoration: underline;\n\t}\n\n\t&:focus {\n\t\tbackground-color: colours.$ontario-colour-button-tertiary--hover;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t\ttext-decoration: underline;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: colours.$ontario-colour-button-tertiary--active;\n\t\tcolor: colours.$ontario-colour-link--active;\n\t\ttext-decoration: underline;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-link;\n\t}\n}\n\n.ontario-button--internalThemeDark {\n\tbackground-color: colours.$ontario-colour-black;\n\tborder: globalVariables.$border-size-standard solid colours.$ontario-colour-white;\n\tcolor: colours.$ontario-colour-white;\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-greyscale-70;\n\t}\n\n\t&:focus {\n\t\tbackground-color: colours.$ontario-greyscale-70;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: colours.$ontario-greyscale-70;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-link;\n\t}\n}\n","import { Component, Prop, Element, h, Watch, State, AttachInternals } from '@stencil/core';\n\nimport { Button } from './button.interface';\nimport { ButtonType, ButtonTypes, HtmlType, HtmlTypes } from './ontario-button.types';\n\nimport { validatePropExists, validateValueAgainstArray } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\n\n@Component({\n\ttag: 'ontario-button',\n\tstyleUrl: 'ontario-button.scss',\n\tshadow: true,\n\tformAssociated: true,\n})\nexport class OntarioButton implements Button {\n\t@Element() host: HTMLElement;\n\t@AttachInternals() internals: ElementInternals;\n\n\t/**\n\t * The type of button to render.\n\t *\n\t * If no type is passed, it will default to 'secondary'.\n\t */\n\t@Prop() type: ButtonType = 'secondary';\n\n\t/**\n\t * The native HTML button type the button should use.\n\t *\n\t * If no htmlType is passed, it will default to 'button'.\n\t */\n\t@Prop() htmlType: HtmlType = 'button';\n\n\t/**\n\t * Text to be displayed within the button. This will override the text provided through the host element textContent.\n\t *\n\t * @example\n\t * <ontario-button label=\"Label Text\">Text</ontario-button>\n\t *\n\t * The resulting button will have the label `\"Label Text\"`.\n\t */\n\t@Prop() label?: string;\n\n\t/**\n\t * Provides more context as to what the button interaction is doing. This should only be used for accessibility purposes, if the button interaction requires more description than what the text provides.\n\t *\n\t * This is optional.\n\t *\n\t * @example\n\t * <ontario-button aria-label-text=\"Click button to open map\">Open</ontario button>\n\t */\n\t@Prop({ mutable: true }) ariaLabelText?: string;\n\n\t/**\n\t * The unique identifier of the button. This is optional - if no ID is passed, one will be generated.\n\t */\n\t@Prop({ mutable: true }) elementId?: string;\n\n\t/**\n\t * Mutable variable, for internal use only.\n\t * Set the button's type depending on validation result.\n\t */\n\t@State() private typeState: string;\n\n\t/**\n\t * Mutable variable, for internal use only.\n\t * Set the native HTML button type depending on validation result.\n\t */\n\t@State() private htmlTypeState: string;\n\n\t@State() private labelState: string;\n\n\t/**\n\t * A reference to the internal button element.\n\t */\n\n\tprivate buttonRef: HTMLButtonElement;\n\n\t/*\n\t * Watch for changes to the `label` property for validation purposes.\n\t *\n\t * If no `label` prop is provided, the `label` prop will be set to the host element textContent (if it exists).\n\t */\n\t@Watch('label')\n\tprivate updateLabelContent() {\n\t\tthis.labelState = this.label ?? this.host.textContent ?? '';\n\t\tthis.validateLabelContent(this.labelState);\n\t}\n\n\t/**\n\t * Watch for changes to the `type` property for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `type` will be set to its default (`secondary`).\n\t * If a match is found in one of the array values then `type` will be set to the matching array key value.\n\t */\n\t@Watch('type')\n\tvalidateType() {\n\t\tconst isValid = validateValueAgainstArray(this.type, ButtonTypes);\n\t\tthis.typeState = isValid ? this.type : this.warnDefaultType();\n\t}\n\n\t/**\n\t * Watch for changes to the `htmlType` property for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `htmlType` will be set to its default (`submit`).\n\t * If a match is found in one of the array values then `htmlType` will be set to the matching array key value.\n\t */\n\t@Watch('htmlType')\n\tvalidateHtmlType() {\n\t\tconst isValid = validateValueAgainstArray(this.htmlType, HtmlTypes);\n\t\tthis.htmlTypeState = isValid ? this.htmlType : this.warnDefaultHtmlType();\n\t}\n\n\t/**\n\t * Print the missing `label` prop warning message\n\t */\n\tvalidateLabelContent(newValue: string) {\n\t\tif (validatePropExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' label ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-button> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Print the invalid `type` prop warning message\n\t * @returns default type (secondary)\n\t */\n\tprivate warnDefaultType(): ButtonType {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' type ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-button> ')\n\t\t\t.addRegularText('was set to an invalid type; only')\n\t\t\t.addMonospaceText(' primary, secondary, or tertiary ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' secondary ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn 'secondary';\n\t}\n\n\t/**\n\t * Print the invalid `htmlType` warning message\n\t * @returns default htmlType (button)\n\t */\n\tprivate warnDefaultHtmlType(): HtmlType {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' htmlType ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-button> ')\n\t\t\t.addRegularText('was set to an invalid htmlType; only')\n\t\t\t.addMonospaceText(' button, reset, or submit ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' button ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn 'button';\n\t}\n\n\t/**\n\t * @returns the classes of the button based of the button's `type`.\n\t */\n\tprivate getClass() {\n\t\treturn `ontario-button ontario-button--${this.typeState}`;\n\t}\n\n\tpublic getId(): string {\n\t\treturn this.elementId ?? '';\n\t}\n\n\t/**\n\t * Set `buttonId`, `label`, and `ariaLabel` using internal component logic.\n\t */\n\tcomponentWillLoad() {\n\t\tthis.updateLabelContent();\n\t\tthis.validateHtmlType();\n\t\tthis.validateType();\n\t\tthis.ariaLabelText = this.ariaLabelText ?? this.labelState;\n\t}\n\n\tcomponentDidLoad() {\n\t\t// Used to help load translations for any slots + text content passed in by the user.\n\t\tconst observer = new MutationObserver((mutations) => {\n\t\t\tmutations.forEach((mutation) => {\n\t\t\t\tif (mutation.type === 'attributes') {\n\t\t\t\t\tthis.updateLabelContent();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tconst options = { attributes: true };\n\t\tobserver.observe(this.host, options);\n\n\t\t// Add a click event listener to handle submitting a form\n\t\tif (this.htmlTypeState === 'submit') {\n\t\t\tthis.buttonRef.addEventListener('click', () => {\n\t\t\t\tconst { form } = this.internals;\n\t\t\t\tform?.requestSubmit();\n\t\t\t});\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<button\n\t\t\t\tref={(el) => (this.buttonRef = el as HTMLButtonElement)}\n\t\t\t\ttype={this.htmlTypeState}\n\t\t\t\tclass={this.getClass()}\n\t\t\t\taria-label={this.ariaLabelText}\n\t\t\t\tid={this.getId()}\n\t\t\t>\n\t\t\t\t{this.labelState}\n\t\t\t</button>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,18 +1,18 @@
1
- import { p as proxyCustomElement, H } from './index.js';
1
+ import { proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
2
2
  import {
3
3
  i as isValidHeadingLevel,
4
4
  a as isValidHighlightColour,
5
5
  g as generateCalloutAside,
6
6
  H as HeadingContentTypes,
7
- } from './p-dXtLd1df.js';
8
- import { v as validateValueAgainstArray } from './p-CNqFEifG.js';
9
- import { C as ConsoleMessageClass } from './p-CJXRCL8b.js';
7
+ } from './callout-aside-helpers.js';
8
+ import { v as validateValueAgainstArray } from './validation-functions.js';
9
+ import { C as ConsoleMessageClass } from './console-message.js';
10
10
 
11
11
  const ontarioCalloutCss =
12
12
  '@charset "UTF-8";h6,.ontario-h6,h5,.ontario-h5,h4,.ontario-h4,h3,.ontario-h3,h2,.ontario-h2,h1,.ontario-h1{font-style:normal;font-weight:700;text-rendering:optimizeLegibility;margin-bottom:1rem;font-feature-settings:normal;font-family:"Raleway Modified", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif}h1,.ontario-h1{font-size:2rem;letter-spacing:0.04rem;line-height:1.29;margin:2.5rem 0 1.5rem 0;max-width:70rem}@media screen and (min-width: 40em){h1,.ontario-h1{font-size:2.5rem;letter-spacing:0.04rem;line-height:1.2}}h2,.ontario-h2{font-size:1.6875rem;letter-spacing:0.03rem;line-height:1.37;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h2,.ontario-h2{font-size:2.0625rem;letter-spacing:0.02rem;line-height:1.33}}h3,.ontario-h3{font-size:1.4375rem;letter-spacing:0.02rem;line-height:1.39;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h3,.ontario-h3{font-size:1.75rem;letter-spacing:0.02rem;line-height:1.43}}h4,.ontario-h4{font-size:1.25rem;letter-spacing:0.03rem;line-height:1.5;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h4,.ontario-h4{font-size:1.5rem;letter-spacing:0.0313rem;line-height:1.5}}h5,.ontario-h5{font-size:1.125rem;letter-spacing:0.03rem;line-height:1.56;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h5,.ontario-h5{font-size:1.1875rem;letter-spacing:0.025rem;line-height:1.5}}h6,.ontario-h6{font-size:1rem;line-height:1.56;letter-spacing:0.03rem;max-width:48rem;margin:0 0 0.75rem 0}@media screen and (min-width: 40em){h6,.ontario-h6{font-size:1rem;letter-spacing:0.025rem;line-height:1.5}}.ontario-lead-statement{font-size:1.25rem;line-height:1.6;max-width:70rem}@media screen and (min-width: 40em){.ontario-lead-statement{font-size:1.375rem}}html{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem}body{font-size:1rem;line-height:1.6;background-color:#FFFFFF;color:#1a1a1a;margin:0}p{font-size:inherit;margin-bottom:1.25rem;text-rendering:optimizeLegibility;margin:0 0 1.5rem 0}cite{font-style:italic;line-height:inherit}strong{font-weight:700;line-height:inherit}*,*::before,*::after{box-sizing:inherit}main p,main p:not(.ontario-lead-statement),main dd,main li{max-width:48rem}hr{border:0;padding:0;margin:2.5rem 0;border-bottom:4px solid #cccccc}hr.ontario-hr--dark{border-bottom:4px solid #1a1a1a}a{color:#0066CC;text-decoration:underline}a:visited{color:#551A8B}a:hover{color:#00478F}a:active{color:#002142}a:focus{-moz-box-shadow:0 0 0 4px #009ADB;-webkit-box-shadow:0 0 0 4px #009ADB;box-shadow:0 0 0 4px #009ADB;outline:4px solid transparent;transition:all 0.1s ease-in-out}​p{margin:0 0 1.5rem 0}​p+h1,p+h2,p+h3,p+h4,p+h5,p+h6,ul+h1,ul+h2,ul+h3,ul+h4,ul+h5,ul+h6,ol+h1,ol+h2,ol+h3,ol+h4,ol+h5,ol+h6,h1+h2,h2+h3,h3+h4,h4+h5,h5+h6{margin-top:2rem}p code,td code,li code{line-height:2.25rem}input[type=text],input[type=number],input[type=email],input[type=date],input[type=color],input[type=search],input[type=tel],textarea{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}input[type=checkbox]+label,input[type=radio]+label{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:400;margin-left:0;margin-right:0}fieldset{border:0;margin:0;padding:0;page-break-inside:avoid}legend,label{display:block;margin:0}select{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}ul,ol{padding:0}ul{margin-left:2rem}ul li{padding:0 0 0.75rem 0}ol{margin-left:1.75rem}ol li{padding:0 0 0.75rem 0.25rem}ul li:last-child,ol li:last-child{padding-bottom:0}ul[class*=columns-] li:last-child,ol[class*=columns-] li:last-child{padding-bottom:0.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 2rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 1.75rem}p+ul,p+ol{margin-top:-0.75rem}@media screen and (min-width: 40em){ul{margin:0.5rem 0 1.5rem 3rem}ol{margin:0.5rem 0 1.5rem 2.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 3rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 2.75rem}}.ontario-callout{border-left:0.25rem solid #367A76;padding:1.5rem;margin:2rem 0 2.5rem 0;background-color:#f2f2f2}.ontario-callout *{max-width:48rem}.ontario-callout *:last-child{margin-bottom:0.5rem}.ontario-callout__title{margin:0 0 1rem}.ontario-border-highlight--teal{border-color:#367A76 !important}.ontario-border-highlight--gold{border-color:#86743D !important}.ontario-border-highlight--yellow{border-color:#8A600D !important}.ontario-border-highlight--taupe{border-color:#7B725C !important}.ontario-border-highlight--green{border-color:#2B8737 !important}.ontario-border-highlight--lime{border-color:#5F8129 !important}.ontario-border-highlight--sky{border-color:#1080A6 !important}.ontario-border-highlight--blue{border-color:#0369ac !important}.ontario-border-highlight--purple{border-color:#92278F !important}';
13
13
 
14
14
  const OntarioCallout$1 = /*@__PURE__*/ proxyCustomElement(
15
- class OntarioCallout extends H {
15
+ class OntarioCallout extends HTMLElement {
16
16
  constructor() {
17
17
  super();
18
18
  this.__registerHost();
@@ -1 +1 @@
1
- {"file":"ontario-callout.js","mappings":";;;;;AAAA,MAAM,iBAAiB,GAAG,mwJAAmwJ;;MCsBhxJA,gBAAc,iBAAAC,kBAAA,CAAA,MAAA,cAAA,SAAAC,CAAA,CAAA;;;;;;AAC1B;;AAEG;AACsB,IAAA,WAAW;AAEpC;;AAEG;IACsB,kBAAkB,GAAuB,QAAQ;AAE1E;;AAEG;AACK,IAAA,cAAc;AAEtB;;;;;;;AAOG;AACK,IAAA,OAAO;AAEf;;AAEG;IACsB,eAAe,GAA4B,MAAM;AAE1E;;;AAGG;IAEH,mBAAmB,GAAA;AACl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AsB;aACvC,cAAc,CAAC,IAAI;aACnB,gBAAgB,CAAC,qBAAqB;aACtC,cAAc,CAAC,kCAAkC;aACjD,gBAAgB,CAAC,kBAAkB;aACnC,cAAc,CAAC,iCAAiC;aAChD,gBAAgB,CAAC,UAAU;aAC3B,cAAc,CAAC,aAAa;AAC5B,aAAA,YAAY,EAAE;AAChB,QAAA,QAAQ,IAAI,CAAC,kBAAkB,GAAG,QAAQ;;IAG3C,iBAAiB,GAAA;QAChB,IAAI,CAAC,uBAAuB,EAAE;QAC9B,IAAI,CAAC,mBAAmB,EAAE;QAC1B,IAAI,CAAC,0BAA0B,EAAE;;IAGlC,MAAM,GAAA;QACL,OAAO,oBAAoB,CAC1B,SAAS,EACT,IAAI,CAAC,kBAAkB,EACvB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,eAAe,CACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioCallout","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/ontario-callout/ontario-callout.scss?tag=ontario-callout&encapsulation=shadow","src/components/ontario-callout/ontario-callout.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/4-elements/global.elements';\n\n.ontario-callout {\n\tborder-left: spacing.$spacing-1 solid colours.$ontario-colour-dark-teal;\n\tpadding: spacing.$spacing-5;\n\tmargin: spacing.$spacing-6 spacing.$spacing-0 spacing.$spacing-7 spacing.$spacing-0;\n\tbackground-color: colours.$ontario-greyscale-5;\n\n\t* {\n\t\tmax-width: globalVariables.$standard-width;\n\n\t\t&:last-child {\n\t\t\tmargin-bottom: spacing.$spacing-2;\n\t\t}\n\t}\n}\n\n.ontario-callout__title {\n\tmargin: spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-4;\n}\n\n$highlight-colours: (\n\t'teal': colours.$ontario-colour-dark-teal,\n\t'gold': colours.$ontario-colour-dark-gold,\n\t'yellow': colours.$ontario-colour-dark-yellow,\n\t'taupe': colours.$ontario-colour-dark-taupe,\n\t'green': colours.$ontario-colour-dark-green,\n\t'lime': colours.$ontario-colour-dark-lime,\n\t'sky': colours.$ontario-colour-dark-sky,\n\t'blue': colours.$ontario-colour-dark-blue,\n\t'purple': colours.$ontario-colour-dark-purple,\n);\n\n@each $colour-name, $hex in $highlight-colours {\n\t.ontario-border-highlight--#{$colour-name} {\n\t\tborder-color: $hex !important;\n\t}\n}\n","import { Component, Prop, Watch } from '@stencil/core';\n\nimport {\n\tCalloutAside,\n\tHeadingLevelOptions,\n\tHeadingContentType,\n\tHeadingContentTypes,\n\tHighlightColourOptions,\n} from '../../utils/components/callout-aside/callout-aside.interface';\nimport {\n\tisValidHighlightColour,\n\tgenerateCalloutAside,\n\tisValidHeadingLevel,\n} from '../../utils/components/callout-aside/callout-aside-helpers';\nimport { validateValueAgainstArray } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\n\n@Component({\n\ttag: 'ontario-callout',\n\tstyleUrl: 'ontario-callout.scss',\n\tshadow: true,\n})\nexport class OntarioCallout implements CalloutAside {\n\t/**\n\t * The heading level of the callout heading.\n\t */\n\t@Prop({ mutable: true }) headingType?: HeadingLevelOptions;\n\n\t/**\n\t * The type of the heading content. If no prop is passed, it will default to `string`.\n\t */\n\t@Prop({ mutable: true }) headingContentType: HeadingContentType = 'string';\n\n\t/**\n\t * Text or HTML to be displayed as the heading of the callout. If the heading content should be displayed as HTML, the `headingContentType` needs to be set to `html`.\n\t */\n\t@Prop() headingContent?: string;\n\n\t/**\n\t * Optional text to be displayed as the content for the callout component. If a string is passed, it will automatically be nested in a paragraph tag.\n\t *\n\t * HTML content can also be passed as the child/children of the callout component if additional/different elements for the content are needed.\n\t *\n\t * @example\n\t * <ontario-callout headingType='h3' headingContent='This is the callout heading'><p>This is the first sentence of the callout content.</p><p>This is the second sentence of the callout content.</p></ontario-callout>\n\t */\n\t@Prop() content?: string;\n\n\t/**\n\t * Optional prop to choose the border colour of the callout. If none is passed, the default colour will be teal.\n\t */\n\t@Prop({ mutable: true }) highlightColour?: HighlightColourOptions = 'teal';\n\n\t/**\n\t * Watch for changes to the `headingType` prop.\n\t * This is for validation purposes to make sure the `headingType` matches one of the `HeadingLevelOptions`.\n\t */\n\t@Watch('headingType')\n\tvalidateHeadingType() {\n\t\tif (!!this.headingType) {\n\t\t\tif (isValidHeadingLevel(this.headingType)) return this.headingType;\n\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\treturn message\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(` headingType ${this.headingType} `)\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-callout> ')\n\t\t\t\t.addRegularText('is not a valid type. Please ensure your heading type matches one of the headingType types.')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes in the `headingContentType` variable for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `headingContentType` will be set to its default (`string`).\n\t * If a match is found in one of the array values then `headingContentType` will be set to the matching array key value.\n\t */\n\t@Watch('headingContentType')\n\tvalidateHeadingContentType() {\n\t\tconst isValid = validateValueAgainstArray(this.headingContentType, HeadingContentTypes);\n\t\tif (isValid) {\n\t\t\treturn this.headingContentType;\n\t\t} else {\n\t\t\treturn this.warnDefaultType();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `highlightColour` prop.\n\t *\n\t * If no `highlightColour` is passed, or if the `highlightColour` does not match the `highlightColour` options, a default value of 'teal' will be applied.\n\t */\n\t@Watch('highlightColour')\n\tvalidateHighlightColour() {\n\t\tif (this.highlightColour) {\n\t\t\tif (isValidHighlightColour(this.highlightColour)) return this.highlightColour;\n\t\t\telse {\n\t\t\t\tconst message = new ConsoleMessageClass();\n\t\t\t\tmessage\n\t\t\t\t\t.addDesignSystemTag()\n\t\t\t\t\t.addMonospaceText(` highlightColour ${this.highlightColour} `)\n\t\t\t\t\t.addRegularText('for')\n\t\t\t\t\t.addMonospaceText(' <ontario-callout> ')\n\t\t\t\t\t.addRegularText(\n\t\t\t\t\t\t'does not match one of the valid highlightColour types. A default colour of `teal` will be applied.',\n\t\t\t\t\t)\n\t\t\t\t\t.printMessage();\n\t\t\t}\n\t\t}\n\n\t\t// if no highlight colour is passed, return 'teal'\n\t\treturn 'teal';\n\t}\n\n\t/**\n\t * Print the invalid `type` warning message.\n\t * @returns default type ('string')\n\t */\n\tprivate warnDefaultType() {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' headingContentType ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-callout> ')\n\t\t\t.addRegularText('was set to an invalid type; only')\n\t\t\t.addMonospaceText(' string or html ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' string ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn (this.headingContentType = 'string');\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateHighlightColour();\n\t\tthis.validateHeadingType();\n\t\tthis.validateHeadingContentType();\n\t}\n\n\trender() {\n\t\treturn generateCalloutAside(\n\t\t\t'callout',\n\t\t\tthis.headingContentType,\n\t\t\tthis.headingType,\n\t\t\tthis.headingContent,\n\t\t\tthis.content,\n\t\t\tthis.highlightColour,\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"ontario-callout.js","mappings":";;;;;AAAA,MAAM,iBAAiB,GAAG,mwJAAmwJ;;MCsBhxJA,gBAAc,iBAAAC,kBAAA,CAAA,MAAA,cAAA,SAAA,WAAA,CAAA;;;;;;AAC1B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B;qBACtC,cAAc,CACd,oGAAoG;AAEpG,qBAAA,YAAY,EAAE;;;;AAKlB,QAAA,OAAO,MAAM;;AAGd;;;AAGG;IACK,eAAe,GAAA;AACtB,QAAA,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE;QACzC;AACE,aAAA,kBAAkB;aAClB,gBAAgB,CAAC,sBAAsB;aACvC,cAAc,CAAC,IAAI;aACnB,gBAAgB,CAAC,qBAAqB;aACtC,cAAc,CAAC,kCAAkC;aACjD,gBAAgB,CAAC,kBAAkB;aACnC,cAAc,CAAC,iCAAiC;aAChD,gBAAgB,CAAC,UAAU;aAC3B,cAAc,CAAC,aAAa;AAC5B,aAAA,YAAY,EAAE;AAChB,QAAA,QAAQ,IAAI,CAAC,kBAAkB,GAAG,QAAQ;;IAG3C,iBAAiB,GAAA;QAChB,IAAI,CAAC,uBAAuB,EAAE;QAC9B,IAAI,CAAC,mBAAmB,EAAE;QAC1B,IAAI,CAAC,0BAA0B,EAAE;;IAGlC,MAAM,GAAA;QACL,OAAO,oBAAoB,CAC1B,SAAS,EACT,IAAI,CAAC,kBAAkB,EACvB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,eAAe,CACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioCallout","__stencil_proxyCustomElement"],"sources":["src/components/ontario-callout/ontario-callout.scss?tag=ontario-callout&encapsulation=shadow","src/components/ontario-callout/ontario-callout.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/4-elements/global.elements';\n\n.ontario-callout {\n\tborder-left: spacing.$spacing-1 solid colours.$ontario-colour-dark-teal;\n\tpadding: spacing.$spacing-5;\n\tmargin: spacing.$spacing-6 spacing.$spacing-0 spacing.$spacing-7 spacing.$spacing-0;\n\tbackground-color: colours.$ontario-greyscale-5;\n\n\t* {\n\t\tmax-width: globalVariables.$standard-width;\n\n\t\t&:last-child {\n\t\t\tmargin-bottom: spacing.$spacing-2;\n\t\t}\n\t}\n}\n\n.ontario-callout__title {\n\tmargin: spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-4;\n}\n\n$highlight-colours: (\n\t'teal': colours.$ontario-colour-dark-teal,\n\t'gold': colours.$ontario-colour-dark-gold,\n\t'yellow': colours.$ontario-colour-dark-yellow,\n\t'taupe': colours.$ontario-colour-dark-taupe,\n\t'green': colours.$ontario-colour-dark-green,\n\t'lime': colours.$ontario-colour-dark-lime,\n\t'sky': colours.$ontario-colour-dark-sky,\n\t'blue': colours.$ontario-colour-dark-blue,\n\t'purple': colours.$ontario-colour-dark-purple,\n);\n\n@each $colour-name, $hex in $highlight-colours {\n\t.ontario-border-highlight--#{$colour-name} {\n\t\tborder-color: $hex !important;\n\t}\n}\n","import { Component, Prop, Watch } from '@stencil/core';\n\nimport {\n\tCalloutAside,\n\tHeadingLevelOptions,\n\tHeadingContentType,\n\tHeadingContentTypes,\n\tHighlightColourOptions,\n} from '../../utils/components/callout-aside/callout-aside.interface';\nimport {\n\tisValidHighlightColour,\n\tgenerateCalloutAside,\n\tisValidHeadingLevel,\n} from '../../utils/components/callout-aside/callout-aside-helpers';\nimport { validateValueAgainstArray } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\n\n@Component({\n\ttag: 'ontario-callout',\n\tstyleUrl: 'ontario-callout.scss',\n\tshadow: true,\n})\nexport class OntarioCallout implements CalloutAside {\n\t/**\n\t * The heading level of the callout heading.\n\t */\n\t@Prop({ mutable: true }) headingType?: HeadingLevelOptions;\n\n\t/**\n\t * The type of the heading content. If no prop is passed, it will default to `string`.\n\t */\n\t@Prop({ mutable: true }) headingContentType: HeadingContentType = 'string';\n\n\t/**\n\t * Text or HTML to be displayed as the heading of the callout. If the heading content should be displayed as HTML, the `headingContentType` needs to be set to `html`.\n\t */\n\t@Prop() headingContent?: string;\n\n\t/**\n\t * Optional text to be displayed as the content for the callout component. If a string is passed, it will automatically be nested in a paragraph tag.\n\t *\n\t * HTML content can also be passed as the child/children of the callout component if additional/different elements for the content are needed.\n\t *\n\t * @example\n\t * <ontario-callout headingType='h3' headingContent='This is the callout heading'><p>This is the first sentence of the callout content.</p><p>This is the second sentence of the callout content.</p></ontario-callout>\n\t */\n\t@Prop() content?: string;\n\n\t/**\n\t * Optional prop to choose the border colour of the callout. If none is passed, the default colour will be teal.\n\t */\n\t@Prop({ mutable: true }) highlightColour?: HighlightColourOptions = 'teal';\n\n\t/**\n\t * Watch for changes to the `headingType` prop.\n\t * This is for validation purposes to make sure the `headingType` matches one of the `HeadingLevelOptions`.\n\t */\n\t@Watch('headingType')\n\tvalidateHeadingType() {\n\t\tif (!!this.headingType) {\n\t\t\tif (isValidHeadingLevel(this.headingType)) return this.headingType;\n\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\treturn message\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(` headingType ${this.headingType} `)\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-callout> ')\n\t\t\t\t.addRegularText('is not a valid type. Please ensure your heading type matches one of the headingType types.')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes in the `headingContentType` variable for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `headingContentType` will be set to its default (`string`).\n\t * If a match is found in one of the array values then `headingContentType` will be set to the matching array key value.\n\t */\n\t@Watch('headingContentType')\n\tvalidateHeadingContentType() {\n\t\tconst isValid = validateValueAgainstArray(this.headingContentType, HeadingContentTypes);\n\t\tif (isValid) {\n\t\t\treturn this.headingContentType;\n\t\t} else {\n\t\t\treturn this.warnDefaultType();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `highlightColour` prop.\n\t *\n\t * If no `highlightColour` is passed, or if the `highlightColour` does not match the `highlightColour` options, a default value of 'teal' will be applied.\n\t */\n\t@Watch('highlightColour')\n\tvalidateHighlightColour() {\n\t\tif (this.highlightColour) {\n\t\t\tif (isValidHighlightColour(this.highlightColour)) return this.highlightColour;\n\t\t\telse {\n\t\t\t\tconst message = new ConsoleMessageClass();\n\t\t\t\tmessage\n\t\t\t\t\t.addDesignSystemTag()\n\t\t\t\t\t.addMonospaceText(` highlightColour ${this.highlightColour} `)\n\t\t\t\t\t.addRegularText('for')\n\t\t\t\t\t.addMonospaceText(' <ontario-callout> ')\n\t\t\t\t\t.addRegularText(\n\t\t\t\t\t\t'does not match one of the valid highlightColour types. A default colour of `teal` will be applied.',\n\t\t\t\t\t)\n\t\t\t\t\t.printMessage();\n\t\t\t}\n\t\t}\n\n\t\t// if no highlight colour is passed, return 'teal'\n\t\treturn 'teal';\n\t}\n\n\t/**\n\t * Print the invalid `type` warning message.\n\t * @returns default type ('string')\n\t */\n\tprivate warnDefaultType() {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' headingContentType ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-callout> ')\n\t\t\t.addRegularText('was set to an invalid type; only')\n\t\t\t.addMonospaceText(' string or html ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' string ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn (this.headingContentType = 'string');\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateHighlightColour();\n\t\tthis.validateHeadingType();\n\t\tthis.validateHeadingContentType();\n\t}\n\n\trender() {\n\t\treturn generateCalloutAside(\n\t\t\t'callout',\n\t\t\tthis.headingContentType,\n\t\t\tthis.headingType,\n\t\t\tthis.headingContent,\n\t\t\tthis.content,\n\t\t\tthis.highlightColour,\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,11 +1,11 @@
1
- import { p as proxyCustomElement, H, h } from './index.js';
2
- import { C as ConsoleMessageClass } from './p-CJXRCL8b.js';
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { C as ConsoleMessageClass } from './console-message.js';
3
3
 
4
4
  const ontarioCardCollectionCss =
5
5
  '.ontario-card-collection__container{display:flex;flex-wrap:wrap;column-gap:2rem;row-gap:0;margin:0;padding:0}.ontario-card-collecton--cards-per-row-4 ::slotted(ontario-card){width:calc(25% - 1.5rem)}@media screen and (max-width: 73em){.ontario-card-collecton--cards-per-row-4 ::slotted(ontario-card){width:calc(50% - 1rem)}}@media screen and (max-width: 40em){.ontario-card-collecton--cards-per-row-4 ::slotted(ontario-card){width:100%}}.ontario-card-collecton--cards-per-row-3 ::slotted(ontario-card){width:calc(33.3% - 1.33rem)}@media screen and (max-width: 40em){.ontario-card-collecton--cards-per-row-3 ::slotted(ontario-card){width:100%}}.ontario-card-collecton--cards-per-row-2 ::slotted(ontario-card){width:calc(50% - 1rem)}@media screen and (max-width: 40em){.ontario-card-collecton--cards-per-row-2 ::slotted(ontario-card){width:100%}}';
6
6
 
7
7
  const OntarioCardCollection$1 = /*@__PURE__*/ proxyCustomElement(
8
- class OntarioCardCollection extends H {
8
+ class OntarioCardCollection extends HTMLElement {
9
9
  constructor() {
10
10
  super();
11
11
  this.__registerHost();