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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (943) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/ontario-accordion_42.cjs.entry.js +286 -249
  3. package/dist/cjs/ontario-accordion_42.cjs.entry.js.map +1 -1
  4. package/dist/cjs/ontario-design-system-components.cjs.js +1 -1
  5. package/dist/cjs/ontario-icon-account.cjs.entry.js +3 -3
  6. package/dist/cjs/ontario-icon-add-alt.cjs.entry.js +3 -3
  7. package/dist/cjs/ontario-icon-add.cjs.entry.js +3 -3
  8. package/dist/cjs/ontario-icon-arrow-up.cjs.entry.js +4 -4
  9. package/dist/cjs/ontario-icon-attach.cjs.entry.js +3 -3
  10. package/dist/cjs/ontario-icon-bookmark-off.cjs.entry.js +3 -3
  11. package/dist/cjs/ontario-icon-bookmark-on.cjs.entry.js +3 -3
  12. package/dist/cjs/ontario-icon-calendar.cjs.entry.js +3 -3
  13. package/dist/cjs/ontario-icon-chevron-right.cjs.entry.js +3 -3
  14. package/dist/cjs/ontario-icon-clock.cjs.entry.js +3 -3
  15. package/dist/cjs/ontario-icon-close-header.cjs.entry.js +3 -3
  16. package/dist/cjs/ontario-icon-close.cjs.entry.js +3 -3
  17. package/dist/cjs/ontario-icon-cloud.cjs.entry.js +3 -3
  18. package/dist/cjs/ontario-icon-collapse.cjs.entry.js +3 -3
  19. package/dist/cjs/ontario-icon-credit-card.cjs.entry.js +3 -3
  20. package/dist/cjs/ontario-icon-critical-alert-warning.cjs.entry.js +5 -5
  21. package/dist/cjs/ontario-icon-delete.cjs.entry.js +3 -3
  22. package/dist/cjs/ontario-icon-document.cjs.entry.js +3 -3
  23. package/dist/cjs/ontario-icon-download.cjs.entry.js +3 -3
  24. package/dist/cjs/ontario-icon-dropdown-arrow.cjs.entry.js +3 -3
  25. package/dist/cjs/ontario-icon-edit.cjs.entry.js +3 -3
  26. package/dist/cjs/ontario-icon-expand.cjs.entry.js +3 -3
  27. package/dist/cjs/ontario-icon-export.cjs.entry.js +3 -3
  28. package/dist/cjs/ontario-icon-facebook-alt.cjs.entry.js +3 -3
  29. package/dist/cjs/ontario-icon-facebook.cjs.entry.js +3 -3
  30. package/dist/cjs/ontario-icon-favourite-off.cjs.entry.js +3 -3
  31. package/dist/cjs/ontario-icon-favourite-on.cjs.entry.js +3 -3
  32. package/dist/cjs/ontario-icon-filter.cjs.entry.js +3 -3
  33. package/dist/cjs/ontario-icon-flickr.cjs.entry.js +3 -3
  34. package/dist/cjs/ontario-icon-grid.cjs.entry.js +3 -3
  35. package/dist/cjs/ontario-icon-instagram.cjs.entry.js +3 -3
  36. package/dist/cjs/ontario-icon-interac-en-alt.cjs.entry.js +19 -19
  37. package/dist/cjs/ontario-icon-interac-en.cjs.entry.js +18 -18
  38. package/dist/cjs/ontario-icon-interac-fr-alt.cjs.entry.js +19 -19
  39. package/dist/cjs/ontario-icon-interac-fr.cjs.entry.js +12 -12
  40. package/dist/cjs/ontario-icon-linkedin-alt.cjs.entry.js +3 -3
  41. package/dist/cjs/ontario-icon-linkedin.cjs.entry.js +3 -3
  42. package/dist/cjs/ontario-icon-list.cjs.entry.js +3 -3
  43. package/dist/cjs/ontario-icon-live-chat.cjs.entry.js +3 -3
  44. package/dist/cjs/ontario-icon-location-off.cjs.entry.js +3 -3
  45. package/dist/cjs/ontario-icon-location-on.cjs.entry.js +3 -3
  46. package/dist/cjs/ontario-icon-lock-off.cjs.entry.js +3 -3
  47. package/dist/cjs/ontario-icon-lock-on.cjs.entry.js +3 -3
  48. package/dist/cjs/ontario-icon-map.cjs.entry.js +3 -3
  49. package/dist/cjs/ontario-icon-mastercard-alt.cjs.entry.js +6 -6
  50. package/dist/cjs/ontario-icon-media-fast-forward.cjs.entry.js +3 -3
  51. package/dist/cjs/ontario-icon-media-fast-rewind.cjs.entry.js +3 -3
  52. package/dist/cjs/ontario-icon-media-pause.cjs.entry.js +3 -3
  53. package/dist/cjs/ontario-icon-media-play.cjs.entry.js +3 -3
  54. package/dist/cjs/ontario-icon-media-stop.cjs.entry.js +3 -3
  55. package/dist/cjs/ontario-icon-menu-header.cjs.entry.js +3 -3
  56. package/dist/cjs/ontario-icon-menu.cjs.entry.js +3 -3
  57. package/dist/cjs/ontario-icon-microphone-off.cjs.entry.js +3 -3
  58. package/dist/cjs/ontario-icon-microphone-on.cjs.entry.js +3 -3
  59. package/dist/cjs/ontario-icon-more-vertical.cjs.entry.js +3 -3
  60. package/dist/cjs/ontario-icon-new-window.cjs.entry.js +3 -3
  61. package/dist/cjs/ontario-icon-next.cjs.entry.js +3 -3
  62. package/dist/cjs/ontario-icon-password-hide.cjs.entry.js +3 -3
  63. package/dist/cjs/ontario-icon-password-show.cjs.entry.js +3 -3
  64. package/dist/cjs/ontario-icon-phone.cjs.entry.js +3 -3
  65. package/dist/cjs/ontario-icon-photo.cjs.entry.js +3 -3
  66. package/dist/cjs/ontario-icon-pin-location-off.cjs.entry.js +3 -3
  67. package/dist/cjs/ontario-icon-pin-location-on.cjs.entry.js +3 -3
  68. package/dist/cjs/ontario-icon-previous.cjs.entry.js +3 -3
  69. package/dist/cjs/ontario-icon-remove-alt.cjs.entry.js +3 -3
  70. package/dist/cjs/ontario-icon-remove.cjs.entry.js +3 -3
  71. package/dist/cjs/ontario-icon-replay.cjs.entry.js +3 -3
  72. package/dist/cjs/ontario-icon-rss-feed.cjs.entry.js +3 -3
  73. package/dist/cjs/ontario-icon-save.cjs.entry.js +3 -3
  74. package/dist/cjs/ontario-icon-search-white.cjs.entry.js +3 -3
  75. package/dist/cjs/ontario-icon-search.cjs.entry.js +3 -3
  76. package/dist/cjs/ontario-icon-sentiment-1.cjs.entry.js +3 -3
  77. package/dist/cjs/ontario-icon-sentiment-2.cjs.entry.js +3 -3
  78. package/dist/cjs/ontario-icon-sentiment-3.cjs.entry.js +3 -3
  79. package/dist/cjs/ontario-icon-sentiment-4.cjs.entry.js +3 -3
  80. package/dist/cjs/ontario-icon-settings.cjs.entry.js +3 -3
  81. package/dist/cjs/ontario-icon-share.cjs.entry.js +3 -3
  82. package/dist/cjs/ontario-icon-sort.cjs.entry.js +3 -3
  83. package/dist/cjs/ontario-icon-tag.cjs.entry.js +3 -3
  84. package/dist/cjs/ontario-icon-timer.cjs.entry.js +3 -3
  85. package/dist/cjs/ontario-icon-transport-bicycle.cjs.entry.js +3 -3
  86. package/dist/cjs/ontario-icon-transport-car.cjs.entry.js +3 -3
  87. package/dist/cjs/ontario-icon-transport-walk.cjs.entry.js +3 -3
  88. package/dist/cjs/ontario-icon-tty.cjs.entry.js +3 -3
  89. package/dist/cjs/ontario-icon-twitter-alt.cjs.entry.js +3 -3
  90. package/dist/cjs/ontario-icon-twitter.cjs.entry.js +3 -3
  91. package/dist/cjs/ontario-icon-upload.cjs.entry.js +3 -3
  92. package/dist/cjs/ontario-icon-video.cjs.entry.js +3 -3
  93. package/dist/cjs/ontario-icon-visa.cjs.entry.js +5 -5
  94. package/dist/cjs/ontario-icon-vote-dislike.cjs.entry.js +3 -3
  95. package/dist/cjs/ontario-icon-vote-like.cjs.entry.js +3 -3
  96. package/dist/cjs/ontario-icon-vpn-key.cjs.entry.js +3 -3
  97. package/dist/cjs/ontario-icon-wheelchair.cjs.entry.js +3 -3
  98. package/dist/cjs/ontario-icon-wifi.cjs.entry.js +3 -3
  99. package/dist/cjs/ontario-icon-youtube.cjs.entry.js +3 -3
  100. package/dist/collection/components/ontario-aside/ontario-aside.js +18 -37
  101. package/dist/collection/components/ontario-aside/ontario-aside.js.map +1 -1
  102. package/dist/collection/components/ontario-aside/test/ontario-aside.spec.js +35 -0
  103. package/dist/collection/components/ontario-aside/test/ontario-aside.spec.js.map +1 -1
  104. package/dist/collection/components/ontario-callout/ontario-callout.js +16 -36
  105. package/dist/collection/components/ontario-callout/ontario-callout.js.map +1 -1
  106. package/dist/collection/components/ontario-callout/test/ontario-callout.spec.js +18 -0
  107. package/dist/collection/components/ontario-callout/test/ontario-callout.spec.js.map +1 -1
  108. package/dist/collection/components/ontario-card/ontario-card.css +5 -0
  109. package/dist/collection/components/ontario-card-collection/ontario-card-collection.css +3 -0
  110. package/dist/collection/components/ontario-checkbox/ontario-checkboxes.css +113 -22
  111. package/dist/collection/components/ontario-checkbox/ontario-checkboxes.js +52 -3
  112. package/dist/collection/components/ontario-checkbox/ontario-checkboxes.js.map +1 -1
  113. package/dist/collection/components/ontario-checkbox/test/ontario-checkboxes.spec.js +4 -0
  114. package/dist/collection/components/ontario-checkbox/test/ontario-checkboxes.spec.js.map +1 -1
  115. package/dist/collection/components/ontario-critical-alert/ontario-critical-alert.js +6 -6
  116. package/dist/collection/components/ontario-date-input/ontario-date-input.css +4 -0
  117. package/dist/collection/components/ontario-date-input/ontario-date-input.js +4 -4
  118. package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.css +28 -0
  119. package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.js +51 -2
  120. package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.js.map +1 -1
  121. package/dist/collection/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.js +4 -0
  122. package/dist/collection/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.js.map +1 -1
  123. package/dist/collection/components/ontario-fieldset/ontario-fieldset.css +4 -0
  124. package/dist/collection/components/ontario-fieldset/ontario-fieldset.js +4 -4
  125. package/dist/collection/components/ontario-footer/components/expanded-footer-wrapper.js.map +1 -1
  126. package/dist/collection/components/ontario-header/ontario-header.css +5 -1
  127. package/dist/collection/components/ontario-hint-expander/ontario-hint-expander.js +7 -7
  128. package/dist/collection/components/ontario-icon/ontario-icon-accessibility.js +3 -3
  129. package/dist/collection/components/ontario-icon/ontario-icon-account.js +3 -3
  130. package/dist/collection/components/ontario-icon/ontario-icon-add-alt.js +3 -3
  131. package/dist/collection/components/ontario-icon/ontario-icon-add.js +3 -3
  132. package/dist/collection/components/ontario-icon/ontario-icon-alert-error.js +4 -4
  133. package/dist/collection/components/ontario-icon/ontario-icon-alert-information.js +4 -4
  134. package/dist/collection/components/ontario-icon/ontario-icon-alert-success.js +4 -4
  135. package/dist/collection/components/ontario-icon/ontario-icon-alert-warning.js +4 -4
  136. package/dist/collection/components/ontario-icon/ontario-icon-arrow-up.js +4 -4
  137. package/dist/collection/components/ontario-icon/ontario-icon-attach.js +3 -3
  138. package/dist/collection/components/ontario-icon/ontario-icon-bookmark-off.js +3 -3
  139. package/dist/collection/components/ontario-icon/ontario-icon-bookmark-on.js +3 -3
  140. package/dist/collection/components/ontario-icon/ontario-icon-calendar.js +3 -3
  141. package/dist/collection/components/ontario-icon/ontario-icon-camera.js +3 -3
  142. package/dist/collection/components/ontario-icon/ontario-icon-chevron-down.js +3 -3
  143. package/dist/collection/components/ontario-icon/ontario-icon-chevron-left.js +3 -3
  144. package/dist/collection/components/ontario-icon/ontario-icon-chevron-right.js +3 -3
  145. package/dist/collection/components/ontario-icon/ontario-icon-chevron-up.js +3 -3
  146. package/dist/collection/components/ontario-icon/ontario-icon-clock.js +3 -3
  147. package/dist/collection/components/ontario-icon/ontario-icon-close-header.js +3 -3
  148. package/dist/collection/components/ontario-icon/ontario-icon-close.js +3 -3
  149. package/dist/collection/components/ontario-icon/ontario-icon-cloud.js +3 -3
  150. package/dist/collection/components/ontario-icon/ontario-icon-collapse.js +3 -3
  151. package/dist/collection/components/ontario-icon/ontario-icon-credit-card.js +3 -3
  152. package/dist/collection/components/ontario-icon/ontario-icon-critical-alert-warning.js +5 -5
  153. package/dist/collection/components/ontario-icon/ontario-icon-delete.js +3 -3
  154. package/dist/collection/components/ontario-icon/ontario-icon-document.js +3 -3
  155. package/dist/collection/components/ontario-icon/ontario-icon-download.js +3 -3
  156. package/dist/collection/components/ontario-icon/ontario-icon-dropdown-arrow.js +3 -3
  157. package/dist/collection/components/ontario-icon/ontario-icon-edit.js +3 -3
  158. package/dist/collection/components/ontario-icon/ontario-icon-email.js +3 -3
  159. package/dist/collection/components/ontario-icon/ontario-icon-expand.js +3 -3
  160. package/dist/collection/components/ontario-icon/ontario-icon-export.js +3 -3
  161. package/dist/collection/components/ontario-icon/ontario-icon-facebook-alt.js +3 -3
  162. package/dist/collection/components/ontario-icon/ontario-icon-facebook.js +3 -3
  163. package/dist/collection/components/ontario-icon/ontario-icon-favourite-off.js +3 -3
  164. package/dist/collection/components/ontario-icon/ontario-icon-favourite-on.js +3 -3
  165. package/dist/collection/components/ontario-icon/ontario-icon-filter.js +3 -3
  166. package/dist/collection/components/ontario-icon/ontario-icon-flickr.js +3 -3
  167. package/dist/collection/components/ontario-icon/ontario-icon-grid.js +3 -3
  168. package/dist/collection/components/ontario-icon/ontario-icon-help.js +3 -3
  169. package/dist/collection/components/ontario-icon/ontario-icon-instagram.js +3 -3
  170. package/dist/collection/components/ontario-icon/ontario-icon-interac-en-alt.js +19 -19
  171. package/dist/collection/components/ontario-icon/ontario-icon-interac-en.js +18 -18
  172. package/dist/collection/components/ontario-icon/ontario-icon-interac-fr-alt.js +19 -19
  173. package/dist/collection/components/ontario-icon/ontario-icon-interac-fr.js +12 -12
  174. package/dist/collection/components/ontario-icon/ontario-icon-linkedin-alt.js +3 -3
  175. package/dist/collection/components/ontario-icon/ontario-icon-linkedin.js +3 -3
  176. package/dist/collection/components/ontario-icon/ontario-icon-list.js +3 -3
  177. package/dist/collection/components/ontario-icon/ontario-icon-live-chat.js +3 -3
  178. package/dist/collection/components/ontario-icon/ontario-icon-location-off.js +3 -3
  179. package/dist/collection/components/ontario-icon/ontario-icon-location-on.js +3 -3
  180. package/dist/collection/components/ontario-icon/ontario-icon-lock-off.js +3 -3
  181. package/dist/collection/components/ontario-icon/ontario-icon-lock-on.js +3 -3
  182. package/dist/collection/components/ontario-icon/ontario-icon-map.js +3 -3
  183. package/dist/collection/components/ontario-icon/ontario-icon-mastercard-alt.js +6 -6
  184. package/dist/collection/components/ontario-icon/ontario-icon-mastercard.js +9 -9
  185. package/dist/collection/components/ontario-icon/ontario-icon-media-fast-forward.js +3 -3
  186. package/dist/collection/components/ontario-icon/ontario-icon-media-fast-rewind.js +3 -3
  187. package/dist/collection/components/ontario-icon/ontario-icon-media-pause.js +3 -3
  188. package/dist/collection/components/ontario-icon/ontario-icon-media-play.js +3 -3
  189. package/dist/collection/components/ontario-icon/ontario-icon-media-stop.js +3 -3
  190. package/dist/collection/components/ontario-icon/ontario-icon-menu-header.js +3 -3
  191. package/dist/collection/components/ontario-icon/ontario-icon-menu.js +3 -3
  192. package/dist/collection/components/ontario-icon/ontario-icon-microphone-off.js +3 -3
  193. package/dist/collection/components/ontario-icon/ontario-icon-microphone-on.js +3 -3
  194. package/dist/collection/components/ontario-icon/ontario-icon-more-vertical.js +3 -3
  195. package/dist/collection/components/ontario-icon/ontario-icon-new-window.js +3 -3
  196. package/dist/collection/components/ontario-icon/ontario-icon-next.js +3 -3
  197. package/dist/collection/components/ontario-icon/ontario-icon-notification.js +3 -3
  198. package/dist/collection/components/ontario-icon/ontario-icon-password-hide.js +3 -3
  199. package/dist/collection/components/ontario-icon/ontario-icon-password-show.js +3 -3
  200. package/dist/collection/components/ontario-icon/ontario-icon-phone.js +3 -3
  201. package/dist/collection/components/ontario-icon/ontario-icon-photo.js +3 -3
  202. package/dist/collection/components/ontario-icon/ontario-icon-pin-location-off.js +3 -3
  203. package/dist/collection/components/ontario-icon/ontario-icon-pin-location-on.js +3 -3
  204. package/dist/collection/components/ontario-icon/ontario-icon-previous.js +3 -3
  205. package/dist/collection/components/ontario-icon/ontario-icon-print.js +3 -3
  206. package/dist/collection/components/ontario-icon/ontario-icon-remove-alt.js +3 -3
  207. package/dist/collection/components/ontario-icon/ontario-icon-remove.js +3 -3
  208. package/dist/collection/components/ontario-icon/ontario-icon-replay.js +3 -3
  209. package/dist/collection/components/ontario-icon/ontario-icon-rss-feed.js +3 -3
  210. package/dist/collection/components/ontario-icon/ontario-icon-save.js +3 -3
  211. package/dist/collection/components/ontario-icon/ontario-icon-search-white.js +3 -3
  212. package/dist/collection/components/ontario-icon/ontario-icon-search.js +3 -3
  213. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-1.js +3 -3
  214. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-2.js +3 -3
  215. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-3.js +3 -3
  216. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-4.js +3 -3
  217. package/dist/collection/components/ontario-icon/ontario-icon-sentiment-5.js +3 -3
  218. package/dist/collection/components/ontario-icon/ontario-icon-settings.js +3 -3
  219. package/dist/collection/components/ontario-icon/ontario-icon-share.js +3 -3
  220. package/dist/collection/components/ontario-icon/ontario-icon-sort.js +3 -3
  221. package/dist/collection/components/ontario-icon/ontario-icon-tag.js +3 -3
  222. package/dist/collection/components/ontario-icon/ontario-icon-text-message.js +3 -3
  223. package/dist/collection/components/ontario-icon/ontario-icon-timer.js +3 -3
  224. package/dist/collection/components/ontario-icon/ontario-icon-transport-bicycle.js +3 -3
  225. package/dist/collection/components/ontario-icon/ontario-icon-transport-bus.js +3 -3
  226. package/dist/collection/components/ontario-icon/ontario-icon-transport-car.js +3 -3
  227. package/dist/collection/components/ontario-icon/ontario-icon-transport-walk.js +3 -3
  228. package/dist/collection/components/ontario-icon/ontario-icon-tty.js +3 -3
  229. package/dist/collection/components/ontario-icon/ontario-icon-twitter-alt.js +3 -3
  230. package/dist/collection/components/ontario-icon/ontario-icon-twitter.js +3 -3
  231. package/dist/collection/components/ontario-icon/ontario-icon-upload.js +3 -3
  232. package/dist/collection/components/ontario-icon/ontario-icon-video.js +3 -3
  233. package/dist/collection/components/ontario-icon/ontario-icon-visa.js +5 -5
  234. package/dist/collection/components/ontario-icon/ontario-icon-vote-dislike.js +3 -3
  235. package/dist/collection/components/ontario-icon/ontario-icon-vote-like.js +3 -3
  236. package/dist/collection/components/ontario-icon/ontario-icon-vpn-key.js +3 -3
  237. package/dist/collection/components/ontario-icon/ontario-icon-wheelchair.js +3 -3
  238. package/dist/collection/components/ontario-icon/ontario-icon-wifi.js +3 -3
  239. package/dist/collection/components/ontario-icon/ontario-icon-youtube.js +3 -3
  240. package/dist/collection/components/ontario-input/ontario-input.css +4 -0
  241. package/dist/collection/components/ontario-input/ontario-input.js +3 -3
  242. package/dist/collection/components/ontario-language-toggle/ontario-language-toggle.js +1 -1
  243. package/dist/collection/components/ontario-page-alert/ontario-page-alert.js +5 -5
  244. package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.css +77 -1
  245. package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.js +56 -3
  246. package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.js.map +1 -1
  247. package/dist/collection/components/ontario-radio-buttons/test/ontario-radio-button.spec.js +6 -1
  248. package/dist/collection/components/ontario-radio-buttons/test/ontario-radio-button.spec.js.map +1 -1
  249. package/dist/collection/components/ontario-step-indicator/ontario-step-indicator.js +5 -5
  250. package/dist/collection/components/ontario-table/ontario-table.js +5 -5
  251. package/dist/collection/components/ontario-textarea/ontario-textarea.css +28 -0
  252. package/dist/collection/components/ontario-textarea/ontario-textarea.js +54 -2
  253. package/dist/collection/components/ontario-textarea/ontario-textarea.js.map +1 -1
  254. package/dist/collection/components/ontario-textarea/test/ontario-textarea.spec.js +4 -0
  255. package/dist/collection/components/ontario-textarea/test/ontario-textarea.spec.js.map +1 -1
  256. package/dist/collection/utils/components/callout-aside/callout-aside-helpers.js +4 -4
  257. package/dist/collection/utils/components/callout-aside/callout-aside-helpers.js.map +1 -1
  258. package/dist/collection/utils/components/callout-aside/callout-aside.interface.js.map +1 -1
  259. package/dist/components/callout-aside-helpers.js +4 -4
  260. package/dist/components/callout-aside-helpers.js.map +1 -1
  261. package/dist/components/error-message.js +324 -1
  262. package/dist/components/error-message.js.map +1 -1
  263. package/dist/components/ontario-aside.js +13 -31
  264. package/dist/components/ontario-aside.js.map +1 -1
  265. package/dist/components/ontario-callout.js +12 -30
  266. package/dist/components/ontario-callout.js.map +1 -1
  267. package/dist/components/ontario-card-collection.js +1 -1
  268. package/dist/components/ontario-card-collection.js.map +1 -1
  269. package/dist/components/ontario-card.js +1 -1
  270. package/dist/components/ontario-card.js.map +1 -1
  271. package/dist/components/ontario-checkboxes.js +34 -8
  272. package/dist/components/ontario-checkboxes.js.map +1 -1
  273. package/dist/components/ontario-critical-alert.js +6 -6
  274. package/dist/components/ontario-date-input.js +6 -7
  275. package/dist/components/ontario-date-input.js.map +1 -1
  276. package/dist/components/ontario-dropdown-list.js +29 -7
  277. package/dist/components/ontario-dropdown-list.js.map +1 -1
  278. package/dist/components/ontario-fieldset.js +5 -5
  279. package/dist/components/ontario-fieldset.js.map +1 -1
  280. package/dist/components/ontario-footer.js.map +1 -1
  281. package/dist/components/ontario-header.js +1 -1
  282. package/dist/components/ontario-header.js.map +1 -1
  283. package/dist/components/ontario-hint-expander2.js +7 -7
  284. package/dist/components/ontario-icon-accessibility.js +3 -3
  285. package/dist/components/ontario-icon-account.js +3 -3
  286. package/dist/components/ontario-icon-add-alt.js +3 -3
  287. package/dist/components/ontario-icon-add.js +3 -3
  288. package/dist/components/ontario-icon-alert-error2.js +4 -4
  289. package/dist/components/ontario-icon-alert-information2.js +4 -4
  290. package/dist/components/ontario-icon-alert-success2.js +4 -4
  291. package/dist/components/ontario-icon-alert-warning2.js +4 -4
  292. package/dist/components/ontario-icon-arrow-up.js +4 -4
  293. package/dist/components/ontario-icon-attach.js +3 -3
  294. package/dist/components/ontario-icon-bookmark-off.js +3 -3
  295. package/dist/components/ontario-icon-bookmark-on.js +3 -3
  296. package/dist/components/ontario-icon-calendar.js +3 -3
  297. package/dist/components/ontario-icon-camera.js +3 -3
  298. package/dist/components/ontario-icon-chevron-down2.js +3 -3
  299. package/dist/components/ontario-icon-chevron-left2.js +3 -3
  300. package/dist/components/ontario-icon-chevron-right.js +3 -3
  301. package/dist/components/ontario-icon-chevron-up2.js +3 -3
  302. package/dist/components/ontario-icon-clock.js +3 -3
  303. package/dist/components/ontario-icon-close-header.js +3 -3
  304. package/dist/components/ontario-icon-close.js +3 -3
  305. package/dist/components/ontario-icon-cloud.js +3 -3
  306. package/dist/components/ontario-icon-collapse.js +3 -3
  307. package/dist/components/ontario-icon-credit-card.js +3 -3
  308. package/dist/components/ontario-icon-critical-alert-warning.js +5 -5
  309. package/dist/components/ontario-icon-delete.js +3 -3
  310. package/dist/components/ontario-icon-document.js +3 -3
  311. package/dist/components/ontario-icon-download.js +3 -3
  312. package/dist/components/ontario-icon-dropdown-arrow.js +3 -3
  313. package/dist/components/ontario-icon-edit.js +3 -3
  314. package/dist/components/ontario-icon-email.js +3 -3
  315. package/dist/components/ontario-icon-expand.js +3 -3
  316. package/dist/components/ontario-icon-export.js +3 -3
  317. package/dist/components/ontario-icon-facebook-alt.js +3 -3
  318. package/dist/components/ontario-icon-facebook.js +3 -3
  319. package/dist/components/ontario-icon-favourite-off.js +3 -3
  320. package/dist/components/ontario-icon-favourite-on.js +3 -3
  321. package/dist/components/ontario-icon-filter.js +3 -3
  322. package/dist/components/ontario-icon-flickr.js +3 -3
  323. package/dist/components/ontario-icon-grid.js +3 -3
  324. package/dist/components/ontario-icon-help.js +3 -3
  325. package/dist/components/ontario-icon-instagram.js +3 -3
  326. package/dist/components/ontario-icon-interac-en-alt.js +19 -19
  327. package/dist/components/ontario-icon-interac-en.js +18 -18
  328. package/dist/components/ontario-icon-interac-fr-alt.js +19 -19
  329. package/dist/components/ontario-icon-interac-fr.js +12 -12
  330. package/dist/components/ontario-icon-linkedin-alt.js +3 -3
  331. package/dist/components/ontario-icon-linkedin.js +3 -3
  332. package/dist/components/ontario-icon-list.js +3 -3
  333. package/dist/components/ontario-icon-live-chat.js +3 -3
  334. package/dist/components/ontario-icon-location-off.js +3 -3
  335. package/dist/components/ontario-icon-location-on.js +3 -3
  336. package/dist/components/ontario-icon-lock-off.js +3 -3
  337. package/dist/components/ontario-icon-lock-on.js +3 -3
  338. package/dist/components/ontario-icon-map.js +3 -3
  339. package/dist/components/ontario-icon-mastercard-alt.js +6 -6
  340. package/dist/components/ontario-icon-mastercard.js +9 -9
  341. package/dist/components/ontario-icon-media-fast-forward.js +3 -3
  342. package/dist/components/ontario-icon-media-fast-rewind.js +3 -3
  343. package/dist/components/ontario-icon-media-pause.js +3 -3
  344. package/dist/components/ontario-icon-media-play.js +3 -3
  345. package/dist/components/ontario-icon-media-stop.js +3 -3
  346. package/dist/components/ontario-icon-menu-header.js +3 -3
  347. package/dist/components/ontario-icon-menu.js +3 -3
  348. package/dist/components/ontario-icon-microphone-off.js +3 -3
  349. package/dist/components/ontario-icon-microphone-on.js +3 -3
  350. package/dist/components/ontario-icon-more-vertical.js +3 -3
  351. package/dist/components/ontario-icon-new-window.js +3 -3
  352. package/dist/components/ontario-icon-next.js +3 -3
  353. package/dist/components/ontario-icon-notification.js +3 -3
  354. package/dist/components/ontario-icon-password-hide.js +3 -3
  355. package/dist/components/ontario-icon-password-show.js +3 -3
  356. package/dist/components/ontario-icon-phone.js +3 -3
  357. package/dist/components/ontario-icon-photo.js +3 -3
  358. package/dist/components/ontario-icon-pin-location-off.js +3 -3
  359. package/dist/components/ontario-icon-pin-location-on.js +3 -3
  360. package/dist/components/ontario-icon-previous.js +3 -3
  361. package/dist/components/ontario-icon-print.js +3 -3
  362. package/dist/components/ontario-icon-remove-alt.js +3 -3
  363. package/dist/components/ontario-icon-remove.js +3 -3
  364. package/dist/components/ontario-icon-replay.js +3 -3
  365. package/dist/components/ontario-icon-rss-feed.js +3 -3
  366. package/dist/components/ontario-icon-save.js +3 -3
  367. package/dist/components/ontario-icon-search-white.js +3 -3
  368. package/dist/components/ontario-icon-search.js +3 -3
  369. package/dist/components/ontario-icon-sentiment-1.js +3 -3
  370. package/dist/components/ontario-icon-sentiment-2.js +3 -3
  371. package/dist/components/ontario-icon-sentiment-3.js +3 -3
  372. package/dist/components/ontario-icon-sentiment-4.js +3 -3
  373. package/dist/components/ontario-icon-sentiment-5.js +3 -3
  374. package/dist/components/ontario-icon-settings.js +3 -3
  375. package/dist/components/ontario-icon-share.js +3 -3
  376. package/dist/components/ontario-icon-sort.js +3 -3
  377. package/dist/components/ontario-icon-tag.js +3 -3
  378. package/dist/components/ontario-icon-text-message.js +3 -3
  379. package/dist/components/ontario-icon-timer.js +3 -3
  380. package/dist/components/ontario-icon-transport-bicycle.js +3 -3
  381. package/dist/components/ontario-icon-transport-bus.js +3 -3
  382. package/dist/components/ontario-icon-transport-car.js +3 -3
  383. package/dist/components/ontario-icon-transport-walk.js +3 -3
  384. package/dist/components/ontario-icon-tty.js +3 -3
  385. package/dist/components/ontario-icon-twitter-alt.js +3 -3
  386. package/dist/components/ontario-icon-twitter.js +3 -3
  387. package/dist/components/ontario-icon-upload.js +3 -3
  388. package/dist/components/ontario-icon-video.js +3 -3
  389. package/dist/components/ontario-icon-visa.js +5 -5
  390. package/dist/components/ontario-icon-vote-dislike.js +3 -3
  391. package/dist/components/ontario-icon-vote-like.js +3 -3
  392. package/dist/components/ontario-icon-vpn-key.js +3 -3
  393. package/dist/components/ontario-icon-wheelchair.js +3 -3
  394. package/dist/components/ontario-icon-wifi.js +3 -3
  395. package/dist/components/ontario-icon-youtube.js +3 -3
  396. package/dist/components/ontario-input.js +5 -6
  397. package/dist/components/ontario-input.js.map +1 -1
  398. package/dist/components/ontario-language-toggle2.js +1 -1
  399. package/dist/components/ontario-page-alert.js +5 -5
  400. package/dist/components/ontario-radio-buttons.js +34 -8
  401. package/dist/components/ontario-radio-buttons.js.map +1 -1
  402. package/dist/components/ontario-step-indicator.js +5 -5
  403. package/dist/components/ontario-table.js +5 -5
  404. package/dist/components/ontario-textarea.js +32 -7
  405. package/dist/components/ontario-textarea.js.map +1 -1
  406. package/dist/esm/loader.js +1 -1
  407. package/dist/esm/ontario-accordion_42.entry.js +274 -249
  408. package/dist/esm/ontario-accordion_42.entry.js.map +1 -1
  409. package/dist/esm/ontario-design-system-components.js +1 -1
  410. package/dist/esm/ontario-icon-account.entry.js +3 -3
  411. package/dist/esm/ontario-icon-add-alt.entry.js +3 -3
  412. package/dist/esm/ontario-icon-add.entry.js +3 -3
  413. package/dist/esm/ontario-icon-arrow-up.entry.js +4 -4
  414. package/dist/esm/ontario-icon-attach.entry.js +3 -3
  415. package/dist/esm/ontario-icon-bookmark-off.entry.js +3 -3
  416. package/dist/esm/ontario-icon-bookmark-on.entry.js +3 -3
  417. package/dist/esm/ontario-icon-calendar.entry.js +3 -3
  418. package/dist/esm/ontario-icon-chevron-right.entry.js +3 -3
  419. package/dist/esm/ontario-icon-clock.entry.js +3 -3
  420. package/dist/esm/ontario-icon-close-header.entry.js +3 -3
  421. package/dist/esm/ontario-icon-close.entry.js +3 -3
  422. package/dist/esm/ontario-icon-cloud.entry.js +3 -3
  423. package/dist/esm/ontario-icon-collapse.entry.js +3 -3
  424. package/dist/esm/ontario-icon-credit-card.entry.js +3 -3
  425. package/dist/esm/ontario-icon-critical-alert-warning.entry.js +5 -5
  426. package/dist/esm/ontario-icon-delete.entry.js +3 -3
  427. package/dist/esm/ontario-icon-document.entry.js +3 -3
  428. package/dist/esm/ontario-icon-download.entry.js +3 -3
  429. package/dist/esm/ontario-icon-dropdown-arrow.entry.js +3 -3
  430. package/dist/esm/ontario-icon-edit.entry.js +3 -3
  431. package/dist/esm/ontario-icon-expand.entry.js +3 -3
  432. package/dist/esm/ontario-icon-export.entry.js +3 -3
  433. package/dist/esm/ontario-icon-facebook-alt.entry.js +3 -3
  434. package/dist/esm/ontario-icon-facebook.entry.js +3 -3
  435. package/dist/esm/ontario-icon-favourite-off.entry.js +3 -3
  436. package/dist/esm/ontario-icon-favourite-on.entry.js +3 -3
  437. package/dist/esm/ontario-icon-filter.entry.js +3 -3
  438. package/dist/esm/ontario-icon-flickr.entry.js +3 -3
  439. package/dist/esm/ontario-icon-grid.entry.js +3 -3
  440. package/dist/esm/ontario-icon-instagram.entry.js +3 -3
  441. package/dist/esm/ontario-icon-interac-en-alt.entry.js +19 -19
  442. package/dist/esm/ontario-icon-interac-en.entry.js +18 -18
  443. package/dist/esm/ontario-icon-interac-fr-alt.entry.js +19 -19
  444. package/dist/esm/ontario-icon-interac-fr.entry.js +12 -12
  445. package/dist/esm/ontario-icon-linkedin-alt.entry.js +3 -3
  446. package/dist/esm/ontario-icon-linkedin.entry.js +3 -3
  447. package/dist/esm/ontario-icon-list.entry.js +3 -3
  448. package/dist/esm/ontario-icon-live-chat.entry.js +3 -3
  449. package/dist/esm/ontario-icon-location-off.entry.js +3 -3
  450. package/dist/esm/ontario-icon-location-on.entry.js +3 -3
  451. package/dist/esm/ontario-icon-lock-off.entry.js +3 -3
  452. package/dist/esm/ontario-icon-lock-on.entry.js +3 -3
  453. package/dist/esm/ontario-icon-map.entry.js +3 -3
  454. package/dist/esm/ontario-icon-mastercard-alt.entry.js +6 -6
  455. package/dist/esm/ontario-icon-media-fast-forward.entry.js +3 -3
  456. package/dist/esm/ontario-icon-media-fast-rewind.entry.js +3 -3
  457. package/dist/esm/ontario-icon-media-pause.entry.js +3 -3
  458. package/dist/esm/ontario-icon-media-play.entry.js +3 -3
  459. package/dist/esm/ontario-icon-media-stop.entry.js +3 -3
  460. package/dist/esm/ontario-icon-menu-header.entry.js +3 -3
  461. package/dist/esm/ontario-icon-menu.entry.js +3 -3
  462. package/dist/esm/ontario-icon-microphone-off.entry.js +3 -3
  463. package/dist/esm/ontario-icon-microphone-on.entry.js +3 -3
  464. package/dist/esm/ontario-icon-more-vertical.entry.js +3 -3
  465. package/dist/esm/ontario-icon-new-window.entry.js +3 -3
  466. package/dist/esm/ontario-icon-next.entry.js +3 -3
  467. package/dist/esm/ontario-icon-password-hide.entry.js +3 -3
  468. package/dist/esm/ontario-icon-password-show.entry.js +3 -3
  469. package/dist/esm/ontario-icon-phone.entry.js +3 -3
  470. package/dist/esm/ontario-icon-photo.entry.js +3 -3
  471. package/dist/esm/ontario-icon-pin-location-off.entry.js +3 -3
  472. package/dist/esm/ontario-icon-pin-location-on.entry.js +3 -3
  473. package/dist/esm/ontario-icon-previous.entry.js +3 -3
  474. package/dist/esm/ontario-icon-remove-alt.entry.js +3 -3
  475. package/dist/esm/ontario-icon-remove.entry.js +3 -3
  476. package/dist/esm/ontario-icon-replay.entry.js +3 -3
  477. package/dist/esm/ontario-icon-rss-feed.entry.js +3 -3
  478. package/dist/esm/ontario-icon-save.entry.js +3 -3
  479. package/dist/esm/ontario-icon-search-white.entry.js +3 -3
  480. package/dist/esm/ontario-icon-search.entry.js +3 -3
  481. package/dist/esm/ontario-icon-sentiment-1.entry.js +3 -3
  482. package/dist/esm/ontario-icon-sentiment-2.entry.js +3 -3
  483. package/dist/esm/ontario-icon-sentiment-3.entry.js +3 -3
  484. package/dist/esm/ontario-icon-sentiment-4.entry.js +3 -3
  485. package/dist/esm/ontario-icon-settings.entry.js +3 -3
  486. package/dist/esm/ontario-icon-share.entry.js +3 -3
  487. package/dist/esm/ontario-icon-sort.entry.js +3 -3
  488. package/dist/esm/ontario-icon-tag.entry.js +3 -3
  489. package/dist/esm/ontario-icon-timer.entry.js +3 -3
  490. package/dist/esm/ontario-icon-transport-bicycle.entry.js +3 -3
  491. package/dist/esm/ontario-icon-transport-car.entry.js +3 -3
  492. package/dist/esm/ontario-icon-transport-walk.entry.js +3 -3
  493. package/dist/esm/ontario-icon-tty.entry.js +3 -3
  494. package/dist/esm/ontario-icon-twitter-alt.entry.js +3 -3
  495. package/dist/esm/ontario-icon-twitter.entry.js +3 -3
  496. package/dist/esm/ontario-icon-upload.entry.js +3 -3
  497. package/dist/esm/ontario-icon-video.entry.js +3 -3
  498. package/dist/esm/ontario-icon-visa.entry.js +5 -5
  499. package/dist/esm/ontario-icon-vote-dislike.entry.js +3 -3
  500. package/dist/esm/ontario-icon-vote-like.entry.js +3 -3
  501. package/dist/esm/ontario-icon-vpn-key.entry.js +3 -3
  502. package/dist/esm/ontario-icon-wheelchair.entry.js +3 -3
  503. package/dist/esm/ontario-icon-wifi.entry.js +3 -3
  504. package/dist/esm/ontario-icon-youtube.entry.js +3 -3
  505. package/dist/ontario-design-system-components/ontario-design-system-components.css +3 -0
  506. package/dist/ontario-design-system-components/ontario-design-system-components.esm.js +3 -3
  507. package/dist/ontario-design-system-components/ontario-design-system-components.esm.js.map +1 -1
  508. package/dist/ontario-design-system-components/{p-c290df94.entry.js → p-00364195.entry.js} +372 -343
  509. package/dist/ontario-design-system-components/p-00364195.entry.js.map +1 -0
  510. package/{www/build/p-9eb84b8a.entry.js → dist/ontario-design-system-components/p-01f427db.entry.js} +4 -4
  511. package/{www/build/p-076fbd17.entry.js → dist/ontario-design-system-components/p-04fb2b1f.entry.js} +4 -4
  512. package/{www/build/p-5af55b3a.entry.js → dist/ontario-design-system-components/p-0aea8df7.entry.js} +9 -9
  513. package/dist/ontario-design-system-components/{p-c75f5396.entry.js → p-0f8e5a0c.entry.js} +24 -24
  514. package/dist/ontario-design-system-components/{p-ac72bccb.entry.js → p-0fa6ba1b.entry.js} +4 -4
  515. package/dist/ontario-design-system-components/{p-6e62de52.entry.js → p-10899c2d.entry.js} +21 -21
  516. package/{www/build/p-0f9e2d2c.entry.js → dist/ontario-design-system-components/p-12d41776.entry.js} +4 -4
  517. package/dist/ontario-design-system-components/{p-72c7c4aa.entry.js → p-1526e1f3.entry.js} +4 -4
  518. package/{www/build/p-32ecc2eb.entry.js → dist/ontario-design-system-components/p-1567ea71.entry.js} +4 -4
  519. package/dist/ontario-design-system-components/{p-8bae2e2d.entry.js → p-16dc2584.entry.js} +4 -4
  520. package/dist/ontario-design-system-components/{p-e18cb3eb.entry.js → p-17409379.entry.js} +4 -4
  521. package/dist/ontario-design-system-components/{p-5fa28101.entry.js → p-1cd78ef5.entry.js} +7 -7
  522. package/{www/build/p-5ef6f597.entry.js → dist/ontario-design-system-components/p-21b80693.entry.js} +9 -9
  523. package/{www/build/p-635feedf.entry.js → dist/ontario-design-system-components/p-2a6e912e.entry.js} +11 -11
  524. package/dist/ontario-design-system-components/{p-f88fe1bd.entry.js → p-3218a141.entry.js} +4 -4
  525. package/{www/build/p-6efbc44d.entry.js → dist/ontario-design-system-components/p-32666b1a.entry.js} +9 -9
  526. package/{www/build/p-a596839c.entry.js → dist/ontario-design-system-components/p-34371cd7.entry.js} +4 -4
  527. package/dist/ontario-design-system-components/{p-e21b53a2.entry.js → p-35681159.entry.js} +4 -4
  528. package/dist/ontario-design-system-components/{p-ffe78c79.entry.js → p-3868d245.entry.js} +4 -4
  529. package/dist/ontario-design-system-components/{p-78d9f49e.entry.js → p-39ab52ad.entry.js} +4 -4
  530. package/{www/build/p-71a2dd36.entry.js → dist/ontario-design-system-components/p-3b1c06b1.entry.js} +4 -4
  531. package/{www/build/p-8c3a8ddc.entry.js → dist/ontario-design-system-components/p-3cca2f28.entry.js} +47 -47
  532. package/dist/ontario-design-system-components/{p-db4a37a3.entry.js → p-3fb5a2f5.entry.js} +4 -4
  533. package/dist/ontario-design-system-components/{p-2e894229.entry.js → p-404f3050.entry.js} +4 -4
  534. package/{www/build/p-e402f3b8.entry.js → dist/ontario-design-system-components/p-446337ea.entry.js} +9 -9
  535. package/dist/ontario-design-system-components/{p-fd039069.entry.js → p-44fe73c2.entry.js} +4 -4
  536. package/dist/ontario-design-system-components/{p-5dae140f.entry.js → p-47b56153.entry.js} +4 -4
  537. package/{www/build/p-cef09b28.entry.js → dist/ontario-design-system-components/p-4f1683c0.entry.js} +4 -4
  538. package/{www/build/p-8ee66922.entry.js → dist/ontario-design-system-components/p-5128c0bb.entry.js} +7 -7
  539. package/dist/ontario-design-system-components/{p-191d8da8.entry.js → p-5184701e.entry.js} +6 -6
  540. package/dist/ontario-design-system-components/{p-34f2d1b1.entry.js → p-533a039a.entry.js} +9 -9
  541. package/dist/ontario-design-system-components/{p-c1723522.entry.js → p-564a51a5.entry.js} +4 -4
  542. package/dist/ontario-design-system-components/{p-a558baf0.entry.js → p-5a775ff3.entry.js} +4 -4
  543. package/{www/build/p-64642937.entry.js → dist/ontario-design-system-components/p-61548ae2.entry.js} +7 -7
  544. package/{www/build/p-107b5f8f.entry.js → dist/ontario-design-system-components/p-6477890e.entry.js} +4 -4
  545. package/dist/ontario-design-system-components/{p-091b695a.entry.js → p-6a62b87d.entry.js} +4 -4
  546. package/dist/ontario-design-system-components/{p-fcb2cadf.entry.js → p-6c85610c.entry.js} +4 -4
  547. package/dist/ontario-design-system-components/{p-3522193d.entry.js → p-6df12aab.entry.js} +24 -24
  548. package/dist/ontario-design-system-components/{p-c14d49ab.entry.js → p-6fb80d3b.entry.js} +4 -4
  549. package/{www/build/p-b2270cd5.entry.js → dist/ontario-design-system-components/p-7738a68d.entry.js} +4 -4
  550. package/dist/ontario-design-system-components/{p-31f3c62d.entry.js → p-7a822cb8.entry.js} +4 -4
  551. package/dist/ontario-design-system-components/{p-c90c72e0.entry.js → p-7afdef3f.entry.js} +4 -4
  552. package/dist/ontario-design-system-components/{p-75d5df20.entry.js → p-7c593bd8.entry.js} +4 -4
  553. package/dist/ontario-design-system-components/{p-15417698.entry.js → p-7f8d2db6.entry.js} +7 -7
  554. package/{www/build/p-2d987bdb.entry.js → dist/ontario-design-system-components/p-80d23c2c.entry.js} +4 -4
  555. package/dist/ontario-design-system-components/{p-8dacd96c.entry.js → p-8653b9a6.entry.js} +9 -9
  556. package/{www/build/p-a4e527cb.entry.js → dist/ontario-design-system-components/p-86849b43.entry.js} +4 -4
  557. package/{www/build/p-f91476fd.entry.js → dist/ontario-design-system-components/p-87fb19b5.entry.js} +4 -4
  558. package/dist/ontario-design-system-components/{p-81c8e9f0.entry.js → p-8973affb.entry.js} +9 -9
  559. package/dist/ontario-design-system-components/{p-bdd5c0cd.entry.js → p-8b743603.entry.js} +4 -4
  560. package/{www/build/p-360d6b10.entry.js → dist/ontario-design-system-components/p-8ed8323f.entry.js} +4 -4
  561. package/dist/ontario-design-system-components/{p-83144457.entry.js → p-95671e82.entry.js} +4 -4
  562. package/dist/ontario-design-system-components/{p-4e7bb7e6.entry.js → p-965f968c.entry.js} +9 -9
  563. package/dist/ontario-design-system-components/{p-c08b85f3.entry.js → p-981933f3.entry.js} +4 -4
  564. package/{www/build/p-86997e62.entry.js → dist/ontario-design-system-components/p-9c9d49a3.entry.js} +4 -4
  565. package/dist/ontario-design-system-components/{p-508bd33a.entry.js → p-9cab9d12.entry.js} +4 -4
  566. package/dist/ontario-design-system-components/{p-98642cf0.entry.js → p-9ffdf9ad.entry.js} +7 -7
  567. package/{www/build/p-00c121e9.entry.js → dist/ontario-design-system-components/p-a168d607.entry.js} +4 -4
  568. package/dist/ontario-design-system-components/{p-557d211e.entry.js → p-a2461cfc.entry.js} +4 -4
  569. package/{www/build/p-eebc769a.entry.js → dist/ontario-design-system-components/p-a33f978b.entry.js} +4 -4
  570. package/{www/build/p-3c5c66df.entry.js → dist/ontario-design-system-components/p-a80d7066.entry.js} +4 -4
  571. package/dist/ontario-design-system-components/{p-283c67bd.entry.js → p-adbbd012.entry.js} +12 -12
  572. package/dist/ontario-design-system-components/{p-d6942c50.entry.js → p-af8d070d.entry.js} +12 -12
  573. package/dist/ontario-design-system-components/{p-2d7fc382.entry.js → p-b1596322.entry.js} +7 -7
  574. package/{www/build/p-fc7a8df4.entry.js → dist/ontario-design-system-components/p-b428f67a.entry.js} +4 -4
  575. package/dist/ontario-design-system-components/{p-92e1ad8b.entry.js → p-b52ef7dc.entry.js} +4 -4
  576. package/dist/ontario-design-system-components/{p-9a52f817.entry.js → p-b83a30cf.entry.js} +4 -4
  577. package/dist/ontario-design-system-components/{p-01d17804.entry.js → p-ba5dc106.entry.js} +4 -4
  578. package/{www/build/p-c16792b1.entry.js → dist/ontario-design-system-components/p-bad1e757.entry.js} +4 -4
  579. package/dist/ontario-design-system-components/{p-151fc1fa.entry.js → p-baf6249e.entry.js} +10 -10
  580. package/dist/ontario-design-system-components/{p-c8f2ccf5.entry.js → p-bb072cb8.entry.js} +9 -9
  581. package/{www/build/p-ac5451d3.entry.js → dist/ontario-design-system-components/p-be4fbe09.entry.js} +6 -6
  582. package/dist/ontario-design-system-components/{p-20493ac1.entry.js → p-c69e5796.entry.js} +9 -9
  583. package/dist/ontario-design-system-components/{p-128d7d9c.entry.js → p-c6d771f1.entry.js} +4 -4
  584. package/{www/build/p-c84fd6f3.entry.js → dist/ontario-design-system-components/p-c779e248.entry.js} +4 -4
  585. package/dist/ontario-design-system-components/{p-6ae89bbc.entry.js → p-cb21b1a3.entry.js} +9 -9
  586. package/dist/ontario-design-system-components/{p-88722311.entry.js → p-ce1fa4bd.entry.js} +4 -4
  587. package/dist/ontario-design-system-components/{p-02c38199.entry.js → p-d733ba28.entry.js} +4 -4
  588. package/{www/build/p-35fe7d9d.entry.js → dist/ontario-design-system-components/p-d8e9546c.entry.js} +4 -4
  589. package/dist/ontario-design-system-components/{p-f0a53d8d.entry.js → p-daca3528.entry.js} +4 -4
  590. package/dist/ontario-design-system-components/{p-302c4671.entry.js → p-e51793eb.entry.js} +4 -4
  591. package/{www/build/p-608d5068.entry.js → dist/ontario-design-system-components/p-e6c90ae8.entry.js} +4 -4
  592. package/{www/build/p-cad51f9e.entry.js → dist/ontario-design-system-components/p-e87fde13.entry.js} +4 -4
  593. package/{www/build/p-9e9f6184.entry.js → dist/ontario-design-system-components/p-e952d94f.entry.js} +4 -4
  594. package/{www/build/p-3d27e2f8.entry.js → dist/ontario-design-system-components/p-e96e36ff.entry.js} +4 -4
  595. package/dist/ontario-design-system-components/{p-131d1f76.entry.js → p-eb4faafb.entry.js} +7 -7
  596. package/{www/build/p-812fc78e.entry.js → dist/ontario-design-system-components/p-ecbcd457.entry.js} +4 -4
  597. package/dist/ontario-design-system-components/{p-4bf52401.entry.js → p-ed2d68e1.entry.js} +4 -4
  598. package/dist/ontario-design-system-components/{p-ddb66bbb.entry.js → p-f0ca3e20.entry.js} +4 -4
  599. package/dist/ontario-design-system-components/{p-1700035e.entry.js → p-f125e857.entry.js} +13 -13
  600. package/{www/build/p-cc653027.entry.js → dist/ontario-design-system-components/p-f45d1e6b.entry.js} +4 -4
  601. package/{www/build/p-a365505f.entry.js → dist/ontario-design-system-components/p-f8c4ff40.entry.js} +4 -4
  602. package/dist/ontario-design-system-components/{p-abafe472.entry.js → p-f8cbec7c.entry.js} +4 -4
  603. package/{www/build/p-87897e51.entry.js → dist/ontario-design-system-components/p-fb1a144e.entry.js} +10 -10
  604. package/{www/build/p-33554950.entry.js → dist/ontario-design-system-components/p-fe487325.entry.js} +4 -4
  605. package/dist/types/components/ontario-aside/ontario-aside.d.ts +2 -8
  606. package/dist/types/components/ontario-callout/ontario-callout.d.ts +2 -8
  607. package/dist/types/components/ontario-checkbox/ontario-checkboxes.d.ts +11 -0
  608. package/dist/types/components/ontario-dropdown-list/ontario-dropdown-list.d.ts +11 -0
  609. package/dist/types/components/ontario-radio-buttons/ontario-radio-buttons.d.ts +11 -0
  610. package/dist/types/components/ontario-textarea/ontario-textarea.d.ts +12 -0
  611. package/dist/types/components.d.ts +56 -4
  612. package/dist/types/utils/components/callout-aside/callout-aside-helpers.d.ts +2 -2
  613. package/dist/types/utils/components/callout-aside/callout-aside.interface.d.ts +2 -2
  614. package/package.json +3 -3
  615. package/src/components/ontario-aside/ontario-aside.tsx +15 -33
  616. package/src/components/ontario-aside/readme.md +3 -3
  617. package/src/components/ontario-aside/test/ontario-aside.spec.tsx +39 -0
  618. package/src/components/ontario-callout/ontario-callout.tsx +14 -32
  619. package/src/components/ontario-callout/readme.md +2 -2
  620. package/src/components/ontario-callout/test/ontario-callout.spec.tsx +20 -0
  621. package/src/components/ontario-card/ontario-card.scss +5 -0
  622. package/src/components/ontario-card-collection/ontario-card-collection.scss +3 -0
  623. package/src/components/ontario-checkbox/ontario-checkboxes.scss +13 -5
  624. package/src/components/ontario-checkbox/ontario-checkboxes.tsx +20 -2
  625. package/src/components/ontario-checkbox/readme.md +9 -5
  626. package/src/components/ontario-checkbox/test/ontario-checkboxes.spec.tsx +4 -0
  627. package/src/components/ontario-dropdown-list/ontario-dropdown-list.scss +9 -0
  628. package/src/components/ontario-dropdown-list/ontario-dropdown-list.tsx +20 -1
  629. package/src/components/ontario-dropdown-list/readme.md +9 -5
  630. package/src/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.tsx +4 -0
  631. package/src/components/ontario-footer/components/expanded-footer-wrapper.tsx +1 -1
  632. package/src/components/ontario-header/ontario-header.scss +5 -1
  633. package/src/components/ontario-radio-buttons/ontario-radio-buttons.scss +3 -0
  634. package/src/components/ontario-radio-buttons/ontario-radio-buttons.tsx +21 -2
  635. package/src/components/ontario-radio-buttons/readme.md +9 -5
  636. package/src/components/ontario-radio-buttons/test/ontario-radio-button.spec.tsx +6 -1
  637. package/src/components/ontario-textarea/ontario-textarea.scss +9 -0
  638. package/src/components/ontario-textarea/ontario-textarea.tsx +20 -1
  639. package/src/components/ontario-textarea/readme.md +10 -6
  640. package/src/components/ontario-textarea/test/__snapshots__/ontario-textarea.spec.tsx.snap +5 -1
  641. package/src/components/ontario-textarea/test/ontario-textarea.spec.tsx +4 -1
  642. package/src/components.d.ts +56 -4
  643. package/src/index.html +15 -0
  644. package/src/utils/components/callout-aside/callout-aside-helpers.tsx +6 -6
  645. package/src/utils/components/callout-aside/callout-aside.interface.ts +2 -2
  646. package/www/build/ontario-design-system-components.css +3 -0
  647. package/www/build/ontario-design-system-components.esm.js +3 -3
  648. package/www/build/ontario-design-system-components.esm.js.map +1 -1
  649. package/www/build/{p-c290df94.entry.js → p-00364195.entry.js} +372 -343
  650. package/www/build/p-00364195.entry.js.map +1 -0
  651. package/www/build/{p-12d6190c.css → p-016eeaf2.css} +3 -0
  652. package/{dist/ontario-design-system-components/p-9eb84b8a.entry.js → www/build/p-01f427db.entry.js} +4 -4
  653. package/{dist/ontario-design-system-components/p-076fbd17.entry.js → www/build/p-04fb2b1f.entry.js} +4 -4
  654. package/{dist/ontario-design-system-components/p-5af55b3a.entry.js → www/build/p-0aea8df7.entry.js} +9 -9
  655. package/www/build/{p-c75f5396.entry.js → p-0f8e5a0c.entry.js} +24 -24
  656. package/www/build/{p-ac72bccb.entry.js → p-0fa6ba1b.entry.js} +4 -4
  657. package/www/build/{p-6e62de52.entry.js → p-10899c2d.entry.js} +21 -21
  658. package/{dist/ontario-design-system-components/p-0f9e2d2c.entry.js → www/build/p-12d41776.entry.js} +4 -4
  659. package/www/build/{p-72c7c4aa.entry.js → p-1526e1f3.entry.js} +4 -4
  660. package/{dist/ontario-design-system-components/p-32ecc2eb.entry.js → www/build/p-1567ea71.entry.js} +4 -4
  661. package/www/build/{p-8bae2e2d.entry.js → p-16dc2584.entry.js} +4 -4
  662. package/www/build/{p-e18cb3eb.entry.js → p-17409379.entry.js} +4 -4
  663. package/www/build/{p-5fa28101.entry.js → p-1cd78ef5.entry.js} +7 -7
  664. package/{dist/ontario-design-system-components/p-5ef6f597.entry.js → www/build/p-21b80693.entry.js} +9 -9
  665. package/{dist/ontario-design-system-components/p-635feedf.entry.js → www/build/p-2a6e912e.entry.js} +11 -11
  666. package/www/build/{p-f88fe1bd.entry.js → p-3218a141.entry.js} +4 -4
  667. package/{dist/ontario-design-system-components/p-6efbc44d.entry.js → www/build/p-32666b1a.entry.js} +9 -9
  668. package/{dist/ontario-design-system-components/p-a596839c.entry.js → www/build/p-34371cd7.entry.js} +4 -4
  669. package/www/build/{p-e21b53a2.entry.js → p-35681159.entry.js} +4 -4
  670. package/www/build/{p-ffe78c79.entry.js → p-3868d245.entry.js} +4 -4
  671. package/www/build/{p-78d9f49e.entry.js → p-39ab52ad.entry.js} +4 -4
  672. package/{dist/ontario-design-system-components/p-71a2dd36.entry.js → www/build/p-3b1c06b1.entry.js} +4 -4
  673. package/{dist/ontario-design-system-components/p-8c3a8ddc.entry.js → www/build/p-3cca2f28.entry.js} +47 -47
  674. package/www/build/{p-db4a37a3.entry.js → p-3fb5a2f5.entry.js} +4 -4
  675. package/www/build/{p-2e894229.entry.js → p-404f3050.entry.js} +4 -4
  676. package/{dist/ontario-design-system-components/p-e402f3b8.entry.js → www/build/p-446337ea.entry.js} +9 -9
  677. package/www/build/{p-fd039069.entry.js → p-44fe73c2.entry.js} +4 -4
  678. package/www/build/{p-5dae140f.entry.js → p-47b56153.entry.js} +4 -4
  679. package/{dist/ontario-design-system-components/p-cef09b28.entry.js → www/build/p-4f1683c0.entry.js} +4 -4
  680. package/{dist/ontario-design-system-components/p-8ee66922.entry.js → www/build/p-5128c0bb.entry.js} +7 -7
  681. package/www/build/{p-191d8da8.entry.js → p-5184701e.entry.js} +6 -6
  682. package/www/build/{p-34f2d1b1.entry.js → p-533a039a.entry.js} +9 -9
  683. package/www/build/{p-c1723522.entry.js → p-564a51a5.entry.js} +4 -4
  684. package/www/build/{p-a558baf0.entry.js → p-5a775ff3.entry.js} +4 -4
  685. package/{dist/ontario-design-system-components/p-64642937.entry.js → www/build/p-61548ae2.entry.js} +7 -7
  686. package/{dist/ontario-design-system-components/p-107b5f8f.entry.js → www/build/p-6477890e.entry.js} +4 -4
  687. package/www/build/{p-091b695a.entry.js → p-6a62b87d.entry.js} +4 -4
  688. package/www/build/{p-fcb2cadf.entry.js → p-6c85610c.entry.js} +4 -4
  689. package/www/build/{p-3522193d.entry.js → p-6df12aab.entry.js} +24 -24
  690. package/www/build/{p-c14d49ab.entry.js → p-6fb80d3b.entry.js} +4 -4
  691. package/{dist/ontario-design-system-components/p-b2270cd5.entry.js → www/build/p-7738a68d.entry.js} +4 -4
  692. package/www/build/{p-31f3c62d.entry.js → p-7a822cb8.entry.js} +4 -4
  693. package/www/build/{p-c90c72e0.entry.js → p-7afdef3f.entry.js} +4 -4
  694. package/www/build/{p-75d5df20.entry.js → p-7c593bd8.entry.js} +4 -4
  695. package/www/build/{p-15417698.entry.js → p-7f8d2db6.entry.js} +7 -7
  696. package/{dist/ontario-design-system-components/p-2d987bdb.entry.js → www/build/p-80d23c2c.entry.js} +4 -4
  697. package/www/build/{p-8dacd96c.entry.js → p-8653b9a6.entry.js} +9 -9
  698. package/{dist/ontario-design-system-components/p-a4e527cb.entry.js → www/build/p-86849b43.entry.js} +4 -4
  699. package/{dist/ontario-design-system-components/p-f91476fd.entry.js → www/build/p-87fb19b5.entry.js} +4 -4
  700. package/www/build/{p-81c8e9f0.entry.js → p-8973affb.entry.js} +9 -9
  701. package/www/build/{p-bdd5c0cd.entry.js → p-8b743603.entry.js} +4 -4
  702. package/{dist/ontario-design-system-components/p-360d6b10.entry.js → www/build/p-8ed8323f.entry.js} +4 -4
  703. package/www/build/{p-83144457.entry.js → p-95671e82.entry.js} +4 -4
  704. package/www/build/{p-4e7bb7e6.entry.js → p-965f968c.entry.js} +9 -9
  705. package/www/build/{p-c08b85f3.entry.js → p-981933f3.entry.js} +4 -4
  706. package/{dist/ontario-design-system-components/p-86997e62.entry.js → www/build/p-9c9d49a3.entry.js} +4 -4
  707. package/www/build/{p-508bd33a.entry.js → p-9cab9d12.entry.js} +4 -4
  708. package/www/build/{p-98642cf0.entry.js → p-9ffdf9ad.entry.js} +7 -7
  709. package/{dist/ontario-design-system-components/p-00c121e9.entry.js → www/build/p-a168d607.entry.js} +4 -4
  710. package/www/build/{p-557d211e.entry.js → p-a2461cfc.entry.js} +4 -4
  711. package/{dist/ontario-design-system-components/p-eebc769a.entry.js → www/build/p-a33f978b.entry.js} +4 -4
  712. package/{dist/ontario-design-system-components/p-3c5c66df.entry.js → www/build/p-a80d7066.entry.js} +4 -4
  713. package/www/build/p-a8bba86c.js +21 -0
  714. package/www/build/{p-283c67bd.entry.js → p-adbbd012.entry.js} +12 -12
  715. package/www/build/{p-d6942c50.entry.js → p-af8d070d.entry.js} +12 -12
  716. package/www/build/{p-2d7fc382.entry.js → p-b1596322.entry.js} +7 -7
  717. package/{dist/ontario-design-system-components/p-fc7a8df4.entry.js → www/build/p-b428f67a.entry.js} +4 -4
  718. package/www/build/{p-92e1ad8b.entry.js → p-b52ef7dc.entry.js} +4 -4
  719. package/www/build/{p-9a52f817.entry.js → p-b83a30cf.entry.js} +4 -4
  720. package/www/build/{p-01d17804.entry.js → p-ba5dc106.entry.js} +4 -4
  721. package/{dist/ontario-design-system-components/p-c16792b1.entry.js → www/build/p-bad1e757.entry.js} +4 -4
  722. package/www/build/{p-151fc1fa.entry.js → p-baf6249e.entry.js} +10 -10
  723. package/www/build/{p-c8f2ccf5.entry.js → p-bb072cb8.entry.js} +9 -9
  724. package/{dist/ontario-design-system-components/p-ac5451d3.entry.js → www/build/p-be4fbe09.entry.js} +6 -6
  725. package/www/build/{p-20493ac1.entry.js → p-c69e5796.entry.js} +9 -9
  726. package/www/build/{p-128d7d9c.entry.js → p-c6d771f1.entry.js} +4 -4
  727. package/{dist/ontario-design-system-components/p-c84fd6f3.entry.js → www/build/p-c779e248.entry.js} +4 -4
  728. package/www/build/{p-6ae89bbc.entry.js → p-cb21b1a3.entry.js} +9 -9
  729. package/www/build/{p-88722311.entry.js → p-ce1fa4bd.entry.js} +4 -4
  730. package/www/build/{p-02c38199.entry.js → p-d733ba28.entry.js} +4 -4
  731. package/{dist/ontario-design-system-components/p-35fe7d9d.entry.js → www/build/p-d8e9546c.entry.js} +4 -4
  732. package/www/build/{p-f0a53d8d.entry.js → p-daca3528.entry.js} +4 -4
  733. package/www/build/{p-302c4671.entry.js → p-e51793eb.entry.js} +4 -4
  734. package/{dist/ontario-design-system-components/p-608d5068.entry.js → www/build/p-e6c90ae8.entry.js} +4 -4
  735. package/{dist/ontario-design-system-components/p-cad51f9e.entry.js → www/build/p-e87fde13.entry.js} +4 -4
  736. package/{dist/ontario-design-system-components/p-9e9f6184.entry.js → www/build/p-e952d94f.entry.js} +4 -4
  737. package/{dist/ontario-design-system-components/p-3d27e2f8.entry.js → www/build/p-e96e36ff.entry.js} +4 -4
  738. package/www/build/{p-131d1f76.entry.js → p-eb4faafb.entry.js} +7 -7
  739. package/{dist/ontario-design-system-components/p-812fc78e.entry.js → www/build/p-ecbcd457.entry.js} +4 -4
  740. package/www/build/{p-4bf52401.entry.js → p-ed2d68e1.entry.js} +4 -4
  741. package/www/build/{p-ddb66bbb.entry.js → p-f0ca3e20.entry.js} +4 -4
  742. package/www/build/{p-1700035e.entry.js → p-f125e857.entry.js} +13 -13
  743. package/{dist/ontario-design-system-components/p-cc653027.entry.js → www/build/p-f45d1e6b.entry.js} +4 -4
  744. package/{dist/ontario-design-system-components/p-a365505f.entry.js → www/build/p-f8c4ff40.entry.js} +4 -4
  745. package/www/build/{p-abafe472.entry.js → p-f8cbec7c.entry.js} +4 -4
  746. package/{dist/ontario-design-system-components/p-87897e51.entry.js → www/build/p-fb1a144e.entry.js} +10 -10
  747. package/{dist/ontario-design-system-components/p-33554950.entry.js → www/build/p-fe487325.entry.js} +4 -4
  748. package/www/index.html +17 -3
  749. package/dist/components/event-handler.js +0 -328
  750. package/dist/components/event-handler.js.map +0 -1
  751. package/dist/ontario-design-system-components/p-c290df94.entry.js.map +0 -1
  752. package/www/build/p-1d439e32.js +0 -21
  753. package/www/build/p-c290df94.entry.js.map +0 -1
  754. /package/dist/ontario-design-system-components/{p-9eb84b8a.entry.js.map → p-01f427db.entry.js.map} +0 -0
  755. /package/dist/ontario-design-system-components/{p-076fbd17.entry.js.map → p-04fb2b1f.entry.js.map} +0 -0
  756. /package/dist/ontario-design-system-components/{p-5af55b3a.entry.js.map → p-0aea8df7.entry.js.map} +0 -0
  757. /package/dist/ontario-design-system-components/{p-c75f5396.entry.js.map → p-0f8e5a0c.entry.js.map} +0 -0
  758. /package/dist/ontario-design-system-components/{p-ac72bccb.entry.js.map → p-0fa6ba1b.entry.js.map} +0 -0
  759. /package/dist/ontario-design-system-components/{p-6e62de52.entry.js.map → p-10899c2d.entry.js.map} +0 -0
  760. /package/dist/ontario-design-system-components/{p-0f9e2d2c.entry.js.map → p-12d41776.entry.js.map} +0 -0
  761. /package/dist/ontario-design-system-components/{p-72c7c4aa.entry.js.map → p-1526e1f3.entry.js.map} +0 -0
  762. /package/dist/ontario-design-system-components/{p-32ecc2eb.entry.js.map → p-1567ea71.entry.js.map} +0 -0
  763. /package/dist/ontario-design-system-components/{p-8bae2e2d.entry.js.map → p-16dc2584.entry.js.map} +0 -0
  764. /package/dist/ontario-design-system-components/{p-e18cb3eb.entry.js.map → p-17409379.entry.js.map} +0 -0
  765. /package/dist/ontario-design-system-components/{p-5fa28101.entry.js.map → p-1cd78ef5.entry.js.map} +0 -0
  766. /package/dist/ontario-design-system-components/{p-5ef6f597.entry.js.map → p-21b80693.entry.js.map} +0 -0
  767. /package/dist/ontario-design-system-components/{p-635feedf.entry.js.map → p-2a6e912e.entry.js.map} +0 -0
  768. /package/dist/ontario-design-system-components/{p-f88fe1bd.entry.js.map → p-3218a141.entry.js.map} +0 -0
  769. /package/dist/ontario-design-system-components/{p-6efbc44d.entry.js.map → p-32666b1a.entry.js.map} +0 -0
  770. /package/dist/ontario-design-system-components/{p-a596839c.entry.js.map → p-34371cd7.entry.js.map} +0 -0
  771. /package/dist/ontario-design-system-components/{p-e21b53a2.entry.js.map → p-35681159.entry.js.map} +0 -0
  772. /package/dist/ontario-design-system-components/{p-ffe78c79.entry.js.map → p-3868d245.entry.js.map} +0 -0
  773. /package/dist/ontario-design-system-components/{p-78d9f49e.entry.js.map → p-39ab52ad.entry.js.map} +0 -0
  774. /package/dist/ontario-design-system-components/{p-71a2dd36.entry.js.map → p-3b1c06b1.entry.js.map} +0 -0
  775. /package/dist/ontario-design-system-components/{p-8c3a8ddc.entry.js.map → p-3cca2f28.entry.js.map} +0 -0
  776. /package/dist/ontario-design-system-components/{p-db4a37a3.entry.js.map → p-3fb5a2f5.entry.js.map} +0 -0
  777. /package/dist/ontario-design-system-components/{p-2e894229.entry.js.map → p-404f3050.entry.js.map} +0 -0
  778. /package/dist/ontario-design-system-components/{p-e402f3b8.entry.js.map → p-446337ea.entry.js.map} +0 -0
  779. /package/dist/ontario-design-system-components/{p-fd039069.entry.js.map → p-44fe73c2.entry.js.map} +0 -0
  780. /package/dist/ontario-design-system-components/{p-5dae140f.entry.js.map → p-47b56153.entry.js.map} +0 -0
  781. /package/dist/ontario-design-system-components/{p-cef09b28.entry.js.map → p-4f1683c0.entry.js.map} +0 -0
  782. /package/dist/ontario-design-system-components/{p-8ee66922.entry.js.map → p-5128c0bb.entry.js.map} +0 -0
  783. /package/dist/ontario-design-system-components/{p-191d8da8.entry.js.map → p-5184701e.entry.js.map} +0 -0
  784. /package/dist/ontario-design-system-components/{p-34f2d1b1.entry.js.map → p-533a039a.entry.js.map} +0 -0
  785. /package/dist/ontario-design-system-components/{p-c1723522.entry.js.map → p-564a51a5.entry.js.map} +0 -0
  786. /package/dist/ontario-design-system-components/{p-a558baf0.entry.js.map → p-5a775ff3.entry.js.map} +0 -0
  787. /package/dist/ontario-design-system-components/{p-64642937.entry.js.map → p-61548ae2.entry.js.map} +0 -0
  788. /package/dist/ontario-design-system-components/{p-107b5f8f.entry.js.map → p-6477890e.entry.js.map} +0 -0
  789. /package/dist/ontario-design-system-components/{p-091b695a.entry.js.map → p-6a62b87d.entry.js.map} +0 -0
  790. /package/dist/ontario-design-system-components/{p-fcb2cadf.entry.js.map → p-6c85610c.entry.js.map} +0 -0
  791. /package/dist/ontario-design-system-components/{p-3522193d.entry.js.map → p-6df12aab.entry.js.map} +0 -0
  792. /package/dist/ontario-design-system-components/{p-c14d49ab.entry.js.map → p-6fb80d3b.entry.js.map} +0 -0
  793. /package/dist/ontario-design-system-components/{p-b2270cd5.entry.js.map → p-7738a68d.entry.js.map} +0 -0
  794. /package/dist/ontario-design-system-components/{p-31f3c62d.entry.js.map → p-7a822cb8.entry.js.map} +0 -0
  795. /package/dist/ontario-design-system-components/{p-c90c72e0.entry.js.map → p-7afdef3f.entry.js.map} +0 -0
  796. /package/dist/ontario-design-system-components/{p-75d5df20.entry.js.map → p-7c593bd8.entry.js.map} +0 -0
  797. /package/dist/ontario-design-system-components/{p-15417698.entry.js.map → p-7f8d2db6.entry.js.map} +0 -0
  798. /package/dist/ontario-design-system-components/{p-2d987bdb.entry.js.map → p-80d23c2c.entry.js.map} +0 -0
  799. /package/dist/ontario-design-system-components/{p-8dacd96c.entry.js.map → p-8653b9a6.entry.js.map} +0 -0
  800. /package/dist/ontario-design-system-components/{p-a4e527cb.entry.js.map → p-86849b43.entry.js.map} +0 -0
  801. /package/dist/ontario-design-system-components/{p-f91476fd.entry.js.map → p-87fb19b5.entry.js.map} +0 -0
  802. /package/dist/ontario-design-system-components/{p-81c8e9f0.entry.js.map → p-8973affb.entry.js.map} +0 -0
  803. /package/dist/ontario-design-system-components/{p-bdd5c0cd.entry.js.map → p-8b743603.entry.js.map} +0 -0
  804. /package/dist/ontario-design-system-components/{p-360d6b10.entry.js.map → p-8ed8323f.entry.js.map} +0 -0
  805. /package/dist/ontario-design-system-components/{p-83144457.entry.js.map → p-95671e82.entry.js.map} +0 -0
  806. /package/dist/ontario-design-system-components/{p-4e7bb7e6.entry.js.map → p-965f968c.entry.js.map} +0 -0
  807. /package/dist/ontario-design-system-components/{p-c08b85f3.entry.js.map → p-981933f3.entry.js.map} +0 -0
  808. /package/dist/ontario-design-system-components/{p-86997e62.entry.js.map → p-9c9d49a3.entry.js.map} +0 -0
  809. /package/dist/ontario-design-system-components/{p-508bd33a.entry.js.map → p-9cab9d12.entry.js.map} +0 -0
  810. /package/dist/ontario-design-system-components/{p-98642cf0.entry.js.map → p-9ffdf9ad.entry.js.map} +0 -0
  811. /package/dist/ontario-design-system-components/{p-00c121e9.entry.js.map → p-a168d607.entry.js.map} +0 -0
  812. /package/dist/ontario-design-system-components/{p-557d211e.entry.js.map → p-a2461cfc.entry.js.map} +0 -0
  813. /package/dist/ontario-design-system-components/{p-eebc769a.entry.js.map → p-a33f978b.entry.js.map} +0 -0
  814. /package/dist/ontario-design-system-components/{p-3c5c66df.entry.js.map → p-a80d7066.entry.js.map} +0 -0
  815. /package/dist/ontario-design-system-components/{p-283c67bd.entry.js.map → p-adbbd012.entry.js.map} +0 -0
  816. /package/dist/ontario-design-system-components/{p-d6942c50.entry.js.map → p-af8d070d.entry.js.map} +0 -0
  817. /package/dist/ontario-design-system-components/{p-2d7fc382.entry.js.map → p-b1596322.entry.js.map} +0 -0
  818. /package/dist/ontario-design-system-components/{p-fc7a8df4.entry.js.map → p-b428f67a.entry.js.map} +0 -0
  819. /package/dist/ontario-design-system-components/{p-92e1ad8b.entry.js.map → p-b52ef7dc.entry.js.map} +0 -0
  820. /package/dist/ontario-design-system-components/{p-9a52f817.entry.js.map → p-b83a30cf.entry.js.map} +0 -0
  821. /package/dist/ontario-design-system-components/{p-01d17804.entry.js.map → p-ba5dc106.entry.js.map} +0 -0
  822. /package/dist/ontario-design-system-components/{p-c16792b1.entry.js.map → p-bad1e757.entry.js.map} +0 -0
  823. /package/dist/ontario-design-system-components/{p-151fc1fa.entry.js.map → p-baf6249e.entry.js.map} +0 -0
  824. /package/dist/ontario-design-system-components/{p-c8f2ccf5.entry.js.map → p-bb072cb8.entry.js.map} +0 -0
  825. /package/dist/ontario-design-system-components/{p-ac5451d3.entry.js.map → p-be4fbe09.entry.js.map} +0 -0
  826. /package/dist/ontario-design-system-components/{p-20493ac1.entry.js.map → p-c69e5796.entry.js.map} +0 -0
  827. /package/dist/ontario-design-system-components/{p-128d7d9c.entry.js.map → p-c6d771f1.entry.js.map} +0 -0
  828. /package/dist/ontario-design-system-components/{p-c84fd6f3.entry.js.map → p-c779e248.entry.js.map} +0 -0
  829. /package/dist/ontario-design-system-components/{p-6ae89bbc.entry.js.map → p-cb21b1a3.entry.js.map} +0 -0
  830. /package/dist/ontario-design-system-components/{p-88722311.entry.js.map → p-ce1fa4bd.entry.js.map} +0 -0
  831. /package/dist/ontario-design-system-components/{p-02c38199.entry.js.map → p-d733ba28.entry.js.map} +0 -0
  832. /package/dist/ontario-design-system-components/{p-35fe7d9d.entry.js.map → p-d8e9546c.entry.js.map} +0 -0
  833. /package/dist/ontario-design-system-components/{p-f0a53d8d.entry.js.map → p-daca3528.entry.js.map} +0 -0
  834. /package/dist/ontario-design-system-components/{p-302c4671.entry.js.map → p-e51793eb.entry.js.map} +0 -0
  835. /package/dist/ontario-design-system-components/{p-608d5068.entry.js.map → p-e6c90ae8.entry.js.map} +0 -0
  836. /package/dist/ontario-design-system-components/{p-cad51f9e.entry.js.map → p-e87fde13.entry.js.map} +0 -0
  837. /package/dist/ontario-design-system-components/{p-9e9f6184.entry.js.map → p-e952d94f.entry.js.map} +0 -0
  838. /package/dist/ontario-design-system-components/{p-3d27e2f8.entry.js.map → p-e96e36ff.entry.js.map} +0 -0
  839. /package/dist/ontario-design-system-components/{p-131d1f76.entry.js.map → p-eb4faafb.entry.js.map} +0 -0
  840. /package/dist/ontario-design-system-components/{p-812fc78e.entry.js.map → p-ecbcd457.entry.js.map} +0 -0
  841. /package/dist/ontario-design-system-components/{p-4bf52401.entry.js.map → p-ed2d68e1.entry.js.map} +0 -0
  842. /package/dist/ontario-design-system-components/{p-ddb66bbb.entry.js.map → p-f0ca3e20.entry.js.map} +0 -0
  843. /package/dist/ontario-design-system-components/{p-1700035e.entry.js.map → p-f125e857.entry.js.map} +0 -0
  844. /package/dist/ontario-design-system-components/{p-cc653027.entry.js.map → p-f45d1e6b.entry.js.map} +0 -0
  845. /package/dist/ontario-design-system-components/{p-a365505f.entry.js.map → p-f8c4ff40.entry.js.map} +0 -0
  846. /package/dist/ontario-design-system-components/{p-abafe472.entry.js.map → p-f8cbec7c.entry.js.map} +0 -0
  847. /package/dist/ontario-design-system-components/{p-87897e51.entry.js.map → p-fb1a144e.entry.js.map} +0 -0
  848. /package/dist/ontario-design-system-components/{p-33554950.entry.js.map → p-fe487325.entry.js.map} +0 -0
  849. /package/www/build/{p-9eb84b8a.entry.js.map → p-01f427db.entry.js.map} +0 -0
  850. /package/www/build/{p-076fbd17.entry.js.map → p-04fb2b1f.entry.js.map} +0 -0
  851. /package/www/build/{p-5af55b3a.entry.js.map → p-0aea8df7.entry.js.map} +0 -0
  852. /package/www/build/{p-c75f5396.entry.js.map → p-0f8e5a0c.entry.js.map} +0 -0
  853. /package/www/build/{p-ac72bccb.entry.js.map → p-0fa6ba1b.entry.js.map} +0 -0
  854. /package/www/build/{p-6e62de52.entry.js.map → p-10899c2d.entry.js.map} +0 -0
  855. /package/www/build/{p-0f9e2d2c.entry.js.map → p-12d41776.entry.js.map} +0 -0
  856. /package/www/build/{p-72c7c4aa.entry.js.map → p-1526e1f3.entry.js.map} +0 -0
  857. /package/www/build/{p-32ecc2eb.entry.js.map → p-1567ea71.entry.js.map} +0 -0
  858. /package/www/build/{p-8bae2e2d.entry.js.map → p-16dc2584.entry.js.map} +0 -0
  859. /package/www/build/{p-e18cb3eb.entry.js.map → p-17409379.entry.js.map} +0 -0
  860. /package/www/build/{p-5fa28101.entry.js.map → p-1cd78ef5.entry.js.map} +0 -0
  861. /package/www/build/{p-5ef6f597.entry.js.map → p-21b80693.entry.js.map} +0 -0
  862. /package/www/build/{p-635feedf.entry.js.map → p-2a6e912e.entry.js.map} +0 -0
  863. /package/www/build/{p-f88fe1bd.entry.js.map → p-3218a141.entry.js.map} +0 -0
  864. /package/www/build/{p-6efbc44d.entry.js.map → p-32666b1a.entry.js.map} +0 -0
  865. /package/www/build/{p-a596839c.entry.js.map → p-34371cd7.entry.js.map} +0 -0
  866. /package/www/build/{p-e21b53a2.entry.js.map → p-35681159.entry.js.map} +0 -0
  867. /package/www/build/{p-ffe78c79.entry.js.map → p-3868d245.entry.js.map} +0 -0
  868. /package/www/build/{p-78d9f49e.entry.js.map → p-39ab52ad.entry.js.map} +0 -0
  869. /package/www/build/{p-71a2dd36.entry.js.map → p-3b1c06b1.entry.js.map} +0 -0
  870. /package/www/build/{p-8c3a8ddc.entry.js.map → p-3cca2f28.entry.js.map} +0 -0
  871. /package/www/build/{p-db4a37a3.entry.js.map → p-3fb5a2f5.entry.js.map} +0 -0
  872. /package/www/build/{p-2e894229.entry.js.map → p-404f3050.entry.js.map} +0 -0
  873. /package/www/build/{p-e402f3b8.entry.js.map → p-446337ea.entry.js.map} +0 -0
  874. /package/www/build/{p-fd039069.entry.js.map → p-44fe73c2.entry.js.map} +0 -0
  875. /package/www/build/{p-5dae140f.entry.js.map → p-47b56153.entry.js.map} +0 -0
  876. /package/www/build/{p-cef09b28.entry.js.map → p-4f1683c0.entry.js.map} +0 -0
  877. /package/www/build/{p-8ee66922.entry.js.map → p-5128c0bb.entry.js.map} +0 -0
  878. /package/www/build/{p-191d8da8.entry.js.map → p-5184701e.entry.js.map} +0 -0
  879. /package/www/build/{p-34f2d1b1.entry.js.map → p-533a039a.entry.js.map} +0 -0
  880. /package/www/build/{p-c1723522.entry.js.map → p-564a51a5.entry.js.map} +0 -0
  881. /package/www/build/{p-a558baf0.entry.js.map → p-5a775ff3.entry.js.map} +0 -0
  882. /package/www/build/{p-64642937.entry.js.map → p-61548ae2.entry.js.map} +0 -0
  883. /package/www/build/{p-107b5f8f.entry.js.map → p-6477890e.entry.js.map} +0 -0
  884. /package/www/build/{p-091b695a.entry.js.map → p-6a62b87d.entry.js.map} +0 -0
  885. /package/www/build/{p-fcb2cadf.entry.js.map → p-6c85610c.entry.js.map} +0 -0
  886. /package/www/build/{p-3522193d.entry.js.map → p-6df12aab.entry.js.map} +0 -0
  887. /package/www/build/{p-c14d49ab.entry.js.map → p-6fb80d3b.entry.js.map} +0 -0
  888. /package/www/build/{p-b2270cd5.entry.js.map → p-7738a68d.entry.js.map} +0 -0
  889. /package/www/build/{p-31f3c62d.entry.js.map → p-7a822cb8.entry.js.map} +0 -0
  890. /package/www/build/{p-c90c72e0.entry.js.map → p-7afdef3f.entry.js.map} +0 -0
  891. /package/www/build/{p-75d5df20.entry.js.map → p-7c593bd8.entry.js.map} +0 -0
  892. /package/www/build/{p-15417698.entry.js.map → p-7f8d2db6.entry.js.map} +0 -0
  893. /package/www/build/{p-2d987bdb.entry.js.map → p-80d23c2c.entry.js.map} +0 -0
  894. /package/www/build/{p-8dacd96c.entry.js.map → p-8653b9a6.entry.js.map} +0 -0
  895. /package/www/build/{p-a4e527cb.entry.js.map → p-86849b43.entry.js.map} +0 -0
  896. /package/www/build/{p-f91476fd.entry.js.map → p-87fb19b5.entry.js.map} +0 -0
  897. /package/www/build/{p-81c8e9f0.entry.js.map → p-8973affb.entry.js.map} +0 -0
  898. /package/www/build/{p-bdd5c0cd.entry.js.map → p-8b743603.entry.js.map} +0 -0
  899. /package/www/build/{p-360d6b10.entry.js.map → p-8ed8323f.entry.js.map} +0 -0
  900. /package/www/build/{p-83144457.entry.js.map → p-95671e82.entry.js.map} +0 -0
  901. /package/www/build/{p-4e7bb7e6.entry.js.map → p-965f968c.entry.js.map} +0 -0
  902. /package/www/build/{p-c08b85f3.entry.js.map → p-981933f3.entry.js.map} +0 -0
  903. /package/www/build/{p-86997e62.entry.js.map → p-9c9d49a3.entry.js.map} +0 -0
  904. /package/www/build/{p-508bd33a.entry.js.map → p-9cab9d12.entry.js.map} +0 -0
  905. /package/www/build/{p-98642cf0.entry.js.map → p-9ffdf9ad.entry.js.map} +0 -0
  906. /package/www/build/{p-00c121e9.entry.js.map → p-a168d607.entry.js.map} +0 -0
  907. /package/www/build/{p-557d211e.entry.js.map → p-a2461cfc.entry.js.map} +0 -0
  908. /package/www/build/{p-eebc769a.entry.js.map → p-a33f978b.entry.js.map} +0 -0
  909. /package/www/build/{p-3c5c66df.entry.js.map → p-a80d7066.entry.js.map} +0 -0
  910. /package/www/build/{p-283c67bd.entry.js.map → p-adbbd012.entry.js.map} +0 -0
  911. /package/www/build/{p-d6942c50.entry.js.map → p-af8d070d.entry.js.map} +0 -0
  912. /package/www/build/{p-2d7fc382.entry.js.map → p-b1596322.entry.js.map} +0 -0
  913. /package/www/build/{p-fc7a8df4.entry.js.map → p-b428f67a.entry.js.map} +0 -0
  914. /package/www/build/{p-92e1ad8b.entry.js.map → p-b52ef7dc.entry.js.map} +0 -0
  915. /package/www/build/{p-9a52f817.entry.js.map → p-b83a30cf.entry.js.map} +0 -0
  916. /package/www/build/{p-01d17804.entry.js.map → p-ba5dc106.entry.js.map} +0 -0
  917. /package/www/build/{p-c16792b1.entry.js.map → p-bad1e757.entry.js.map} +0 -0
  918. /package/www/build/{p-151fc1fa.entry.js.map → p-baf6249e.entry.js.map} +0 -0
  919. /package/www/build/{p-c8f2ccf5.entry.js.map → p-bb072cb8.entry.js.map} +0 -0
  920. /package/www/build/{p-ac5451d3.entry.js.map → p-be4fbe09.entry.js.map} +0 -0
  921. /package/www/build/{p-20493ac1.entry.js.map → p-c69e5796.entry.js.map} +0 -0
  922. /package/www/build/{p-128d7d9c.entry.js.map → p-c6d771f1.entry.js.map} +0 -0
  923. /package/www/build/{p-c84fd6f3.entry.js.map → p-c779e248.entry.js.map} +0 -0
  924. /package/www/build/{p-6ae89bbc.entry.js.map → p-cb21b1a3.entry.js.map} +0 -0
  925. /package/www/build/{p-88722311.entry.js.map → p-ce1fa4bd.entry.js.map} +0 -0
  926. /package/www/build/{p-02c38199.entry.js.map → p-d733ba28.entry.js.map} +0 -0
  927. /package/www/build/{p-35fe7d9d.entry.js.map → p-d8e9546c.entry.js.map} +0 -0
  928. /package/www/build/{p-f0a53d8d.entry.js.map → p-daca3528.entry.js.map} +0 -0
  929. /package/www/build/{p-302c4671.entry.js.map → p-e51793eb.entry.js.map} +0 -0
  930. /package/www/build/{p-608d5068.entry.js.map → p-e6c90ae8.entry.js.map} +0 -0
  931. /package/www/build/{p-cad51f9e.entry.js.map → p-e87fde13.entry.js.map} +0 -0
  932. /package/www/build/{p-9e9f6184.entry.js.map → p-e952d94f.entry.js.map} +0 -0
  933. /package/www/build/{p-3d27e2f8.entry.js.map → p-e96e36ff.entry.js.map} +0 -0
  934. /package/www/build/{p-131d1f76.entry.js.map → p-eb4faafb.entry.js.map} +0 -0
  935. /package/www/build/{p-812fc78e.entry.js.map → p-ecbcd457.entry.js.map} +0 -0
  936. /package/www/build/{p-4bf52401.entry.js.map → p-ed2d68e1.entry.js.map} +0 -0
  937. /package/www/build/{p-ddb66bbb.entry.js.map → p-f0ca3e20.entry.js.map} +0 -0
  938. /package/www/build/{p-1700035e.entry.js.map → p-f125e857.entry.js.map} +0 -0
  939. /package/www/build/{p-cc653027.entry.js.map → p-f45d1e6b.entry.js.map} +0 -0
  940. /package/www/build/{p-a365505f.entry.js.map → p-f8c4ff40.entry.js.map} +0 -0
  941. /package/www/build/{p-abafe472.entry.js.map → p-f8cbec7c.entry.js.map} +0 -0
  942. /package/www/build/{p-87897e51.entry.js.map → p-fb1a144e.entry.js.map} +0 -0
  943. /package/www/build/{p-33554950.entry.js.map → p-fe487325.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ontario-textarea.js","sourceRoot":"","sources":["../../../src/components/ontario-textarea/ontario-textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAgB,eAAe,EAAE,MAAM,eAAe,CAAC;AACxH,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAKlC,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAE9E,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAEN,SAAS,GAGT,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAQ9E,MAAM,OAAO,eAAe;;;;;wBAoCE,KAAK;;;;;;;;;;;;;;IAuGlC;;OAEG;IAEH,oBAAoB,CAAC,KAA4B;QAChD,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACpB,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;QACzC,CAAC;IACF,CAAC;IAGD,2BAA2B,CAAC,KAA4B;QACvD,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;IAED;;;;OAIG;IAEK,aAAa;QACpB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YACn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E,IAAI,CAAC,oBAAoB,CAAC,eAAe,yBAElC,CACzB,CACI,CACN,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Event, h, Prop, State, Listen, Watch, Element, EventEmitter, AttachInternals } from '@stencil/core';\nimport { v4 as uuid } from 'uuid';\n\nimport { HintExpander } from '../ontario-hint-expander/hint-expander.interface';\n\nimport { Hint, Input } from '../../utils/common/common.interface';\nimport { InputCaption } from '../../utils/common/input-caption/input-caption';\nimport { Caption } from '../../utils/common/input-caption/caption.interface';\nimport { validatePropExists, validateLanguage } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\nimport { Language } from '../../utils/common/language-types';\nimport { constructHintTextObject } from '../../utils/components/hints/hints';\nimport {\n\tInputFocusBlurEvent,\n\tEventType,\n\tInputInteractionEvent,\n\tInputInputEvent,\n} from '../../utils/events/event-handler.interface';\nimport { handleInputEvent } from '../../utils/events/event-handler';\n\nimport { default as translations } from '../../translations/global.i18n.json';\n\n@Component({\n\ttag: 'ontario-textarea',\n\tstyleUrl: 'ontario-textarea.scss',\n\tshadow: true,\n\tformAssociated: true,\n})\nexport class OntarioTextarea implements Input {\n\t@Element() element: HTMLElement;\n\t@AttachInternals() internals: ElementInternals;\n\n\thintTextRef: HTMLOntarioHintTextElement | undefined;\n\n\t/**\n\t * The text to display as the textarea label.\n\t *\n\t * @example\n\t * <ontario-input\n\t * caption='{\n\t * \"captionText\": \"Address\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * required=\"true\"\n\t * ...>\n\t * </ontario-input>\n\t */\n\t@Prop() caption: Caption | string;\n\n\t/**\n\t * The name assigned to the textarea. 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 unique identifier of the textarea. This is optional - if no ID is passed, one will be generated.\n\t */\n\t@Prop({ mutable: true }) elementId?: string;\n\n\t/**\n\t * This is used to determine whether the textarea 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 * The textarea content value.\n\t */\n\t@Prop({ mutable: true }) value?: string;\n\n\t/**\n\t * Used to include the ontario-hint-text component for the textarea.\n\t * This is optional.\n\n\t */\n\t@Prop() hintText?: string | Hint;\n\n\t/**\n\t * Used to include the ontario-hint-expander component for the textarea 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-textarea\n\t * caption='{\n\t * \"captionText\": \"What are your thoughts\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * \t name: \"textarea\"\n\t * hint-expander='{\n\t * \"hint\": \"This is the hint expander\",\n\t * \"content\": \"This is the content for the hint expander\"\n\t * }'\n\t * required=\"true\"\n\t * >\n\t * </ontario-textarea>\n\t */\n\t@Prop() hintExpander?: HintExpander | 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 * Used to add a custom function to the textarea onInput event.\n\t */\n\t@Prop() customOnInput?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used to add a custom function to the textarea 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 textarea 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 textarea 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 textarea. This will match with the id of the hint text.\n\t */\n\t@State() hintTextId: string | null | undefined;\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/**\n\t * Instantiate an InputCaption object for internal logic use\n\t */\n\t@State() private captionState: InputCaption;\n\n\t/**\n\t * Emitted when a input event occurs when an input has been changed.\n\t */\n\t@Event() inputOnInput: EventEmitter<InputInputEvent>;\n\n\t/**\n\t * Emitted when a keyboard input or mouse event occurs when an input has been changed.\n\t */\n\t@Event() inputOnChange: EventEmitter<InputInteractionEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when an input has lost focus.\n\t */\n\t@Event() inputOnBlur: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when an input has gained focus.\n\t */\n\t@Event() inputOnFocus: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * This listens for the `setAppLanguage` event sent from the test language toggler when it is is connected to the DOM. It is used for the initial language when the textarea 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 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 `hintExpander` prop.\n\t *\n\t * If a `hintExpander` prop is passed, it will be parsed (if it is a string), and the result will be set to the `internalHintExpander` state.\n\t */\n\t@Watch('hintExpander')\n\tprivate parseHintExpander() {\n\t\tconst hintExpander = this.hintExpander;\n\t\tif (hintExpander) {\n\t\t\tif (typeof hintExpander === 'string') this.internalHintExpander = JSON.parse(hintExpander);\n\t\t\telse this.internalHintExpander = hintExpander;\n\t\t}\n\t}\n\n\t/*\n\t * 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-textarea> ')\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 `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 `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 * Function to handle textarea events and the information pertaining to the textarea to emit.\n\t */\n\tprivate handleEvent(event: Event, eventType: EventType) {\n\t\tconst input = event.target as HTMLTextAreaElement | 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.inputOnChange,\n\t\t\tthis.inputOnFocus,\n\t\t\tthis.inputOnBlur,\n\t\t\tthis.inputOnInput,\n\t\t\t'input',\n\t\t\tthis.customOnChange,\n\t\t\tthis.customOnFocus,\n\t\t\tthis.customOnBlur,\n\t\t\tthis.customOnInput,\n\t\t\tthis.element,\n\t\t);\n\t}\n\n\tpublic getId(): string {\n\t\treturn this.elementId ?? '';\n\t}\n\n\tprivate getValue(): string | number {\n\t\treturn this.value ?? '';\n\t}\n\n\tprivate getClass(): string {\n\t\treturn this.hintExpander ? `ontario-textarea ontario-textarea-hint-expander--true` : `ontario-textarea`;\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 textarea `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.elementId = this.elementId ?? uuid();\n\t\tthis.parseHintText();\n\t\tthis.parseHintExpander();\n\t\tthis.validateName(this.name);\n\t\tthis.language = validateLanguage(this.language);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div class=\"ontario-form-group\">\n\t\t\t\t{this.captionState.getCaption(this.getId(), !!this.internalHintExpander)}\n\t\t\t\t{this.internalHintText && (\n\t\t\t\t\t<ontario-hint-text\n\t\t\t\t\t\thint={this.internalHintText.hint}\n\t\t\t\t\t\thintContentType={this.internalHintText.hintContentType}\n\t\t\t\t\t\tref={(el) => (this.hintTextRef = el)}\n\t\t\t\t\t></ontario-hint-text>\n\t\t\t\t)}\n\t\t\t\t<textarea\n\t\t\t\t\taria-describedby={this.hintTextId}\n\t\t\t\t\tclass={this.getClass()}\n\t\t\t\t\tid={this.getId()}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\tvalue={this.getValue()}\n\t\t\t\t\tonInput={(e) => this.handleEvent(e, EventType.Input)}\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></textarea>\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\tinput-exists\n\t\t\t\t\t></ontario-hint-expander>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n}\n"]}
1
+ {"version":3,"file":"ontario-textarea.js","sourceRoot":"","sources":["../../../src/components/ontario-textarea/ontario-textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAgB,eAAe,EAAE,MAAM,eAAe,CAAC;AACxH,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAKlC,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAE9E,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Event, h, Prop, State, Listen, Watch, Element, EventEmitter, AttachInternals } from '@stencil/core';\nimport { v4 as uuid } from 'uuid';\n\nimport { HintExpander } from '../ontario-hint-expander/hint-expander.interface';\n\nimport { Hint, Input } from '../../utils/common/common.interface';\nimport { InputCaption } from '../../utils/common/input-caption/input-caption';\nimport { Caption } from '../../utils/common/input-caption/caption.interface';\nimport { validatePropExists, validateLanguage } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\nimport { Language } from '../../utils/common/language-types';\nimport { constructHintTextObject } from '../../utils/components/hints/hints';\nimport {\n\tInputFocusBlurEvent,\n\tEventType,\n\tInputInteractionEvent,\n\tInputInputEvent,\n} 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-textarea',\n\tstyleUrl: 'ontario-textarea.scss',\n\tshadow: true,\n\tformAssociated: true,\n})\nexport class OntarioTextarea implements Input {\n\t@Element() element: HTMLElement;\n\t@AttachInternals() internals: ElementInternals;\n\n\thintTextRef: HTMLOntarioHintTextElement | undefined;\n\n\t/**\n\t * The text to display as the textarea label.\n\t *\n\t * @example\n\t * <ontario-input\n\t * caption='{\n\t * \"captionText\": \"Address\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * required=\"true\"\n\t * ...>\n\t * </ontario-input>\n\t */\n\t@Prop() caption: Caption | string;\n\n\t/**\n\t * The name assigned to the textarea. 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 unique identifier of the textarea. This is optional - if no ID is passed, one will be generated.\n\t */\n\t@Prop({ mutable: true }) elementId?: string;\n\n\t/**\n\t * This is used to determine whether the textarea 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 * The textarea content value.\n\t */\n\t@Prop({ mutable: true }) value?: string;\n\n\t/**\n\t * Used to include the ontario-hint-text component for the textarea.\n\t * This is optional.\n\n\t */\n\t@Prop() hintText?: string | Hint;\n\n\t/**\n\t * Used to include the ontario-hint-expander component for the textarea 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-textarea\n\t * caption='{\n\t * \"captionText\": \"What are your thoughts\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * \t name: \"textarea\"\n\t * hint-expander='{\n\t * \"hint\": \"This is the hint expander\",\n\t * \"content\": \"This is the content for the hint expander\"\n\t * }'\n\t * required=\"true\"\n\t * >\n\t * </ontario-textarea>\n\t */\n\t@Prop() hintExpander?: HintExpander | 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 * 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 textarea onInput event.\n\t */\n\t@Prop() customOnInput?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used to add a custom function to the textarea 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 textarea 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 textarea 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 textarea. This will match with the id of the hint text.\n\t */\n\t@State() hintTextId: string | null | undefined;\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/**\n\t * Instantiate an InputCaption object for internal logic use\n\t */\n\t@State() private captionState: InputCaption;\n\n\t/**\n\t * Emitted when a input event occurs when an input has been changed.\n\t */\n\t@Event() inputOnInput: EventEmitter<InputInputEvent>;\n\n\t/**\n\t * Emitted when a keyboard input or mouse event occurs when an input has been changed.\n\t */\n\t@Event() inputOnChange: EventEmitter<InputInteractionEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when an input has lost focus.\n\t */\n\t@Event() inputOnBlur: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when an input has gained focus.\n\t */\n\t@Event() inputOnFocus: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * Emitted when an error message is reported to the component.\n\t */\n\t@Event() inputErrorOccurred: EventEmitter<{ inputId: string; 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 textarea 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 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 `hintExpander` prop.\n\t *\n\t * If a `hintExpander` prop is passed, it will be parsed (if it is a string), and the result will be set to the `internalHintExpander` state.\n\t */\n\t@Watch('hintExpander')\n\tprivate parseHintExpander() {\n\t\tconst hintExpander = this.hintExpander;\n\t\tif (hintExpander) {\n\t\t\tif (typeof hintExpander === 'string') this.internalHintExpander = JSON.parse(hintExpander);\n\t\t\telse this.internalHintExpander = hintExpander;\n\t\t}\n\t}\n\n\t/*\n\t * 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-textarea> ')\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 `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 `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@Watch('errorMessage')\n\tbroadcastInputErrorOccurredEvent() {\n\t\t// Emit event to notify anyone who wants to listen for errors occurring\n\t\tthis.inputErrorOccurred.emit({ inputId: this.getId(), errorMessage: this.errorMessage ?? '' });\n\t}\n\n\t/**\n\t * Function to handle textarea events and the information pertaining to the textarea to emit.\n\t */\n\tprivate handleEvent(event: Event, eventType: EventType) {\n\t\tconst input = event.target as HTMLTextAreaElement | 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.inputOnChange,\n\t\t\tthis.inputOnFocus,\n\t\t\tthis.inputOnBlur,\n\t\t\tthis.inputOnInput,\n\t\t\t'input',\n\t\t\tthis.customOnChange,\n\t\t\tthis.customOnFocus,\n\t\t\tthis.customOnBlur,\n\t\t\tthis.customOnInput,\n\t\t\tthis.element,\n\t\t);\n\t}\n\n\tpublic getId(): string {\n\t\treturn this.elementId ?? '';\n\t}\n\n\tprivate getValue(): string | number {\n\t\treturn this.value ?? '';\n\t}\n\n\tprivate getClass(): string {\n\t\treturn this.hintExpander ? `ontario-textarea ontario-textarea-hint-expander--true` : `ontario-textarea`;\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 textarea `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.elementId = this.elementId ?? uuid();\n\t\tthis.parseHintText();\n\t\tthis.parseHintExpander();\n\t\tthis.validateName(this.name);\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-textarea--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<textarea\n\t\t\t\t\taria-describedby={this.hintTextId}\n\t\t\t\t\tclass={this.getClass()}\n\t\t\t\t\tid={this.getId()}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\tvalue={this.getValue()}\n\t\t\t\t\tonInput={(e) => this.handleEvent(e, EventType.Input)}\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></textarea>\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\tinput-exists\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"]}
@@ -26,6 +26,10 @@ describe('ontario-textarea', () => {
26
26
  (optional)
27
27
  </span>
28
28
  </label>
29
+ <div class="ontario-error-messaging ontario-error__hidden" role="alert">
30
+ <ontario-icon-alert-error></ontario-icon-alert-error>
31
+ <div class="ontario-error-messaging__content"></div>
32
+ </div>
29
33
  <textarea class="ontario-textarea" id="ontario-textarea" name="ontario-textarea" value=""></textarea>
30
34
  </div>
31
35
  </mock:shadow-root>
@@ -1 +1 @@
1
- {"version":3,"file":"ontario-textarea.spec.js","sourceRoot":"","sources":["../../../../src/components/ontario-textarea/test/ontario-textarea.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IACjC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;QACzB,EAAE,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;YAChD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,eAAe,CAAC;gBAC7B,IAAI,EAAE,2IAA2I;aACjJ,CAAC,CAAC;YAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;QACrC,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;QACvB,EAAE,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;YACzD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,eAAe,CAAC;gBAC7B,IAAI,EAAE,2IAA2I;aACjJ,CAAC,CAAC;YACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;IAc7B,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,2CAA2C,EAAE,KAAK,IAAI,EAAE;YAC1D,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,eAAe,CAAC;gBAC7B,IAAI,EAAE;;;;;;yBAMe;aACrB,CAAC,CAAC;YAEH,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;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AC1B,MAAM,SAAS,GAAG,gBAAgB,CAAC;YACnC,MAAM,gBAAgB,GAAG,EAAE,CAAC;YAC5B,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;YACpD,IAAI,CAAC,YAAY,CAAC,KAAK,GAAG,SAAS,CAAC;YACpC,IAAI,CAAC,YAAY,CAAC,WAAW,CAC5B,IAAI,aAAa,CAAC,SAAS,EAAE;gBAC5B,OAAO,EAAE,gBAAgB;aACzB,CAAC,EACF,QAAQ,CACR,CAAC;YACF,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;YAC5B,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,2DAA2D,EAAE,KAAK,IAAI,EAAE;YAC1E,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,eAAe,CAAC;gBAC7B,IAAI,EAAE;;;;;yBAKe;aACrB,CAAC,CAAC;YAEH,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { OntarioTextarea } from '../ontario-textarea';\n\ndescribe('ontario-textarea', () => {\n\tdescribe('snapshot', () => {\n\t\tit('should render the expected html', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioTextarea],\n\t\t\t\thtml: `<ontario-textarea name=\"ontario-textarea\" element-id=\"ontario-textarea\" caption='{\"captionText\": \"Ontario Textarea\"}'></ontario-textarea>`,\n\t\t\t});\n\n\t\t\texpect(page.root).toMatchSnapshot();\n\t\t});\n\t});\n\n\tdescribe('render', () => {\n\t\tit('should render a default textarea element', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioTextarea],\n\t\t\t\thtml: `<ontario-textarea name=\"ontario-textarea\" element-id=\"ontario-textarea\" caption='{\"captionText\": \"Ontario Textarea\"}'></ontario-textarea>`,\n\t\t\t});\n\t\t\texpect(page.root).toEqualHtml(`\n\t\t\t\t<ontario-textarea name=\"ontario-textarea\" element-id=\"ontario-textarea\" caption='{\"captionText\": \"Ontario Textarea\"}'>\n\t\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t\t<div class=\"ontario-form-group\">\n\t\t\t\t\t\t\t<label htmlfor=\"ontario-textarea\" class=\"ontario-label\">\n\t\t\t\t\t\t\t\tOntario Textarea\n\t\t\t\t\t\t\t\t<span class=\"ontario-label__flag\">\n\t\t\t\t\t\t\t\t\t(optional)\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t<textarea class=\"ontario-textarea\" id=\"ontario-textarea\" name=\"ontario-textarea\" value=\"\"></textarea>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</mock:shadow-root>\n\t\t\t\t</ontario-textarea>\n\t\t\t`);\n\t\t});\n\n\t\tit('should reflect attributes/props being set', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioTextarea],\n\t\t\t\thtml: `<ontario-textarea\n\t\t\t\t\tname=\"textarea-name\"\n\t\t\t\t\trequired=\"true\"\n\t\t\t\t\telement-id=\"textarea-id\"\n\t\t\t\t\tvalue=\"textarea value\"\n\t\t\t\t\tcaption='{\"captionText\": \"Ontario Textarea\"}'\n\t\t\t\t></ontario-textarea>`,\n\t\t\t});\n\n\t\t\texpect(page.rootInstance.name).toBe('textarea-name');\n\t\t\texpect(page.rootInstance.value).toBe('textarea value');\n\t\t\texpect(page.rootInstance.elementId).toBe('textarea-id');\n\t\t\texpect(page.rootInstance.captionState.captionText).toBe('Ontario Textarea');\n\t\t});\n\t});\n\n\tdescribe('events/methods', () => {\n\t\tit('should emit a keyboard event on change', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioTextarea],\n\t\t\t\thtml: `<ontario-textarea\n\t\t\t\t\tname=\"textarea-name\"\n\t\t\t\t\trequired=\"true\"\n\t\t\t\t\telement-id=\"textarea-id\"\n\t\t\t\t\tcaption=\"Ontario Textarea\"\n\t\t\t\t></ontario-textarea>`,\n\t\t\t});\n\n\t\t\tconst emitSpy = jest.fn();\n\t\t\tconst leftArrowKeyCode = 37;\n\t\t\tpage.doc.addEventListener('inputOnChange', emitSpy);\n\t\t\tpage.rootInstance.handleEvent(\n\t\t\t\tnew KeyboardEvent('keydown', {\n\t\t\t\t\tkeyCode: leftArrowKeyCode,\n\t\t\t\t}),\n\t\t\t\t'change',\n\t\t\t);\n\t\t\tawait page.waitForChanges();\n\t\t\texpect(emitSpy).toHaveBeenCalled();\n\t\t});\n\n\t\tit('should update the textarea value on a change event', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioTextarea],\n\t\t\t\thtml: `<ontario-textarea\n\t\t\t\t\tname=\"textarea-name\"\n\t\t\t\t\trequired=\"true\"\n\t\t\t\t\telement-id=\"textarea-id\"\n\t\t\t\t\tcaption=\"Ontario Textarea\"\n\t\t\t\t></ontario-textarea>`,\n\t\t\t});\n\n\t\t\tconst emitSpy = jest.fn();\n\t\t\tconst testValue = 'This is a test';\n\t\t\tconst leftArrowKeyCode = 37;\n\t\t\tpage.doc.addEventListener('inputOnChange', emitSpy);\n\t\t\tpage.rootInstance.value = testValue;\n\t\t\tpage.rootInstance.handleEvent(\n\t\t\t\tnew KeyboardEvent('keydown', {\n\t\t\t\t\tkeyCode: leftArrowKeyCode,\n\t\t\t\t}),\n\t\t\t\t'change',\n\t\t\t);\n\t\t\tawait page.waitForChanges();\n\t\t\texpect(page.rootInstance.value).toBe(testValue);\n\t\t});\n\n\t\tit('should return the textarea id when using the getId method', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioTextarea],\n\t\t\t\thtml: `<ontario-textarea\n\t\t\t\t\tname=\"textarea-name\"\n\t\t\t\t\trequired=\"true\"\n\t\t\t\t\telement-id=\"textarea-id\"\n\t\t\t\t\tcaption=\"Ontario Textarea\"\n\t\t\t\t></ontario-textarea>`,\n\t\t\t});\n\n\t\t\texpect(page.rootInstance.getId()).toEqual('textarea-id');\n\t\t});\n\t});\n});\n"]}
1
+ {"version":3,"file":"ontario-textarea.spec.js","sourceRoot":"","sources":["../../../../src/components/ontario-textarea/test/ontario-textarea.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IACjC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;QACzB,EAAE,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;YAChD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,eAAe,CAAC;gBAC7B,IAAI,EAAE,2IAA2I;aACjJ,CAAC,CAAC;YACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;QACrC,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;QACvB,EAAE,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;YACzD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,eAAe,CAAC;gBAC7B,IAAI,EAAE,2IAA2I;aACjJ,CAAC,CAAC;YACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;IAkB7B,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,EAAE,C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QACpC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oDAAoD,EAAE,KAAK,IAAI,EAAE;YACnE,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,eAAe,CAAC;gBAC7B,IAAI,EAAE;;;;;yBAKe;aACrB,CAAC,CAAC;YAEH,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;YAC1B,MAAM,SAAS,GAAG,gBAAgB,CAAC;YACnC,MAAM,gBAAgB,GAAG,EAAE,CAAC;YAC5B,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;YACpD,IAAI,CAAC,YAAY,CAAC,KAAK,GAAG,SAAS,CAAC;YACpC,IAAI,CAAC,YAAY,CAAC,WAAW,CAC5B,IAAI,aAAa,CAAC,SAAS,EAAE;gBAC5B,OAAO,EAAE,gBAAgB;aACzB,CAAC,EACF,QAAQ,CACR,CAAC;YACF,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;YAC5B,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,2DAA2D,EAAE,KAAK,IAAI,EAAE;YAC1E,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,eAAe,CAAC;gBAC7B,IAAI,EAAE;;;;;yBAKe;aACrB,CAAC,CAAC;YAEH,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { OntarioTextarea } from '../ontario-textarea';\n\ndescribe('ontario-textarea', () => {\n\tdescribe('snapshot', () => {\n\t\tit('should render the expected html', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioTextarea],\n\t\t\t\thtml: `<ontario-textarea name=\"ontario-textarea\" element-id=\"ontario-textarea\" caption='{\"captionText\": \"Ontario Textarea\"}'></ontario-textarea>`,\n\t\t\t});\n\t\t\texpect(page.root).toMatchSnapshot();\n\t\t});\n\t});\n\n\tdescribe('render', () => {\n\t\tit('should render a default textarea element', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioTextarea],\n\t\t\t\thtml: `<ontario-textarea name=\"ontario-textarea\" element-id=\"ontario-textarea\" caption='{\"captionText\": \"Ontario Textarea\"}'></ontario-textarea>`,\n\t\t\t});\n\t\t\texpect(page.root).toEqualHtml(`\n\t\t\t\t<ontario-textarea name=\"ontario-textarea\" element-id=\"ontario-textarea\" caption='{\"captionText\": \"Ontario Textarea\"}'>\n\t\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t\t<div class=\"ontario-form-group\">\n\t\t\t\t\t\t\t<label htmlfor=\"ontario-textarea\" class=\"ontario-label\">\n\t\t\t\t\t\t\t\tOntario Textarea\n\t\t\t\t\t\t\t\t<span class=\"ontario-label__flag\">\n\t\t\t\t\t\t\t\t\t(optional)\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t<div class=\"ontario-error-messaging ontario-error__hidden\" role=\"alert\">\n\t\t\t\t\t\t\t\t<ontario-icon-alert-error></ontario-icon-alert-error>\n\t\t\t\t\t\t\t\t<div class=\"ontario-error-messaging__content\"></div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<textarea class=\"ontario-textarea\" id=\"ontario-textarea\" name=\"ontario-textarea\" value=\"\"></textarea>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</mock:shadow-root>\n\t\t\t\t</ontario-textarea>\n\t\t\t`);\n\t\t});\n\n\t\tit('should reflect attributes/props being set', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioTextarea],\n\t\t\t\thtml: `<ontario-textarea\n\t\t\t\t\tname=\"textarea-name\"\n\t\t\t\t\trequired=\"true\"\n\t\t\t\t\telement-id=\"textarea-id\"\n\t\t\t\t\tvalue=\"textarea value\"\n\t\t\t\t\tcaption='{\"captionText\": \"Ontario Textarea\"}'\n\t\t\t\t></ontario-textarea>`,\n\t\t\t});\n\n\t\t\texpect(page.rootInstance.name).toBe('textarea-name');\n\t\t\texpect(page.rootInstance.value).toBe('textarea value');\n\t\t\texpect(page.rootInstance.elementId).toBe('textarea-id');\n\t\t\texpect(page.rootInstance.captionState.captionText).toBe('Ontario Textarea');\n\t\t});\n\t});\n\n\tdescribe('events/methods', () => {\n\t\tit('should emit a keyboard event on change', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioTextarea],\n\t\t\t\thtml: `<ontario-textarea\n\t\t\t\t\tname=\"textarea-name\"\n\t\t\t\t\trequired=\"true\"\n\t\t\t\t\telement-id=\"textarea-id\"\n\t\t\t\t\tcaption=\"Ontario Textarea\"\n\t\t\t\t></ontario-textarea>`,\n\t\t\t});\n\n\t\t\tconst emitSpy = jest.fn();\n\t\t\tconst leftArrowKeyCode = 37;\n\t\t\tpage.doc.addEventListener('inputOnChange', emitSpy);\n\t\t\tpage.rootInstance.handleEvent(\n\t\t\t\tnew KeyboardEvent('keydown', {\n\t\t\t\t\tkeyCode: leftArrowKeyCode,\n\t\t\t\t}),\n\t\t\t\t'change',\n\t\t\t);\n\t\t\tawait page.waitForChanges();\n\t\t\texpect(emitSpy).toHaveBeenCalled();\n\t\t});\n\n\t\tit('should update the textarea value on a change event', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioTextarea],\n\t\t\t\thtml: `<ontario-textarea\n\t\t\t\t\tname=\"textarea-name\"\n\t\t\t\t\trequired=\"true\"\n\t\t\t\t\telement-id=\"textarea-id\"\n\t\t\t\t\tcaption=\"Ontario Textarea\"\n\t\t\t\t></ontario-textarea>`,\n\t\t\t});\n\n\t\t\tconst emitSpy = jest.fn();\n\t\t\tconst testValue = 'This is a test';\n\t\t\tconst leftArrowKeyCode = 37;\n\t\t\tpage.doc.addEventListener('inputOnChange', emitSpy);\n\t\t\tpage.rootInstance.value = testValue;\n\t\t\tpage.rootInstance.handleEvent(\n\t\t\t\tnew KeyboardEvent('keydown', {\n\t\t\t\t\tkeyCode: leftArrowKeyCode,\n\t\t\t\t}),\n\t\t\t\t'change',\n\t\t\t);\n\t\t\tawait page.waitForChanges();\n\t\t\texpect(page.rootInstance.value).toBe(testValue);\n\t\t});\n\n\t\tit('should return the textarea id when using the getId method', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioTextarea],\n\t\t\t\thtml: `<ontario-textarea\n\t\t\t\t\tname=\"textarea-name\"\n\t\t\t\t\trequired=\"true\"\n\t\t\t\t\telement-id=\"textarea-id\"\n\t\t\t\t\tcaption=\"Ontario Textarea\"\n\t\t\t\t></ontario-textarea>`,\n\t\t\t});\n\n\t\t\texpect(page.rootInstance.getId()).toEqual('textarea-id');\n\t\t});\n\t});\n});\n"]}
@@ -38,8 +38,8 @@ const generateHeading = (type, headingType, headingContentType, headingContent)
38
38
  };
39
39
  export const generateCalloutAside = (
40
40
  type,
41
- headingType,
42
41
  headingContentType,
42
+ headingType,
43
43
  headingContent,
44
44
  content,
45
45
  highlightColour,
@@ -49,14 +49,14 @@ export const generateCalloutAside = (
49
49
  ? h(
50
50
  'div',
51
51
  { class: generateClasses(type, highlightColour) },
52
- generateHeading(type, headingType, headingContentType, headingContent),
52
+ headingContent ? generateHeading(type, headingType, headingContentType, headingContent) : '',
53
53
  contentIsString ? h('p', null, content) : h('slot', null),
54
54
  )
55
55
  : h(
56
56
  'aside',
57
57
  { class: generateClasses(type, highlightColour) },
58
- generateHeading(type, headingType, headingContentType, headingContent),
59
- contentIsString ? h('p', null, content) : h('slot', null),
58
+ headingContent ? generateHeading(type, headingType, headingContentType, headingContent) : '',
59
+ contentIsString ? (content ? h('p', null, content) : '') : h('slot', null),
60
60
  );
61
61
  };
62
62
  //# sourceMappingURL=callout-aside-helpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"callout-aside-helpers.js","sourceRoot":"","sources":["../../../../src/utils/components/callout-aside/callout-aside-helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAEN,YAAY,EAGZ,gBAAgB,GAEhB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,MAA8B,EAAoC,EAAE,CAC1G,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAEnC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAA0B,EAAgC,EAAE,CAC/F,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAE9B,MAAM,eAAe,GAAG,CAAC,IAAsB,EAAE,cAAuC,EAAE,EAAE;IAC3F,MAAM,aAAa,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,eAAe,CAAC;IAC/E,MAAM,WAAW,GAAG,6BAA6B,cAAc,EAAE,CAAC;IAElE,OAAO,cAAc,CAAC,CAAC,CAAC,GAAG,aAAa,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;AAChF,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CACvB,IAAsB,EACtB,WAAgC,EAChC,kBAAsC,EACtC,cAAsB,EACrB,EAAE;IACH,MAAM,oBAAoB,GAAG,kBAAkB,KAAK,MAAM,CAAC;IAE3D,QAAQ,WAAW,EAAE,CAAC;QACrB,KAAK,IAAI;YACR,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAC7B,UAAI,KAAK,EAAE,WAAW,IAAI,oBAAoB,EAAE,SAAS,EAAE,cAAc,GAAO,C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;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CACnC,IAAsB,EACtB,WAAgC,EAChC,kBAAsC,EACtC,cAAsB,EACtB,OAA8B,EAC9B,eAAwC,EACvC,EAAE;IACH,MAAM,eAAe,GAAG,OAAO,OAAO,KAAK,QAAQ,CAAC;IAEpD,OAAO,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CAC3B,WAAK,KAAK,EAAE,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC;QAChD,eAAe,CAAC,IAAI,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,CAAC;QACtE,eAAe,CAAC,CAAC,CAAC,aAAI,OAAO,CAAK,CAAC,CAAC,CAAC,eAAQ,CACzC,CACN,CAAC,CAAC,CAAC,CACH,aAAO,KAAK,EAAE,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC;QAClD,eAAe,CAAC,IAAI,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,CAAC;QACtE,eAAe,CAAC,CAAC,CAAC,aAAI,OAAO,CAAK,CAAC,CAAC,CAAC,eAAQ,CACvC,CACR,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { h } from '@stencil/core';\nimport {\n\tCalloutAsideType,\n\tHeadingLevel,\n\tHeadingLevelOptions,\n\tHeadingContentType,\n\tHighlightColours,\n\tHighlightColourOptions,\n} from './callout-aside.interface';\n\nexport const isValidHighlightColour = (colour: HighlightColourOptions): colour is HighlightColourOptions =>\n\tHighlightColours.includes(colour);\n\nexport const isValidHeadingLevel = (level: HeadingLevelOptions): level is HeadingLevelOptions =>\n\tHeadingLevel.includes(level);\n\nconst generateClasses = (type: CalloutAsideType, highlightColor?: HighlightColourOptions) => {\n\tconst componentType = type === 'callout' ? `ontario-callout` : `ontario-aside`;\n\tconst borderColor = `ontario-border-highlight--${highlightColor}`;\n\n\treturn highlightColor ? `${componentType} ${borderColor}` : `${componentType}`;\n};\n\nconst generateHeading = (\n\ttype: CalloutAsideType,\n\theadingType: HeadingLevelOptions,\n\theadingContentType: HeadingContentType,\n\theadingContent: string,\n) => {\n\tconst headingContentIsHTML = headingContentType === 'html';\n\n\tswitch (headingType) {\n\t\tcase 'h2':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h2>\n\t\t\t) : (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h2>\n\t\t\t);\n\t\tcase 'h3':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h3 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h3>\n\t\t\t) : (\n\t\t\t\t<h3 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h3>\n\t\t\t);\n\t\tcase 'h4':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h4 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h4>\n\t\t\t) : (\n\t\t\t\t<h4 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h4>\n\t\t\t);\n\t\tcase 'h5':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h5 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h5>\n\t\t\t) : (\n\t\t\t\t<h5 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h5>\n\t\t\t);\n\t\tcase 'h6':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h6 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h6>\n\t\t\t) : (\n\t\t\t\t<h6 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h6>\n\t\t\t);\n\t\tdefault:\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h2>\n\t\t\t) : (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h2>\n\t\t\t);\n\t}\n};\n\nexport const generateCalloutAside = (\n\ttype: CalloutAsideType,\n\theadingType: HeadingLevelOptions,\n\theadingContentType: HeadingContentType,\n\theadingContent: string,\n\tcontent?: string | HTMLElement,\n\thighlightColour?: HighlightColourOptions,\n) => {\n\tconst contentIsString = typeof content === 'string';\n\n\treturn type === 'callout' ? (\n\t\t<div class={generateClasses(type, highlightColour)}>\n\t\t\t{generateHeading(type, headingType, headingContentType, headingContent)}\n\t\t\t{contentIsString ? <p>{content}</p> : <slot />}\n\t\t</div>\n\t) : (\n\t\t<aside class={generateClasses(type, highlightColour)}>\n\t\t\t{generateHeading(type, headingType, headingContentType, headingContent)}\n\t\t\t{contentIsString ? <p>{content}</p> : <slot />}\n\t\t</aside>\n\t);\n};\n"]}
1
+ {"version":3,"file":"callout-aside-helpers.js","sourceRoot":"","sources":["../../../../src/utils/components/callout-aside/callout-aside-helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAEN,YAAY,EAGZ,gBAAgB,GAEhB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,MAA8B,EAAoC,EAAE,CAC1G,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAEnC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAA0B,EAAgC,EAAE,CAC/F,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAE9B,MAAM,eAAe,GAAG,CAAC,IAAsB,EAAE,cAAuC,EAAE,EAAE;IAC3F,MAAM,aAAa,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,eAAe,CAAC;IAC/E,MAAM,WAAW,GAAG,6BAA6B,cAAc,EAAE,CAAC;IAElE,OAAO,cAAc,CAAC,CAAC,CAAC,GAAG,aAAa,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;AAChF,CAAC,CAAC;AAEF,MAAM,eAAe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elOptions,\n\tHeadingContentType,\n\tHighlightColours,\n\tHighlightColourOptions,\n} from './callout-aside.interface';\n\nexport const isValidHighlightColour = (colour: HighlightColourOptions): colour is HighlightColourOptions =>\n\tHighlightColours.includes(colour);\n\nexport const isValidHeadingLevel = (level: HeadingLevelOptions): level is HeadingLevelOptions =>\n\tHeadingLevel.includes(level);\n\nconst generateClasses = (type: CalloutAsideType, highlightColor?: HighlightColourOptions) => {\n\tconst componentType = type === 'callout' ? `ontario-callout` : `ontario-aside`;\n\tconst borderColor = `ontario-border-highlight--${highlightColor}`;\n\n\treturn highlightColor ? `${componentType} ${borderColor}` : `${componentType}`;\n};\n\nconst generateHeading = (\n\ttype: CalloutAsideType,\n\theadingType: HeadingLevelOptions | undefined,\n\theadingContentType: HeadingContentType,\n\theadingContent: string,\n) => {\n\tconst headingContentIsHTML = headingContentType === 'html';\n\n\tswitch (headingType) {\n\t\tcase 'h2':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h2>\n\t\t\t) : (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h2>\n\t\t\t);\n\t\tcase 'h3':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h3 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h3>\n\t\t\t) : (\n\t\t\t\t<h3 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h3>\n\t\t\t);\n\t\tcase 'h4':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h4 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h4>\n\t\t\t) : (\n\t\t\t\t<h4 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h4>\n\t\t\t);\n\t\tcase 'h5':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h5 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h5>\n\t\t\t) : (\n\t\t\t\t<h5 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h5>\n\t\t\t);\n\t\tcase 'h6':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h6 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h6>\n\t\t\t) : (\n\t\t\t\t<h6 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h6>\n\t\t\t);\n\t\tdefault:\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h2>\n\t\t\t) : (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h2>\n\t\t\t);\n\t}\n};\n\nexport const generateCalloutAside = (\n\ttype: CalloutAsideType,\n\theadingContentType: HeadingContentType,\n\theadingType?: HeadingLevelOptions,\n\theadingContent?: string,\n\tcontent?: string | HTMLElement,\n\thighlightColour?: HighlightColourOptions,\n) => {\n\tconst contentIsString = typeof content === 'string';\n\n\treturn type === 'callout' ? (\n\t\t<div class={generateClasses(type, highlightColour)}>\n\t\t\t{headingContent ? generateHeading(type, headingType, headingContentType, headingContent) : ''}\n\t\t\t{contentIsString ? <p>{content}</p> : <slot />}\n\t\t</div>\n\t) : (\n\t\t<aside class={generateClasses(type, highlightColour)}>\n\t\t\t{headingContent ? generateHeading(type, headingType, headingContentType, headingContent) : ''}\n\t\t\t{contentIsString ? content ? <p>{content}</p> : '' : <slot />}\n\t\t</aside>\n\t);\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"callout-aside.interface.js","sourceRoot":"","sources":["../../../../src/utils/components/callout-aside/callout-aside.interface.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAIpE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC;AAQvH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAU,CAAC","sourcesContent":["import { Base } from '../../common/common.interface';\n\nexport const HeadingLevel = ['h2', 'h3', 'h4', 'h5', 'h6'] as const;\n\nexport type HeadingLevelOptions = (typeof HeadingLevel)[number];\n\nexport const HighlightColours = ['teal', 'gold', 'yellow', 'taupe', 'green', 'lime', 'sky', 'blue', 'purple'] as const;\n\nexport type HighlightColourOptions = (typeof HighlightColours)[number];\n\nexport type CalloutAsideType = 'callout' | 'aside';\n\nexport type HeadingContentType = 'string' | 'html';\n\nexport const HeadingContentTypes = ['string', 'html'] as const;\n\nexport interface CalloutAside extends Base {\n\t/**\n\t * The heading level of the callout/aside heading.\n\t */\n\theadingType: HeadingLevelOptions;\n\n\t/**\n\t * The type of the heading content. If no prop is passed, it will default to string.\n\t */\n\theadingContentType: HeadingContentType;\n\n\t/**\n\t * Text or HTML to be displayed as the heading of the callout/aside. If the heading content should be displayed as HTML, the `headingContentType` needs to be set to `html`.\n\t */\n\theadingContent: string;\n\n\t/**\n\t * Optional text to be displayed as the content for the callout/aside component. If a string is passed, it will automatically be nested in a paragraph tag.\n\t *\n\t * HTML content can also be passed as the child/children of the callout/aside component if additional/different elements for the content are needed.\n\t */\n\tcontent?: string | HTMLElement;\n\n\t/**\n\t * Optional prop to choose the border colour of the callout/aside. If none is passed, the default colour will be teal.\n\t */\n\thighlightColor?: HighlightColourOptions | undefined;\n}\n"]}
1
+ {"version":3,"file":"callout-aside.interface.js","sourceRoot":"","sources":["../../../../src/utils/components/callout-aside/callout-aside.interface.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAIpE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC;AAQvH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAU,CAAC","sourcesContent":["import { Base } from '../../common/common.interface';\n\nexport const HeadingLevel = ['h2', 'h3', 'h4', 'h5', 'h6'] as const;\n\nexport type HeadingLevelOptions = (typeof HeadingLevel)[number];\n\nexport const HighlightColours = ['teal', 'gold', 'yellow', 'taupe', 'green', 'lime', 'sky', 'blue', 'purple'] as const;\n\nexport type HighlightColourOptions = (typeof HighlightColours)[number];\n\nexport type CalloutAsideType = 'callout' | 'aside';\n\nexport type HeadingContentType = 'string' | 'html';\n\nexport const HeadingContentTypes = ['string', 'html'] as const;\n\nexport interface CalloutAside extends Base {\n\t/**\n\t * The heading level of the callout/aside heading.\n\t */\n\theadingType?: HeadingLevelOptions;\n\n\t/**\n\t * The type of the heading content. If no prop is passed, it will default to string.\n\t */\n\theadingContentType: HeadingContentType;\n\n\t/**\n\t * Text or HTML to be displayed as the heading of the callout/aside. If the heading content should be displayed as HTML, the `headingContentType` needs to be set to `html`.\n\t */\n\theadingContent?: string;\n\n\t/**\n\t * Optional text to be displayed as the content for the callout/aside component. If a string is passed, it will automatically be nested in a paragraph tag.\n\t *\n\t * HTML content can also be passed as the child/children of the callout/aside component if additional/different elements for the content are needed.\n\t */\n\tcontent?: string | HTMLElement;\n\n\t/**\n\t * Optional prop to choose the border colour of the callout/aside. If none is passed, the default colour will be teal.\n\t */\n\thighlightColor?: HighlightColourOptions | undefined;\n}\n"]}
@@ -40,20 +40,20 @@ const generateHeading = (type, headingType, headingContentType, headingContent)
40
40
  : h('h2', { class: `ontario-${type}__title ontario-h5` }, headingContent);
41
41
  }
42
42
  };
43
- const generateCalloutAside = (type, headingType, headingContentType, headingContent, content, highlightColour) => {
43
+ const generateCalloutAside = (type, headingContentType, headingType, headingContent, content, highlightColour) => {
44
44
  const contentIsString = typeof content === 'string';
45
45
  return type === 'callout'
46
46
  ? h(
47
47
  'div',
48
48
  { class: generateClasses(type, highlightColour) },
49
- generateHeading(type, headingType, headingContentType, headingContent),
49
+ headingContent ? generateHeading(type, headingType, headingContentType, headingContent) : '',
50
50
  contentIsString ? h('p', null, content) : h('slot', null),
51
51
  )
52
52
  : h(
53
53
  'aside',
54
54
  { class: generateClasses(type, highlightColour) },
55
- generateHeading(type, headingType, headingContentType, headingContent),
56
- contentIsString ? h('p', null, content) : h('slot', null),
55
+ headingContent ? generateHeading(type, headingType, headingContentType, headingContent) : '',
56
+ contentIsString ? (content ? h('p', null, content) : '') : h('slot', null),
57
57
  );
58
58
  };
59
59
 
@@ -1 +1 @@
1
- {"file":"callout-aside-helpers.js","mappings":";;AAEO,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAI7D,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC;MAQ1G,mBAAmB,GAAG,CAAC,QAAQ,EAAE,MAAM;;MCJvC,sBAAsB,GAAG,CAAC,MAA8B,KACpE,gBAAgB,CAAC,QAAQ,CAAC,MAAM,EAAE;MAEtB,mBAAmB,GAAG,CAAC,KAA0B,KAC7D,YAAY,CAAC,QAAQ,CAAC,KAAK,EAAE;AAE9B,MAAM,eAAe,GAAG,CAAC,IAAsB,EAAE,cAAuC;IACvF,MAAM,aAAa,GAAG,IAAI,KAAK,SAAS,GAAG,iBAAiB,GAAG,eAAe,CAAC;IAC/E,MAAM,WAAW,GAAG,6BAA6B,cAAc,EAAE,CAAC;IAElE,OAAO,cAAc,GAAG,GAAG,aAAa,IAAI,WAAW,EAAE,GAAG,GAAG,aAAa,EAAE,CAAC;AAChF,CAAC,CAAC;A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AoB,IAAG,cAAc,CAAM,CACrE,CAAC;KACH;AACF,CAAC,CAAC;MAEW,oBAAoB,GAAG,CACnC,IAAsB,EACtB,WAAgC,EAChC,kBAAsC,EACtC,cAAsB,EACtB,OAA8B,EAC9B,eAAwC;IAExC,MAAM,eAAe,GAAG,OAAO,OAAO,KAAK,QAAQ,CAAC;IAEpD,OAAO,IAAI,KAAK,SAAS,IACxB,WAAK,KAAK,EAAE,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC;QAChD,eAAe,CAAC,IAAI,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,CAAC;QACtE,eAAe,GAAG,aAAI,OAAO,CAAK,GAAG,eAAQ,CACzC,KAEN,aAAO,KAAK,EAAE,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC;QAClD,eAAe,CAAC,IAAI,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,CAAC;QACtE,eAAe,GAAG,aAAI,OAAO,CAAK,GAAG,eAAQ,CACvC,CACR,CAAC;AACH;;;;","names":[],"sources":["src/utils/components/callout-aside/callout-aside.interface.ts","src/utils/components/callout-aside/callout-aside-helpers.tsx"],"sourcesContent":["import { Base } from '../../common/common.interface';\n\nexport const HeadingLevel = ['h2', 'h3', 'h4', 'h5', 'h6'] as const;\n\nexport type HeadingLevelOptions = (typeof HeadingLevel)[number];\n\nexport const HighlightColours = ['teal', 'gold', 'yellow', 'taupe', 'green', 'lime', 'sky', 'blue', 'purple'] as const;\n\nexport type HighlightColourOptions = (typeof HighlightColours)[number];\n\nexport type CalloutAsideType = 'callout' | 'aside';\n\nexport type HeadingContentType = 'string' | 'html';\n\nexport const HeadingContentTypes = ['string', 'html'] as const;\n\nexport interface CalloutAside extends Base {\n\t/**\n\t * The heading level of the callout/aside heading.\n\t */\n\theadingType: HeadingLevelOptions;\n\n\t/**\n\t * The type of the heading content. If no prop is passed, it will default to string.\n\t */\n\theadingContentType: HeadingContentType;\n\n\t/**\n\t * Text or HTML to be displayed as the heading of the callout/aside. If the heading content should be displayed as HTML, the `headingContentType` needs to be set to `html`.\n\t */\n\theadingContent: string;\n\n\t/**\n\t * Optional text to be displayed as the content for the callout/aside component. If a string is passed, it will automatically be nested in a paragraph tag.\n\t *\n\t * HTML content can also be passed as the child/children of the callout/aside component if additional/different elements for the content are needed.\n\t */\n\tcontent?: string | HTMLElement;\n\n\t/**\n\t * Optional prop to choose the border colour of the callout/aside. If none is passed, the default colour will be teal.\n\t */\n\thighlightColor?: HighlightColourOptions | undefined;\n}\n","import { h } from '@stencil/core';\nimport {\n\tCalloutAsideType,\n\tHeadingLevel,\n\tHeadingLevelOptions,\n\tHeadingContentType,\n\tHighlightColours,\n\tHighlightColourOptions,\n} from './callout-aside.interface';\n\nexport const isValidHighlightColour = (colour: HighlightColourOptions): colour is HighlightColourOptions =>\n\tHighlightColours.includes(colour);\n\nexport const isValidHeadingLevel = (level: HeadingLevelOptions): level is HeadingLevelOptions =>\n\tHeadingLevel.includes(level);\n\nconst generateClasses = (type: CalloutAsideType, highlightColor?: HighlightColourOptions) => {\n\tconst componentType = type === 'callout' ? `ontario-callout` : `ontario-aside`;\n\tconst borderColor = `ontario-border-highlight--${highlightColor}`;\n\n\treturn highlightColor ? `${componentType} ${borderColor}` : `${componentType}`;\n};\n\nconst generateHeading = (\n\ttype: CalloutAsideType,\n\theadingType: HeadingLevelOptions,\n\theadingContentType: HeadingContentType,\n\theadingContent: string,\n) => {\n\tconst headingContentIsHTML = headingContentType === 'html';\n\n\tswitch (headingType) {\n\t\tcase 'h2':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h2>\n\t\t\t) : (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h2>\n\t\t\t);\n\t\tcase 'h3':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h3 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h3>\n\t\t\t) : (\n\t\t\t\t<h3 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h3>\n\t\t\t);\n\t\tcase 'h4':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h4 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h4>\n\t\t\t) : (\n\t\t\t\t<h4 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h4>\n\t\t\t);\n\t\tcase 'h5':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h5 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h5>\n\t\t\t) : (\n\t\t\t\t<h5 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h5>\n\t\t\t);\n\t\tcase 'h6':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h6 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h6>\n\t\t\t) : (\n\t\t\t\t<h6 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h6>\n\t\t\t);\n\t\tdefault:\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h2>\n\t\t\t) : (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h2>\n\t\t\t);\n\t}\n};\n\nexport const generateCalloutAside = (\n\ttype: CalloutAsideType,\n\theadingType: HeadingLevelOptions,\n\theadingContentType: HeadingContentType,\n\theadingContent: string,\n\tcontent?: string | HTMLElement,\n\thighlightColour?: HighlightColourOptions,\n) => {\n\tconst contentIsString = typeof content === 'string';\n\n\treturn type === 'callout' ? (\n\t\t<div class={generateClasses(type, highlightColour)}>\n\t\t\t{generateHeading(type, headingType, headingContentType, headingContent)}\n\t\t\t{contentIsString ? <p>{content}</p> : <slot />}\n\t\t</div>\n\t) : (\n\t\t<aside class={generateClasses(type, highlightColour)}>\n\t\t\t{generateHeading(type, headingType, headingContentType, headingContent)}\n\t\t\t{contentIsString ? <p>{content}</p> : <slot />}\n\t\t</aside>\n\t);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Q,CACzC,KAEN,aAAO,KAAK,EAAE,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC;QAClD,cAAc,GAAG,eAAe,CAAC,IAAI,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,CAAC,GAAG,EAAE;QAC5F,eAAe,GAAG,OAAO,GAAG,aAAI,OAAO,CAAK,GAAG,EAAE,GAAG,eAAQ,CACtD,CACR,CAAC;AACH;;;;","names":[],"sources":["src/utils/components/callout-aside/callout-aside.interface.ts","src/utils/components/callout-aside/callout-aside-helpers.tsx"],"sourcesContent":["import { Base } from '../../common/common.interface';\n\nexport const HeadingLevel = ['h2', 'h3', 'h4', 'h5', 'h6'] as const;\n\nexport type HeadingLevelOptions = (typeof HeadingLevel)[number];\n\nexport const HighlightColours = ['teal', 'gold', 'yellow', 'taupe', 'green', 'lime', 'sky', 'blue', 'purple'] as const;\n\nexport type HighlightColourOptions = (typeof HighlightColours)[number];\n\nexport type CalloutAsideType = 'callout' | 'aside';\n\nexport type HeadingContentType = 'string' | 'html';\n\nexport const HeadingContentTypes = ['string', 'html'] as const;\n\nexport interface CalloutAside extends Base {\n\t/**\n\t * The heading level of the callout/aside heading.\n\t */\n\theadingType?: HeadingLevelOptions;\n\n\t/**\n\t * The type of the heading content. If no prop is passed, it will default to string.\n\t */\n\theadingContentType: HeadingContentType;\n\n\t/**\n\t * Text or HTML to be displayed as the heading of the callout/aside. If the heading content should be displayed as HTML, the `headingContentType` needs to be set to `html`.\n\t */\n\theadingContent?: string;\n\n\t/**\n\t * Optional text to be displayed as the content for the callout/aside component. If a string is passed, it will automatically be nested in a paragraph tag.\n\t *\n\t * HTML content can also be passed as the child/children of the callout/aside component if additional/different elements for the content are needed.\n\t */\n\tcontent?: string | HTMLElement;\n\n\t/**\n\t * Optional prop to choose the border colour of the callout/aside. If none is passed, the default colour will be teal.\n\t */\n\thighlightColor?: HighlightColourOptions | undefined;\n}\n","import { h } from '@stencil/core';\nimport {\n\tCalloutAsideType,\n\tHeadingLevel,\n\tHeadingLevelOptions,\n\tHeadingContentType,\n\tHighlightColours,\n\tHighlightColourOptions,\n} from './callout-aside.interface';\n\nexport const isValidHighlightColour = (colour: HighlightColourOptions): colour is HighlightColourOptions =>\n\tHighlightColours.includes(colour);\n\nexport const isValidHeadingLevel = (level: HeadingLevelOptions): level is HeadingLevelOptions =>\n\tHeadingLevel.includes(level);\n\nconst generateClasses = (type: CalloutAsideType, highlightColor?: HighlightColourOptions) => {\n\tconst componentType = type === 'callout' ? `ontario-callout` : `ontario-aside`;\n\tconst borderColor = `ontario-border-highlight--${highlightColor}`;\n\n\treturn highlightColor ? `${componentType} ${borderColor}` : `${componentType}`;\n};\n\nconst generateHeading = (\n\ttype: CalloutAsideType,\n\theadingType: HeadingLevelOptions | undefined,\n\theadingContentType: HeadingContentType,\n\theadingContent: string,\n) => {\n\tconst headingContentIsHTML = headingContentType === 'html';\n\n\tswitch (headingType) {\n\t\tcase 'h2':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h2>\n\t\t\t) : (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h2>\n\t\t\t);\n\t\tcase 'h3':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h3 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h3>\n\t\t\t) : (\n\t\t\t\t<h3 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h3>\n\t\t\t);\n\t\tcase 'h4':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h4 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h4>\n\t\t\t) : (\n\t\t\t\t<h4 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h4>\n\t\t\t);\n\t\tcase 'h5':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h5 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h5>\n\t\t\t) : (\n\t\t\t\t<h5 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h5>\n\t\t\t);\n\t\tcase 'h6':\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h6 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h6>\n\t\t\t) : (\n\t\t\t\t<h6 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h6>\n\t\t\t);\n\t\tdefault:\n\t\t\treturn headingContentIsHTML ? (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`} innerHTML={headingContent}></h2>\n\t\t\t) : (\n\t\t\t\t<h2 class={`ontario-${type}__title ontario-h5`}>{headingContent}</h2>\n\t\t\t);\n\t}\n};\n\nexport const generateCalloutAside = (\n\ttype: CalloutAsideType,\n\theadingContentType: HeadingContentType,\n\theadingType?: HeadingLevelOptions,\n\theadingContent?: string,\n\tcontent?: string | HTMLElement,\n\thighlightColour?: HighlightColourOptions,\n) => {\n\tconst contentIsString = typeof content === 'string';\n\n\treturn type === 'callout' ? (\n\t\t<div class={generateClasses(type, highlightColour)}>\n\t\t\t{headingContent ? generateHeading(type, headingType, headingContentType, headingContent) : ''}\n\t\t\t{contentIsString ? <p>{content}</p> : <slot />}\n\t\t</div>\n\t) : (\n\t\t<aside class={generateClasses(type, highlightColour)}>\n\t\t\t{headingContent ? generateHeading(type, headingType, headingContentType, headingContent) : ''}\n\t\t\t{contentIsString ? content ? <p>{content}</p> : '' : <slot />}\n\t\t</aside>\n\t);\n};\n"],"version":3}
@@ -1,6 +1,329 @@
1
1
  import { h } from '@stencil/core/internal/client';
2
+ import { C as CaptionTypes } from './input-caption.types.js';
3
+ import { C as ConsoleMessageClass } from './console-message.js';
2
4
  import { i as isEmpty } from './utils.js';
3
5
 
6
+ var MessageContentType;
7
+ (function (MessageContentType) {
8
+ MessageContentType['UndefinedCaptionObject'] = 'undefinedCaptionObject';
9
+ MessageContentType['UndefinedCaptionText'] = 'undefinedCaption';
10
+ MessageContentType['EmptyCaptionText'] = 'emptyCaption';
11
+ MessageContentType['UndefinedCaptionType'] = 'undefinedCaptionType';
12
+ MessageContentType['IncorrectCaptionType'] = 'incorrectCaptionType';
13
+ })(MessageContentType || (MessageContentType = {}));
14
+
15
+ class InputCaption {
16
+ /**
17
+ * Set the class members
18
+ * Output a console warning message if the provided `label` type is incorrect
19
+ * @param caption object containing the essential data to configure the input label
20
+ */
21
+ constructor(componentTagName, caption, translations, language, isLegend = false, required = false) {
22
+ /**
23
+ * The type of caption to render.
24
+ */
25
+ this.captionType = 'default';
26
+ /**
27
+ * Determine whether the input field is required.
28
+ */
29
+ this.required = false;
30
+ /**
31
+ * Determine whether the rendered element is a `<label>` or `<legend>`.
32
+ */
33
+ this.isLegend = false;
34
+ this.language = 'en';
35
+ /**
36
+ * Return the `<label>` element for text inputs
37
+ * @param captionFor Set the `htmlFor` attribute
38
+ * @returns element containing the caption for the input
39
+ */
40
+ this.getCaption = (captionFor, hasHintExpander = false) => {
41
+ const captionText = this.captionText && this.captionText.toLowerCase();
42
+ const captionContent = this.isLegend
43
+ ? h(
44
+ 'legend',
45
+ { class: this.getClass() },
46
+ this.captionType === 'heading' ? h('h1', null, this.captionText) : this.captionText,
47
+ this.getRequiredFlagElement(),
48
+ hasHintExpander && this.getHintExpanderAccessibilityText(captionText, false),
49
+ )
50
+ : h(
51
+ 'label',
52
+ { htmlFor: captionFor, class: this.getClass() },
53
+ this.captionText,
54
+ this.getRequiredFlagElement(),
55
+ hasHintExpander && this.getHintExpanderAccessibilityText(captionText, false),
56
+ );
57
+ // with `this.captionType` already set to one of the enum values, the comparison no longer needs the `toLowerCase()` transform
58
+ return this.captionType === 'heading' && !this.isLegend ? h('h1', null, captionContent) : captionContent;
59
+ };
60
+ let captionObject;
61
+ if (typeof caption === 'string') {
62
+ try {
63
+ captionObject = JSON.parse(caption);
64
+ } catch (_a) {
65
+ captionObject = { captionText: caption, captionType: 'default' };
66
+ }
67
+ } else {
68
+ captionObject = caption;
69
+ }
70
+ this.componentTagName = componentTagName.toLocaleLowerCase();
71
+ this.captionText = captionObject === null || captionObject === void 0 ? void 0 : captionObject.captionText;
72
+ this.captionType =
73
+ ((captionObject === null || captionObject === void 0 ? void 0 : captionObject.captionType) &&
74
+ CaptionTypes.find((type) => {
75
+ var _a;
76
+ return type === ((_a = captionObject.captionType) === null || _a === void 0 ? void 0 : _a.toLowerCase());
77
+ })) ||
78
+ 'default';
79
+ this.required = required;
80
+ this.isLegend = isLegend;
81
+ this.translations = translations;
82
+ this.language = language;
83
+ this.validateCaption(this);
84
+ }
85
+ getHintExpanderAccessibilityText(captionText, hasHintExpanderOnOption = false) {
86
+ const multipleOptionsMessage = h(
87
+ 'span',
88
+ { class: 'ontario-show-for-sr' },
89
+ this.translations.accessibility.moreInfo[this.language],
90
+ ' "',
91
+ captionText.toLowerCase(),
92
+ '"',
93
+ ' ',
94
+ this.translations.accessibility.checkboxHintExpander[this.language],
95
+ );
96
+ const singleOptionMessage = h(
97
+ 'span',
98
+ { class: 'ontario-show-for-sr' },
99
+ this.translations.accessibility.moreInfo[this.language],
100
+ ' "',
101
+ captionText.toLowerCase(),
102
+ '"',
103
+ ' ',
104
+ this.translations.accessibility.singleHintExpander[this.language],
105
+ );
106
+ return this.componentTagName === 'ontario-checkboxes'
107
+ ? !hasHintExpanderOnOption
108
+ ? multipleOptionsMessage
109
+ : singleOptionMessage
110
+ : singleOptionMessage;
111
+ }
112
+ /**
113
+ * Determines which flag text to use between `required` and `optional`
114
+ * @returns `required` or `optional` flag text
115
+ */
116
+ getRequiredFlagText() {
117
+ return this.required
118
+ ? this.translations && `(${this.translations.required[this.language]})`
119
+ : this.translations && `(${this.translations.optional[this.language]})`;
120
+ }
121
+ /**
122
+ * Get the HTML for the required/optional flag.
123
+ * @returns CSS class for the label/legend.
124
+ */
125
+ getRequiredFlagElement() {
126
+ return h('span', { class: 'ontario-label__flag' }, this.getRequiredFlagText());
127
+ }
128
+ /**
129
+ * Get the CSS class for the `label` element.
130
+ * @returns CSS class for the `label` element.
131
+ */
132
+ getClass() {
133
+ return this.captionType === 'large' || this.captionType === 'heading'
134
+ ? this.isLegend
135
+ ? `ontario-fieldset__legend ontario-fieldset__legend--${this.captionType}`
136
+ : `ontario-label ontario-label--${this.captionType}`
137
+ : this.isLegend
138
+ ? 'ontario-fieldset__legend'
139
+ : 'ontario-label';
140
+ }
141
+ /**
142
+ * Validate caption input by user and output warning message to the console if:
143
+ * 1. the `caption` object is not provided
144
+ * 2. the `captionText` property of the `caption` object is not provided
145
+ * 3. the `captionText` property of the `caption` object is empty or contain only spaces
146
+ * 4. the `captionType` property of the `caption` object is not provided
147
+ * 5. the `captionType` property of the `caption` object is incorrect
148
+ */
149
+ validateCaption(caption) {
150
+ var _a;
151
+ let messageType;
152
+ // undefined `caption` object
153
+ if (!caption || Object.keys(caption).length <= 0) {
154
+ messageType = MessageContentType.UndefinedCaptionObject;
155
+ } else {
156
+ // undefined `captionText` property
157
+ if (!caption.captionText) {
158
+ messageType = MessageContentType.UndefinedCaptionText;
159
+ } else {
160
+ // `captionText` that is empty or contains only spaces
161
+ if (/^\s*$/.test(caption.captionText)) {
162
+ messageType = MessageContentType.EmptyCaptionText;
163
+ }
164
+ }
165
+ // undefined `captionType`
166
+ if (!caption.captionType) {
167
+ messageType = MessageContentType.UndefinedCaptionType;
168
+ } else {
169
+ // incorrect `captionType`
170
+ if (
171
+ !CaptionTypes.includes(
172
+ (_a = caption === null || caption === void 0 ? void 0 : caption.captionType) === null || _a === void 0
173
+ ? void 0
174
+ : _a.toLowerCase(),
175
+ )
176
+ ) {
177
+ messageType = MessageContentType.IncorrectCaptionType;
178
+ }
179
+ }
180
+ }
181
+ if (messageType) {
182
+ const message = new ConsoleMessageClass().addDesignSystemTag();
183
+ if (messageType !== MessageContentType.UndefinedCaptionObject) {
184
+ message
185
+ .addMonospaceText(
186
+ ` ${
187
+ messageType === MessageContentType.EmptyCaptionText ||
188
+ messageType === MessageContentType.UndefinedCaptionText
189
+ ? 'caption or captionText'
190
+ : 'captionType'
191
+ } `,
192
+ )
193
+ .addRegularText('object or property of');
194
+ }
195
+ message.addMonospaceText(' caption ').addRegularText('object on').addMonospaceText(` ${this.componentTagName} `);
196
+ this.printConsoleMessage(messageType, message, this.getRequiredFlagText());
197
+ }
198
+ }
199
+ /**
200
+ * Generate the content of warning message to be printed to the console
201
+ * @param messageType determine the content of warning message to output
202
+ * @param componentTagName the tag name of the component that's emitting the warning message
203
+ * @param requiredFlagText accepts a string value to be used as the required flag text and defaults to `(optional)` if not set
204
+ * @returns an array of `ConsoleMessage` objects containing the message and associated styles to be printed to the console
205
+ */
206
+ printConsoleMessage(messageType, message, requiredFlagText = '(optional)') {
207
+ switch (messageType) {
208
+ // undefinedCaptionObject example: caption object on <ontario-input> is required but not defined. A blank followed by a (optional) flag is assumed.
209
+ // undefinedCaptionText example: captionText property of caption object on <ontario-input> is required but not defined. A blank followed by a (optional) flag is assumed.
210
+ // EmptyCaptionText example: captionText property of caption object on <ontario-input> is empty or contains only spaces. A blank followed by a (optional) flag is assumed.
211
+ case MessageContentType.UndefinedCaptionObject:
212
+ case MessageContentType.UndefinedCaptionText:
213
+ case MessageContentType.EmptyCaptionText:
214
+ message
215
+ .addRegularText(
216
+ `${
217
+ messageType === MessageContentType.EmptyCaptionText
218
+ ? 'is empty or contains only spaces'
219
+ : 'is required but not defined'
220
+ }. A blank followed by a`,
221
+ )
222
+ .addMonospaceText(` ${requiredFlagText} `)
223
+ .addRegularText('flag is assumed.');
224
+ break;
225
+ // UndefinedCaptionType example: captionType property of caption object on <ontario-input> is not defined. The default type is assumed.
226
+ case MessageContentType.UndefinedCaptionType:
227
+ message.addRegularText('is not defined. The').addMonospaceText(' default ').addRegularText('type is assumed.');
228
+ break;
229
+ // IncorrectCaptionType example: captionType property of caption object on <ontario-input> was set to an incorrect type; only default, heading or large type is allowed. The default type is assumed.
230
+ case MessageContentType.IncorrectCaptionType:
231
+ message
232
+ .addRegularText('was set to an incorrect type; only')
233
+ .addMonospaceText(' default, heading, ')
234
+ .addRegularText('or')
235
+ .addMonospaceText(' large ')
236
+ .addRegularText('type is allowed. The')
237
+ .addMonospaceText(' default ')
238
+ .addRegularText('type is assumed.');
239
+ break;
240
+ }
241
+ message.printMessage();
242
+ }
243
+ }
244
+
245
+ var EventType;
246
+ (function (EventType) {
247
+ EventType['Change'] = 'change';
248
+ EventType['Blur'] = 'blur';
249
+ EventType['Focus'] = 'focus';
250
+ EventType['Input'] = 'input';
251
+ })(EventType || (EventType = {}));
252
+
253
+ const handleInputEvent = (
254
+ event,
255
+ eventType,
256
+ input,
257
+ inputChangeEvent,
258
+ inputFocusEvent,
259
+ inputBlurEvent,
260
+ inputInputEvent,
261
+ type,
262
+ customChangeFunction,
263
+ customFocusFunction,
264
+ customBlurFunction,
265
+ customInputFunction,
266
+ hostElement,
267
+ ) => {
268
+ var _a;
269
+ if (eventType === EventType.Input) {
270
+ inputInputEvent === null || inputInputEvent === void 0
271
+ ? void 0
272
+ : inputInputEvent.emit({
273
+ id: input === null || input === void 0 ? void 0 : input.id,
274
+ value: (_a = event.data) !== null && _a !== void 0 ? _a : undefined,
275
+ inputType: event.inputType,
276
+ });
277
+ customInputFunction && customInputFunction(event);
278
+ }
279
+ if (eventType === EventType.Change) {
280
+ if (type === 'radio' || type === 'checkbox') {
281
+ if (input instanceof HTMLInputElement) {
282
+ inputChangeEvent.emit({
283
+ checked: input === null || input === void 0 ? void 0 : input.checked,
284
+ id: input === null || input === void 0 ? void 0 : input.id,
285
+ value: input === null || input === void 0 ? void 0 : input.value,
286
+ });
287
+ }
288
+ } else {
289
+ inputChangeEvent.emit({
290
+ id: input === null || input === void 0 ? void 0 : input.id,
291
+ value: input === null || input === void 0 ? void 0 : input.value,
292
+ });
293
+ }
294
+ customChangeFunction && customChangeFunction(event);
295
+ // Note: Change events don't have composable set to true and don't cross the ShadowDOM boundary.
296
+ // This will emit an event so the normal `onChange` event pattern is maintained.
297
+ hostElement && emitEvent(hostElement, eventType, event);
298
+ }
299
+ if (eventType === EventType.Focus) {
300
+ inputFocusEvent.emit({
301
+ id: input === null || input === void 0 ? void 0 : input.id,
302
+ focused: true,
303
+ value: input === null || input === void 0 ? void 0 : input.value,
304
+ });
305
+ customFocusFunction && customFocusFunction(event);
306
+ }
307
+ if (eventType === EventType.Blur) {
308
+ inputBlurEvent.emit({
309
+ id: input === null || input === void 0 ? void 0 : input.id,
310
+ focused: false,
311
+ value: input === null || input === void 0 ? void 0 : input.value,
312
+ });
313
+ customBlurFunction && customBlurFunction(event);
314
+ }
315
+ };
316
+ /**
317
+ * Emit a custom event that can be subscribed to by an event listener.
318
+ *
319
+ * @param element Component host element, see https://stenciljs.com/docs/host-element
320
+ * @param name name of the event
321
+ * @param detail any relevant details, like the original event
322
+ */
323
+ const emitEvent = (element, name, detail) => {
324
+ element.dispatchEvent(new CustomEvent(name, { composed: true, bubbles: true, detail }));
325
+ };
326
+
4
327
  const ErrorMessage = ({ message, error = false }) => {
5
328
  const hideError = !error || isEmpty(message);
6
329
  return h(
@@ -11,6 +334,6 @@ const ErrorMessage = ({ message, error = false }) => {
11
334
  );
12
335
  };
13
336
 
14
- export { ErrorMessage as E };
337
+ export { ErrorMessage as E, InputCaption as I, EventType as a, emitEvent as e, handleInputEvent as h };
15
338
 
16
339
  //# sourceMappingURL=error-message.js.map