@ongov/ontario-design-system-component-library 4.2.0-alpha.1 → 4.3.0-alpha.1

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 (943) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/ontario-accordion_42.cjs.entry.js +286 -249
  3. package/dist/cjs/ontario-accordion_42.cjs.entry.js.map +1 -1
  4. package/dist/cjs/ontario-design-system-components.cjs.js +1 -1
  5. package/dist/cjs/ontario-icon-account.cjs.entry.js +3 -3
  6. package/dist/cjs/ontario-icon-add-alt.cjs.entry.js +3 -3
  7. package/dist/cjs/ontario-icon-add.cjs.entry.js +3 -3
  8. package/dist/cjs/ontario-icon-arrow-up.cjs.entry.js +4 -4
  9. package/dist/cjs/ontario-icon-attach.cjs.entry.js +3 -3
  10. package/dist/cjs/ontario-icon-bookmark-off.cjs.entry.js +3 -3
  11. package/dist/cjs/ontario-icon-bookmark-on.cjs.entry.js +3 -3
  12. package/dist/cjs/ontario-icon-calendar.cjs.entry.js +3 -3
  13. package/dist/cjs/ontario-icon-chevron-right.cjs.entry.js +3 -3
  14. package/dist/cjs/ontario-icon-clock.cjs.entry.js +3 -3
  15. package/dist/cjs/ontario-icon-close-header.cjs.entry.js +3 -3
  16. package/dist/cjs/ontario-icon-close.cjs.entry.js +3 -3
  17. package/dist/cjs/ontario-icon-cloud.cjs.entry.js +3 -3
  18. package/dist/cjs/ontario-icon-collapse.cjs.entry.js +3 -3
  19. package/dist/cjs/ontario-icon-credit-card.cjs.entry.js +3 -3
  20. package/dist/cjs/ontario-icon-critical-alert-warning.cjs.entry.js +5 -5
  21. package/dist/cjs/ontario-icon-delete.cjs.entry.js +3 -3
  22. package/dist/cjs/ontario-icon-document.cjs.entry.js +3 -3
  23. package/dist/cjs/ontario-icon-download.cjs.entry.js +3 -3
  24. package/dist/cjs/ontario-icon-dropdown-arrow.cjs.entry.js +3 -3
  25. package/dist/cjs/ontario-icon-edit.cjs.entry.js +3 -3
  26. package/dist/cjs/ontario-icon-expand.cjs.entry.js +3 -3
  27. package/dist/cjs/ontario-icon-export.cjs.entry.js +3 -3
  28. package/dist/cjs/ontario-icon-facebook-alt.cjs.entry.js +3 -3
  29. package/dist/cjs/ontario-icon-facebook.cjs.entry.js +3 -3
  30. package/dist/cjs/ontario-icon-favourite-off.cjs.entry.js +3 -3
  31. package/dist/cjs/ontario-icon-favourite-on.cjs.entry.js +3 -3
  32. package/dist/cjs/ontario-icon-filter.cjs.entry.js +3 -3
  33. package/dist/cjs/ontario-icon-flickr.cjs.entry.js +3 -3
  34. package/dist/cjs/ontario-icon-grid.cjs.entry.js +3 -3
  35. package/dist/cjs/ontario-icon-instagram.cjs.entry.js +3 -3
  36. package/dist/cjs/ontario-icon-interac-en-alt.cjs.entry.js +19 -19
  37. package/dist/cjs/ontario-icon-interac-en.cjs.entry.js +18 -18
  38. package/dist/cjs/ontario-icon-interac-fr-alt.cjs.entry.js +19 -19
  39. package/dist/cjs/ontario-icon-interac-fr.cjs.entry.js +12 -12
  40. package/dist/cjs/ontario-icon-linkedin-alt.cjs.entry.js +3 -3
  41. package/dist/cjs/ontario-icon-linkedin.cjs.entry.js +3 -3
  42. package/dist/cjs/ontario-icon-list.cjs.entry.js +3 -3
  43. package/dist/cjs/ontario-icon-live-chat.cjs.entry.js +3 -3
  44. package/dist/cjs/ontario-icon-location-off.cjs.entry.js +3 -3
  45. package/dist/cjs/ontario-icon-location-on.cjs.entry.js +3 -3
  46. package/dist/cjs/ontario-icon-lock-off.cjs.entry.js +3 -3
  47. package/dist/cjs/ontario-icon-lock-on.cjs.entry.js +3 -3
  48. package/dist/cjs/ontario-icon-map.cjs.entry.js +3 -3
  49. package/dist/cjs/ontario-icon-mastercard-alt.cjs.entry.js +6 -6
  50. package/dist/cjs/ontario-icon-media-fast-forward.cjs.entry.js +3 -3
  51. package/dist/cjs/ontario-icon-media-fast-rewind.cjs.entry.js +3 -3
  52. package/dist/cjs/ontario-icon-media-pause.cjs.entry.js +3 -3
  53. package/dist/cjs/ontario-icon-media-play.cjs.entry.js +3 -3
  54. package/dist/cjs/ontario-icon-media-stop.cjs.entry.js +3 -3
  55. package/dist/cjs/ontario-icon-menu-header.cjs.entry.js +3 -3
  56. package/dist/cjs/ontario-icon-menu.cjs.entry.js +3 -3
  57. package/dist/cjs/ontario-icon-microphone-off.cjs.entry.js +3 -3
  58. package/dist/cjs/ontario-icon-microphone-on.cjs.entry.js +3 -3
  59. package/dist/cjs/ontario-icon-more-vertical.cjs.entry.js +3 -3
  60. package/dist/cjs/ontario-icon-new-window.cjs.entry.js +3 -3
  61. package/dist/cjs/ontario-icon-next.cjs.entry.js +3 -3
  62. package/dist/cjs/ontario-icon-password-hide.cjs.entry.js +3 -3
  63. package/dist/cjs/ontario-icon-password-show.cjs.entry.js +3 -3
  64. package/dist/cjs/ontario-icon-phone.cjs.entry.js +3 -3
  65. package/dist/cjs/ontario-icon-photo.cjs.entry.js +3 -3
  66. package/dist/cjs/ontario-icon-pin-location-off.cjs.entry.js +3 -3
  67. package/dist/cjs/ontario-icon-pin-location-on.cjs.entry.js +3 -3
  68. package/dist/cjs/ontario-icon-previous.cjs.entry.js +3 -3
  69. package/dist/cjs/ontario-icon-remove-alt.cjs.entry.js +3 -3
  70. package/dist/cjs/ontario-icon-remove.cjs.entry.js +3 -3
  71. package/dist/cjs/ontario-icon-replay.cjs.entry.js +3 -3
  72. package/dist/cjs/ontario-icon-rss-feed.cjs.entry.js +3 -3
  73. package/dist/cjs/ontario-icon-save.cjs.entry.js +3 -3
  74. package/dist/cjs/ontario-icon-search-white.cjs.entry.js +3 -3
  75. package/dist/cjs/ontario-icon-search.cjs.entry.js +3 -3
  76. package/dist/cjs/ontario-icon-sentiment-1.cjs.entry.js +3 -3
  77. package/dist/cjs/ontario-icon-sentiment-2.cjs.entry.js +3 -3
  78. package/dist/cjs/ontario-icon-sentiment-3.cjs.entry.js +3 -3
  79. package/dist/cjs/ontario-icon-sentiment-4.cjs.entry.js +3 -3
  80. package/dist/cjs/ontario-icon-settings.cjs.entry.js +3 -3
  81. package/dist/cjs/ontario-icon-share.cjs.entry.js +3 -3
  82. package/dist/cjs/ontario-icon-sort.cjs.entry.js +3 -3
  83. package/dist/cjs/ontario-icon-tag.cjs.entry.js +3 -3
  84. package/dist/cjs/ontario-icon-timer.cjs.entry.js +3 -3
  85. package/dist/cjs/ontario-icon-transport-bicycle.cjs.entry.js +3 -3
  86. package/dist/cjs/ontario-icon-transport-car.cjs.entry.js +3 -3
  87. package/dist/cjs/ontario-icon-transport-walk.cjs.entry.js +3 -3
  88. package/dist/cjs/ontario-icon-tty.cjs.entry.js +3 -3
  89. package/dist/cjs/ontario-icon-twitter-alt.cjs.entry.js +3 -3
  90. package/dist/cjs/ontario-icon-twitter.cjs.entry.js +3 -3
  91. package/dist/cjs/ontario-icon-upload.cjs.entry.js +3 -3
  92. package/dist/cjs/ontario-icon-video.cjs.entry.js +3 -3
  93. package/dist/cjs/ontario-icon-visa.cjs.entry.js +5 -5
  94. package/dist/cjs/ontario-icon-vote-dislike.cjs.entry.js +3 -3
  95. package/dist/cjs/ontario-icon-vote-like.cjs.entry.js +3 -3
  96. package/dist/cjs/ontario-icon-vpn-key.cjs.entry.js +3 -3
  97. package/dist/cjs/ontario-icon-wheelchair.cjs.entry.js +3 -3
  98. package/dist/cjs/ontario-icon-wifi.cjs.entry.js +3 -3
  99. package/dist/cjs/ontario-icon-youtube.cjs.entry.js +3 -3
  100. package/dist/collection/components/ontario-aside/ontario-aside.js +18 -37
  101. package/dist/collection/components/ontario-aside/ontario-aside.js.map +1 -1
  102. package/dist/collection/components/ontario-aside/test/ontario-aside.spec.js +35 -0
  103. package/dist/collection/components/ontario-aside/test/ontario-aside.spec.js.map +1 -1
  104. package/dist/collection/components/ontario-callout/ontario-callout.js +16 -36
  105. package/dist/collection/components/ontario-callout/ontario-callout.js.map +1 -1
  106. package/dist/collection/components/ontario-callout/test/ontario-callout.spec.js +18 -0
  107. package/dist/collection/components/ontario-callout/test/ontario-callout.spec.js.map +1 -1
  108. package/dist/collection/components/ontario-card/ontario-card.css +5 -0
  109. package/dist/collection/components/ontario-card-collection/ontario-card-collection.css +3 -0
  110. package/dist/collection/components/ontario-checkbox/ontario-checkboxes.css +113 -22
  111. package/dist/collection/components/ontario-checkbox/ontario-checkboxes.js +52 -3
  112. package/dist/collection/components/ontario-checkbox/ontario-checkboxes.js.map +1 -1
  113. package/dist/collection/components/ontario-checkbox/test/ontario-checkboxes.spec.js +4 -0
  114. package/dist/collection/components/ontario-checkbox/test/ontario-checkboxes.spec.js.map +1 -1
  115. package/dist/collection/components/ontario-critical-alert/ontario-critical-alert.js +6 -6
  116. package/dist/collection/components/ontario-date-input/ontario-date-input.css +4 -0
  117. package/dist/collection/components/ontario-date-input/ontario-date-input.js +4 -4
  118. package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.css +28 -0
  119. package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.js +51 -2
  120. package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.js.map +1 -1
  121. package/dist/collection/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.js +4 -0
  122. package/dist/collection/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.js.map +1 -1
  123. package/dist/collection/components/ontario-fieldset/ontario-fieldset.css +4 -0
  124. package/dist/collection/components/ontario-fieldset/ontario-fieldset.js +4 -4
  125. package/dist/collection/components/ontario-footer/components/expanded-footer-wrapper.js.map +1 -1
  126. package/dist/collection/components/ontario-header/ontario-header.css +5 -1
  127. package/dist/collection/components/ontario-hint-expander/ontario-hint-expander.js +7 -7
  128. package/dist/collection/components/ontario-icon/ontario-icon-accessibility.js +3 -3
  129. package/dist/collection/components/ontario-icon/ontario-icon-account.js +3 -3
  130. package/dist/collection/components/ontario-icon/ontario-icon-add-alt.js +3 -3
  131. package/dist/collection/components/ontario-icon/ontario-icon-add.js +3 -3
  132. package/dist/collection/components/ontario-icon/ontario-icon-alert-error.js +4 -4
  133. package/dist/collection/components/ontario-icon/ontario-icon-alert-information.js +4 -4
  134. package/dist/collection/components/ontario-icon/ontario-icon-alert-success.js +4 -4
  135. package/dist/collection/components/ontario-icon/ontario-icon-alert-warning.js +4 -4
  136. package/dist/collection/components/ontario-icon/ontario-icon-arrow-up.js +4 -4
  137. package/dist/collection/components/ontario-icon/ontario-icon-attach.js +3 -3
  138. package/dist/collection/components/ontario-icon/ontario-icon-bookmark-off.js +3 -3
  139. package/dist/collection/components/ontario-icon/ontario-icon-bookmark-on.js +3 -3
  140. package/dist/collection/components/ontario-icon/ontario-icon-calendar.js +3 -3
  141. package/dist/collection/components/ontario-icon/ontario-icon-camera.js +3 -3
  142. package/dist/collection/components/ontario-icon/ontario-icon-chevron-down.js +3 -3
  143. package/dist/collection/components/ontario-icon/ontario-icon-chevron-left.js +3 -3
  144. package/dist/collection/components/ontario-icon/ontario-icon-chevron-right.js +3 -3
  145. package/dist/collection/components/ontario-icon/ontario-icon-chevron-up.js +3 -3
  146. package/dist/collection/components/ontario-icon/ontario-icon-clock.js +3 -3
  147. package/dist/collection/components/ontario-icon/ontario-icon-close-header.js +3 -3
  148. package/dist/collection/components/ontario-icon/ontario-icon-close.js +3 -3
  149. package/dist/collection/components/ontario-icon/ontario-icon-cloud.js +3 -3
  150. package/dist/collection/components/ontario-icon/ontario-icon-collapse.js +3 -3
  151. package/dist/collection/components/ontario-icon/ontario-icon-credit-card.js +3 -3
  152. package/dist/collection/components/ontario-icon/ontario-icon-critical-alert-warning.js +5 -5
  153. package/dist/collection/components/ontario-icon/ontario-icon-delete.js +3 -3
  154. package/dist/collection/components/ontario-icon/ontario-icon-document.js +3 -3
  155. package/dist/collection/components/ontario-icon/ontario-icon-download.js +3 -3
  156. package/dist/collection/components/ontario-icon/ontario-icon-dropdown-arrow.js +3 -3
  157. package/dist/collection/components/ontario-icon/ontario-icon-edit.js +3 -3
  158. package/dist/collection/components/ontario-icon/ontario-icon-email.js +3 -3
  159. package/dist/collection/components/ontario-icon/ontario-icon-expand.js +3 -3
  160. package/dist/collection/components/ontario-icon/ontario-icon-export.js +3 -3
  161. package/dist/collection/components/ontario-icon/ontario-icon-facebook-alt.js +3 -3
  162. package/dist/collection/components/ontario-icon/ontario-icon-facebook.js +3 -3
  163. package/dist/collection/components/ontario-icon/ontario-icon-favourite-off.js +3 -3
  164. package/dist/collection/components/ontario-icon/ontario-icon-favourite-on.js +3 -3
  165. package/dist/collection/components/ontario-icon/ontario-icon-filter.js +3 -3
  166. package/dist/collection/components/ontario-icon/ontario-icon-flickr.js +3 -3
  167. package/dist/collection/components/ontario-icon/ontario-icon-grid.js +3 -3
  168. package/dist/collection/components/ontario-icon/ontario-icon-help.js +3 -3
  169. package/dist/collection/components/ontario-icon/ontario-icon-instagram.js +3 -3
  170. package/dist/collection/components/ontario-icon/ontario-icon-interac-en-alt.js +19 -19
  171. package/dist/collection/components/ontario-icon/ontario-icon-interac-en.js +18 -18
  172. package/dist/collection/components/ontario-icon/ontario-icon-interac-fr-alt.js +19 -19
  173. package/dist/collection/components/ontario-icon/ontario-icon-interac-fr.js +12 -12
  174. package/dist/collection/components/ontario-icon/ontario-icon-linkedin-alt.js +3 -3
  175. package/dist/collection/components/ontario-icon/ontario-icon-linkedin.js +3 -3
  176. package/dist/collection/components/ontario-icon/ontario-icon-list.js +3 -3
  177. package/dist/collection/components/ontario-icon/ontario-icon-live-chat.js +3 -3
  178. package/dist/collection/components/ontario-icon/ontario-icon-location-off.js +3 -3
  179. package/dist/collection/components/ontario-icon/ontario-icon-location-on.js +3 -3
  180. package/dist/collection/components/ontario-icon/ontario-icon-lock-off.js +3 -3
  181. package/dist/collection/components/ontario-icon/ontario-icon-lock-on.js +3 -3
  182. package/dist/collection/components/ontario-icon/ontario-icon-map.js +3 -3
  183. package/dist/collection/components/ontario-icon/ontario-icon-mastercard-alt.js +6 -6
  184. package/dist/collection/components/ontario-icon/ontario-icon-mastercard.js +9 -9
  185. package/dist/collection/components/ontario-icon/ontario-icon-media-fast-forward.js +3 -3
  186. package/dist/collection/components/ontario-icon/ontario-icon-media-fast-rewind.js +3 -3
  187. package/dist/collection/components/ontario-icon/ontario-icon-media-pause.js +3 -3
  188. package/dist/collection/components/ontario-icon/ontario-icon-media-play.js +3 -3
  189. package/dist/collection/components/ontario-icon/ontario-icon-media-stop.js +3 -3
  190. package/dist/collection/components/ontario-icon/ontario-icon-menu-header.js +3 -3
  191. package/dist/collection/components/ontario-icon/ontario-icon-menu.js +3 -3
  192. package/dist/collection/components/ontario-icon/ontario-icon-microphone-off.js +3 -3
  193. package/dist/collection/components/ontario-icon/ontario-icon-microphone-on.js +3 -3
  194. package/dist/collection/components/ontario-icon/ontario-icon-more-vertical.js +3 -3
  195. package/dist/collection/components/ontario-icon/ontario-icon-new-window.js +3 -3
  196. package/dist/collection/components/ontario-icon/ontario-icon-next.js +3 -3
  197. package/dist/collection/components/ontario-icon/ontario-icon-notification.js +3 -3
  198. package/dist/collection/components/ontario-icon/ontario-icon-password-hide.js +3 -3
  199. package/dist/collection/components/ontario-icon/ontario-icon-password-show.js +3 -3
  200. package/dist/collection/components/ontario-icon/ontario-icon-phone.js +3 -3
  201. package/dist/collection/components/ontario-icon/ontario-icon-photo.js +3 -3
  202. package/dist/collection/components/ontario-icon/ontario-icon-pin-location-off.js +3 -3
  203. package/dist/collection/components/ontario-icon/ontario-icon-pin-location-on.js +3 -3
  204. package/dist/collection/components/ontario-icon/ontario-icon-previous.js +3 -3
  205. package/dist/collection/components/ontario-icon/ontario-icon-print.js +3 -3
  206. package/dist/collection/components/ontario-icon/ontario-icon-remove-alt.js +3 -3
  207. package/dist/collection/components/ontario-icon/ontario-icon-remove.js +3 -3
  208. package/dist/collection/components/ontario-icon/ontario-icon-replay.js +3 -3
  209. package/dist/collection/components/ontario-icon/ontario-icon-rss-feed.js +3 -3
  210. package/dist/collection/components/ontario-icon/ontario-icon-save.js +3 -3
  211. package/dist/collection/components/ontario-icon/ontario-icon-search-white.js +3 -3
  212. package/dist/collection/components/ontario-icon/ontario-icon-search.js +3 -3
  213. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-1.js +3 -3
  214. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-2.js +3 -3
  215. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-3.js +3 -3
  216. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-4.js +3 -3
  217. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-5.js +3 -3
  218. package/dist/collection/components/ontario-icon/ontario-icon-settings.js +3 -3
  219. package/dist/collection/components/ontario-icon/ontario-icon-share.js +3 -3
  220. package/dist/collection/components/ontario-icon/ontario-icon-sort.js +3 -3
  221. package/dist/collection/components/ontario-icon/ontario-icon-tag.js +3 -3
  222. package/dist/collection/components/ontario-icon/ontario-icon-text-message.js +3 -3
  223. package/dist/collection/components/ontario-icon/ontario-icon-timer.js +3 -3
  224. package/dist/collection/components/ontario-icon/ontario-icon-transport-bicycle.js +3 -3
  225. package/dist/collection/components/ontario-icon/ontario-icon-transport-bus.js +3 -3
  226. package/dist/collection/components/ontario-icon/ontario-icon-transport-car.js +3 -3
  227. package/dist/collection/components/ontario-icon/ontario-icon-transport-walk.js +3 -3
  228. package/dist/collection/components/ontario-icon/ontario-icon-tty.js +3 -3
  229. package/dist/collection/components/ontario-icon/ontario-icon-twitter-alt.js +3 -3
  230. package/dist/collection/components/ontario-icon/ontario-icon-twitter.js +3 -3
  231. package/dist/collection/components/ontario-icon/ontario-icon-upload.js +3 -3
  232. package/dist/collection/components/ontario-icon/ontario-icon-video.js +3 -3
  233. package/dist/collection/components/ontario-icon/ontario-icon-visa.js +5 -5
  234. package/dist/collection/components/ontario-icon/ontario-icon-vote-dislike.js +3 -3
  235. package/dist/collection/components/ontario-icon/ontario-icon-vote-like.js +3 -3
  236. package/dist/collection/components/ontario-icon/ontario-icon-vpn-key.js +3 -3
  237. package/dist/collection/components/ontario-icon/ontario-icon-wheelchair.js +3 -3
  238. package/dist/collection/components/ontario-icon/ontario-icon-wifi.js +3 -3
  239. package/dist/collection/components/ontario-icon/ontario-icon-youtube.js +3 -3
  240. package/dist/collection/components/ontario-input/ontario-input.css +4 -0
  241. package/dist/collection/components/ontario-input/ontario-input.js +3 -3
  242. package/dist/collection/components/ontario-language-toggle/ontario-language-toggle.js +1 -1
  243. package/dist/collection/components/ontario-page-alert/ontario-page-alert.js +5 -5
  244. package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.css +77 -1
  245. package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.js +56 -3
  246. package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.js.map +1 -1
  247. package/dist/collection/components/ontario-radio-buttons/test/ontario-radio-button.spec.js +6 -1
  248. package/dist/collection/components/ontario-radio-buttons/test/ontario-radio-button.spec.js.map +1 -1
  249. package/dist/collection/components/ontario-step-indicator/ontario-step-indicator.js +5 -5
  250. package/dist/collection/components/ontario-table/ontario-table.js +5 -5
  251. package/dist/collection/components/ontario-textarea/ontario-textarea.css +28 -0
  252. package/dist/collection/components/ontario-textarea/ontario-textarea.js +54 -2
  253. package/dist/collection/components/ontario-textarea/ontario-textarea.js.map +1 -1
  254. package/dist/collection/components/ontario-textarea/test/ontario-textarea.spec.js +4 -0
  255. package/dist/collection/components/ontario-textarea/test/ontario-textarea.spec.js.map +1 -1
  256. package/dist/collection/utils/components/callout-aside/callout-aside-helpers.js +4 -4
  257. package/dist/collection/utils/components/callout-aside/callout-aside-helpers.js.map +1 -1
  258. package/dist/collection/utils/components/callout-aside/callout-aside.interface.js.map +1 -1
  259. package/dist/components/callout-aside-helpers.js +4 -4
  260. package/dist/components/callout-aside-helpers.js.map +1 -1
  261. package/dist/components/error-message.js +324 -1
  262. package/dist/components/error-message.js.map +1 -1
  263. package/dist/components/ontario-aside.js +13 -31
  264. package/dist/components/ontario-aside.js.map +1 -1
  265. package/dist/components/ontario-callout.js +12 -30
  266. package/dist/components/ontario-callout.js.map +1 -1
  267. package/dist/components/ontario-card-collection.js +1 -1
  268. package/dist/components/ontario-card-collection.js.map +1 -1
  269. package/dist/components/ontario-card.js +1 -1
  270. package/dist/components/ontario-card.js.map +1 -1
  271. package/dist/components/ontario-checkboxes.js +34 -8
  272. package/dist/components/ontario-checkboxes.js.map +1 -1
  273. package/dist/components/ontario-critical-alert.js +6 -6
  274. package/dist/components/ontario-date-input.js +6 -7
  275. package/dist/components/ontario-date-input.js.map +1 -1
  276. package/dist/components/ontario-dropdown-list.js +29 -7
  277. package/dist/components/ontario-dropdown-list.js.map +1 -1
  278. package/dist/components/ontario-fieldset.js +5 -5
  279. package/dist/components/ontario-fieldset.js.map +1 -1
  280. package/dist/components/ontario-footer.js.map +1 -1
  281. package/dist/components/ontario-header.js +1 -1
  282. package/dist/components/ontario-header.js.map +1 -1
  283. package/dist/components/ontario-hint-expander2.js +7 -7
  284. package/dist/components/ontario-icon-accessibility.js +3 -3
  285. package/dist/components/ontario-icon-account.js +3 -3
  286. package/dist/components/ontario-icon-add-alt.js +3 -3
  287. package/dist/components/ontario-icon-add.js +3 -3
  288. package/dist/components/ontario-icon-alert-error2.js +4 -4
  289. package/dist/components/ontario-icon-alert-information2.js +4 -4
  290. package/dist/components/ontario-icon-alert-success2.js +4 -4
  291. package/dist/components/ontario-icon-alert-warning2.js +4 -4
  292. package/dist/components/ontario-icon-arrow-up.js +4 -4
  293. package/dist/components/ontario-icon-attach.js +3 -3
  294. package/dist/components/ontario-icon-bookmark-off.js +3 -3
  295. package/dist/components/ontario-icon-bookmark-on.js +3 -3
  296. package/dist/components/ontario-icon-calendar.js +3 -3
  297. package/dist/components/ontario-icon-camera.js +3 -3
  298. package/dist/components/ontario-icon-chevron-down2.js +3 -3
  299. package/dist/components/ontario-icon-chevron-left2.js +3 -3
  300. package/dist/components/ontario-icon-chevron-right.js +3 -3
  301. package/dist/components/ontario-icon-chevron-up2.js +3 -3
  302. package/dist/components/ontario-icon-clock.js +3 -3
  303. package/dist/components/ontario-icon-close-header.js +3 -3
  304. package/dist/components/ontario-icon-close.js +3 -3
  305. package/dist/components/ontario-icon-cloud.js +3 -3
  306. package/dist/components/ontario-icon-collapse.js +3 -3
  307. package/dist/components/ontario-icon-credit-card.js +3 -3
  308. package/dist/components/ontario-icon-critical-alert-warning.js +5 -5
  309. package/dist/components/ontario-icon-delete.js +3 -3
  310. package/dist/components/ontario-icon-document.js +3 -3
  311. package/dist/components/ontario-icon-download.js +3 -3
  312. package/dist/components/ontario-icon-dropdown-arrow.js +3 -3
  313. package/dist/components/ontario-icon-edit.js +3 -3
  314. package/dist/components/ontario-icon-email.js +3 -3
  315. package/dist/components/ontario-icon-expand.js +3 -3
  316. package/dist/components/ontario-icon-export.js +3 -3
  317. package/dist/components/ontario-icon-facebook-alt.js +3 -3
  318. package/dist/components/ontario-icon-facebook.js +3 -3
  319. package/dist/components/ontario-icon-favourite-off.js +3 -3
  320. package/dist/components/ontario-icon-favourite-on.js +3 -3
  321. package/dist/components/ontario-icon-filter.js +3 -3
  322. package/dist/components/ontario-icon-flickr.js +3 -3
  323. package/dist/components/ontario-icon-grid.js +3 -3
  324. package/dist/components/ontario-icon-help.js +3 -3
  325. package/dist/components/ontario-icon-instagram.js +3 -3
  326. package/dist/components/ontario-icon-interac-en-alt.js +19 -19
  327. package/dist/components/ontario-icon-interac-en.js +18 -18
  328. package/dist/components/ontario-icon-interac-fr-alt.js +19 -19
  329. package/dist/components/ontario-icon-interac-fr.js +12 -12
  330. package/dist/components/ontario-icon-linkedin-alt.js +3 -3
  331. package/dist/components/ontario-icon-linkedin.js +3 -3
  332. package/dist/components/ontario-icon-list.js +3 -3
  333. package/dist/components/ontario-icon-live-chat.js +3 -3
  334. package/dist/components/ontario-icon-location-off.js +3 -3
  335. package/dist/components/ontario-icon-location-on.js +3 -3
  336. package/dist/components/ontario-icon-lock-off.js +3 -3
  337. package/dist/components/ontario-icon-lock-on.js +3 -3
  338. package/dist/components/ontario-icon-map.js +3 -3
  339. package/dist/components/ontario-icon-mastercard-alt.js +6 -6
  340. package/dist/components/ontario-icon-mastercard.js +9 -9
  341. package/dist/components/ontario-icon-media-fast-forward.js +3 -3
  342. package/dist/components/ontario-icon-media-fast-rewind.js +3 -3
  343. package/dist/components/ontario-icon-media-pause.js +3 -3
  344. package/dist/components/ontario-icon-media-play.js +3 -3
  345. package/dist/components/ontario-icon-media-stop.js +3 -3
  346. package/dist/components/ontario-icon-menu-header.js +3 -3
  347. package/dist/components/ontario-icon-menu.js +3 -3
  348. package/dist/components/ontario-icon-microphone-off.js +3 -3
  349. package/dist/components/ontario-icon-microphone-on.js +3 -3
  350. package/dist/components/ontario-icon-more-vertical.js +3 -3
  351. package/dist/components/ontario-icon-new-window.js +3 -3
  352. package/dist/components/ontario-icon-next.js +3 -3
  353. package/dist/components/ontario-icon-notification.js +3 -3
  354. package/dist/components/ontario-icon-password-hide.js +3 -3
  355. package/dist/components/ontario-icon-password-show.js +3 -3
  356. package/dist/components/ontario-icon-phone.js +3 -3
  357. package/dist/components/ontario-icon-photo.js +3 -3
  358. package/dist/components/ontario-icon-pin-location-off.js +3 -3
  359. package/dist/components/ontario-icon-pin-location-on.js +3 -3
  360. package/dist/components/ontario-icon-previous.js +3 -3
  361. package/dist/components/ontario-icon-print.js +3 -3
  362. package/dist/components/ontario-icon-remove-alt.js +3 -3
  363. package/dist/components/ontario-icon-remove.js +3 -3
  364. package/dist/components/ontario-icon-replay.js +3 -3
  365. package/dist/components/ontario-icon-rss-feed.js +3 -3
  366. package/dist/components/ontario-icon-save.js +3 -3
  367. package/dist/components/ontario-icon-search-white.js +3 -3
  368. package/dist/components/ontario-icon-search.js +3 -3
  369. package/dist/components/ontario-icon-sentiment-1.js +3 -3
  370. package/dist/components/ontario-icon-sentiment-2.js +3 -3
  371. package/dist/components/ontario-icon-sentiment-3.js +3 -3
  372. package/dist/components/ontario-icon-sentiment-4.js +3 -3
  373. package/dist/components/ontario-icon-sentiment-5.js +3 -3
  374. package/dist/components/ontario-icon-settings.js +3 -3
  375. package/dist/components/ontario-icon-share.js +3 -3
  376. package/dist/components/ontario-icon-sort.js +3 -3
  377. package/dist/components/ontario-icon-tag.js +3 -3
  378. package/dist/components/ontario-icon-text-message.js +3 -3
  379. package/dist/components/ontario-icon-timer.js +3 -3
  380. package/dist/components/ontario-icon-transport-bicycle.js +3 -3
  381. package/dist/components/ontario-icon-transport-bus.js +3 -3
  382. package/dist/components/ontario-icon-transport-car.js +3 -3
  383. package/dist/components/ontario-icon-transport-walk.js +3 -3
  384. package/dist/components/ontario-icon-tty.js +3 -3
  385. package/dist/components/ontario-icon-twitter-alt.js +3 -3
  386. package/dist/components/ontario-icon-twitter.js +3 -3
  387. package/dist/components/ontario-icon-upload.js +3 -3
  388. package/dist/components/ontario-icon-video.js +3 -3
  389. package/dist/components/ontario-icon-visa.js +5 -5
  390. package/dist/components/ontario-icon-vote-dislike.js +3 -3
  391. package/dist/components/ontario-icon-vote-like.js +3 -3
  392. package/dist/components/ontario-icon-vpn-key.js +3 -3
  393. package/dist/components/ontario-icon-wheelchair.js +3 -3
  394. package/dist/components/ontario-icon-wifi.js +3 -3
  395. package/dist/components/ontario-icon-youtube.js +3 -3
  396. package/dist/components/ontario-input.js +5 -6
  397. package/dist/components/ontario-input.js.map +1 -1
  398. package/dist/components/ontario-language-toggle2.js +1 -1
  399. package/dist/components/ontario-page-alert.js +5 -5
  400. package/dist/components/ontario-radio-buttons.js +34 -8
  401. package/dist/components/ontario-radio-buttons.js.map +1 -1
  402. package/dist/components/ontario-step-indicator.js +5 -5
  403. package/dist/components/ontario-table.js +5 -5
  404. package/dist/components/ontario-textarea.js +32 -7
  405. package/dist/components/ontario-textarea.js.map +1 -1
  406. package/dist/esm/loader.js +1 -1
  407. package/dist/esm/ontario-accordion_42.entry.js +274 -249
  408. package/dist/esm/ontario-accordion_42.entry.js.map +1 -1
  409. package/dist/esm/ontario-design-system-components.js +1 -1
  410. package/dist/esm/ontario-icon-account.entry.js +3 -3
  411. package/dist/esm/ontario-icon-add-alt.entry.js +3 -3
  412. package/dist/esm/ontario-icon-add.entry.js +3 -3
  413. package/dist/esm/ontario-icon-arrow-up.entry.js +4 -4
  414. package/dist/esm/ontario-icon-attach.entry.js +3 -3
  415. package/dist/esm/ontario-icon-bookmark-off.entry.js +3 -3
  416. package/dist/esm/ontario-icon-bookmark-on.entry.js +3 -3
  417. package/dist/esm/ontario-icon-calendar.entry.js +3 -3
  418. package/dist/esm/ontario-icon-chevron-right.entry.js +3 -3
  419. package/dist/esm/ontario-icon-clock.entry.js +3 -3
  420. package/dist/esm/ontario-icon-close-header.entry.js +3 -3
  421. package/dist/esm/ontario-icon-close.entry.js +3 -3
  422. package/dist/esm/ontario-icon-cloud.entry.js +3 -3
  423. package/dist/esm/ontario-icon-collapse.entry.js +3 -3
  424. package/dist/esm/ontario-icon-credit-card.entry.js +3 -3
  425. package/dist/esm/ontario-icon-critical-alert-warning.entry.js +5 -5
  426. package/dist/esm/ontario-icon-delete.entry.js +3 -3
  427. package/dist/esm/ontario-icon-document.entry.js +3 -3
  428. package/dist/esm/ontario-icon-download.entry.js +3 -3
  429. package/dist/esm/ontario-icon-dropdown-arrow.entry.js +3 -3
  430. package/dist/esm/ontario-icon-edit.entry.js +3 -3
  431. package/dist/esm/ontario-icon-expand.entry.js +3 -3
  432. package/dist/esm/ontario-icon-export.entry.js +3 -3
  433. package/dist/esm/ontario-icon-facebook-alt.entry.js +3 -3
  434. package/dist/esm/ontario-icon-facebook.entry.js +3 -3
  435. package/dist/esm/ontario-icon-favourite-off.entry.js +3 -3
  436. package/dist/esm/ontario-icon-favourite-on.entry.js +3 -3
  437. package/dist/esm/ontario-icon-filter.entry.js +3 -3
  438. package/dist/esm/ontario-icon-flickr.entry.js +3 -3
  439. package/dist/esm/ontario-icon-grid.entry.js +3 -3
  440. package/dist/esm/ontario-icon-instagram.entry.js +3 -3
  441. package/dist/esm/ontario-icon-interac-en-alt.entry.js +19 -19
  442. package/dist/esm/ontario-icon-interac-en.entry.js +18 -18
  443. package/dist/esm/ontario-icon-interac-fr-alt.entry.js +19 -19
  444. package/dist/esm/ontario-icon-interac-fr.entry.js +12 -12
  445. package/dist/esm/ontario-icon-linkedin-alt.entry.js +3 -3
  446. package/dist/esm/ontario-icon-linkedin.entry.js +3 -3
  447. package/dist/esm/ontario-icon-list.entry.js +3 -3
  448. package/dist/esm/ontario-icon-live-chat.entry.js +3 -3
  449. package/dist/esm/ontario-icon-location-off.entry.js +3 -3
  450. package/dist/esm/ontario-icon-location-on.entry.js +3 -3
  451. package/dist/esm/ontario-icon-lock-off.entry.js +3 -3
  452. package/dist/esm/ontario-icon-lock-on.entry.js +3 -3
  453. package/dist/esm/ontario-icon-map.entry.js +3 -3
  454. package/dist/esm/ontario-icon-mastercard-alt.entry.js +6 -6
  455. package/dist/esm/ontario-icon-media-fast-forward.entry.js +3 -3
  456. package/dist/esm/ontario-icon-media-fast-rewind.entry.js +3 -3
  457. package/dist/esm/ontario-icon-media-pause.entry.js +3 -3
  458. package/dist/esm/ontario-icon-media-play.entry.js +3 -3
  459. package/dist/esm/ontario-icon-media-stop.entry.js +3 -3
  460. package/dist/esm/ontario-icon-menu-header.entry.js +3 -3
  461. package/dist/esm/ontario-icon-menu.entry.js +3 -3
  462. package/dist/esm/ontario-icon-microphone-off.entry.js +3 -3
  463. package/dist/esm/ontario-icon-microphone-on.entry.js +3 -3
  464. package/dist/esm/ontario-icon-more-vertical.entry.js +3 -3
  465. package/dist/esm/ontario-icon-new-window.entry.js +3 -3
  466. package/dist/esm/ontario-icon-next.entry.js +3 -3
  467. package/dist/esm/ontario-icon-password-hide.entry.js +3 -3
  468. package/dist/esm/ontario-icon-password-show.entry.js +3 -3
  469. package/dist/esm/ontario-icon-phone.entry.js +3 -3
  470. package/dist/esm/ontario-icon-photo.entry.js +3 -3
  471. package/dist/esm/ontario-icon-pin-location-off.entry.js +3 -3
  472. package/dist/esm/ontario-icon-pin-location-on.entry.js +3 -3
  473. package/dist/esm/ontario-icon-previous.entry.js +3 -3
  474. package/dist/esm/ontario-icon-remove-alt.entry.js +3 -3
  475. package/dist/esm/ontario-icon-remove.entry.js +3 -3
  476. package/dist/esm/ontario-icon-replay.entry.js +3 -3
  477. package/dist/esm/ontario-icon-rss-feed.entry.js +3 -3
  478. package/dist/esm/ontario-icon-save.entry.js +3 -3
  479. package/dist/esm/ontario-icon-search-white.entry.js +3 -3
  480. package/dist/esm/ontario-icon-search.entry.js +3 -3
  481. package/dist/esm/ontario-icon-sentiment-1.entry.js +3 -3
  482. package/dist/esm/ontario-icon-sentiment-2.entry.js +3 -3
  483. package/dist/esm/ontario-icon-sentiment-3.entry.js +3 -3
  484. package/dist/esm/ontario-icon-sentiment-4.entry.js +3 -3
  485. package/dist/esm/ontario-icon-settings.entry.js +3 -3
  486. package/dist/esm/ontario-icon-share.entry.js +3 -3
  487. package/dist/esm/ontario-icon-sort.entry.js +3 -3
  488. package/dist/esm/ontario-icon-tag.entry.js +3 -3
  489. package/dist/esm/ontario-icon-timer.entry.js +3 -3
  490. package/dist/esm/ontario-icon-transport-bicycle.entry.js +3 -3
  491. package/dist/esm/ontario-icon-transport-car.entry.js +3 -3
  492. package/dist/esm/ontario-icon-transport-walk.entry.js +3 -3
  493. package/dist/esm/ontario-icon-tty.entry.js +3 -3
  494. package/dist/esm/ontario-icon-twitter-alt.entry.js +3 -3
  495. package/dist/esm/ontario-icon-twitter.entry.js +3 -3
  496. package/dist/esm/ontario-icon-upload.entry.js +3 -3
  497. package/dist/esm/ontario-icon-video.entry.js +3 -3
  498. package/dist/esm/ontario-icon-visa.entry.js +5 -5
  499. package/dist/esm/ontario-icon-vote-dislike.entry.js +3 -3
  500. package/dist/esm/ontario-icon-vote-like.entry.js +3 -3
  501. package/dist/esm/ontario-icon-vpn-key.entry.js +3 -3
  502. package/dist/esm/ontario-icon-wheelchair.entry.js +3 -3
  503. package/dist/esm/ontario-icon-wifi.entry.js +3 -3
  504. package/dist/esm/ontario-icon-youtube.entry.js +3 -3
  505. package/dist/ontario-design-system-components/ontario-design-system-components.css +3 -0
  506. package/dist/ontario-design-system-components/ontario-design-system-components.esm.js +3 -3
  507. package/dist/ontario-design-system-components/ontario-design-system-components.esm.js.map +1 -1
  508. package/dist/ontario-design-system-components/{p-c290df94.entry.js → p-00364195.entry.js} +372 -343
  509. package/dist/ontario-design-system-components/p-00364195.entry.js.map +1 -0
  510. package/{www/build/p-9eb84b8a.entry.js → dist/ontario-design-system-components/p-01f427db.entry.js} +4 -4
  511. package/{www/build/p-076fbd17.entry.js → dist/ontario-design-system-components/p-04fb2b1f.entry.js} +4 -4
  512. package/{www/build/p-5af55b3a.entry.js → dist/ontario-design-system-components/p-0aea8df7.entry.js} +9 -9
  513. package/dist/ontario-design-system-components/{p-c75f5396.entry.js → p-0f8e5a0c.entry.js} +24 -24
  514. package/dist/ontario-design-system-components/{p-ac72bccb.entry.js → p-0fa6ba1b.entry.js} +4 -4
  515. package/dist/ontario-design-system-components/{p-6e62de52.entry.js → p-10899c2d.entry.js} +21 -21
  516. package/{www/build/p-0f9e2d2c.entry.js → dist/ontario-design-system-components/p-12d41776.entry.js} +4 -4
  517. package/dist/ontario-design-system-components/{p-72c7c4aa.entry.js → p-1526e1f3.entry.js} +4 -4
  518. package/{www/build/p-32ecc2eb.entry.js → dist/ontario-design-system-components/p-1567ea71.entry.js} +4 -4
  519. package/dist/ontario-design-system-components/{p-8bae2e2d.entry.js → p-16dc2584.entry.js} +4 -4
  520. package/dist/ontario-design-system-components/{p-e18cb3eb.entry.js → p-17409379.entry.js} +4 -4
  521. package/dist/ontario-design-system-components/{p-5fa28101.entry.js → p-1cd78ef5.entry.js} +7 -7
  522. package/{www/build/p-5ef6f597.entry.js → dist/ontario-design-system-components/p-21b80693.entry.js} +9 -9
  523. package/{www/build/p-635feedf.entry.js → dist/ontario-design-system-components/p-2a6e912e.entry.js} +11 -11
  524. package/dist/ontario-design-system-components/{p-f88fe1bd.entry.js → p-3218a141.entry.js} +4 -4
  525. package/{www/build/p-6efbc44d.entry.js → dist/ontario-design-system-components/p-32666b1a.entry.js} +9 -9
  526. package/{www/build/p-a596839c.entry.js → dist/ontario-design-system-components/p-34371cd7.entry.js} +4 -4
  527. package/dist/ontario-design-system-components/{p-e21b53a2.entry.js → p-35681159.entry.js} +4 -4
  528. package/dist/ontario-design-system-components/{p-ffe78c79.entry.js → p-3868d245.entry.js} +4 -4
  529. package/dist/ontario-design-system-components/{p-78d9f49e.entry.js → p-39ab52ad.entry.js} +4 -4
  530. package/{www/build/p-71a2dd36.entry.js → dist/ontario-design-system-components/p-3b1c06b1.entry.js} +4 -4
  531. package/{www/build/p-8c3a8ddc.entry.js → dist/ontario-design-system-components/p-3cca2f28.entry.js} +47 -47
  532. package/dist/ontario-design-system-components/{p-db4a37a3.entry.js → p-3fb5a2f5.entry.js} +4 -4
  533. package/dist/ontario-design-system-components/{p-2e894229.entry.js → p-404f3050.entry.js} +4 -4
  534. package/{www/build/p-e402f3b8.entry.js → dist/ontario-design-system-components/p-446337ea.entry.js} +9 -9
  535. package/dist/ontario-design-system-components/{p-fd039069.entry.js → p-44fe73c2.entry.js} +4 -4
  536. package/dist/ontario-design-system-components/{p-5dae140f.entry.js → p-47b56153.entry.js} +4 -4
  537. package/{www/build/p-cef09b28.entry.js → dist/ontario-design-system-components/p-4f1683c0.entry.js} +4 -4
  538. package/{www/build/p-8ee66922.entry.js → dist/ontario-design-system-components/p-5128c0bb.entry.js} +7 -7
  539. package/dist/ontario-design-system-components/{p-191d8da8.entry.js → p-5184701e.entry.js} +6 -6
  540. package/dist/ontario-design-system-components/{p-34f2d1b1.entry.js → p-533a039a.entry.js} +9 -9
  541. package/dist/ontario-design-system-components/{p-c1723522.entry.js → p-564a51a5.entry.js} +4 -4
  542. package/dist/ontario-design-system-components/{p-a558baf0.entry.js → p-5a775ff3.entry.js} +4 -4
  543. package/{www/build/p-64642937.entry.js → dist/ontario-design-system-components/p-61548ae2.entry.js} +7 -7
  544. package/{www/build/p-107b5f8f.entry.js → dist/ontario-design-system-components/p-6477890e.entry.js} +4 -4
  545. package/dist/ontario-design-system-components/{p-091b695a.entry.js → p-6a62b87d.entry.js} +4 -4
  546. package/dist/ontario-design-system-components/{p-fcb2cadf.entry.js → p-6c85610c.entry.js} +4 -4
  547. package/dist/ontario-design-system-components/{p-3522193d.entry.js → p-6df12aab.entry.js} +24 -24
  548. package/dist/ontario-design-system-components/{p-c14d49ab.entry.js → p-6fb80d3b.entry.js} +4 -4
  549. package/{www/build/p-b2270cd5.entry.js → dist/ontario-design-system-components/p-7738a68d.entry.js} +4 -4
  550. package/dist/ontario-design-system-components/{p-31f3c62d.entry.js → p-7a822cb8.entry.js} +4 -4
  551. package/dist/ontario-design-system-components/{p-c90c72e0.entry.js → p-7afdef3f.entry.js} +4 -4
  552. package/dist/ontario-design-system-components/{p-75d5df20.entry.js → p-7c593bd8.entry.js} +4 -4
  553. package/dist/ontario-design-system-components/{p-15417698.entry.js → p-7f8d2db6.entry.js} +7 -7
  554. package/{www/build/p-2d987bdb.entry.js → dist/ontario-design-system-components/p-80d23c2c.entry.js} +4 -4
  555. package/dist/ontario-design-system-components/{p-8dacd96c.entry.js → p-8653b9a6.entry.js} +9 -9
  556. package/{www/build/p-a4e527cb.entry.js → dist/ontario-design-system-components/p-86849b43.entry.js} +4 -4
  557. package/{www/build/p-f91476fd.entry.js → dist/ontario-design-system-components/p-87fb19b5.entry.js} +4 -4
  558. package/dist/ontario-design-system-components/{p-81c8e9f0.entry.js → p-8973affb.entry.js} +9 -9
  559. package/dist/ontario-design-system-components/{p-bdd5c0cd.entry.js → p-8b743603.entry.js} +4 -4
  560. package/{www/build/p-360d6b10.entry.js → dist/ontario-design-system-components/p-8ed8323f.entry.js} +4 -4
  561. package/dist/ontario-design-system-components/{p-83144457.entry.js → p-95671e82.entry.js} +4 -4
  562. package/dist/ontario-design-system-components/{p-4e7bb7e6.entry.js → p-965f968c.entry.js} +9 -9
  563. package/dist/ontario-design-system-components/{p-c08b85f3.entry.js → p-981933f3.entry.js} +4 -4
  564. package/{www/build/p-86997e62.entry.js → dist/ontario-design-system-components/p-9c9d49a3.entry.js} +4 -4
  565. package/dist/ontario-design-system-components/{p-508bd33a.entry.js → p-9cab9d12.entry.js} +4 -4
  566. package/dist/ontario-design-system-components/{p-98642cf0.entry.js → p-9ffdf9ad.entry.js} +7 -7
  567. package/{www/build/p-00c121e9.entry.js → dist/ontario-design-system-components/p-a168d607.entry.js} +4 -4
  568. package/dist/ontario-design-system-components/{p-557d211e.entry.js → p-a2461cfc.entry.js} +4 -4
  569. package/{www/build/p-eebc769a.entry.js → dist/ontario-design-system-components/p-a33f978b.entry.js} +4 -4
  570. package/{www/build/p-3c5c66df.entry.js → dist/ontario-design-system-components/p-a80d7066.entry.js} +4 -4
  571. package/dist/ontario-design-system-components/{p-283c67bd.entry.js → p-adbbd012.entry.js} +12 -12
  572. package/dist/ontario-design-system-components/{p-d6942c50.entry.js → p-af8d070d.entry.js} +12 -12
  573. package/dist/ontario-design-system-components/{p-2d7fc382.entry.js → p-b1596322.entry.js} +7 -7
  574. package/{www/build/p-fc7a8df4.entry.js → dist/ontario-design-system-components/p-b428f67a.entry.js} +4 -4
  575. package/dist/ontario-design-system-components/{p-92e1ad8b.entry.js → p-b52ef7dc.entry.js} +4 -4
  576. package/dist/ontario-design-system-components/{p-9a52f817.entry.js → p-b83a30cf.entry.js} +4 -4
  577. package/dist/ontario-design-system-components/{p-01d17804.entry.js → p-ba5dc106.entry.js} +4 -4
  578. package/{www/build/p-c16792b1.entry.js → dist/ontario-design-system-components/p-bad1e757.entry.js} +4 -4
  579. package/dist/ontario-design-system-components/{p-151fc1fa.entry.js → p-baf6249e.entry.js} +10 -10
  580. package/dist/ontario-design-system-components/{p-c8f2ccf5.entry.js → p-bb072cb8.entry.js} +9 -9
  581. package/{www/build/p-ac5451d3.entry.js → dist/ontario-design-system-components/p-be4fbe09.entry.js} +6 -6
  582. package/dist/ontario-design-system-components/{p-20493ac1.entry.js → p-c69e5796.entry.js} +9 -9
  583. package/dist/ontario-design-system-components/{p-128d7d9c.entry.js → p-c6d771f1.entry.js} +4 -4
  584. package/{www/build/p-c84fd6f3.entry.js → dist/ontario-design-system-components/p-c779e248.entry.js} +4 -4
  585. package/dist/ontario-design-system-components/{p-6ae89bbc.entry.js → p-cb21b1a3.entry.js} +9 -9
  586. package/dist/ontario-design-system-components/{p-88722311.entry.js → p-ce1fa4bd.entry.js} +4 -4
  587. package/dist/ontario-design-system-components/{p-02c38199.entry.js → p-d733ba28.entry.js} +4 -4
  588. package/{www/build/p-35fe7d9d.entry.js → dist/ontario-design-system-components/p-d8e9546c.entry.js} +4 -4
  589. package/dist/ontario-design-system-components/{p-f0a53d8d.entry.js → p-daca3528.entry.js} +4 -4
  590. package/dist/ontario-design-system-components/{p-302c4671.entry.js → p-e51793eb.entry.js} +4 -4
  591. package/{www/build/p-608d5068.entry.js → dist/ontario-design-system-components/p-e6c90ae8.entry.js} +4 -4
  592. package/{www/build/p-cad51f9e.entry.js → dist/ontario-design-system-components/p-e87fde13.entry.js} +4 -4
  593. package/{www/build/p-9e9f6184.entry.js → dist/ontario-design-system-components/p-e952d94f.entry.js} +4 -4
  594. package/{www/build/p-3d27e2f8.entry.js → dist/ontario-design-system-components/p-e96e36ff.entry.js} +4 -4
  595. package/dist/ontario-design-system-components/{p-131d1f76.entry.js → p-eb4faafb.entry.js} +7 -7
  596. package/{www/build/p-812fc78e.entry.js → dist/ontario-design-system-components/p-ecbcd457.entry.js} +4 -4
  597. package/dist/ontario-design-system-components/{p-4bf52401.entry.js → p-ed2d68e1.entry.js} +4 -4
  598. package/dist/ontario-design-system-components/{p-ddb66bbb.entry.js → p-f0ca3e20.entry.js} +4 -4
  599. package/dist/ontario-design-system-components/{p-1700035e.entry.js → p-f125e857.entry.js} +13 -13
  600. package/{www/build/p-cc653027.entry.js → dist/ontario-design-system-components/p-f45d1e6b.entry.js} +4 -4
  601. package/{www/build/p-a365505f.entry.js → dist/ontario-design-system-components/p-f8c4ff40.entry.js} +4 -4
  602. package/dist/ontario-design-system-components/{p-abafe472.entry.js → p-f8cbec7c.entry.js} +4 -4
  603. package/{www/build/p-87897e51.entry.js → dist/ontario-design-system-components/p-fb1a144e.entry.js} +10 -10
  604. package/{www/build/p-33554950.entry.js → dist/ontario-design-system-components/p-fe487325.entry.js} +4 -4
  605. package/dist/types/components/ontario-aside/ontario-aside.d.ts +2 -8
  606. package/dist/types/components/ontario-callout/ontario-callout.d.ts +2 -8
  607. package/dist/types/components/ontario-checkbox/ontario-checkboxes.d.ts +11 -0
  608. package/dist/types/components/ontario-dropdown-list/ontario-dropdown-list.d.ts +11 -0
  609. package/dist/types/components/ontario-radio-buttons/ontario-radio-buttons.d.ts +11 -0
  610. package/dist/types/components/ontario-textarea/ontario-textarea.d.ts +12 -0
  611. package/dist/types/components.d.ts +56 -4
  612. package/dist/types/utils/components/callout-aside/callout-aside-helpers.d.ts +2 -2
  613. package/dist/types/utils/components/callout-aside/callout-aside.interface.d.ts +2 -2
  614. package/package.json +3 -3
  615. package/src/components/ontario-aside/ontario-aside.tsx +15 -33
  616. package/src/components/ontario-aside/readme.md +3 -3
  617. package/src/components/ontario-aside/test/ontario-aside.spec.tsx +39 -0
  618. package/src/components/ontario-callout/ontario-callout.tsx +14 -32
  619. package/src/components/ontario-callout/readme.md +2 -2
  620. package/src/components/ontario-callout/test/ontario-callout.spec.tsx +20 -0
  621. package/src/components/ontario-card/ontario-card.scss +5 -0
  622. package/src/components/ontario-card-collection/ontario-card-collection.scss +3 -0
  623. package/src/components/ontario-checkbox/ontario-checkboxes.scss +13 -5
  624. package/src/components/ontario-checkbox/ontario-checkboxes.tsx +20 -2
  625. package/src/components/ontario-checkbox/readme.md +9 -5
  626. package/src/components/ontario-checkbox/test/ontario-checkboxes.spec.tsx +4 -0
  627. package/src/components/ontario-dropdown-list/ontario-dropdown-list.scss +9 -0
  628. package/src/components/ontario-dropdown-list/ontario-dropdown-list.tsx +20 -1
  629. package/src/components/ontario-dropdown-list/readme.md +9 -5
  630. package/src/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.tsx +4 -0
  631. package/src/components/ontario-footer/components/expanded-footer-wrapper.tsx +1 -1
  632. package/src/components/ontario-header/ontario-header.scss +5 -1
  633. package/src/components/ontario-radio-buttons/ontario-radio-buttons.scss +3 -0
  634. package/src/components/ontario-radio-buttons/ontario-radio-buttons.tsx +21 -2
  635. package/src/components/ontario-radio-buttons/readme.md +9 -5
  636. package/src/components/ontario-radio-buttons/test/ontario-radio-button.spec.tsx +6 -1
  637. package/src/components/ontario-textarea/ontario-textarea.scss +9 -0
  638. package/src/components/ontario-textarea/ontario-textarea.tsx +20 -1
  639. package/src/components/ontario-textarea/readme.md +10 -6
  640. package/src/components/ontario-textarea/test/__snapshots__/ontario-textarea.spec.tsx.snap +5 -1
  641. package/src/components/ontario-textarea/test/ontario-textarea.spec.tsx +4 -1
  642. package/src/components.d.ts +56 -4
  643. package/src/index.html +15 -0
  644. package/src/utils/components/callout-aside/callout-aside-helpers.tsx +6 -6
  645. package/src/utils/components/callout-aside/callout-aside.interface.ts +2 -2
  646. package/www/build/ontario-design-system-components.css +3 -0
  647. package/www/build/ontario-design-system-components.esm.js +3 -3
  648. package/www/build/ontario-design-system-components.esm.js.map +1 -1
  649. package/www/build/{p-c290df94.entry.js → p-00364195.entry.js} +372 -343
  650. package/www/build/p-00364195.entry.js.map +1 -0
  651. package/www/build/{p-12d6190c.css → p-016eeaf2.css} +3 -0
  652. package/{dist/ontario-design-system-components/p-9eb84b8a.entry.js → www/build/p-01f427db.entry.js} +4 -4
  653. package/{dist/ontario-design-system-components/p-076fbd17.entry.js → www/build/p-04fb2b1f.entry.js} +4 -4
  654. package/{dist/ontario-design-system-components/p-5af55b3a.entry.js → www/build/p-0aea8df7.entry.js} +9 -9
  655. package/www/build/{p-c75f5396.entry.js → p-0f8e5a0c.entry.js} +24 -24
  656. package/www/build/{p-ac72bccb.entry.js → p-0fa6ba1b.entry.js} +4 -4
  657. package/www/build/{p-6e62de52.entry.js → p-10899c2d.entry.js} +21 -21
  658. package/{dist/ontario-design-system-components/p-0f9e2d2c.entry.js → www/build/p-12d41776.entry.js} +4 -4
  659. package/www/build/{p-72c7c4aa.entry.js → p-1526e1f3.entry.js} +4 -4
  660. package/{dist/ontario-design-system-components/p-32ecc2eb.entry.js → www/build/p-1567ea71.entry.js} +4 -4
  661. package/www/build/{p-8bae2e2d.entry.js → p-16dc2584.entry.js} +4 -4
  662. package/www/build/{p-e18cb3eb.entry.js → p-17409379.entry.js} +4 -4
  663. package/www/build/{p-5fa28101.entry.js → p-1cd78ef5.entry.js} +7 -7
  664. package/{dist/ontario-design-system-components/p-5ef6f597.entry.js → www/build/p-21b80693.entry.js} +9 -9
  665. package/{dist/ontario-design-system-components/p-635feedf.entry.js → www/build/p-2a6e912e.entry.js} +11 -11
  666. package/www/build/{p-f88fe1bd.entry.js → p-3218a141.entry.js} +4 -4
  667. package/{dist/ontario-design-system-components/p-6efbc44d.entry.js → www/build/p-32666b1a.entry.js} +9 -9
  668. package/{dist/ontario-design-system-components/p-a596839c.entry.js → www/build/p-34371cd7.entry.js} +4 -4
  669. package/www/build/{p-e21b53a2.entry.js → p-35681159.entry.js} +4 -4
  670. package/www/build/{p-ffe78c79.entry.js → p-3868d245.entry.js} +4 -4
  671. package/www/build/{p-78d9f49e.entry.js → p-39ab52ad.entry.js} +4 -4
  672. package/{dist/ontario-design-system-components/p-71a2dd36.entry.js → www/build/p-3b1c06b1.entry.js} +4 -4
  673. package/{dist/ontario-design-system-components/p-8c3a8ddc.entry.js → www/build/p-3cca2f28.entry.js} +47 -47
  674. package/www/build/{p-db4a37a3.entry.js → p-3fb5a2f5.entry.js} +4 -4
  675. package/www/build/{p-2e894229.entry.js → p-404f3050.entry.js} +4 -4
  676. package/{dist/ontario-design-system-components/p-e402f3b8.entry.js → www/build/p-446337ea.entry.js} +9 -9
  677. package/www/build/{p-fd039069.entry.js → p-44fe73c2.entry.js} +4 -4
  678. package/www/build/{p-5dae140f.entry.js → p-47b56153.entry.js} +4 -4
  679. package/{dist/ontario-design-system-components/p-cef09b28.entry.js → www/build/p-4f1683c0.entry.js} +4 -4
  680. package/{dist/ontario-design-system-components/p-8ee66922.entry.js → www/build/p-5128c0bb.entry.js} +7 -7
  681. package/www/build/{p-191d8da8.entry.js → p-5184701e.entry.js} +6 -6
  682. package/www/build/{p-34f2d1b1.entry.js → p-533a039a.entry.js} +9 -9
  683. package/www/build/{p-c1723522.entry.js → p-564a51a5.entry.js} +4 -4
  684. package/www/build/{p-a558baf0.entry.js → p-5a775ff3.entry.js} +4 -4
  685. package/{dist/ontario-design-system-components/p-64642937.entry.js → www/build/p-61548ae2.entry.js} +7 -7
  686. package/{dist/ontario-design-system-components/p-107b5f8f.entry.js → www/build/p-6477890e.entry.js} +4 -4
  687. package/www/build/{p-091b695a.entry.js → p-6a62b87d.entry.js} +4 -4
  688. package/www/build/{p-fcb2cadf.entry.js → p-6c85610c.entry.js} +4 -4
  689. package/www/build/{p-3522193d.entry.js → p-6df12aab.entry.js} +24 -24
  690. package/www/build/{p-c14d49ab.entry.js → p-6fb80d3b.entry.js} +4 -4
  691. package/{dist/ontario-design-system-components/p-b2270cd5.entry.js → www/build/p-7738a68d.entry.js} +4 -4
  692. package/www/build/{p-31f3c62d.entry.js → p-7a822cb8.entry.js} +4 -4
  693. package/www/build/{p-c90c72e0.entry.js → p-7afdef3f.entry.js} +4 -4
  694. package/www/build/{p-75d5df20.entry.js → p-7c593bd8.entry.js} +4 -4
  695. package/www/build/{p-15417698.entry.js → p-7f8d2db6.entry.js} +7 -7
  696. package/{dist/ontario-design-system-components/p-2d987bdb.entry.js → www/build/p-80d23c2c.entry.js} +4 -4
  697. package/www/build/{p-8dacd96c.entry.js → p-8653b9a6.entry.js} +9 -9
  698. package/{dist/ontario-design-system-components/p-a4e527cb.entry.js → www/build/p-86849b43.entry.js} +4 -4
  699. package/{dist/ontario-design-system-components/p-f91476fd.entry.js → www/build/p-87fb19b5.entry.js} +4 -4
  700. package/www/build/{p-81c8e9f0.entry.js → p-8973affb.entry.js} +9 -9
  701. package/www/build/{p-bdd5c0cd.entry.js → p-8b743603.entry.js} +4 -4
  702. package/{dist/ontario-design-system-components/p-360d6b10.entry.js → www/build/p-8ed8323f.entry.js} +4 -4
  703. package/www/build/{p-83144457.entry.js → p-95671e82.entry.js} +4 -4
  704. package/www/build/{p-4e7bb7e6.entry.js → p-965f968c.entry.js} +9 -9
  705. package/www/build/{p-c08b85f3.entry.js → p-981933f3.entry.js} +4 -4
  706. package/{dist/ontario-design-system-components/p-86997e62.entry.js → www/build/p-9c9d49a3.entry.js} +4 -4
  707. package/www/build/{p-508bd33a.entry.js → p-9cab9d12.entry.js} +4 -4
  708. package/www/build/{p-98642cf0.entry.js → p-9ffdf9ad.entry.js} +7 -7
  709. package/{dist/ontario-design-system-components/p-00c121e9.entry.js → www/build/p-a168d607.entry.js} +4 -4
  710. package/www/build/{p-557d211e.entry.js → p-a2461cfc.entry.js} +4 -4
  711. package/{dist/ontario-design-system-components/p-eebc769a.entry.js → www/build/p-a33f978b.entry.js} +4 -4
  712. package/{dist/ontario-design-system-components/p-3c5c66df.entry.js → www/build/p-a80d7066.entry.js} +4 -4
  713. package/www/build/p-a8bba86c.js +21 -0
  714. package/www/build/{p-283c67bd.entry.js → p-adbbd012.entry.js} +12 -12
  715. package/www/build/{p-d6942c50.entry.js → p-af8d070d.entry.js} +12 -12
  716. package/www/build/{p-2d7fc382.entry.js → p-b1596322.entry.js} +7 -7
  717. package/{dist/ontario-design-system-components/p-fc7a8df4.entry.js → www/build/p-b428f67a.entry.js} +4 -4
  718. package/www/build/{p-92e1ad8b.entry.js → p-b52ef7dc.entry.js} +4 -4
  719. package/www/build/{p-9a52f817.entry.js → p-b83a30cf.entry.js} +4 -4
  720. package/www/build/{p-01d17804.entry.js → p-ba5dc106.entry.js} +4 -4
  721. package/{dist/ontario-design-system-components/p-c16792b1.entry.js → www/build/p-bad1e757.entry.js} +4 -4
  722. package/www/build/{p-151fc1fa.entry.js → p-baf6249e.entry.js} +10 -10
  723. package/www/build/{p-c8f2ccf5.entry.js → p-bb072cb8.entry.js} +9 -9
  724. package/{dist/ontario-design-system-components/p-ac5451d3.entry.js → www/build/p-be4fbe09.entry.js} +6 -6
  725. package/www/build/{p-20493ac1.entry.js → p-c69e5796.entry.js} +9 -9
  726. package/www/build/{p-128d7d9c.entry.js → p-c6d771f1.entry.js} +4 -4
  727. package/{dist/ontario-design-system-components/p-c84fd6f3.entry.js → www/build/p-c779e248.entry.js} +4 -4
  728. package/www/build/{p-6ae89bbc.entry.js → p-cb21b1a3.entry.js} +9 -9
  729. package/www/build/{p-88722311.entry.js → p-ce1fa4bd.entry.js} +4 -4
  730. package/www/build/{p-02c38199.entry.js → p-d733ba28.entry.js} +4 -4
  731. package/{dist/ontario-design-system-components/p-35fe7d9d.entry.js → www/build/p-d8e9546c.entry.js} +4 -4
  732. package/www/build/{p-f0a53d8d.entry.js → p-daca3528.entry.js} +4 -4
  733. package/www/build/{p-302c4671.entry.js → p-e51793eb.entry.js} +4 -4
  734. package/{dist/ontario-design-system-components/p-608d5068.entry.js → www/build/p-e6c90ae8.entry.js} +4 -4
  735. package/{dist/ontario-design-system-components/p-cad51f9e.entry.js → www/build/p-e87fde13.entry.js} +4 -4
  736. package/{dist/ontario-design-system-components/p-9e9f6184.entry.js → www/build/p-e952d94f.entry.js} +4 -4
  737. package/{dist/ontario-design-system-components/p-3d27e2f8.entry.js → www/build/p-e96e36ff.entry.js} +4 -4
  738. package/www/build/{p-131d1f76.entry.js → p-eb4faafb.entry.js} +7 -7
  739. package/{dist/ontario-design-system-components/p-812fc78e.entry.js → www/build/p-ecbcd457.entry.js} +4 -4
  740. package/www/build/{p-4bf52401.entry.js → p-ed2d68e1.entry.js} +4 -4
  741. package/www/build/{p-ddb66bbb.entry.js → p-f0ca3e20.entry.js} +4 -4
  742. package/www/build/{p-1700035e.entry.js → p-f125e857.entry.js} +13 -13
  743. package/{dist/ontario-design-system-components/p-cc653027.entry.js → www/build/p-f45d1e6b.entry.js} +4 -4
  744. package/{dist/ontario-design-system-components/p-a365505f.entry.js → www/build/p-f8c4ff40.entry.js} +4 -4
  745. package/www/build/{p-abafe472.entry.js → p-f8cbec7c.entry.js} +4 -4
  746. package/{dist/ontario-design-system-components/p-87897e51.entry.js → www/build/p-fb1a144e.entry.js} +10 -10
  747. package/{dist/ontario-design-system-components/p-33554950.entry.js → www/build/p-fe487325.entry.js} +4 -4
  748. package/www/index.html +17 -3
  749. package/dist/components/event-handler.js +0 -328
  750. package/dist/components/event-handler.js.map +0 -1
  751. package/dist/ontario-design-system-components/p-c290df94.entry.js.map +0 -1
  752. package/www/build/p-1d439e32.js +0 -21
  753. package/www/build/p-c290df94.entry.js.map +0 -1
  754. /package/dist/ontario-design-system-components/{p-9eb84b8a.entry.js.map → p-01f427db.entry.js.map} +0 -0
  755. /package/dist/ontario-design-system-components/{p-076fbd17.entry.js.map → p-04fb2b1f.entry.js.map} +0 -0
  756. /package/dist/ontario-design-system-components/{p-5af55b3a.entry.js.map → p-0aea8df7.entry.js.map} +0 -0
  757. /package/dist/ontario-design-system-components/{p-c75f5396.entry.js.map → p-0f8e5a0c.entry.js.map} +0 -0
  758. /package/dist/ontario-design-system-components/{p-ac72bccb.entry.js.map → p-0fa6ba1b.entry.js.map} +0 -0
  759. /package/dist/ontario-design-system-components/{p-6e62de52.entry.js.map → p-10899c2d.entry.js.map} +0 -0
  760. /package/dist/ontario-design-system-components/{p-0f9e2d2c.entry.js.map → p-12d41776.entry.js.map} +0 -0
  761. /package/dist/ontario-design-system-components/{p-72c7c4aa.entry.js.map → p-1526e1f3.entry.js.map} +0 -0
  762. /package/dist/ontario-design-system-components/{p-32ecc2eb.entry.js.map → p-1567ea71.entry.js.map} +0 -0
  763. /package/dist/ontario-design-system-components/{p-8bae2e2d.entry.js.map → p-16dc2584.entry.js.map} +0 -0
  764. /package/dist/ontario-design-system-components/{p-e18cb3eb.entry.js.map → p-17409379.entry.js.map} +0 -0
  765. /package/dist/ontario-design-system-components/{p-5fa28101.entry.js.map → p-1cd78ef5.entry.js.map} +0 -0
  766. /package/dist/ontario-design-system-components/{p-5ef6f597.entry.js.map → p-21b80693.entry.js.map} +0 -0
  767. /package/dist/ontario-design-system-components/{p-635feedf.entry.js.map → p-2a6e912e.entry.js.map} +0 -0
  768. /package/dist/ontario-design-system-components/{p-f88fe1bd.entry.js.map → p-3218a141.entry.js.map} +0 -0
  769. /package/dist/ontario-design-system-components/{p-6efbc44d.entry.js.map → p-32666b1a.entry.js.map} +0 -0
  770. /package/dist/ontario-design-system-components/{p-a596839c.entry.js.map → p-34371cd7.entry.js.map} +0 -0
  771. /package/dist/ontario-design-system-components/{p-e21b53a2.entry.js.map → p-35681159.entry.js.map} +0 -0
  772. /package/dist/ontario-design-system-components/{p-ffe78c79.entry.js.map → p-3868d245.entry.js.map} +0 -0
  773. /package/dist/ontario-design-system-components/{p-78d9f49e.entry.js.map → p-39ab52ad.entry.js.map} +0 -0
  774. /package/dist/ontario-design-system-components/{p-71a2dd36.entry.js.map → p-3b1c06b1.entry.js.map} +0 -0
  775. /package/dist/ontario-design-system-components/{p-8c3a8ddc.entry.js.map → p-3cca2f28.entry.js.map} +0 -0
  776. /package/dist/ontario-design-system-components/{p-db4a37a3.entry.js.map → p-3fb5a2f5.entry.js.map} +0 -0
  777. /package/dist/ontario-design-system-components/{p-2e894229.entry.js.map → p-404f3050.entry.js.map} +0 -0
  778. /package/dist/ontario-design-system-components/{p-e402f3b8.entry.js.map → p-446337ea.entry.js.map} +0 -0
  779. /package/dist/ontario-design-system-components/{p-fd039069.entry.js.map → p-44fe73c2.entry.js.map} +0 -0
  780. /package/dist/ontario-design-system-components/{p-5dae140f.entry.js.map → p-47b56153.entry.js.map} +0 -0
  781. /package/dist/ontario-design-system-components/{p-cef09b28.entry.js.map → p-4f1683c0.entry.js.map} +0 -0
  782. /package/dist/ontario-design-system-components/{p-8ee66922.entry.js.map → p-5128c0bb.entry.js.map} +0 -0
  783. /package/dist/ontario-design-system-components/{p-191d8da8.entry.js.map → p-5184701e.entry.js.map} +0 -0
  784. /package/dist/ontario-design-system-components/{p-34f2d1b1.entry.js.map → p-533a039a.entry.js.map} +0 -0
  785. /package/dist/ontario-design-system-components/{p-c1723522.entry.js.map → p-564a51a5.entry.js.map} +0 -0
  786. /package/dist/ontario-design-system-components/{p-a558baf0.entry.js.map → p-5a775ff3.entry.js.map} +0 -0
  787. /package/dist/ontario-design-system-components/{p-64642937.entry.js.map → p-61548ae2.entry.js.map} +0 -0
  788. /package/dist/ontario-design-system-components/{p-107b5f8f.entry.js.map → p-6477890e.entry.js.map} +0 -0
  789. /package/dist/ontario-design-system-components/{p-091b695a.entry.js.map → p-6a62b87d.entry.js.map} +0 -0
  790. /package/dist/ontario-design-system-components/{p-fcb2cadf.entry.js.map → p-6c85610c.entry.js.map} +0 -0
  791. /package/dist/ontario-design-system-components/{p-3522193d.entry.js.map → p-6df12aab.entry.js.map} +0 -0
  792. /package/dist/ontario-design-system-components/{p-c14d49ab.entry.js.map → p-6fb80d3b.entry.js.map} +0 -0
  793. /package/dist/ontario-design-system-components/{p-b2270cd5.entry.js.map → p-7738a68d.entry.js.map} +0 -0
  794. /package/dist/ontario-design-system-components/{p-31f3c62d.entry.js.map → p-7a822cb8.entry.js.map} +0 -0
  795. /package/dist/ontario-design-system-components/{p-c90c72e0.entry.js.map → p-7afdef3f.entry.js.map} +0 -0
  796. /package/dist/ontario-design-system-components/{p-75d5df20.entry.js.map → p-7c593bd8.entry.js.map} +0 -0
  797. /package/dist/ontario-design-system-components/{p-15417698.entry.js.map → p-7f8d2db6.entry.js.map} +0 -0
  798. /package/dist/ontario-design-system-components/{p-2d987bdb.entry.js.map → p-80d23c2c.entry.js.map} +0 -0
  799. /package/dist/ontario-design-system-components/{p-8dacd96c.entry.js.map → p-8653b9a6.entry.js.map} +0 -0
  800. /package/dist/ontario-design-system-components/{p-a4e527cb.entry.js.map → p-86849b43.entry.js.map} +0 -0
  801. /package/dist/ontario-design-system-components/{p-f91476fd.entry.js.map → p-87fb19b5.entry.js.map} +0 -0
  802. /package/dist/ontario-design-system-components/{p-81c8e9f0.entry.js.map → p-8973affb.entry.js.map} +0 -0
  803. /package/dist/ontario-design-system-components/{p-bdd5c0cd.entry.js.map → p-8b743603.entry.js.map} +0 -0
  804. /package/dist/ontario-design-system-components/{p-360d6b10.entry.js.map → p-8ed8323f.entry.js.map} +0 -0
  805. /package/dist/ontario-design-system-components/{p-83144457.entry.js.map → p-95671e82.entry.js.map} +0 -0
  806. /package/dist/ontario-design-system-components/{p-4e7bb7e6.entry.js.map → p-965f968c.entry.js.map} +0 -0
  807. /package/dist/ontario-design-system-components/{p-c08b85f3.entry.js.map → p-981933f3.entry.js.map} +0 -0
  808. /package/dist/ontario-design-system-components/{p-86997e62.entry.js.map → p-9c9d49a3.entry.js.map} +0 -0
  809. /package/dist/ontario-design-system-components/{p-508bd33a.entry.js.map → p-9cab9d12.entry.js.map} +0 -0
  810. /package/dist/ontario-design-system-components/{p-98642cf0.entry.js.map → p-9ffdf9ad.entry.js.map} +0 -0
  811. /package/dist/ontario-design-system-components/{p-00c121e9.entry.js.map → p-a168d607.entry.js.map} +0 -0
  812. /package/dist/ontario-design-system-components/{p-557d211e.entry.js.map → p-a2461cfc.entry.js.map} +0 -0
  813. /package/dist/ontario-design-system-components/{p-eebc769a.entry.js.map → p-a33f978b.entry.js.map} +0 -0
  814. /package/dist/ontario-design-system-components/{p-3c5c66df.entry.js.map → p-a80d7066.entry.js.map} +0 -0
  815. /package/dist/ontario-design-system-components/{p-283c67bd.entry.js.map → p-adbbd012.entry.js.map} +0 -0
  816. /package/dist/ontario-design-system-components/{p-d6942c50.entry.js.map → p-af8d070d.entry.js.map} +0 -0
  817. /package/dist/ontario-design-system-components/{p-2d7fc382.entry.js.map → p-b1596322.entry.js.map} +0 -0
  818. /package/dist/ontario-design-system-components/{p-fc7a8df4.entry.js.map → p-b428f67a.entry.js.map} +0 -0
  819. /package/dist/ontario-design-system-components/{p-92e1ad8b.entry.js.map → p-b52ef7dc.entry.js.map} +0 -0
  820. /package/dist/ontario-design-system-components/{p-9a52f817.entry.js.map → p-b83a30cf.entry.js.map} +0 -0
  821. /package/dist/ontario-design-system-components/{p-01d17804.entry.js.map → p-ba5dc106.entry.js.map} +0 -0
  822. /package/dist/ontario-design-system-components/{p-c16792b1.entry.js.map → p-bad1e757.entry.js.map} +0 -0
  823. /package/dist/ontario-design-system-components/{p-151fc1fa.entry.js.map → p-baf6249e.entry.js.map} +0 -0
  824. /package/dist/ontario-design-system-components/{p-c8f2ccf5.entry.js.map → p-bb072cb8.entry.js.map} +0 -0
  825. /package/dist/ontario-design-system-components/{p-ac5451d3.entry.js.map → p-be4fbe09.entry.js.map} +0 -0
  826. /package/dist/ontario-design-system-components/{p-20493ac1.entry.js.map → p-c69e5796.entry.js.map} +0 -0
  827. /package/dist/ontario-design-system-components/{p-128d7d9c.entry.js.map → p-c6d771f1.entry.js.map} +0 -0
  828. /package/dist/ontario-design-system-components/{p-c84fd6f3.entry.js.map → p-c779e248.entry.js.map} +0 -0
  829. /package/dist/ontario-design-system-components/{p-6ae89bbc.entry.js.map → p-cb21b1a3.entry.js.map} +0 -0
  830. /package/dist/ontario-design-system-components/{p-88722311.entry.js.map → p-ce1fa4bd.entry.js.map} +0 -0
  831. /package/dist/ontario-design-system-components/{p-02c38199.entry.js.map → p-d733ba28.entry.js.map} +0 -0
  832. /package/dist/ontario-design-system-components/{p-35fe7d9d.entry.js.map → p-d8e9546c.entry.js.map} +0 -0
  833. /package/dist/ontario-design-system-components/{p-f0a53d8d.entry.js.map → p-daca3528.entry.js.map} +0 -0
  834. /package/dist/ontario-design-system-components/{p-302c4671.entry.js.map → p-e51793eb.entry.js.map} +0 -0
  835. /package/dist/ontario-design-system-components/{p-608d5068.entry.js.map → p-e6c90ae8.entry.js.map} +0 -0
  836. /package/dist/ontario-design-system-components/{p-cad51f9e.entry.js.map → p-e87fde13.entry.js.map} +0 -0
  837. /package/dist/ontario-design-system-components/{p-9e9f6184.entry.js.map → p-e952d94f.entry.js.map} +0 -0
  838. /package/dist/ontario-design-system-components/{p-3d27e2f8.entry.js.map → p-e96e36ff.entry.js.map} +0 -0
  839. /package/dist/ontario-design-system-components/{p-131d1f76.entry.js.map → p-eb4faafb.entry.js.map} +0 -0
  840. /package/dist/ontario-design-system-components/{p-812fc78e.entry.js.map → p-ecbcd457.entry.js.map} +0 -0
  841. /package/dist/ontario-design-system-components/{p-4bf52401.entry.js.map → p-ed2d68e1.entry.js.map} +0 -0
  842. /package/dist/ontario-design-system-components/{p-ddb66bbb.entry.js.map → p-f0ca3e20.entry.js.map} +0 -0
  843. /package/dist/ontario-design-system-components/{p-1700035e.entry.js.map → p-f125e857.entry.js.map} +0 -0
  844. /package/dist/ontario-design-system-components/{p-cc653027.entry.js.map → p-f45d1e6b.entry.js.map} +0 -0
  845. /package/dist/ontario-design-system-components/{p-a365505f.entry.js.map → p-f8c4ff40.entry.js.map} +0 -0
  846. /package/dist/ontario-design-system-components/{p-abafe472.entry.js.map → p-f8cbec7c.entry.js.map} +0 -0
  847. /package/dist/ontario-design-system-components/{p-87897e51.entry.js.map → p-fb1a144e.entry.js.map} +0 -0
  848. /package/dist/ontario-design-system-components/{p-33554950.entry.js.map → p-fe487325.entry.js.map} +0 -0
  849. /package/www/build/{p-9eb84b8a.entry.js.map → p-01f427db.entry.js.map} +0 -0
  850. /package/www/build/{p-076fbd17.entry.js.map → p-04fb2b1f.entry.js.map} +0 -0
  851. /package/www/build/{p-5af55b3a.entry.js.map → p-0aea8df7.entry.js.map} +0 -0
  852. /package/www/build/{p-c75f5396.entry.js.map → p-0f8e5a0c.entry.js.map} +0 -0
  853. /package/www/build/{p-ac72bccb.entry.js.map → p-0fa6ba1b.entry.js.map} +0 -0
  854. /package/www/build/{p-6e62de52.entry.js.map → p-10899c2d.entry.js.map} +0 -0
  855. /package/www/build/{p-0f9e2d2c.entry.js.map → p-12d41776.entry.js.map} +0 -0
  856. /package/www/build/{p-72c7c4aa.entry.js.map → p-1526e1f3.entry.js.map} +0 -0
  857. /package/www/build/{p-32ecc2eb.entry.js.map → p-1567ea71.entry.js.map} +0 -0
  858. /package/www/build/{p-8bae2e2d.entry.js.map → p-16dc2584.entry.js.map} +0 -0
  859. /package/www/build/{p-e18cb3eb.entry.js.map → p-17409379.entry.js.map} +0 -0
  860. /package/www/build/{p-5fa28101.entry.js.map → p-1cd78ef5.entry.js.map} +0 -0
  861. /package/www/build/{p-5ef6f597.entry.js.map → p-21b80693.entry.js.map} +0 -0
  862. /package/www/build/{p-635feedf.entry.js.map → p-2a6e912e.entry.js.map} +0 -0
  863. /package/www/build/{p-f88fe1bd.entry.js.map → p-3218a141.entry.js.map} +0 -0
  864. /package/www/build/{p-6efbc44d.entry.js.map → p-32666b1a.entry.js.map} +0 -0
  865. /package/www/build/{p-a596839c.entry.js.map → p-34371cd7.entry.js.map} +0 -0
  866. /package/www/build/{p-e21b53a2.entry.js.map → p-35681159.entry.js.map} +0 -0
  867. /package/www/build/{p-ffe78c79.entry.js.map → p-3868d245.entry.js.map} +0 -0
  868. /package/www/build/{p-78d9f49e.entry.js.map → p-39ab52ad.entry.js.map} +0 -0
  869. /package/www/build/{p-71a2dd36.entry.js.map → p-3b1c06b1.entry.js.map} +0 -0
  870. /package/www/build/{p-8c3a8ddc.entry.js.map → p-3cca2f28.entry.js.map} +0 -0
  871. /package/www/build/{p-db4a37a3.entry.js.map → p-3fb5a2f5.entry.js.map} +0 -0
  872. /package/www/build/{p-2e894229.entry.js.map → p-404f3050.entry.js.map} +0 -0
  873. /package/www/build/{p-e402f3b8.entry.js.map → p-446337ea.entry.js.map} +0 -0
  874. /package/www/build/{p-fd039069.entry.js.map → p-44fe73c2.entry.js.map} +0 -0
  875. /package/www/build/{p-5dae140f.entry.js.map → p-47b56153.entry.js.map} +0 -0
  876. /package/www/build/{p-cef09b28.entry.js.map → p-4f1683c0.entry.js.map} +0 -0
  877. /package/www/build/{p-8ee66922.entry.js.map → p-5128c0bb.entry.js.map} +0 -0
  878. /package/www/build/{p-191d8da8.entry.js.map → p-5184701e.entry.js.map} +0 -0
  879. /package/www/build/{p-34f2d1b1.entry.js.map → p-533a039a.entry.js.map} +0 -0
  880. /package/www/build/{p-c1723522.entry.js.map → p-564a51a5.entry.js.map} +0 -0
  881. /package/www/build/{p-a558baf0.entry.js.map → p-5a775ff3.entry.js.map} +0 -0
  882. /package/www/build/{p-64642937.entry.js.map → p-61548ae2.entry.js.map} +0 -0
  883. /package/www/build/{p-107b5f8f.entry.js.map → p-6477890e.entry.js.map} +0 -0
  884. /package/www/build/{p-091b695a.entry.js.map → p-6a62b87d.entry.js.map} +0 -0
  885. /package/www/build/{p-fcb2cadf.entry.js.map → p-6c85610c.entry.js.map} +0 -0
  886. /package/www/build/{p-3522193d.entry.js.map → p-6df12aab.entry.js.map} +0 -0
  887. /package/www/build/{p-c14d49ab.entry.js.map → p-6fb80d3b.entry.js.map} +0 -0
  888. /package/www/build/{p-b2270cd5.entry.js.map → p-7738a68d.entry.js.map} +0 -0
  889. /package/www/build/{p-31f3c62d.entry.js.map → p-7a822cb8.entry.js.map} +0 -0
  890. /package/www/build/{p-c90c72e0.entry.js.map → p-7afdef3f.entry.js.map} +0 -0
  891. /package/www/build/{p-75d5df20.entry.js.map → p-7c593bd8.entry.js.map} +0 -0
  892. /package/www/build/{p-15417698.entry.js.map → p-7f8d2db6.entry.js.map} +0 -0
  893. /package/www/build/{p-2d987bdb.entry.js.map → p-80d23c2c.entry.js.map} +0 -0
  894. /package/www/build/{p-8dacd96c.entry.js.map → p-8653b9a6.entry.js.map} +0 -0
  895. /package/www/build/{p-a4e527cb.entry.js.map → p-86849b43.entry.js.map} +0 -0
  896. /package/www/build/{p-f91476fd.entry.js.map → p-87fb19b5.entry.js.map} +0 -0
  897. /package/www/build/{p-81c8e9f0.entry.js.map → p-8973affb.entry.js.map} +0 -0
  898. /package/www/build/{p-bdd5c0cd.entry.js.map → p-8b743603.entry.js.map} +0 -0
  899. /package/www/build/{p-360d6b10.entry.js.map → p-8ed8323f.entry.js.map} +0 -0
  900. /package/www/build/{p-83144457.entry.js.map → p-95671e82.entry.js.map} +0 -0
  901. /package/www/build/{p-4e7bb7e6.entry.js.map → p-965f968c.entry.js.map} +0 -0
  902. /package/www/build/{p-c08b85f3.entry.js.map → p-981933f3.entry.js.map} +0 -0
  903. /package/www/build/{p-86997e62.entry.js.map → p-9c9d49a3.entry.js.map} +0 -0
  904. /package/www/build/{p-508bd33a.entry.js.map → p-9cab9d12.entry.js.map} +0 -0
  905. /package/www/build/{p-98642cf0.entry.js.map → p-9ffdf9ad.entry.js.map} +0 -0
  906. /package/www/build/{p-00c121e9.entry.js.map → p-a168d607.entry.js.map} +0 -0
  907. /package/www/build/{p-557d211e.entry.js.map → p-a2461cfc.entry.js.map} +0 -0
  908. /package/www/build/{p-eebc769a.entry.js.map → p-a33f978b.entry.js.map} +0 -0
  909. /package/www/build/{p-3c5c66df.entry.js.map → p-a80d7066.entry.js.map} +0 -0
  910. /package/www/build/{p-283c67bd.entry.js.map → p-adbbd012.entry.js.map} +0 -0
  911. /package/www/build/{p-d6942c50.entry.js.map → p-af8d070d.entry.js.map} +0 -0
  912. /package/www/build/{p-2d7fc382.entry.js.map → p-b1596322.entry.js.map} +0 -0
  913. /package/www/build/{p-fc7a8df4.entry.js.map → p-b428f67a.entry.js.map} +0 -0
  914. /package/www/build/{p-92e1ad8b.entry.js.map → p-b52ef7dc.entry.js.map} +0 -0
  915. /package/www/build/{p-9a52f817.entry.js.map → p-b83a30cf.entry.js.map} +0 -0
  916. /package/www/build/{p-01d17804.entry.js.map → p-ba5dc106.entry.js.map} +0 -0
  917. /package/www/build/{p-c16792b1.entry.js.map → p-bad1e757.entry.js.map} +0 -0
  918. /package/www/build/{p-151fc1fa.entry.js.map → p-baf6249e.entry.js.map} +0 -0
  919. /package/www/build/{p-c8f2ccf5.entry.js.map → p-bb072cb8.entry.js.map} +0 -0
  920. /package/www/build/{p-ac5451d3.entry.js.map → p-be4fbe09.entry.js.map} +0 -0
  921. /package/www/build/{p-20493ac1.entry.js.map → p-c69e5796.entry.js.map} +0 -0
  922. /package/www/build/{p-128d7d9c.entry.js.map → p-c6d771f1.entry.js.map} +0 -0
  923. /package/www/build/{p-c84fd6f3.entry.js.map → p-c779e248.entry.js.map} +0 -0
  924. /package/www/build/{p-6ae89bbc.entry.js.map → p-cb21b1a3.entry.js.map} +0 -0
  925. /package/www/build/{p-88722311.entry.js.map → p-ce1fa4bd.entry.js.map} +0 -0
  926. /package/www/build/{p-02c38199.entry.js.map → p-d733ba28.entry.js.map} +0 -0
  927. /package/www/build/{p-35fe7d9d.entry.js.map → p-d8e9546c.entry.js.map} +0 -0
  928. /package/www/build/{p-f0a53d8d.entry.js.map → p-daca3528.entry.js.map} +0 -0
  929. /package/www/build/{p-302c4671.entry.js.map → p-e51793eb.entry.js.map} +0 -0
  930. /package/www/build/{p-608d5068.entry.js.map → p-e6c90ae8.entry.js.map} +0 -0
  931. /package/www/build/{p-cad51f9e.entry.js.map → p-e87fde13.entry.js.map} +0 -0
  932. /package/www/build/{p-9e9f6184.entry.js.map → p-e952d94f.entry.js.map} +0 -0
  933. /package/www/build/{p-3d27e2f8.entry.js.map → p-e96e36ff.entry.js.map} +0 -0
  934. /package/www/build/{p-131d1f76.entry.js.map → p-eb4faafb.entry.js.map} +0 -0
  935. /package/www/build/{p-812fc78e.entry.js.map → p-ecbcd457.entry.js.map} +0 -0
  936. /package/www/build/{p-4bf52401.entry.js.map → p-ed2d68e1.entry.js.map} +0 -0
  937. /package/www/build/{p-ddb66bbb.entry.js.map → p-f0ca3e20.entry.js.map} +0 -0
  938. /package/www/build/{p-1700035e.entry.js.map → p-f125e857.entry.js.map} +0 -0
  939. /package/www/build/{p-cc653027.entry.js.map → p-f45d1e6b.entry.js.map} +0 -0
  940. /package/www/build/{p-a365505f.entry.js.map → p-f8c4ff40.entry.js.map} +0 -0
  941. /package/www/build/{p-abafe472.entry.js.map → p-f8cbec7c.entry.js.map} +0 -0
  942. /package/www/build/{p-87897e51.entry.js.map → p-fb1a144e.entry.js.map} +0 -0
  943. /package/www/build/{p-33554950.entry.js.map → p-fe487325.entry.js.map} +0 -0
@@ -12,6 +12,7 @@ import { constructHintTextObject } from '../../utils/components/hints/hints';
12
12
  import { EventType } from '../../utils/events/event-handler.interface';
13
13
  import { handleInputEvent } from '../../utils/events/event-handler';
14
14
  import { default as translations } from '../../translations/global.i18n.json';
15
+ import { ErrorMessage } from '../../utils/components/error-message/error-message';
15
16
  export class OntarioDropdownList {
16
17
  constructor() {
17
18
  this.caption = undefined;
@@ -23,6 +24,7 @@ export class OntarioDropdownList {
23
24
  this.isEmptyStartOption = false;
24
25
  this.hintText = undefined;
25
26
  this.hintExpander = undefined;
27
+ this.errorMessage = undefined;
26
28
  this.customOnChange = undefined;
27
29
  this.customOnBlur = undefined;
28
30
  this.customOnFocus = undefined;
@@ -141,6 +143,11 @@ export class OntarioDropdownList {
141
143
  else this.internalHintExpander = hintExpander;
142
144
  }
143
145
  }
146
+ broadcastInputErrorOccurredEvent() {
147
+ var _a;
148
+ // Emit event to notify anyone who wants to listen for errors occurring
149
+ this.inputErrorOccurred.emit({ errorMessage: (_a = this.errorMessage) !== null && _a !== void 0 ? _a : '' });
150
+ }
144
151
  /**
145
152
  * Function to handle dropdown list events and the information pertaining to the dropdown list to emit.
146
153
  */
@@ -231,9 +238,13 @@ export class OntarioDropdownList {
231
238
  }
232
239
  render() {
233
240
  var _a, _b;
241
+ const error = !!this.errorMessage;
234
242
  return h(
235
243
  'div',
236
- { key: '47fd0fdb85aaf653302295aa5df2011e4b232be9', class: 'ontario-form-group' },
244
+ {
245
+ key: 'e8631dacbb28cd408d33df8257c595d748e3eea1',
246
+ class: `ontario-form-group ${error ? 'ontario-dropdown--error' : ''}`,
247
+ },
237
248
  this.captionState.getCaption(this.getId(), !!this.internalHintExpander),
238
249
  this.internalHintText &&
239
250
  h('ontario-hint-text', {
@@ -241,10 +252,11 @@ export class OntarioDropdownList {
241
252
  hintContentType: this.internalHintText.hintContentType,
242
253
  ref: (el) => (this.hintTextRef = el),
243
254
  }),
255
+ h(ErrorMessage, { key: '0b758b3787b5264330d3f68c039e24039c966f4b', message: this.errorMessage, error: error }),
244
256
  h(
245
257
  'select',
246
258
  {
247
- 'key': 'e9fbdecebe37aaecff87ca27a75743b56fd38522',
259
+ 'key': '1c4dc48a8b1ecd98cfb98005de63b84f3ba182a7',
248
260
  'class': this.getClass(),
249
261
  'aria-describedby': this.hintTextId,
250
262
  'id': this.getId(),
@@ -505,6 +517,23 @@ export class OntarioDropdownList {
505
517
  attribute: 'hint-expander',
506
518
  reflect: false,
507
519
  },
520
+ errorMessage: {
521
+ type: 'string',
522
+ mutable: true,
523
+ complexType: {
524
+ original: 'string',
525
+ resolved: 'string | undefined',
526
+ references: {},
527
+ },
528
+ required: false,
529
+ optional: true,
530
+ docs: {
531
+ tags: [],
532
+ text: 'Set this to display an error message',
533
+ },
534
+ attribute: 'error-message',
535
+ reflect: false,
536
+ },
508
537
  customOnChange: {
509
538
  type: 'unknown',
510
539
  mutable: false,
@@ -645,6 +674,22 @@ export class OntarioDropdownList {
645
674
  },
646
675
  },
647
676
  },
677
+ {
678
+ method: 'inputErrorOccurred',
679
+ name: 'inputErrorOccurred',
680
+ bubbles: true,
681
+ cancelable: true,
682
+ composed: true,
683
+ docs: {
684
+ tags: [],
685
+ text: 'Emitted when an error message is reported to the component.',
686
+ },
687
+ complexType: {
688
+ original: '{ errorMessage: string }',
689
+ resolved: '{ errorMessage: string; }',
690
+ references: {},
691
+ },
692
+ },
648
693
  ];
649
694
  }
650
695
  static get elementRef() {
@@ -680,6 +725,10 @@ export class OntarioDropdownList {
680
725
  propName: 'hintExpander',
681
726
  methodName: 'parseHintExpander',
682
727
  },
728
+ {
729
+ propName: 'errorMessage',
730
+ methodName: 'broadcastInputErrorOccurredEvent',
731
+ },
683
732
  ];
684
733
  }
685
734
  static get listeners() {
@@ -1 +1 @@
1
- {"version":3,"file":"ontario-dropdown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;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tState,\n\tElement,\n\th,\n\tProp,\n\tEvent,\n\tListen,\n\tWatch,\n\tgetAssetPath,\n\tEventEmitter,\n\tAttachInternals,\n} from '@stencil/core';\nimport { v4 as uuid } from 'uuid';\n\nimport { DropdownOption } from './dropdown-option.interface';\nimport { Dropdown } from './dropdown.interface';\nimport { HintExpander } from '../ontario-hint-expander/hint-expander.interface';\n\nimport { Hint } from '../../utils/common/common.interface';\nimport { InputCaption } from '../../utils/common/input-caption/input-caption';\nimport { Caption } from '../../utils/common/input-caption/caption.interface';\nimport {\n\tvalidateObjectExists,\n\tvalidatePropExists,\n\tvalidateLanguage,\n} from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\nimport { hasMultipleTrueValues } from '../../utils/helper/utils';\nimport { Language } from '../../utils/common/language-types';\nimport { constructHintTextObject } from '../../utils/components/hints/hints';\nimport { InputFocusBlurEvent, EventType, InputInteractionEvent } from '../../utils/events/event-handler.interface';\nimport { handleInputEvent } from '../../utils/events/event-handler';\n\nimport { default as translations } from '../../translations/global.i18n.json';\n\n@Component({\n\ttag: 'ontario-dropdown-list',\n\tstyleUrl: 'ontario-dropdown-list.scss',\n\tshadow: true,\n\tformAssociated: true,\n\tassetsDirs: ['./assets'],\n})\nexport class OntarioDropdownList implements Dropdown {\n\t@Element() element: HTMLElement;\n\t@AttachInternals() internals: ElementInternals;\n\n\thintTextRef: HTMLOntarioHintTextElement | undefined;\n\n\t/**\n\t * The text to display for the dropdown list label.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * name=\"ontario-dropdown-list\"\n\t * caption='{\n\t * \"captionText\": \"Label\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * ...>\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() caption: Caption | string;\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 is passed, it will default to English.\n\t */\n\t@Prop({ mutable: true }) language?: Language;\n\n\t/**\n\t * The name for the dropdown list. The name value is used to reference form data after a form is submitted.\n\t */\n\t@Prop() name: string;\n\n\t/**\n\t * The ID for the dropdown list.\n\t * If no ID is provided, one will be generated.\n\t */\n\t@Prop({ mutable: true }) elementId?: string;\n\n\t/**\n\t * The options for dropdown list.\n\t *\n\t * Each option will be passed in through an object in the options array.\n\t * This can either be passed in as an object directly (if using react), or as a string in HTML.\n\t *\n\t * In the example below, the options are being passed in as a string and there are three dropdown options displayed.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * caption='{\n\t * \"captionText\": \"Label\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * name=\"ontario-dropdown-list\"\n\t * options='[\n\t * {\n\t * \"value\": \"dropdown-option-1\",\n\t * \"label\": \"Option 1\",\n\t * \"selected\": \"true\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-2\",\n\t * \"label\": \"Option 2\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-3\",\n\t * \"label\": \"Option 3\"\n\t * }\n\t * ]'\n\t * >\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() options: string | DropdownOption[];\n\n\t/**\n\t * This is used to determine whether the dropdown list is required or not.\n\t * This prop also gets passed to the InputCaption utility to display either an optional or required flag in the label.\n\t * If no prop is set, it will default to false (optional).\n\t */\n\t@Prop() required?: boolean = false;\n\n\t/**\n\t * This prop is used to determine whether or not the initial option displayed is empty.\n\t * If set to `true`, it will render the default “select” text.\n\t * If set to a string, it will render the string value.\n\t *\n\t * @example\n\t * <ontario-dropdown-list is-empty-start-option=\"true\"></ontario-dropdown-list>\n\t *\n\t * or\n\t *\n\t * <ontario-dropdown-list is-empty-start-option=\"Please select\"></ontario-dropdown-list>\n\t */\n\t@Prop() isEmptyStartOption?: boolean | string = false;\n\n\t/**\n\t * Used to include the ontario-hint-text component for the dropdown list.\n\t * This is optional.\n\t */\n\t@Prop() hintText?: string | Hint;\n\n\t/**\n\t * Used to include the ontario-hint-expander component for the dropdown list component.\n\t * This is passed in as an object with key-value pairs.\n\t *\n\t * This is optional.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * caption='{\n\t * \"caption\": \"What province do you live in?\",\n\t * \"captionType\": \"heading\",\n\t * }\n\t * name=\"ontario-dropdown-list\"\n\t * options='[\n\t * {\n\t * \"value\": \"dropdown-option-1\",\n\t * \"label\": \"Option 1\",\n\t * \"selected\": \"true\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-2\",\n\t * \"label\": \"Option 2\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-3\",\n\t * \"label\": \"Option 3\"\n\t * }\n\t * ]'\n\t * hint-expander='{\n\t * \"hint\": \"Hint expander for the dropdown list\",\n\t * \"content\": \"Example hint expander content for the dropdown list.\"\n\t * }'\n\t * >\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() hintExpander?: HintExpander | string;\n\n\t/**\n\t * Used to add a custom function to the dropdown onChange event.\n\t */\n\t@Prop() customOnChange?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used to add a custom function to the dropdown onBlur event.\n\t */\n\t@Prop() customOnBlur?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used to add a custom function to the dropdown onFocus event.\n\t */\n\t@Prop() customOnFocus?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used for the `aria-describedby` value of the dropdown list. This will match with the id of the hint text.\n\t */\n\t@State() hintTextId: string | null | undefined;\n\n\t/**\n\t * Instantiate an InputCaption object for internal logic use\n\t */\n\t@State() private captionState: InputCaption;\n\n\t/**\n\t * The options are re-assigned to the internalOptions array.\n\t */\n\t@State() private internalOptions: DropdownOption[];\n\n\t/**\n\t * The hint text options are re-assigned to the internalHintText array.\n\t */\n\t@State() private internalHintText: Hint;\n\n\t/**\n\t * The hint expander options are re-assigned to the internalHintExpander array.\n\t */\n\t@State() private internalHintExpander: HintExpander;\n\n\t@State() translations: any = translations;\n\n\t/**\n\t * Emitted when a keyboard input or mouse event occurs when a dropdown list has been changed.\n\t */\n\t@Event() dropdownOnChange: EventEmitter<InputInteractionEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when a dropdown list has lost focus.\n\t */\n\t@Event() dropdownOnBlur: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when a dropdown list has gained focus.\n\t */\n\t@Event() dropdownOnFocus: EventEmitter<InputFocusBlurEvent>;\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 * Watch for changes in the `name` prop for validation purposes.\n\t *\n\t * Validate the `name` and make sure the `name` prop has a value.\n\t * Log a warning if user doesn't input a value for the `name`.\n\t */\n\t@Watch('name')\n\tvalidateName(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(' name ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\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 * Watch for changes in the `options` prop for validation purposes.\n\t *\n\t * Validate the `options` and make sure the `options` prop has a value.\n\t * Log a warning if user doesn't input a value for the `options`.\n\t */\n\t@Watch('options')\n\tvalidateOptions(newValue: object) {\n\t\tif (validateObjectExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' options ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\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 * Watch for changes to the `options` prop.\n\t *\n\t * If an `options` prop is passed, it will be parsed (if it is a string), and the result will be set to the `internalOptions` state. The result will be run through a validation function.\n\t */\n\t@Watch('options')\n\tparseOptions() {\n\t\tif (typeof this.options !== 'undefined') {\n\t\t\tif (!Array.isArray(this.options)) {\n\t\t\t\tthis.internalOptions = JSON.parse(this.options);\n\t\t\t} else {\n\t\t\t\tthis.internalOptions = this.options;\n\t\t\t}\n\t\t}\n\n\t\t// Check selected status of options and set the selectedValue\n\t\tthis.validateSelectedOption(this.internalOptions);\n\t}\n\n\t/**\n\t * Watch for changes to the `caption` prop.\n\t *\n\t * The caption will be run through the InputCaption constructor to convert it to the correct format, and set the result to the `captionState` state.\n\t * @param newValue: Caption | string\n\t */\n\t@Watch('caption')\n\tprivate updateCaptionState(newValue: Caption | string) {\n\t\tthis.captionState = new InputCaption(\n\t\t\tthis.element.tagName,\n\t\t\tnewValue,\n\t\t\ttranslations,\n\t\t\tthis.language,\n\t\t\tfalse,\n\t\t\tthis.required,\n\t\t);\n\t}\n\n\t/**\n\t * Watch for changes to the `hintText` prop.\n\t *\n\t * If a `hintText` prop is passed, the `constructHintTextObject` function will convert it to the correct format, and set the result to the `internalHintText` state.\n\t */\n\t@Watch('hintText')\n\tprivate parseHintText() {\n\t\tif (this.hintText) {\n\t\t\tconst hintTextObject = constructHintTextObject(this.hintText);\n\t\t\tthis.internalHintText = hintTextObject;\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `language` prop to render either the English or French translations\n\t */\n\t@Watch('language')\n\tupdateLanguage() {\n\t\tthis.updateCaptionState(this.caption);\n\t}\n\n\t/**\n\t * Watch for changes to the `hintExpander` prop.\n\t *\n\t * If a `hintExpander` prop is passed, it will be parsed (if it is a string), and the result will be set to the `internalHintExpander` state.\n\t */\n\t@Watch('hintExpander')\n\tprivate parseHintExpander() {\n\t\tconst hintExpander = this.hintExpander;\n\t\tif (hintExpander) {\n\t\t\tif (typeof hintExpander === 'string') this.internalHintExpander = JSON.parse(hintExpander);\n\t\t\telse this.internalHintExpander = hintExpander;\n\t\t}\n\t}\n\n\t/**\n\t * Function to handle dropdown list events and the information pertaining to the dropdown list to emit.\n\t */\n\tprivate handleEvent(event: Event, eventType: EventType) {\n\t\tconst input = event.target as HTMLSelectElement | null;\n\n\t\tthis.internals?.setFormValue?.(input?.value ?? '');\n\n\t\thandleInputEvent(\n\t\t\tevent,\n\t\t\teventType,\n\t\t\tinput,\n\t\t\tthis.dropdownOnChange,\n\t\t\tthis.dropdownOnFocus,\n\t\t\tthis.dropdownOnBlur,\n\t\t\tundefined,\n\t\t\t'dropdown',\n\t\t\tthis.customOnChange,\n\t\t\tthis.customOnFocus,\n\t\t\tthis.customOnBlur,\n\t\t\tundefined,\n\t\t\tthis.element,\n\t\t);\n\t}\n\n\tpublic getId(): string {\n\t\treturn this.elementId ?? '';\n\t}\n\n\t/**\n\t * This function will set a selected key to `false` for each dropdown if no selected value is passed.\n\t *\n\t * It will also pass a warning to the user if multiple `true` selected values are passed.\n\t *\n\t * @param options\n\t * @returns options\n\t */\n\tprivate validateSelectedOption(options: DropdownOption[]) {\n\t\tconst selected = 'selected';\n\n\t\toptions.forEach((singleOption) => {\n\t\t\t// if no selected key is passed, set a default key to false\n\t\t\tif (!singleOption.hasOwnProperty(selected)) {\n\t\t\t\tsingleOption.selected = false;\n\t\t\t}\n\t\t});\n\n\t\tif (hasMultipleTrueValues(options, selected)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' There are duplicate truthy `selected` values ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\n\t\t\t\t.addRegularText('options. Please update options so only one truthy `selected` value exists.')\n\t\t\t\t.printMessage();\n\t\t}\n\n\t\treturn options;\n\t}\n\n\tprivate getDropdownArrow() {\n\t\treturn {\n\t\t\tbackgroundImage: `url(${getAssetPath('./assets/ontario-material-dropdown-arrow-48px.svg')})`,\n\t\t};\n\t}\n\n\tprivate getClass(): string {\n\t\treturn this.hintExpander\n\t\t\t? `ontario-input ontario-dropdown ontario-dropdown-hint-expander--true`\n\t\t\t: `ontario-input ontario-dropdown`;\n\t}\n\n\t/**\n\t * If a `hintText` prop is passed, the id generated from it will be set to the internal `hintTextId` state to match with the select `aria-describedBy` attribute.\n\t */\n\tasync componentDidLoad() {\n\t\tthis.hintTextId = await this.hintTextRef?.getHintTextId();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.updateCaptionState(this.caption);\n\t\tthis.parseOptions();\n\t\tthis.validateName(this.name);\n\t\tthis.validateOptions(this.internalOptions);\n\t\tthis.elementId = this.elementId ?? uuid();\n\t\tthis.parseHintText();\n\t\tthis.parseHintExpander();\n\t\tthis.language = validateLanguage(this.language);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div class=\"ontario-form-group\">\n\t\t\t\t{this.captionState.getCaption(this.getId(), !!this.internalHintExpander)}\n\t\t\t\t{this.internalHintText && (\n\t\t\t\t\t<ontario-hint-text\n\t\t\t\t\t\thint={this.internalHintText.hint}\n\t\t\t\t\t\thintContentType={this.internalHintText.hintContentType}\n\t\t\t\t\t\tref={(el) => (this.hintTextRef = el)}\n\t\t\t\t\t></ontario-hint-text>\n\t\t\t\t)}\n\t\t\t\t<select\n\t\t\t\t\tclass={this.getClass()}\n\t\t\t\t\taria-describedby={this.hintTextId}\n\t\t\t\t\tid={this.getId()}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\tstyle={this.getDropdownArrow()}\n\t\t\t\t\tonChange={(e) => this.handleEvent(e, EventType.Change)}\n\t\t\t\t\tonBlur={(e) => this.handleEvent(e, EventType.Blur)}\n\t\t\t\t\tonFocus={(e) => this.handleEvent(e, EventType.Focus)}\n\t\t\t\t\trequired={!!this.required}\n\t\t\t\t>\n\t\t\t\t\t{this.isEmptyStartOption &&\n\t\t\t\t\t\t(this.isEmptyStartOption === true || this.isEmptyStartOption === 'true' ? (\n\t\t\t\t\t\t\t<option>{this.translations.dropdownList.select[`${this.language}`]}</option>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<option>{this.isEmptyStartOption}</option>\n\t\t\t\t\t\t))}\n\n\t\t\t\t\t{this.internalOptions?.map((dropdown) => (\n\t\t\t\t\t\t<option value={dropdown.value} selected={dropdown.selected}>\n\t\t\t\t\t\t\t{dropdown.label}\n\t\t\t\t\t\t</option>\n\t\t\t\t\t)) ?? ''}\n\t\t\t\t</select>\n\t\t\t\t{this.internalHintExpander && (\n\t\t\t\t\t<ontario-hint-expander\n\t\t\t\t\t\thint={this.internalHintExpander.hint}\n\t\t\t\t\t\tcontent={this.internalHintExpander.content}\n\t\t\t\t\t\thintContentType={this.internalHintExpander.hintContentType}\n\t\t\t\t\t></ontario-hint-expander>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n}\n"]}
1
+ {"version":3,"file":"ontario-dropdown-list.js","sourceRoot":"","sources":["../../../src/components/ontario-dropdown-list/ontario-dropdown-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EACL,OAAO,EACP,CAAC,EACD,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EACL,YAAY,EAEZ,eAAe,GACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAOlC,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAE9E,OAAO,EACN,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,GAChB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AACl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;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tState,\n\tElement,\n\th,\n\tProp,\n\tEvent,\n\tListen,\n\tWatch,\n\tgetAssetPath,\n\tEventEmitter,\n\tAttachInternals,\n} from '@stencil/core';\nimport { v4 as uuid } from 'uuid';\n\nimport { DropdownOption } from './dropdown-option.interface';\nimport { Dropdown } from './dropdown.interface';\nimport { HintExpander } from '../ontario-hint-expander/hint-expander.interface';\n\nimport { Hint } from '../../utils/common/common.interface';\nimport { InputCaption } from '../../utils/common/input-caption/input-caption';\nimport { Caption } from '../../utils/common/input-caption/caption.interface';\nimport {\n\tvalidateObjectExists,\n\tvalidatePropExists,\n\tvalidateLanguage,\n} from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\nimport { hasMultipleTrueValues } from '../../utils/helper/utils';\nimport { Language } from '../../utils/common/language-types';\nimport { constructHintTextObject } from '../../utils/components/hints/hints';\nimport { InputFocusBlurEvent, EventType, InputInteractionEvent } from '../../utils/events/event-handler.interface';\nimport { handleInputEvent } from '../../utils/events/event-handler';\n\nimport { default as translations } from '../../translations/global.i18n.json';\nimport { ErrorMessage } from '../../utils/components/error-message/error-message';\n\n@Component({\n\ttag: 'ontario-dropdown-list',\n\tstyleUrl: 'ontario-dropdown-list.scss',\n\tshadow: true,\n\tformAssociated: true,\n\tassetsDirs: ['./assets'],\n})\nexport class OntarioDropdownList implements Dropdown {\n\t@Element() element: HTMLElement;\n\t@AttachInternals() internals: ElementInternals;\n\n\thintTextRef: HTMLOntarioHintTextElement | undefined;\n\n\t/**\n\t * The text to display for the dropdown list label.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * name=\"ontario-dropdown-list\"\n\t * caption='{\n\t * \"captionText\": \"Label\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * ...>\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() caption: Caption | string;\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 is passed, it will default to English.\n\t */\n\t@Prop({ mutable: true }) language?: Language;\n\n\t/**\n\t * The name for the dropdown list. The name value is used to reference form data after a form is submitted.\n\t */\n\t@Prop() name: string;\n\n\t/**\n\t * The ID for the dropdown list.\n\t * If no ID is provided, one will be generated.\n\t */\n\t@Prop({ mutable: true }) elementId?: string;\n\n\t/**\n\t * The options for dropdown list.\n\t *\n\t * Each option will be passed in through an object in the options array.\n\t * This can either be passed in as an object directly (if using react), or as a string in HTML.\n\t *\n\t * In the example below, the options are being passed in as a string and there are three dropdown options displayed.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * caption='{\n\t * \"captionText\": \"Label\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * name=\"ontario-dropdown-list\"\n\t * options='[\n\t * {\n\t * \"value\": \"dropdown-option-1\",\n\t * \"label\": \"Option 1\",\n\t * \"selected\": \"true\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-2\",\n\t * \"label\": \"Option 2\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-3\",\n\t * \"label\": \"Option 3\"\n\t * }\n\t * ]'\n\t * >\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() options: string | DropdownOption[];\n\n\t/**\n\t * This is used to determine whether the dropdown list is required or not.\n\t * This prop also gets passed to the InputCaption utility to display either an optional or required flag in the label.\n\t * If no prop is set, it will default to false (optional).\n\t */\n\t@Prop() required?: boolean = false;\n\n\t/**\n\t * This prop is used to determine whether or not the initial option displayed is empty.\n\t * If set to `true`, it will render the default “select” text.\n\t * If set to a string, it will render the string value.\n\t *\n\t * @example\n\t * <ontario-dropdown-list is-empty-start-option=\"true\"></ontario-dropdown-list>\n\t *\n\t * or\n\t *\n\t * <ontario-dropdown-list is-empty-start-option=\"Please select\"></ontario-dropdown-list>\n\t */\n\t@Prop() isEmptyStartOption?: boolean | string = false;\n\n\t/**\n\t * Used to include the ontario-hint-text component for the dropdown list.\n\t * This is optional.\n\t */\n\t@Prop() hintText?: string | Hint;\n\n\t/**\n\t * Used to include the ontario-hint-expander component for the dropdown list component.\n\t * This is passed in as an object with key-value pairs.\n\t *\n\t * This is optional.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * caption='{\n\t * \"caption\": \"What province do you live in?\",\n\t * \"captionType\": \"heading\",\n\t * }\n\t * name=\"ontario-dropdown-list\"\n\t * options='[\n\t * {\n\t * \"value\": \"dropdown-option-1\",\n\t * \"label\": \"Option 1\",\n\t * \"selected\": \"true\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-2\",\n\t * \"label\": \"Option 2\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-3\",\n\t * \"label\": \"Option 3\"\n\t * }\n\t * ]'\n\t * hint-expander='{\n\t * \"hint\": \"Hint expander for the dropdown list\",\n\t * \"content\": \"Example hint expander content for the dropdown list.\"\n\t * }'\n\t * >\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() hintExpander?: HintExpander | string;\n\n\t/**\n\t * Set this to display an error message\n\t */\n\t@Prop({ mutable: true }) errorMessage?: string;\n\n\t/**\n\t * Used to add a custom function to the dropdown onChange event.\n\t */\n\t@Prop() customOnChange?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used to add a custom function to the dropdown onBlur event.\n\t */\n\t@Prop() customOnBlur?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used to add a custom function to the dropdown onFocus event.\n\t */\n\t@Prop() customOnFocus?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used for the `aria-describedby` value of the dropdown list. This will match with the id of the hint text.\n\t */\n\t@State() hintTextId: string | null | undefined;\n\n\t/**\n\t * Instantiate an InputCaption object for internal logic use\n\t */\n\t@State() private captionState: InputCaption;\n\n\t/**\n\t * The options are re-assigned to the internalOptions array.\n\t */\n\t@State() private internalOptions: DropdownOption[];\n\n\t/**\n\t * The hint text options are re-assigned to the internalHintText array.\n\t */\n\t@State() private internalHintText: Hint;\n\n\t/**\n\t * The hint expander options are re-assigned to the internalHintExpander array.\n\t */\n\t@State() private internalHintExpander: HintExpander;\n\n\t@State() translations: any = translations;\n\n\t/**\n\t * Emitted when a keyboard input or mouse event occurs when a dropdown list has been changed.\n\t */\n\t@Event() dropdownOnChange: EventEmitter<InputInteractionEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when a dropdown list has lost focus.\n\t */\n\t@Event() dropdownOnBlur: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when a dropdown list has gained focus.\n\t */\n\t@Event() dropdownOnFocus: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * Emitted when an error message is reported to the component.\n\t */\n\t@Event() inputErrorOccurred: EventEmitter<{ errorMessage: string }>;\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 * Watch for changes in the `name` prop for validation purposes.\n\t *\n\t * Validate the `name` and make sure the `name` prop has a value.\n\t * Log a warning if user doesn't input a value for the `name`.\n\t */\n\t@Watch('name')\n\tvalidateName(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(' name ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\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 * Watch for changes in the `options` prop for validation purposes.\n\t *\n\t * Validate the `options` and make sure the `options` prop has a value.\n\t * Log a warning if user doesn't input a value for the `options`.\n\t */\n\t@Watch('options')\n\tvalidateOptions(newValue: object) {\n\t\tif (validateObjectExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' options ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\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 * Watch for changes to the `options` prop.\n\t *\n\t * If an `options` prop is passed, it will be parsed (if it is a string), and the result will be set to the `internalOptions` state. The result will be run through a validation function.\n\t */\n\t@Watch('options')\n\tparseOptions() {\n\t\tif (typeof this.options !== 'undefined') {\n\t\t\tif (!Array.isArray(this.options)) {\n\t\t\t\tthis.internalOptions = JSON.parse(this.options);\n\t\t\t} else {\n\t\t\t\tthis.internalOptions = this.options;\n\t\t\t}\n\t\t}\n\n\t\t// Check selected status of options and set the selectedValue\n\t\tthis.validateSelectedOption(this.internalOptions);\n\t}\n\n\t/**\n\t * Watch for changes to the `caption` prop.\n\t *\n\t * The caption will be run through the InputCaption constructor to convert it to the correct format, and set the result to the `captionState` state.\n\t * @param newValue: Caption | string\n\t */\n\t@Watch('caption')\n\tprivate updateCaptionState(newValue: Caption | string) {\n\t\tthis.captionState = new InputCaption(\n\t\t\tthis.element.tagName,\n\t\t\tnewValue,\n\t\t\ttranslations,\n\t\t\tthis.language,\n\t\t\tfalse,\n\t\t\tthis.required,\n\t\t);\n\t}\n\n\t/**\n\t * Watch for changes to the `hintText` prop.\n\t *\n\t * If a `hintText` prop is passed, the `constructHintTextObject` function will convert it to the correct format, and set the result to the `internalHintText` state.\n\t */\n\t@Watch('hintText')\n\tprivate parseHintText() {\n\t\tif (this.hintText) {\n\t\t\tconst hintTextObject = constructHintTextObject(this.hintText);\n\t\t\tthis.internalHintText = hintTextObject;\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `language` prop to render either the English or French translations\n\t */\n\t@Watch('language')\n\tupdateLanguage() {\n\t\tthis.updateCaptionState(this.caption);\n\t}\n\n\t/**\n\t * Watch for changes to the `hintExpander` prop.\n\t *\n\t * If a `hintExpander` prop is passed, it will be parsed (if it is a string), and the result will be set to the `internalHintExpander` state.\n\t */\n\t@Watch('hintExpander')\n\tprivate parseHintExpander() {\n\t\tconst hintExpander = this.hintExpander;\n\t\tif (hintExpander) {\n\t\t\tif (typeof hintExpander === 'string') this.internalHintExpander = JSON.parse(hintExpander);\n\t\t\telse this.internalHintExpander = hintExpander;\n\t\t}\n\t}\n\n\t@Watch('errorMessage')\n\tbroadcastInputErrorOccurredEvent() {\n\t\t// Emit event to notify anyone who wants to listen for errors occurring\n\t\tthis.inputErrorOccurred.emit({ errorMessage: this.errorMessage ?? '' });\n\t}\n\n\t/**\n\t * Function to handle dropdown list events and the information pertaining to the dropdown list to emit.\n\t */\n\tprivate handleEvent(event: Event, eventType: EventType) {\n\t\tconst input = event.target as HTMLSelectElement | null;\n\n\t\tthis.internals?.setFormValue?.(input?.value ?? '');\n\n\t\thandleInputEvent(\n\t\t\tevent,\n\t\t\teventType,\n\t\t\tinput,\n\t\t\tthis.dropdownOnChange,\n\t\t\tthis.dropdownOnFocus,\n\t\t\tthis.dropdownOnBlur,\n\t\t\tundefined,\n\t\t\t'dropdown',\n\t\t\tthis.customOnChange,\n\t\t\tthis.customOnFocus,\n\t\t\tthis.customOnBlur,\n\t\t\tundefined,\n\t\t\tthis.element,\n\t\t);\n\t}\n\n\tpublic getId(): string {\n\t\treturn this.elementId ?? '';\n\t}\n\n\t/**\n\t * This function will set a selected key to `false` for each dropdown if no selected value is passed.\n\t *\n\t * It will also pass a warning to the user if multiple `true` selected values are passed.\n\t *\n\t * @param options\n\t * @returns options\n\t */\n\tprivate validateSelectedOption(options: DropdownOption[]) {\n\t\tconst selected = 'selected';\n\n\t\toptions.forEach((singleOption) => {\n\t\t\t// if no selected key is passed, set a default key to false\n\t\t\tif (!singleOption.hasOwnProperty(selected)) {\n\t\t\t\tsingleOption.selected = false;\n\t\t\t}\n\t\t});\n\n\t\tif (hasMultipleTrueValues(options, selected)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' There are duplicate truthy `selected` values ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\n\t\t\t\t.addRegularText('options. Please update options so only one truthy `selected` value exists.')\n\t\t\t\t.printMessage();\n\t\t}\n\n\t\treturn options;\n\t}\n\n\tprivate getDropdownArrow() {\n\t\treturn {\n\t\t\tbackgroundImage: `url(${getAssetPath('./assets/ontario-material-dropdown-arrow-48px.svg')})`,\n\t\t};\n\t}\n\n\tprivate getClass(): string {\n\t\treturn this.hintExpander\n\t\t\t? `ontario-input ontario-dropdown ontario-dropdown-hint-expander--true`\n\t\t\t: `ontario-input ontario-dropdown`;\n\t}\n\n\t/**\n\t * If a `hintText` prop is passed, the id generated from it will be set to the internal `hintTextId` state to match with the select `aria-describedBy` attribute.\n\t */\n\tasync componentDidLoad() {\n\t\tthis.hintTextId = await this.hintTextRef?.getHintTextId();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.updateCaptionState(this.caption);\n\t\tthis.parseOptions();\n\t\tthis.validateName(this.name);\n\t\tthis.validateOptions(this.internalOptions);\n\t\tthis.elementId = this.elementId ?? uuid();\n\t\tthis.parseHintText();\n\t\tthis.parseHintExpander();\n\t\tthis.language = validateLanguage(this.language);\n\t}\n\n\trender() {\n\t\tconst error = !!this.errorMessage;\n\t\treturn (\n\t\t\t<div class={`ontario-form-group ${error ? 'ontario-dropdown--error' : ''}`}>\n\t\t\t\t{this.captionState.getCaption(this.getId(), !!this.internalHintExpander)}\n\t\t\t\t{this.internalHintText && (\n\t\t\t\t\t<ontario-hint-text\n\t\t\t\t\t\thint={this.internalHintText.hint}\n\t\t\t\t\t\thintContentType={this.internalHintText.hintContentType}\n\t\t\t\t\t\tref={(el) => (this.hintTextRef = el)}\n\t\t\t\t\t></ontario-hint-text>\n\t\t\t\t)}\n\t\t\t\t<ErrorMessage message={this.errorMessage} error={error} />\n\t\t\t\t<select\n\t\t\t\t\tclass={this.getClass()}\n\t\t\t\t\taria-describedby={this.hintTextId}\n\t\t\t\t\tid={this.getId()}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\tstyle={this.getDropdownArrow()}\n\t\t\t\t\tonChange={(e) => this.handleEvent(e, EventType.Change)}\n\t\t\t\t\tonBlur={(e) => this.handleEvent(e, EventType.Blur)}\n\t\t\t\t\tonFocus={(e) => this.handleEvent(e, EventType.Focus)}\n\t\t\t\t\trequired={!!this.required}\n\t\t\t\t>\n\t\t\t\t\t{this.isEmptyStartOption &&\n\t\t\t\t\t\t(this.isEmptyStartOption === true || this.isEmptyStartOption === 'true' ? (\n\t\t\t\t\t\t\t<option>{this.translations.dropdownList.select[`${this.language}`]}</option>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<option>{this.isEmptyStartOption}</option>\n\t\t\t\t\t\t))}\n\n\t\t\t\t\t{this.internalOptions?.map((dropdown) => (\n\t\t\t\t\t\t<option value={dropdown.value} selected={dropdown.selected}>\n\t\t\t\t\t\t\t{dropdown.label}\n\t\t\t\t\t\t</option>\n\t\t\t\t\t)) ?? ''}\n\t\t\t\t</select>\n\t\t\t\t{this.internalHintExpander && (\n\t\t\t\t\t<ontario-hint-expander\n\t\t\t\t\t\thint={this.internalHintExpander.hint}\n\t\t\t\t\t\tcontent={this.internalHintExpander.content}\n\t\t\t\t\t\thintContentType={this.internalHintExpander.hintContentType}\n\t\t\t\t\t></ontario-hint-expander>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n}\n"]}
@@ -16,6 +16,10 @@ describe('ontario-dropdown-list', () => {
16
16
  (optional)
17
17
  </span>
18
18
  </label>
19
+ <div class="ontario-error-messaging ontario-error__hidden" role="alert">
20
+ <ontario-icon-alert-error></ontario-icon-alert-error>
21
+ <div class="ontario-error-messaging__content"></div>
22
+ </div>
19
23
  <select class="ontario-dropdown ontario-input" id="dropdown-list" style="background-image: url(/assets/ontario-material-dropdown-arrow-48px.svg);">
20
24
  <option value="dropdown-option-1">Option 1</option>
21
25
  </select>
@@ -1 +1 @@
1
- {"version":3,"file":"ontario-dropdown-list.spec.js","sourceRoot":"","sources":["../../../../src/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACtC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;QACvB,EAAE,CAAC,uCAAuC,EAAE,KAAK,IAAI,EAAE;YACtD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,mBAAmB,CAAC;gBACjC,IAAI,EAAE,8IAA8I;aACpJ,CAAC,CAAC;YACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;IAe7B,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,2CAA2C,EAAE,KAAK,IAAI,EAAE;YAC1D,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,mBAAmB,CAAC;gBACjC,IAAI,EAAE;;;;;;8BAMoB;aAC1B,CAAC,CAAC;YAEH,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;YACxD,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YAC1D,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YACnE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACjE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,yDAAyD,CAAC,CAAC;QACnG,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { OntarioDropdownList } from '../ontario-dropdown-list';\n\ndescribe('ontario-dropdown-list', () => {\n\tdescribe('render', () => {\n\t\tit('should render a dropdown list element', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioDropdownList],\n\t\t\t\thtml: `<ontario-dropdown-list element-id=\"dropdown-list\" options='[{ \"value\": \"dropdown-option-1\", \"label\": \"Option 1\" }]'></ontario-dropdown-list>`,\n\t\t\t});\n\t\t\texpect(page.root).toEqualHtml(`\n\t\t\t\t<ontario-dropdown-list element-id=\"dropdown-list\" options='[{ \"value\": \"dropdown-option-1\", \"label\": \"Option 1\" }]'>\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<div class=\"ontario-form-group\">\n\t\t\t\t\t\t<label class=\"ontario-label\" htmlfor=\"dropdown-list\">\n\t\t\t\t\t\t\t<span class=\"ontario-label__flag\">\n\t\t\t\t\t\t\t(optional)\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<select class=\"ontario-dropdown ontario-input\" id=\"dropdown-list\" style=\"background-image: url(/assets/ontario-material-dropdown-arrow-48px.svg);\">\n\t\t\t\t\t\t\t<option value=\"dropdown-option-1\">Option 1</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t</ontario-dropdown-list>\n\t\t\t`);\n\t\t});\n\n\t\tit('should reflect attributes/props being set', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioDropdownList],\n\t\t\t\thtml: `<ontario-dropdown-list\n name=\"dropdown-options\"\n element-id=\"dropdown-list\",\n is-empty-start-option=\"Please select\"\n caption='{\"captionText\": \"Label\"}'\n\t\t\t\t options='[{ \"value\": \"dropdown-option-1\", \"label\": \"Option 1\" }]'\n\t\t\t\t></ontario-dropdown-list>`,\n\t\t\t});\n\n\t\t\texpect(page.rootInstance.name).toBe('dropdown-options');\n\t\t\texpect(page.rootInstance.elementId).toBe('dropdown-list');\n\t\t\texpect(page.rootInstance.isEmptyStartOption).toBe('Please select');\n\t\t\texpect(page.rootInstance.captionState.captionText).toBe('Label');\n\t\t\texpect(page.rootInstance.options).toBe('[{ \"value\": \"dropdown-option-1\", \"label\": \"Option 1\" }]');\n\t\t});\n\t});\n});\n"]}
1
+ {"version":3,"file":"ontario-dropdown-list.spec.js","sourceRoot":"","sources":["../../../../src/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACtC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;QACvB,EAAE,CAAC,uCAAuC,EAAE,KAAK,IAAI,EAAE;YACtD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,mBAAmB,CAAC;gBACjC,IAAI,EAAE,8IAA8I;aACpJ,CAAC,CAAC;YACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;IAmB7B,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,2CAA2C,EAAE,KAAK,IAAI,EAAE;YAC1D,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,mBAAmB,CAAC;gBACjC,IAAI,EAAE;;;;;;8BAMoB;aAC1B,CAAC,CAAC;YAEH,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;YACxD,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YAC1D,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YACnE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACjE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,yDAAyD,CAAC,CAAC;QACnG,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { OntarioDropdownList } from '../ontario-dropdown-list';\n\ndescribe('ontario-dropdown-list', () => {\n\tdescribe('render', () => {\n\t\tit('should render a dropdown list element', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioDropdownList],\n\t\t\t\thtml: `<ontario-dropdown-list element-id=\"dropdown-list\" options='[{ \"value\": \"dropdown-option-1\", \"label\": \"Option 1\" }]'></ontario-dropdown-list>`,\n\t\t\t});\n\t\t\texpect(page.root).toEqualHtml(`\n\t\t\t\t<ontario-dropdown-list element-id=\"dropdown-list\" options='[{ \"value\": \"dropdown-option-1\", \"label\": \"Option 1\" }]'>\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<div class=\"ontario-form-group\">\n\t\t\t\t\t\t<label class=\"ontario-label\" htmlfor=\"dropdown-list\">\n\t\t\t\t\t\t\t<span class=\"ontario-label__flag\">\n\t\t\t\t\t\t\t(optional)\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<div class=\"ontario-error-messaging ontario-error__hidden\" role=\"alert\">\n\t\t\t\t\t\t\t\t<ontario-icon-alert-error></ontario-icon-alert-error>\n\t\t\t\t\t\t\t\t<div class=\"ontario-error-messaging__content\"></div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<select class=\"ontario-dropdown ontario-input\" id=\"dropdown-list\" style=\"background-image: url(/assets/ontario-material-dropdown-arrow-48px.svg);\">\n\t\t\t\t\t\t\t<option value=\"dropdown-option-1\">Option 1</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t</ontario-dropdown-list>\n\t\t\t`);\n\t\t});\n\n\t\tit('should reflect attributes/props being set', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioDropdownList],\n\t\t\t\thtml: `<ontario-dropdown-list\n name=\"dropdown-options\"\n element-id=\"dropdown-list\",\n is-empty-start-option=\"Please select\"\n caption='{\"captionText\": \"Label\"}'\n\t\t\t\t options='[{ \"value\": \"dropdown-option-1\", \"label\": \"Option 1\" }]'\n\t\t\t\t></ontario-dropdown-list>`,\n\t\t\t});\n\n\t\t\texpect(page.rootInstance.name).toBe('dropdown-options');\n\t\t\texpect(page.rootInstance.elementId).toBe('dropdown-list');\n\t\t\texpect(page.rootInstance.isEmptyStartOption).toBe('Please select');\n\t\t\texpect(page.rootInstance.captionState.captionText).toBe('Label');\n\t\t\texpect(page.rootInstance.options).toBe('[{ \"value\": \"dropdown-option-1\", \"label\": \"Option 1\" }]');\n\t\t});\n\t});\n});\n"]}
@@ -416,6 +416,10 @@ p + ol {
416
416
  margin: 0.5rem 0 0.5rem 2.75rem;
417
417
  }
418
418
  }
419
+ .ontario-form-group:last-of-type {
420
+ margin-bottom: 2.5rem;
421
+ }
422
+
419
423
  .ontario-form-group:last-of-type {
420
424
  margin-bottom: 3rem;
421
425
  }
@@ -66,16 +66,16 @@ export class OntarioFieldset {
66
66
  render() {
67
67
  return h(
68
68
  'div',
69
- { key: '630e96f72b61db1d5c36c7af29969d5e9128dc9f', class: 'ontario-form-group' },
69
+ { key: 'c3827fa2c6ca509662a8dc406f9dc9f44a32f541', class: 'ontario-form-group' },
70
70
  h(
71
71
  'fieldset',
72
- { key: 'c2ae48560e067ef9c197da8032ba848962baec7b', class: 'ontario-fieldset' },
72
+ { key: '5f8bb8761303ec1cb41d09b64b7fb7bfe2b7e2a5', class: 'ontario-fieldset' },
73
73
  h(
74
74
  'legend',
75
- { key: 'f7d514246a171fd752863c314fe5849a8276bd11', class: this.getClass() },
75
+ { key: 'dddd6ef762a2f4804ecad13adaad78f4e4fe165d', class: this.getClass() },
76
76
  this.legendSize === 'heading' ? h('h1', null, this.legend) : this.legend,
77
77
  ),
78
- h('slot', { key: 'f6d4de75ed7b718dcd624da6d5303f474a28b77a' }),
78
+ h('slot', { key: '577f8e5f319f8153809df46669b9e36970e63b55' }),
79
79
  ),
80
80
  );
81
81
  }
@@ -1 +1 @@
1
- {"version":3,"file":"expanded-footer-wrapper.js","sourceRoot":"","sources":["../../../../src/components/ontario-footer/components/expanded-footer-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAgB,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAS/C,MAAM,CAAC,MAAM,qBAAqB,GAAoD,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;IACzG,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,mBAAmB,EAAE,GAAG,KAAK,CAAC;IAC9D,MAAM,KAAK,GAAG,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC;IACrD,MAAM,WAAW,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,CAAC;IAE/D,OAAO,CACN,cAAQ,KAAK,EAAE,2CAA2C,WAAW,EAAE,EAAE,KAAK,EAAE,KAAK;QACpF,WAAK,KAAK,EAAC,sCAAsC;YAChD,WAAK,KAAK,EAAC,aAAa,IAAE,QAAQ,CAAO,CACpC;QACN,EAAC,YAAY,oBAAK,WAAW,IAAE,SAAS,EAAC,yCAAyC,IAAG,CAC7E,CACT,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h, getAssetPath } from '@stencil/core';\nimport { SimpleFooter } from './simple-footer';\nimport { SimpleFooterLinks } from '../ontario-footer-interface';\n\nexport type ExpandedFooterWrapperProps = {\n\tfooterLinks: SimpleFooterLinks;\n\ttopMargin: boolean;\n\tbackgroundImagePath: string;\n};\n\nexport const ExpandedFooterWrapper: FunctionalComponent<ExpandedFooterWrapperProps> = (props, children) => {\n\tconst { topMargin, footerLinks, backgroundImagePath } = props;\n\tconst style = { '--imagePath': backgroundImagePath };\n\tconst marginClass = !topMargin ? 'ontario-margin-top-0-!' : '';\n\n\treturn (\n\t\t<footer class={`ontario-footer ontario-footer--expanded ${marginClass}`} style={style}>\n\t\t\t<div class=\"ontario-footer__expanded-top-section\">\n\t\t\t\t<div class=\"ontario-row\">{children}</div>\n\t\t\t</div>\n\t\t\t<SimpleFooter {...footerLinks} className=\"ontario-footer__expanded-bottom-section\" />\n\t\t</footer>\n\t);\n};\n"]}
1
+ {"version":3,"file":"expanded-footer-wrapper.js","sourceRoot":"","sources":["../../../../src/components/ontario-footer/components/expanded-footer-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAS/C,MAAM,CAAC,MAAM,qBAAqB,GAAoD,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;IACzG,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,mBAAmB,EAAE,GAAG,KAAK,CAAC;IAC9D,MAAM,KAAK,GAAG,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC;IACrD,MAAM,WAAW,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,CAAC;IAE/D,OAAO,CACN,cAAQ,KAAK,EAAE,2CAA2C,WAAW,EAAE,EAAE,KAAK,EAAE,KAAK;QACpF,WAAK,KAAK,EAAC,sCAAsC;YAChD,WAAK,KAAK,EAAC,aAAa,IAAE,QAAQ,CAAO,CACpC;QACN,EAAC,YAAY,oBAAK,WAAW,IAAE,SAAS,EAAC,yCAAyC,IAAG,CAC7E,CACT,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport { SimpleFooter } from './simple-footer';\nimport { SimpleFooterLinks } from '../ontario-footer-interface';\n\nexport type ExpandedFooterWrapperProps = {\n\tfooterLinks: SimpleFooterLinks;\n\ttopMargin: boolean;\n\tbackgroundImagePath: string;\n};\n\nexport const ExpandedFooterWrapper: FunctionalComponent<ExpandedFooterWrapperProps> = (props, children) => {\n\tconst { topMargin, footerLinks, backgroundImagePath } = props;\n\tconst style = { '--imagePath': backgroundImagePath };\n\tconst marginClass = !topMargin ? 'ontario-margin-top-0-!' : '';\n\n\treturn (\n\t\t<footer class={`ontario-footer ontario-footer--expanded ${marginClass}`} style={style}>\n\t\t\t<div class=\"ontario-footer__expanded-top-section\">\n\t\t\t\t<div class=\"ontario-row\">{children}</div>\n\t\t\t</div>\n\t\t\t<SimpleFooter {...footerLinks} className=\"ontario-footer__expanded-bottom-section\" />\n\t\t</footer>\n\t);\n};\n"]}
@@ -1690,6 +1690,10 @@
1690
1690
  display: block !important;
1691
1691
  }
1692
1692
  }
1693
+ :host {
1694
+ --header-search-reset: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZD0iTTE5IDYuNEwxNy42IDUgMTIgMTAuNiA2LjQgNSA1IDYuNGw1LjYgNS42TDUgMTcuNiA2LjQgMTlsNS42LTUuNiA1LjYgNS42IDEuNC0xLjQtNS42LTUuNkwxOSA2LjR6IiBmaWxsPSIjMDAwIi8+PC9zdmc+);
1695
+ }
1696
+
1693
1697
  .ontario-header__container {
1694
1698
  position: relative;
1695
1699
  z-index: 5;
@@ -2046,7 +2050,7 @@ input[type='reset'].ontario-header__search-reset {
2046
2050
  color: #1a1a1a;
2047
2051
  margin: 0;
2048
2052
  padding: 0.5rem;
2049
- background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZD0iTTE5IDYuNEwxNy42IDUgMTIgMTAuNiA2LjQgNSA1IDYuNGw1LjYgNS42TDUgMTcuNiA2LjQgMTlsNS42LTUuNiA1LjYgNS42IDEuNC0xLjQtNS42LTUuNkwxOSA2LjR6IiBmaWxsPSIjMDAwIi8+PC9zdmc+);
2053
+ background-image: var(--header-search-reset);
2050
2054
  background-position: center center;
2051
2055
  background-repeat: no-repeat;
2052
2056
  background-color: transparent;
@@ -140,11 +140,11 @@ export class OntarioHintExpander {
140
140
  render() {
141
141
  return h(
142
142
  'div',
143
- { key: 'de5d2b0a0639a3e14fdf9cd34b6781123ebf13a9', class: 'ontario-hint-expander__container' },
143
+ { key: '28372bc554e9ccf282a0904f48aad8f296739ec3', class: 'ontario-hint-expander__container' },
144
144
  h(
145
145
  'button',
146
146
  {
147
- 'key': 'c586376903b31fb1b538404ae5b4259102df500a',
147
+ 'key': 'b3513e33748d912e88c405a06b8523f2b18658ed',
148
148
  'class': 'ontario-hint-expander__button',
149
149
  'onClick': this.onClick,
150
150
  'id': `hint-expander-button-${this.getId()}`,
@@ -155,22 +155,22 @@ export class OntarioHintExpander {
155
155
  h(
156
156
  'span',
157
157
  {
158
- key: 'b689528264cebabec3c09e2df78d4d9a9e75146c',
158
+ key: '45c14ee312ebd71d72955835c404708dbf17528c',
159
159
  class: 'ontario-hint-expander__button-icon--close ontario-icon',
160
160
  },
161
- h('ontario-icon-chevron-up', { key: 'bf7c9b5056e86ca9c1c9dc212b4f9442db826981', colour: 'inherit' }),
161
+ h('ontario-icon-chevron-up', { key: '9db3e029644bb40aa1b369016a272c74f6c06c17', colour: 'inherit' }),
162
162
  ),
163
163
  h(
164
164
  'span',
165
- { key: 'f67fca9ae4a6de2df5410d1294cf2735dcb8f594', class: 'ontario-hint-expander__button-icon--open' },
166
- h('ontario-icon-chevron-down', { key: '8b9e57741ce0a0e93128a0f2d850b3f3eca0cb49', colour: 'inherit' }),
165
+ { key: '3aca4a6f6fd80a5a53ed29bbd3fe18386f46d884', class: 'ontario-hint-expander__button-icon--open' },
166
+ h('ontario-icon-chevron-down', { key: 'b570af514d96e6670790dac13dd83f66d78aa483', colour: 'inherit' }),
167
167
  ),
168
168
  this.hint,
169
169
  ),
170
170
  h(
171
171
  'div',
172
172
  {
173
- 'key': 'bd9dda3470cf492efdf50601262da71b28d35201',
173
+ 'key': 'c7973b7e3b937a8e8e9243e10d731c5f95116481',
174
174
  'class': 'ontario-hint-expander__content',
175
175
  'id': `hint-expander-content-${this.getId()}`,
176
176
  'aria-labelledby': `hint-expander-button-${this.getId()}`,
@@ -87,14 +87,14 @@ export class OntarioIconAccessibility {
87
87
  return h(
88
88
  'div',
89
89
  {
90
- key: '21e86f03593f9a949ac6158810b5fb4d86afb532',
90
+ key: '40b8196b02a4389289809ccc25cf7d42924d8f5f',
91
91
  class: `ontario-icon ontario-icon--${this.iconColourState} ontario-icon--width-${this.iconWidthState}`,
92
92
  style: { width: `${this.iconWidthState}px` },
93
93
  },
94
94
  h(
95
95
  'svg',
96
96
  {
97
- key: 'def0e58d001e15b7bbe147b07ecadee40a1e660b',
97
+ key: '6ccc0eb329e99d0e60a37b47e5dcd59822d860bc',
98
98
  class: 'svg-icon',
99
99
  style: { fill: `${this.iconCustomColourState}`, stroke: `${this.iconCustomColourState}` },
100
100
  role: 'img',
@@ -103,7 +103,7 @@ export class OntarioIconAccessibility {
103
103
  id: 'accessibility',
104
104
  },
105
105
  h('path', {
106
- key: 'c2bc439610dc69d7d072793417d3126d9b670942',
106
+ key: '188b9e6355f5bf81f5b0a4e2790c4b1871ae7247',
107
107
  d: 'M18.4 11.2l-4.1.2 2.3-2.6c.2-.3.3-.8.2-1.3-.1-.3-.2-.6-.5-.8l-5.4-3.2c-.4-.3-1-.2-1.4.1L6.8 6.1c-.5.5-.6 1.2-.1 1.7.4.5 1.2.5 1.7.1l2-1.8 1.9 1.1-4.2 4.3c-.1.1-.1.2-.2.2-.5.2-1 .4-1.4.7L8 13.9c.5-.2 1-.4 1.5-.4 1.9 0 3.5 1.6 3.5 3.5 0 .6-.1 1.1-.4 1.5l1.5 1.5a5.29 5.29 0 0 0 .9-3c0-1.2-.4-2.4-1.1-3.3l3.3-.3-.2 4.8c-.1.7.4 1.2 1.1 1.3h.1c.6 0 1.1-.5 1.2-1.1l.2-5.9c0-.3-.1-.7-.3-.9-.3-.3-.6-.4-.9-.4zM18 5.5a2 2 0 0 0 2-2 2 2 0 0 0-2-2 2 2 0 0 0-2 2 2 2 0 0 0 2 2zm-5.5 16.1a5.29 5.29 0 0 1-3 .9C6.5 22.5 4 20 4 17a5.29 5.29 0 0 1 .9-3l1.5 1.5c-.2.5-.4 1-.4 1.5 0 1.9 1.6 3.5 3.5 3.5.6 0 1.1-.1 1.5-.4l1.5 1.5z',
108
108
  }),
109
109
  ),
@@ -87,14 +87,14 @@ export class OntarioIconAccount {
87
87
  return h(
88
88
  'div',
89
89
  {
90
- key: 'e2dde01ec1fa93c4b7c99037162787245332fe0d',
90
+ key: '94b6d8ae0336da790dd77001facc1af6619c79d0',
91
91
  class: `ontario-icon ontario-icon--${this.iconColourState} ontario-icon--width-${this.iconWidthState}`,
92
92
  style: { width: `${this.iconWidthState}px` },
93
93
  },
94
94
  h(
95
95
  'svg',
96
96
  {
97
- key: '63eb11b71d0ee20bdc4a7ec4a79001fc64efd4a0',
97
+ key: '24d06aa4cbec5d4b22403f852d619ae7bbd9522e',
98
98
  class: 'svg-icon',
99
99
  style: { fill: `${this.iconCustomColourState}`, stroke: `${this.iconCustomColourState}` },
100
100
  role: 'img',
@@ -103,7 +103,7 @@ export class OntarioIconAccount {
103
103
  id: 'account',
104
104
  },
105
105
  h('path', {
106
- key: 'caaa5e4e5f9591a63959a84d17a5e26e2f5b835d',
106
+ key: '5e7b34d37833bdbe7bd595b0d3adaf3f9bd51563',
107
107
  d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2a7.2 7.2 0 0 1-6-3.22c.03-2 4-3.08 6-3.08 2 0 5.97 1.1 6 3.08a7.2 7.2 0 0 1-6 3.22z',
108
108
  }),
109
109
  ),
@@ -87,14 +87,14 @@ export class OntarioIconAddAlt {
87
87
  return h(
88
88
  'div',
89
89
  {
90
- key: 'dd2777e3ce5523054bfb5409c7cc47e2b0c1b11b',
90
+ key: '7cf667833de722439a7568b652de3d2315b7b4f1',
91
91
  class: `ontario-icon ontario-icon--${this.iconColourState} ontario-icon--width-${this.iconWidthState}`,
92
92
  style: { width: `${this.iconWidthState}px` },
93
93
  },
94
94
  h(
95
95
  'svg',
96
96
  {
97
- key: '38cd0d8ccf21e432d78f20304c41eba24ac7fe7c',
97
+ key: '1f90ceb4eab82fe6b25b2fb92f2411322c03e8f9',
98
98
  class: 'svg-icon',
99
99
  style: { fill: `${this.iconCustomColourState}`, stroke: `${this.iconCustomColourState}` },
100
100
  role: 'img',
@@ -104,7 +104,7 @@ export class OntarioIconAddAlt {
104
104
  id: 'add-alt',
105
105
  },
106
106
  h('path', {
107
- key: 'bd8179ff808ca73294a6fb37f5bb719f95123567',
107
+ key: '17b3033dbf3dcf26fc1124f4292d509e5fcaa08f',
108
108
  d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z',
109
109
  }),
110
110
  ),
@@ -87,14 +87,14 @@ export class OntarioIconAdd {
87
87
  return h(
88
88
  'div',
89
89
  {
90
- key: '096466e79a5ea023fbbfe7098c6be2e9f627c49e',
90
+ key: 'fa1371e932069cb030825ffea3607085c7a856fe',
91
91
  class: `ontario-icon ontario-icon--${this.iconColourState} ontario-icon--width-${this.iconWidthState}`,
92
92
  style: { width: `${this.iconWidthState}px` },
93
93
  },
94
94
  h(
95
95
  'svg',
96
96
  {
97
- key: '1f06e90ef65cc26496ba148b3f6e96e2a39372a1',
97
+ key: '67e7c3f689890471a82410ebd7382bf2138ecd60',
98
98
  class: 'svg-icon',
99
99
  style: { fill: `${this.iconCustomColourState}`, stroke: `${this.iconCustomColourState}` },
100
100
  role: 'img',
@@ -104,7 +104,7 @@ export class OntarioIconAdd {
104
104
  id: 'add',
105
105
  },
106
106
  h('path', {
107
- key: '15ee7c4fa5fa2aa59ec9b44e771b6d4545b1422a',
107
+ key: '7a183977bf5173e3e306348308f064e759bb7e2e',
108
108
  d: 'M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z',
109
109
  }),
110
110
  ),
@@ -61,14 +61,14 @@ export class OntarioIconAlertError {
61
61
  return h(
62
62
  'div',
63
63
  {
64
- key: '1f567714a30e715741dde95549be1dd474ff5ade',
64
+ key: 'aedd68a242229cba97701cb6594bd1d4c12e3e18',
65
65
  class: `ontario-icon ontario-icon--width-${this.iconWidthState}`,
66
66
  style: { width: `${this.iconWidthState}px` },
67
67
  },
68
68
  h(
69
69
  'svg',
70
70
  {
71
- key: '61cae731a47f779100df108a453c0e9d6f47cc72',
71
+ key: '9d7f3e34be84d3b7332f75d3641c07de4fa61eb5',
72
72
  class: 'svg-icon',
73
73
  role: 'img',
74
74
  xmlns: 'http://www.w3.org/2000/svg',
@@ -77,12 +77,12 @@ export class OntarioIconAlertError {
77
77
  id: 'alert-error',
78
78
  },
79
79
  h('path', {
80
- key: 'a6aa67a4c3b00e67e0f363c5b811d6bb7c1606be',
80
+ key: 'c25df0d5708d126732c658ed6023b86b72616029',
81
81
  d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z',
82
82
  fill: '#cd0000',
83
83
  }),
84
84
  h('path', {
85
- key: '8cc25d5d3ad68d8bdc5686b7b5436f93472adc90',
85
+ key: '858b109602204d78e68e7132f9c6dcb12f0c2f8f',
86
86
  d: 'M11 17h2v-2h-2v2zm0-4h2V7h-2v6z',
87
87
  fill: '#fff',
88
88
  }),
@@ -61,14 +61,14 @@ export class OntarioIconAlertInformation {
61
61
  return h(
62
62
  'div',
63
63
  {
64
- key: '228c22b0e4badd20f6bd80aa13e1806c2168f663',
64
+ key: '54cf5e65764a07bba8c8fc5137efd18ab7aeda12',
65
65
  class: `ontario-icon ontario-icon--width-${this.iconWidthState}`,
66
66
  style: { width: `${this.iconWidthState}px` },
67
67
  },
68
68
  h(
69
69
  'svg',
70
70
  {
71
- key: '73a72898e1a5f581f8fcec957fa2e94061a50288',
71
+ key: 'ca53326b181d213b82f697264b264dc1f7341770',
72
72
  class: 'svg-icon',
73
73
  role: 'img',
74
74
  xmlns: 'http://www.w3.org/2000/svg',
@@ -77,12 +77,12 @@ export class OntarioIconAlertInformation {
77
77
  id: 'alert-information',
78
78
  },
79
79
  h('path', {
80
- key: '60a6660cb15f5ecaf52a37d1f941ad176ea34c67',
80
+ key: 'd370b1d7c56bdcf3009295765c96d3cabd7ff29b',
81
81
  d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z',
82
82
  fill: '#1080a6',
83
83
  }),
84
84
  h('path', {
85
- key: '055426b1d03ac1146758907c3c6e8564bf82f898',
85
+ key: '8a279c3f56958e8c09d79e8476ae5c02daa26602',
86
86
  d: 'M11 17h2v-6h-2v6zm0-8h2V7h-2v2z',
87
87
  fill: '#fff',
88
88
  }),
@@ -61,14 +61,14 @@ export class OntarioIconAlertSuccess {
61
61
  return h(
62
62
  'div',
63
63
  {
64
- key: 'ac6e3d40c154f61cb6c231bab55b5be7c752d450',
64
+ key: 'd3f356ffd3bbf0e8e33399f2015cf645e4e0d297',
65
65
  class: `ontario-icon ontario-icon--width-${this.iconWidthState}`,
66
66
  style: { width: `${this.iconWidthState}px` },
67
67
  },
68
68
  h(
69
69
  'svg',
70
70
  {
71
- key: 'db1e754ae44cc9bbaac9add82fd6d659a5ddbf1a',
71
+ key: 'eb29bfa5f77ad01dd152fb70212a3748dcfdefae',
72
72
  class: 'svg-icon',
73
73
  role: 'img',
74
74
  xmlns: 'http://www.w3.org/2000/svg',
@@ -77,12 +77,12 @@ export class OntarioIconAlertSuccess {
77
77
  id: 'alert-success',
78
78
  },
79
79
  h('path', {
80
- key: '99cce0f53756a22bd45ac7543f3d4ee859f0e17a',
80
+ key: 'afd292bee04c907b7a1eda63e05be12fd8e809fd',
81
81
  d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.4-1.4 3.6 3.58L17.17 7l1.4 1.42L10 17z',
82
82
  fill: '#118847',
83
83
  }),
84
84
  h('path', {
85
- key: 'b0a02e484015d05f4d4347d1eaed13017f63b11d',
85
+ key: 'a2a5c685e5eae6993d55a57cca4ca9b344fe3473',
86
86
  d: 'M5 12l5 5 8.58-8.58L17.17 7 10 14.17 6.4 10.6 5 12z',
87
87
  fill: '#fff',
88
88
  }),
@@ -61,14 +61,14 @@ export class OntarioIconAlertWarning {
61
61
  return h(
62
62
  'div',
63
63
  {
64
- key: '8bf04faecab04b29cd220120e59953bd4f9d6f22',
64
+ key: '885b300479f73ce0cfa0dc9308420da2defb5b81',
65
65
  class: `ontario-icon ontario-icon--width-${this.iconWidthState}`,
66
66
  style: { width: `${this.iconWidthState}px` },
67
67
  },
68
68
  h(
69
69
  'svg',
70
70
  {
71
- key: 'd0686a61e3ef54717d175b5c433797c3cc944a10',
71
+ key: '2c58c3d8cffc73dc89b7f6b1e51a66cdf290aadc',
72
72
  class: 'svg-icon',
73
73
  role: 'img',
74
74
  xmlns: 'http://www.w3.org/2000/svg',
@@ -77,11 +77,11 @@ export class OntarioIconAlertWarning {
77
77
  id: 'alert-warning',
78
78
  },
79
79
  h('path', {
80
- key: '68ca96d0828d201b8abf86b393cd8e6c9ab82d65',
80
+ key: '7c15a8cffa6c383562aa544c9c1bd22379e5304a',
81
81
  d: 'M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z',
82
82
  fill: '#ffd440',
83
83
  }),
84
- h('path', { key: '2830b87f820ec3f81e31c6ae765fa8287be26378', d: 'M11 10h2v4h-2zm0 6h2v2h-2z', fill: '#000' }),
84
+ h('path', { key: 'ad46eed8265cc6fc9a5f8314d13dd24462155fd3', d: 'M11 10h2v4h-2zm0 6h2v2h-2z', fill: '#000' }),
85
85
  ),
86
86
  );
87
87
  }