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

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 (930) hide show
  1. package/dist/cjs/index-88d5cf20.js +873 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{ontario-accordion_42.cjs.entry.js → ontario-accordion_43.cjs.entry.js} +347 -213
  4. package/dist/cjs/ontario-accordion_43.cjs.entry.js.map +1 -0
  5. package/dist/cjs/ontario-design-system-components.cjs.js +1 -1
  6. package/dist/cjs/ontario-icon-account.cjs.entry.js +3 -3
  7. package/dist/cjs/ontario-icon-add-alt.cjs.entry.js +3 -3
  8. package/dist/cjs/ontario-icon-add.cjs.entry.js +3 -3
  9. package/dist/cjs/ontario-icon-arrow-up.cjs.entry.js +4 -4
  10. package/dist/cjs/ontario-icon-attach.cjs.entry.js +3 -3
  11. package/dist/cjs/ontario-icon-bookmark-off.cjs.entry.js +3 -3
  12. package/dist/cjs/ontario-icon-bookmark-on.cjs.entry.js +3 -3
  13. package/dist/cjs/ontario-icon-calendar.cjs.entry.js +3 -3
  14. package/dist/cjs/ontario-icon-chevron-right.cjs.entry.js +3 -3
  15. package/dist/cjs/ontario-icon-clock.cjs.entry.js +3 -3
  16. package/dist/cjs/ontario-icon-close-header.cjs.entry.js +3 -3
  17. package/dist/cjs/ontario-icon-close.cjs.entry.js +3 -3
  18. package/dist/cjs/ontario-icon-cloud.cjs.entry.js +3 -3
  19. package/dist/cjs/ontario-icon-collapse.cjs.entry.js +3 -3
  20. package/dist/cjs/ontario-icon-credit-card.cjs.entry.js +3 -3
  21. package/dist/cjs/ontario-icon-critical-alert-warning.cjs.entry.js +5 -5
  22. package/dist/cjs/ontario-icon-delete.cjs.entry.js +3 -3
  23. package/dist/cjs/ontario-icon-document.cjs.entry.js +3 -3
  24. package/dist/cjs/ontario-icon-download.cjs.entry.js +3 -3
  25. package/dist/cjs/ontario-icon-dropdown-arrow.cjs.entry.js +3 -3
  26. package/dist/cjs/ontario-icon-edit.cjs.entry.js +3 -3
  27. package/dist/cjs/ontario-icon-expand.cjs.entry.js +3 -3
  28. package/dist/cjs/ontario-icon-export.cjs.entry.js +3 -3
  29. package/dist/cjs/ontario-icon-facebook-alt.cjs.entry.js +3 -3
  30. package/dist/cjs/ontario-icon-facebook.cjs.entry.js +3 -3
  31. package/dist/cjs/ontario-icon-favourite-off.cjs.entry.js +3 -3
  32. package/dist/cjs/ontario-icon-favourite-on.cjs.entry.js +3 -3
  33. package/dist/cjs/ontario-icon-filter.cjs.entry.js +3 -3
  34. package/dist/cjs/ontario-icon-flickr.cjs.entry.js +3 -3
  35. package/dist/cjs/ontario-icon-grid.cjs.entry.js +3 -3
  36. package/dist/cjs/ontario-icon-instagram.cjs.entry.js +3 -3
  37. package/dist/cjs/ontario-icon-interac-en-alt.cjs.entry.js +19 -19
  38. package/dist/cjs/ontario-icon-interac-en.cjs.entry.js +18 -18
  39. package/dist/cjs/ontario-icon-interac-fr-alt.cjs.entry.js +19 -19
  40. package/dist/cjs/ontario-icon-interac-fr.cjs.entry.js +12 -12
  41. package/dist/cjs/ontario-icon-linkedin-alt.cjs.entry.js +3 -3
  42. package/dist/cjs/ontario-icon-linkedin.cjs.entry.js +3 -3
  43. package/dist/cjs/ontario-icon-list.cjs.entry.js +3 -3
  44. package/dist/cjs/ontario-icon-live-chat.cjs.entry.js +3 -3
  45. package/dist/cjs/ontario-icon-location-off.cjs.entry.js +3 -3
  46. package/dist/cjs/ontario-icon-location-on.cjs.entry.js +3 -3
  47. package/dist/cjs/ontario-icon-lock-off.cjs.entry.js +3 -3
  48. package/dist/cjs/ontario-icon-lock-on.cjs.entry.js +3 -3
  49. package/dist/cjs/ontario-icon-map.cjs.entry.js +3 -3
  50. package/dist/cjs/ontario-icon-mastercard-alt.cjs.entry.js +6 -6
  51. package/dist/cjs/ontario-icon-media-fast-forward.cjs.entry.js +3 -3
  52. package/dist/cjs/ontario-icon-media-fast-rewind.cjs.entry.js +3 -3
  53. package/dist/cjs/ontario-icon-media-pause.cjs.entry.js +3 -3
  54. package/dist/cjs/ontario-icon-media-play.cjs.entry.js +3 -3
  55. package/dist/cjs/ontario-icon-media-stop.cjs.entry.js +3 -3
  56. package/dist/cjs/ontario-icon-menu-header.cjs.entry.js +3 -3
  57. package/dist/cjs/ontario-icon-menu.cjs.entry.js +3 -3
  58. package/dist/cjs/ontario-icon-microphone-off.cjs.entry.js +3 -3
  59. package/dist/cjs/ontario-icon-microphone-on.cjs.entry.js +3 -3
  60. package/dist/cjs/ontario-icon-more-vertical.cjs.entry.js +3 -3
  61. package/dist/cjs/ontario-icon-new-window.cjs.entry.js +3 -3
  62. package/dist/cjs/ontario-icon-next.cjs.entry.js +3 -3
  63. package/dist/cjs/ontario-icon-password-hide.cjs.entry.js +3 -3
  64. package/dist/cjs/ontario-icon-password-show.cjs.entry.js +3 -3
  65. package/dist/cjs/ontario-icon-phone.cjs.entry.js +3 -3
  66. package/dist/cjs/ontario-icon-photo.cjs.entry.js +3 -3
  67. package/dist/cjs/ontario-icon-pin-location-off.cjs.entry.js +3 -3
  68. package/dist/cjs/ontario-icon-pin-location-on.cjs.entry.js +3 -3
  69. package/dist/cjs/ontario-icon-previous.cjs.entry.js +3 -3
  70. package/dist/cjs/ontario-icon-remove-alt.cjs.entry.js +3 -3
  71. package/dist/cjs/ontario-icon-remove.cjs.entry.js +3 -3
  72. package/dist/cjs/ontario-icon-replay.cjs.entry.js +3 -3
  73. package/dist/cjs/ontario-icon-rss-feed.cjs.entry.js +3 -3
  74. package/dist/cjs/ontario-icon-save.cjs.entry.js +3 -3
  75. package/dist/cjs/ontario-icon-search-white.cjs.entry.js +3 -3
  76. package/dist/cjs/ontario-icon-search.cjs.entry.js +3 -3
  77. package/dist/cjs/ontario-icon-sentiment-1.cjs.entry.js +3 -3
  78. package/dist/cjs/ontario-icon-sentiment-2.cjs.entry.js +3 -3
  79. package/dist/cjs/ontario-icon-sentiment-3.cjs.entry.js +3 -3
  80. package/dist/cjs/ontario-icon-sentiment-4.cjs.entry.js +3 -3
  81. package/dist/cjs/ontario-icon-settings.cjs.entry.js +3 -3
  82. package/dist/cjs/ontario-icon-share.cjs.entry.js +3 -3
  83. package/dist/cjs/ontario-icon-sort.cjs.entry.js +3 -3
  84. package/dist/cjs/ontario-icon-tag.cjs.entry.js +3 -3
  85. package/dist/cjs/ontario-icon-timer.cjs.entry.js +3 -3
  86. package/dist/cjs/ontario-icon-transport-bicycle.cjs.entry.js +3 -3
  87. package/dist/cjs/ontario-icon-transport-car.cjs.entry.js +3 -3
  88. package/dist/cjs/ontario-icon-transport-walk.cjs.entry.js +3 -3
  89. package/dist/cjs/ontario-icon-tty.cjs.entry.js +3 -3
  90. package/dist/cjs/ontario-icon-twitter-alt.cjs.entry.js +3 -3
  91. package/dist/cjs/ontario-icon-twitter.cjs.entry.js +3 -3
  92. package/dist/cjs/ontario-icon-upload.cjs.entry.js +3 -3
  93. package/dist/cjs/ontario-icon-video.cjs.entry.js +3 -3
  94. package/dist/cjs/ontario-icon-visa.cjs.entry.js +5 -5
  95. package/dist/cjs/ontario-icon-vote-dislike.cjs.entry.js +3 -3
  96. package/dist/cjs/ontario-icon-vote-like.cjs.entry.js +3 -3
  97. package/dist/cjs/ontario-icon-vpn-key.cjs.entry.js +3 -3
  98. package/dist/cjs/ontario-icon-wheelchair.cjs.entry.js +3 -3
  99. package/dist/cjs/ontario-icon-wifi.cjs.entry.js +3 -3
  100. package/dist/cjs/ontario-icon-youtube.cjs.entry.js +3 -3
  101. package/dist/collection/collection-manifest.json +1 -0
  102. package/dist/collection/components/ontario-badge/ontario-badge.css +104 -0
  103. package/dist/collection/components/ontario-badge/ontario-badge.js +192 -0
  104. package/dist/collection/components/ontario-badge/ontario-badge.js.map +1 -0
  105. package/dist/collection/components/ontario-badge/ontario-badge.types.js +13 -0
  106. package/dist/collection/components/ontario-badge/ontario-badge.types.js.map +1 -0
  107. package/dist/collection/components/ontario-badge/test/ontario-badge.e2e.js +80 -0
  108. package/dist/collection/components/ontario-badge/test/ontario-badge.e2e.js.map +1 -0
  109. package/dist/collection/components/ontario-badge/test/ontario-badge.spec.js +33 -0
  110. package/dist/collection/components/ontario-badge/test/ontario-badge.spec.js.map +1 -0
  111. package/dist/collection/components/ontario-blockquote/ontario-blockquote.js +2 -2
  112. package/dist/collection/components/ontario-button/ontario-button.js +7 -16
  113. package/dist/collection/components/ontario-button/ontario-button.js.map +1 -1
  114. package/dist/collection/components/ontario-card/ontario-card.js +4 -4
  115. package/dist/collection/components/ontario-card-collection/ontario-card-collection.css +15 -0
  116. package/dist/collection/components/ontario-card-collection/ontario-card-collection.js +2 -2
  117. package/dist/collection/components/ontario-checkbox/ontario-checkboxes.css +8 -7
  118. package/dist/collection/components/ontario-checkbox/ontario-checkboxes.js +4 -4
  119. package/dist/collection/components/ontario-critical-alert/ontario-critical-alert.js +6 -6
  120. package/dist/collection/components/ontario-date-input/ontario-date-input.css +9 -7
  121. package/dist/collection/components/ontario-date-input/ontario-date-input.js +4 -4
  122. package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.css +9 -7
  123. package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.js +3 -3
  124. package/dist/collection/components/ontario-fieldset/ontario-fieldset.css +1 -0
  125. package/dist/collection/components/ontario-fieldset/ontario-fieldset.js +4 -4
  126. package/dist/collection/components/ontario-header/ontario-application-header.css +7 -7
  127. package/dist/collection/components/ontario-header/ontario-header.css +7 -7
  128. package/dist/collection/components/ontario-header/ontario-header.js +18 -6
  129. package/dist/collection/components/ontario-header/ontario-header.js.map +1 -1
  130. package/dist/collection/components/ontario-header/service-ontario-header.css +7 -7
  131. package/dist/collection/components/ontario-header/test/ontario-header.spec.js +12 -0
  132. package/dist/collection/components/ontario-header/test/ontario-header.spec.js.map +1 -1
  133. package/dist/collection/components/ontario-hint-expander/ontario-hint-expander.js +7 -7
  134. package/dist/collection/components/ontario-icon/ontario-icon-accessibility.js +3 -3
  135. package/dist/collection/components/ontario-icon/ontario-icon-account.js +3 -3
  136. package/dist/collection/components/ontario-icon/ontario-icon-add-alt.js +3 -3
  137. package/dist/collection/components/ontario-icon/ontario-icon-add.js +3 -3
  138. package/dist/collection/components/ontario-icon/ontario-icon-alert-error.js +4 -4
  139. package/dist/collection/components/ontario-icon/ontario-icon-alert-information.js +4 -4
  140. package/dist/collection/components/ontario-icon/ontario-icon-alert-success.js +4 -4
  141. package/dist/collection/components/ontario-icon/ontario-icon-alert-warning.js +4 -4
  142. package/dist/collection/components/ontario-icon/ontario-icon-arrow-up.js +4 -4
  143. package/dist/collection/components/ontario-icon/ontario-icon-attach.js +3 -3
  144. package/dist/collection/components/ontario-icon/ontario-icon-bookmark-off.js +3 -3
  145. package/dist/collection/components/ontario-icon/ontario-icon-bookmark-on.js +3 -3
  146. package/dist/collection/components/ontario-icon/ontario-icon-calendar.js +3 -3
  147. package/dist/collection/components/ontario-icon/ontario-icon-camera.js +3 -3
  148. package/dist/collection/components/ontario-icon/ontario-icon-chevron-down.js +3 -3
  149. package/dist/collection/components/ontario-icon/ontario-icon-chevron-left.js +3 -3
  150. package/dist/collection/components/ontario-icon/ontario-icon-chevron-right.js +3 -3
  151. package/dist/collection/components/ontario-icon/ontario-icon-chevron-up.js +3 -3
  152. package/dist/collection/components/ontario-icon/ontario-icon-clock.js +3 -3
  153. package/dist/collection/components/ontario-icon/ontario-icon-close-header.js +3 -3
  154. package/dist/collection/components/ontario-icon/ontario-icon-close.js +3 -3
  155. package/dist/collection/components/ontario-icon/ontario-icon-cloud.js +3 -3
  156. package/dist/collection/components/ontario-icon/ontario-icon-collapse.js +3 -3
  157. package/dist/collection/components/ontario-icon/ontario-icon-credit-card.js +3 -3
  158. package/dist/collection/components/ontario-icon/ontario-icon-critical-alert-warning.js +5 -5
  159. package/dist/collection/components/ontario-icon/ontario-icon-delete.js +3 -3
  160. package/dist/collection/components/ontario-icon/ontario-icon-document.js +3 -3
  161. package/dist/collection/components/ontario-icon/ontario-icon-download.js +3 -3
  162. package/dist/collection/components/ontario-icon/ontario-icon-dropdown-arrow.js +3 -3
  163. package/dist/collection/components/ontario-icon/ontario-icon-edit.js +3 -3
  164. package/dist/collection/components/ontario-icon/ontario-icon-email.js +3 -3
  165. package/dist/collection/components/ontario-icon/ontario-icon-expand.js +3 -3
  166. package/dist/collection/components/ontario-icon/ontario-icon-export.js +3 -3
  167. package/dist/collection/components/ontario-icon/ontario-icon-facebook-alt.js +3 -3
  168. package/dist/collection/components/ontario-icon/ontario-icon-facebook.js +3 -3
  169. package/dist/collection/components/ontario-icon/ontario-icon-favourite-off.js +3 -3
  170. package/dist/collection/components/ontario-icon/ontario-icon-favourite-on.js +3 -3
  171. package/dist/collection/components/ontario-icon/ontario-icon-filter.js +3 -3
  172. package/dist/collection/components/ontario-icon/ontario-icon-flickr.js +3 -3
  173. package/dist/collection/components/ontario-icon/ontario-icon-grid.js +3 -3
  174. package/dist/collection/components/ontario-icon/ontario-icon-help.js +3 -3
  175. package/dist/collection/components/ontario-icon/ontario-icon-instagram.js +3 -3
  176. package/dist/collection/components/ontario-icon/ontario-icon-interac-en-alt.js +19 -19
  177. package/dist/collection/components/ontario-icon/ontario-icon-interac-en.js +18 -18
  178. package/dist/collection/components/ontario-icon/ontario-icon-interac-fr-alt.js +19 -19
  179. package/dist/collection/components/ontario-icon/ontario-icon-interac-fr.js +12 -12
  180. package/dist/collection/components/ontario-icon/ontario-icon-linkedin-alt.js +3 -3
  181. package/dist/collection/components/ontario-icon/ontario-icon-linkedin.js +3 -3
  182. package/dist/collection/components/ontario-icon/ontario-icon-list.js +3 -3
  183. package/dist/collection/components/ontario-icon/ontario-icon-live-chat.js +3 -3
  184. package/dist/collection/components/ontario-icon/ontario-icon-location-off.js +3 -3
  185. package/dist/collection/components/ontario-icon/ontario-icon-location-on.js +3 -3
  186. package/dist/collection/components/ontario-icon/ontario-icon-lock-off.js +3 -3
  187. package/dist/collection/components/ontario-icon/ontario-icon-lock-on.js +3 -3
  188. package/dist/collection/components/ontario-icon/ontario-icon-map.js +3 -3
  189. package/dist/collection/components/ontario-icon/ontario-icon-mastercard-alt.js +6 -6
  190. package/dist/collection/components/ontario-icon/ontario-icon-mastercard.js +9 -9
  191. package/dist/collection/components/ontario-icon/ontario-icon-media-fast-forward.js +3 -3
  192. package/dist/collection/components/ontario-icon/ontario-icon-media-fast-rewind.js +3 -3
  193. package/dist/collection/components/ontario-icon/ontario-icon-media-pause.js +3 -3
  194. package/dist/collection/components/ontario-icon/ontario-icon-media-play.js +3 -3
  195. package/dist/collection/components/ontario-icon/ontario-icon-media-stop.js +3 -3
  196. package/dist/collection/components/ontario-icon/ontario-icon-menu-header.js +3 -3
  197. package/dist/collection/components/ontario-icon/ontario-icon-menu.js +3 -3
  198. package/dist/collection/components/ontario-icon/ontario-icon-microphone-off.js +3 -3
  199. package/dist/collection/components/ontario-icon/ontario-icon-microphone-on.js +3 -3
  200. package/dist/collection/components/ontario-icon/ontario-icon-more-vertical.js +3 -3
  201. package/dist/collection/components/ontario-icon/ontario-icon-new-window.js +3 -3
  202. package/dist/collection/components/ontario-icon/ontario-icon-next.js +3 -3
  203. package/dist/collection/components/ontario-icon/ontario-icon-notification.js +3 -3
  204. package/dist/collection/components/ontario-icon/ontario-icon-password-hide.js +3 -3
  205. package/dist/collection/components/ontario-icon/ontario-icon-password-show.js +3 -3
  206. package/dist/collection/components/ontario-icon/ontario-icon-phone.js +3 -3
  207. package/dist/collection/components/ontario-icon/ontario-icon-photo.js +3 -3
  208. package/dist/collection/components/ontario-icon/ontario-icon-pin-location-off.js +3 -3
  209. package/dist/collection/components/ontario-icon/ontario-icon-pin-location-on.js +3 -3
  210. package/dist/collection/components/ontario-icon/ontario-icon-previous.js +3 -3
  211. package/dist/collection/components/ontario-icon/ontario-icon-print.js +3 -3
  212. package/dist/collection/components/ontario-icon/ontario-icon-remove-alt.js +3 -3
  213. package/dist/collection/components/ontario-icon/ontario-icon-remove.js +3 -3
  214. package/dist/collection/components/ontario-icon/ontario-icon-replay.js +3 -3
  215. package/dist/collection/components/ontario-icon/ontario-icon-rss-feed.js +3 -3
  216. package/dist/collection/components/ontario-icon/ontario-icon-save.js +3 -3
  217. package/dist/collection/components/ontario-icon/ontario-icon-search-white.js +3 -3
  218. package/dist/collection/components/ontario-icon/ontario-icon-search.js +3 -3
  219. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-1.js +3 -3
  220. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-2.js +3 -3
  221. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-3.js +3 -3
  222. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-4.js +3 -3
  223. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-5.js +3 -3
  224. package/dist/collection/components/ontario-icon/ontario-icon-settings.js +3 -3
  225. package/dist/collection/components/ontario-icon/ontario-icon-share.js +3 -3
  226. package/dist/collection/components/ontario-icon/ontario-icon-sort.js +3 -3
  227. package/dist/collection/components/ontario-icon/ontario-icon-tag.js +3 -3
  228. package/dist/collection/components/ontario-icon/ontario-icon-text-message.js +3 -3
  229. package/dist/collection/components/ontario-icon/ontario-icon-timer.js +3 -3
  230. package/dist/collection/components/ontario-icon/ontario-icon-transport-bicycle.js +3 -3
  231. package/dist/collection/components/ontario-icon/ontario-icon-transport-bus.js +3 -3
  232. package/dist/collection/components/ontario-icon/ontario-icon-transport-car.js +3 -3
  233. package/dist/collection/components/ontario-icon/ontario-icon-transport-walk.js +3 -3
  234. package/dist/collection/components/ontario-icon/ontario-icon-tty.js +3 -3
  235. package/dist/collection/components/ontario-icon/ontario-icon-twitter-alt.js +3 -3
  236. package/dist/collection/components/ontario-icon/ontario-icon-twitter.js +3 -3
  237. package/dist/collection/components/ontario-icon/ontario-icon-upload.js +3 -3
  238. package/dist/collection/components/ontario-icon/ontario-icon-video.js +3 -3
  239. package/dist/collection/components/ontario-icon/ontario-icon-visa.js +5 -5
  240. package/dist/collection/components/ontario-icon/ontario-icon-vote-dislike.js +3 -3
  241. package/dist/collection/components/ontario-icon/ontario-icon-vote-like.js +3 -3
  242. package/dist/collection/components/ontario-icon/ontario-icon-vpn-key.js +3 -3
  243. package/dist/collection/components/ontario-icon/ontario-icon-wheelchair.js +3 -3
  244. package/dist/collection/components/ontario-icon/ontario-icon-wifi.js +3 -3
  245. package/dist/collection/components/ontario-icon/ontario-icon-youtube.js +3 -3
  246. package/dist/collection/components/ontario-input/ontario-input.css +9 -7
  247. package/dist/collection/components/ontario-input/ontario-input.js +3 -3
  248. package/dist/collection/components/ontario-language-toggle/ontario-language-toggle.css +7 -7
  249. package/dist/collection/components/ontario-language-toggle/ontario-language-toggle.js +1 -1
  250. package/dist/collection/components/ontario-page-alert/ontario-page-alert.js +5 -5
  251. package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.css +8 -7
  252. package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.js +4 -4
  253. package/dist/collection/components/ontario-step-indicator/ontario-step-indicator.js +5 -5
  254. package/dist/collection/components/ontario-table/ontario-table.js +5 -5
  255. package/dist/collection/components/ontario-textarea/ontario-textarea.css +9 -7
  256. package/dist/collection/components/ontario-textarea/ontario-textarea.js +3 -3
  257. package/dist/collection/fonts/open-sans-700--italic/open-sans-700--italic.ttf +0 -0
  258. package/dist/collection/utils/helper/utils.js +19 -3
  259. package/dist/collection/utils/helper/utils.js.map +1 -1
  260. package/dist/components/ontario-badge.d.ts +11 -0
  261. package/dist/components/ontario-badge.js +160 -0
  262. package/dist/components/ontario-badge.js.map +1 -0
  263. package/dist/components/ontario-blockquote.js +2 -2
  264. package/dist/components/ontario-button.js +7 -16
  265. package/dist/components/ontario-button.js.map +1 -1
  266. package/dist/components/ontario-card-collection.js +3 -3
  267. package/dist/components/ontario-card-collection.js.map +1 -1
  268. package/dist/components/ontario-card.js +4 -4
  269. package/dist/components/ontario-checkboxes.js +5 -5
  270. package/dist/components/ontario-checkboxes.js.map +1 -1
  271. package/dist/components/ontario-critical-alert.js +6 -6
  272. package/dist/components/ontario-date-input.js +5 -5
  273. package/dist/components/ontario-date-input.js.map +1 -1
  274. package/dist/components/ontario-dropdown-list.js +4 -4
  275. package/dist/components/ontario-dropdown-list.js.map +1 -1
  276. package/dist/components/ontario-fieldset.js +5 -5
  277. package/dist/components/ontario-fieldset.js.map +1 -1
  278. package/dist/components/ontario-header.js +21 -9
  279. package/dist/components/ontario-header.js.map +1 -1
  280. package/dist/components/ontario-hint-expander2.js +7 -7
  281. package/dist/components/ontario-icon-accessibility.js +3 -3
  282. package/dist/components/ontario-icon-account.js +3 -3
  283. package/dist/components/ontario-icon-add-alt.js +3 -3
  284. package/dist/components/ontario-icon-add.js +3 -3
  285. package/dist/components/ontario-icon-alert-error2.js +4 -4
  286. package/dist/components/ontario-icon-alert-information2.js +4 -4
  287. package/dist/components/ontario-icon-alert-success2.js +4 -4
  288. package/dist/components/ontario-icon-alert-warning2.js +4 -4
  289. package/dist/components/ontario-icon-arrow-up.js +4 -4
  290. package/dist/components/ontario-icon-attach.js +3 -3
  291. package/dist/components/ontario-icon-bookmark-off.js +3 -3
  292. package/dist/components/ontario-icon-bookmark-on.js +3 -3
  293. package/dist/components/ontario-icon-calendar.js +3 -3
  294. package/dist/components/ontario-icon-camera.js +3 -3
  295. package/dist/components/ontario-icon-chevron-down2.js +3 -3
  296. package/dist/components/ontario-icon-chevron-left2.js +3 -3
  297. package/dist/components/ontario-icon-chevron-right.js +3 -3
  298. package/dist/components/ontario-icon-chevron-up2.js +3 -3
  299. package/dist/components/ontario-icon-clock.js +3 -3
  300. package/dist/components/ontario-icon-close-header.js +3 -3
  301. package/dist/components/ontario-icon-close.js +3 -3
  302. package/dist/components/ontario-icon-cloud.js +3 -3
  303. package/dist/components/ontario-icon-collapse.js +3 -3
  304. package/dist/components/ontario-icon-credit-card.js +3 -3
  305. package/dist/components/ontario-icon-critical-alert-warning.js +5 -5
  306. package/dist/components/ontario-icon-delete.js +3 -3
  307. package/dist/components/ontario-icon-document.js +3 -3
  308. package/dist/components/ontario-icon-download.js +3 -3
  309. package/dist/components/ontario-icon-dropdown-arrow.js +3 -3
  310. package/dist/components/ontario-icon-edit.js +3 -3
  311. package/dist/components/ontario-icon-email.js +3 -3
  312. package/dist/components/ontario-icon-expand.js +3 -3
  313. package/dist/components/ontario-icon-export.js +3 -3
  314. package/dist/components/ontario-icon-facebook-alt.js +3 -3
  315. package/dist/components/ontario-icon-facebook.js +3 -3
  316. package/dist/components/ontario-icon-favourite-off.js +3 -3
  317. package/dist/components/ontario-icon-favourite-on.js +3 -3
  318. package/dist/components/ontario-icon-filter.js +3 -3
  319. package/dist/components/ontario-icon-flickr.js +3 -3
  320. package/dist/components/ontario-icon-grid.js +3 -3
  321. package/dist/components/ontario-icon-help.js +3 -3
  322. package/dist/components/ontario-icon-instagram.js +3 -3
  323. package/dist/components/ontario-icon-interac-en-alt.js +19 -19
  324. package/dist/components/ontario-icon-interac-en.js +18 -18
  325. package/dist/components/ontario-icon-interac-fr-alt.js +19 -19
  326. package/dist/components/ontario-icon-interac-fr.js +12 -12
  327. package/dist/components/ontario-icon-linkedin-alt.js +3 -3
  328. package/dist/components/ontario-icon-linkedin.js +3 -3
  329. package/dist/components/ontario-icon-list.js +3 -3
  330. package/dist/components/ontario-icon-live-chat.js +3 -3
  331. package/dist/components/ontario-icon-location-off.js +3 -3
  332. package/dist/components/ontario-icon-location-on.js +3 -3
  333. package/dist/components/ontario-icon-lock-off.js +3 -3
  334. package/dist/components/ontario-icon-lock-on.js +3 -3
  335. package/dist/components/ontario-icon-map.js +3 -3
  336. package/dist/components/ontario-icon-mastercard-alt.js +6 -6
  337. package/dist/components/ontario-icon-mastercard.js +9 -9
  338. package/dist/components/ontario-icon-media-fast-forward.js +3 -3
  339. package/dist/components/ontario-icon-media-fast-rewind.js +3 -3
  340. package/dist/components/ontario-icon-media-pause.js +3 -3
  341. package/dist/components/ontario-icon-media-play.js +3 -3
  342. package/dist/components/ontario-icon-media-stop.js +3 -3
  343. package/dist/components/ontario-icon-menu-header.js +3 -3
  344. package/dist/components/ontario-icon-menu.js +3 -3
  345. package/dist/components/ontario-icon-microphone-off.js +3 -3
  346. package/dist/components/ontario-icon-microphone-on.js +3 -3
  347. package/dist/components/ontario-icon-more-vertical.js +3 -3
  348. package/dist/components/ontario-icon-new-window.js +3 -3
  349. package/dist/components/ontario-icon-next.js +3 -3
  350. package/dist/components/ontario-icon-notification.js +3 -3
  351. package/dist/components/ontario-icon-password-hide.js +3 -3
  352. package/dist/components/ontario-icon-password-show.js +3 -3
  353. package/dist/components/ontario-icon-phone.js +3 -3
  354. package/dist/components/ontario-icon-photo.js +3 -3
  355. package/dist/components/ontario-icon-pin-location-off.js +3 -3
  356. package/dist/components/ontario-icon-pin-location-on.js +3 -3
  357. package/dist/components/ontario-icon-previous.js +3 -3
  358. package/dist/components/ontario-icon-print.js +3 -3
  359. package/dist/components/ontario-icon-remove-alt.js +3 -3
  360. package/dist/components/ontario-icon-remove.js +3 -3
  361. package/dist/components/ontario-icon-replay.js +3 -3
  362. package/dist/components/ontario-icon-rss-feed.js +3 -3
  363. package/dist/components/ontario-icon-save.js +3 -3
  364. package/dist/components/ontario-icon-search-white.js +3 -3
  365. package/dist/components/ontario-icon-search.js +3 -3
  366. package/dist/components/ontario-icon-sentiment-1.js +3 -3
  367. package/dist/components/ontario-icon-sentiment-2.js +3 -3
  368. package/dist/components/ontario-icon-sentiment-3.js +3 -3
  369. package/dist/components/ontario-icon-sentiment-4.js +3 -3
  370. package/dist/components/ontario-icon-sentiment-5.js +3 -3
  371. package/dist/components/ontario-icon-settings.js +3 -3
  372. package/dist/components/ontario-icon-share.js +3 -3
  373. package/dist/components/ontario-icon-sort.js +3 -3
  374. package/dist/components/ontario-icon-tag.js +3 -3
  375. package/dist/components/ontario-icon-text-message.js +3 -3
  376. package/dist/components/ontario-icon-timer.js +3 -3
  377. package/dist/components/ontario-icon-transport-bicycle.js +3 -3
  378. package/dist/components/ontario-icon-transport-bus.js +3 -3
  379. package/dist/components/ontario-icon-transport-car.js +3 -3
  380. package/dist/components/ontario-icon-transport-walk.js +3 -3
  381. package/dist/components/ontario-icon-tty.js +3 -3
  382. package/dist/components/ontario-icon-twitter-alt.js +3 -3
  383. package/dist/components/ontario-icon-twitter.js +3 -3
  384. package/dist/components/ontario-icon-upload.js +3 -3
  385. package/dist/components/ontario-icon-video.js +3 -3
  386. package/dist/components/ontario-icon-visa.js +5 -5
  387. package/dist/components/ontario-icon-vote-dislike.js +3 -3
  388. package/dist/components/ontario-icon-vote-like.js +3 -3
  389. package/dist/components/ontario-icon-vpn-key.js +3 -3
  390. package/dist/components/ontario-icon-wheelchair.js +3 -3
  391. package/dist/components/ontario-icon-wifi.js +3 -3
  392. package/dist/components/ontario-icon-youtube.js +3 -3
  393. package/dist/components/ontario-input.js +4 -4
  394. package/dist/components/ontario-input.js.map +1 -1
  395. package/dist/components/ontario-language-toggle2.js +2 -2
  396. package/dist/components/ontario-language-toggle2.js.map +1 -1
  397. package/dist/components/ontario-page-alert.js +5 -5
  398. package/dist/components/ontario-radio-buttons.js +5 -5
  399. package/dist/components/ontario-radio-buttons.js.map +1 -1
  400. package/dist/components/ontario-step-indicator.js +5 -5
  401. package/dist/components/ontario-table.js +6 -6
  402. package/dist/components/ontario-textarea.js +4 -4
  403. package/dist/components/ontario-textarea.js.map +1 -1
  404. package/dist/components/utils.js +21 -4
  405. package/dist/components/utils.js.map +1 -1
  406. package/dist/esm/index-603026f7.js +489 -1
  407. package/dist/esm/loader.js +1 -1
  408. package/dist/esm/{ontario-accordion_42.entry.js → ontario-accordion_43.entry.js} +347 -213
  409. package/dist/esm/ontario-accordion_43.entry.js.map +1 -0
  410. package/dist/esm/ontario-design-system-components.js +1 -1
  411. package/dist/esm/ontario-icon-account.entry.js +3 -3
  412. package/dist/esm/ontario-icon-add-alt.entry.js +3 -3
  413. package/dist/esm/ontario-icon-add.entry.js +3 -3
  414. package/dist/esm/ontario-icon-arrow-up.entry.js +4 -4
  415. package/dist/esm/ontario-icon-attach.entry.js +3 -3
  416. package/dist/esm/ontario-icon-bookmark-off.entry.js +3 -3
  417. package/dist/esm/ontario-icon-bookmark-on.entry.js +3 -3
  418. package/dist/esm/ontario-icon-calendar.entry.js +3 -3
  419. package/dist/esm/ontario-icon-chevron-right.entry.js +3 -3
  420. package/dist/esm/ontario-icon-clock.entry.js +3 -3
  421. package/dist/esm/ontario-icon-close-header.entry.js +3 -3
  422. package/dist/esm/ontario-icon-close.entry.js +3 -3
  423. package/dist/esm/ontario-icon-cloud.entry.js +3 -3
  424. package/dist/esm/ontario-icon-collapse.entry.js +3 -3
  425. package/dist/esm/ontario-icon-credit-card.entry.js +3 -3
  426. package/dist/esm/ontario-icon-critical-alert-warning.entry.js +5 -5
  427. package/dist/esm/ontario-icon-delete.entry.js +3 -3
  428. package/dist/esm/ontario-icon-document.entry.js +3 -3
  429. package/dist/esm/ontario-icon-download.entry.js +3 -3
  430. package/dist/esm/ontario-icon-dropdown-arrow.entry.js +3 -3
  431. package/dist/esm/ontario-icon-edit.entry.js +3 -3
  432. package/dist/esm/ontario-icon-expand.entry.js +3 -3
  433. package/dist/esm/ontario-icon-export.entry.js +3 -3
  434. package/dist/esm/ontario-icon-facebook-alt.entry.js +3 -3
  435. package/dist/esm/ontario-icon-facebook.entry.js +3 -3
  436. package/dist/esm/ontario-icon-favourite-off.entry.js +3 -3
  437. package/dist/esm/ontario-icon-favourite-on.entry.js +3 -3
  438. package/dist/esm/ontario-icon-filter.entry.js +3 -3
  439. package/dist/esm/ontario-icon-flickr.entry.js +3 -3
  440. package/dist/esm/ontario-icon-grid.entry.js +3 -3
  441. package/dist/esm/ontario-icon-instagram.entry.js +3 -3
  442. package/dist/esm/ontario-icon-interac-en-alt.entry.js +19 -19
  443. package/dist/esm/ontario-icon-interac-en.entry.js +18 -18
  444. package/dist/esm/ontario-icon-interac-fr-alt.entry.js +19 -19
  445. package/dist/esm/ontario-icon-interac-fr.entry.js +12 -12
  446. package/dist/esm/ontario-icon-linkedin-alt.entry.js +3 -3
  447. package/dist/esm/ontario-icon-linkedin.entry.js +3 -3
  448. package/dist/esm/ontario-icon-list.entry.js +3 -3
  449. package/dist/esm/ontario-icon-live-chat.entry.js +3 -3
  450. package/dist/esm/ontario-icon-location-off.entry.js +3 -3
  451. package/dist/esm/ontario-icon-location-on.entry.js +3 -3
  452. package/dist/esm/ontario-icon-lock-off.entry.js +3 -3
  453. package/dist/esm/ontario-icon-lock-on.entry.js +3 -3
  454. package/dist/esm/ontario-icon-map.entry.js +3 -3
  455. package/dist/esm/ontario-icon-mastercard-alt.entry.js +6 -6
  456. package/dist/esm/ontario-icon-media-fast-forward.entry.js +3 -3
  457. package/dist/esm/ontario-icon-media-fast-rewind.entry.js +3 -3
  458. package/dist/esm/ontario-icon-media-pause.entry.js +3 -3
  459. package/dist/esm/ontario-icon-media-play.entry.js +3 -3
  460. package/dist/esm/ontario-icon-media-stop.entry.js +3 -3
  461. package/dist/esm/ontario-icon-menu-header.entry.js +3 -3
  462. package/dist/esm/ontario-icon-menu.entry.js +3 -3
  463. package/dist/esm/ontario-icon-microphone-off.entry.js +3 -3
  464. package/dist/esm/ontario-icon-microphone-on.entry.js +3 -3
  465. package/dist/esm/ontario-icon-more-vertical.entry.js +3 -3
  466. package/dist/esm/ontario-icon-new-window.entry.js +3 -3
  467. package/dist/esm/ontario-icon-next.entry.js +3 -3
  468. package/dist/esm/ontario-icon-password-hide.entry.js +3 -3
  469. package/dist/esm/ontario-icon-password-show.entry.js +3 -3
  470. package/dist/esm/ontario-icon-phone.entry.js +3 -3
  471. package/dist/esm/ontario-icon-photo.entry.js +3 -3
  472. package/dist/esm/ontario-icon-pin-location-off.entry.js +3 -3
  473. package/dist/esm/ontario-icon-pin-location-on.entry.js +3 -3
  474. package/dist/esm/ontario-icon-previous.entry.js +3 -3
  475. package/dist/esm/ontario-icon-remove-alt.entry.js +3 -3
  476. package/dist/esm/ontario-icon-remove.entry.js +3 -3
  477. package/dist/esm/ontario-icon-replay.entry.js +3 -3
  478. package/dist/esm/ontario-icon-rss-feed.entry.js +3 -3
  479. package/dist/esm/ontario-icon-save.entry.js +3 -3
  480. package/dist/esm/ontario-icon-search-white.entry.js +3 -3
  481. package/dist/esm/ontario-icon-search.entry.js +3 -3
  482. package/dist/esm/ontario-icon-sentiment-1.entry.js +3 -3
  483. package/dist/esm/ontario-icon-sentiment-2.entry.js +3 -3
  484. package/dist/esm/ontario-icon-sentiment-3.entry.js +3 -3
  485. package/dist/esm/ontario-icon-sentiment-4.entry.js +3 -3
  486. package/dist/esm/ontario-icon-settings.entry.js +3 -3
  487. package/dist/esm/ontario-icon-share.entry.js +3 -3
  488. package/dist/esm/ontario-icon-sort.entry.js +3 -3
  489. package/dist/esm/ontario-icon-tag.entry.js +3 -3
  490. package/dist/esm/ontario-icon-timer.entry.js +3 -3
  491. package/dist/esm/ontario-icon-transport-bicycle.entry.js +3 -3
  492. package/dist/esm/ontario-icon-transport-car.entry.js +3 -3
  493. package/dist/esm/ontario-icon-transport-walk.entry.js +3 -3
  494. package/dist/esm/ontario-icon-tty.entry.js +3 -3
  495. package/dist/esm/ontario-icon-twitter-alt.entry.js +3 -3
  496. package/dist/esm/ontario-icon-twitter.entry.js +3 -3
  497. package/dist/esm/ontario-icon-upload.entry.js +3 -3
  498. package/dist/esm/ontario-icon-video.entry.js +3 -3
  499. package/dist/esm/ontario-icon-visa.entry.js +5 -5
  500. package/dist/esm/ontario-icon-vote-dislike.entry.js +3 -3
  501. package/dist/esm/ontario-icon-vote-like.entry.js +3 -3
  502. package/dist/esm/ontario-icon-vpn-key.entry.js +3 -3
  503. package/dist/esm/ontario-icon-wheelchair.entry.js +3 -3
  504. package/dist/esm/ontario-icon-wifi.entry.js +3 -3
  505. package/dist/esm/ontario-icon-youtube.entry.js +3 -3
  506. package/dist/ontario-design-system-components/fonts/open-sans-700--italic/open-sans-700--italic.ttf +0 -0
  507. package/dist/ontario-design-system-components/ontario-design-system-components.css +20 -11
  508. package/dist/ontario-design-system-components/ontario-design-system-components.esm.js +1 -1
  509. package/dist/ontario-design-system-components/ontario-design-system-components.esm.js.map +1 -1
  510. package/dist/ontario-design-system-components/{p-8653b9a6.entry.js → p-000d118a.entry.js} +4 -4
  511. package/{www/build/p-c6d771f1.entry.js → dist/ontario-design-system-components/p-003c7025.entry.js} +9 -9
  512. package/dist/ontario-design-system-components/{p-a2461cfc.entry.js → p-037cb397.entry.js} +4 -4
  513. package/{www/build/p-2a6e912e.entry.js → dist/ontario-design-system-components/p-09bb0aa3.entry.js} +8 -8
  514. package/{www/build/p-3fb5a2f5.entry.js → dist/ontario-design-system-components/p-0d89c7b9.entry.js} +4 -4
  515. package/dist/ontario-design-system-components/{p-b52ef7dc.entry.js → p-0f88c8f2.entry.js} +9 -9
  516. package/dist/ontario-design-system-components/{p-8973affb.entry.js → p-0fe90a53.entry.js} +7 -7
  517. package/dist/ontario-design-system-components/{p-d8e9546c.entry.js → p-11580fc7.entry.js} +4 -4
  518. package/dist/ontario-design-system-components/{p-3b1c06b1.entry.js → p-11fbb285.entry.js} +4 -4
  519. package/dist/ontario-design-system-components/{p-6477890e.entry.js → p-126496c8.entry.js} +4 -4
  520. package/dist/ontario-design-system-components/{p-c779e248.entry.js → p-12e02882.entry.js} +9 -9
  521. package/{www/build/p-34371cd7.entry.js → dist/ontario-design-system-components/p-152aa9e4.entry.js} +4 -4
  522. package/dist/ontario-design-system-components/{p-47b56153.entry.js → p-1929437f.entry.js} +4 -4
  523. package/{www/build/p-b83a30cf.entry.js → dist/ontario-design-system-components/p-1cfdae8d.entry.js} +4 -4
  524. package/{www/build/p-e51793eb.entry.js → dist/ontario-design-system-components/p-1fbb0f59.entry.js} +4 -4
  525. package/dist/ontario-design-system-components/{p-ecbcd457.entry.js → p-22062614.entry.js} +4 -4
  526. package/{www/build/p-86849b43.entry.js → dist/ontario-design-system-components/p-24ef276d.entry.js} +4 -4
  527. package/dist/ontario-design-system-components/{p-5a775ff3.entry.js → p-26390b88.entry.js} +4 -4
  528. package/{www/build/p-10899c2d.entry.js → dist/ontario-design-system-components/p-29dfd6c4.entry.js} +7 -7
  529. package/{www/build/p-be4fbe09.entry.js → dist/ontario-design-system-components/p-2e8d508a.entry.js} +6 -6
  530. package/dist/ontario-design-system-components/{p-f8c4ff40.entry.js → p-2ed27310.entry.js} +4 -4
  531. package/dist/ontario-design-system-components/{p-9cab9d12.entry.js → p-30786743.entry.js} +4 -4
  532. package/{www/build/p-0fa6ba1b.entry.js → dist/ontario-design-system-components/p-3904f9dd.entry.js} +4 -4
  533. package/{www/build/p-b428f67a.entry.js → dist/ontario-design-system-components/p-39d3a9ed.entry.js} +4 -4
  534. package/{www/build/p-21b80693.entry.js → dist/ontario-design-system-components/p-3a1447aa.entry.js} +9 -9
  535. package/{www/build/p-61548ae2.entry.js → dist/ontario-design-system-components/p-3aa826f2.entry.js} +12 -12
  536. package/dist/ontario-design-system-components/{p-0f8e5a0c.entry.js → p-3f08b13d.entry.js} +20 -20
  537. package/{www/build/p-4f1683c0.entry.js → dist/ontario-design-system-components/p-4043191b.entry.js} +4 -4
  538. package/dist/ontario-design-system-components/{p-c69e5796.entry.js → p-41e0168e.entry.js} +4 -4
  539. package/{www/build/p-af8d070d.entry.js → dist/ontario-design-system-components/p-43c3e426.entry.js} +7 -7
  540. package/dist/ontario-design-system-components/{p-f8cbec7c.entry.js → p-45de5461.entry.js} +4 -4
  541. package/{www/build/p-6df12aab.entry.js → dist/ontario-design-system-components/p-48215bea.entry.js} +22 -22
  542. package/dist/ontario-design-system-components/{p-eb4faafb.entry.js → p-4888bc18.entry.js} +7 -7
  543. package/{www/build/p-446337ea.entry.js → dist/ontario-design-system-components/p-4d6d69da.entry.js} +7 -7
  544. package/{www/build/p-1cd78ef5.entry.js → dist/ontario-design-system-components/p-5d7e5889.entry.js} +4 -4
  545. package/{www/build/p-cb21b1a3.entry.js → dist/ontario-design-system-components/p-5d92e9b1.entry.js} +4 -4
  546. package/{www/build/p-7a822cb8.entry.js → dist/ontario-design-system-components/p-5ec63da7.entry.js} +4 -4
  547. package/{www/build/p-a33f978b.entry.js → dist/ontario-design-system-components/p-5efb4624.entry.js} +9 -9
  548. package/dist/ontario-design-system-components/{p-3218a141.entry.js → p-60bfb63f.entry.js} +4 -4
  549. package/dist/ontario-design-system-components/{p-7afdef3f.entry.js → p-641ca864.entry.js} +4 -4
  550. package/dist/ontario-design-system-components/{p-44fe73c2.entry.js → p-643806d5.entry.js} +4 -4
  551. package/dist/ontario-design-system-components/{p-fb1a144e.entry.js → p-6668d4e0.entry.js} +10 -10
  552. package/{www/build/p-ce1fa4bd.entry.js → dist/ontario-design-system-components/p-6dc2187e.entry.js} +4 -4
  553. package/{www/build/p-0aea8df7.entry.js → dist/ontario-design-system-components/p-70498106.entry.js} +4 -4
  554. package/{www/build/p-fe487325.entry.js → dist/ontario-design-system-components/p-70a335e2.entry.js} +4 -4
  555. package/{www/build/p-965f968c.entry.js → dist/ontario-design-system-components/p-728c461b.entry.js} +9 -9
  556. package/{www/build/p-bad1e757.entry.js → dist/ontario-design-system-components/p-73878f44.entry.js} +4 -4
  557. package/dist/ontario-design-system-components/{p-d733ba28.entry.js → p-76ddf27f.entry.js} +4 -4
  558. package/{www/build/p-12d41776.entry.js → dist/ontario-design-system-components/p-845375a2.entry.js} +4 -4
  559. package/dist/ontario-design-system-components/{p-9ffdf9ad.entry.js → p-85951533.entry.js} +7 -7
  560. package/{www/build/p-564a51a5.entry.js → dist/ontario-design-system-components/p-876f72e7.entry.js} +12 -12
  561. package/dist/ontario-design-system-components/{p-01f427db.entry.js → p-87be02cc.entry.js} +4 -4
  562. package/dist/ontario-design-system-components/{p-5184701e.entry.js → p-8b2362b8.entry.js} +6 -6
  563. package/{www/build/p-35681159.entry.js → dist/ontario-design-system-components/p-8eba142e.entry.js} +9 -9
  564. package/{www/build/p-1526e1f3.entry.js → dist/ontario-design-system-components/p-92fa3045.entry.js} +4 -4
  565. package/dist/ontario-design-system-components/{p-981933f3.entry.js → p-94563a01.entry.js} +4 -4
  566. package/{www/build/p-3868d245.entry.js → dist/ontario-design-system-components/p-95343ef7.entry.js} +7 -7
  567. package/{www/build/p-533a039a.entry.js → dist/ontario-design-system-components/p-96322ecb.entry.js} +9 -9
  568. package/dist/ontario-design-system-components/{p-a80d7066.entry.js → p-972530c1.entry.js} +4 -4
  569. package/dist/ontario-design-system-components/{p-daca3528.entry.js → p-98785629.entry.js} +4 -4
  570. package/dist/ontario-design-system-components/{p-f0ca3e20.entry.js → p-9e981b18.entry.js} +4 -4
  571. package/dist/ontario-design-system-components/{p-95671e82.entry.js → p-a3c8e0fe.entry.js} +4 -4
  572. package/{www/build/p-3cca2f28.entry.js → dist/ontario-design-system-components/p-a5c3340b.entry.js} +49 -49
  573. package/dist/ontario-design-system-components/{p-ba5dc106.entry.js → p-a8cd11a8.entry.js} +7 -7
  574. package/dist/ontario-design-system-components/{p-7f8d2db6.entry.js → p-ae0b1cd7.entry.js} +4 -4
  575. package/dist/ontario-design-system-components/{p-a168d607.entry.js → p-af83e253.entry.js} +4 -4
  576. package/{www/build/p-04fb2b1f.entry.js → dist/ontario-design-system-components/p-b45d5fea.entry.js} +4 -4
  577. package/{www/build/p-f45d1e6b.entry.js → dist/ontario-design-system-components/p-b6b24bb7.entry.js} +4 -4
  578. package/{www/build/p-e6c90ae8.entry.js → dist/ontario-design-system-components/p-b8e71a4d.entry.js} +4 -4
  579. package/{www/build/p-8b743603.entry.js → dist/ontario-design-system-components/p-be44e14b.entry.js} +4 -4
  580. package/{www/build/p-5128c0bb.entry.js → dist/ontario-design-system-components/p-c2da353b.entry.js} +4 -4
  581. package/{www/build/p-8ed8323f.entry.js → dist/ontario-design-system-components/p-c3b931b0.entry.js} +4 -4
  582. package/{www/build/p-404f3050.entry.js → dist/ontario-design-system-components/p-c4b4c80f.entry.js} +9 -9
  583. package/{www/build/p-9c9d49a3.entry.js → dist/ontario-design-system-components/p-c4e02cd7.entry.js} +7 -7
  584. package/dist/ontario-design-system-components/{p-e87fde13.entry.js → p-c4fafb66.entry.js} +9 -9
  585. package/{www/build/p-adbbd012.entry.js → dist/ontario-design-system-components/p-c8422e76.entry.js} +9 -9
  586. package/{www/build/p-bb072cb8.entry.js → dist/ontario-design-system-components/p-cc01fa6d.entry.js} +9 -9
  587. package/dist/ontario-design-system-components/{p-b1596322.entry.js → p-cdcc4bc1.entry.js} +4 -4
  588. package/{www/build/p-00364195.entry.js → dist/ontario-design-system-components/p-cff41424.entry.js} +707 -633
  589. package/dist/ontario-design-system-components/p-cff41424.entry.js.map +1 -0
  590. package/dist/ontario-design-system-components/{p-f125e857.entry.js → p-d7d192a9.entry.js} +13 -13
  591. package/{www/build/p-baf6249e.entry.js → dist/ontario-design-system-components/p-d9462565.entry.js} +7 -7
  592. package/{www/build/p-e952d94f.entry.js → dist/ontario-design-system-components/p-de7d54f1.entry.js} +4 -4
  593. package/{www/build/p-32666b1a.entry.js → dist/ontario-design-system-components/p-df980b9f.entry.js} +9 -9
  594. package/{www/build/p-6fb80d3b.entry.js → dist/ontario-design-system-components/p-e2227665.entry.js} +4 -4
  595. package/dist/ontario-design-system-components/{p-7c593bd8.entry.js → p-e381e658.entry.js} +9 -9
  596. package/{www/build/p-6a62b87d.entry.js → dist/ontario-design-system-components/p-e615ffad.entry.js} +4 -4
  597. package/dist/ontario-design-system-components/{p-6c85610c.entry.js → p-e86f15ef.entry.js} +4 -4
  598. package/{www/build/p-7738a68d.entry.js → dist/ontario-design-system-components/p-eb9017c9.entry.js} +4 -4
  599. package/{www/build/p-80d23c2c.entry.js → dist/ontario-design-system-components/p-eec91982.entry.js} +4 -4
  600. package/dist/ontario-design-system-components/{p-16dc2584.entry.js → p-f02f5143.entry.js} +4 -4
  601. package/dist/ontario-design-system-components/{p-39ab52ad.entry.js → p-f0f73537.entry.js} +7 -7
  602. package/dist/ontario-design-system-components/{p-17409379.entry.js → p-f5749dfe.entry.js} +4 -4
  603. package/dist/ontario-design-system-components/{p-1567ea71.entry.js → p-f6947391.entry.js} +4 -4
  604. package/{www/build/p-87fb19b5.entry.js → dist/ontario-design-system-components/p-fac0d8ee.entry.js} +4 -4
  605. package/dist/ontario-design-system-components/{p-ed2d68e1.entry.js → p-fc9ff3c0.entry.js} +4 -4
  606. package/{www/build/p-e96e36ff.entry.js → dist/ontario-design-system-components/p-fec501d5.entry.js} +4 -4
  607. package/dist/types/components/ontario-badge/ontario-badge.d.ts +59 -0
  608. package/dist/types/components/ontario-badge/ontario-badge.types.d.ts +11 -0
  609. package/dist/types/components.d.ts +40 -0
  610. package/dist/types/utils/helper/utils.d.ts +16 -1
  611. package/package.json +3 -3
  612. package/readme.md +2 -0
  613. package/src/components/ontario-badge/ontario-badge.scss +71 -0
  614. package/src/components/ontario-badge/ontario-badge.tsx +123 -0
  615. package/src/components/ontario-badge/ontario-badge.types.ts +15 -0
  616. package/src/components/ontario-badge/readme.md +57 -0
  617. package/src/components/ontario-badge/test/__snapshots__/ontario-badge.spec.tsx.snap +45 -0
  618. package/src/components/ontario-badge/test/ontario-badge.e2e.ts +105 -0
  619. package/src/components/ontario-badge/test/ontario-badge.spec.tsx +40 -0
  620. package/src/components/ontario-button/ontario-button.tsx +7 -13
  621. package/src/components/ontario-card-collection/ontario-card-collection.scss +12 -0
  622. package/src/components/ontario-checkbox/readme.md +54 -0
  623. package/src/components/ontario-date-input/readme.md +55 -0
  624. package/src/components/ontario-dropdown-list/readme.md +52 -1
  625. package/src/components/ontario-header/ontario-header.tsx +8 -8
  626. package/src/components/ontario-header/test/ontario-header.spec.tsx +12 -0
  627. package/src/components/ontario-input/readme.md +39 -1
  628. package/src/components/ontario-radio-buttons/readme.md +53 -1
  629. package/src/components/ontario-textarea/readme.md +38 -0
  630. package/src/components.d.ts +40 -0
  631. package/src/index.html +14 -14
  632. package/src/utils/helper/utils.ts +20 -3
  633. package/www/build/ontario-design-system-components.css +20 -11
  634. package/www/build/ontario-design-system-components.esm.js +1 -1
  635. package/www/build/ontario-design-system-components.esm.js.map +1 -1
  636. package/www/build/{p-8653b9a6.entry.js → p-000d118a.entry.js} +4 -4
  637. package/{dist/ontario-design-system-components/p-c6d771f1.entry.js → www/build/p-003c7025.entry.js} +9 -9
  638. package/www/build/{p-a2461cfc.entry.js → p-037cb397.entry.js} +4 -4
  639. package/{dist/ontario-design-system-components/p-2a6e912e.entry.js → www/build/p-09bb0aa3.entry.js} +8 -8
  640. package/{dist/ontario-design-system-components/p-3fb5a2f5.entry.js → www/build/p-0d89c7b9.entry.js} +4 -4
  641. package/www/build/{p-b52ef7dc.entry.js → p-0f88c8f2.entry.js} +9 -9
  642. package/www/build/{p-8973affb.entry.js → p-0fe90a53.entry.js} +7 -7
  643. package/www/build/{p-d8e9546c.entry.js → p-11580fc7.entry.js} +4 -4
  644. package/www/build/{p-3b1c06b1.entry.js → p-11fbb285.entry.js} +4 -4
  645. package/www/build/{p-6477890e.entry.js → p-126496c8.entry.js} +4 -4
  646. package/www/build/{p-c779e248.entry.js → p-12e02882.entry.js} +9 -9
  647. package/{dist/ontario-design-system-components/p-34371cd7.entry.js → www/build/p-152aa9e4.entry.js} +4 -4
  648. package/www/build/{p-47b56153.entry.js → p-1929437f.entry.js} +4 -4
  649. package/{dist/ontario-design-system-components/p-b83a30cf.entry.js → www/build/p-1cfdae8d.entry.js} +4 -4
  650. package/{dist/ontario-design-system-components/p-e51793eb.entry.js → www/build/p-1fbb0f59.entry.js} +4 -4
  651. package/www/build/{p-ecbcd457.entry.js → p-22062614.entry.js} +4 -4
  652. package/{dist/ontario-design-system-components/p-86849b43.entry.js → www/build/p-24ef276d.entry.js} +4 -4
  653. package/www/build/{p-5a775ff3.entry.js → p-26390b88.entry.js} +4 -4
  654. package/{dist/ontario-design-system-components/p-10899c2d.entry.js → www/build/p-29dfd6c4.entry.js} +7 -7
  655. package/{dist/ontario-design-system-components/p-be4fbe09.entry.js → www/build/p-2e8d508a.entry.js} +6 -6
  656. package/www/build/{p-f8c4ff40.entry.js → p-2ed27310.entry.js} +4 -4
  657. package/www/build/{p-9cab9d12.entry.js → p-30786743.entry.js} +4 -4
  658. package/{dist/ontario-design-system-components/p-0fa6ba1b.entry.js → www/build/p-3904f9dd.entry.js} +4 -4
  659. package/{dist/ontario-design-system-components/p-b428f67a.entry.js → www/build/p-39d3a9ed.entry.js} +4 -4
  660. package/{dist/ontario-design-system-components/p-21b80693.entry.js → www/build/p-3a1447aa.entry.js} +9 -9
  661. package/{dist/ontario-design-system-components/p-61548ae2.entry.js → www/build/p-3aa826f2.entry.js} +12 -12
  662. package/www/build/{p-0f8e5a0c.entry.js → p-3f08b13d.entry.js} +20 -20
  663. package/{dist/ontario-design-system-components/p-4f1683c0.entry.js → www/build/p-4043191b.entry.js} +4 -4
  664. package/www/build/{p-c69e5796.entry.js → p-41e0168e.entry.js} +4 -4
  665. package/{dist/ontario-design-system-components/p-af8d070d.entry.js → www/build/p-43c3e426.entry.js} +7 -7
  666. package/www/build/{p-f8cbec7c.entry.js → p-45de5461.entry.js} +4 -4
  667. package/{dist/ontario-design-system-components/p-6df12aab.entry.js → www/build/p-48215bea.entry.js} +22 -22
  668. package/www/build/{p-eb4faafb.entry.js → p-4888bc18.entry.js} +7 -7
  669. package/{dist/ontario-design-system-components/p-446337ea.entry.js → www/build/p-4d6d69da.entry.js} +7 -7
  670. package/www/build/{p-016eeaf2.css → p-5c2c7e30.css} +20 -11
  671. package/{dist/ontario-design-system-components/p-1cd78ef5.entry.js → www/build/p-5d7e5889.entry.js} +4 -4
  672. package/{dist/ontario-design-system-components/p-cb21b1a3.entry.js → www/build/p-5d92e9b1.entry.js} +4 -4
  673. package/{dist/ontario-design-system-components/p-7a822cb8.entry.js → www/build/p-5ec63da7.entry.js} +4 -4
  674. package/{dist/ontario-design-system-components/p-a33f978b.entry.js → www/build/p-5efb4624.entry.js} +9 -9
  675. package/www/build/{p-3218a141.entry.js → p-60bfb63f.entry.js} +4 -4
  676. package/www/build/{p-7afdef3f.entry.js → p-641ca864.entry.js} +4 -4
  677. package/www/build/{p-44fe73c2.entry.js → p-643806d5.entry.js} +4 -4
  678. package/www/build/{p-fb1a144e.entry.js → p-6668d4e0.entry.js} +10 -10
  679. package/{dist/ontario-design-system-components/p-ce1fa4bd.entry.js → www/build/p-6dc2187e.entry.js} +4 -4
  680. package/{dist/ontario-design-system-components/p-0aea8df7.entry.js → www/build/p-70498106.entry.js} +4 -4
  681. package/{dist/ontario-design-system-components/p-fe487325.entry.js → www/build/p-70a335e2.entry.js} +4 -4
  682. package/{dist/ontario-design-system-components/p-965f968c.entry.js → www/build/p-728c461b.entry.js} +9 -9
  683. package/{dist/ontario-design-system-components/p-bad1e757.entry.js → www/build/p-73878f44.entry.js} +4 -4
  684. package/www/build/{p-d733ba28.entry.js → p-76ddf27f.entry.js} +4 -4
  685. package/{dist/ontario-design-system-components/p-12d41776.entry.js → www/build/p-845375a2.entry.js} +4 -4
  686. package/www/build/{p-9ffdf9ad.entry.js → p-85951533.entry.js} +7 -7
  687. package/{dist/ontario-design-system-components/p-564a51a5.entry.js → www/build/p-876f72e7.entry.js} +12 -12
  688. package/www/build/{p-01f427db.entry.js → p-87be02cc.entry.js} +4 -4
  689. package/www/build/{p-5184701e.entry.js → p-8b2362b8.entry.js} +6 -6
  690. package/{dist/ontario-design-system-components/p-35681159.entry.js → www/build/p-8eba142e.entry.js} +9 -9
  691. package/{dist/ontario-design-system-components/p-1526e1f3.entry.js → www/build/p-92fa3045.entry.js} +4 -4
  692. package/www/build/{p-981933f3.entry.js → p-94563a01.entry.js} +4 -4
  693. package/{dist/ontario-design-system-components/p-3868d245.entry.js → www/build/p-95343ef7.entry.js} +7 -7
  694. package/{dist/ontario-design-system-components/p-533a039a.entry.js → www/build/p-96322ecb.entry.js} +9 -9
  695. package/www/build/{p-a80d7066.entry.js → p-972530c1.entry.js} +4 -4
  696. package/www/build/{p-daca3528.entry.js → p-98785629.entry.js} +4 -4
  697. package/www/build/{p-f0ca3e20.entry.js → p-9e981b18.entry.js} +4 -4
  698. package/www/build/{p-95671e82.entry.js → p-a3c8e0fe.entry.js} +4 -4
  699. package/{dist/ontario-design-system-components/p-3cca2f28.entry.js → www/build/p-a5c3340b.entry.js} +49 -49
  700. package/www/build/{p-ba5dc106.entry.js → p-a8cd11a8.entry.js} +7 -7
  701. package/www/build/{p-7f8d2db6.entry.js → p-ae0b1cd7.entry.js} +4 -4
  702. package/www/build/{p-a168d607.entry.js → p-af83e253.entry.js} +4 -4
  703. package/{dist/ontario-design-system-components/p-04fb2b1f.entry.js → www/build/p-b45d5fea.entry.js} +4 -4
  704. package/www/build/{p-a8bba86c.js → p-b61db0f6.js} +1 -1
  705. package/{dist/ontario-design-system-components/p-f45d1e6b.entry.js → www/build/p-b6b24bb7.entry.js} +4 -4
  706. package/{dist/ontario-design-system-components/p-e6c90ae8.entry.js → www/build/p-b8e71a4d.entry.js} +4 -4
  707. package/{dist/ontario-design-system-components/p-8b743603.entry.js → www/build/p-be44e14b.entry.js} +4 -4
  708. package/{dist/ontario-design-system-components/p-5128c0bb.entry.js → www/build/p-c2da353b.entry.js} +4 -4
  709. package/{dist/ontario-design-system-components/p-8ed8323f.entry.js → www/build/p-c3b931b0.entry.js} +4 -4
  710. package/{dist/ontario-design-system-components/p-404f3050.entry.js → www/build/p-c4b4c80f.entry.js} +9 -9
  711. package/{dist/ontario-design-system-components/p-9c9d49a3.entry.js → www/build/p-c4e02cd7.entry.js} +7 -7
  712. package/www/build/{p-e87fde13.entry.js → p-c4fafb66.entry.js} +9 -9
  713. package/{dist/ontario-design-system-components/p-adbbd012.entry.js → www/build/p-c8422e76.entry.js} +9 -9
  714. package/{dist/ontario-design-system-components/p-bb072cb8.entry.js → www/build/p-cc01fa6d.entry.js} +9 -9
  715. package/www/build/{p-b1596322.entry.js → p-cdcc4bc1.entry.js} +4 -4
  716. package/{dist/ontario-design-system-components/p-00364195.entry.js → www/build/p-cff41424.entry.js} +707 -633
  717. package/www/build/p-cff41424.entry.js.map +1 -0
  718. package/www/build/{p-f125e857.entry.js → p-d7d192a9.entry.js} +13 -13
  719. package/{dist/ontario-design-system-components/p-baf6249e.entry.js → www/build/p-d9462565.entry.js} +7 -7
  720. package/{dist/ontario-design-system-components/p-e952d94f.entry.js → www/build/p-de7d54f1.entry.js} +4 -4
  721. package/{dist/ontario-design-system-components/p-32666b1a.entry.js → www/build/p-df980b9f.entry.js} +9 -9
  722. package/{dist/ontario-design-system-components/p-6fb80d3b.entry.js → www/build/p-e2227665.entry.js} +4 -4
  723. package/www/build/{p-7c593bd8.entry.js → p-e381e658.entry.js} +9 -9
  724. package/{dist/ontario-design-system-components/p-6a62b87d.entry.js → www/build/p-e615ffad.entry.js} +4 -4
  725. package/www/build/{p-6c85610c.entry.js → p-e86f15ef.entry.js} +4 -4
  726. package/{dist/ontario-design-system-components/p-7738a68d.entry.js → www/build/p-eb9017c9.entry.js} +4 -4
  727. package/{dist/ontario-design-system-components/p-80d23c2c.entry.js → www/build/p-eec91982.entry.js} +4 -4
  728. package/www/build/{p-16dc2584.entry.js → p-f02f5143.entry.js} +4 -4
  729. package/www/build/{p-39ab52ad.entry.js → p-f0f73537.entry.js} +7 -7
  730. package/www/build/{p-17409379.entry.js → p-f5749dfe.entry.js} +4 -4
  731. package/www/build/{p-1567ea71.entry.js → p-f6947391.entry.js} +4 -4
  732. package/{dist/ontario-design-system-components/p-87fb19b5.entry.js → www/build/p-fac0d8ee.entry.js} +4 -4
  733. package/www/build/{p-ed2d68e1.entry.js → p-fc9ff3c0.entry.js} +4 -4
  734. package/{dist/ontario-design-system-components/p-e96e36ff.entry.js → www/build/p-fec501d5.entry.js} +4 -4
  735. package/www/fonts/open-sans-700--italic/open-sans-700--italic.ttf +0 -0
  736. package/www/index.html +15 -17
  737. package/dist/cjs/ontario-accordion_42.cjs.entry.js.map +0 -1
  738. package/dist/esm/ontario-accordion_42.entry.js.map +0 -1
  739. package/dist/ontario-design-system-components/p-00364195.entry.js.map +0 -1
  740. package/www/build/p-00364195.entry.js.map +0 -1
  741. /package/dist/ontario-design-system-components/{p-8653b9a6.entry.js.map → p-000d118a.entry.js.map} +0 -0
  742. /package/dist/ontario-design-system-components/{p-c6d771f1.entry.js.map → p-003c7025.entry.js.map} +0 -0
  743. /package/dist/ontario-design-system-components/{p-a2461cfc.entry.js.map → p-037cb397.entry.js.map} +0 -0
  744. /package/dist/ontario-design-system-components/{p-2a6e912e.entry.js.map → p-09bb0aa3.entry.js.map} +0 -0
  745. /package/dist/ontario-design-system-components/{p-3fb5a2f5.entry.js.map → p-0d89c7b9.entry.js.map} +0 -0
  746. /package/dist/ontario-design-system-components/{p-b52ef7dc.entry.js.map → p-0f88c8f2.entry.js.map} +0 -0
  747. /package/dist/ontario-design-system-components/{p-8973affb.entry.js.map → p-0fe90a53.entry.js.map} +0 -0
  748. /package/dist/ontario-design-system-components/{p-d8e9546c.entry.js.map → p-11580fc7.entry.js.map} +0 -0
  749. /package/dist/ontario-design-system-components/{p-3b1c06b1.entry.js.map → p-11fbb285.entry.js.map} +0 -0
  750. /package/dist/ontario-design-system-components/{p-6477890e.entry.js.map → p-126496c8.entry.js.map} +0 -0
  751. /package/dist/ontario-design-system-components/{p-c779e248.entry.js.map → p-12e02882.entry.js.map} +0 -0
  752. /package/dist/ontario-design-system-components/{p-34371cd7.entry.js.map → p-152aa9e4.entry.js.map} +0 -0
  753. /package/dist/ontario-design-system-components/{p-47b56153.entry.js.map → p-1929437f.entry.js.map} +0 -0
  754. /package/dist/ontario-design-system-components/{p-b83a30cf.entry.js.map → p-1cfdae8d.entry.js.map} +0 -0
  755. /package/dist/ontario-design-system-components/{p-e51793eb.entry.js.map → p-1fbb0f59.entry.js.map} +0 -0
  756. /package/dist/ontario-design-system-components/{p-ecbcd457.entry.js.map → p-22062614.entry.js.map} +0 -0
  757. /package/dist/ontario-design-system-components/{p-86849b43.entry.js.map → p-24ef276d.entry.js.map} +0 -0
  758. /package/dist/ontario-design-system-components/{p-5a775ff3.entry.js.map → p-26390b88.entry.js.map} +0 -0
  759. /package/dist/ontario-design-system-components/{p-10899c2d.entry.js.map → p-29dfd6c4.entry.js.map} +0 -0
  760. /package/dist/ontario-design-system-components/{p-be4fbe09.entry.js.map → p-2e8d508a.entry.js.map} +0 -0
  761. /package/dist/ontario-design-system-components/{p-f8c4ff40.entry.js.map → p-2ed27310.entry.js.map} +0 -0
  762. /package/dist/ontario-design-system-components/{p-9cab9d12.entry.js.map → p-30786743.entry.js.map} +0 -0
  763. /package/dist/ontario-design-system-components/{p-0fa6ba1b.entry.js.map → p-3904f9dd.entry.js.map} +0 -0
  764. /package/dist/ontario-design-system-components/{p-b428f67a.entry.js.map → p-39d3a9ed.entry.js.map} +0 -0
  765. /package/dist/ontario-design-system-components/{p-21b80693.entry.js.map → p-3a1447aa.entry.js.map} +0 -0
  766. /package/dist/ontario-design-system-components/{p-61548ae2.entry.js.map → p-3aa826f2.entry.js.map} +0 -0
  767. /package/dist/ontario-design-system-components/{p-0f8e5a0c.entry.js.map → p-3f08b13d.entry.js.map} +0 -0
  768. /package/dist/ontario-design-system-components/{p-4f1683c0.entry.js.map → p-4043191b.entry.js.map} +0 -0
  769. /package/dist/ontario-design-system-components/{p-c69e5796.entry.js.map → p-41e0168e.entry.js.map} +0 -0
  770. /package/dist/ontario-design-system-components/{p-af8d070d.entry.js.map → p-43c3e426.entry.js.map} +0 -0
  771. /package/dist/ontario-design-system-components/{p-f8cbec7c.entry.js.map → p-45de5461.entry.js.map} +0 -0
  772. /package/dist/ontario-design-system-components/{p-6df12aab.entry.js.map → p-48215bea.entry.js.map} +0 -0
  773. /package/dist/ontario-design-system-components/{p-eb4faafb.entry.js.map → p-4888bc18.entry.js.map} +0 -0
  774. /package/dist/ontario-design-system-components/{p-446337ea.entry.js.map → p-4d6d69da.entry.js.map} +0 -0
  775. /package/dist/ontario-design-system-components/{p-1cd78ef5.entry.js.map → p-5d7e5889.entry.js.map} +0 -0
  776. /package/dist/ontario-design-system-components/{p-cb21b1a3.entry.js.map → p-5d92e9b1.entry.js.map} +0 -0
  777. /package/dist/ontario-design-system-components/{p-7a822cb8.entry.js.map → p-5ec63da7.entry.js.map} +0 -0
  778. /package/dist/ontario-design-system-components/{p-a33f978b.entry.js.map → p-5efb4624.entry.js.map} +0 -0
  779. /package/dist/ontario-design-system-components/{p-3218a141.entry.js.map → p-60bfb63f.entry.js.map} +0 -0
  780. /package/dist/ontario-design-system-components/{p-7afdef3f.entry.js.map → p-641ca864.entry.js.map} +0 -0
  781. /package/dist/ontario-design-system-components/{p-44fe73c2.entry.js.map → p-643806d5.entry.js.map} +0 -0
  782. /package/dist/ontario-design-system-components/{p-fb1a144e.entry.js.map → p-6668d4e0.entry.js.map} +0 -0
  783. /package/dist/ontario-design-system-components/{p-ce1fa4bd.entry.js.map → p-6dc2187e.entry.js.map} +0 -0
  784. /package/dist/ontario-design-system-components/{p-0aea8df7.entry.js.map → p-70498106.entry.js.map} +0 -0
  785. /package/dist/ontario-design-system-components/{p-fe487325.entry.js.map → p-70a335e2.entry.js.map} +0 -0
  786. /package/dist/ontario-design-system-components/{p-965f968c.entry.js.map → p-728c461b.entry.js.map} +0 -0
  787. /package/dist/ontario-design-system-components/{p-bad1e757.entry.js.map → p-73878f44.entry.js.map} +0 -0
  788. /package/dist/ontario-design-system-components/{p-d733ba28.entry.js.map → p-76ddf27f.entry.js.map} +0 -0
  789. /package/dist/ontario-design-system-components/{p-12d41776.entry.js.map → p-845375a2.entry.js.map} +0 -0
  790. /package/dist/ontario-design-system-components/{p-9ffdf9ad.entry.js.map → p-85951533.entry.js.map} +0 -0
  791. /package/dist/ontario-design-system-components/{p-564a51a5.entry.js.map → p-876f72e7.entry.js.map} +0 -0
  792. /package/dist/ontario-design-system-components/{p-01f427db.entry.js.map → p-87be02cc.entry.js.map} +0 -0
  793. /package/dist/ontario-design-system-components/{p-5184701e.entry.js.map → p-8b2362b8.entry.js.map} +0 -0
  794. /package/dist/ontario-design-system-components/{p-35681159.entry.js.map → p-8eba142e.entry.js.map} +0 -0
  795. /package/dist/ontario-design-system-components/{p-1526e1f3.entry.js.map → p-92fa3045.entry.js.map} +0 -0
  796. /package/dist/ontario-design-system-components/{p-981933f3.entry.js.map → p-94563a01.entry.js.map} +0 -0
  797. /package/dist/ontario-design-system-components/{p-3868d245.entry.js.map → p-95343ef7.entry.js.map} +0 -0
  798. /package/dist/ontario-design-system-components/{p-533a039a.entry.js.map → p-96322ecb.entry.js.map} +0 -0
  799. /package/dist/ontario-design-system-components/{p-a80d7066.entry.js.map → p-972530c1.entry.js.map} +0 -0
  800. /package/dist/ontario-design-system-components/{p-daca3528.entry.js.map → p-98785629.entry.js.map} +0 -0
  801. /package/dist/ontario-design-system-components/{p-f0ca3e20.entry.js.map → p-9e981b18.entry.js.map} +0 -0
  802. /package/dist/ontario-design-system-components/{p-95671e82.entry.js.map → p-a3c8e0fe.entry.js.map} +0 -0
  803. /package/dist/ontario-design-system-components/{p-3cca2f28.entry.js.map → p-a5c3340b.entry.js.map} +0 -0
  804. /package/dist/ontario-design-system-components/{p-ba5dc106.entry.js.map → p-a8cd11a8.entry.js.map} +0 -0
  805. /package/dist/ontario-design-system-components/{p-7f8d2db6.entry.js.map → p-ae0b1cd7.entry.js.map} +0 -0
  806. /package/dist/ontario-design-system-components/{p-a168d607.entry.js.map → p-af83e253.entry.js.map} +0 -0
  807. /package/dist/ontario-design-system-components/{p-04fb2b1f.entry.js.map → p-b45d5fea.entry.js.map} +0 -0
  808. /package/dist/ontario-design-system-components/{p-f45d1e6b.entry.js.map → p-b6b24bb7.entry.js.map} +0 -0
  809. /package/dist/ontario-design-system-components/{p-e6c90ae8.entry.js.map → p-b8e71a4d.entry.js.map} +0 -0
  810. /package/dist/ontario-design-system-components/{p-8b743603.entry.js.map → p-be44e14b.entry.js.map} +0 -0
  811. /package/dist/ontario-design-system-components/{p-5128c0bb.entry.js.map → p-c2da353b.entry.js.map} +0 -0
  812. /package/dist/ontario-design-system-components/{p-8ed8323f.entry.js.map → p-c3b931b0.entry.js.map} +0 -0
  813. /package/dist/ontario-design-system-components/{p-404f3050.entry.js.map → p-c4b4c80f.entry.js.map} +0 -0
  814. /package/dist/ontario-design-system-components/{p-9c9d49a3.entry.js.map → p-c4e02cd7.entry.js.map} +0 -0
  815. /package/dist/ontario-design-system-components/{p-e87fde13.entry.js.map → p-c4fafb66.entry.js.map} +0 -0
  816. /package/dist/ontario-design-system-components/{p-adbbd012.entry.js.map → p-c8422e76.entry.js.map} +0 -0
  817. /package/dist/ontario-design-system-components/{p-bb072cb8.entry.js.map → p-cc01fa6d.entry.js.map} +0 -0
  818. /package/dist/ontario-design-system-components/{p-b1596322.entry.js.map → p-cdcc4bc1.entry.js.map} +0 -0
  819. /package/dist/ontario-design-system-components/{p-f125e857.entry.js.map → p-d7d192a9.entry.js.map} +0 -0
  820. /package/dist/ontario-design-system-components/{p-baf6249e.entry.js.map → p-d9462565.entry.js.map} +0 -0
  821. /package/dist/ontario-design-system-components/{p-e952d94f.entry.js.map → p-de7d54f1.entry.js.map} +0 -0
  822. /package/dist/ontario-design-system-components/{p-32666b1a.entry.js.map → p-df980b9f.entry.js.map} +0 -0
  823. /package/dist/ontario-design-system-components/{p-6fb80d3b.entry.js.map → p-e2227665.entry.js.map} +0 -0
  824. /package/dist/ontario-design-system-components/{p-7c593bd8.entry.js.map → p-e381e658.entry.js.map} +0 -0
  825. /package/dist/ontario-design-system-components/{p-6a62b87d.entry.js.map → p-e615ffad.entry.js.map} +0 -0
  826. /package/dist/ontario-design-system-components/{p-6c85610c.entry.js.map → p-e86f15ef.entry.js.map} +0 -0
  827. /package/dist/ontario-design-system-components/{p-7738a68d.entry.js.map → p-eb9017c9.entry.js.map} +0 -0
  828. /package/dist/ontario-design-system-components/{p-80d23c2c.entry.js.map → p-eec91982.entry.js.map} +0 -0
  829. /package/dist/ontario-design-system-components/{p-16dc2584.entry.js.map → p-f02f5143.entry.js.map} +0 -0
  830. /package/dist/ontario-design-system-components/{p-39ab52ad.entry.js.map → p-f0f73537.entry.js.map} +0 -0
  831. /package/dist/ontario-design-system-components/{p-17409379.entry.js.map → p-f5749dfe.entry.js.map} +0 -0
  832. /package/dist/ontario-design-system-components/{p-1567ea71.entry.js.map → p-f6947391.entry.js.map} +0 -0
  833. /package/dist/ontario-design-system-components/{p-87fb19b5.entry.js.map → p-fac0d8ee.entry.js.map} +0 -0
  834. /package/dist/ontario-design-system-components/{p-ed2d68e1.entry.js.map → p-fc9ff3c0.entry.js.map} +0 -0
  835. /package/dist/ontario-design-system-components/{p-e96e36ff.entry.js.map → p-fec501d5.entry.js.map} +0 -0
  836. /package/www/build/{p-8653b9a6.entry.js.map → p-000d118a.entry.js.map} +0 -0
  837. /package/www/build/{p-c6d771f1.entry.js.map → p-003c7025.entry.js.map} +0 -0
  838. /package/www/build/{p-a2461cfc.entry.js.map → p-037cb397.entry.js.map} +0 -0
  839. /package/www/build/{p-2a6e912e.entry.js.map → p-09bb0aa3.entry.js.map} +0 -0
  840. /package/www/build/{p-3fb5a2f5.entry.js.map → p-0d89c7b9.entry.js.map} +0 -0
  841. /package/www/build/{p-b52ef7dc.entry.js.map → p-0f88c8f2.entry.js.map} +0 -0
  842. /package/www/build/{p-8973affb.entry.js.map → p-0fe90a53.entry.js.map} +0 -0
  843. /package/www/build/{p-d8e9546c.entry.js.map → p-11580fc7.entry.js.map} +0 -0
  844. /package/www/build/{p-3b1c06b1.entry.js.map → p-11fbb285.entry.js.map} +0 -0
  845. /package/www/build/{p-6477890e.entry.js.map → p-126496c8.entry.js.map} +0 -0
  846. /package/www/build/{p-c779e248.entry.js.map → p-12e02882.entry.js.map} +0 -0
  847. /package/www/build/{p-34371cd7.entry.js.map → p-152aa9e4.entry.js.map} +0 -0
  848. /package/www/build/{p-47b56153.entry.js.map → p-1929437f.entry.js.map} +0 -0
  849. /package/www/build/{p-b83a30cf.entry.js.map → p-1cfdae8d.entry.js.map} +0 -0
  850. /package/www/build/{p-e51793eb.entry.js.map → p-1fbb0f59.entry.js.map} +0 -0
  851. /package/www/build/{p-ecbcd457.entry.js.map → p-22062614.entry.js.map} +0 -0
  852. /package/www/build/{p-86849b43.entry.js.map → p-24ef276d.entry.js.map} +0 -0
  853. /package/www/build/{p-5a775ff3.entry.js.map → p-26390b88.entry.js.map} +0 -0
  854. /package/www/build/{p-10899c2d.entry.js.map → p-29dfd6c4.entry.js.map} +0 -0
  855. /package/www/build/{p-be4fbe09.entry.js.map → p-2e8d508a.entry.js.map} +0 -0
  856. /package/www/build/{p-f8c4ff40.entry.js.map → p-2ed27310.entry.js.map} +0 -0
  857. /package/www/build/{p-9cab9d12.entry.js.map → p-30786743.entry.js.map} +0 -0
  858. /package/www/build/{p-0fa6ba1b.entry.js.map → p-3904f9dd.entry.js.map} +0 -0
  859. /package/www/build/{p-b428f67a.entry.js.map → p-39d3a9ed.entry.js.map} +0 -0
  860. /package/www/build/{p-21b80693.entry.js.map → p-3a1447aa.entry.js.map} +0 -0
  861. /package/www/build/{p-61548ae2.entry.js.map → p-3aa826f2.entry.js.map} +0 -0
  862. /package/www/build/{p-0f8e5a0c.entry.js.map → p-3f08b13d.entry.js.map} +0 -0
  863. /package/www/build/{p-4f1683c0.entry.js.map → p-4043191b.entry.js.map} +0 -0
  864. /package/www/build/{p-c69e5796.entry.js.map → p-41e0168e.entry.js.map} +0 -0
  865. /package/www/build/{p-af8d070d.entry.js.map → p-43c3e426.entry.js.map} +0 -0
  866. /package/www/build/{p-f8cbec7c.entry.js.map → p-45de5461.entry.js.map} +0 -0
  867. /package/www/build/{p-6df12aab.entry.js.map → p-48215bea.entry.js.map} +0 -0
  868. /package/www/build/{p-eb4faafb.entry.js.map → p-4888bc18.entry.js.map} +0 -0
  869. /package/www/build/{p-446337ea.entry.js.map → p-4d6d69da.entry.js.map} +0 -0
  870. /package/www/build/{p-1cd78ef5.entry.js.map → p-5d7e5889.entry.js.map} +0 -0
  871. /package/www/build/{p-cb21b1a3.entry.js.map → p-5d92e9b1.entry.js.map} +0 -0
  872. /package/www/build/{p-7a822cb8.entry.js.map → p-5ec63da7.entry.js.map} +0 -0
  873. /package/www/build/{p-a33f978b.entry.js.map → p-5efb4624.entry.js.map} +0 -0
  874. /package/www/build/{p-3218a141.entry.js.map → p-60bfb63f.entry.js.map} +0 -0
  875. /package/www/build/{p-7afdef3f.entry.js.map → p-641ca864.entry.js.map} +0 -0
  876. /package/www/build/{p-44fe73c2.entry.js.map → p-643806d5.entry.js.map} +0 -0
  877. /package/www/build/{p-fb1a144e.entry.js.map → p-6668d4e0.entry.js.map} +0 -0
  878. /package/www/build/{p-ce1fa4bd.entry.js.map → p-6dc2187e.entry.js.map} +0 -0
  879. /package/www/build/{p-0aea8df7.entry.js.map → p-70498106.entry.js.map} +0 -0
  880. /package/www/build/{p-fe487325.entry.js.map → p-70a335e2.entry.js.map} +0 -0
  881. /package/www/build/{p-965f968c.entry.js.map → p-728c461b.entry.js.map} +0 -0
  882. /package/www/build/{p-bad1e757.entry.js.map → p-73878f44.entry.js.map} +0 -0
  883. /package/www/build/{p-d733ba28.entry.js.map → p-76ddf27f.entry.js.map} +0 -0
  884. /package/www/build/{p-12d41776.entry.js.map → p-845375a2.entry.js.map} +0 -0
  885. /package/www/build/{p-9ffdf9ad.entry.js.map → p-85951533.entry.js.map} +0 -0
  886. /package/www/build/{p-564a51a5.entry.js.map → p-876f72e7.entry.js.map} +0 -0
  887. /package/www/build/{p-01f427db.entry.js.map → p-87be02cc.entry.js.map} +0 -0
  888. /package/www/build/{p-5184701e.entry.js.map → p-8b2362b8.entry.js.map} +0 -0
  889. /package/www/build/{p-35681159.entry.js.map → p-8eba142e.entry.js.map} +0 -0
  890. /package/www/build/{p-1526e1f3.entry.js.map → p-92fa3045.entry.js.map} +0 -0
  891. /package/www/build/{p-981933f3.entry.js.map → p-94563a01.entry.js.map} +0 -0
  892. /package/www/build/{p-3868d245.entry.js.map → p-95343ef7.entry.js.map} +0 -0
  893. /package/www/build/{p-533a039a.entry.js.map → p-96322ecb.entry.js.map} +0 -0
  894. /package/www/build/{p-a80d7066.entry.js.map → p-972530c1.entry.js.map} +0 -0
  895. /package/www/build/{p-daca3528.entry.js.map → p-98785629.entry.js.map} +0 -0
  896. /package/www/build/{p-f0ca3e20.entry.js.map → p-9e981b18.entry.js.map} +0 -0
  897. /package/www/build/{p-95671e82.entry.js.map → p-a3c8e0fe.entry.js.map} +0 -0
  898. /package/www/build/{p-3cca2f28.entry.js.map → p-a5c3340b.entry.js.map} +0 -0
  899. /package/www/build/{p-ba5dc106.entry.js.map → p-a8cd11a8.entry.js.map} +0 -0
  900. /package/www/build/{p-7f8d2db6.entry.js.map → p-ae0b1cd7.entry.js.map} +0 -0
  901. /package/www/build/{p-a168d607.entry.js.map → p-af83e253.entry.js.map} +0 -0
  902. /package/www/build/{p-04fb2b1f.entry.js.map → p-b45d5fea.entry.js.map} +0 -0
  903. /package/www/build/{p-f45d1e6b.entry.js.map → p-b6b24bb7.entry.js.map} +0 -0
  904. /package/www/build/{p-e6c90ae8.entry.js.map → p-b8e71a4d.entry.js.map} +0 -0
  905. /package/www/build/{p-8b743603.entry.js.map → p-be44e14b.entry.js.map} +0 -0
  906. /package/www/build/{p-5128c0bb.entry.js.map → p-c2da353b.entry.js.map} +0 -0
  907. /package/www/build/{p-8ed8323f.entry.js.map → p-c3b931b0.entry.js.map} +0 -0
  908. /package/www/build/{p-404f3050.entry.js.map → p-c4b4c80f.entry.js.map} +0 -0
  909. /package/www/build/{p-9c9d49a3.entry.js.map → p-c4e02cd7.entry.js.map} +0 -0
  910. /package/www/build/{p-e87fde13.entry.js.map → p-c4fafb66.entry.js.map} +0 -0
  911. /package/www/build/{p-adbbd012.entry.js.map → p-c8422e76.entry.js.map} +0 -0
  912. /package/www/build/{p-bb072cb8.entry.js.map → p-cc01fa6d.entry.js.map} +0 -0
  913. /package/www/build/{p-b1596322.entry.js.map → p-cdcc4bc1.entry.js.map} +0 -0
  914. /package/www/build/{p-f125e857.entry.js.map → p-d7d192a9.entry.js.map} +0 -0
  915. /package/www/build/{p-baf6249e.entry.js.map → p-d9462565.entry.js.map} +0 -0
  916. /package/www/build/{p-e952d94f.entry.js.map → p-de7d54f1.entry.js.map} +0 -0
  917. /package/www/build/{p-32666b1a.entry.js.map → p-df980b9f.entry.js.map} +0 -0
  918. /package/www/build/{p-6fb80d3b.entry.js.map → p-e2227665.entry.js.map} +0 -0
  919. /package/www/build/{p-7c593bd8.entry.js.map → p-e381e658.entry.js.map} +0 -0
  920. /package/www/build/{p-6a62b87d.entry.js.map → p-e615ffad.entry.js.map} +0 -0
  921. /package/www/build/{p-6c85610c.entry.js.map → p-e86f15ef.entry.js.map} +0 -0
  922. /package/www/build/{p-7738a68d.entry.js.map → p-eb9017c9.entry.js.map} +0 -0
  923. /package/www/build/{p-80d23c2c.entry.js.map → p-eec91982.entry.js.map} +0 -0
  924. /package/www/build/{p-16dc2584.entry.js.map → p-f02f5143.entry.js.map} +0 -0
  925. /package/www/build/{p-39ab52ad.entry.js.map → p-f0f73537.entry.js.map} +0 -0
  926. /package/www/build/{p-17409379.entry.js.map → p-f5749dfe.entry.js.map} +0 -0
  927. /package/www/build/{p-1567ea71.entry.js.map → p-f6947391.entry.js.map} +0 -0
  928. /package/www/build/{p-87fb19b5.entry.js.map → p-fac0d8ee.entry.js.map} +0 -0
  929. /package/www/build/{p-ed2d68e1.entry.js.map → p-fc9ff3c0.entry.js.map} +0 -0
  930. /package/www/build/{p-e96e36ff.entry.js.map → p-fec501d5.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"ontario-dropdown-list.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,sBAAsB,GAAG,otTAAotT,CAAC;AACpvT,kCAAe,sBAAsB;;MC2CxBA,qBAAmB;;;;;;;;;;;;;;;wBA8EF,KAAK;kCAcc,KAAK;;;;;;;;;;;;4BA0FxB,YAAY;;;;;IA0BzC,oBAAoB,CAAC,KAA4B;QAChD,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YACnB,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;SACxC;KACD;IAGD,2BAA2B,CAAC,KAA4B;QACvD,IAAI,CAAC,QAAQ,GAA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AAC,EAAE,SAAS,CAAC,KAAK,CAAC,EACpD,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,IAExB,IAAI,CAAC,kBAAkB;aACtB,IAAI,CAAC,kBAAkB,KAAK,IAAI,IAAI,IAAI,CAAC,kBAAkB,KAAK,MAAM,IACtE,kBAAS,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAU,KAE5E,kBAAS,IAAI,CAAC,kBAAkB,CAAU,CAC1C,CAAC,EAEF,MAAA,MAAA,IAAI,CAAC,eAAe,0CAAE,GAAG,CAAC,CAAC,QAAQ,MACnC,cAAQ,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,IACxD,QAAQ,CAAC,KAAK,CACP,CACT,CAAC,mCAAI,EAAE,CACA,EACR,IAAI,CAAC,oBAAoB,KACzB,6BACC,IAAI,EAAE,IAAI,CAAC,oBAAoB,CAAC,IAAI,EACpC,OAAO,EAAE,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAC1C,eAAe,EAAE,IAAI,CAAC,oBAAoB,CAAC,eAAe,GAClC,CACzB,CACI,EACL;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioDropdownList","uuid"],"sources":["src/components/ontario-dropdown-list/ontario-dropdown-list.scss?tag=ontario-dropdown-list&encapsulation=shadow","src/components/ontario-dropdown-list/ontario-dropdown-list.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/4-elements/_global.elements.scss';\n@use '../../styles/form.scss';\n@forward '../../utils/components/error-message/error-message';\n\n$ontario-dropdown-border-width: 0.125rem;\n\n.ontario-dropdown {\n\tbackground-color: colours.$ontario-colour-white;\n\tbackground-position: right spacing.$spacing-2 center;\n\tbackground-repeat: no-repeat;\n\tbackground-size: spacing.$spacing-6;\n\tpadding-right: (spacing.$spacing-4 * 2.25);\n\tcursor: pointer;\n\n\t&.ontario-dropdown-hint-expander--true {\n\t\tmargin-bottom: spacing.$spacing-4;\n\t}\n}\n\n/* These styles are to fix differences in default styling for dropdowns in IE */\n.ontario-dropdown::-ms-expand {\n\tdisplay: none;\n}\n\n.ontario-dropdown option {\n\tfont-weight: normal;\n}\n\n.ontario-dropdown--error {\n\tselect {\n\t\tborder: $ontario-dropdown-border-width solid colours.$ontario-colour-alert;\n\t}\n}\n","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"],"version":3}
1
+ {"file":"ontario-dropdown-list.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,sBAAsB,GAAG,4vTAA4vT,CAAC;AAC5xT,kCAAe,sBAAsB;;MC2CxBA,qBAAmB;;;;;;;;;;;;;;;wBA8EF,KAAK;kCAcc,KAAK;;;;;;;;;;;;4BA0FxB,YAAY;;;;;IA0BzC,oBAAoB,CAAC,KAA4B;QAChD,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YACnB,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;SACxC;KACD;IAGD,2BAA2B,CAAC,KAA4B;QACvD,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;KACxC;;;;;;;IASD,YAAY,CAAC,QAAgB;QAC5B,IAAI,kBAAkB,CAAC,QAAQ,CAAC,EAAE;YACjC,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE,CAAC;YAC1C,OAAO;iBACL,kBAAkB,EAAE;iBACpB,gBAAgB,CAAC,QAAQ,CAAC;iBAC1B,cAAc,CAAC,KAAK,CAAC;iBACrB,gBAAgB,CAAC,2BAA2B,CAAC;iBAC7C,cAAc,CAAC,kBAAkB,CAAC;iBAClC,YAAY,EAAE,CAAC;SACjB;KACD;;;;;;;IASD,eAAe,CAAC,QAAgB;QAC/B,IAAI,oBAAoB,CAAC,QAAQ,CAAC,EAAE;YACnC,MAAM,OAAO,G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AAE,QAAQ,CAAC,QAAQ,IACxD,QAAQ,CAAC,KAAK,CACP,CACT,CAAC,mCAAI,EAAE,CACA,EACR,IAAI,CAAC,oBAAoB,KACzB,6BACC,IAAI,EAAE,IAAI,CAAC,oBAAoB,CAAC,IAAI,EACpC,OAAO,EAAE,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAC1C,eAAe,EAAE,IAAI,CAAC,oBAAoB,CAAC,eAAe,GAClC,CACzB,CACI,EACL;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioDropdownList","uuid"],"sources":["src/components/ontario-dropdown-list/ontario-dropdown-list.scss?tag=ontario-dropdown-list&encapsulation=shadow","src/components/ontario-dropdown-list/ontario-dropdown-list.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/4-elements/_global.elements.scss';\n@use '../../styles/form.scss';\n@forward '../../utils/components/error-message/error-message';\n\n$ontario-dropdown-border-width: 0.125rem;\n\n.ontario-dropdown {\n\tbackground-color: colours.$ontario-colour-white;\n\tbackground-position: right spacing.$spacing-2 center;\n\tbackground-repeat: no-repeat;\n\tbackground-size: spacing.$spacing-6;\n\tpadding-right: (spacing.$spacing-4 * 2.25);\n\tcursor: pointer;\n\n\t&.ontario-dropdown-hint-expander--true {\n\t\tmargin-bottom: spacing.$spacing-4;\n\t}\n}\n\n/* These styles are to fix differences in default styling for dropdowns in IE */\n.ontario-dropdown::-ms-expand {\n\tdisplay: none;\n}\n\n.ontario-dropdown option {\n\tfont-weight: normal;\n}\n\n.ontario-dropdown--error {\n\tselect {\n\t\tborder: $ontario-dropdown-border-width solid colours.$ontario-colour-alert;\n\t}\n}\n","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"],"version":3}
@@ -4,7 +4,7 @@ import { C as ConsoleMessageClass } from './console-message.js';
4
4
  import { a as validateValueAgainstArray, b as validatePropExists } from './validation-functions.js';
5
5
 
6
6
  const ontarioFieldsetCss =
7
- '@charset "UTF-8";h6,.ontario-h6,h5,.ontario-h5,h4,.ontario-h4,h3,.ontario-h3,h2,.ontario-h2,.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1,h1,.ontario-h1{font-style:normal;font-weight:700;text-rendering:optimizeLegibility;margin-bottom:1rem;font-feature-settings:normal;font-family:"Raleway", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif}.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1,h1,.ontario-h1{font-size:2rem;letter-spacing:0.04rem;line-height:1.29;margin:2.5rem 0 1.5rem 0;max-width:70rem}@media screen and (min-width: 40em){.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1,h1,.ontario-h1{font-size:2.5rem;letter-spacing:0.04rem;line-height:1.2}}h2,.ontario-h2{font-size:1.6875rem;letter-spacing:0.03rem;line-height:1.37;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h2,.ontario-h2{font-size:2.0625rem;letter-spacing:0.02rem;line-height:1.33}}h3,.ontario-h3{font-size:1.4375rem;letter-spacing:0.02rem;line-height:1.39;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h3,.ontario-h3{font-size:1.75rem;letter-spacing:0.02rem;line-height:1.43}}h4,.ontario-h4{font-size:1.25rem;letter-spacing:0.03rem;line-height:1.5;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h4,.ontario-h4{font-size:1.5rem;letter-spacing:0.0313rem;line-height:1.5}}h5,.ontario-h5{font-size:1.125rem;letter-spacing:0.03rem;line-height:1.56;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h5,.ontario-h5{font-size:1.1875rem;letter-spacing:0.025rem;line-height:1.5}}h6,.ontario-h6{font-size:1rem;line-height:1.56;letter-spacing:0.03rem;max-width:48rem;margin:0 0 0.75rem 0}@media screen and (min-width: 40em){h6,.ontario-h6{font-size:1rem;letter-spacing:0.025rem;line-height:1.5}}.ontario-lead-statement{font-size:1.25rem;line-height:1.6;max-width:70rem}@media screen and (min-width: 40em){.ontario-lead-statement{font-size:1.375rem}}html{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem}body{font-size:1rem;line-height:1.6;background-color:#FFFFFF;color:#1a1a1a;margin:0}p{font-size:inherit;margin-bottom:1.25rem;text-rendering:optimizeLegibility;margin:0 0 1.5rem 0}cite{font-style:italic;line-height:inherit}strong{font-weight:700;line-height:inherit}*,*::before,*::after{box-sizing:inherit}main p,main p:not(.ontario-lead-statement),main dd,main li{max-width:48rem}hr{border:0;padding:0;margin:2.5rem 0;border-bottom:4px solid #cccccc}hr.ontario-hr--dark{border-bottom:4px solid #1a1a1a}a{color:#0066CC;text-decoration:underline}a:visited{color:#551A8B}a:hover{color:#00478F}a:active{color:#002142}a:focus{-moz-box-shadow:0 0 0 4px #009ADB;-webkit-box-shadow:0 0 0 4px #009ADB;box-shadow:0 0 0 4px #009ADB;outline:4px solid transparent;transition:all 0.1s ease-in-out}​p{margin:0 0 1.5rem 0}​p+h1,p+h2,p+h3,p+h4,p+h5,p+h6,ul+h1,ul+h2,ul+h3,ul+h4,ul+h5,ul+h6,ol+h1,ol+h2,ol+h3,ol+h4,ol+h5,ol+h6,h1+h2,h2+h3,h3+h4,h4+h5,h5+h6{margin-top:2rem}p code,td code,li code{line-height:2.25rem}input[type=text],input[type=number],input[type=email],input[type=date],input[type=color],input[type=search],input[type=tel],textarea{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}input[type=checkbox]+label,input[type=radio]+label{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:400;margin-left:0;margin-right:0}fieldset{border:0;margin:0;padding:0;page-break-inside:avoid}legend,label{display:block;margin:0}select{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}ul,ol{padding:0}ul{margin-left:2rem}ul li{padding:0 0 0.75rem 0}ol{margin-left:1.75rem}ol li{padding:0 0 0.75rem 0.25rem}ul li:last-child,ol li:last-child{padding-bottom:0}ul[class*=columns-] li:last-child,ol[class*=columns-] li:last-child{padding-bottom:0.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 2rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 1.75rem}p+ul,p+ol{margin-top:-0.75rem}@media screen and (min-width: 40em){ul{margin:0.5rem 0 1.5rem 3rem}ol{margin:0.5rem 0 1.5rem 2.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 3rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 2.75rem}}.ontario-form-group:last-of-type{margin-bottom:2.5rem}.ontario-form-group:last-of-type{margin-bottom:3rem}.ontario-fieldset__legend{color:#1a1a1a;font-family:"Raleway", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1.1875rem;font-weight:700;margin:0 0 1rem 0;line-height:1.5;max-width:38.75em;white-space:normal;width:100%}@media screen and (max-width: 40em){.ontario-fieldset__legend{font-size:1.125rem;line-height:1.56}}.ontario-fieldset__legend--large,.ontario-fieldset__legend--heading{letter-spacing:0.02rem;line-height:1.2}.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1{display:inline-block;margin:0}@media screen and (max-width: 40em){.ontario-fieldset__legend--large,.ontario-fieldset__legend--heading{font-size:1.4375rem;line-height:1.39}}.ontario-fieldset__legend--large{font-size:1.75rem}.ontario-fieldset__legend-required-flag,.ontario-fieldset__legend-optional-flag{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:400}.ontario-fieldset__legend-required-flag:before,.ontario-fieldset__legend-optional-flag:before{content:" "}.ontario-label__flag{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:400}.ontario-label__flag:before{content:" "}';
7
+ '@charset "UTF-8";h6,.ontario-h6,h5,.ontario-h5,h4,.ontario-h4,h3,.ontario-h3,h2,.ontario-h2,.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1,h1,.ontario-h1{font-style:normal;font-weight:700;text-rendering:optimizeLegibility;margin-bottom:1rem;font-feature-settings:normal;font-family:"Raleway", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif}.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1,h1,.ontario-h1{font-size:2rem;letter-spacing:0.04rem;line-height:1.29;margin:2.5rem 0 1.5rem 0;max-width:70rem}@media screen and (min-width: 40em){.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1,h1,.ontario-h1{font-size:2.5rem;letter-spacing:0.04rem;line-height:1.2}}h2,.ontario-h2{font-size:1.6875rem;letter-spacing:0.03rem;line-height:1.37;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h2,.ontario-h2{font-size:2.0625rem;letter-spacing:0.02rem;line-height:1.33}}h3,.ontario-h3{font-size:1.4375rem;letter-spacing:0.02rem;line-height:1.39;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h3,.ontario-h3{font-size:1.75rem;letter-spacing:0.02rem;line-height:1.43}}h4,.ontario-h4{font-size:1.25rem;letter-spacing:0.03rem;line-height:1.5;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h4,.ontario-h4{font-size:1.5rem;letter-spacing:0.0313rem;line-height:1.5}}h5,.ontario-h5{font-size:1.125rem;letter-spacing:0.03rem;line-height:1.56;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h5,.ontario-h5{font-size:1.1875rem;letter-spacing:0.025rem;line-height:1.5}}h6,.ontario-h6{font-size:1rem;line-height:1.56;letter-spacing:0.03rem;max-width:48rem;margin:0 0 0.75rem 0}@media screen and (min-width: 40em){h6,.ontario-h6{font-size:1rem;letter-spacing:0.025rem;line-height:1.5}}.ontario-lead-statement{font-size:1.25rem;line-height:1.6;max-width:70rem}@media screen and (min-width: 40em){.ontario-lead-statement{font-size:1.375rem}}html{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem}body{font-size:1rem;line-height:1.6;background-color:#FFFFFF;color:#1a1a1a;margin:0}p{font-size:inherit;margin-bottom:1.25rem;text-rendering:optimizeLegibility;margin:0 0 1.5rem 0}cite{font-style:italic;line-height:inherit}strong{font-weight:700;line-height:inherit}*,*::before,*::after{box-sizing:inherit}main p,main p:not(.ontario-lead-statement),main dd,main li{max-width:48rem}hr{border:0;padding:0;margin:2.5rem 0;border-bottom:4px solid #cccccc}hr.ontario-hr--dark{border-bottom:4px solid #1a1a1a}a{color:#0066CC;text-decoration:underline}a:visited{color:#551A8B}a:hover{color:#00478F}a:active{color:#002142}a:focus{-moz-box-shadow:0 0 0 4px #009ADB;-webkit-box-shadow:0 0 0 4px #009ADB;box-shadow:0 0 0 4px #009ADB;outline:4px solid transparent;transition:all 0.1s ease-in-out}​p{margin:0 0 1.5rem 0}​p+h1,p+h2,p+h3,p+h4,p+h5,p+h6,ul+h1,ul+h2,ul+h3,ul+h4,ul+h5,ul+h6,ol+h1,ol+h2,ol+h3,ol+h4,ol+h5,ol+h6,h1+h2,h2+h3,h3+h4,h4+h5,h5+h6{margin-top:2rem}p code,td code,li code{line-height:2.25rem}input[type=text],input[type=number],input[type=email],input[type=date],input[type=color],input[type=search],input[type=tel],textarea{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}input[type=checkbox]+label,input[type=radio]+label{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:400;margin-left:0;margin-right:0}fieldset{border:0;margin:0;padding:0;page-break-inside:avoid}legend,label{display:block;margin:0}select{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}ul,ol{padding:0}ul{margin-left:2rem}ul li{padding:0 0 0.75rem 0}ol{margin-left:1.75rem}ol li{padding:0 0 0.75rem 0.25rem}ul li:last-child,ol li:last-child{padding-bottom:0}ul[class*=columns-] li:last-child,ol[class*=columns-] li:last-child{padding-bottom:0.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 2rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 1.75rem}p+ul,p+ol{margin-top:-0.75rem}@media screen and (min-width: 40em){ul{margin:0.5rem 0 1.5rem 3rem}ol{margin:0.5rem 0 1.5rem 2.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 3rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 2.75rem}}.ontario-form-group:last-of-type{margin-bottom:2.5rem}.ontario-form-group:last-of-type{margin-bottom:3rem}.ontario-fieldset__legend{color:#1a1a1a;font-family:"Raleway", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1.1875rem;font-weight:700;margin:0 0 1rem 0;line-height:1.5;max-width:38.75em;white-space:normal;width:100%;hyphens:auto}@media screen and (max-width: 40em){.ontario-fieldset__legend{font-size:1.125rem;line-height:1.56}}.ontario-fieldset__legend--large,.ontario-fieldset__legend--heading{letter-spacing:0.02rem;line-height:1.2}.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1{display:inline-block;margin:0}@media screen and (max-width: 40em){.ontario-fieldset__legend--large,.ontario-fieldset__legend--heading{font-size:1.4375rem;line-height:1.39}}.ontario-fieldset__legend--large{font-size:1.75rem}.ontario-fieldset__legend-required-flag,.ontario-fieldset__legend-optional-flag{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:400}.ontario-fieldset__legend-required-flag:before,.ontario-fieldset__legend-optional-flag:before{content:" "}.ontario-label__flag{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:400}.ontario-label__flag:before{content:" "}';
8
8
  const OntarioFieldsetStyle0 = ontarioFieldsetCss;
9
9
 
10
10
  const OntarioFieldset$1 = /*@__PURE__*/ proxyCustomElement(
@@ -75,16 +75,16 @@ const OntarioFieldset$1 = /*@__PURE__*/ proxyCustomElement(
75
75
  render() {
76
76
  return h(
77
77
  'div',
78
- { key: 'c3827fa2c6ca509662a8dc406f9dc9f44a32f541', class: 'ontario-form-group' },
78
+ { key: 'b67eb0cfb89097276405ce512b45538201d524b7', class: 'ontario-form-group' },
79
79
  h(
80
80
  'fieldset',
81
- { key: '5f8bb8761303ec1cb41d09b64b7fb7bfe2b7e2a5', class: 'ontario-fieldset' },
81
+ { key: '2b734fbca04ee66e7a1beaa389e96e4968257a0e', class: 'ontario-fieldset' },
82
82
  h(
83
83
  'legend',
84
- { key: 'dddd6ef762a2f4804ecad13adaad78f4e4fe165d', class: this.getClass() },
84
+ { key: 'b020a125d2257db804dc733d0f9cb81f63d0006d', class: this.getClass() },
85
85
  this.legendSize === 'heading' ? h('h1', null, this.legend) : this.legend,
86
86
  ),
87
- h('slot', { key: '577f8e5f319f8153809df46669b9e36970e63b55' }),
87
+ h('slot', { key: '8d46ec07de3ce88928468671d14d45d2e0ccc0ab' }),
88
88
  ),
89
89
  );
90
90
  }
@@ -1 +1 @@
1
- {"file":"ontario-fieldset.js","mappings":";;;;;AAAA,MAAM,kBAAkB,GAAG,48KAA48K,CAAC;AACx+K,8BAAe,kBAAkB;;MCYpBA,iBAAe;;;;;;0BASwB,SAAS;;;;;;IAO5D,kBAAkB;QACjB,MAAM,OAAO,GAAG,yBAAyB,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAEzE,IAAI,OAAO,EAAE;YACZ,OAAO,IAAI,CAAC,UAAU,CAAC;SACvB;aAAM;YACN,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE,CAAC;YAC1C,OAAO;iBACL,kBAAkB,EAAE;iBACpB,gBAAgB,CAAC,eAAe,IAAI,CAAC,UAAU,GAAG,CAAC;iBACnD,cAAc,CAAC,KAAK,CAAC;iBACrB,gBAAgB,CAAC,sBAAsB,CAAC;iBACxC,cAAc,CAAC,sDAAsD,CAAC;iBACtE,YAAY,EAAE,CAAC;YAEjB,OAAO,SAAS,CAAC;SACjB;KACD;;;;IAMD,cAAc;QACb,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KACrC;;;;IAKD,kBAAkB,CAAC,QAAgB;QAClC,IAAI,kBAAkB,CAAC,QAAQ,CAAC,EAAE;YACjC,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE,CAAC;YAC1C,OAAO;iBACL,kBAAkB,EAAE;iBACpB,gBAAgB,CAAC,UAAU,CAAC;iBAC5B,cAAc,CAAC,KAAK,CAAC;iBACrB,gBAAgB,CAAC,sBAAsB,CAAC;iBACxC,cAAc,CAAC,kBAAkB,CAAC;iBAClC,YAAY,EAAE,CAAC;SACjB;KACD;IACD,iBAAiB;QAChB,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,CAAC,kBAAkB,EAAE,CAAC;KAC1B;IAEO,QAAQ;QACf,QAAQ,IAAI,CAAC,UAAU;YACtB,KAAK,OAAO;gBACX,OAAO,0DAA0D,CAAC;YACnE,KAAK,SAAS;gBACb,OAAO,4DAA4D,CAAC;YACrE,KAAK,SAAS,CAAC;YACf;gBACC,OAAO,0BAA0B,CAAC;SACnC;KACD;IAED,MAAM;QACL,QACC,4DAAK,KAAK,EAAC,oBAAoB,IAC9B,iEAAU,KAAK,EAAC,kBAAkB,IACjC,+DAAQ,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,IAC5B,IAAI,CAAC,UAAU,KAAK,SAAS,GAAG,cAAK,IAAI,CAAC,MAAM,CAAM,GAAG,IAAI,CAAC,MAAM,CAC7D,EACT,8DAAQ,CACE,CACN,EACL;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioFieldset"],"sources":["src/components/ontario-fieldset/ontario-fieldset.scss?tag=ontario-fieldset&encapsulation=shadow","src/components/ontario-fieldset/ontario-fieldset.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/4-elements/_global.elements.scss';\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/6-components/_form.component.scss';\n","import { Component, h, Prop, Watch } from '@stencil/core';\n\nimport { Fieldset } from './ontario-fieldset.interface';\n\nimport { CaptionType, CaptionTypes } from '../../utils/common/input-caption/input-caption.types';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\nimport { validatePropExists, validateValueAgainstArray } from '../../utils/validation/validation-functions';\n\n@Component({\n\ttag: 'ontario-fieldset',\n\tstyleUrl: 'ontario-fieldset.scss',\n\tshadow: true,\n})\nexport class OntarioFieldset implements Fieldset {\n\t/**\n\t * The text value used for the legend of the fieldset.\n\t */\n\t@Prop({ mutable: true }) legend: string;\n\n\t/**\n\t * The size of the fieldset legend. If no prop is passed, it will be `default`.\n\t */\n\t@Prop({ mutable: true }) legendSize: CaptionType = 'default';\n\n\t/**\n\t * Watch for changes to the legendSize prop.\n\t * This is for validation purposes to make sure the legendSize matches one of the CaptionTypes.\n\t */\n\t@Watch('legendSize')\n\tvalidateLegendSize() {\n\t\tconst isValid = validateValueAgainstArray(this.legendSize, CaptionTypes);\n\n\t\tif (isValid) {\n\t\t\treturn this.legendSize;\n\t\t} else {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(` legendSize ${this.legendSize} `)\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-fieldset> ')\n\t\t\t\t.addRegularText('is not a valid type. A default size will be applied.')\n\t\t\t\t.printMessage();\n\n\t\t\treturn 'default';\n\t\t}\n\t}\n\n\t/*\n\t * Watch for changes in the `legend` prop for validation purposes.\n\t */\n\t@Watch('legend')\n\tvalidateLegend() {\n\t\tthis.validateLegendText(this.legend);\n\t}\n\n\t/**\n\t * Print the legend warning message\n\t */\n\tvalidateLegendText(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(' legend ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-fieldset> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\tcomponentWillLoad() {\n\t\tthis.validateLegend();\n\t\tthis.validateLegendSize();\n\t}\n\n\tprivate getClass() {\n\t\tswitch (this.legendSize) {\n\t\t\tcase 'large':\n\t\t\t\treturn `ontario-fieldset__legend ontario-fieldset__legend--large`;\n\t\t\tcase 'heading':\n\t\t\t\treturn `ontario-fieldset__legend ontario-fieldset__legend--heading`;\n\t\t\tcase 'default':\n\t\t\tdefault:\n\t\t\t\treturn `ontario-fieldset__legend`;\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div class=\"ontario-form-group\">\n\t\t\t\t<fieldset class=\"ontario-fieldset\">\n\t\t\t\t\t<legend class={this.getClass()}>\n\t\t\t\t\t\t{this.legendSize === 'heading' ? <h1>{this.legend}</h1> : this.legend}\n\t\t\t\t\t</legend>\n\t\t\t\t\t<slot />\n\t\t\t\t</fieldset>\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"ontario-fieldset.js","mappings":";;;;;AAAA,MAAM,kBAAkB,GAAG,y9KAAy9K,CAAC;AACr/K,8BAAe,kBAAkB;;MCYpBA,iBAAe;;;;;;0BASwB,SAAS;;;;;;IAO5D,kBAAkB;QACjB,MAAM,OAAO,GAAG,yBAAyB,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAEzE,IAAI,OAAO,EAAE;YACZ,OAAO,IAAI,CAAC,UAAU,CAAC;SACvB;aAAM;YACN,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE,CAAC;YAC1C,OAAO;iBACL,kBAAkB,EAAE;iBACpB,gBAAgB,CAAC,eAAe,IAAI,CAAC,UAAU,GAAG,CAAC;iBACnD,cAAc,CAAC,KAAK,CAAC;iBACrB,gBAAgB,CAAC,sBAAsB,CAAC;iBACxC,cAAc,CAAC,sDAAsD,CAAC;iBACtE,YAAY,EAAE,CAAC;YAEjB,OAAO,SAAS,CAAC;SACjB;KACD;;;;IAMD,cAAc;QACb,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KACrC;;;;IAKD,kBAAkB,CAAC,QAAgB;QAClC,IAAI,kBAAkB,CAAC,QAAQ,CAAC,EAAE;YACjC,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE,CAAC;YAC1C,OAAO;iBACL,kBAAkB,EAAE;iBACpB,gBAAgB,CAAC,UAAU,CAAC;iBAC5B,cAAc,CAAC,KAAK,CAAC;iBACrB,gBAAgB,CAAC,sBAAsB,CAAC;iBACxC,cAAc,CAAC,kBAAkB,CAAC;iBAClC,YAAY,EAAE,CAAC;SACjB;KACD;IACD,iBAAiB;QAChB,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,CAAC,kBAAkB,EAAE,CAAC;KAC1B;IAEO,QAAQ;QACf,QAAQ,IAAI,CAAC,UAAU;YACtB,KAAK,OAAO;gBACX,OAAO,0DAA0D,CAAC;YACnE,KAAK,SAAS;gBACb,OAAO,4DAA4D,CAAC;YACrE,KAAK,SAAS,CAAC;YACf;gBACC,OAAO,0BAA0B,CAAC;SACnC;KACD;IAED,MAAM;QACL,QACC,4DAAK,KAAK,EAAC,oBAAoB,IAC9B,iEAAU,KAAK,EAAC,kBAAkB,IACjC,+DAAQ,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,IAC5B,IAAI,CAAC,UAAU,KAAK,SAAS,GAAG,cAAK,IAAI,CAAC,MAAM,CAAM,GAAG,IAAI,CAAC,MAAM,CAC7D,EACT,8DAAQ,CACE,CACN,EACL;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioFieldset"],"sources":["src/components/ontario-fieldset/ontario-fieldset.scss?tag=ontario-fieldset&encapsulation=shadow","src/components/ontario-fieldset/ontario-fieldset.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/4-elements/_global.elements.scss';\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/6-components/_form.component.scss';\n","import { Component, h, Prop, Watch } from '@stencil/core';\n\nimport { Fieldset } from './ontario-fieldset.interface';\n\nimport { CaptionType, CaptionTypes } from '../../utils/common/input-caption/input-caption.types';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\nimport { validatePropExists, validateValueAgainstArray } from '../../utils/validation/validation-functions';\n\n@Component({\n\ttag: 'ontario-fieldset',\n\tstyleUrl: 'ontario-fieldset.scss',\n\tshadow: true,\n})\nexport class OntarioFieldset implements Fieldset {\n\t/**\n\t * The text value used for the legend of the fieldset.\n\t */\n\t@Prop({ mutable: true }) legend: string;\n\n\t/**\n\t * The size of the fieldset legend. If no prop is passed, it will be `default`.\n\t */\n\t@Prop({ mutable: true }) legendSize: CaptionType = 'default';\n\n\t/**\n\t * Watch for changes to the legendSize prop.\n\t * This is for validation purposes to make sure the legendSize matches one of the CaptionTypes.\n\t */\n\t@Watch('legendSize')\n\tvalidateLegendSize() {\n\t\tconst isValid = validateValueAgainstArray(this.legendSize, CaptionTypes);\n\n\t\tif (isValid) {\n\t\t\treturn this.legendSize;\n\t\t} else {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(` legendSize ${this.legendSize} `)\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-fieldset> ')\n\t\t\t\t.addRegularText('is not a valid type. A default size will be applied.')\n\t\t\t\t.printMessage();\n\n\t\t\treturn 'default';\n\t\t}\n\t}\n\n\t/*\n\t * Watch for changes in the `legend` prop for validation purposes.\n\t */\n\t@Watch('legend')\n\tvalidateLegend() {\n\t\tthis.validateLegendText(this.legend);\n\t}\n\n\t/**\n\t * Print the legend warning message\n\t */\n\tvalidateLegendText(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(' legend ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-fieldset> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\tcomponentWillLoad() {\n\t\tthis.validateLegend();\n\t\tthis.validateLegendSize();\n\t}\n\n\tprivate getClass() {\n\t\tswitch (this.legendSize) {\n\t\t\tcase 'large':\n\t\t\t\treturn `ontario-fieldset__legend ontario-fieldset__legend--large`;\n\t\t\tcase 'heading':\n\t\t\t\treturn `ontario-fieldset__legend ontario-fieldset__legend--heading`;\n\t\t\tcase 'default':\n\t\t\tdefault:\n\t\t\t\treturn `ontario-fieldset__legend`;\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div class=\"ontario-form-group\">\n\t\t\t\t<fieldset class=\"ontario-fieldset\">\n\t\t\t\t\t<legend class={this.getClass()}>\n\t\t\t\t\t\t{this.legendSize === 'heading' ? <h1>{this.legend}</h1> : this.legend}\n\t\t\t\t\t</legend>\n\t\t\t\t\t<slot />\n\t\t\t\t</fieldset>\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}