@ongov/ontario-design-system-component-library 4.2.0 → 4.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ontario-accordion_42.cjs.entry.js +286 -249
- package/dist/cjs/ontario-accordion_42.cjs.entry.js.map +1 -1
- package/dist/cjs/ontario-design-system-components.cjs.js +1 -1
- package/dist/cjs/ontario-icon-account.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-add-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-add.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-arrow-up.cjs.entry.js +4 -4
- package/dist/cjs/ontario-icon-attach.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-bookmark-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-bookmark-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-calendar.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-chevron-right.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-clock.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-close-header.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-close.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-cloud.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-collapse.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-credit-card.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-critical-alert-warning.cjs.entry.js +5 -5
- package/dist/cjs/ontario-icon-delete.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-document.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-download.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-dropdown-arrow.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-edit.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-expand.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-export.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-facebook-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-facebook.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-favourite-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-favourite-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-filter.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-flickr.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-grid.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-instagram.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-interac-en-alt.cjs.entry.js +19 -19
- package/dist/cjs/ontario-icon-interac-en.cjs.entry.js +18 -18
- package/dist/cjs/ontario-icon-interac-fr-alt.cjs.entry.js +19 -19
- package/dist/cjs/ontario-icon-interac-fr.cjs.entry.js +12 -12
- package/dist/cjs/ontario-icon-linkedin-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-linkedin.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-list.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-live-chat.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-location-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-location-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-lock-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-lock-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-map.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-mastercard-alt.cjs.entry.js +6 -6
- package/dist/cjs/ontario-icon-media-fast-forward.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-media-fast-rewind.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-media-pause.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-media-play.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-media-stop.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-menu-header.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-menu.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-microphone-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-microphone-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-more-vertical.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-new-window.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-next.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-password-hide.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-password-show.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-phone.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-photo.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-pin-location-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-pin-location-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-previous.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-remove-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-remove.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-replay.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-rss-feed.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-save.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-search-white.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-search.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sentiment-1.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sentiment-2.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sentiment-3.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sentiment-4.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-settings.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-share.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sort.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-tag.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-timer.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-transport-bicycle.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-transport-car.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-transport-walk.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-tty.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-twitter-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-twitter.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-upload.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-video.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-visa.cjs.entry.js +5 -5
- package/dist/cjs/ontario-icon-vote-dislike.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-vote-like.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-vpn-key.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-wheelchair.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-wifi.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-youtube.cjs.entry.js +3 -3
- package/dist/collection/components/ontario-aside/ontario-aside.js +18 -37
- package/dist/collection/components/ontario-aside/ontario-aside.js.map +1 -1
- package/dist/collection/components/ontario-aside/test/ontario-aside.spec.js +35 -0
- package/dist/collection/components/ontario-aside/test/ontario-aside.spec.js.map +1 -1
- package/dist/collection/components/ontario-callout/ontario-callout.js +16 -36
- package/dist/collection/components/ontario-callout/ontario-callout.js.map +1 -1
- package/dist/collection/components/ontario-callout/test/ontario-callout.spec.js +18 -0
- package/dist/collection/components/ontario-callout/test/ontario-callout.spec.js.map +1 -1
- package/dist/collection/components/ontario-card/ontario-card.css +5 -0
- package/dist/collection/components/ontario-card-collection/ontario-card-collection.css +18 -0
- package/dist/collection/components/ontario-checkbox/ontario-checkboxes.css +113 -22
- package/dist/collection/components/ontario-checkbox/ontario-checkboxes.js +52 -3
- package/dist/collection/components/ontario-checkbox/ontario-checkboxes.js.map +1 -1
- package/dist/collection/components/ontario-checkbox/test/ontario-checkboxes.spec.js +4 -0
- package/dist/collection/components/ontario-checkbox/test/ontario-checkboxes.spec.js.map +1 -1
- package/dist/collection/components/ontario-critical-alert/ontario-critical-alert.js +6 -6
- package/dist/collection/components/ontario-date-input/ontario-date-input.css +4 -0
- package/dist/collection/components/ontario-date-input/ontario-date-input.js +4 -4
- package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.css +28 -0
- package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.js +51 -2
- package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.js.map +1 -1
- package/dist/collection/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.js +4 -0
- package/dist/collection/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.js.map +1 -1
- package/dist/collection/components/ontario-fieldset/ontario-fieldset.css +4 -0
- package/dist/collection/components/ontario-fieldset/ontario-fieldset.js +4 -4
- package/dist/collection/components/ontario-footer/components/expanded-footer-wrapper.js.map +1 -1
- package/dist/collection/components/ontario-header/ontario-header.css +5 -1
- package/dist/collection/components/ontario-hint-expander/ontario-hint-expander.js +7 -7
- package/dist/collection/components/ontario-icon/ontario-icon-accessibility.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-account.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-add-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-add.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-alert-error.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-alert-information.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-alert-success.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-alert-warning.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-arrow-up.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-attach.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-bookmark-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-bookmark-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-calendar.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-camera.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-chevron-down.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-chevron-left.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-chevron-right.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-chevron-up.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-clock.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-close-header.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-close.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-cloud.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-collapse.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-credit-card.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-critical-alert-warning.js +5 -5
- package/dist/collection/components/ontario-icon/ontario-icon-delete.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-document.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-download.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-dropdown-arrow.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-edit.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-email.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-expand.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-export.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-facebook-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-facebook.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-favourite-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-favourite-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-filter.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-flickr.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-grid.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-help.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-instagram.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-interac-en-alt.js +19 -19
- package/dist/collection/components/ontario-icon/ontario-icon-interac-en.js +18 -18
- package/dist/collection/components/ontario-icon/ontario-icon-interac-fr-alt.js +19 -19
- package/dist/collection/components/ontario-icon/ontario-icon-interac-fr.js +12 -12
- package/dist/collection/components/ontario-icon/ontario-icon-linkedin-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-linkedin.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-list.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-live-chat.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-location-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-location-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-lock-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-lock-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-map.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-mastercard-alt.js +6 -6
- package/dist/collection/components/ontario-icon/ontario-icon-mastercard.js +9 -9
- package/dist/collection/components/ontario-icon/ontario-icon-media-fast-forward.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-media-fast-rewind.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-media-pause.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-media-play.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-media-stop.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-menu-header.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-menu.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-microphone-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-microphone-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-more-vertical.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-new-window.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-next.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-notification.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-password-hide.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-password-show.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-phone.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-photo.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-pin-location-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-pin-location-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-previous.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-print.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-remove-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-remove.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-replay.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-rss-feed.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-save.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-search-white.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-search.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-1.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-2.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-3.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-4.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-5.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-settings.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-share.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sort.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-tag.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-text-message.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-timer.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-transport-bicycle.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-transport-bus.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-transport-car.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-transport-walk.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-tty.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-twitter-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-twitter.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-upload.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-video.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-visa.js +5 -5
- package/dist/collection/components/ontario-icon/ontario-icon-vote-dislike.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-vote-like.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-vpn-key.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-wheelchair.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-wifi.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-youtube.js +3 -3
- package/dist/collection/components/ontario-input/ontario-input.css +4 -0
- package/dist/collection/components/ontario-input/ontario-input.js +3 -3
- package/dist/collection/components/ontario-language-toggle/ontario-language-toggle.js +1 -1
- package/dist/collection/components/ontario-page-alert/ontario-page-alert.js +5 -5
- package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.css +77 -1
- package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.js +56 -3
- package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.js.map +1 -1
- package/dist/collection/components/ontario-radio-buttons/test/ontario-radio-button.spec.js +6 -1
- package/dist/collection/components/ontario-radio-buttons/test/ontario-radio-button.spec.js.map +1 -1
- package/dist/collection/components/ontario-step-indicator/ontario-step-indicator.js +5 -5
- package/dist/collection/components/ontario-table/ontario-table.js +5 -5
- package/dist/collection/components/ontario-textarea/ontario-textarea.css +28 -0
- package/dist/collection/components/ontario-textarea/ontario-textarea.js +54 -2
- package/dist/collection/components/ontario-textarea/ontario-textarea.js.map +1 -1
- package/dist/collection/components/ontario-textarea/test/ontario-textarea.spec.js +4 -0
- package/dist/collection/components/ontario-textarea/test/ontario-textarea.spec.js.map +1 -1
- package/dist/collection/utils/components/callout-aside/callout-aside-helpers.js +4 -4
- package/dist/collection/utils/components/callout-aside/callout-aside-helpers.js.map +1 -1
- package/dist/collection/utils/components/callout-aside/callout-aside.interface.js.map +1 -1
- package/dist/components/callout-aside-helpers.js +4 -4
- package/dist/components/callout-aside-helpers.js.map +1 -1
- package/dist/components/error-message.js +324 -1
- package/dist/components/error-message.js.map +1 -1
- package/dist/components/ontario-aside.js +13 -31
- package/dist/components/ontario-aside.js.map +1 -1
- package/dist/components/ontario-callout.js +12 -30
- package/dist/components/ontario-callout.js.map +1 -1
- package/dist/components/ontario-card-collection.js +1 -1
- package/dist/components/ontario-card-collection.js.map +1 -1
- package/dist/components/ontario-card.js +1 -1
- package/dist/components/ontario-card.js.map +1 -1
- package/dist/components/ontario-checkboxes.js +34 -8
- package/dist/components/ontario-checkboxes.js.map +1 -1
- package/dist/components/ontario-critical-alert.js +6 -6
- package/dist/components/ontario-date-input.js +6 -7
- package/dist/components/ontario-date-input.js.map +1 -1
- package/dist/components/ontario-dropdown-list.js +29 -7
- package/dist/components/ontario-dropdown-list.js.map +1 -1
- package/dist/components/ontario-fieldset.js +5 -5
- package/dist/components/ontario-fieldset.js.map +1 -1
- package/dist/components/ontario-footer.js.map +1 -1
- package/dist/components/ontario-header.js +1 -1
- package/dist/components/ontario-header.js.map +1 -1
- package/dist/components/ontario-hint-expander2.js +7 -7
- package/dist/components/ontario-icon-accessibility.js +3 -3
- package/dist/components/ontario-icon-account.js +3 -3
- package/dist/components/ontario-icon-add-alt.js +3 -3
- package/dist/components/ontario-icon-add.js +3 -3
- package/dist/components/ontario-icon-alert-error2.js +4 -4
- package/dist/components/ontario-icon-alert-information2.js +4 -4
- package/dist/components/ontario-icon-alert-success2.js +4 -4
- package/dist/components/ontario-icon-alert-warning2.js +4 -4
- package/dist/components/ontario-icon-arrow-up.js +4 -4
- package/dist/components/ontario-icon-attach.js +3 -3
- package/dist/components/ontario-icon-bookmark-off.js +3 -3
- package/dist/components/ontario-icon-bookmark-on.js +3 -3
- package/dist/components/ontario-icon-calendar.js +3 -3
- package/dist/components/ontario-icon-camera.js +3 -3
- package/dist/components/ontario-icon-chevron-down2.js +3 -3
- package/dist/components/ontario-icon-chevron-left2.js +3 -3
- package/dist/components/ontario-icon-chevron-right.js +3 -3
- package/dist/components/ontario-icon-chevron-up2.js +3 -3
- package/dist/components/ontario-icon-clock.js +3 -3
- package/dist/components/ontario-icon-close-header.js +3 -3
- package/dist/components/ontario-icon-close.js +3 -3
- package/dist/components/ontario-icon-cloud.js +3 -3
- package/dist/components/ontario-icon-collapse.js +3 -3
- package/dist/components/ontario-icon-credit-card.js +3 -3
- package/dist/components/ontario-icon-critical-alert-warning.js +5 -5
- package/dist/components/ontario-icon-delete.js +3 -3
- package/dist/components/ontario-icon-document.js +3 -3
- package/dist/components/ontario-icon-download.js +3 -3
- package/dist/components/ontario-icon-dropdown-arrow.js +3 -3
- package/dist/components/ontario-icon-edit.js +3 -3
- package/dist/components/ontario-icon-email.js +3 -3
- package/dist/components/ontario-icon-expand.js +3 -3
- package/dist/components/ontario-icon-export.js +3 -3
- package/dist/components/ontario-icon-facebook-alt.js +3 -3
- package/dist/components/ontario-icon-facebook.js +3 -3
- package/dist/components/ontario-icon-favourite-off.js +3 -3
- package/dist/components/ontario-icon-favourite-on.js +3 -3
- package/dist/components/ontario-icon-filter.js +3 -3
- package/dist/components/ontario-icon-flickr.js +3 -3
- package/dist/components/ontario-icon-grid.js +3 -3
- package/dist/components/ontario-icon-help.js +3 -3
- package/dist/components/ontario-icon-instagram.js +3 -3
- package/dist/components/ontario-icon-interac-en-alt.js +19 -19
- package/dist/components/ontario-icon-interac-en.js +18 -18
- package/dist/components/ontario-icon-interac-fr-alt.js +19 -19
- package/dist/components/ontario-icon-interac-fr.js +12 -12
- package/dist/components/ontario-icon-linkedin-alt.js +3 -3
- package/dist/components/ontario-icon-linkedin.js +3 -3
- package/dist/components/ontario-icon-list.js +3 -3
- package/dist/components/ontario-icon-live-chat.js +3 -3
- package/dist/components/ontario-icon-location-off.js +3 -3
- package/dist/components/ontario-icon-location-on.js +3 -3
- package/dist/components/ontario-icon-lock-off.js +3 -3
- package/dist/components/ontario-icon-lock-on.js +3 -3
- package/dist/components/ontario-icon-map.js +3 -3
- package/dist/components/ontario-icon-mastercard-alt.js +6 -6
- package/dist/components/ontario-icon-mastercard.js +9 -9
- package/dist/components/ontario-icon-media-fast-forward.js +3 -3
- package/dist/components/ontario-icon-media-fast-rewind.js +3 -3
- package/dist/components/ontario-icon-media-pause.js +3 -3
- package/dist/components/ontario-icon-media-play.js +3 -3
- package/dist/components/ontario-icon-media-stop.js +3 -3
- package/dist/components/ontario-icon-menu-header.js +3 -3
- package/dist/components/ontario-icon-menu.js +3 -3
- package/dist/components/ontario-icon-microphone-off.js +3 -3
- package/dist/components/ontario-icon-microphone-on.js +3 -3
- package/dist/components/ontario-icon-more-vertical.js +3 -3
- package/dist/components/ontario-icon-new-window.js +3 -3
- package/dist/components/ontario-icon-next.js +3 -3
- package/dist/components/ontario-icon-notification.js +3 -3
- package/dist/components/ontario-icon-password-hide.js +3 -3
- package/dist/components/ontario-icon-password-show.js +3 -3
- package/dist/components/ontario-icon-phone.js +3 -3
- package/dist/components/ontario-icon-photo.js +3 -3
- package/dist/components/ontario-icon-pin-location-off.js +3 -3
- package/dist/components/ontario-icon-pin-location-on.js +3 -3
- package/dist/components/ontario-icon-previous.js +3 -3
- package/dist/components/ontario-icon-print.js +3 -3
- package/dist/components/ontario-icon-remove-alt.js +3 -3
- package/dist/components/ontario-icon-remove.js +3 -3
- package/dist/components/ontario-icon-replay.js +3 -3
- package/dist/components/ontario-icon-rss-feed.js +3 -3
- package/dist/components/ontario-icon-save.js +3 -3
- package/dist/components/ontario-icon-search-white.js +3 -3
- package/dist/components/ontario-icon-search.js +3 -3
- package/dist/components/ontario-icon-sentiment-1.js +3 -3
- package/dist/components/ontario-icon-sentiment-2.js +3 -3
- package/dist/components/ontario-icon-sentiment-3.js +3 -3
- package/dist/components/ontario-icon-sentiment-4.js +3 -3
- package/dist/components/ontario-icon-sentiment-5.js +3 -3
- package/dist/components/ontario-icon-settings.js +3 -3
- package/dist/components/ontario-icon-share.js +3 -3
- package/dist/components/ontario-icon-sort.js +3 -3
- package/dist/components/ontario-icon-tag.js +3 -3
- package/dist/components/ontario-icon-text-message.js +3 -3
- package/dist/components/ontario-icon-timer.js +3 -3
- package/dist/components/ontario-icon-transport-bicycle.js +3 -3
- package/dist/components/ontario-icon-transport-bus.js +3 -3
- package/dist/components/ontario-icon-transport-car.js +3 -3
- package/dist/components/ontario-icon-transport-walk.js +3 -3
- package/dist/components/ontario-icon-tty.js +3 -3
- package/dist/components/ontario-icon-twitter-alt.js +3 -3
- package/dist/components/ontario-icon-twitter.js +3 -3
- package/dist/components/ontario-icon-upload.js +3 -3
- package/dist/components/ontario-icon-video.js +3 -3
- package/dist/components/ontario-icon-visa.js +5 -5
- package/dist/components/ontario-icon-vote-dislike.js +3 -3
- package/dist/components/ontario-icon-vote-like.js +3 -3
- package/dist/components/ontario-icon-vpn-key.js +3 -3
- package/dist/components/ontario-icon-wheelchair.js +3 -3
- package/dist/components/ontario-icon-wifi.js +3 -3
- package/dist/components/ontario-icon-youtube.js +3 -3
- package/dist/components/ontario-input.js +5 -6
- package/dist/components/ontario-input.js.map +1 -1
- package/dist/components/ontario-language-toggle2.js +1 -1
- package/dist/components/ontario-page-alert.js +5 -5
- package/dist/components/ontario-radio-buttons.js +34 -8
- package/dist/components/ontario-radio-buttons.js.map +1 -1
- package/dist/components/ontario-step-indicator.js +5 -5
- package/dist/components/ontario-table.js +5 -5
- package/dist/components/ontario-textarea.js +32 -7
- package/dist/components/ontario-textarea.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ontario-accordion_42.entry.js +274 -249
- package/dist/esm/ontario-accordion_42.entry.js.map +1 -1
- package/dist/esm/ontario-design-system-components.js +1 -1
- package/dist/esm/ontario-icon-account.entry.js +3 -3
- package/dist/esm/ontario-icon-add-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-add.entry.js +3 -3
- package/dist/esm/ontario-icon-arrow-up.entry.js +4 -4
- package/dist/esm/ontario-icon-attach.entry.js +3 -3
- package/dist/esm/ontario-icon-bookmark-off.entry.js +3 -3
- package/dist/esm/ontario-icon-bookmark-on.entry.js +3 -3
- package/dist/esm/ontario-icon-calendar.entry.js +3 -3
- package/dist/esm/ontario-icon-chevron-right.entry.js +3 -3
- package/dist/esm/ontario-icon-clock.entry.js +3 -3
- package/dist/esm/ontario-icon-close-header.entry.js +3 -3
- package/dist/esm/ontario-icon-close.entry.js +3 -3
- package/dist/esm/ontario-icon-cloud.entry.js +3 -3
- package/dist/esm/ontario-icon-collapse.entry.js +3 -3
- package/dist/esm/ontario-icon-credit-card.entry.js +3 -3
- package/dist/esm/ontario-icon-critical-alert-warning.entry.js +5 -5
- package/dist/esm/ontario-icon-delete.entry.js +3 -3
- package/dist/esm/ontario-icon-document.entry.js +3 -3
- package/dist/esm/ontario-icon-download.entry.js +3 -3
- package/dist/esm/ontario-icon-dropdown-arrow.entry.js +3 -3
- package/dist/esm/ontario-icon-edit.entry.js +3 -3
- package/dist/esm/ontario-icon-expand.entry.js +3 -3
- package/dist/esm/ontario-icon-export.entry.js +3 -3
- package/dist/esm/ontario-icon-facebook-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-facebook.entry.js +3 -3
- package/dist/esm/ontario-icon-favourite-off.entry.js +3 -3
- package/dist/esm/ontario-icon-favourite-on.entry.js +3 -3
- package/dist/esm/ontario-icon-filter.entry.js +3 -3
- package/dist/esm/ontario-icon-flickr.entry.js +3 -3
- package/dist/esm/ontario-icon-grid.entry.js +3 -3
- package/dist/esm/ontario-icon-instagram.entry.js +3 -3
- package/dist/esm/ontario-icon-interac-en-alt.entry.js +19 -19
- package/dist/esm/ontario-icon-interac-en.entry.js +18 -18
- package/dist/esm/ontario-icon-interac-fr-alt.entry.js +19 -19
- package/dist/esm/ontario-icon-interac-fr.entry.js +12 -12
- package/dist/esm/ontario-icon-linkedin-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-linkedin.entry.js +3 -3
- package/dist/esm/ontario-icon-list.entry.js +3 -3
- package/dist/esm/ontario-icon-live-chat.entry.js +3 -3
- package/dist/esm/ontario-icon-location-off.entry.js +3 -3
- package/dist/esm/ontario-icon-location-on.entry.js +3 -3
- package/dist/esm/ontario-icon-lock-off.entry.js +3 -3
- package/dist/esm/ontario-icon-lock-on.entry.js +3 -3
- package/dist/esm/ontario-icon-map.entry.js +3 -3
- package/dist/esm/ontario-icon-mastercard-alt.entry.js +6 -6
- package/dist/esm/ontario-icon-media-fast-forward.entry.js +3 -3
- package/dist/esm/ontario-icon-media-fast-rewind.entry.js +3 -3
- package/dist/esm/ontario-icon-media-pause.entry.js +3 -3
- package/dist/esm/ontario-icon-media-play.entry.js +3 -3
- package/dist/esm/ontario-icon-media-stop.entry.js +3 -3
- package/dist/esm/ontario-icon-menu-header.entry.js +3 -3
- package/dist/esm/ontario-icon-menu.entry.js +3 -3
- package/dist/esm/ontario-icon-microphone-off.entry.js +3 -3
- package/dist/esm/ontario-icon-microphone-on.entry.js +3 -3
- package/dist/esm/ontario-icon-more-vertical.entry.js +3 -3
- package/dist/esm/ontario-icon-new-window.entry.js +3 -3
- package/dist/esm/ontario-icon-next.entry.js +3 -3
- package/dist/esm/ontario-icon-password-hide.entry.js +3 -3
- package/dist/esm/ontario-icon-password-show.entry.js +3 -3
- package/dist/esm/ontario-icon-phone.entry.js +3 -3
- package/dist/esm/ontario-icon-photo.entry.js +3 -3
- package/dist/esm/ontario-icon-pin-location-off.entry.js +3 -3
- package/dist/esm/ontario-icon-pin-location-on.entry.js +3 -3
- package/dist/esm/ontario-icon-previous.entry.js +3 -3
- package/dist/esm/ontario-icon-remove-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-remove.entry.js +3 -3
- package/dist/esm/ontario-icon-replay.entry.js +3 -3
- package/dist/esm/ontario-icon-rss-feed.entry.js +3 -3
- package/dist/esm/ontario-icon-save.entry.js +3 -3
- package/dist/esm/ontario-icon-search-white.entry.js +3 -3
- package/dist/esm/ontario-icon-search.entry.js +3 -3
- package/dist/esm/ontario-icon-sentiment-1.entry.js +3 -3
- package/dist/esm/ontario-icon-sentiment-2.entry.js +3 -3
- package/dist/esm/ontario-icon-sentiment-3.entry.js +3 -3
- package/dist/esm/ontario-icon-sentiment-4.entry.js +3 -3
- package/dist/esm/ontario-icon-settings.entry.js +3 -3
- package/dist/esm/ontario-icon-share.entry.js +3 -3
- package/dist/esm/ontario-icon-sort.entry.js +3 -3
- package/dist/esm/ontario-icon-tag.entry.js +3 -3
- package/dist/esm/ontario-icon-timer.entry.js +3 -3
- package/dist/esm/ontario-icon-transport-bicycle.entry.js +3 -3
- package/dist/esm/ontario-icon-transport-car.entry.js +3 -3
- package/dist/esm/ontario-icon-transport-walk.entry.js +3 -3
- package/dist/esm/ontario-icon-tty.entry.js +3 -3
- package/dist/esm/ontario-icon-twitter-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-twitter.entry.js +3 -3
- package/dist/esm/ontario-icon-upload.entry.js +3 -3
- package/dist/esm/ontario-icon-video.entry.js +3 -3
- package/dist/esm/ontario-icon-visa.entry.js +5 -5
- package/dist/esm/ontario-icon-vote-dislike.entry.js +3 -3
- package/dist/esm/ontario-icon-vote-like.entry.js +3 -3
- package/dist/esm/ontario-icon-vpn-key.entry.js +3 -3
- package/dist/esm/ontario-icon-wheelchair.entry.js +3 -3
- package/dist/esm/ontario-icon-wifi.entry.js +3 -3
- package/dist/esm/ontario-icon-youtube.entry.js +3 -3
- package/dist/ontario-design-system-components/ontario-design-system-components.css +3 -0
- package/dist/ontario-design-system-components/ontario-design-system-components.esm.js +3 -3
- package/dist/ontario-design-system-components/ontario-design-system-components.esm.js.map +1 -1
- package/{www/build/p-9eb84b8a.entry.js → dist/ontario-design-system-components/p-01f427db.entry.js} +4 -4
- package/{www/build/p-076fbd17.entry.js → dist/ontario-design-system-components/p-04fb2b1f.entry.js} +4 -4
- package/{www/build/p-5af55b3a.entry.js → dist/ontario-design-system-components/p-0aea8df7.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-c75f5396.entry.js → p-0f8e5a0c.entry.js} +24 -24
- package/dist/ontario-design-system-components/{p-ac72bccb.entry.js → p-0fa6ba1b.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-6e62de52.entry.js → p-10899c2d.entry.js} +21 -21
- package/dist/ontario-design-system-components/{p-c290df94.entry.js → p-122e8c93.entry.js} +372 -343
- package/dist/ontario-design-system-components/p-122e8c93.entry.js.map +1 -0
- package/{www/build/p-0f9e2d2c.entry.js → dist/ontario-design-system-components/p-12d41776.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-72c7c4aa.entry.js → p-1526e1f3.entry.js} +4 -4
- package/{www/build/p-32ecc2eb.entry.js → dist/ontario-design-system-components/p-1567ea71.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-8bae2e2d.entry.js → p-16dc2584.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-e18cb3eb.entry.js → p-17409379.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-5fa28101.entry.js → p-1cd78ef5.entry.js} +7 -7
- package/{www/build/p-5ef6f597.entry.js → dist/ontario-design-system-components/p-21b80693.entry.js} +9 -9
- package/{www/build/p-635feedf.entry.js → dist/ontario-design-system-components/p-2a6e912e.entry.js} +11 -11
- package/dist/ontario-design-system-components/{p-f88fe1bd.entry.js → p-3218a141.entry.js} +4 -4
- package/{www/build/p-6efbc44d.entry.js → dist/ontario-design-system-components/p-32666b1a.entry.js} +9 -9
- package/{www/build/p-a596839c.entry.js → dist/ontario-design-system-components/p-34371cd7.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-e21b53a2.entry.js → p-35681159.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-ffe78c79.entry.js → p-3868d245.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-78d9f49e.entry.js → p-39ab52ad.entry.js} +4 -4
- package/{www/build/p-71a2dd36.entry.js → dist/ontario-design-system-components/p-3b1c06b1.entry.js} +4 -4
- package/{www/build/p-8c3a8ddc.entry.js → dist/ontario-design-system-components/p-3cca2f28.entry.js} +47 -47
- package/dist/ontario-design-system-components/{p-db4a37a3.entry.js → p-3fb5a2f5.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-2e894229.entry.js → p-404f3050.entry.js} +4 -4
- package/{www/build/p-e402f3b8.entry.js → dist/ontario-design-system-components/p-446337ea.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-fd039069.entry.js → p-44fe73c2.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-5dae140f.entry.js → p-47b56153.entry.js} +4 -4
- package/{www/build/p-cef09b28.entry.js → dist/ontario-design-system-components/p-4f1683c0.entry.js} +4 -4
- package/{www/build/p-8ee66922.entry.js → dist/ontario-design-system-components/p-5128c0bb.entry.js} +7 -7
- package/dist/ontario-design-system-components/{p-191d8da8.entry.js → p-5184701e.entry.js} +6 -6
- package/dist/ontario-design-system-components/{p-34f2d1b1.entry.js → p-533a039a.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-c1723522.entry.js → p-564a51a5.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-a558baf0.entry.js → p-5a775ff3.entry.js} +4 -4
- package/{www/build/p-64642937.entry.js → dist/ontario-design-system-components/p-61548ae2.entry.js} +7 -7
- package/{www/build/p-107b5f8f.entry.js → dist/ontario-design-system-components/p-6477890e.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-091b695a.entry.js → p-6a62b87d.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-fcb2cadf.entry.js → p-6c85610c.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-3522193d.entry.js → p-6df12aab.entry.js} +24 -24
- package/dist/ontario-design-system-components/{p-c14d49ab.entry.js → p-6fb80d3b.entry.js} +4 -4
- package/{www/build/p-b2270cd5.entry.js → dist/ontario-design-system-components/p-7738a68d.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-31f3c62d.entry.js → p-7a822cb8.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-c90c72e0.entry.js → p-7afdef3f.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-75d5df20.entry.js → p-7c593bd8.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-15417698.entry.js → p-7f8d2db6.entry.js} +7 -7
- package/{www/build/p-2d987bdb.entry.js → dist/ontario-design-system-components/p-80d23c2c.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-8dacd96c.entry.js → p-8653b9a6.entry.js} +9 -9
- package/{www/build/p-a4e527cb.entry.js → dist/ontario-design-system-components/p-86849b43.entry.js} +4 -4
- package/{www/build/p-f91476fd.entry.js → dist/ontario-design-system-components/p-87fb19b5.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-81c8e9f0.entry.js → p-8973affb.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-bdd5c0cd.entry.js → p-8b743603.entry.js} +4 -4
- package/{www/build/p-360d6b10.entry.js → dist/ontario-design-system-components/p-8ed8323f.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-83144457.entry.js → p-95671e82.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-4e7bb7e6.entry.js → p-965f968c.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-c08b85f3.entry.js → p-981933f3.entry.js} +4 -4
- package/{www/build/p-86997e62.entry.js → dist/ontario-design-system-components/p-9c9d49a3.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-508bd33a.entry.js → p-9cab9d12.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-98642cf0.entry.js → p-9ffdf9ad.entry.js} +7 -7
- package/{www/build/p-00c121e9.entry.js → dist/ontario-design-system-components/p-a168d607.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-557d211e.entry.js → p-a2461cfc.entry.js} +4 -4
- package/{www/build/p-eebc769a.entry.js → dist/ontario-design-system-components/p-a33f978b.entry.js} +4 -4
- package/{www/build/p-3c5c66df.entry.js → dist/ontario-design-system-components/p-a80d7066.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-283c67bd.entry.js → p-adbbd012.entry.js} +12 -12
- package/dist/ontario-design-system-components/{p-d6942c50.entry.js → p-af8d070d.entry.js} +12 -12
- package/dist/ontario-design-system-components/{p-2d7fc382.entry.js → p-b1596322.entry.js} +7 -7
- package/{www/build/p-fc7a8df4.entry.js → dist/ontario-design-system-components/p-b428f67a.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-92e1ad8b.entry.js → p-b52ef7dc.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-9a52f817.entry.js → p-b83a30cf.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-01d17804.entry.js → p-ba5dc106.entry.js} +4 -4
- package/{www/build/p-c16792b1.entry.js → dist/ontario-design-system-components/p-bad1e757.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-151fc1fa.entry.js → p-baf6249e.entry.js} +10 -10
- package/dist/ontario-design-system-components/{p-c8f2ccf5.entry.js → p-bb072cb8.entry.js} +9 -9
- package/{www/build/p-ac5451d3.entry.js → dist/ontario-design-system-components/p-be4fbe09.entry.js} +6 -6
- package/dist/ontario-design-system-components/{p-20493ac1.entry.js → p-c69e5796.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-128d7d9c.entry.js → p-c6d771f1.entry.js} +4 -4
- package/{www/build/p-c84fd6f3.entry.js → dist/ontario-design-system-components/p-c779e248.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-6ae89bbc.entry.js → p-cb21b1a3.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-88722311.entry.js → p-ce1fa4bd.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-02c38199.entry.js → p-d733ba28.entry.js} +4 -4
- package/{www/build/p-35fe7d9d.entry.js → dist/ontario-design-system-components/p-d8e9546c.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-f0a53d8d.entry.js → p-daca3528.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-302c4671.entry.js → p-e51793eb.entry.js} +4 -4
- package/{www/build/p-608d5068.entry.js → dist/ontario-design-system-components/p-e6c90ae8.entry.js} +4 -4
- package/{www/build/p-cad51f9e.entry.js → dist/ontario-design-system-components/p-e87fde13.entry.js} +4 -4
- package/{www/build/p-9e9f6184.entry.js → dist/ontario-design-system-components/p-e952d94f.entry.js} +4 -4
- package/{www/build/p-3d27e2f8.entry.js → dist/ontario-design-system-components/p-e96e36ff.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-131d1f76.entry.js → p-eb4faafb.entry.js} +7 -7
- package/{www/build/p-812fc78e.entry.js → dist/ontario-design-system-components/p-ecbcd457.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-4bf52401.entry.js → p-ed2d68e1.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-ddb66bbb.entry.js → p-f0ca3e20.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-1700035e.entry.js → p-f125e857.entry.js} +13 -13
- package/{www/build/p-cc653027.entry.js → dist/ontario-design-system-components/p-f45d1e6b.entry.js} +4 -4
- package/{www/build/p-a365505f.entry.js → dist/ontario-design-system-components/p-f8c4ff40.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-abafe472.entry.js → p-f8cbec7c.entry.js} +4 -4
- package/{www/build/p-87897e51.entry.js → dist/ontario-design-system-components/p-fb1a144e.entry.js} +10 -10
- package/{www/build/p-33554950.entry.js → dist/ontario-design-system-components/p-fe487325.entry.js} +4 -4
- package/dist/types/components/ontario-aside/ontario-aside.d.ts +2 -8
- package/dist/types/components/ontario-callout/ontario-callout.d.ts +2 -8
- package/dist/types/components/ontario-checkbox/ontario-checkboxes.d.ts +11 -0
- package/dist/types/components/ontario-dropdown-list/ontario-dropdown-list.d.ts +11 -0
- package/dist/types/components/ontario-radio-buttons/ontario-radio-buttons.d.ts +11 -0
- package/dist/types/components/ontario-textarea/ontario-textarea.d.ts +12 -0
- package/dist/types/components.d.ts +56 -4
- package/dist/types/utils/components/callout-aside/callout-aside-helpers.d.ts +2 -2
- package/dist/types/utils/components/callout-aside/callout-aside.interface.d.ts +2 -2
- package/package.json +3 -3
- package/src/components/ontario-aside/ontario-aside.tsx +15 -33
- package/src/components/ontario-aside/readme.md +3 -3
- package/src/components/ontario-aside/test/ontario-aside.spec.tsx +39 -0
- package/src/components/ontario-callout/ontario-callout.tsx +14 -32
- package/src/components/ontario-callout/readme.md +2 -2
- package/src/components/ontario-callout/test/ontario-callout.spec.tsx +20 -0
- package/src/components/ontario-card/ontario-card.scss +5 -0
- package/src/components/ontario-card-collection/ontario-card-collection.scss +15 -0
- package/src/components/ontario-checkbox/ontario-checkboxes.scss +13 -5
- package/src/components/ontario-checkbox/ontario-checkboxes.tsx +20 -2
- package/src/components/ontario-checkbox/readme.md +9 -5
- package/src/components/ontario-checkbox/test/ontario-checkboxes.spec.tsx +4 -0
- package/src/components/ontario-dropdown-list/ontario-dropdown-list.scss +9 -0
- package/src/components/ontario-dropdown-list/ontario-dropdown-list.tsx +20 -1
- package/src/components/ontario-dropdown-list/readme.md +9 -5
- package/src/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.tsx +4 -0
- package/src/components/ontario-footer/components/expanded-footer-wrapper.tsx +1 -1
- package/src/components/ontario-header/ontario-header.scss +5 -1
- package/src/components/ontario-radio-buttons/ontario-radio-buttons.scss +3 -0
- package/src/components/ontario-radio-buttons/ontario-radio-buttons.tsx +21 -2
- package/src/components/ontario-radio-buttons/readme.md +9 -5
- package/src/components/ontario-radio-buttons/test/ontario-radio-button.spec.tsx +6 -1
- package/src/components/ontario-textarea/ontario-textarea.scss +9 -0
- package/src/components/ontario-textarea/ontario-textarea.tsx +20 -1
- package/src/components/ontario-textarea/readme.md +10 -6
- package/src/components/ontario-textarea/test/__snapshots__/ontario-textarea.spec.tsx.snap +5 -1
- package/src/components/ontario-textarea/test/ontario-textarea.spec.tsx +4 -1
- package/src/components.d.ts +56 -4
- package/src/index.html +15 -0
- package/src/utils/components/callout-aside/callout-aside-helpers.tsx +6 -6
- package/src/utils/components/callout-aside/callout-aside.interface.ts +2 -2
- package/www/build/ontario-design-system-components.css +3 -0
- package/www/build/ontario-design-system-components.esm.js +3 -3
- package/www/build/ontario-design-system-components.esm.js.map +1 -1
- package/www/build/{p-12d6190c.css → p-016eeaf2.css} +3 -0
- package/{dist/ontario-design-system-components/p-9eb84b8a.entry.js → www/build/p-01f427db.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-076fbd17.entry.js → www/build/p-04fb2b1f.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-5af55b3a.entry.js → www/build/p-0aea8df7.entry.js} +9 -9
- package/www/build/{p-c75f5396.entry.js → p-0f8e5a0c.entry.js} +24 -24
- package/www/build/{p-ac72bccb.entry.js → p-0fa6ba1b.entry.js} +4 -4
- package/www/build/{p-6e62de52.entry.js → p-10899c2d.entry.js} +21 -21
- package/www/build/{p-c290df94.entry.js → p-122e8c93.entry.js} +372 -343
- package/www/build/p-122e8c93.entry.js.map +1 -0
- package/{dist/ontario-design-system-components/p-0f9e2d2c.entry.js → www/build/p-12d41776.entry.js} +4 -4
- package/www/build/{p-72c7c4aa.entry.js → p-1526e1f3.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-32ecc2eb.entry.js → www/build/p-1567ea71.entry.js} +4 -4
- package/www/build/{p-8bae2e2d.entry.js → p-16dc2584.entry.js} +4 -4
- package/www/build/{p-e18cb3eb.entry.js → p-17409379.entry.js} +4 -4
- package/www/build/{p-5fa28101.entry.js → p-1cd78ef5.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-5ef6f597.entry.js → www/build/p-21b80693.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-635feedf.entry.js → www/build/p-2a6e912e.entry.js} +11 -11
- package/www/build/{p-f88fe1bd.entry.js → p-3218a141.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-6efbc44d.entry.js → www/build/p-32666b1a.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-a596839c.entry.js → www/build/p-34371cd7.entry.js} +4 -4
- package/www/build/{p-e21b53a2.entry.js → p-35681159.entry.js} +4 -4
- package/www/build/{p-ffe78c79.entry.js → p-3868d245.entry.js} +4 -4
- package/www/build/{p-78d9f49e.entry.js → p-39ab52ad.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-71a2dd36.entry.js → www/build/p-3b1c06b1.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-8c3a8ddc.entry.js → www/build/p-3cca2f28.entry.js} +47 -47
- package/www/build/{p-db4a37a3.entry.js → p-3fb5a2f5.entry.js} +4 -4
- package/www/build/{p-2e894229.entry.js → p-404f3050.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-e402f3b8.entry.js → www/build/p-446337ea.entry.js} +9 -9
- package/www/build/{p-fd039069.entry.js → p-44fe73c2.entry.js} +4 -4
- package/www/build/{p-5dae140f.entry.js → p-47b56153.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-cef09b28.entry.js → www/build/p-4f1683c0.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-8ee66922.entry.js → www/build/p-5128c0bb.entry.js} +7 -7
- package/www/build/{p-191d8da8.entry.js → p-5184701e.entry.js} +6 -6
- package/www/build/{p-34f2d1b1.entry.js → p-533a039a.entry.js} +9 -9
- package/www/build/{p-c1723522.entry.js → p-564a51a5.entry.js} +4 -4
- package/www/build/{p-a558baf0.entry.js → p-5a775ff3.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-64642937.entry.js → www/build/p-61548ae2.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-107b5f8f.entry.js → www/build/p-6477890e.entry.js} +4 -4
- package/www/build/p-686e3e3f.js +21 -0
- package/www/build/{p-091b695a.entry.js → p-6a62b87d.entry.js} +4 -4
- package/www/build/{p-fcb2cadf.entry.js → p-6c85610c.entry.js} +4 -4
- package/www/build/{p-3522193d.entry.js → p-6df12aab.entry.js} +24 -24
- package/www/build/{p-c14d49ab.entry.js → p-6fb80d3b.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-b2270cd5.entry.js → www/build/p-7738a68d.entry.js} +4 -4
- package/www/build/{p-31f3c62d.entry.js → p-7a822cb8.entry.js} +4 -4
- package/www/build/{p-c90c72e0.entry.js → p-7afdef3f.entry.js} +4 -4
- package/www/build/{p-75d5df20.entry.js → p-7c593bd8.entry.js} +4 -4
- package/www/build/{p-15417698.entry.js → p-7f8d2db6.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-2d987bdb.entry.js → www/build/p-80d23c2c.entry.js} +4 -4
- package/www/build/{p-8dacd96c.entry.js → p-8653b9a6.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-a4e527cb.entry.js → www/build/p-86849b43.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-f91476fd.entry.js → www/build/p-87fb19b5.entry.js} +4 -4
- package/www/build/{p-81c8e9f0.entry.js → p-8973affb.entry.js} +9 -9
- package/www/build/{p-bdd5c0cd.entry.js → p-8b743603.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-360d6b10.entry.js → www/build/p-8ed8323f.entry.js} +4 -4
- package/www/build/{p-83144457.entry.js → p-95671e82.entry.js} +4 -4
- package/www/build/{p-4e7bb7e6.entry.js → p-965f968c.entry.js} +9 -9
- package/www/build/{p-c08b85f3.entry.js → p-981933f3.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-86997e62.entry.js → www/build/p-9c9d49a3.entry.js} +4 -4
- package/www/build/{p-508bd33a.entry.js → p-9cab9d12.entry.js} +4 -4
- package/www/build/{p-98642cf0.entry.js → p-9ffdf9ad.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-00c121e9.entry.js → www/build/p-a168d607.entry.js} +4 -4
- package/www/build/{p-557d211e.entry.js → p-a2461cfc.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-eebc769a.entry.js → www/build/p-a33f978b.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-3c5c66df.entry.js → www/build/p-a80d7066.entry.js} +4 -4
- package/www/build/{p-283c67bd.entry.js → p-adbbd012.entry.js} +12 -12
- package/www/build/{p-d6942c50.entry.js → p-af8d070d.entry.js} +12 -12
- package/www/build/{p-2d7fc382.entry.js → p-b1596322.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-fc7a8df4.entry.js → www/build/p-b428f67a.entry.js} +4 -4
- package/www/build/{p-92e1ad8b.entry.js → p-b52ef7dc.entry.js} +4 -4
- package/www/build/{p-9a52f817.entry.js → p-b83a30cf.entry.js} +4 -4
- package/www/build/{p-01d17804.entry.js → p-ba5dc106.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-c16792b1.entry.js → www/build/p-bad1e757.entry.js} +4 -4
- package/www/build/{p-151fc1fa.entry.js → p-baf6249e.entry.js} +10 -10
- package/www/build/{p-c8f2ccf5.entry.js → p-bb072cb8.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-ac5451d3.entry.js → www/build/p-be4fbe09.entry.js} +6 -6
- package/www/build/{p-20493ac1.entry.js → p-c69e5796.entry.js} +9 -9
- package/www/build/{p-128d7d9c.entry.js → p-c6d771f1.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-c84fd6f3.entry.js → www/build/p-c779e248.entry.js} +4 -4
- package/www/build/{p-6ae89bbc.entry.js → p-cb21b1a3.entry.js} +9 -9
- package/www/build/{p-88722311.entry.js → p-ce1fa4bd.entry.js} +4 -4
- package/www/build/{p-02c38199.entry.js → p-d733ba28.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-35fe7d9d.entry.js → www/build/p-d8e9546c.entry.js} +4 -4
- package/www/build/{p-f0a53d8d.entry.js → p-daca3528.entry.js} +4 -4
- package/www/build/{p-302c4671.entry.js → p-e51793eb.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-608d5068.entry.js → www/build/p-e6c90ae8.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-cad51f9e.entry.js → www/build/p-e87fde13.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-9e9f6184.entry.js → www/build/p-e952d94f.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-3d27e2f8.entry.js → www/build/p-e96e36ff.entry.js} +4 -4
- package/www/build/{p-131d1f76.entry.js → p-eb4faafb.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-812fc78e.entry.js → www/build/p-ecbcd457.entry.js} +4 -4
- package/www/build/{p-4bf52401.entry.js → p-ed2d68e1.entry.js} +4 -4
- package/www/build/{p-ddb66bbb.entry.js → p-f0ca3e20.entry.js} +4 -4
- package/www/build/{p-1700035e.entry.js → p-f125e857.entry.js} +13 -13
- package/{dist/ontario-design-system-components/p-cc653027.entry.js → www/build/p-f45d1e6b.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-a365505f.entry.js → www/build/p-f8c4ff40.entry.js} +4 -4
- package/www/build/{p-abafe472.entry.js → p-f8cbec7c.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-87897e51.entry.js → www/build/p-fb1a144e.entry.js} +10 -10
- package/{dist/ontario-design-system-components/p-33554950.entry.js → www/build/p-fe487325.entry.js} +4 -4
- package/www/index.html +17 -3
- package/dist/components/event-handler.js +0 -328
- package/dist/components/event-handler.js.map +0 -1
- package/dist/ontario-design-system-components/p-c290df94.entry.js.map +0 -1
- package/www/build/p-1d439e32.js +0 -21
- package/www/build/p-c290df94.entry.js.map +0 -1
- /package/dist/ontario-design-system-components/{p-9eb84b8a.entry.js.map → p-01f427db.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-076fbd17.entry.js.map → p-04fb2b1f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5af55b3a.entry.js.map → p-0aea8df7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c75f5396.entry.js.map → p-0f8e5a0c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-ac72bccb.entry.js.map → p-0fa6ba1b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-6e62de52.entry.js.map → p-10899c2d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-0f9e2d2c.entry.js.map → p-12d41776.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-72c7c4aa.entry.js.map → p-1526e1f3.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-32ecc2eb.entry.js.map → p-1567ea71.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-8bae2e2d.entry.js.map → p-16dc2584.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e18cb3eb.entry.js.map → p-17409379.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5fa28101.entry.js.map → p-1cd78ef5.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5ef6f597.entry.js.map → p-21b80693.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-635feedf.entry.js.map → p-2a6e912e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f88fe1bd.entry.js.map → p-3218a141.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-6efbc44d.entry.js.map → p-32666b1a.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-a596839c.entry.js.map → p-34371cd7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e21b53a2.entry.js.map → p-35681159.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-ffe78c79.entry.js.map → p-3868d245.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-78d9f49e.entry.js.map → p-39ab52ad.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-71a2dd36.entry.js.map → p-3b1c06b1.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-8c3a8ddc.entry.js.map → p-3cca2f28.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-db4a37a3.entry.js.map → p-3fb5a2f5.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-2e894229.entry.js.map → p-404f3050.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e402f3b8.entry.js.map → p-446337ea.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-fd039069.entry.js.map → p-44fe73c2.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5dae140f.entry.js.map → p-47b56153.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-cef09b28.entry.js.map → p-4f1683c0.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-8ee66922.entry.js.map → p-5128c0bb.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-191d8da8.entry.js.map → p-5184701e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-34f2d1b1.entry.js.map → p-533a039a.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c1723522.entry.js.map → p-564a51a5.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-a558baf0.entry.js.map → p-5a775ff3.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-64642937.entry.js.map → p-61548ae2.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-107b5f8f.entry.js.map → p-6477890e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-091b695a.entry.js.map → p-6a62b87d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-fcb2cadf.entry.js.map → p-6c85610c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-3522193d.entry.js.map → p-6df12aab.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c14d49ab.entry.js.map → p-6fb80d3b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-b2270cd5.entry.js.map → p-7738a68d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-31f3c62d.entry.js.map → p-7a822cb8.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c90c72e0.entry.js.map → p-7afdef3f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-75d5df20.entry.js.map → p-7c593bd8.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-15417698.entry.js.map → p-7f8d2db6.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-2d987bdb.entry.js.map → p-80d23c2c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-8dacd96c.entry.js.map → p-8653b9a6.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-a4e527cb.entry.js.map → p-86849b43.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f91476fd.entry.js.map → p-87fb19b5.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-81c8e9f0.entry.js.map → p-8973affb.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-bdd5c0cd.entry.js.map → p-8b743603.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-360d6b10.entry.js.map → p-8ed8323f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-83144457.entry.js.map → p-95671e82.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-4e7bb7e6.entry.js.map → p-965f968c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c08b85f3.entry.js.map → p-981933f3.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-86997e62.entry.js.map → p-9c9d49a3.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-508bd33a.entry.js.map → p-9cab9d12.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-98642cf0.entry.js.map → p-9ffdf9ad.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-00c121e9.entry.js.map → p-a168d607.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-557d211e.entry.js.map → p-a2461cfc.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-eebc769a.entry.js.map → p-a33f978b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-3c5c66df.entry.js.map → p-a80d7066.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-283c67bd.entry.js.map → p-adbbd012.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-d6942c50.entry.js.map → p-af8d070d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-2d7fc382.entry.js.map → p-b1596322.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-fc7a8df4.entry.js.map → p-b428f67a.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-92e1ad8b.entry.js.map → p-b52ef7dc.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-9a52f817.entry.js.map → p-b83a30cf.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-01d17804.entry.js.map → p-ba5dc106.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c16792b1.entry.js.map → p-bad1e757.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-151fc1fa.entry.js.map → p-baf6249e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c8f2ccf5.entry.js.map → p-bb072cb8.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-ac5451d3.entry.js.map → p-be4fbe09.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-20493ac1.entry.js.map → p-c69e5796.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-128d7d9c.entry.js.map → p-c6d771f1.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c84fd6f3.entry.js.map → p-c779e248.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-6ae89bbc.entry.js.map → p-cb21b1a3.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-88722311.entry.js.map → p-ce1fa4bd.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-02c38199.entry.js.map → p-d733ba28.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-35fe7d9d.entry.js.map → p-d8e9546c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f0a53d8d.entry.js.map → p-daca3528.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-302c4671.entry.js.map → p-e51793eb.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-608d5068.entry.js.map → p-e6c90ae8.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-cad51f9e.entry.js.map → p-e87fde13.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-9e9f6184.entry.js.map → p-e952d94f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-3d27e2f8.entry.js.map → p-e96e36ff.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-131d1f76.entry.js.map → p-eb4faafb.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-812fc78e.entry.js.map → p-ecbcd457.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-4bf52401.entry.js.map → p-ed2d68e1.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-ddb66bbb.entry.js.map → p-f0ca3e20.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-1700035e.entry.js.map → p-f125e857.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-cc653027.entry.js.map → p-f45d1e6b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-a365505f.entry.js.map → p-f8c4ff40.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-abafe472.entry.js.map → p-f8cbec7c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-87897e51.entry.js.map → p-fb1a144e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-33554950.entry.js.map → p-fe487325.entry.js.map} +0 -0
- /package/www/build/{p-9eb84b8a.entry.js.map → p-01f427db.entry.js.map} +0 -0
- /package/www/build/{p-076fbd17.entry.js.map → p-04fb2b1f.entry.js.map} +0 -0
- /package/www/build/{p-5af55b3a.entry.js.map → p-0aea8df7.entry.js.map} +0 -0
- /package/www/build/{p-c75f5396.entry.js.map → p-0f8e5a0c.entry.js.map} +0 -0
- /package/www/build/{p-ac72bccb.entry.js.map → p-0fa6ba1b.entry.js.map} +0 -0
- /package/www/build/{p-6e62de52.entry.js.map → p-10899c2d.entry.js.map} +0 -0
- /package/www/build/{p-0f9e2d2c.entry.js.map → p-12d41776.entry.js.map} +0 -0
- /package/www/build/{p-72c7c4aa.entry.js.map → p-1526e1f3.entry.js.map} +0 -0
- /package/www/build/{p-32ecc2eb.entry.js.map → p-1567ea71.entry.js.map} +0 -0
- /package/www/build/{p-8bae2e2d.entry.js.map → p-16dc2584.entry.js.map} +0 -0
- /package/www/build/{p-e18cb3eb.entry.js.map → p-17409379.entry.js.map} +0 -0
- /package/www/build/{p-5fa28101.entry.js.map → p-1cd78ef5.entry.js.map} +0 -0
- /package/www/build/{p-5ef6f597.entry.js.map → p-21b80693.entry.js.map} +0 -0
- /package/www/build/{p-635feedf.entry.js.map → p-2a6e912e.entry.js.map} +0 -0
- /package/www/build/{p-f88fe1bd.entry.js.map → p-3218a141.entry.js.map} +0 -0
- /package/www/build/{p-6efbc44d.entry.js.map → p-32666b1a.entry.js.map} +0 -0
- /package/www/build/{p-a596839c.entry.js.map → p-34371cd7.entry.js.map} +0 -0
- /package/www/build/{p-e21b53a2.entry.js.map → p-35681159.entry.js.map} +0 -0
- /package/www/build/{p-ffe78c79.entry.js.map → p-3868d245.entry.js.map} +0 -0
- /package/www/build/{p-78d9f49e.entry.js.map → p-39ab52ad.entry.js.map} +0 -0
- /package/www/build/{p-71a2dd36.entry.js.map → p-3b1c06b1.entry.js.map} +0 -0
- /package/www/build/{p-8c3a8ddc.entry.js.map → p-3cca2f28.entry.js.map} +0 -0
- /package/www/build/{p-db4a37a3.entry.js.map → p-3fb5a2f5.entry.js.map} +0 -0
- /package/www/build/{p-2e894229.entry.js.map → p-404f3050.entry.js.map} +0 -0
- /package/www/build/{p-e402f3b8.entry.js.map → p-446337ea.entry.js.map} +0 -0
- /package/www/build/{p-fd039069.entry.js.map → p-44fe73c2.entry.js.map} +0 -0
- /package/www/build/{p-5dae140f.entry.js.map → p-47b56153.entry.js.map} +0 -0
- /package/www/build/{p-cef09b28.entry.js.map → p-4f1683c0.entry.js.map} +0 -0
- /package/www/build/{p-8ee66922.entry.js.map → p-5128c0bb.entry.js.map} +0 -0
- /package/www/build/{p-191d8da8.entry.js.map → p-5184701e.entry.js.map} +0 -0
- /package/www/build/{p-34f2d1b1.entry.js.map → p-533a039a.entry.js.map} +0 -0
- /package/www/build/{p-c1723522.entry.js.map → p-564a51a5.entry.js.map} +0 -0
- /package/www/build/{p-a558baf0.entry.js.map → p-5a775ff3.entry.js.map} +0 -0
- /package/www/build/{p-64642937.entry.js.map → p-61548ae2.entry.js.map} +0 -0
- /package/www/build/{p-107b5f8f.entry.js.map → p-6477890e.entry.js.map} +0 -0
- /package/www/build/{p-091b695a.entry.js.map → p-6a62b87d.entry.js.map} +0 -0
- /package/www/build/{p-fcb2cadf.entry.js.map → p-6c85610c.entry.js.map} +0 -0
- /package/www/build/{p-3522193d.entry.js.map → p-6df12aab.entry.js.map} +0 -0
- /package/www/build/{p-c14d49ab.entry.js.map → p-6fb80d3b.entry.js.map} +0 -0
- /package/www/build/{p-b2270cd5.entry.js.map → p-7738a68d.entry.js.map} +0 -0
- /package/www/build/{p-31f3c62d.entry.js.map → p-7a822cb8.entry.js.map} +0 -0
- /package/www/build/{p-c90c72e0.entry.js.map → p-7afdef3f.entry.js.map} +0 -0
- /package/www/build/{p-75d5df20.entry.js.map → p-7c593bd8.entry.js.map} +0 -0
- /package/www/build/{p-15417698.entry.js.map → p-7f8d2db6.entry.js.map} +0 -0
- /package/www/build/{p-2d987bdb.entry.js.map → p-80d23c2c.entry.js.map} +0 -0
- /package/www/build/{p-8dacd96c.entry.js.map → p-8653b9a6.entry.js.map} +0 -0
- /package/www/build/{p-a4e527cb.entry.js.map → p-86849b43.entry.js.map} +0 -0
- /package/www/build/{p-f91476fd.entry.js.map → p-87fb19b5.entry.js.map} +0 -0
- /package/www/build/{p-81c8e9f0.entry.js.map → p-8973affb.entry.js.map} +0 -0
- /package/www/build/{p-bdd5c0cd.entry.js.map → p-8b743603.entry.js.map} +0 -0
- /package/www/build/{p-360d6b10.entry.js.map → p-8ed8323f.entry.js.map} +0 -0
- /package/www/build/{p-83144457.entry.js.map → p-95671e82.entry.js.map} +0 -0
- /package/www/build/{p-4e7bb7e6.entry.js.map → p-965f968c.entry.js.map} +0 -0
- /package/www/build/{p-c08b85f3.entry.js.map → p-981933f3.entry.js.map} +0 -0
- /package/www/build/{p-86997e62.entry.js.map → p-9c9d49a3.entry.js.map} +0 -0
- /package/www/build/{p-508bd33a.entry.js.map → p-9cab9d12.entry.js.map} +0 -0
- /package/www/build/{p-98642cf0.entry.js.map → p-9ffdf9ad.entry.js.map} +0 -0
- /package/www/build/{p-00c121e9.entry.js.map → p-a168d607.entry.js.map} +0 -0
- /package/www/build/{p-557d211e.entry.js.map → p-a2461cfc.entry.js.map} +0 -0
- /package/www/build/{p-eebc769a.entry.js.map → p-a33f978b.entry.js.map} +0 -0
- /package/www/build/{p-3c5c66df.entry.js.map → p-a80d7066.entry.js.map} +0 -0
- /package/www/build/{p-283c67bd.entry.js.map → p-adbbd012.entry.js.map} +0 -0
- /package/www/build/{p-d6942c50.entry.js.map → p-af8d070d.entry.js.map} +0 -0
- /package/www/build/{p-2d7fc382.entry.js.map → p-b1596322.entry.js.map} +0 -0
- /package/www/build/{p-fc7a8df4.entry.js.map → p-b428f67a.entry.js.map} +0 -0
- /package/www/build/{p-92e1ad8b.entry.js.map → p-b52ef7dc.entry.js.map} +0 -0
- /package/www/build/{p-9a52f817.entry.js.map → p-b83a30cf.entry.js.map} +0 -0
- /package/www/build/{p-01d17804.entry.js.map → p-ba5dc106.entry.js.map} +0 -0
- /package/www/build/{p-c16792b1.entry.js.map → p-bad1e757.entry.js.map} +0 -0
- /package/www/build/{p-151fc1fa.entry.js.map → p-baf6249e.entry.js.map} +0 -0
- /package/www/build/{p-c8f2ccf5.entry.js.map → p-bb072cb8.entry.js.map} +0 -0
- /package/www/build/{p-ac5451d3.entry.js.map → p-be4fbe09.entry.js.map} +0 -0
- /package/www/build/{p-20493ac1.entry.js.map → p-c69e5796.entry.js.map} +0 -0
- /package/www/build/{p-128d7d9c.entry.js.map → p-c6d771f1.entry.js.map} +0 -0
- /package/www/build/{p-c84fd6f3.entry.js.map → p-c779e248.entry.js.map} +0 -0
- /package/www/build/{p-6ae89bbc.entry.js.map → p-cb21b1a3.entry.js.map} +0 -0
- /package/www/build/{p-88722311.entry.js.map → p-ce1fa4bd.entry.js.map} +0 -0
- /package/www/build/{p-02c38199.entry.js.map → p-d733ba28.entry.js.map} +0 -0
- /package/www/build/{p-35fe7d9d.entry.js.map → p-d8e9546c.entry.js.map} +0 -0
- /package/www/build/{p-f0a53d8d.entry.js.map → p-daca3528.entry.js.map} +0 -0
- /package/www/build/{p-302c4671.entry.js.map → p-e51793eb.entry.js.map} +0 -0
- /package/www/build/{p-608d5068.entry.js.map → p-e6c90ae8.entry.js.map} +0 -0
- /package/www/build/{p-cad51f9e.entry.js.map → p-e87fde13.entry.js.map} +0 -0
- /package/www/build/{p-9e9f6184.entry.js.map → p-e952d94f.entry.js.map} +0 -0
- /package/www/build/{p-3d27e2f8.entry.js.map → p-e96e36ff.entry.js.map} +0 -0
- /package/www/build/{p-131d1f76.entry.js.map → p-eb4faafb.entry.js.map} +0 -0
- /package/www/build/{p-812fc78e.entry.js.map → p-ecbcd457.entry.js.map} +0 -0
- /package/www/build/{p-4bf52401.entry.js.map → p-ed2d68e1.entry.js.map} +0 -0
- /package/www/build/{p-ddb66bbb.entry.js.map → p-f0ca3e20.entry.js.map} +0 -0
- /package/www/build/{p-1700035e.entry.js.map → p-f125e857.entry.js.map} +0 -0
- /package/www/build/{p-cc653027.entry.js.map → p-f45d1e6b.entry.js.map} +0 -0
- /package/www/build/{p-a365505f.entry.js.map → p-f8c4ff40.entry.js.map} +0 -0
- /package/www/build/{p-abafe472.entry.js.map → p-f8cbec7c.entry.js.map} +0 -0
- /package/www/build/{p-87897e51.entry.js.map → p-fb1a144e.entry.js.map} +0 -0
- /package/www/build/{p-33554950.entry.js.map → p-fe487325.entry.js.map} +0 -0
|
@@ -94,14 +94,14 @@ const OntarioIconYoutube = class {
|
|
|
94
94
|
return index.h(
|
|
95
95
|
'div',
|
|
96
96
|
{
|
|
97
|
-
key: '
|
|
97
|
+
key: '29fe33f05f26188c97d21729f1d2a959c86255df',
|
|
98
98
|
class: `ontario-icon ontario-icon--${this.iconColourState} ontario-icon--width-${this.iconWidthState}`,
|
|
99
99
|
style: { width: `${this.iconWidthState}px` },
|
|
100
100
|
},
|
|
101
101
|
index.h(
|
|
102
102
|
'svg',
|
|
103
103
|
{
|
|
104
|
-
key: '
|
|
104
|
+
key: '42b7b9df17ce043ba91cdeac7e1f4583cfd1e3a6',
|
|
105
105
|
class: 'svg-icon',
|
|
106
106
|
style: { fill: `${this.iconCustomColourState}`, stroke: `${this.iconCustomColourState}` },
|
|
107
107
|
role: 'img',
|
|
@@ -110,7 +110,7 @@ const OntarioIconYoutube = class {
|
|
|
110
110
|
id: 'youtube',
|
|
111
111
|
},
|
|
112
112
|
index.h('path', {
|
|
113
|
-
key: '
|
|
113
|
+
key: '1c0d0a5cedfce971dca6b7b8245b6d0846fd0523',
|
|
114
114
|
d: 'M10 15l5.2-3L10 9v6zm11.56-7.83c.13.47.22 1.1.28 1.9l.1 2.1.06.84c0 2.2-.16 3.8-.44 4.83a2.34 2.34 0 0 1-1.73 1.73c-.47.13-1.33.22-2.65.28l-3.6.1L12 19c-4.2 0-6.8-.16-7.83-.44a2.34 2.34 0 0 1-1.73-1.73c-.13-.47-.22-1.1-.28-1.9l-.1-2.1L2 12c0-2.2.16-3.8.44-4.83a2.34 2.34 0 0 1 1.73-1.73c.47-.13 1.33-.22 2.65-.28l3.6-.1L12 5c4.2 0 6.8.16 7.83.44a2.34 2.34 0 0 1 1.73 1.73z',
|
|
115
115
|
}),
|
|
116
116
|
),
|
|
@@ -9,7 +9,7 @@ import { ConsoleMessageClass } from '../../utils/console-message/console-message
|
|
|
9
9
|
export class OntarioAside {
|
|
10
10
|
constructor() {
|
|
11
11
|
this.headingType = undefined;
|
|
12
|
-
this.headingContentType =
|
|
12
|
+
this.headingContentType = 'string';
|
|
13
13
|
this.headingContent = undefined;
|
|
14
14
|
this.content = undefined;
|
|
15
15
|
this.highlightColour = 'teal';
|
|
@@ -20,15 +20,17 @@ export class OntarioAside {
|
|
|
20
20
|
* This is for validation purposes to make sure the `headingType` matches one of the `HeadingLevelOptions`.
|
|
21
21
|
*/
|
|
22
22
|
validateHeadingType() {
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
if (!!this.headingType) {
|
|
24
|
+
if (isValidHeadingLevel(this.headingType)) return this.headingType;
|
|
25
|
+
const message = new ConsoleMessageClass();
|
|
26
|
+
return message
|
|
27
|
+
.addDesignSystemTag()
|
|
28
|
+
.addMonospaceText(` headingType ${this.headingType} `)
|
|
29
|
+
.addRegularText('for')
|
|
30
|
+
.addMonospaceText(' <ontario-aside> ')
|
|
31
|
+
.addRegularText('is not a valid type. Please ensure your heading type matches one of the headingType types.')
|
|
32
|
+
.printMessage();
|
|
33
|
+
}
|
|
32
34
|
}
|
|
33
35
|
/**
|
|
34
36
|
* Watch for changes in the `headingContentType` prop for validation purposes.
|
|
@@ -44,23 +46,6 @@ export class OntarioAside {
|
|
|
44
46
|
return this.warnDefaultType();
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
|
-
/**
|
|
48
|
-
* Watch for changes in the `headingContent` prop for validation purposes.
|
|
49
|
-
*
|
|
50
|
-
* If no `headingContent` value is provided, a warning message will be printed.
|
|
51
|
-
*/
|
|
52
|
-
validateHeadingContent() {
|
|
53
|
-
if (!this.headingContent) {
|
|
54
|
-
const message = new ConsoleMessageClass();
|
|
55
|
-
message
|
|
56
|
-
.addDesignSystemTag()
|
|
57
|
-
.addMonospaceText(' headingContent ')
|
|
58
|
-
.addRegularText('for')
|
|
59
|
-
.addMonospaceText(' <ontario-aside> ')
|
|
60
|
-
.addRegularText('was not provided.')
|
|
61
|
-
.printMessage();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
49
|
/**
|
|
65
50
|
* Watch for changes to the `highlightColour` prop.
|
|
66
51
|
*
|
|
@@ -106,15 +91,14 @@ export class OntarioAside {
|
|
|
106
91
|
}
|
|
107
92
|
componentWillLoad() {
|
|
108
93
|
this.validateHighlightColour();
|
|
109
|
-
this.validateHeadingContent();
|
|
110
94
|
this.validateHeadingType();
|
|
111
95
|
this.validateHeadingContentType();
|
|
112
96
|
}
|
|
113
97
|
render() {
|
|
114
98
|
return generateCalloutAside(
|
|
115
99
|
'aside',
|
|
116
|
-
this.headingType,
|
|
117
100
|
this.headingContentType,
|
|
101
|
+
this.headingType,
|
|
118
102
|
this.headingContent,
|
|
119
103
|
this.content,
|
|
120
104
|
this.highlightColour,
|
|
@@ -143,7 +127,7 @@ export class OntarioAside {
|
|
|
143
127
|
mutable: true,
|
|
144
128
|
complexType: {
|
|
145
129
|
original: 'HeadingLevelOptions',
|
|
146
|
-
resolved: '"h2" | "h3" | "h4" | "h5" | "h6"',
|
|
130
|
+
resolved: '"h2" | "h3" | "h4" | "h5" | "h6" | undefined',
|
|
147
131
|
references: {
|
|
148
132
|
HeadingLevelOptions: {
|
|
149
133
|
location: 'import',
|
|
@@ -153,7 +137,7 @@ export class OntarioAside {
|
|
|
153
137
|
},
|
|
154
138
|
},
|
|
155
139
|
required: false,
|
|
156
|
-
optional:
|
|
140
|
+
optional: true,
|
|
157
141
|
docs: {
|
|
158
142
|
tags: [],
|
|
159
143
|
text: 'The heading level of the aside heading.',
|
|
@@ -183,17 +167,18 @@ export class OntarioAside {
|
|
|
183
167
|
},
|
|
184
168
|
attribute: 'heading-content-type',
|
|
185
169
|
reflect: false,
|
|
170
|
+
defaultValue: "'string'",
|
|
186
171
|
},
|
|
187
172
|
headingContent: {
|
|
188
173
|
type: 'string',
|
|
189
174
|
mutable: false,
|
|
190
175
|
complexType: {
|
|
191
176
|
original: 'string',
|
|
192
|
-
resolved: 'string',
|
|
177
|
+
resolved: 'string | undefined',
|
|
193
178
|
references: {},
|
|
194
179
|
},
|
|
195
180
|
required: false,
|
|
196
|
-
optional:
|
|
181
|
+
optional: true,
|
|
197
182
|
docs: {
|
|
198
183
|
tags: [],
|
|
199
184
|
text: 'Text or HTML to be displayed as the heading of the aside. If the heading content should be displayed as HTML, the `headingContentType` needs to be set to `html`.',
|
|
@@ -259,10 +244,6 @@ export class OntarioAside {
|
|
|
259
244
|
propName: 'headingContentType',
|
|
260
245
|
methodName: 'validateHeadingContentType',
|
|
261
246
|
},
|
|
262
|
-
{
|
|
263
|
-
propName: 'headingContent',
|
|
264
|
-
methodName: 'validateHeadingContent',
|
|
265
|
-
},
|
|
266
247
|
{
|
|
267
248
|
propName: 'highlightColour',
|
|
268
249
|
methodName: 'validateHighlightColour',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ontario-aside.js","sourceRoot":"","sources":["../../../src/components/ontario-aside/ontario-aside.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAIN,mBAAmB,GAEnB,MAAM,8DAA8D,CAAC;AACtE,OAAO,EACN,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,GACnB,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAE,mBAAmB,EA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kB,EACvB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,eAAe,CACpB,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Prop, Watch } from '@stencil/core';\n\nimport {\n\tCalloutAside,\n\tHeadingLevelOptions,\n\tHeadingContentType,\n\tHeadingContentTypes,\n\tHighlightColourOptions,\n} from '../../utils/components/callout-aside/callout-aside.interface';\nimport {\n\tisValidHighlightColour,\n\tgenerateCalloutAside,\n\tisValidHeadingLevel,\n} from '../../utils/components/callout-aside/callout-aside-helpers';\nimport { validateValueAgainstArray } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\n\n@Component({\n\ttag: 'ontario-aside',\n\tstyleUrl: 'ontario-aside.scss',\n\tshadow: true,\n})\nexport class OntarioAside implements CalloutAside {\n\t/**\n\t * The heading level of the aside heading.\n\t */\n\t@Prop({ mutable: true }) headingType?: HeadingLevelOptions;\n\n\t/**\n\t * The type of the heading content. If no prop is passed, it will default to string.\n\t */\n\t@Prop({ mutable: true }) headingContentType: HeadingContentType = 'string';\n\n\t/**\n\t * Text or HTML to be displayed as the heading of the aside. If the heading content should be displayed as HTML, the `headingContentType` needs to be set to `html`.\n\t */\n\t@Prop() headingContent?: string;\n\n\t/**\n\t * Optional text to be displayed as the content for the aside component. If a string is passed, it will automatically be nested in a paragraph tag.\n\t *\n\t * HTML content can also be passed as the child/children of the aside component if additional/different elements for the content are needed.\n\t *\n\t * @example\n\t * <ontario-aside headingType='h3' headingContent='This is the aside heading'><p>This is the first sentence of the aside content.</p><p>This is the second sentence of the aside content.</p></ontario-aside>\n\t */\n\t@Prop() content?: string;\n\n\t/**\n\t * Optional prop to choose the border colour of the aside. If none is passed, the default colour will be teal.\n\t */\n\t@Prop({ mutable: true }) highlightColour?: HighlightColourOptions = 'teal';\n\n\t/**\n\t * Watch for changes to the `headingType` prop.\n\t *\n\t * This is for validation purposes to make sure the `headingType` matches one of the `HeadingLevelOptions`.\n\t */\n\t@Watch('headingType')\n\tvalidateHeadingType() {\n\t\tif (!!this.headingType) {\n\t\t\tif (isValidHeadingLevel(this.headingType)) return this.headingType;\n\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\treturn message\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(` headingType ${this.headingType} `)\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-aside> ')\n\t\t\t\t.addRegularText('is not a valid type. Please ensure your heading type matches one of the headingType types.')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes in the `headingContentType` prop for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `headingContentType` will be set to its default (`string`).\n\t * If a match is found in one of the array values then `headingContentType` will be set to the matching array key value.\n\t */\n\t@Watch('headingContentType')\n\tvalidateHeadingContentType() {\n\t\tconst isValid = validateValueAgainstArray(this.headingContentType, HeadingContentTypes);\n\t\tif (isValid) {\n\t\t\treturn this.headingContentType;\n\t\t} else {\n\t\t\treturn this.warnDefaultType();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `highlightColour` prop.\n\t *\n\t * If no `highlightColour` is passed, or if the `highlightColour` does not match the `highlightColour` options, a default value of 'teal' will be applied.\n\t */\n\t@Watch('highlightColour')\n\tvalidateHighlightColour() {\n\t\tif (this.highlightColour) {\n\t\t\tif (isValidHighlightColour(this.highlightColour)) return this.highlightColour;\n\t\t\telse {\n\t\t\t\tconst message = new ConsoleMessageClass();\n\t\t\t\tmessage\n\t\t\t\t\t.addDesignSystemTag()\n\t\t\t\t\t.addMonospaceText(` highlightColour ${this.highlightColour} `)\n\t\t\t\t\t.addRegularText('for')\n\t\t\t\t\t.addMonospaceText(' <ontario-aside> ')\n\t\t\t\t\t.addRegularText(\n\t\t\t\t\t\t'does not match one of the valid highlightColour types. A default colour of `teal` will be applied.',\n\t\t\t\t\t)\n\t\t\t\t\t.printMessage();\n\t\t\t}\n\t\t}\n\n\t\t// if no highlight colour is passed, return 'teal'\n\t\treturn 'teal';\n\t}\n\n\t/**\n\t * Print the invalid `type` warning message.\n\t * @returns default type ('string')\n\t */\n\tprivate warnDefaultType() {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' headingContentType ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-aside> ')\n\t\t\t.addRegularText('was set to an invalid type; only')\n\t\t\t.addMonospaceText(' string or html ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' string ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn (this.headingContentType = 'string');\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateHighlightColour();\n\t\tthis.validateHeadingType();\n\t\tthis.validateHeadingContentType();\n\t}\n\n\trender() {\n\t\treturn generateCalloutAside(\n\t\t\t'aside',\n\t\t\tthis.headingContentType,\n\t\t\tthis.headingType,\n\t\t\tthis.headingContent,\n\t\t\tthis.content,\n\t\t\tthis.highlightColour,\n\t\t);\n\t}\n}\n"]}
|
|
@@ -86,6 +86,41 @@ describe('ontario-aside', () => {
|
|
|
86
86
|
</ontario-aside>
|
|
87
87
|
`);
|
|
88
88
|
});
|
|
89
|
+
it('should render html in the heading content if the headingContentType prop is set to `html`', async () => {
|
|
90
|
+
const page = await newSpecPage({
|
|
91
|
+
components: [OntarioAside],
|
|
92
|
+
html: `<ontario-aside heading-content-type="html" heading-content="<a href='#'>Quick fact:</a>"><p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p></ontario-aside>`,
|
|
93
|
+
});
|
|
94
|
+
expect(page.root).toEqualHtml(`
|
|
95
|
+
<ontario-aside heading-content-type="html" heading-content="<a href='#'>Quick fact:</a>" heading-content="Quick fact:">
|
|
96
|
+
<mock:shadow-root>
|
|
97
|
+
<aside class="ontario-aside ontario-border-highlight--teal">
|
|
98
|
+
<h2 class="ontario-aside__title ontario-h5">
|
|
99
|
+
<a href="#">Quick fact:</a>
|
|
100
|
+
</h2>
|
|
101
|
+
<slot></slot>
|
|
102
|
+
</aside>
|
|
103
|
+
</mock:shadow-root>
|
|
104
|
+
<p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p>
|
|
105
|
+
</ontario-aside>
|
|
106
|
+
`);
|
|
107
|
+
});
|
|
108
|
+
it('should not render the heading if headingContent prop is set to `undefined`', async () => {
|
|
109
|
+
const page = await newSpecPage({
|
|
110
|
+
components: [OntarioAside],
|
|
111
|
+
html: `<ontario-aside><p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p></ontario-aside>`,
|
|
112
|
+
});
|
|
113
|
+
expect(page.root).toEqualHtml(`
|
|
114
|
+
<ontario-aside>
|
|
115
|
+
<mock:shadow-root>
|
|
116
|
+
<aside class="ontario-aside ontario-border-highlight--teal">
|
|
117
|
+
<slot></slot>
|
|
118
|
+
</aside>
|
|
119
|
+
</mock:shadow-root>
|
|
120
|
+
<p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p>
|
|
121
|
+
</ontario-aside>
|
|
122
|
+
`);
|
|
123
|
+
});
|
|
89
124
|
it('should reflect attributes/props being set', async () => {
|
|
90
125
|
const page = await newSpecPage({
|
|
91
126
|
components: [OntarioAside],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ontario-aside.spec.js","sourceRoot":"","sources":["../../../../src/components/ontario-aside/test/ontario-aside.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,E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MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;GAY7B,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2FAA2F,EAAE,KAAK,IAAI,EAAE;QAC1G,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC9B,UAAU,EAAE,CAAC,YAAY,CAAC;YAC1B,IAAI,EAAE,kPAAkP;SACxP,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;GAY7B,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2CAA2C,EAAE,KAAK,IAAI,EAAE;QAC1D,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC9B,UAAU,EAAE,CAAC,YAAY,CAAC;YAC1B,IAAI,EAAE,kSAAkS;SACxS,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1D,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;QAC7E,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzD,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,CACrC,kIAAkI,CAClI,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { OntarioAside } from '../ontario-aside';\n\ndescribe('ontario-aside', () => {\n\tdescribe('snapshot', () => {\n\t\tit('should render the expected html', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioAside],\n\t\t\t\thtml: `<ontario-aside heading-type=\"h3\" heading-content-type=\"string\" heading-content=\"Quick fact:\" highlight-colour=\"gold\">As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</ontario-aside>`,\n\t\t\t});\n\n\t\t\texpect(page.root).toMatchSnapshot();\n\t\t});\n\t});\n\n\tit('should render the h2 heading level if no headingType prop is passed', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioAside],\n\t\t\thtml: `<ontario-aside heading-content-type=\"string\" heading-content=\"Quick fact:\" highlight-colour=\"gold\"><p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p></ontario-aside>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-aside heading-content-type=\"string\" heading-content=\"Quick fact:\" highlight-colour=\"gold\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<aside class=\"ontario-aside ontario-border-highlight--gold\">\n\t\t\t\t\t\t<h2 class=\"ontario-aside__title ontario-h5\">\n\t\t\t\t\t\t\tQuick fact:\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</aside>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p>\n\t\t\t</ontario-aside>\n\t\t`);\n\t});\n\n\tit('should render the expected heading level when a headingType prop is passed', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioAside],\n\t\t\thtml: `<ontario-aside heading-type=\"h5\" heading-content-type=\"string\" heading-content=\"Quick fact:\"><p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p></ontario-aside>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-aside heading-type=\"h5\" heading-content-type=\"string\" heading-content=\"Quick fact:\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<aside class=\"ontario-aside ontario-border-highlight--teal\">\n\t\t\t\t\t\t<h5 class=\"ontario-aside__title ontario-h5\">\n\t\t\t\t\t\t\tQuick fact:\n\t\t\t\t\t\t</h5>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</aside>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p>\n\t\t\t</ontario-aside>\n\t\t`);\n\t});\n\n\tit('should render a string heading if no headingContentType prop is passed', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioAside],\n\t\t\thtml: `<ontario-aside heading-content=\"Quick fact:\"><p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p></ontario-aside>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-aside heading-content=\"Quick fact:\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<aside class=\"ontario-aside ontario-border-highlight--teal\">\n\t\t\t\t\t\t<h2 class=\"ontario-aside__title ontario-h5\">\n\t\t\t\t\t\t\tQuick fact:\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</aside>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p>\n\t\t\t</ontario-aside>\n\t\t`);\n\t});\n\n\tit('should render html in the heading content if the headingContentType prop is set to `html`', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioAside],\n\t\t\thtml: `<ontario-aside heading-content-type=\"html\" heading-content=\"<a href='#'>Quick fact:</a>\"><p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p></ontario-aside>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-aside heading-content-type=\"html\" heading-content=\"<a href='#'>Quick fact:</a>\" heading-content=\"Quick fact:\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<aside class=\"ontario-aside ontario-border-highlight--teal\">\n\t\t\t\t\t\t<h2 class=\"ontario-aside__title ontario-h5\">\n\t\t\t\t\t\t\t<a href=\"#\">Quick fact:</a>\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</aside>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p>\n\t\t\t</ontario-aside>\n\t\t`);\n\t});\n\n\tit('should reflect attributes/props being set', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioAside],\n\t\t\thtml: `<ontario-aside heading-type=\"h4\" heading-content-type=\"html\" heading-content=\"<a href='#'>Quick fact:</a>\" highlight-colour=\"purple\" content=\"As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.\"></ontario-aside>`,\n\t\t});\n\n\t\texpect(page.rootInstance.headingType).toBe('h4');\n\t\texpect(page.rootInstance.headingContentType).toBe('html');\n\t\texpect(page.rootInstance.headingContent).toBe(\"<a href='#'>Quick fact:</a>\");\n\t\texpect(page.rootInstance.highlightColour).toBe('purple');\n\t\texpect(page.rootInstance.content).toBe(\n\t\t\t'As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.',\n\t\t);\n\t});\n});\n"]}
|
|
1
|
+
{"version":3,"file":"ontario-aside.spec.js","sourceRoot":"","sources":["../../../../src/components/ontario-aside/test/ontario-aside.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,QAAQ,CAAC,e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,MAAM,CAAC,CAAC;QAC1D,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;QAC7E,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzD,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,CACrC,kIAAkI,CAClI,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { OntarioAside } from '../ontario-aside';\n\ndescribe('ontario-aside', () => {\n\tdescribe('snapshot', () => {\n\t\tit('should render the expected html', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioAside],\n\t\t\t\thtml: `<ontario-aside heading-type=\"h3\" heading-content-type=\"string\" heading-content=\"Quick fact:\" highlight-colour=\"gold\">As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</ontario-aside>`,\n\t\t\t});\n\n\t\t\texpect(page.root).toMatchSnapshot();\n\t\t});\n\t});\n\n\tit('should render the h2 heading level if no headingType prop is passed', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioAside],\n\t\t\thtml: `<ontario-aside heading-content-type=\"string\" heading-content=\"Quick fact:\" highlight-colour=\"gold\"><p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p></ontario-aside>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-aside heading-content-type=\"string\" heading-content=\"Quick fact:\" highlight-colour=\"gold\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<aside class=\"ontario-aside ontario-border-highlight--gold\">\n\t\t\t\t\t\t<h2 class=\"ontario-aside__title ontario-h5\">\n\t\t\t\t\t\t\tQuick fact:\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</aside>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p>\n\t\t\t</ontario-aside>\n\t\t`);\n\t});\n\n\tit('should render the expected heading level when a headingType prop is passed', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioAside],\n\t\t\thtml: `<ontario-aside heading-type=\"h5\" heading-content-type=\"string\" heading-content=\"Quick fact:\"><p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p></ontario-aside>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-aside heading-type=\"h5\" heading-content-type=\"string\" heading-content=\"Quick fact:\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<aside class=\"ontario-aside ontario-border-highlight--teal\">\n\t\t\t\t\t\t<h5 class=\"ontario-aside__title ontario-h5\">\n\t\t\t\t\t\t\tQuick fact:\n\t\t\t\t\t\t</h5>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</aside>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p>\n\t\t\t</ontario-aside>\n\t\t`);\n\t});\n\n\tit('should render a string heading if no headingContentType prop is passed', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioAside],\n\t\t\thtml: `<ontario-aside heading-content=\"Quick fact:\"><p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p></ontario-aside>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-aside heading-content=\"Quick fact:\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<aside class=\"ontario-aside ontario-border-highlight--teal\">\n\t\t\t\t\t\t<h2 class=\"ontario-aside__title ontario-h5\">\n\t\t\t\t\t\t\tQuick fact:\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</aside>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p>\n\t\t\t</ontario-aside>\n\t\t`);\n\t});\n\n\tit('should render html in the heading content if the headingContentType prop is set to `html`', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioAside],\n\t\t\thtml: `<ontario-aside heading-content-type=\"html\" heading-content=\"<a href='#'>Quick fact:</a>\"><p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p></ontario-aside>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-aside heading-content-type=\"html\" heading-content=\"<a href='#'>Quick fact:</a>\" heading-content=\"Quick fact:\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<aside class=\"ontario-aside ontario-border-highlight--teal\">\n\t\t\t\t\t\t<h2 class=\"ontario-aside__title ontario-h5\">\n\t\t\t\t\t\t\t<a href=\"#\">Quick fact:</a>\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</aside>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p>\n\t\t\t</ontario-aside>\n\t\t`);\n\t});\n\n\tit('should render html in the heading content if the headingContentType prop is set to `html`', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioAside],\n\t\t\thtml: `<ontario-aside heading-content-type=\"html\" heading-content=\"<a href='#'>Quick fact:</a>\"><p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p></ontario-aside>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-aside heading-content-type=\"html\" heading-content=\"<a href='#'>Quick fact:</a>\" heading-content=\"Quick fact:\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<aside class=\"ontario-aside ontario-border-highlight--teal\">\n\t\t\t\t\t\t<h2 class=\"ontario-aside__title ontario-h5\">\n\t\t\t\t\t\t\t<a href=\"#\">Quick fact:</a>\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</aside>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p>\n\t\t\t</ontario-aside>\n\t\t`);\n\t});\n\n\tit('should not render the heading if headingContent prop is set to `undefined`', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioAside],\n\t\t\thtml: `<ontario-aside><p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p></ontario-aside>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-aside>\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<aside class=\"ontario-aside ontario-border-highlight--teal\">\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</aside>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.</p>\n\t\t\t</ontario-aside>\n\t\t`);\n\t});\n\n\tit('should reflect attributes/props being set', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioAside],\n\t\t\thtml: `<ontario-aside heading-type=\"h4\" heading-content-type=\"html\" heading-content=\"<a href='#'>Quick fact:</a>\" highlight-colour=\"purple\" content=\"As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.\"></ontario-aside>`,\n\t\t});\n\n\t\texpect(page.rootInstance.headingType).toBe('h4');\n\t\texpect(page.rootInstance.headingContentType).toBe('html');\n\t\texpect(page.rootInstance.headingContent).toBe(\"<a href='#'>Quick fact:</a>\");\n\t\texpect(page.rootInstance.highlightColour).toBe('purple');\n\t\texpect(page.rootInstance.content).toBe(\n\t\t\t'As of 2013, Canada is responsible for 1.6% of global emissions, with Ontario responsible for less than 0.4% of global emissions.',\n\t\t);\n\t});\n});\n"]}
|
|
@@ -19,15 +19,17 @@ export class OntarioCallout {
|
|
|
19
19
|
* This is for validation purposes to make sure the `headingType` matches one of the `HeadingLevelOptions`.
|
|
20
20
|
*/
|
|
21
21
|
validateHeadingType() {
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
if (!!this.headingType) {
|
|
23
|
+
if (isValidHeadingLevel(this.headingType)) return this.headingType;
|
|
24
|
+
const message = new ConsoleMessageClass();
|
|
25
|
+
return message
|
|
26
|
+
.addDesignSystemTag()
|
|
27
|
+
.addMonospaceText(` headingType ${this.headingType} `)
|
|
28
|
+
.addRegularText('for')
|
|
29
|
+
.addMonospaceText(' <ontario-callout> ')
|
|
30
|
+
.addRegularText('is not a valid type. Please ensure your heading type matches one of the headingType types.')
|
|
31
|
+
.printMessage();
|
|
32
|
+
}
|
|
31
33
|
}
|
|
32
34
|
/**
|
|
33
35
|
* Watch for changes in the `headingContentType` variable for validation purposes.
|
|
@@ -43,23 +45,6 @@ export class OntarioCallout {
|
|
|
43
45
|
return this.warnDefaultType();
|
|
44
46
|
}
|
|
45
47
|
}
|
|
46
|
-
/**
|
|
47
|
-
* Watch for changes in the `headingContent` prop for validation purposes.
|
|
48
|
-
*
|
|
49
|
-
* If no `headingContent` value is provided, a warning message will be printed.
|
|
50
|
-
*/
|
|
51
|
-
validateHeadingContent() {
|
|
52
|
-
if (!this.headingContent) {
|
|
53
|
-
const message = new ConsoleMessageClass();
|
|
54
|
-
message
|
|
55
|
-
.addDesignSystemTag()
|
|
56
|
-
.addMonospaceText(' headingContent ')
|
|
57
|
-
.addRegularText('for')
|
|
58
|
-
.addMonospaceText(' <ontario-callout> ')
|
|
59
|
-
.addRegularText('was not provided.')
|
|
60
|
-
.printMessage();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
48
|
/**
|
|
64
49
|
* Watch for changes to the `highlightColour` prop.
|
|
65
50
|
*
|
|
@@ -105,15 +90,14 @@ export class OntarioCallout {
|
|
|
105
90
|
}
|
|
106
91
|
componentWillLoad() {
|
|
107
92
|
this.validateHighlightColour();
|
|
108
|
-
this.validateHeadingContent();
|
|
109
93
|
this.validateHeadingType();
|
|
110
94
|
this.validateHeadingContentType();
|
|
111
95
|
}
|
|
112
96
|
render() {
|
|
113
97
|
return generateCalloutAside(
|
|
114
98
|
'callout',
|
|
115
|
-
this.headingType,
|
|
116
99
|
this.headingContentType,
|
|
100
|
+
this.headingType,
|
|
117
101
|
this.headingContent,
|
|
118
102
|
this.content,
|
|
119
103
|
this.highlightColour,
|
|
@@ -142,7 +126,7 @@ export class OntarioCallout {
|
|
|
142
126
|
mutable: true,
|
|
143
127
|
complexType: {
|
|
144
128
|
original: 'HeadingLevelOptions',
|
|
145
|
-
resolved: '"h2" | "h3" | "h4" | "h5" | "h6"',
|
|
129
|
+
resolved: '"h2" | "h3" | "h4" | "h5" | "h6" | undefined',
|
|
146
130
|
references: {
|
|
147
131
|
HeadingLevelOptions: {
|
|
148
132
|
location: 'import',
|
|
@@ -152,7 +136,7 @@ export class OntarioCallout {
|
|
|
152
136
|
},
|
|
153
137
|
},
|
|
154
138
|
required: false,
|
|
155
|
-
optional:
|
|
139
|
+
optional: true,
|
|
156
140
|
docs: {
|
|
157
141
|
tags: [],
|
|
158
142
|
text: 'The heading level of the callout heading.',
|
|
@@ -189,11 +173,11 @@ export class OntarioCallout {
|
|
|
189
173
|
mutable: false,
|
|
190
174
|
complexType: {
|
|
191
175
|
original: 'string',
|
|
192
|
-
resolved: 'string',
|
|
176
|
+
resolved: 'string | undefined',
|
|
193
177
|
references: {},
|
|
194
178
|
},
|
|
195
179
|
required: false,
|
|
196
|
-
optional:
|
|
180
|
+
optional: true,
|
|
197
181
|
docs: {
|
|
198
182
|
tags: [],
|
|
199
183
|
text: 'Text or HTML to be displayed as the heading of the callout. If the heading content should be displayed as HTML, the `headingContentType` needs to be set to `html`.',
|
|
@@ -259,10 +243,6 @@ export class OntarioCallout {
|
|
|
259
243
|
propName: 'headingContentType',
|
|
260
244
|
methodName: 'validateHeadingContentType',
|
|
261
245
|
},
|
|
262
|
-
{
|
|
263
|
-
propName: 'headingContent',
|
|
264
|
-
methodName: 'validateHeadingContent',
|
|
265
|
-
},
|
|
266
246
|
{
|
|
267
247
|
propName: 'highlightColour',
|
|
268
248
|
methodName: 'validateHighlightColour',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ontario-callout.js","sourceRoot":"","sources":["../../../src/components/ontario-callout/ontario-callout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAIN,mBAAmB,GAEnB,MAAM,8DAA8D,CAAC;AACtE,OAAO,EACN,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,GACnB,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAOlF,MAAM,OAAO,cAAc;;;kCASwC,QAAQ;;;+BAoBN,MAAM;;IAE1E;;;OAGG;IAEH,mBAAmB;QAClB,IAAI,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ontario-callout.js","sourceRoot":"","sources":["../../../src/components/ontario-callout/ontario-callout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Prop, Watch } from '@stencil/core';\n\nimport {\n\tCalloutAside,\n\tHeadingLevelOptions,\n\tHeadingContentType,\n\tHeadingContentTypes,\n\tHighlightColourOptions,\n} from '../../utils/components/callout-aside/callout-aside.interface';\nimport {\n\tisValidHighlightColour,\n\tgenerateCalloutAside,\n\tisValidHeadingLevel,\n} from '../../utils/components/callout-aside/callout-aside-helpers';\nimport { validateValueAgainstArray } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\n\n@Component({\n\ttag: 'ontario-callout',\n\tstyleUrl: 'ontario-callout.scss',\n\tshadow: true,\n})\nexport class OntarioCallout implements CalloutAside {\n\t/**\n\t * The heading level of the callout heading.\n\t */\n\t@Prop({ mutable: true }) headingType?: HeadingLevelOptions;\n\n\t/**\n\t * The type of the heading content. If no prop is passed, it will default to `string`.\n\t */\n\t@Prop({ mutable: true }) headingContentType: HeadingContentType = 'string';\n\n\t/**\n\t * Text or HTML to be displayed as the heading of the callout. If the heading content should be displayed as HTML, the `headingContentType` needs to be set to `html`.\n\t */\n\t@Prop() headingContent?: string;\n\n\t/**\n\t * Optional text to be displayed as the content for the callout component. If a string is passed, it will automatically be nested in a paragraph tag.\n\t *\n\t * HTML content can also be passed as the child/children of the callout component if additional/different elements for the content are needed.\n\t *\n\t * @example\n\t * <ontario-callout headingType='h3' headingContent='This is the callout heading'><p>This is the first sentence of the callout content.</p><p>This is the second sentence of the callout content.</p></ontario-callout>\n\t */\n\t@Prop() content?: string;\n\n\t/**\n\t * Optional prop to choose the border colour of the callout. If none is passed, the default colour will be teal.\n\t */\n\t@Prop({ mutable: true }) highlightColour?: HighlightColourOptions = 'teal';\n\n\t/**\n\t * Watch for changes to the `headingType` prop.\n\t * This is for validation purposes to make sure the `headingType` matches one of the `HeadingLevelOptions`.\n\t */\n\t@Watch('headingType')\n\tvalidateHeadingType() {\n\t\tif (!!this.headingType) {\n\t\t\tif (isValidHeadingLevel(this.headingType)) return this.headingType;\n\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\treturn message\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(` headingType ${this.headingType} `)\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-callout> ')\n\t\t\t\t.addRegularText('is not a valid type. Please ensure your heading type matches one of the headingType types.')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes in the `headingContentType` variable for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `headingContentType` will be set to its default (`string`).\n\t * If a match is found in one of the array values then `headingContentType` will be set to the matching array key value.\n\t */\n\t@Watch('headingContentType')\n\tvalidateHeadingContentType() {\n\t\tconst isValid = validateValueAgainstArray(this.headingContentType, HeadingContentTypes);\n\t\tif (isValid) {\n\t\t\treturn this.headingContentType;\n\t\t} else {\n\t\t\treturn this.warnDefaultType();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `highlightColour` prop.\n\t *\n\t * If no `highlightColour` is passed, or if the `highlightColour` does not match the `highlightColour` options, a default value of 'teal' will be applied.\n\t */\n\t@Watch('highlightColour')\n\tvalidateHighlightColour() {\n\t\tif (this.highlightColour) {\n\t\t\tif (isValidHighlightColour(this.highlightColour)) return this.highlightColour;\n\t\t\telse {\n\t\t\t\tconst message = new ConsoleMessageClass();\n\t\t\t\tmessage\n\t\t\t\t\t.addDesignSystemTag()\n\t\t\t\t\t.addMonospaceText(` highlightColour ${this.highlightColour} `)\n\t\t\t\t\t.addRegularText('for')\n\t\t\t\t\t.addMonospaceText(' <ontario-callout> ')\n\t\t\t\t\t.addRegularText(\n\t\t\t\t\t\t'does not match one of the valid highlightColour types. A default colour of `teal` will be applied.',\n\t\t\t\t\t)\n\t\t\t\t\t.printMessage();\n\t\t\t}\n\t\t}\n\n\t\t// if no highlight colour is passed, return 'teal'\n\t\treturn 'teal';\n\t}\n\n\t/**\n\t * Print the invalid `type` warning message.\n\t * @returns default type ('string')\n\t */\n\tprivate warnDefaultType() {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' headingContentType ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-callout> ')\n\t\t\t.addRegularText('was set to an invalid type; only')\n\t\t\t.addMonospaceText(' string or html ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' string ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn (this.headingContentType = 'string');\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateHighlightColour();\n\t\tthis.validateHeadingType();\n\t\tthis.validateHeadingContentType();\n\t}\n\n\trender() {\n\t\treturn generateCalloutAside(\n\t\t\t'callout',\n\t\t\tthis.headingContentType,\n\t\t\tthis.headingType,\n\t\t\tthis.headingContent,\n\t\t\tthis.content,\n\t\t\tthis.highlightColour,\n\t\t);\n\t}\n}\n"]}
|
|
@@ -94,6 +94,24 @@ describe('ontario-callout', () => {
|
|
|
94
94
|
</ontario-callout>
|
|
95
95
|
`);
|
|
96
96
|
});
|
|
97
|
+
it('should not render the heading if headingContent prop is set to `undefined`', async () => {
|
|
98
|
+
const page = await newSpecPage({
|
|
99
|
+
components: [OntarioCallout],
|
|
100
|
+
html: `<ontario-callout ><p><a href="#">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.</p></ontario-callout>`,
|
|
101
|
+
});
|
|
102
|
+
expect(page.root).toEqualHtml(`
|
|
103
|
+
<ontario-callout >
|
|
104
|
+
<mock:shadow-root>
|
|
105
|
+
<div class="ontario-callout ontario-border-highlight--teal">
|
|
106
|
+
<slot></slot>
|
|
107
|
+
</div>
|
|
108
|
+
</mock:shadow-root>
|
|
109
|
+
<p>
|
|
110
|
+
<a href="#">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.
|
|
111
|
+
</p>
|
|
112
|
+
</ontario-callout>
|
|
113
|
+
`);
|
|
114
|
+
});
|
|
97
115
|
it('should reflect attributes/props being set', async () => {
|
|
98
116
|
const page = await newSpecPage({
|
|
99
117
|
components: [OntarioCallout],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ontario-callout.spec.js","sourceRoot":"","sources":["../../../../src/components/ontario-callout/test/ontario-callout.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAChC,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,cAAc,CAAC;gBAC5B,IAAI,EAAE,+PAA+P;aACrQ,CAAC,CAAC;YAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;QACrC,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qEAAqE,EAAE,KAAK,IAAI,EAAE;QACpF,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC9B,UAAU,EAAE,CAAC,cAAc,CAAC;YAC5B,IAAI,EAAE,6OAA6O;SACnP,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;GAc7B,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4EAA4E,EAAE,KAAK,IAAI,EAAE;QAC3F,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC9B,UAAU,EAAE,CAAC,cAAc,CAAC;YAC5B,IAAI,EAAE,uOAAuO;SAC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CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzD,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,CACrC,8FAA8F,CAC9F,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { OntarioCallout } from '../ontario-callout';\n\ndescribe('ontario-callout', () => {\n\tdescribe('snapshot', () => {\n\t\tit('should render the expected html', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioCallout],\n\t\t\t\thtml: `<ontario-callout heading-type=\"h3\" heading-content-type=\"string\" heading-content=\"Get notified\" highlight-colour=\"gold\"><p><a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.</p></ontario-callout>`,\n\t\t\t});\n\n\t\t\texpect(page.root).toMatchSnapshot();\n\t\t});\n\t});\n\n\tit('should render the h2 heading level if no headingType prop is passed', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioCallout],\n\t\t\thtml: `<ontario-callout heading-content-type=\"string\" heading-content=\"Get notified\" highlight-colour=\"gold\"><p><a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.</p></ontario-callout>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-callout heading-content-type=\"string\" heading-content=\"Get notified\" highlight-colour=\"gold\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<div class=\"ontario-callout ontario-border-highlight--gold\">\n\t\t\t\t\t\t<h2 class=\"ontario-callout__title ontario-h5\">\n\t\t\t\t\t\t\tGet notified\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</div>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>\n\t\t\t\t\t<a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.\n\t\t\t\t</p>\n\t\t\t</ontario-callout>\n\t\t`);\n\t});\n\n\tit('should render the expected heading level when a headingType prop is passed', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioCallout],\n\t\t\thtml: `<ontario-callout heading-type=\"h5\" heading-content-type=\"string\" heading-content=\"Get notified\"><p><a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.</p></ontario-callout>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-callout heading-type=\"h5\" heading-content-type=\"string\" heading-content=\"Get notified\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<div class=\"ontario-callout ontario-border-highlight--teal\">\n\t\t\t\t\t\t<h5 class=\"ontario-callout__title ontario-h5\">\n\t\t\t\t\t\t\tGet notified\n\t\t\t\t\t\t</h5>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</div>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>\n\t\t\t\t\t<a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.\n\t\t\t\t</p>\n\t\t\t</ontario-callout>\n\t\t`);\n\t});\n\n\tit('should render a string heading if no headingContentType prop is passed', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioCallout],\n\t\t\thtml: `<ontario-callout heading-content=\"Get notified\"><p><a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.</p></ontario-callout>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-callout heading-content=\"Get notified\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<div class=\"ontario-callout ontario-border-highlight--teal\">\n\t\t\t\t\t\t<h2 class=\"ontario-callout__title ontario-h5\">\n\t\t\t\t\t\t\tGet notified\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</div>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>\n\t\t\t\t\t<a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.\n\t\t\t\t</p>\n\t\t\t</ontario-callout>\n\t\t`);\n\t});\n\n\tit('should render html in the heading content if the headingContentType prop is set to `html`', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioCallout],\n\t\t\thtml: `<ontario-callout heading-content-type=\"html\" heading-content=\"<a href='#'>Get notified</a>\"><p><a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.</p></ontario-callout>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-callout heading-content-type=\"html\" heading-content=\"<a href='#'>Get notified</a>\" heading-content=\"Get notified\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<div class=\"ontario-callout ontario-border-highlight--teal\">\n\t\t\t\t\t\t<h2 class=\"ontario-callout__title ontario-h5\">\n\t\t\t\t\t\t\t<a href=\"#\">Get notified</a>\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</div>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>\n\t\t\t\t\t<a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.\n\t\t\t\t</p>\n\t\t\t</ontario-callout>\n\t\t`);\n\t});\n\n\tit('should reflect attributes/props being set', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioCallout],\n\t\t\thtml: `<ontario-callout heading-type=\"h4\" heading-content-type=\"html\" heading-content=\"<a href='#'>Get notified</a>\" highlight-colour=\"purple\" content=\"Sign up for email reminders and we'll notify you 60 and 30 days before your licence expires.\"></ontario-callout>`,\n\t\t});\n\n\t\texpect(page.rootInstance.headingType).toBe('h4');\n\t\texpect(page.rootInstance.headingContentType).toBe('html');\n\t\texpect(page.rootInstance.headingContent).toBe(\"<a href='#'>Get notified</a>\");\n\t\texpect(page.rootInstance.highlightColour).toBe('purple');\n\t\texpect(page.rootInstance.content).toBe(\n\t\t\t\"Sign up for email reminders and we'll notify you 60 and 30 days before your licence expires.\",\n\t\t);\n\t});\n});\n"]}
|
|
1
|
+
{"version":3,"file":"ontario-callout.spec.js","sourceRoot":"","sources":["../../../../src/components/ontario-callout/test/ontario-callout.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAChC,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,cAAc,CAAC;gBAC5B,IAAI,EAAE,+PAA+P;aACrQ,CAAC,CAAC;YAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;QACrC,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qEAAqE,EAAE,KAAK,IAAI,EAAE;QACpF,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC9B,UAAU,EAAE,CAAC,cAAc,CAAC;YAC5B,IAAI,EAAE,6OAA6O;SACnP,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;GAc7B,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4EAA4E,EAAE,KAAK,IAAI,EAAE;QAC3F,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC9B,UAAU,EAAE,CAAC,cAAc,CAAC;YAC5B,IAAI,EAAE,uOAAuO;SAC7O,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;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YAAY,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1D,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;QAC9E,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzD,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,CACrC,8FAA8F,CAC9F,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { OntarioCallout } from '../ontario-callout';\n\ndescribe('ontario-callout', () => {\n\tdescribe('snapshot', () => {\n\t\tit('should render the expected html', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioCallout],\n\t\t\t\thtml: `<ontario-callout heading-type=\"h3\" heading-content-type=\"string\" heading-content=\"Get notified\" highlight-colour=\"gold\"><p><a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.</p></ontario-callout>`,\n\t\t\t});\n\n\t\t\texpect(page.root).toMatchSnapshot();\n\t\t});\n\t});\n\n\tit('should render the h2 heading level if no headingType prop is passed', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioCallout],\n\t\t\thtml: `<ontario-callout heading-content-type=\"string\" heading-content=\"Get notified\" highlight-colour=\"gold\"><p><a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.</p></ontario-callout>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-callout heading-content-type=\"string\" heading-content=\"Get notified\" highlight-colour=\"gold\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<div class=\"ontario-callout ontario-border-highlight--gold\">\n\t\t\t\t\t\t<h2 class=\"ontario-callout__title ontario-h5\">\n\t\t\t\t\t\t\tGet notified\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</div>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>\n\t\t\t\t\t<a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.\n\t\t\t\t</p>\n\t\t\t</ontario-callout>\n\t\t`);\n\t});\n\n\tit('should render the expected heading level when a headingType prop is passed', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioCallout],\n\t\t\thtml: `<ontario-callout heading-type=\"h5\" heading-content-type=\"string\" heading-content=\"Get notified\"><p><a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.</p></ontario-callout>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-callout heading-type=\"h5\" heading-content-type=\"string\" heading-content=\"Get notified\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<div class=\"ontario-callout ontario-border-highlight--teal\">\n\t\t\t\t\t\t<h5 class=\"ontario-callout__title ontario-h5\">\n\t\t\t\t\t\t\tGet notified\n\t\t\t\t\t\t</h5>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</div>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>\n\t\t\t\t\t<a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.\n\t\t\t\t</p>\n\t\t\t</ontario-callout>\n\t\t`);\n\t});\n\n\tit('should render a string heading if no headingContentType prop is passed', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioCallout],\n\t\t\thtml: `<ontario-callout heading-content=\"Get notified\"><p><a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.</p></ontario-callout>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-callout heading-content=\"Get notified\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<div class=\"ontario-callout ontario-border-highlight--teal\">\n\t\t\t\t\t\t<h2 class=\"ontario-callout__title ontario-h5\">\n\t\t\t\t\t\t\tGet notified\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</div>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>\n\t\t\t\t\t<a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.\n\t\t\t\t</p>\n\t\t\t</ontario-callout>\n\t\t`);\n\t});\n\n\tit('should render html in the heading content if the headingContentType prop is set to `html`', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioCallout],\n\t\t\thtml: `<ontario-callout heading-content-type=\"html\" heading-content=\"<a href='#'>Get notified</a>\"><p><a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.</p></ontario-callout>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-callout heading-content-type=\"html\" heading-content=\"<a href='#'>Get notified</a>\" heading-content=\"Get notified\">\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<div class=\"ontario-callout ontario-border-highlight--teal\">\n\t\t\t\t\t\t<h2 class=\"ontario-callout__title ontario-h5\">\n\t\t\t\t\t\t\t<a href=\"#\">Get notified</a>\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</div>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>\n\t\t\t\t\t<a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.\n\t\t\t\t</p>\n\t\t\t</ontario-callout>\n\t\t`);\n\t});\n\n\tit('should not render the heading if headingContent prop is set to `undefined`', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioCallout],\n\t\t\thtml: `<ontario-callout ><p><a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.</p></ontario-callout>`,\n\t\t});\n\n\t\texpect(page.root).toEqualHtml(`\n\t\t\t<ontario-callout >\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<div class=\"ontario-callout ontario-border-highlight--teal\">\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</div>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t<p>\n\t\t\t\t\t<a href=\"#\">Sign up for email reminders</a> and we’ll notify you 60 and 30 days before your licence expires.\n\t\t\t\t</p>\n\t\t\t</ontario-callout>\n\t\t`);\n\t});\n\n\tit('should reflect attributes/props being set', async () => {\n\t\tconst page = await newSpecPage({\n\t\t\tcomponents: [OntarioCallout],\n\t\t\thtml: `<ontario-callout heading-type=\"h4\" heading-content-type=\"html\" heading-content=\"<a href='#'>Get notified</a>\" highlight-colour=\"purple\" content=\"Sign up for email reminders and we'll notify you 60 and 30 days before your licence expires.\"></ontario-callout>`,\n\t\t});\n\n\t\texpect(page.rootInstance.headingType).toBe('h4');\n\t\texpect(page.rootInstance.headingContentType).toBe('html');\n\t\texpect(page.rootInstance.headingContent).toBe(\"<a href='#'>Get notified</a>\");\n\t\texpect(page.rootInstance.highlightColour).toBe('purple');\n\t\texpect(page.rootInstance.content).toBe(\n\t\t\t\"Sign up for email reminders and we'll notify you 60 and 30 days before your licence expires.\",\n\t\t);\n\t});\n});\n"]}
|
|
@@ -78,6 +78,11 @@
|
|
|
78
78
|
border-radius: 4px;
|
|
79
79
|
margin: 0 2.5rem 2.5rem 0;
|
|
80
80
|
padding: 0;
|
|
81
|
+
/*
|
|
82
|
+
* Required for cards to stay the same height regardless of content size.
|
|
83
|
+
* Without subtracting the margin-bottom amount the cards will be too large.
|
|
84
|
+
*/
|
|
85
|
+
height: calc(100% - 2.5rem);
|
|
81
86
|
list-style-type: none;
|
|
82
87
|
transition: all 0.3s ease-in-out;
|
|
83
88
|
position: relative;
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
.ontario-card-collection__container {
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-wrap: wrap;
|
|
8
|
+
justify-content: flex-start;
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
8
11
|
}
|
|
9
12
|
|
|
10
13
|
.ontario-card-collecton--cards-per-row-4 ::slotted(ontario-card) {
|
|
@@ -21,6 +24,11 @@
|
|
|
21
24
|
margin-right: 0;
|
|
22
25
|
}
|
|
23
26
|
}
|
|
27
|
+
@media screen and (max-width: 40em) {
|
|
28
|
+
.ontario-card-collecton--cards-per-row-4 ::slotted(ontario-card) {
|
|
29
|
+
width: calc(100% - 0.5rem);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
24
32
|
|
|
25
33
|
.ontario-card-collecton--cards-per-row-3 ::slotted(ontario-card) {
|
|
26
34
|
width: calc(33.3% - 1.75rem);
|
|
@@ -28,6 +36,11 @@
|
|
|
28
36
|
.ontario-card-collecton--cards-per-row-3 ::slotted(ontario-card):nth-child(3n) {
|
|
29
37
|
margin-right: 0;
|
|
30
38
|
}
|
|
39
|
+
@media screen and (max-width: 40em) {
|
|
40
|
+
.ontario-card-collecton--cards-per-row-3 ::slotted(ontario-card) {
|
|
41
|
+
width: calc(100% - 0.5rem);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
31
44
|
|
|
32
45
|
.ontario-card-collecton--cards-per-row-2 ::slotted(ontario-card) {
|
|
33
46
|
width: calc(50% - 1.25rem);
|
|
@@ -35,3 +48,8 @@
|
|
|
35
48
|
.ontario-card-collecton--cards-per-row-2 ::slotted(ontario-card):nth-child(2n) {
|
|
36
49
|
margin-right: 0;
|
|
37
50
|
}
|
|
51
|
+
@media screen and (max-width: 40em) {
|
|
52
|
+
.ontario-card-collecton--cards-per-row-2 ::slotted(ontario-card) {
|
|
53
|
+
width: calc(100% - 0.5rem);
|
|
54
|
+
}
|
|
55
|
+
}
|