@ongov/ontario-design-system-component-library 5.0.0 → 6.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-DeXrJ2qJ.js → index-D8WnzEKE.js} +5 -3
- package/dist/cjs/index-D8WnzEKE.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ontario-accordion_46.cjs.entry.js +21 -21
- package/dist/cjs/ontario-accordion_46.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 +1 -1
- package/dist/cjs/ontario-icon-add-alt.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-add.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-arrow-up.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-attach.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-bookmark-off.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-bookmark-on.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-chevron-right.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-clock.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-close-header.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-close.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-cloud.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-collapse.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-credit-card.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-critical-alert-warning.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-delete.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-document.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-download.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-dropdown-arrow.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-edit.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-expand.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-export.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-facebook-alt.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-facebook.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-favourite-off.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-favourite-on.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-filter.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-flickr.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-grid.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-instagram.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-interac-en-alt.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-interac-en.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-interac-fr-alt.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-interac-fr.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-linkedin-alt.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-linkedin.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-list.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-live-chat.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-location-off.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-location-on.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-lock-off.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-lock-on.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-map.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-mastercard-alt.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-media-fast-forward.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-media-fast-rewind.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-media-pause.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-media-play.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-media-stop.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-menu-header.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-menu.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-microphone-off.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-microphone-on.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-more-vertical.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-new-window.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-next.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-password-hide.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-password-show.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-phone.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-photo.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-pin-location-off.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-pin-location-on.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-previous.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-remove-alt.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-remove.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-replay.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-rss-feed.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-save.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-search-white.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-search.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-sentiment-1.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-sentiment-2.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-sentiment-3.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-sentiment-4.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-settings.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-share.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-sort.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-tag.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-timer.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-transport-bicycle.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-transport-car.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-transport-walk.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-tty.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-twitter-alt.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-twitter.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-upload.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-video.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-visa.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-vote-dislike.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-vote-like.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-vpn-key.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-wheelchair.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-wifi.cjs.entry.js +1 -1
- package/dist/cjs/ontario-icon-youtube.cjs.entry.js +1 -1
- package/dist/collection/components/ontario-accordion/ontario-accordion.css +1 -1
- package/dist/collection/components/ontario-aside/ontario-aside.css +1 -1
- package/dist/collection/components/ontario-badge/ontario-badge.css +1 -1
- package/dist/collection/components/ontario-blockquote/ontario-blockquote.css +1 -1
- package/dist/collection/components/ontario-callout/ontario-callout.css +1 -1
- package/dist/collection/components/ontario-card/ontario-card.css +1 -1
- package/dist/collection/components/ontario-checkbox/ontario-checkboxes.css +2 -2
- package/dist/collection/components/ontario-date-input/ontario-date-input.css +3 -3
- package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.css +3 -3
- package/dist/collection/components/ontario-fieldset/ontario-fieldset.css +2 -2
- package/dist/collection/components/ontario-footer/ontario-footer.css +1 -1
- package/dist/collection/components/ontario-header/ontario-application-header.css +1 -1
- package/dist/collection/components/ontario-header/service-ontario-header.css +1 -1
- package/dist/collection/components/ontario-input/ontario-input.css +3 -3
- package/dist/collection/components/ontario-loading-indicator/ontario-loading-indicator.css +1 -1
- package/dist/collection/components/ontario-page-alert/ontario-page-alert.css +1 -1
- package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.css +3 -3
- package/dist/collection/components/ontario-search-box/ontario-search-box.css +3 -3
- package/dist/collection/components/ontario-step-indicator/ontario-step-indicator.css +1 -1
- package/dist/collection/components/ontario-textarea/ontario-textarea.css +3 -3
- package/dist/collection/fonts/courier-prime-400/courier-prime-400.otf +0 -0
- package/dist/collection/fonts/courier-prime-400/courier-prime-400.woff2 +0 -0
- package/dist/collection/fonts/courier-prime-400--italic/courier-prime-400--italic.otf +0 -0
- package/dist/collection/fonts/courier-prime-400--italic/courier-prime-400--italic.woff2 +0 -0
- package/dist/collection/fonts/courier-prime-700/courier-prime-700.otf +0 -0
- package/dist/collection/fonts/courier-prime-700/courier-prime-700.woff2 +0 -0
- package/dist/collection/fonts/courier-prime-700--italic/courier-prime-700--italic.otf +0 -0
- package/dist/collection/fonts/courier-prime-700--italic/courier-prime-700--italic.woff2 +0 -0
- package/dist/{ontario-design-system-components/fonts → collection/fonts/license}/OFL.txt +2 -2
- package/dist/collection/fonts/open-sans-300/open-sans-300.otf +0 -0
- package/dist/collection/fonts/open-sans-300/open-sans-300.woff2 +0 -0
- package/dist/collection/fonts/open-sans-300--italic/open-sans-300--italic.otf +0 -0
- package/dist/collection/fonts/open-sans-300--italic/open-sans-300--italic.woff2 +0 -0
- package/dist/collection/fonts/open-sans-400/open-sans-400.otf +0 -0
- package/dist/collection/fonts/open-sans-400/open-sans-400.woff2 +0 -0
- package/dist/collection/fonts/open-sans-400--italic/open-sans-400--italic.otf +0 -0
- package/dist/collection/fonts/open-sans-400--italic/open-sans-400--italic.woff2 +0 -0
- package/dist/collection/fonts/open-sans-500/open-sans-500.otf +0 -0
- package/dist/collection/fonts/open-sans-500/open-sans-500.ttf +0 -0
- package/dist/collection/fonts/open-sans-500/open-sans-500.woff2 +0 -0
- package/dist/collection/fonts/open-sans-500--italic/open-sans-500--italic.otf +0 -0
- package/dist/collection/fonts/open-sans-500--italic/open-sans-500--italic.ttf +0 -0
- package/dist/collection/fonts/open-sans-500--italic/open-sans-500--italic.woff2 +0 -0
- package/dist/collection/fonts/open-sans-600/open-sans-600.otf +0 -0
- package/dist/collection/fonts/open-sans-600/open-sans-600.woff2 +0 -0
- package/dist/collection/fonts/open-sans-600--italic/open-sans-600--italic.otf +0 -0
- package/dist/collection/fonts/open-sans-600--italic/open-sans-600--italic.woff2 +0 -0
- package/dist/collection/fonts/open-sans-700/open-sans-700.otf +0 -0
- package/dist/collection/fonts/open-sans-700/open-sans-700.woff2 +0 -0
- package/dist/collection/fonts/open-sans-700--italic/open-sans-700--italic.otf +0 -0
- package/dist/collection/fonts/open-sans-700--italic/open-sans-700--italic.woff2 +0 -0
- package/dist/collection/fonts/open-sans-800/open-sans-800.otf +0 -0
- package/dist/collection/fonts/open-sans-800/open-sans-800.ttf +0 -0
- package/dist/collection/fonts/open-sans-800/open-sans-800.woff2 +0 -0
- package/dist/collection/fonts/open-sans-800--italic/open-sans-800--italic.otf +0 -0
- package/dist/collection/fonts/open-sans-800--italic/open-sans-800--italic.ttf +0 -0
- package/dist/collection/fonts/open-sans-800--italic/open-sans-800--italic.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-100/raleway-modified-100.otf +0 -0
- package/dist/collection/fonts/raleway-modified-100/raleway-modified-100.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-100/raleway-modified-100.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-100--italic/raleway-modified-100--italic.otf +0 -0
- package/dist/collection/fonts/raleway-modified-100--italic/raleway-modified-100--italic.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-100--italic/raleway-modified-100--italic.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-200/raleway-modified-200.otf +0 -0
- package/dist/collection/fonts/raleway-modified-200/raleway-modified-200.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-200/raleway-modified-200.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-200--italic/raleway-modified-200--italic.otf +0 -0
- package/dist/collection/fonts/raleway-modified-200--italic/raleway-modified-200--italic.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-200--italic/raleway-modified-200--italic.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-300/raleway-modified-300.otf +0 -0
- package/dist/collection/fonts/raleway-modified-300/raleway-modified-300.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-300/raleway-modified-300.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-300--italic/raleway-modified-300--italic.otf +0 -0
- package/dist/collection/fonts/raleway-modified-300--italic/raleway-modified-300--italic.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-300--italic/raleway-modified-300--italic.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-400/raleway-modified-400.otf +0 -0
- package/dist/collection/fonts/raleway-modified-400/raleway-modified-400.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-400/raleway-modified-400.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-400--italic/raleway-modified-400--italic.otf +0 -0
- package/dist/collection/fonts/raleway-modified-400--italic/raleway-modified-400--italic.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-400--italic/raleway-modified-400--italic.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-500/raleway-modified-500.otf +0 -0
- package/dist/collection/fonts/raleway-modified-500/raleway-modified-500.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-500/raleway-modified-500.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-500--italic/raleway-modified-500--italic.otf +0 -0
- package/dist/collection/fonts/raleway-modified-500--italic/raleway-modified-500--italic.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-500--italic/raleway-modified-500--italic.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-600/raleway-modified-600.otf +0 -0
- package/dist/collection/fonts/raleway-modified-600/raleway-modified-600.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-600/raleway-modified-600.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-600--italic/raleway-modified-600--italic.otf +0 -0
- package/dist/collection/fonts/raleway-modified-600--italic/raleway-modified-600--italic.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-600--italic/raleway-modified-600--italic.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-700/raleway-modified-700.otf +0 -0
- package/dist/collection/fonts/raleway-modified-700/raleway-modified-700.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-700/raleway-modified-700.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-700--italic/raleway-modified-700--italic.otf +0 -0
- package/dist/collection/fonts/raleway-modified-700--italic/raleway-modified-700--italic.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-700--italic/raleway-modified-700--italic.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-800/raleway-modified-800.otf +0 -0
- package/dist/collection/fonts/raleway-modified-800/raleway-modified-800.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-800/raleway-modified-800.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-800--italic/raleway-modified-800--italic.otf +0 -0
- package/dist/collection/fonts/raleway-modified-800--italic/raleway-modified-800--italic.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-800--italic/raleway-modified-800--italic.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-900/raleway-modified-900.otf +0 -0
- package/dist/collection/fonts/raleway-modified-900/raleway-modified-900.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-900/raleway-modified-900.woff2 +0 -0
- package/dist/collection/fonts/raleway-modified-900--italic/raleway-modified-900--italic.otf +0 -0
- package/dist/collection/fonts/raleway-modified-900--italic/raleway-modified-900--italic.ttf +0 -0
- package/dist/collection/fonts/raleway-modified-900--italic/raleway-modified-900--italic.woff2 +0 -0
- package/dist/collection/global.js +1 -6
- package/dist/collection/global.js.map +1 -1
- package/dist/components/index.js +1 -1407
- package/dist/components/index.js.map +1 -1
- package/dist/components/ontario-accordion.js +7 -7
- package/dist/components/ontario-accordion.js.map +1 -1
- package/dist/components/ontario-aside.js +6 -6
- package/dist/components/ontario-aside.js.map +1 -1
- package/dist/components/ontario-back-to-top.js +4 -4
- package/dist/components/ontario-back-to-top.js.map +1 -1
- package/dist/components/ontario-badge.js +1 -1
- package/dist/components/ontario-badge2.js +2 -2
- package/dist/components/ontario-badge2.js.map +1 -1
- package/dist/components/ontario-blockquote.js +5 -5
- package/dist/components/ontario-blockquote.js.map +1 -1
- package/dist/components/ontario-button.js +4 -4
- package/dist/components/ontario-button.js.map +1 -1
- package/dist/components/ontario-callout.js +6 -6
- package/dist/components/ontario-callout.js.map +1 -1
- package/dist/components/ontario-card-collection.js +3 -3
- package/dist/components/ontario-card-collection.js.map +1 -1
- package/dist/components/ontario-card.js +6 -6
- package/dist/components/ontario-card.js.map +1 -1
- package/dist/components/ontario-checkboxes.js +19 -19
- package/dist/components/ontario-checkboxes.js.map +1 -1
- package/dist/components/ontario-critical-alert.js +4 -4
- package/dist/components/ontario-critical-alert.js.map +1 -1
- package/dist/components/ontario-date-input.js +17 -17
- package/dist/components/ontario-date-input.js.map +1 -1
- package/dist/components/ontario-dropdown-list.js +21 -21
- package/dist/components/ontario-dropdown-list.js.map +1 -1
- package/dist/components/ontario-fieldset.js +6 -6
- package/dist/components/ontario-fieldset.js.map +1 -1
- package/dist/components/ontario-footer.js +7 -7
- package/dist/components/ontario-footer.js.map +1 -1
- package/dist/components/ontario-header.js +10 -10
- package/dist/components/ontario-header.js.map +1 -1
- package/dist/components/ontario-hint-expander.js +1 -1
- package/dist/components/ontario-hint-expander2.js +1 -1
- package/dist/components/ontario-hint-text.js +1 -1
- package/dist/components/ontario-hint-text2.js +1 -1
- package/dist/components/ontario-icon-accessibility.js +5 -5
- package/dist/components/ontario-icon-accessibility.js.map +1 -1
- package/dist/components/ontario-icon-account.js +5 -5
- package/dist/components/ontario-icon-account.js.map +1 -1
- package/dist/components/ontario-icon-add-alt.js +5 -5
- package/dist/components/ontario-icon-add-alt.js.map +1 -1
- package/dist/components/ontario-icon-add.js +5 -5
- package/dist/components/ontario-icon-add.js.map +1 -1
- package/dist/components/ontario-icon-alert-error.js +1 -1
- package/dist/components/ontario-icon-alert-information.js +1 -1
- package/dist/components/ontario-icon-alert-success.js +1 -1
- package/dist/components/ontario-icon-alert-warning.js +1 -1
- package/dist/components/ontario-icon-arrow-up.js +5 -5
- package/dist/components/ontario-icon-arrow-up.js.map +1 -1
- package/dist/components/ontario-icon-attach.js +5 -5
- package/dist/components/ontario-icon-attach.js.map +1 -1
- package/dist/components/ontario-icon-bookmark-off.js +5 -5
- package/dist/components/ontario-icon-bookmark-off.js.map +1 -1
- package/dist/components/ontario-icon-bookmark-on.js +5 -5
- package/dist/components/ontario-icon-bookmark-on.js.map +1 -1
- package/dist/components/ontario-icon-calendar.js +5 -5
- package/dist/components/ontario-icon-calendar.js.map +1 -1
- package/dist/components/ontario-icon-camera.js +5 -5
- package/dist/components/ontario-icon-camera.js.map +1 -1
- package/dist/components/ontario-icon-chevron-down.js +1 -1
- package/dist/components/ontario-icon-chevron-down2.js +1 -1
- package/dist/components/ontario-icon-chevron-left.js +1 -1
- package/dist/components/ontario-icon-chevron-left2.js +1 -1
- package/dist/components/ontario-icon-chevron-right.js +5 -5
- package/dist/components/ontario-icon-chevron-right.js.map +1 -1
- package/dist/components/ontario-icon-chevron-up.js +1 -1
- package/dist/components/ontario-icon-chevron-up2.js +1 -1
- package/dist/components/ontario-icon-clock.js +5 -5
- package/dist/components/ontario-icon-clock.js.map +1 -1
- package/dist/components/ontario-icon-close-header.js +5 -5
- package/dist/components/ontario-icon-close-header.js.map +1 -1
- package/dist/components/ontario-icon-close.js +5 -5
- package/dist/components/ontario-icon-close.js.map +1 -1
- package/dist/components/ontario-icon-cloud.js +5 -5
- package/dist/components/ontario-icon-cloud.js.map +1 -1
- package/dist/components/ontario-icon-collapse.js +5 -5
- package/dist/components/ontario-icon-collapse.js.map +1 -1
- package/dist/components/ontario-icon-credit-card.js +5 -5
- package/dist/components/ontario-icon-credit-card.js.map +1 -1
- package/dist/components/ontario-icon-critical-alert-warning.js +5 -5
- package/dist/components/ontario-icon-critical-alert-warning.js.map +1 -1
- package/dist/components/ontario-icon-delete.js +5 -5
- package/dist/components/ontario-icon-delete.js.map +1 -1
- package/dist/components/ontario-icon-document.js +5 -5
- package/dist/components/ontario-icon-document.js.map +1 -1
- package/dist/components/ontario-icon-download.js +5 -5
- package/dist/components/ontario-icon-download.js.map +1 -1
- package/dist/components/ontario-icon-dropdown-arrow.js +3 -3
- package/dist/components/ontario-icon-dropdown-arrow.js.map +1 -1
- package/dist/components/ontario-icon-edit.js +5 -5
- package/dist/components/ontario-icon-edit.js.map +1 -1
- package/dist/components/ontario-icon-email.js +5 -5
- package/dist/components/ontario-icon-email.js.map +1 -1
- package/dist/components/ontario-icon-expand.js +5 -5
- package/dist/components/ontario-icon-expand.js.map +1 -1
- package/dist/components/ontario-icon-export.js +5 -5
- package/dist/components/ontario-icon-export.js.map +1 -1
- package/dist/components/ontario-icon-facebook-alt.js +5 -5
- package/dist/components/ontario-icon-facebook-alt.js.map +1 -1
- package/dist/components/ontario-icon-facebook.js +5 -5
- package/dist/components/ontario-icon-facebook.js.map +1 -1
- package/dist/components/ontario-icon-favourite-off.js +5 -5
- package/dist/components/ontario-icon-favourite-off.js.map +1 -1
- package/dist/components/ontario-icon-favourite-on.js +5 -5
- package/dist/components/ontario-icon-favourite-on.js.map +1 -1
- package/dist/components/ontario-icon-filter.js +5 -5
- package/dist/components/ontario-icon-filter.js.map +1 -1
- package/dist/components/ontario-icon-flickr.js +5 -5
- package/dist/components/ontario-icon-flickr.js.map +1 -1
- package/dist/components/ontario-icon-grid.js +5 -5
- package/dist/components/ontario-icon-grid.js.map +1 -1
- package/dist/components/ontario-icon-help.js +5 -5
- package/dist/components/ontario-icon-help.js.map +1 -1
- package/dist/components/ontario-icon-instagram.js +5 -5
- package/dist/components/ontario-icon-instagram.js.map +1 -1
- package/dist/components/ontario-icon-interac-en-alt.js +3 -3
- package/dist/components/ontario-icon-interac-en-alt.js.map +1 -1
- package/dist/components/ontario-icon-interac-en.js +3 -3
- package/dist/components/ontario-icon-interac-en.js.map +1 -1
- package/dist/components/ontario-icon-interac-fr-alt.js +3 -3
- package/dist/components/ontario-icon-interac-fr-alt.js.map +1 -1
- package/dist/components/ontario-icon-interac-fr.js +3 -3
- package/dist/components/ontario-icon-interac-fr.js.map +1 -1
- package/dist/components/ontario-icon-linkedin-alt.js +5 -5
- package/dist/components/ontario-icon-linkedin-alt.js.map +1 -1
- package/dist/components/ontario-icon-linkedin.js +5 -5
- package/dist/components/ontario-icon-linkedin.js.map +1 -1
- package/dist/components/ontario-icon-list.js +5 -5
- package/dist/components/ontario-icon-list.js.map +1 -1
- package/dist/components/ontario-icon-live-chat.js +5 -5
- package/dist/components/ontario-icon-live-chat.js.map +1 -1
- package/dist/components/ontario-icon-location-off.js +5 -5
- package/dist/components/ontario-icon-location-off.js.map +1 -1
- package/dist/components/ontario-icon-location-on.js +5 -5
- package/dist/components/ontario-icon-location-on.js.map +1 -1
- package/dist/components/ontario-icon-lock-off.js +5 -5
- package/dist/components/ontario-icon-lock-off.js.map +1 -1
- package/dist/components/ontario-icon-lock-on.js +5 -5
- package/dist/components/ontario-icon-lock-on.js.map +1 -1
- package/dist/components/ontario-icon-map.js +5 -5
- package/dist/components/ontario-icon-map.js.map +1 -1
- package/dist/components/ontario-icon-mastercard-alt.js +3 -3
- package/dist/components/ontario-icon-mastercard-alt.js.map +1 -1
- package/dist/components/ontario-icon-mastercard.js +3 -3
- package/dist/components/ontario-icon-mastercard.js.map +1 -1
- package/dist/components/ontario-icon-media-fast-forward.js +5 -5
- package/dist/components/ontario-icon-media-fast-forward.js.map +1 -1
- package/dist/components/ontario-icon-media-fast-rewind.js +5 -5
- package/dist/components/ontario-icon-media-fast-rewind.js.map +1 -1
- package/dist/components/ontario-icon-media-pause.js +5 -5
- package/dist/components/ontario-icon-media-pause.js.map +1 -1
- package/dist/components/ontario-icon-media-play.js +5 -5
- package/dist/components/ontario-icon-media-play.js.map +1 -1
- package/dist/components/ontario-icon-media-stop.js +5 -5
- package/dist/components/ontario-icon-media-stop.js.map +1 -1
- package/dist/components/ontario-icon-menu-header.js +5 -5
- package/dist/components/ontario-icon-menu-header.js.map +1 -1
- package/dist/components/ontario-icon-menu.js +5 -5
- package/dist/components/ontario-icon-menu.js.map +1 -1
- package/dist/components/ontario-icon-microphone-off.js +5 -5
- package/dist/components/ontario-icon-microphone-off.js.map +1 -1
- package/dist/components/ontario-icon-microphone-on.js +5 -5
- package/dist/components/ontario-icon-microphone-on.js.map +1 -1
- package/dist/components/ontario-icon-more-vertical.js +5 -5
- package/dist/components/ontario-icon-more-vertical.js.map +1 -1
- package/dist/components/ontario-icon-new-window.js +5 -5
- package/dist/components/ontario-icon-new-window.js.map +1 -1
- package/dist/components/ontario-icon-next.js +5 -5
- package/dist/components/ontario-icon-next.js.map +1 -1
- package/dist/components/ontario-icon-notification.js +5 -5
- package/dist/components/ontario-icon-notification.js.map +1 -1
- package/dist/components/ontario-icon-password-hide.js +5 -5
- package/dist/components/ontario-icon-password-hide.js.map +1 -1
- package/dist/components/ontario-icon-password-show.js +5 -5
- package/dist/components/ontario-icon-password-show.js.map +1 -1
- package/dist/components/ontario-icon-phone.js +5 -5
- package/dist/components/ontario-icon-phone.js.map +1 -1
- package/dist/components/ontario-icon-photo.js +5 -5
- package/dist/components/ontario-icon-photo.js.map +1 -1
- package/dist/components/ontario-icon-pin-location-off.js +5 -5
- package/dist/components/ontario-icon-pin-location-off.js.map +1 -1
- package/dist/components/ontario-icon-pin-location-on.js +5 -5
- package/dist/components/ontario-icon-pin-location-on.js.map +1 -1
- package/dist/components/ontario-icon-previous.js +5 -5
- package/dist/components/ontario-icon-previous.js.map +1 -1
- package/dist/components/ontario-icon-print.js +5 -5
- package/dist/components/ontario-icon-print.js.map +1 -1
- package/dist/components/ontario-icon-remove-alt.js +5 -5
- package/dist/components/ontario-icon-remove-alt.js.map +1 -1
- package/dist/components/ontario-icon-remove.js +5 -5
- package/dist/components/ontario-icon-remove.js.map +1 -1
- package/dist/components/ontario-icon-replay.js +5 -5
- package/dist/components/ontario-icon-replay.js.map +1 -1
- package/dist/components/ontario-icon-rss-feed.js +5 -5
- package/dist/components/ontario-icon-rss-feed.js.map +1 -1
- package/dist/components/ontario-icon-save.js +5 -5
- package/dist/components/ontario-icon-save.js.map +1 -1
- package/dist/components/ontario-icon-search-white.js +5 -5
- package/dist/components/ontario-icon-search-white.js.map +1 -1
- package/dist/components/ontario-icon-search.js +5 -5
- package/dist/components/ontario-icon-search.js.map +1 -1
- package/dist/components/ontario-icon-sentiment-1.js +5 -5
- package/dist/components/ontario-icon-sentiment-1.js.map +1 -1
- package/dist/components/ontario-icon-sentiment-2.js +5 -5
- package/dist/components/ontario-icon-sentiment-2.js.map +1 -1
- package/dist/components/ontario-icon-sentiment-3.js +5 -5
- package/dist/components/ontario-icon-sentiment-3.js.map +1 -1
- package/dist/components/ontario-icon-sentiment-4.js +5 -5
- package/dist/components/ontario-icon-sentiment-4.js.map +1 -1
- package/dist/components/ontario-icon-sentiment-5.js +5 -5
- package/dist/components/ontario-icon-sentiment-5.js.map +1 -1
- package/dist/components/ontario-icon-settings.js +5 -5
- package/dist/components/ontario-icon-settings.js.map +1 -1
- package/dist/components/ontario-icon-share.js +5 -5
- package/dist/components/ontario-icon-share.js.map +1 -1
- package/dist/components/ontario-icon-sort.js +5 -5
- package/dist/components/ontario-icon-sort.js.map +1 -1
- package/dist/components/ontario-icon-tag.js +5 -5
- package/dist/components/ontario-icon-tag.js.map +1 -1
- package/dist/components/ontario-icon-text-message.js +5 -5
- package/dist/components/ontario-icon-text-message.js.map +1 -1
- package/dist/components/ontario-icon-timer.js +5 -5
- package/dist/components/ontario-icon-timer.js.map +1 -1
- package/dist/components/ontario-icon-transport-bicycle.js +5 -5
- package/dist/components/ontario-icon-transport-bicycle.js.map +1 -1
- package/dist/components/ontario-icon-transport-bus.js +5 -5
- package/dist/components/ontario-icon-transport-bus.js.map +1 -1
- package/dist/components/ontario-icon-transport-car.js +5 -5
- package/dist/components/ontario-icon-transport-car.js.map +1 -1
- package/dist/components/ontario-icon-transport-walk.js +5 -5
- package/dist/components/ontario-icon-transport-walk.js.map +1 -1
- package/dist/components/ontario-icon-tty.js +5 -5
- package/dist/components/ontario-icon-tty.js.map +1 -1
- package/dist/components/ontario-icon-twitter-alt.js +5 -5
- package/dist/components/ontario-icon-twitter-alt.js.map +1 -1
- package/dist/components/ontario-icon-twitter.js +5 -5
- package/dist/components/ontario-icon-twitter.js.map +1 -1
- package/dist/components/ontario-icon-upload.js +5 -5
- package/dist/components/ontario-icon-upload.js.map +1 -1
- package/dist/components/ontario-icon-video.js +5 -5
- package/dist/components/ontario-icon-video.js.map +1 -1
- package/dist/components/ontario-icon-visa.js +3 -3
- package/dist/components/ontario-icon-visa.js.map +1 -1
- package/dist/components/ontario-icon-vote-dislike.js +5 -5
- package/dist/components/ontario-icon-vote-dislike.js.map +1 -1
- package/dist/components/ontario-icon-vote-like.js +5 -5
- package/dist/components/ontario-icon-vote-like.js.map +1 -1
- package/dist/components/ontario-icon-vpn-key.js +5 -5
- package/dist/components/ontario-icon-vpn-key.js.map +1 -1
- package/dist/components/ontario-icon-wheelchair.js +5 -5
- package/dist/components/ontario-icon-wheelchair.js.map +1 -1
- package/dist/components/ontario-icon-wifi.js +5 -5
- package/dist/components/ontario-icon-wifi.js.map +1 -1
- package/dist/components/ontario-icon-youtube.js +5 -5
- package/dist/components/ontario-icon-youtube.js.map +1 -1
- package/dist/components/ontario-input.js +21 -21
- package/dist/components/ontario-input.js.map +1 -1
- package/dist/components/ontario-language-toggle.js +1 -1
- package/dist/components/ontario-language-toggle2.js +1 -1
- package/dist/components/ontario-loading-indicator.js +6 -6
- package/dist/components/ontario-loading-indicator.js.map +1 -1
- package/dist/components/ontario-page-alert.js +7 -7
- package/dist/components/ontario-page-alert.js.map +1 -1
- package/dist/components/ontario-radio-buttons.js +19 -19
- package/dist/components/ontario-radio-buttons.js.map +1 -1
- package/dist/components/ontario-search-box.js +14 -14
- package/dist/components/ontario-search-box.js.map +1 -1
- package/dist/components/ontario-step-indicator.js +6 -6
- package/dist/components/ontario-step-indicator.js.map +1 -1
- package/dist/components/ontario-table.js +4 -4
- package/dist/components/ontario-table.js.map +1 -1
- package/dist/components/ontario-task-list.js +6 -6
- package/dist/components/ontario-task-list.js.map +1 -1
- package/dist/components/ontario-task.js +9 -9
- package/dist/components/ontario-task.js.map +1 -1
- package/dist/components/ontario-textarea.js +20 -20
- package/dist/components/ontario-textarea.js.map +1 -1
- package/dist/components/{p-DFHrahxt.js → p-CfKaEpHy.js} +3 -3
- package/dist/components/p-CfKaEpHy.js.map +1 -0
- package/dist/components/utils.js +2 -2
- package/dist/components/validation-functions.js +1 -1
- package/dist/esm/{index-Cc98g_3o.js → index-Z6XKfgxi.js} +5 -3
- package/dist/esm/index-Z6XKfgxi.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/ontario-accordion_46.entry.js +21 -21
- package/dist/esm/ontario-accordion_46.entry.js.map +1 -1
- package/dist/esm/ontario-design-system-components.js +2 -2
- package/dist/esm/ontario-icon-account.entry.js +1 -1
- package/dist/esm/ontario-icon-add-alt.entry.js +1 -1
- package/dist/esm/ontario-icon-add.entry.js +1 -1
- package/dist/esm/ontario-icon-arrow-up.entry.js +1 -1
- package/dist/esm/ontario-icon-attach.entry.js +1 -1
- package/dist/esm/ontario-icon-bookmark-off.entry.js +1 -1
- package/dist/esm/ontario-icon-bookmark-on.entry.js +1 -1
- package/dist/esm/ontario-icon-calendar.entry.js +1 -1
- package/dist/esm/ontario-icon-chevron-right.entry.js +1 -1
- package/dist/esm/ontario-icon-clock.entry.js +1 -1
- package/dist/esm/ontario-icon-close-header.entry.js +1 -1
- package/dist/esm/ontario-icon-close.entry.js +1 -1
- package/dist/esm/ontario-icon-cloud.entry.js +1 -1
- package/dist/esm/ontario-icon-collapse.entry.js +1 -1
- package/dist/esm/ontario-icon-credit-card.entry.js +1 -1
- package/dist/esm/ontario-icon-critical-alert-warning.entry.js +1 -1
- package/dist/esm/ontario-icon-delete.entry.js +1 -1
- package/dist/esm/ontario-icon-document.entry.js +1 -1
- package/dist/esm/ontario-icon-download.entry.js +1 -1
- package/dist/esm/ontario-icon-dropdown-arrow.entry.js +1 -1
- package/dist/esm/ontario-icon-edit.entry.js +1 -1
- package/dist/esm/ontario-icon-expand.entry.js +1 -1
- package/dist/esm/ontario-icon-export.entry.js +1 -1
- package/dist/esm/ontario-icon-facebook-alt.entry.js +1 -1
- package/dist/esm/ontario-icon-facebook.entry.js +1 -1
- package/dist/esm/ontario-icon-favourite-off.entry.js +1 -1
- package/dist/esm/ontario-icon-favourite-on.entry.js +1 -1
- package/dist/esm/ontario-icon-filter.entry.js +1 -1
- package/dist/esm/ontario-icon-flickr.entry.js +1 -1
- package/dist/esm/ontario-icon-grid.entry.js +1 -1
- package/dist/esm/ontario-icon-instagram.entry.js +1 -1
- package/dist/esm/ontario-icon-interac-en-alt.entry.js +1 -1
- package/dist/esm/ontario-icon-interac-en.entry.js +1 -1
- package/dist/esm/ontario-icon-interac-fr-alt.entry.js +1 -1
- package/dist/esm/ontario-icon-interac-fr.entry.js +1 -1
- package/dist/esm/ontario-icon-linkedin-alt.entry.js +1 -1
- package/dist/esm/ontario-icon-linkedin.entry.js +1 -1
- package/dist/esm/ontario-icon-list.entry.js +1 -1
- package/dist/esm/ontario-icon-live-chat.entry.js +1 -1
- package/dist/esm/ontario-icon-location-off.entry.js +1 -1
- package/dist/esm/ontario-icon-location-on.entry.js +1 -1
- package/dist/esm/ontario-icon-lock-off.entry.js +1 -1
- package/dist/esm/ontario-icon-lock-on.entry.js +1 -1
- package/dist/esm/ontario-icon-map.entry.js +1 -1
- package/dist/esm/ontario-icon-mastercard-alt.entry.js +1 -1
- package/dist/esm/ontario-icon-media-fast-forward.entry.js +1 -1
- package/dist/esm/ontario-icon-media-fast-rewind.entry.js +1 -1
- package/dist/esm/ontario-icon-media-pause.entry.js +1 -1
- package/dist/esm/ontario-icon-media-play.entry.js +1 -1
- package/dist/esm/ontario-icon-media-stop.entry.js +1 -1
- package/dist/esm/ontario-icon-menu-header.entry.js +1 -1
- package/dist/esm/ontario-icon-menu.entry.js +1 -1
- package/dist/esm/ontario-icon-microphone-off.entry.js +1 -1
- package/dist/esm/ontario-icon-microphone-on.entry.js +1 -1
- package/dist/esm/ontario-icon-more-vertical.entry.js +1 -1
- package/dist/esm/ontario-icon-new-window.entry.js +1 -1
- package/dist/esm/ontario-icon-next.entry.js +1 -1
- package/dist/esm/ontario-icon-password-hide.entry.js +1 -1
- package/dist/esm/ontario-icon-password-show.entry.js +1 -1
- package/dist/esm/ontario-icon-phone.entry.js +1 -1
- package/dist/esm/ontario-icon-photo.entry.js +1 -1
- package/dist/esm/ontario-icon-pin-location-off.entry.js +1 -1
- package/dist/esm/ontario-icon-pin-location-on.entry.js +1 -1
- package/dist/esm/ontario-icon-previous.entry.js +1 -1
- package/dist/esm/ontario-icon-remove-alt.entry.js +1 -1
- package/dist/esm/ontario-icon-remove.entry.js +1 -1
- package/dist/esm/ontario-icon-replay.entry.js +1 -1
- package/dist/esm/ontario-icon-rss-feed.entry.js +1 -1
- package/dist/esm/ontario-icon-save.entry.js +1 -1
- package/dist/esm/ontario-icon-search-white.entry.js +1 -1
- package/dist/esm/ontario-icon-search.entry.js +1 -1
- package/dist/esm/ontario-icon-sentiment-1.entry.js +1 -1
- package/dist/esm/ontario-icon-sentiment-2.entry.js +1 -1
- package/dist/esm/ontario-icon-sentiment-3.entry.js +1 -1
- package/dist/esm/ontario-icon-sentiment-4.entry.js +1 -1
- package/dist/esm/ontario-icon-settings.entry.js +1 -1
- package/dist/esm/ontario-icon-share.entry.js +1 -1
- package/dist/esm/ontario-icon-sort.entry.js +1 -1
- package/dist/esm/ontario-icon-tag.entry.js +1 -1
- package/dist/esm/ontario-icon-timer.entry.js +1 -1
- package/dist/esm/ontario-icon-transport-bicycle.entry.js +1 -1
- package/dist/esm/ontario-icon-transport-car.entry.js +1 -1
- package/dist/esm/ontario-icon-transport-walk.entry.js +1 -1
- package/dist/esm/ontario-icon-tty.entry.js +1 -1
- package/dist/esm/ontario-icon-twitter-alt.entry.js +1 -1
- package/dist/esm/ontario-icon-twitter.entry.js +1 -1
- package/dist/esm/ontario-icon-upload.entry.js +1 -1
- package/dist/esm/ontario-icon-video.entry.js +1 -1
- package/dist/esm/ontario-icon-visa.entry.js +1 -1
- package/dist/esm/ontario-icon-vote-dislike.entry.js +1 -1
- package/dist/esm/ontario-icon-vote-like.entry.js +1 -1
- package/dist/esm/ontario-icon-vpn-key.entry.js +1 -1
- package/dist/esm/ontario-icon-wheelchair.entry.js +1 -1
- package/dist/esm/ontario-icon-wifi.entry.js +1 -1
- package/dist/esm/ontario-icon-youtube.entry.js +1 -1
- package/dist/ontario-design-system-components/fonts/courier-prime-400/courier-prime-400.otf +0 -0
- package/dist/ontario-design-system-components/fonts/courier-prime-400/courier-prime-400.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/courier-prime-400--italic/courier-prime-400--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/courier-prime-400--italic/courier-prime-400--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/courier-prime-700/courier-prime-700.otf +0 -0
- package/dist/ontario-design-system-components/fonts/courier-prime-700/courier-prime-700.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/courier-prime-700--italic/courier-prime-700--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/courier-prime-700--italic/courier-prime-700--italic.woff2 +0 -0
- package/{www/fonts → dist/ontario-design-system-components/fonts/license}/OFL.txt +2 -2
- package/dist/ontario-design-system-components/fonts/open-sans-300/open-sans-300.otf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-300/open-sans-300.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-300--italic/open-sans-300--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-300--italic/open-sans-300--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-400/open-sans-400.otf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-400/open-sans-400.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-400--italic/open-sans-400--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-400--italic/open-sans-400--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-500/open-sans-500.otf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-500/open-sans-500.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-500/open-sans-500.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-500--italic/open-sans-500--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-500--italic/open-sans-500--italic.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-500--italic/open-sans-500--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-600/open-sans-600.otf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-600/open-sans-600.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-600--italic/open-sans-600--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-600--italic/open-sans-600--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-700/open-sans-700.otf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-700/open-sans-700.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-700--italic/open-sans-700--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-700--italic/open-sans-700--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-800/open-sans-800.otf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-800/open-sans-800.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-800/open-sans-800.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-800--italic/open-sans-800--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-800--italic/open-sans-800--italic.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/open-sans-800--italic/open-sans-800--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-100/raleway-modified-100.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-100/raleway-modified-100.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-100/raleway-modified-100.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-100--italic/raleway-modified-100--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-100--italic/raleway-modified-100--italic.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-100--italic/raleway-modified-100--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-200/raleway-modified-200.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-200/raleway-modified-200.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-200/raleway-modified-200.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-200--italic/raleway-modified-200--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-200--italic/raleway-modified-200--italic.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-200--italic/raleway-modified-200--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-300/raleway-modified-300.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-300/raleway-modified-300.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-300/raleway-modified-300.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-300--italic/raleway-modified-300--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-300--italic/raleway-modified-300--italic.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-300--italic/raleway-modified-300--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-400/raleway-modified-400.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-400/raleway-modified-400.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-400/raleway-modified-400.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-400--italic/raleway-modified-400--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-400--italic/raleway-modified-400--italic.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-400--italic/raleway-modified-400--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-500/raleway-modified-500.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-500/raleway-modified-500.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-500/raleway-modified-500.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-500--italic/raleway-modified-500--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-500--italic/raleway-modified-500--italic.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-500--italic/raleway-modified-500--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-600/raleway-modified-600.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-600/raleway-modified-600.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-600/raleway-modified-600.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-600--italic/raleway-modified-600--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-600--italic/raleway-modified-600--italic.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-600--italic/raleway-modified-600--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-700/raleway-modified-700.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-700/raleway-modified-700.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-700/raleway-modified-700.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-700--italic/raleway-modified-700--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-700--italic/raleway-modified-700--italic.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-700--italic/raleway-modified-700--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-800/raleway-modified-800.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-800/raleway-modified-800.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-800/raleway-modified-800.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-800--italic/raleway-modified-800--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-800--italic/raleway-modified-800--italic.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-800--italic/raleway-modified-800--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-900/raleway-modified-900.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-900/raleway-modified-900.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-900/raleway-modified-900.woff2 +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-900--italic/raleway-modified-900--italic.otf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-900--italic/raleway-modified-900--italic.ttf +0 -0
- package/dist/ontario-design-system-components/fonts/raleway-modified-900--italic/raleway-modified-900--italic.woff2 +0 -0
- package/dist/ontario-design-system-components/ontario-design-system-components.css +286 -35
- package/dist/ontario-design-system-components/ontario-design-system-components.esm.js +3 -3
- package/{www/build/p-8da90bb4.entry.js → dist/ontario-design-system-components/p-0164666e.entry.js} +13 -13
- package/{www/build/p-26869e8a.entry.js → dist/ontario-design-system-components/p-06397814.entry.js} +13 -13
- package/{www/build/p-9a2f8c1c.entry.js → dist/ontario-design-system-components/p-073230c2.entry.js} +2 -2
- package/{www/build/p-a461ae95.entry.js → dist/ontario-design-system-components/p-0b4f9ec0.entry.js} +2 -2
- package/{www/build/p-c47ab092.entry.js → dist/ontario-design-system-components/p-0dd3dffd.entry.js} +2 -2
- package/{www/build/p-0400c437.entry.js → dist/ontario-design-system-components/p-11d753b7.entry.js} +2 -2
- package/{www/build/p-3e109675.entry.js → dist/ontario-design-system-components/p-12f0f2b4.entry.js} +2 -2
- package/{www/build/p-20f62402.entry.js → dist/ontario-design-system-components/p-15df0107.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-e7ad9cd1.entry.js → p-17407497.entry.js} +2 -2
- package/{www/build/p-89cf474d.entry.js → dist/ontario-design-system-components/p-19c27012.entry.js} +7 -7
- package/{www/build/p-c1020e95.entry.js → dist/ontario-design-system-components/p-1a658564.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-0221d644.entry.js → p-1b13bdbb.entry.js} +2 -2
- package/{www/build/p-2d7877ad.entry.js → dist/ontario-design-system-components/p-1b6c3d61.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-18dcdedf.entry.js → p-201594dc.entry.js} +13 -13
- package/dist/ontario-design-system-components/{p-dd5f9666.entry.js → p-224ac275.entry.js} +2 -2
- package/{www/build/p-5447e1f9.entry.js → dist/ontario-design-system-components/p-2308cab7.entry.js} +13 -13
- package/{www/build/p-f16d8dc2.entry.js → dist/ontario-design-system-components/p-2341df54.entry.js} +13 -13
- package/dist/ontario-design-system-components/{p-d22c81fd.entry.js → p-2a365fec.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-f786feb3.entry.js → p-2e845374.entry.js} +13 -13
- package/dist/ontario-design-system-components/{p-b9d1d9dd.entry.js → p-2ed7f164.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-58cf7ae0.entry.js → p-2ef0057e.entry.js} +2 -2
- package/{www/build/p-317cf15a.entry.js → dist/ontario-design-system-components/p-3459dfba.entry.js} +12 -12
- package/{www/build/p-71177432.entry.js → dist/ontario-design-system-components/p-399b16d4.entry.js} +2 -2
- package/{www/build/p-ec256ee9.entry.js → dist/ontario-design-system-components/p-3cb71072.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-52119535.entry.js → p-40771f5b.entry.js} +2 -2
- package/{www/build/p-369053ef.entry.js → dist/ontario-design-system-components/p-4366f704.entry.js} +2 -2
- package/{www/build/p-9bf9b376.entry.js → dist/ontario-design-system-components/p-43734e72.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-7a368819.entry.js → p-4622b378.entry.js} +2 -2
- package/{www/build/p-e1e13291.entry.js → dist/ontario-design-system-components/p-4e1ca81b.entry.js} +13 -13
- package/dist/ontario-design-system-components/{p-f0474488.entry.js → p-5257d724.entry.js} +2 -2
- package/{www/build/p-8b1ecff0.entry.js → dist/ontario-design-system-components/p-55002351.entry.js} +63 -63
- package/dist/ontario-design-system-components/p-55002351.entry.js.map +1 -0
- package/dist/ontario-design-system-components/{p-2a4a46c0.entry.js → p-59b2a51d.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-161bb74f.entry.js → p-59f23a25.entry.js} +13 -13
- package/{www/build/p-a6bcce90.entry.js → dist/ontario-design-system-components/p-5ef3b2cc.entry.js} +13 -13
- package/dist/ontario-design-system-components/{p-5b4261df.entry.js → p-5fa71c0d.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-f82546f5.entry.js → p-61612d3e.entry.js} +2 -2
- package/{www/build/p-0c1e47a5.entry.js → dist/ontario-design-system-components/p-66bf6e42.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-bd9e45d7.entry.js → p-66c93663.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-f4cf14ae.entry.js → p-66f53f37.entry.js} +2 -2
- package/{www/build/p-13838b64.entry.js → dist/ontario-design-system-components/p-696a1b00.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-6f7aa788.entry.js → p-6e1b8a34.entry.js} +2 -2
- package/{www/build/p-35ca52cb.entry.js → dist/ontario-design-system-components/p-73a29c94.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-80a3db9a.entry.js → p-76a2f0c7.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-7d8118ba.entry.js → p-7818d8a2.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-8a933021.entry.js → p-799e9674.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-9304f671.entry.js → p-7e7c7dd2.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-e89c0127.entry.js → p-805cdde0.entry.js} +2 -2
- package/{www/build/p-f10e5b74.entry.js → dist/ontario-design-system-components/p-83127110.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-9cf81533.entry.js → p-84bff712.entry.js} +13 -13
- package/{www/build/p-bfe43b37.entry.js → dist/ontario-design-system-components/p-85f4e413.entry.js} +13 -13
- package/{www/build/p-293e29db.entry.js → dist/ontario-design-system-components/p-8788910b.entry.js} +13 -13
- package/{www/build/p-7b751e88.entry.js → dist/ontario-design-system-components/p-8fccb34c.entry.js} +2 -2
- package/{www/build/p-8d55ecee.entry.js → dist/ontario-design-system-components/p-9450f10f.entry.js} +2 -2
- package/{www/build/p-94cb299b.entry.js → dist/ontario-design-system-components/p-95d2c69f.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-70c909dd.entry.js → p-9ebd9d9c.entry.js} +13 -13
- package/dist/ontario-design-system-components/p-Z6XKfgxi.js +1458 -0
- package/dist/ontario-design-system-components/p-Z6XKfgxi.js.map +1 -0
- package/dist/ontario-design-system-components/{p-76996ce0.entry.js → p-a1171a59.entry.js} +2 -2
- package/{www/build/p-89488ad4.entry.js → dist/ontario-design-system-components/p-a4448b11.entry.js} +13 -13
- package/{www/build/p-08bbe9ce.entry.js → dist/ontario-design-system-components/p-a528a1ca.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-e20329bb.entry.js → p-a9216eae.entry.js} +2 -2
- package/{www/build/p-f3c26f46.entry.js → dist/ontario-design-system-components/p-a9c103cf.entry.js} +13 -13
- package/{www/build/p-8e6179ba.entry.js → dist/ontario-design-system-components/p-aab543f6.entry.js} +2 -2
- package/{www/build/p-b6c5d12d.entry.js → dist/ontario-design-system-components/p-aed58958.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-c8e904b7.entry.js → p-af452b01.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-0a310bef.entry.js → p-af865300.entry.js} +2 -2
- package/{www/build/p-d131b3d0.entry.js → dist/ontario-design-system-components/p-b06f6e12.entry.js} +9 -9
- package/{www/build/p-133c95cd.entry.js → dist/ontario-design-system-components/p-b1c01063.entry.js} +5 -5
- package/{www/build/p-0e358c50.entry.js → dist/ontario-design-system-components/p-b47a18b8.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-75a672cc.entry.js → p-b7ea81d2.entry.js} +2 -2
- package/{www/build/p-2fe2bd8b.entry.js → dist/ontario-design-system-components/p-b96cbcc5.entry.js} +13 -13
- package/dist/ontario-design-system-components/{p-2405deb7.entry.js → p-b9a60843.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-dd18474e.entry.js → p-bf53ed44.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-67d32252.entry.js → p-c30623c7.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-dceb04cc.entry.js → p-c9cdcee1.entry.js} +2 -2
- package/{www/build/p-5e4cb73b.entry.js → dist/ontario-design-system-components/p-cc3e3d4c.entry.js} +13 -13
- package/{www/build/p-9a3b5e95.entry.js → dist/ontario-design-system-components/p-cca22349.entry.js} +2 -2
- package/{www/build/p-674ee78d.entry.js → dist/ontario-design-system-components/p-cfbaaed2.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-da6da0c3.entry.js → p-d340442c.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-7cae8647.entry.js → p-d40a8f30.entry.js} +2 -2
- package/{www/build/p-b56a95dd.entry.js → dist/ontario-design-system-components/p-d4dfdd88.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-86448a01.entry.js → p-d7a79820.entry.js} +2 -2
- package/{www/build/p-1099ac4a.entry.js → dist/ontario-design-system-components/p-dba8a3d4.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-2107ed20.entry.js → p-ded78746.entry.js} +2 -2
- package/{www/build/p-5c9243f9.entry.js → dist/ontario-design-system-components/p-deeb4109.entry.js} +2 -2
- package/{www/build/p-5d507ca1.entry.js → dist/ontario-design-system-components/p-df1fbb93.entry.js} +2 -2
- package/{www/build/p-ab13e2ea.entry.js → dist/ontario-design-system-components/p-df3ae0a8.entry.js} +2 -2
- package/{www/build/p-07428a55.entry.js → dist/ontario-design-system-components/p-e076287c.entry.js} +2 -2
- package/{www/build/p-1374d586.entry.js → dist/ontario-design-system-components/p-e3699001.entry.js} +7 -7
- package/{www/build/p-f204ad9e.entry.js → dist/ontario-design-system-components/p-e558a0c3.entry.js} +5 -5
- package/dist/ontario-design-system-components/{p-d3558489.entry.js → p-e7511cdf.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-48456d35.entry.js → p-e8d91fb5.entry.js} +2 -2
- package/{www/build/p-3e3d2425.entry.js → dist/ontario-design-system-components/p-f15c44b6.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-dd22c335.entry.js → p-f4864f2d.entry.js} +2 -2
- package/dist/ontario-design-system-components/{p-fcd689c7.entry.js → p-f5a300a4.entry.js} +2 -2
- package/{www/build/p-7b6a8b7e.entry.js → dist/ontario-design-system-components/p-fc8177ed.entry.js} +13 -13
- package/{www/build/p-1c0d93e3.entry.js → dist/ontario-design-system-components/p-fe2f2364.entry.js} +2 -2
- package/{www/build/p-1c14d2da.entry.js → dist/ontario-design-system-components/p-ff1b397e.entry.js} +7 -7
- package/dist/types/global.d.ts +0 -1
- package/package.json +3 -3
- package/src/components/ontario-badge/ontario-badge.scss +1 -1
- package/src/components/ontario-blockquote/ontario-blockquote.scss +1 -1
- package/src/components/ontario-loading-indicator/ontario-loading-indicator.scss +1 -1
- package/src/components/ontario-radio-buttons/ontario-radio-buttons.scss +1 -1
- package/src/global.ts +1 -7
- package/www/build/ontario-design-system-components.css +286 -35
- package/www/build/ontario-design-system-components.esm.js +3 -3
- package/{dist/ontario-design-system-components/p-8da90bb4.entry.js → www/build/p-0164666e.entry.js} +13 -13
- package/{dist/ontario-design-system-components/p-26869e8a.entry.js → www/build/p-06397814.entry.js} +13 -13
- package/{dist/ontario-design-system-components/p-9a2f8c1c.entry.js → www/build/p-073230c2.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-a461ae95.entry.js → www/build/p-0b4f9ec0.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-c47ab092.entry.js → www/build/p-0dd3dffd.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-0400c437.entry.js → www/build/p-11d753b7.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-3e109675.entry.js → www/build/p-12f0f2b4.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-20f62402.entry.js → www/build/p-15df0107.entry.js} +2 -2
- package/www/build/{p-e7ad9cd1.entry.js → p-17407497.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-89cf474d.entry.js → www/build/p-19c27012.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-c1020e95.entry.js → www/build/p-1a658564.entry.js} +2 -2
- package/www/build/{p-0221d644.entry.js → p-1b13bdbb.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-2d7877ad.entry.js → www/build/p-1b6c3d61.entry.js} +2 -2
- package/www/build/{p-18dcdedf.entry.js → p-201594dc.entry.js} +13 -13
- package/www/build/{p-dd5f9666.entry.js → p-224ac275.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-5447e1f9.entry.js → www/build/p-2308cab7.entry.js} +13 -13
- package/{dist/ontario-design-system-components/p-f16d8dc2.entry.js → www/build/p-2341df54.entry.js} +13 -13
- package/www/build/{p-d22c81fd.entry.js → p-2a365fec.entry.js} +2 -2
- package/www/build/{p-f786feb3.entry.js → p-2e845374.entry.js} +13 -13
- package/www/build/{p-b9d1d9dd.entry.js → p-2ed7f164.entry.js} +2 -2
- package/www/build/{p-58cf7ae0.entry.js → p-2ef0057e.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-317cf15a.entry.js → www/build/p-3459dfba.entry.js} +12 -12
- package/{dist/ontario-design-system-components/p-71177432.entry.js → www/build/p-399b16d4.entry.js} +2 -2
- package/www/build/{p-75dc5ad3.js → p-399dfa9e.js} +3 -3
- package/{dist/ontario-design-system-components/p-ec256ee9.entry.js → www/build/p-3cb71072.entry.js} +2 -2
- package/www/build/{p-52119535.entry.js → p-40771f5b.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-369053ef.entry.js → www/build/p-4366f704.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-9bf9b376.entry.js → www/build/p-43734e72.entry.js} +2 -2
- package/www/build/{p-7a368819.entry.js → p-4622b378.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-e1e13291.entry.js → www/build/p-4e1ca81b.entry.js} +13 -13
- package/www/build/{p-f0474488.entry.js → p-5257d724.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-8b1ecff0.entry.js → www/build/p-55002351.entry.js} +63 -63
- package/www/build/p-55002351.entry.js.map +1 -0
- package/www/build/{p-2a4a46c0.entry.js → p-59b2a51d.entry.js} +2 -2
- package/www/build/{p-161bb74f.entry.js → p-59f23a25.entry.js} +13 -13
- package/{dist/ontario-design-system-components/p-a6bcce90.entry.js → www/build/p-5ef3b2cc.entry.js} +13 -13
- package/www/build/{p-5b4261df.entry.js → p-5fa71c0d.entry.js} +2 -2
- package/www/build/{p-f82546f5.entry.js → p-61612d3e.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-0c1e47a5.entry.js → www/build/p-66bf6e42.entry.js} +2 -2
- package/www/build/{p-bd9e45d7.entry.js → p-66c93663.entry.js} +2 -2
- package/www/build/{p-f4cf14ae.entry.js → p-66f53f37.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-13838b64.entry.js → www/build/p-696a1b00.entry.js} +2 -2
- package/www/build/{p-6f7aa788.entry.js → p-6e1b8a34.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-35ca52cb.entry.js → www/build/p-73a29c94.entry.js} +2 -2
- package/www/build/{p-80a3db9a.entry.js → p-76a2f0c7.entry.js} +2 -2
- package/www/build/{p-7d8118ba.entry.js → p-7818d8a2.entry.js} +2 -2
- package/www/build/{p-8a933021.entry.js → p-799e9674.entry.js} +2 -2
- package/www/build/{p-9304f671.entry.js → p-7e7c7dd2.entry.js} +2 -2
- package/www/build/{p-e89c0127.entry.js → p-805cdde0.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-f10e5b74.entry.js → www/build/p-83127110.entry.js} +2 -2
- package/www/build/{p-9cf81533.entry.js → p-84bff712.entry.js} +13 -13
- package/{dist/ontario-design-system-components/p-bfe43b37.entry.js → www/build/p-85f4e413.entry.js} +13 -13
- package/{dist/ontario-design-system-components/p-293e29db.entry.js → www/build/p-8788910b.entry.js} +13 -13
- package/{dist/ontario-design-system-components/p-7b751e88.entry.js → www/build/p-8fccb34c.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-8d55ecee.entry.js → www/build/p-9450f10f.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-94cb299b.entry.js → www/build/p-95d2c69f.entry.js} +2 -2
- package/www/build/{p-70c909dd.entry.js → p-9ebd9d9c.entry.js} +13 -13
- package/www/build/p-Z6XKfgxi.js +1458 -0
- package/www/build/p-Z6XKfgxi.js.map +1 -0
- package/www/build/{p-76996ce0.entry.js → p-a1171a59.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-89488ad4.entry.js → www/build/p-a4448b11.entry.js} +13 -13
- package/{dist/ontario-design-system-components/p-08bbe9ce.entry.js → www/build/p-a528a1ca.entry.js} +2 -2
- package/www/build/{p-77459959.css → p-a661bec6.css} +286 -35
- package/www/build/{p-e20329bb.entry.js → p-a9216eae.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-f3c26f46.entry.js → www/build/p-a9c103cf.entry.js} +13 -13
- package/{dist/ontario-design-system-components/p-8e6179ba.entry.js → www/build/p-aab543f6.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-b6c5d12d.entry.js → www/build/p-aed58958.entry.js} +2 -2
- package/www/build/{p-c8e904b7.entry.js → p-af452b01.entry.js} +2 -2
- package/www/build/{p-0a310bef.entry.js → p-af865300.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-d131b3d0.entry.js → www/build/p-b06f6e12.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-133c95cd.entry.js → www/build/p-b1c01063.entry.js} +5 -5
- package/{dist/ontario-design-system-components/p-0e358c50.entry.js → www/build/p-b47a18b8.entry.js} +2 -2
- package/www/build/{p-75a672cc.entry.js → p-b7ea81d2.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-2fe2bd8b.entry.js → www/build/p-b96cbcc5.entry.js} +13 -13
- package/www/build/{p-2405deb7.entry.js → p-b9a60843.entry.js} +2 -2
- package/www/build/{p-dd18474e.entry.js → p-bf53ed44.entry.js} +2 -2
- package/www/build/{p-67d32252.entry.js → p-c30623c7.entry.js} +2 -2
- package/www/build/{p-dceb04cc.entry.js → p-c9cdcee1.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-5e4cb73b.entry.js → www/build/p-cc3e3d4c.entry.js} +13 -13
- package/{dist/ontario-design-system-components/p-9a3b5e95.entry.js → www/build/p-cca22349.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-674ee78d.entry.js → www/build/p-cfbaaed2.entry.js} +2 -2
- package/www/build/{p-da6da0c3.entry.js → p-d340442c.entry.js} +2 -2
- package/www/build/{p-7cae8647.entry.js → p-d40a8f30.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-b56a95dd.entry.js → www/build/p-d4dfdd88.entry.js} +2 -2
- package/www/build/{p-86448a01.entry.js → p-d7a79820.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-1099ac4a.entry.js → www/build/p-dba8a3d4.entry.js} +2 -2
- package/www/build/{p-2107ed20.entry.js → p-ded78746.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-5c9243f9.entry.js → www/build/p-deeb4109.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-5d507ca1.entry.js → www/build/p-df1fbb93.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-ab13e2ea.entry.js → www/build/p-df3ae0a8.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-07428a55.entry.js → www/build/p-e076287c.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-1374d586.entry.js → www/build/p-e3699001.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-f204ad9e.entry.js → www/build/p-e558a0c3.entry.js} +5 -5
- package/www/build/{p-d3558489.entry.js → p-e7511cdf.entry.js} +2 -2
- package/www/build/{p-48456d35.entry.js → p-e8d91fb5.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-3e3d2425.entry.js → www/build/p-f15c44b6.entry.js} +2 -2
- package/www/build/{p-dd22c335.entry.js → p-f4864f2d.entry.js} +2 -2
- package/www/build/{p-fcd689c7.entry.js → p-f5a300a4.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-7b6a8b7e.entry.js → www/build/p-fc8177ed.entry.js} +13 -13
- package/{dist/ontario-design-system-components/p-1c0d93e3.entry.js → www/build/p-fe2f2364.entry.js} +2 -2
- package/{dist/ontario-design-system-components/p-1c14d2da.entry.js → www/build/p-ff1b397e.entry.js} +7 -7
- package/www/fonts/courier-prime-400/courier-prime-400.otf +0 -0
- package/www/fonts/courier-prime-400/courier-prime-400.woff2 +0 -0
- package/www/fonts/courier-prime-400--italic/courier-prime-400--italic.otf +0 -0
- package/www/fonts/courier-prime-400--italic/courier-prime-400--italic.woff2 +0 -0
- package/www/fonts/courier-prime-700/courier-prime-700.otf +0 -0
- package/www/fonts/courier-prime-700/courier-prime-700.woff2 +0 -0
- package/www/fonts/courier-prime-700--italic/courier-prime-700--italic.otf +0 -0
- package/www/fonts/courier-prime-700--italic/courier-prime-700--italic.woff2 +0 -0
- package/{dist/collection/fonts → www/fonts/license}/OFL.txt +2 -2
- package/www/fonts/open-sans-300/open-sans-300.otf +0 -0
- package/www/fonts/open-sans-300/open-sans-300.woff2 +0 -0
- package/www/fonts/open-sans-300--italic/open-sans-300--italic.otf +0 -0
- package/www/fonts/open-sans-300--italic/open-sans-300--italic.woff2 +0 -0
- package/www/fonts/open-sans-400/open-sans-400.otf +0 -0
- package/www/fonts/open-sans-400/open-sans-400.woff2 +0 -0
- package/www/fonts/open-sans-400--italic/open-sans-400--italic.otf +0 -0
- package/www/fonts/open-sans-400--italic/open-sans-400--italic.woff2 +0 -0
- package/www/fonts/open-sans-500/open-sans-500.otf +0 -0
- package/www/fonts/open-sans-500/open-sans-500.ttf +0 -0
- package/www/fonts/open-sans-500/open-sans-500.woff2 +0 -0
- package/www/fonts/open-sans-500--italic/open-sans-500--italic.otf +0 -0
- package/www/fonts/open-sans-500--italic/open-sans-500--italic.ttf +0 -0
- package/www/fonts/open-sans-500--italic/open-sans-500--italic.woff2 +0 -0
- package/www/fonts/open-sans-600/open-sans-600.otf +0 -0
- package/www/fonts/open-sans-600/open-sans-600.woff2 +0 -0
- package/www/fonts/open-sans-600--italic/open-sans-600--italic.otf +0 -0
- package/www/fonts/open-sans-600--italic/open-sans-600--italic.woff2 +0 -0
- package/www/fonts/open-sans-700/open-sans-700.otf +0 -0
- package/www/fonts/open-sans-700/open-sans-700.woff2 +0 -0
- package/www/fonts/open-sans-700--italic/open-sans-700--italic.otf +0 -0
- package/www/fonts/open-sans-700--italic/open-sans-700--italic.woff2 +0 -0
- package/www/fonts/open-sans-800/open-sans-800.otf +0 -0
- package/www/fonts/open-sans-800/open-sans-800.ttf +0 -0
- package/www/fonts/open-sans-800/open-sans-800.woff2 +0 -0
- package/www/fonts/open-sans-800--italic/open-sans-800--italic.otf +0 -0
- package/www/fonts/open-sans-800--italic/open-sans-800--italic.ttf +0 -0
- package/www/fonts/open-sans-800--italic/open-sans-800--italic.woff2 +0 -0
- package/www/fonts/raleway-modified-100/raleway-modified-100.otf +0 -0
- package/www/fonts/raleway-modified-100/raleway-modified-100.ttf +0 -0
- package/www/fonts/raleway-modified-100/raleway-modified-100.woff2 +0 -0
- package/www/fonts/raleway-modified-100--italic/raleway-modified-100--italic.otf +0 -0
- package/www/fonts/raleway-modified-100--italic/raleway-modified-100--italic.ttf +0 -0
- package/www/fonts/raleway-modified-100--italic/raleway-modified-100--italic.woff2 +0 -0
- package/www/fonts/raleway-modified-200/raleway-modified-200.otf +0 -0
- package/www/fonts/raleway-modified-200/raleway-modified-200.ttf +0 -0
- package/www/fonts/raleway-modified-200/raleway-modified-200.woff2 +0 -0
- package/www/fonts/raleway-modified-200--italic/raleway-modified-200--italic.otf +0 -0
- package/www/fonts/raleway-modified-200--italic/raleway-modified-200--italic.ttf +0 -0
- package/www/fonts/raleway-modified-200--italic/raleway-modified-200--italic.woff2 +0 -0
- package/www/fonts/raleway-modified-300/raleway-modified-300.otf +0 -0
- package/www/fonts/raleway-modified-300/raleway-modified-300.ttf +0 -0
- package/www/fonts/raleway-modified-300/raleway-modified-300.woff2 +0 -0
- package/www/fonts/raleway-modified-300--italic/raleway-modified-300--italic.otf +0 -0
- package/www/fonts/raleway-modified-300--italic/raleway-modified-300--italic.ttf +0 -0
- package/www/fonts/raleway-modified-300--italic/raleway-modified-300--italic.woff2 +0 -0
- package/www/fonts/raleway-modified-400/raleway-modified-400.otf +0 -0
- package/www/fonts/raleway-modified-400/raleway-modified-400.ttf +0 -0
- package/www/fonts/raleway-modified-400/raleway-modified-400.woff2 +0 -0
- package/www/fonts/raleway-modified-400--italic/raleway-modified-400--italic.otf +0 -0
- package/www/fonts/raleway-modified-400--italic/raleway-modified-400--italic.ttf +0 -0
- package/www/fonts/raleway-modified-400--italic/raleway-modified-400--italic.woff2 +0 -0
- package/www/fonts/raleway-modified-500/raleway-modified-500.otf +0 -0
- package/www/fonts/raleway-modified-500/raleway-modified-500.ttf +0 -0
- package/www/fonts/raleway-modified-500/raleway-modified-500.woff2 +0 -0
- package/www/fonts/raleway-modified-500--italic/raleway-modified-500--italic.otf +0 -0
- package/www/fonts/raleway-modified-500--italic/raleway-modified-500--italic.ttf +0 -0
- package/www/fonts/raleway-modified-500--italic/raleway-modified-500--italic.woff2 +0 -0
- package/www/fonts/raleway-modified-600/raleway-modified-600.otf +0 -0
- package/www/fonts/raleway-modified-600/raleway-modified-600.ttf +0 -0
- package/www/fonts/raleway-modified-600/raleway-modified-600.woff2 +0 -0
- package/www/fonts/raleway-modified-600--italic/raleway-modified-600--italic.otf +0 -0
- package/www/fonts/raleway-modified-600--italic/raleway-modified-600--italic.ttf +0 -0
- package/www/fonts/raleway-modified-600--italic/raleway-modified-600--italic.woff2 +0 -0
- package/www/fonts/raleway-modified-700/raleway-modified-700.otf +0 -0
- package/www/fonts/raleway-modified-700/raleway-modified-700.ttf +0 -0
- package/www/fonts/raleway-modified-700/raleway-modified-700.woff2 +0 -0
- package/www/fonts/raleway-modified-700--italic/raleway-modified-700--italic.otf +0 -0
- package/www/fonts/raleway-modified-700--italic/raleway-modified-700--italic.ttf +0 -0
- package/www/fonts/raleway-modified-700--italic/raleway-modified-700--italic.woff2 +0 -0
- package/www/fonts/raleway-modified-800/raleway-modified-800.otf +0 -0
- package/www/fonts/raleway-modified-800/raleway-modified-800.ttf +0 -0
- package/www/fonts/raleway-modified-800/raleway-modified-800.woff2 +0 -0
- package/www/fonts/raleway-modified-800--italic/raleway-modified-800--italic.otf +0 -0
- package/www/fonts/raleway-modified-800--italic/raleway-modified-800--italic.ttf +0 -0
- package/www/fonts/raleway-modified-800--italic/raleway-modified-800--italic.woff2 +0 -0
- package/www/fonts/raleway-modified-900/raleway-modified-900.otf +0 -0
- package/www/fonts/raleway-modified-900/raleway-modified-900.ttf +0 -0
- package/www/fonts/raleway-modified-900/raleway-modified-900.woff2 +0 -0
- package/www/fonts/raleway-modified-900--italic/raleway-modified-900--italic.otf +0 -0
- package/www/fonts/raleway-modified-900--italic/raleway-modified-900--italic.ttf +0 -0
- package/www/fonts/raleway-modified-900--italic/raleway-modified-900--italic.woff2 +0 -0
- package/www/index.html +4 -4
- package/dist/cjs/index-DeXrJ2qJ.js.map +0 -1
- package/dist/components/p-DFHrahxt.js.map +0 -1
- package/dist/esm/index-Cc98g_3o.js.map +0 -1
- package/dist/ontario-design-system-components/p-8b1ecff0.entry.js.map +0 -1
- package/dist/ontario-design-system-components/p-Cc98g_3o.js +0 -1458
- package/dist/ontario-design-system-components/p-Cc98g_3o.js.map +0 -1
- package/www/build/p-8b1ecff0.entry.js.map +0 -1
- package/www/build/p-Cc98g_3o.js +0 -1458
- package/www/build/p-Cc98g_3o.js.map +0 -1
- /package/dist/ontario-design-system-components/{p-8da90bb4.entry.js.map → p-0164666e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-26869e8a.entry.js.map → p-06397814.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-9a2f8c1c.entry.js.map → p-073230c2.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-a461ae95.entry.js.map → p-0b4f9ec0.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c47ab092.entry.js.map → p-0dd3dffd.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-0400c437.entry.js.map → p-11d753b7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-3e109675.entry.js.map → p-12f0f2b4.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-20f62402.entry.js.map → p-15df0107.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e7ad9cd1.entry.js.map → p-17407497.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-89cf474d.entry.js.map → p-19c27012.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c1020e95.entry.js.map → p-1a658564.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-0221d644.entry.js.map → p-1b13bdbb.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-2d7877ad.entry.js.map → p-1b6c3d61.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-18dcdedf.entry.js.map → p-201594dc.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-dd5f9666.entry.js.map → p-224ac275.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5447e1f9.entry.js.map → p-2308cab7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f16d8dc2.entry.js.map → p-2341df54.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-d22c81fd.entry.js.map → p-2a365fec.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f786feb3.entry.js.map → p-2e845374.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-b9d1d9dd.entry.js.map → p-2ed7f164.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-58cf7ae0.entry.js.map → p-2ef0057e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-317cf15a.entry.js.map → p-3459dfba.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-71177432.entry.js.map → p-399b16d4.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-ec256ee9.entry.js.map → p-3cb71072.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-52119535.entry.js.map → p-40771f5b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-369053ef.entry.js.map → p-4366f704.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-9bf9b376.entry.js.map → p-43734e72.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-7a368819.entry.js.map → p-4622b378.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e1e13291.entry.js.map → p-4e1ca81b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f0474488.entry.js.map → p-5257d724.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-2a4a46c0.entry.js.map → p-59b2a51d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-161bb74f.entry.js.map → p-59f23a25.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-a6bcce90.entry.js.map → p-5ef3b2cc.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5b4261df.entry.js.map → p-5fa71c0d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f82546f5.entry.js.map → p-61612d3e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-0c1e47a5.entry.js.map → p-66bf6e42.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-bd9e45d7.entry.js.map → p-66c93663.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f4cf14ae.entry.js.map → p-66f53f37.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-13838b64.entry.js.map → p-696a1b00.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-6f7aa788.entry.js.map → p-6e1b8a34.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-35ca52cb.entry.js.map → p-73a29c94.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-80a3db9a.entry.js.map → p-76a2f0c7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-7d8118ba.entry.js.map → p-7818d8a2.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-8a933021.entry.js.map → p-799e9674.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-9304f671.entry.js.map → p-7e7c7dd2.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e89c0127.entry.js.map → p-805cdde0.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f10e5b74.entry.js.map → p-83127110.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-9cf81533.entry.js.map → p-84bff712.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-bfe43b37.entry.js.map → p-85f4e413.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-293e29db.entry.js.map → p-8788910b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-7b751e88.entry.js.map → p-8fccb34c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-8d55ecee.entry.js.map → p-9450f10f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-94cb299b.entry.js.map → p-95d2c69f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-70c909dd.entry.js.map → p-9ebd9d9c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-76996ce0.entry.js.map → p-a1171a59.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-89488ad4.entry.js.map → p-a4448b11.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-08bbe9ce.entry.js.map → p-a528a1ca.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e20329bb.entry.js.map → p-a9216eae.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f3c26f46.entry.js.map → p-a9c103cf.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-8e6179ba.entry.js.map → p-aab543f6.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-b6c5d12d.entry.js.map → p-aed58958.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c8e904b7.entry.js.map → p-af452b01.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-0a310bef.entry.js.map → p-af865300.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-d131b3d0.entry.js.map → p-b06f6e12.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-133c95cd.entry.js.map → p-b1c01063.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-0e358c50.entry.js.map → p-b47a18b8.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-75a672cc.entry.js.map → p-b7ea81d2.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-2fe2bd8b.entry.js.map → p-b96cbcc5.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-2405deb7.entry.js.map → p-b9a60843.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-dd18474e.entry.js.map → p-bf53ed44.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-67d32252.entry.js.map → p-c30623c7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-dceb04cc.entry.js.map → p-c9cdcee1.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5e4cb73b.entry.js.map → p-cc3e3d4c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-9a3b5e95.entry.js.map → p-cca22349.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-674ee78d.entry.js.map → p-cfbaaed2.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-da6da0c3.entry.js.map → p-d340442c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-7cae8647.entry.js.map → p-d40a8f30.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-b56a95dd.entry.js.map → p-d4dfdd88.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-86448a01.entry.js.map → p-d7a79820.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-1099ac4a.entry.js.map → p-dba8a3d4.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-2107ed20.entry.js.map → p-ded78746.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5c9243f9.entry.js.map → p-deeb4109.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5d507ca1.entry.js.map → p-df1fbb93.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-ab13e2ea.entry.js.map → p-df3ae0a8.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-07428a55.entry.js.map → p-e076287c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-1374d586.entry.js.map → p-e3699001.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f204ad9e.entry.js.map → p-e558a0c3.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-d3558489.entry.js.map → p-e7511cdf.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-48456d35.entry.js.map → p-e8d91fb5.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-3e3d2425.entry.js.map → p-f15c44b6.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-dd22c335.entry.js.map → p-f4864f2d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-fcd689c7.entry.js.map → p-f5a300a4.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-7b6a8b7e.entry.js.map → p-fc8177ed.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-1c0d93e3.entry.js.map → p-fe2f2364.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-1c14d2da.entry.js.map → p-ff1b397e.entry.js.map} +0 -0
- /package/www/build/{p-8da90bb4.entry.js.map → p-0164666e.entry.js.map} +0 -0
- /package/www/build/{p-26869e8a.entry.js.map → p-06397814.entry.js.map} +0 -0
- /package/www/build/{p-9a2f8c1c.entry.js.map → p-073230c2.entry.js.map} +0 -0
- /package/www/build/{p-a461ae95.entry.js.map → p-0b4f9ec0.entry.js.map} +0 -0
- /package/www/build/{p-c47ab092.entry.js.map → p-0dd3dffd.entry.js.map} +0 -0
- /package/www/build/{p-0400c437.entry.js.map → p-11d753b7.entry.js.map} +0 -0
- /package/www/build/{p-3e109675.entry.js.map → p-12f0f2b4.entry.js.map} +0 -0
- /package/www/build/{p-20f62402.entry.js.map → p-15df0107.entry.js.map} +0 -0
- /package/www/build/{p-e7ad9cd1.entry.js.map → p-17407497.entry.js.map} +0 -0
- /package/www/build/{p-89cf474d.entry.js.map → p-19c27012.entry.js.map} +0 -0
- /package/www/build/{p-c1020e95.entry.js.map → p-1a658564.entry.js.map} +0 -0
- /package/www/build/{p-0221d644.entry.js.map → p-1b13bdbb.entry.js.map} +0 -0
- /package/www/build/{p-2d7877ad.entry.js.map → p-1b6c3d61.entry.js.map} +0 -0
- /package/www/build/{p-18dcdedf.entry.js.map → p-201594dc.entry.js.map} +0 -0
- /package/www/build/{p-dd5f9666.entry.js.map → p-224ac275.entry.js.map} +0 -0
- /package/www/build/{p-5447e1f9.entry.js.map → p-2308cab7.entry.js.map} +0 -0
- /package/www/build/{p-f16d8dc2.entry.js.map → p-2341df54.entry.js.map} +0 -0
- /package/www/build/{p-d22c81fd.entry.js.map → p-2a365fec.entry.js.map} +0 -0
- /package/www/build/{p-f786feb3.entry.js.map → p-2e845374.entry.js.map} +0 -0
- /package/www/build/{p-b9d1d9dd.entry.js.map → p-2ed7f164.entry.js.map} +0 -0
- /package/www/build/{p-58cf7ae0.entry.js.map → p-2ef0057e.entry.js.map} +0 -0
- /package/www/build/{p-317cf15a.entry.js.map → p-3459dfba.entry.js.map} +0 -0
- /package/www/build/{p-71177432.entry.js.map → p-399b16d4.entry.js.map} +0 -0
- /package/www/build/{p-ec256ee9.entry.js.map → p-3cb71072.entry.js.map} +0 -0
- /package/www/build/{p-52119535.entry.js.map → p-40771f5b.entry.js.map} +0 -0
- /package/www/build/{p-369053ef.entry.js.map → p-4366f704.entry.js.map} +0 -0
- /package/www/build/{p-9bf9b376.entry.js.map → p-43734e72.entry.js.map} +0 -0
- /package/www/build/{p-7a368819.entry.js.map → p-4622b378.entry.js.map} +0 -0
- /package/www/build/{p-e1e13291.entry.js.map → p-4e1ca81b.entry.js.map} +0 -0
- /package/www/build/{p-f0474488.entry.js.map → p-5257d724.entry.js.map} +0 -0
- /package/www/build/{p-2a4a46c0.entry.js.map → p-59b2a51d.entry.js.map} +0 -0
- /package/www/build/{p-161bb74f.entry.js.map → p-59f23a25.entry.js.map} +0 -0
- /package/www/build/{p-a6bcce90.entry.js.map → p-5ef3b2cc.entry.js.map} +0 -0
- /package/www/build/{p-5b4261df.entry.js.map → p-5fa71c0d.entry.js.map} +0 -0
- /package/www/build/{p-f82546f5.entry.js.map → p-61612d3e.entry.js.map} +0 -0
- /package/www/build/{p-0c1e47a5.entry.js.map → p-66bf6e42.entry.js.map} +0 -0
- /package/www/build/{p-bd9e45d7.entry.js.map → p-66c93663.entry.js.map} +0 -0
- /package/www/build/{p-f4cf14ae.entry.js.map → p-66f53f37.entry.js.map} +0 -0
- /package/www/build/{p-13838b64.entry.js.map → p-696a1b00.entry.js.map} +0 -0
- /package/www/build/{p-6f7aa788.entry.js.map → p-6e1b8a34.entry.js.map} +0 -0
- /package/www/build/{p-35ca52cb.entry.js.map → p-73a29c94.entry.js.map} +0 -0
- /package/www/build/{p-80a3db9a.entry.js.map → p-76a2f0c7.entry.js.map} +0 -0
- /package/www/build/{p-7d8118ba.entry.js.map → p-7818d8a2.entry.js.map} +0 -0
- /package/www/build/{p-8a933021.entry.js.map → p-799e9674.entry.js.map} +0 -0
- /package/www/build/{p-9304f671.entry.js.map → p-7e7c7dd2.entry.js.map} +0 -0
- /package/www/build/{p-e89c0127.entry.js.map → p-805cdde0.entry.js.map} +0 -0
- /package/www/build/{p-f10e5b74.entry.js.map → p-83127110.entry.js.map} +0 -0
- /package/www/build/{p-9cf81533.entry.js.map → p-84bff712.entry.js.map} +0 -0
- /package/www/build/{p-bfe43b37.entry.js.map → p-85f4e413.entry.js.map} +0 -0
- /package/www/build/{p-293e29db.entry.js.map → p-8788910b.entry.js.map} +0 -0
- /package/www/build/{p-7b751e88.entry.js.map → p-8fccb34c.entry.js.map} +0 -0
- /package/www/build/{p-8d55ecee.entry.js.map → p-9450f10f.entry.js.map} +0 -0
- /package/www/build/{p-94cb299b.entry.js.map → p-95d2c69f.entry.js.map} +0 -0
- /package/www/build/{p-70c909dd.entry.js.map → p-9ebd9d9c.entry.js.map} +0 -0
- /package/www/build/{p-76996ce0.entry.js.map → p-a1171a59.entry.js.map} +0 -0
- /package/www/build/{p-89488ad4.entry.js.map → p-a4448b11.entry.js.map} +0 -0
- /package/www/build/{p-08bbe9ce.entry.js.map → p-a528a1ca.entry.js.map} +0 -0
- /package/www/build/{p-e20329bb.entry.js.map → p-a9216eae.entry.js.map} +0 -0
- /package/www/build/{p-f3c26f46.entry.js.map → p-a9c103cf.entry.js.map} +0 -0
- /package/www/build/{p-8e6179ba.entry.js.map → p-aab543f6.entry.js.map} +0 -0
- /package/www/build/{p-b6c5d12d.entry.js.map → p-aed58958.entry.js.map} +0 -0
- /package/www/build/{p-c8e904b7.entry.js.map → p-af452b01.entry.js.map} +0 -0
- /package/www/build/{p-0a310bef.entry.js.map → p-af865300.entry.js.map} +0 -0
- /package/www/build/{p-d131b3d0.entry.js.map → p-b06f6e12.entry.js.map} +0 -0
- /package/www/build/{p-133c95cd.entry.js.map → p-b1c01063.entry.js.map} +0 -0
- /package/www/build/{p-0e358c50.entry.js.map → p-b47a18b8.entry.js.map} +0 -0
- /package/www/build/{p-75a672cc.entry.js.map → p-b7ea81d2.entry.js.map} +0 -0
- /package/www/build/{p-2fe2bd8b.entry.js.map → p-b96cbcc5.entry.js.map} +0 -0
- /package/www/build/{p-2405deb7.entry.js.map → p-b9a60843.entry.js.map} +0 -0
- /package/www/build/{p-dd18474e.entry.js.map → p-bf53ed44.entry.js.map} +0 -0
- /package/www/build/{p-67d32252.entry.js.map → p-c30623c7.entry.js.map} +0 -0
- /package/www/build/{p-dceb04cc.entry.js.map → p-c9cdcee1.entry.js.map} +0 -0
- /package/www/build/{p-5e4cb73b.entry.js.map → p-cc3e3d4c.entry.js.map} +0 -0
- /package/www/build/{p-9a3b5e95.entry.js.map → p-cca22349.entry.js.map} +0 -0
- /package/www/build/{p-674ee78d.entry.js.map → p-cfbaaed2.entry.js.map} +0 -0
- /package/www/build/{p-da6da0c3.entry.js.map → p-d340442c.entry.js.map} +0 -0
- /package/www/build/{p-7cae8647.entry.js.map → p-d40a8f30.entry.js.map} +0 -0
- /package/www/build/{p-b56a95dd.entry.js.map → p-d4dfdd88.entry.js.map} +0 -0
- /package/www/build/{p-86448a01.entry.js.map → p-d7a79820.entry.js.map} +0 -0
- /package/www/build/{p-1099ac4a.entry.js.map → p-dba8a3d4.entry.js.map} +0 -0
- /package/www/build/{p-2107ed20.entry.js.map → p-ded78746.entry.js.map} +0 -0
- /package/www/build/{p-5c9243f9.entry.js.map → p-deeb4109.entry.js.map} +0 -0
- /package/www/build/{p-5d507ca1.entry.js.map → p-df1fbb93.entry.js.map} +0 -0
- /package/www/build/{p-ab13e2ea.entry.js.map → p-df3ae0a8.entry.js.map} +0 -0
- /package/www/build/{p-07428a55.entry.js.map → p-e076287c.entry.js.map} +0 -0
- /package/www/build/{p-1374d586.entry.js.map → p-e3699001.entry.js.map} +0 -0
- /package/www/build/{p-f204ad9e.entry.js.map → p-e558a0c3.entry.js.map} +0 -0
- /package/www/build/{p-d3558489.entry.js.map → p-e7511cdf.entry.js.map} +0 -0
- /package/www/build/{p-48456d35.entry.js.map → p-e8d91fb5.entry.js.map} +0 -0
- /package/www/build/{p-3e3d2425.entry.js.map → p-f15c44b6.entry.js.map} +0 -0
- /package/www/build/{p-dd22c335.entry.js.map → p-f4864f2d.entry.js.map} +0 -0
- /package/www/build/{p-fcd689c7.entry.js.map → p-f5a300a4.entry.js.map} +0 -0
- /package/www/build/{p-7b6a8b7e.entry.js.map → p-fc8177ed.entry.js.map} +0 -0
- /package/www/build/{p-1c0d93e3.entry.js.map → p-fe2f2364.entry.js.map} +0 -0
- /package/www/build/{p-1c14d2da.entry.js.map → p-ff1b397e.entry.js.map} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as validateLanguage } from './
|
|
3
|
-
import { t as translations } from './
|
|
4
|
-
import { d as defineCustomElement$3 } from './
|
|
5
|
-
import { d as defineCustomElement$2 } from './
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { b as validateLanguage } from './validation-functions.js';
|
|
3
|
+
import { t as translations } from './global.i18n.js';
|
|
4
|
+
import { d as defineCustomElement$3 } from './ontario-icon-chevron-down2.js';
|
|
5
|
+
import { d as defineCustomElement$2 } from './ontario-icon-chevron-up2.js';
|
|
6
6
|
|
|
7
7
|
const ontarioAccordionCss =
|
|
8
|
-
'.ontario-accordion__button--expand-all:focus,.ontario-accordion__button:focus{box-shadow:0 0 0 4px #009ADB;outline:4px solid transparent;transition:box-shadow 0.1s ease-in-out}.ontario-accordion__button{font-style:normal;font-weight:700;text-rendering:optimizeLegibility;margin-bottom:1rem;font-feature-settings:normal;font-family:"Raleway", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif}.ontario-accordion__button{font-size:1.25rem;letter-spacing:0.03rem;line-height:1.5;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){.ontario-accordion__button{font-size:1.5rem;letter-spacing:0.0313rem;line-height:1.5}}.ontario-accordions__container{max-width:48rem;width:100%}.ontario-accordion{border-top:2px solid #cccccc}.ontario-accordion:last-of-type{border-bottom:2px solid #cccccc}.ontario-accordion__controls{display:flex;justify-content:flex-end}.ontario-accordion__button,.ontario-accordion__button--expand-all{background:none;border:0;box-sizing:border-box}.ontario-accordion__button--expand-all{font-size:1rem;margin-bottom:0.5rem;color:#0066CC;cursor:pointer}.ontario-accordion__button--expand-all:focus,.ontario-accordion__button--expand-all:hover{color:#00478F;text-decoration:underline}.ontario-accordion__button--expand-all:active{color:#002142;text-decoration:underline}.ontario-accordion--expand-close-all{display:none}.ontario-accordion__controls--active .ontario-accordion--expand-close-all{display:block}.ontario-accordion__controls--active .ontario-accordion--expand-open-all{display:none}.ontario-accordion__button{display:flex;align-items:flex-start;color:#0066CC;cursor:pointer;padding:0.75rem 0.5rem;text-align:left;width:100%;margin-bottom:0}.ontario-accordion__button .ontario-accordion__button-icon--close,.ontario-accordion__button .ontario-accordion__button-icon--open{margin-right:0.5rem}.ontario-accordion__button .ontario-icon{width:1.75rem;height:1.75rem}.ontario-accordion__button:focus,.ontario-accordion__button:hover{background-color:#f2f2f2;color:#00478F}.ontario-accordion__button:focus{box-shadow:0 0 0 4px #009ADB inset}.ontario-accordion__button:active{color:#002142}.ontario-accordion__content{display:none;padding:0.75rem 0.75rem 2rem 0.75rem;margin-left:0}@media screen and (min-width: 40em){.ontario-accordion__content{margin-left:2rem}}.ontario-accordion__content *{margin-top:0;max-width:48rem;width:100%}.ontario-accordion__content ul,.ontario-accordion__content ol{max-width:calc(100% - 3rem)}.ontario-accordion__content>:last-child{margin-bottom:0}.ontario-accordion__button-icon--close,.ontario-expander--active .ontario-accordion__button-icon--open{display:none}.ontario-expander--active~.ontario-accordion__content,.ontario-expander--active .ontario-accordion__button-icon--close{display:block}.ontario-accordions__container .ontario-h1,.ontario-accordions__container .ontario-h2,.ontario-accordions__container .ontario-h3,.ontario-accordions__container .ontario-h4,.ontario-accordions__container .ontario-h5,.ontario-accordions__container p,.ontario-accordions__container h1,.ontario-accordions__container h2,.ontario-accordions__container h3,.ontario-accordions__container h4,.ontario-accordions__container h5,.ontario-accordions__container h6{margin:0}';
|
|
8
|
+
'.ontario-accordion__button--expand-all:focus,.ontario-accordion__button:focus{box-shadow:0 0 0 4px #009ADB;outline:4px solid transparent;transition:box-shadow 0.1s ease-in-out}.ontario-accordion__button{font-style:normal;font-weight:700;text-rendering:optimizeLegibility;margin-bottom:1rem;font-feature-settings:normal;font-family:"Raleway Modified", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif}.ontario-accordion__button{font-size:1.25rem;letter-spacing:0.03rem;line-height:1.5;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){.ontario-accordion__button{font-size:1.5rem;letter-spacing:0.0313rem;line-height:1.5}}.ontario-accordions__container{max-width:48rem;width:100%}.ontario-accordion{border-top:2px solid #cccccc}.ontario-accordion:last-of-type{border-bottom:2px solid #cccccc}.ontario-accordion__controls{display:flex;justify-content:flex-end}.ontario-accordion__button,.ontario-accordion__button--expand-all{background:none;border:0;box-sizing:border-box}.ontario-accordion__button--expand-all{font-size:1rem;margin-bottom:0.5rem;color:#0066CC;cursor:pointer}.ontario-accordion__button--expand-all:focus,.ontario-accordion__button--expand-all:hover{color:#00478F;text-decoration:underline}.ontario-accordion__button--expand-all:active{color:#002142;text-decoration:underline}.ontario-accordion--expand-close-all{display:none}.ontario-accordion__controls--active .ontario-accordion--expand-close-all{display:block}.ontario-accordion__controls--active .ontario-accordion--expand-open-all{display:none}.ontario-accordion__button{display:flex;align-items:flex-start;color:#0066CC;cursor:pointer;padding:0.75rem 0.5rem;text-align:left;width:100%;margin-bottom:0}.ontario-accordion__button .ontario-accordion__button-icon--close,.ontario-accordion__button .ontario-accordion__button-icon--open{margin-right:0.5rem}.ontario-accordion__button .ontario-icon{width:1.75rem;height:1.75rem}.ontario-accordion__button:focus,.ontario-accordion__button:hover{background-color:#f2f2f2;color:#00478F}.ontario-accordion__button:focus{box-shadow:0 0 0 4px #009ADB inset}.ontario-accordion__button:active{color:#002142}.ontario-accordion__content{display:none;padding:0.75rem 0.75rem 2rem 0.75rem;margin-left:0}@media screen and (min-width: 40em){.ontario-accordion__content{margin-left:2rem}}.ontario-accordion__content *{margin-top:0;max-width:48rem;width:100%}.ontario-accordion__content ul,.ontario-accordion__content ol{max-width:calc(100% - 3rem)}.ontario-accordion__content>:last-child{margin-bottom:0}.ontario-accordion__button-icon--close,.ontario-expander--active .ontario-accordion__button-icon--open{display:none}.ontario-expander--active~.ontario-accordion__content,.ontario-expander--active .ontario-accordion__button-icon--close{display:block}.ontario-accordions__container .ontario-h1,.ontario-accordions__container .ontario-h2,.ontario-accordions__container .ontario-h3,.ontario-accordions__container .ontario-h4,.ontario-accordions__container .ontario-h5,.ontario-accordions__container p,.ontario-accordions__container h1,.ontario-accordions__container h2,.ontario-accordions__container h3,.ontario-accordions__container h4,.ontario-accordions__container h5,.ontario-accordions__container h6{margin:0}';
|
|
9
9
|
|
|
10
10
|
const OntarioAccordion$1 = /*@__PURE__*/ proxyCustomElement(
|
|
11
|
-
class OntarioAccordion extends
|
|
11
|
+
class O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A,EACW,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,iBAC3C,0BAA0B,EAAA,EAErC,SAAS,CAAC,oBAAoB,KAAK,MAAM,IACzC,CAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,SAAS,CAAC,OAAO,EAAA,CAAQ;aAEzC,CAAM,CAAA,KAAA,EAAA,IAAA,EAAA,SAAS,CAAC,OAAO,CAAO,CAC9B,CACQ,CACL,CACN,CAAC,CACG,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioAccordion","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/ontario-accordion/ontario-accordion.scss?tag=ontario-accordion&encapsulation=shadow","src/components/ontario-accordion/ontario-accordion.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tplaceholders;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/typography.variables' as typography;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-sizes.variables' as fontSizes;\n\n.ontario-accordions__container {\n\tmax-width: globalVariables.$standard-width;\n\twidth: globalVariables.$full-width;\n}\n\n.ontario-accordion {\n\tborder-top: 2px solid colours.$ontario-greyscale-20;\n\n\t&:last-of-type {\n\t\tborder-bottom: 2px solid colours.$ontario-greyscale-20;\n\t}\n}\n\n.ontario-accordion__controls {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n}\n\n.ontario-accordion__button,\n.ontario-accordion__button--expand-all {\n\tbackground: none;\n\tborder: 0;\n\tbox-sizing: border-box;\n}\n\n.ontario-accordion__button--expand-all {\n\tfont-size: fontSizes.$ontario-font-size-standard-body-text;\n\tmargin-bottom: spacing.$spacing-2;\n\tcolor: colours.$ontario-colour-link;\n\tcursor: pointer;\n\n\t&:focus,\n\t&:hover {\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t\ttext-decoration: underline;\n\t}\n\n\t&:focus {\n\t\t@extend %ontario-focus;\n\t}\n\n\t&:active {\n\t\tcolor: colours.$ontario-colour-link--active;\n\t\ttext-decoration: underline;\n\t}\n}\n\n.ontario-accordion--expand-close-all {\n\tdisplay: none;\n}\n\n.ontario-accordion__controls--active {\n\t.ontario-accordion--expand-close-all {\n\t\tdisplay: block;\n\t}\n\n\t.ontario-accordion--expand-open-all {\n\t\tdisplay: none;\n\t}\n}\n\n.ontario-accordion__button {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tcolor: colours.$ontario-colour-link;\n\tcursor: pointer;\n\tpadding: spacing.$spacing-3 spacing.$spacing-2;\n\ttext-align: left;\n\twidth: globalVariables.$full-width;\n\t@extend %h4-styles;\n\tmargin-bottom: spacing.$spacing-0;\n\n\t.ontario-accordion__button-icon--close,\n\t.ontario-accordion__button-icon--open {\n\t\tmargin-right: spacing.$spacing-2;\n\t}\n\n\t.ontario-icon {\n\t\twidth: 1.75rem;\n\t\theight: 1.75rem;\n\t}\n\n\t&:focus,\n\t&:hover {\n\t\tbackground-color: colours.$ontario-greyscale-5;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t}\n\n\t&:focus {\n\t\t@extend %ontario-focus;\n\t\tbox-shadow: 0 0 0 4px colours.$ontario-colour-focus inset;\n\t}\n\n\t&:active {\n\t\tcolor: colours.$ontario-colour-link--active;\n\t}\n}\n\n.ontario-accordion__content {\n\tdisplay: none;\n\tpadding: spacing.$spacing-3 spacing.$spacing-3 spacing.$spacing-6 spacing.$spacing-3;\n\tmargin-left: spacing.$spacing-0;\n\n\t@media screen and (min-width: breakpoints.$small-breakpoint) {\n\t\tmargin-left: spacing.$spacing-6;\n\t}\n\n\t* {\n\t\tmargin-top: spacing.$spacing-0;\n\t\tmax-width: globalVariables.$standard-width;\n\t\twidth: globalVariables.$full-width;\n\t}\n\n\tul,\n\tol {\n\t\tmax-width: calc(100% - spacing.$spacing-8);\n\t}\n\n\t& > :last-child {\n\t\tmargin-bottom: spacing.$spacing-0;\n\t}\n}\n\n.ontario-accordion__button-icon--close,\n.ontario-expander--active .ontario-accordion__button-icon--open {\n\tdisplay: none;\n}\n\n.ontario-expander--active ~ .ontario-accordion__content,\n.ontario-expander--active .ontario-accordion__button-icon--close {\n\tdisplay: block;\n}\n\n.ontario-accordions__container {\n\t.ontario-h1,\n\t.ontario-h2,\n\t.ontario-h3,\n\t.ontario-h4,\n\t.ontario-h5,\n\tp,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tmargin: spacing.$spacing-0;\n\t}\n}\n","import { Component, Prop, Element, State, h, Listen, Watch } from '@stencil/core';\nimport { Accordion } from './accordion.interface';\nimport { ExpandCollapseButtonDetails } from './expandCollapseButtonDetails.interface';\nimport { Language } from '../../utils/common/language-types';\nimport { validateLanguage } from '../../utils/validation/validation-functions';\nimport translations from '../../translations/global.i18n.json';\n\n@Component({\n\ttag: 'ontario-accordion',\n\tstyleUrl: 'ontario-accordion.scss',\n\tshadow: true,\n})\nexport class OntarioAccordion {\n\t@Element() host: HTMLElement;\n\n\t/**\n\t * The name of the accordion component.\n\t *\n\t * This is not optional.\n\t */\n\t@Prop() name: string;\n\n\t/**\n\t * Custom Expand/Collapse button text.\n\t *\n\t * @example\n\t * <ontario-accordion\n\t *\t\tname=\"My Accordion\"\n\t *\t\texpand-collapse-button='{\n\t *\t\t\t\"expandAllSectionsLabel\": \"Expand All\",\n\t *\t\t\t\"collapseAllSectionsLabel\": \"Collapse All\"\n\t *\t\t}'\n\t *\t\taccordion-data='[\n\t *\t\t\t{\"label\": \"Accordion 1\", \"content\": [\"Item 1\", \"Item 2\", \"Item 3\"]},\n\t *\t\t\t{\"label\": \"Accordion 2\", \"content\": [\"Item A\", \"Item B\", \"Item C\"]}\n\t *\t\t]'\n\t *\t></ontario-accordion>\n\t */\n\t@Prop() expandCollapseButton?: string | ExpandCollapseButtonDetails;\n\n\t/**\n\t * Used to include individual accordion data for the accordion component.\n\t * This is passed in as an array of objects with key-value pairs.\n\t *\n\t * The `content` is expecting a string, that can either be written as HTML or a just a plain string, depending on the accordionContentType.\n\t *\n\t * @example\n\t * \t<ontario-accordion\n\t *\t\tname=\"My Accordion\"\n\t *\t\taccordion-data='[\n\t *\t\t\t{\"label\": \"Accordion 1\", \"content\": \"This is a string\"},\n\t *\t\t\t{\"label\": \"Accordion 2\", \"accordionContentType\": \"html\", \"content\": \"<ul><li>List A</li><li>List B</li><li>List C</li></ul>\"}\n\t *\t\t]'\n\t *\t></ontario-accordion>\n\t */\n\t@Prop() accordionData: string | Accordion[];\n\n\t/**\n\t * Used to show whether the accordion is opened or closed.\n\t */\n\t@Prop() isOpen: boolean = false;\n\n\t/**\n\t * The language of the component.\n\t * This is used for translations, and is by default set through event listeners checking for a language property from the header. If none are passed, it will default to English.\n\t */\n\t@Prop({ mutable: true }) language?: Language;\n\n\t/**\n\t * This listens for the `setAppLanguage` event sent from the test language toggler when it is is connected to the DOM. It is used for the initial language when the input component loads.\n\t */\n\t@Listen('setAppLanguage', { target: 'window' })\n\thandleSetAppLanguage(event: CustomEvent<Language>) {\n\t\tif (!this.language) {\n\t\t\tthis.language = validateLanguage(event);\n\t\t}\n\t}\n\n\t/**\n\t * Handle the language being toggled from the `<ontario-header>`.\n\t * @param event Event object passed when the event is fired.\n\t */\n\t@Listen('headerLanguageToggled', { target: 'window' })\n\thandleHeaderLanguageToggled(event: CustomEvent<Language>) {\n\t\tthis.language = validateLanguage(event);\n\t}\n\n\t/**\n\t * Store the translation dictionary for use within the component.\n\t */\n\t@State() translations: any = translations;\n\n\t/**\n\t * The label for the expand/collapse button.\n\t * This is internal and udpdated dynamically.\n\t */\n\t@State() private expandCollapseLabel: 'expand' | 'collapse';\n\n\t/**\n\t * Internal state of the expand/collapse label information.\n\t */\n\t@State() private internalExpandCollapseLabelDetails: ExpandCollapseButtonDetails;\n\n\t/**\n\t * Internal state containing the parsed Accordion Data\n\t */\n\t@State() private internalAccordionData: Accordion[] = [];\n\n\t/**\n\t * This state tracks which accordions are open.\n\t */\n\t@State() private openAccordionIndexes: number[] = [];\n\n\t/**\n\t * Parse Accordion data, this is used to handle JSON strings from HTML.\n\t */\n\t@Watch('accordionData')\n\tprivate parseAccordionData() {\n\t\tif (typeof this.accordionData !== 'undefined') {\n\t\t\tthis.internalAccordionData = Array.isArray(this.accordionData)\n\t\t\t\t? this.accordionData\n\t\t\t\t: JSON.parse(this.accordionData);\n\t\t}\n\n\t\t// Initialize the label based on the initial accordion state\n\t\tthis.updateLabel();\n\t}\n\n\t/**\n\t * Parse Expand/Collapse Button Details, this is used to handle JSON strings from HTML.\n\t */\n\t@Watch('expandCollapseButton')\n\tprivate parseExpandCollapseButtonDetails() {\n\t\tif (typeof this.expandCollapseButton !== 'undefined') {\n\t\t\tthis.internalExpandCollapseLabelDetails =\n\t\t\t\ttypeof this.expandCollapseButton === 'string'\n\t\t\t\t\t? JSON.parse(this.expandCollapseButton)\n\t\t\t\t\t: this.expandCollapseButton;\n\t\t}\n\t}\n\n\t// Toggle the accordion state when it's clicked\n\tprivate toggleAccordion(index: number) {\n\t\tif (this.openAccordionIndexes.includes(index)) {\n\t\t\t// If the accordion is already open, close it\n\t\t\tthis.openAccordionIndexes = this.openAccordionIndexes.filter((i) => i !== index);\n\t\t} else {\n\t\t\t// If the accordion is closed, open it\n\t\t\tthis.openAccordionIndexes = [...this.openAccordionIndexes, index];\n\t\t}\n\t\tthis.updateLabel();\n\t}\n\n\t/**\n\t * Toggle all accordions open/close\n\t */\n\tprivate toggleAll() {\n\t\tif (this.openAccordionIndexes.length === this.internalAccordionData.length) {\n\t\t\t// All accordions are open, close all\n\t\t\tthis.openAccordionIndexes = [];\n\t\t} else {\n\t\t\t// At least one accordion is closed, open all\n\t\t\tthis.openAccordionIndexes = this.internalAccordionData.map((_, index) => index);\n\t\t}\n\t\tthis.updateLabel();\n\t}\n\n\t/**\n\t * Update the label based on the current accordion state\n\t */\n\tprivate updateLabel() {\n\t\tconst allOpen = this.internalAccordionData.every((_, index) => this.openAccordionIndexes.includes(index));\n\n\t\tif (allOpen) {\n\t\t\t// All accordions are open, set label to \"Collapse all\"\n\t\t\tthis.expandCollapseLabel = 'collapse';\n\t\t} else {\n\t\t\t// At least one accordion is closed, set label to \"Expand all\"\n\t\t\tthis.expandCollapseLabel = 'expand';\n\t\t}\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.parseAccordionData();\n\t\tthis.parseExpandCollapseButtonDetails();\n\t\tthis.language = validateLanguage(this.language);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div>\n\t\t\t\t<h2>{this.name}</h2>\n\t\t\t\t<div class=\"ontario-accordions__container\">\n\t\t\t\t\t<div class=\"ontario-accordion__controls\">\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\tclass=\"ontario-accordion__button--expand-all\"\n\t\t\t\t\t\t\tonClick={() => this.toggleAll()}\n\t\t\t\t\t\t\taria-expanded={this.openAccordionIndexes.length === this.internalAccordionData.length ? 'true' : 'false'}\n\t\t\t\t\t\t\taria-label={this.internalExpandCollapseLabelDetails?.ariaLabelText}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span class=\"ontario-accordion--expand-open-all\">\n\t\t\t\t\t\t\t\t{this.expandCollapseLabel === 'expand' ? (\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t{this.internalExpandCollapseLabelDetails?.expandAllSectionsLabel ??\n\t\t\t\t\t\t\t\t\t\t\tthis.translations.accordion.expand[`${this.language}`]}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t{this.internalExpandCollapseLabelDetails?.collapseAllSectionsLabel ??\n\t\t\t\t\t\t\t\t\t\t\tthis.translations.accordion.collapse[`${this.language}`]}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.internalAccordionData?.map((accordion, index) => (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass={`ontario-accordion ${this.openAccordionIndexes.includes(index) ? 'open' : ''}`}\n\t\t\t\t\t\t\tkey={`accordion-${index}`}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<h3\n\t\t\t\t\t\t\t\tclass={`ontario-accordion__heading ${\n\t\t\t\t\t\t\t\t\tthis.openAccordionIndexes.includes(index) ? 'ontario-expander--active' : ''\n\t\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\tclass=\"ontario-accordion__button\"\n\t\t\t\t\t\t\t\t\taria-expanded={this.openAccordionIndexes.includes(index) ? 'true' : 'false'}\n\t\t\t\t\t\t\t\t\tdata-toggle=\"ontario-collapse\"\n\t\t\t\t\t\t\t\t\tonClick={() => this.toggleAccordion(index)}\n\t\t\t\t\t\t\t\t\taria-label={accordion.ariaLabelText}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<span class=\"ontario-accordion__button-icon--close\">\n\t\t\t\t\t\t\t\t\t\t<ontario-icon-chevron-up colour=\"blue\"></ontario-icon-chevron-up>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span class=\"ontario-accordion__button-icon--open\">\n\t\t\t\t\t\t\t\t\t\t<ontario-icon-chevron-down colour=\"blue\"></ontario-icon-chevron-down>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t{accordion.label}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t<section\n\t\t\t\t\t\t\t\tclass={`ontario-accordion__content ${\n\t\t\t\t\t\t\t\t\tthis.openAccordionIndexes.includes(index)\n\t\t\t\t\t\t\t\t\t\t? 'ontario-accordion__content--opened'\n\t\t\t\t\t\t\t\t\t\t: 'ontario-accordion__content--closed'\n\t\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\t\taria-hidden={!this.openAccordionIndexes.includes(index)}\n\t\t\t\t\t\t\t\tdata-toggle=\"ontario-expander-content\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{accordion.accordionContentType === 'html' ? (\n\t\t\t\t\t\t\t\t\t<div innerHTML={accordion.content}></div> // Render HTML content\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<div>{accordion.content}</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</section>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
1
|
+
{"file":"ontario-accordion.js","mappings":";;;;;;AAAA,MAAM,mBAAmB,GAAG,wrGAAwrG;;MCYvsGA,kBAAgB,iBAAAC,kBAAA,CAAA,MAAA,gBAAA,SAAA,WAAA,CAAA;;;;;;;AAG5B;;;;AAIG;AACK,IAAA,IAAI;AAEZ;;;;;;;;;;;;;;;AAeG;AACK,IAAA,oBAAoB;AAE5B;;;;;;;;;;;;;;AAcG;AACK,IAAA,aAAa;AAErB;;AAEG;IACK,MAAM,GAAY,KAAK;AAE/B;;;AAGG;AACsB,IAAA,QAAQ;AAEjC;;AAEG;AAEH,IAAA,oBAAoB,CAAC,KAA4B,EAAA;AAChD,QAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AACnB,YAAA,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,KAAK,CAAC;;;AAIzC;;;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C/D,kBAAkB,EAC9B,OAAO,EAAE,MAAM,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAC9B,YAAA,EAAA,SAAS,CAAC,aAAa,EAAA,EAEnC,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAC,uCAAuC,EAAA,EAClD,CAAA,CAAA,yBAAA,EAAA,EAAyB,MAAM,EAAC,MAAM,EAAA,CAA2B,CAC3D,EACP,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAC,sCAAsC,EAAA,EACjD,CAAA,CAAA,2BAAA,EAAA,EAA2B,MAAM,EAAC,MAAM,EAAA,CAA6B,CAC/D,EACN,SAAS,CAAC,KAAK,CACR,CACL,EACL,CACC,CAAA,SAAA,EAAA,EAAA,KAAK,EAAE,CAAA,2BAAA,EACN,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,KAAK;AACvC,kBAAE;AACF,kBAAE,oCACJ,CAAA,CAAE,EAAA,aAAA,EACW,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,iBAC3C,0BAA0B,EAAA,EAErC,SAAS,CAAC,oBAAoB,KAAK,MAAM,IACzC,CAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,SAAS,CAAC,OAAO,EAAA,CAAQ;aAEzC,CAAM,CAAA,KAAA,EAAA,IAAA,EAAA,SAAS,CAAC,OAAO,CAAO,CAC9B,CACQ,CACL,CACN,CAAC,CACG,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioAccordion","__stencil_proxyCustomElement"],"sources":["src/components/ontario-accordion/ontario-accordion.scss?tag=ontario-accordion&encapsulation=shadow","src/components/ontario-accordion/ontario-accordion.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tplaceholders;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/typography.variables' as typography;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-sizes.variables' as fontSizes;\n\n.ontario-accordions__container {\n\tmax-width: globalVariables.$standard-width;\n\twidth: globalVariables.$full-width;\n}\n\n.ontario-accordion {\n\tborder-top: 2px solid colours.$ontario-greyscale-20;\n\n\t&:last-of-type {\n\t\tborder-bottom: 2px solid colours.$ontario-greyscale-20;\n\t}\n}\n\n.ontario-accordion__controls {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n}\n\n.ontario-accordion__button,\n.ontario-accordion__button--expand-all {\n\tbackground: none;\n\tborder: 0;\n\tbox-sizing: border-box;\n}\n\n.ontario-accordion__button--expand-all {\n\tfont-size: fontSizes.$ontario-font-size-standard-body-text;\n\tmargin-bottom: spacing.$spacing-2;\n\tcolor: colours.$ontario-colour-link;\n\tcursor: pointer;\n\n\t&:focus,\n\t&:hover {\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t\ttext-decoration: underline;\n\t}\n\n\t&:focus {\n\t\t@extend %ontario-focus;\n\t}\n\n\t&:active {\n\t\tcolor: colours.$ontario-colour-link--active;\n\t\ttext-decoration: underline;\n\t}\n}\n\n.ontario-accordion--expand-close-all {\n\tdisplay: none;\n}\n\n.ontario-accordion__controls--active {\n\t.ontario-accordion--expand-close-all {\n\t\tdisplay: block;\n\t}\n\n\t.ontario-accordion--expand-open-all {\n\t\tdisplay: none;\n\t}\n}\n\n.ontario-accordion__button {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tcolor: colours.$ontario-colour-link;\n\tcursor: pointer;\n\tpadding: spacing.$spacing-3 spacing.$spacing-2;\n\ttext-align: left;\n\twidth: globalVariables.$full-width;\n\t@extend %h4-styles;\n\tmargin-bottom: spacing.$spacing-0;\n\n\t.ontario-accordion__button-icon--close,\n\t.ontario-accordion__button-icon--open {\n\t\tmargin-right: spacing.$spacing-2;\n\t}\n\n\t.ontario-icon {\n\t\twidth: 1.75rem;\n\t\theight: 1.75rem;\n\t}\n\n\t&:focus,\n\t&:hover {\n\t\tbackground-color: colours.$ontario-greyscale-5;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t}\n\n\t&:focus {\n\t\t@extend %ontario-focus;\n\t\tbox-shadow: 0 0 0 4px colours.$ontario-colour-focus inset;\n\t}\n\n\t&:active {\n\t\tcolor: colours.$ontario-colour-link--active;\n\t}\n}\n\n.ontario-accordion__content {\n\tdisplay: none;\n\tpadding: spacing.$spacing-3 spacing.$spacing-3 spacing.$spacing-6 spacing.$spacing-3;\n\tmargin-left: spacing.$spacing-0;\n\n\t@media screen and (min-width: breakpoints.$small-breakpoint) {\n\t\tmargin-left: spacing.$spacing-6;\n\t}\n\n\t* {\n\t\tmargin-top: spacing.$spacing-0;\n\t\tmax-width: globalVariables.$standard-width;\n\t\twidth: globalVariables.$full-width;\n\t}\n\n\tul,\n\tol {\n\t\tmax-width: calc(100% - spacing.$spacing-8);\n\t}\n\n\t& > :last-child {\n\t\tmargin-bottom: spacing.$spacing-0;\n\t}\n}\n\n.ontario-accordion__button-icon--close,\n.ontario-expander--active .ontario-accordion__button-icon--open {\n\tdisplay: none;\n}\n\n.ontario-expander--active ~ .ontario-accordion__content,\n.ontario-expander--active .ontario-accordion__button-icon--close {\n\tdisplay: block;\n}\n\n.ontario-accordions__container {\n\t.ontario-h1,\n\t.ontario-h2,\n\t.ontario-h3,\n\t.ontario-h4,\n\t.ontario-h5,\n\tp,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tmargin: spacing.$spacing-0;\n\t}\n}\n","import { Component, Prop, Element, State, h, Listen, Watch } from '@stencil/core';\nimport { Accordion } from './accordion.interface';\nimport { ExpandCollapseButtonDetails } from './expandCollapseButtonDetails.interface';\nimport { Language } from '../../utils/common/language-types';\nimport { validateLanguage } from '../../utils/validation/validation-functions';\nimport translations from '../../translations/global.i18n.json';\n\n@Component({\n\ttag: 'ontario-accordion',\n\tstyleUrl: 'ontario-accordion.scss',\n\tshadow: true,\n})\nexport class OntarioAccordion {\n\t@Element() host: HTMLElement;\n\n\t/**\n\t * The name of the accordion component.\n\t *\n\t * This is not optional.\n\t */\n\t@Prop() name: string;\n\n\t/**\n\t * Custom Expand/Collapse button text.\n\t *\n\t * @example\n\t * <ontario-accordion\n\t *\t\tname=\"My Accordion\"\n\t *\t\texpand-collapse-button='{\n\t *\t\t\t\"expandAllSectionsLabel\": \"Expand All\",\n\t *\t\t\t\"collapseAllSectionsLabel\": \"Collapse All\"\n\t *\t\t}'\n\t *\t\taccordion-data='[\n\t *\t\t\t{\"label\": \"Accordion 1\", \"content\": [\"Item 1\", \"Item 2\", \"Item 3\"]},\n\t *\t\t\t{\"label\": \"Accordion 2\", \"content\": [\"Item A\", \"Item B\", \"Item C\"]}\n\t *\t\t]'\n\t *\t></ontario-accordion>\n\t */\n\t@Prop() expandCollapseButton?: string | ExpandCollapseButtonDetails;\n\n\t/**\n\t * Used to include individual accordion data for the accordion component.\n\t * This is passed in as an array of objects with key-value pairs.\n\t *\n\t * The `content` is expecting a string, that can either be written as HTML or a just a plain string, depending on the accordionContentType.\n\t *\n\t * @example\n\t * \t<ontario-accordion\n\t *\t\tname=\"My Accordion\"\n\t *\t\taccordion-data='[\n\t *\t\t\t{\"label\": \"Accordion 1\", \"content\": \"This is a string\"},\n\t *\t\t\t{\"label\": \"Accordion 2\", \"accordionContentType\": \"html\", \"content\": \"<ul><li>List A</li><li>List B</li><li>List C</li></ul>\"}\n\t *\t\t]'\n\t *\t></ontario-accordion>\n\t */\n\t@Prop() accordionData: string | Accordion[];\n\n\t/**\n\t * Used to show whether the accordion is opened or closed.\n\t */\n\t@Prop() isOpen: boolean = false;\n\n\t/**\n\t * The language of the component.\n\t * This is used for translations, and is by default set through event listeners checking for a language property from the header. If none are passed, it will default to English.\n\t */\n\t@Prop({ mutable: true }) language?: Language;\n\n\t/**\n\t * This listens for the `setAppLanguage` event sent from the test language toggler when it is is connected to the DOM. It is used for the initial language when the input component loads.\n\t */\n\t@Listen('setAppLanguage', { target: 'window' })\n\thandleSetAppLanguage(event: CustomEvent<Language>) {\n\t\tif (!this.language) {\n\t\t\tthis.language = validateLanguage(event);\n\t\t}\n\t}\n\n\t/**\n\t * Handle the language being toggled from the `<ontario-header>`.\n\t * @param event Event object passed when the event is fired.\n\t */\n\t@Listen('headerLanguageToggled', { target: 'window' })\n\thandleHeaderLanguageToggled(event: CustomEvent<Language>) {\n\t\tthis.language = validateLanguage(event);\n\t}\n\n\t/**\n\t * Store the translation dictionary for use within the component.\n\t */\n\t@State() translations: any = translations;\n\n\t/**\n\t * The label for the expand/collapse button.\n\t * This is internal and udpdated dynamically.\n\t */\n\t@State() private expandCollapseLabel: 'expand' | 'collapse';\n\n\t/**\n\t * Internal state of the expand/collapse label information.\n\t */\n\t@State() private internalExpandCollapseLabelDetails: ExpandCollapseButtonDetails;\n\n\t/**\n\t * Internal state containing the parsed Accordion Data\n\t */\n\t@State() private internalAccordionData: Accordion[] = [];\n\n\t/**\n\t * This state tracks which accordions are open.\n\t */\n\t@State() private openAccordionIndexes: number[] = [];\n\n\t/**\n\t * Parse Accordion data, this is used to handle JSON strings from HTML.\n\t */\n\t@Watch('accordionData')\n\tprivate parseAccordionData() {\n\t\tif (typeof this.accordionData !== 'undefined') {\n\t\t\tthis.internalAccordionData = Array.isArray(this.accordionData)\n\t\t\t\t? this.accordionData\n\t\t\t\t: JSON.parse(this.accordionData);\n\t\t}\n\n\t\t// Initialize the label based on the initial accordion state\n\t\tthis.updateLabel();\n\t}\n\n\t/**\n\t * Parse Expand/Collapse Button Details, this is used to handle JSON strings from HTML.\n\t */\n\t@Watch('expandCollapseButton')\n\tprivate parseExpandCollapseButtonDetails() {\n\t\tif (typeof this.expandCollapseButton !== 'undefined') {\n\t\t\tthis.internalExpandCollapseLabelDetails =\n\t\t\t\ttypeof this.expandCollapseButton === 'string'\n\t\t\t\t\t? JSON.parse(this.expandCollapseButton)\n\t\t\t\t\t: this.expandCollapseButton;\n\t\t}\n\t}\n\n\t// Toggle the accordion state when it's clicked\n\tprivate toggleAccordion(index: number) {\n\t\tif (this.openAccordionIndexes.includes(index)) {\n\t\t\t// If the accordion is already open, close it\n\t\t\tthis.openAccordionIndexes = this.openAccordionIndexes.filter((i) => i !== index);\n\t\t} else {\n\t\t\t// If the accordion is closed, open it\n\t\t\tthis.openAccordionIndexes = [...this.openAccordionIndexes, index];\n\t\t}\n\t\tthis.updateLabel();\n\t}\n\n\t/**\n\t * Toggle all accordions open/close\n\t */\n\tprivate toggleAll() {\n\t\tif (this.openAccordionIndexes.length === this.internalAccordionData.length) {\n\t\t\t// All accordions are open, close all\n\t\t\tthis.openAccordionIndexes = [];\n\t\t} else {\n\t\t\t// At least one accordion is closed, open all\n\t\t\tthis.openAccordionIndexes = this.internalAccordionData.map((_, index) => index);\n\t\t}\n\t\tthis.updateLabel();\n\t}\n\n\t/**\n\t * Update the label based on the current accordion state\n\t */\n\tprivate updateLabel() {\n\t\tconst allOpen = this.internalAccordionData.every((_, index) => this.openAccordionIndexes.includes(index));\n\n\t\tif (allOpen) {\n\t\t\t// All accordions are open, set label to \"Collapse all\"\n\t\t\tthis.expandCollapseLabel = 'collapse';\n\t\t} else {\n\t\t\t// At least one accordion is closed, set label to \"Expand all\"\n\t\t\tthis.expandCollapseLabel = 'expand';\n\t\t}\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.parseAccordionData();\n\t\tthis.parseExpandCollapseButtonDetails();\n\t\tthis.language = validateLanguage(this.language);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div>\n\t\t\t\t<h2>{this.name}</h2>\n\t\t\t\t<div class=\"ontario-accordions__container\">\n\t\t\t\t\t<div class=\"ontario-accordion__controls\">\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\tclass=\"ontario-accordion__button--expand-all\"\n\t\t\t\t\t\t\tonClick={() => this.toggleAll()}\n\t\t\t\t\t\t\taria-expanded={this.openAccordionIndexes.length === this.internalAccordionData.length ? 'true' : 'false'}\n\t\t\t\t\t\t\taria-label={this.internalExpandCollapseLabelDetails?.ariaLabelText}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span class=\"ontario-accordion--expand-open-all\">\n\t\t\t\t\t\t\t\t{this.expandCollapseLabel === 'expand' ? (\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t{this.internalExpandCollapseLabelDetails?.expandAllSectionsLabel ??\n\t\t\t\t\t\t\t\t\t\t\tthis.translations.accordion.expand[`${this.language}`]}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t{this.internalExpandCollapseLabelDetails?.collapseAllSectionsLabel ??\n\t\t\t\t\t\t\t\t\t\t\tthis.translations.accordion.collapse[`${this.language}`]}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.internalAccordionData?.map((accordion, index) => (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass={`ontario-accordion ${this.openAccordionIndexes.includes(index) ? 'open' : ''}`}\n\t\t\t\t\t\t\tkey={`accordion-${index}`}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<h3\n\t\t\t\t\t\t\t\tclass={`ontario-accordion__heading ${\n\t\t\t\t\t\t\t\t\tthis.openAccordionIndexes.includes(index) ? 'ontario-expander--active' : ''\n\t\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\tclass=\"ontario-accordion__button\"\n\t\t\t\t\t\t\t\t\taria-expanded={this.openAccordionIndexes.includes(index) ? 'true' : 'false'}\n\t\t\t\t\t\t\t\t\tdata-toggle=\"ontario-collapse\"\n\t\t\t\t\t\t\t\t\tonClick={() => this.toggleAccordion(index)}\n\t\t\t\t\t\t\t\t\taria-label={accordion.ariaLabelText}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<span class=\"ontario-accordion__button-icon--close\">\n\t\t\t\t\t\t\t\t\t\t<ontario-icon-chevron-up colour=\"blue\"></ontario-icon-chevron-up>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span class=\"ontario-accordion__button-icon--open\">\n\t\t\t\t\t\t\t\t\t\t<ontario-icon-chevron-down colour=\"blue\"></ontario-icon-chevron-down>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t{accordion.label}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t<section\n\t\t\t\t\t\t\t\tclass={`ontario-accordion__content ${\n\t\t\t\t\t\t\t\t\tthis.openAccordionIndexes.includes(index)\n\t\t\t\t\t\t\t\t\t\t? 'ontario-accordion__content--opened'\n\t\t\t\t\t\t\t\t\t\t: 'ontario-accordion__content--closed'\n\t\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\t\taria-hidden={!this.openAccordionIndexes.includes(index)}\n\t\t\t\t\t\t\t\tdata-toggle=\"ontario-expander-content\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{accordion.accordionContentType === 'html' ? (\n\t\t\t\t\t\t\t\t\t<div innerHTML={accordion.content}></div> // Render HTML content\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<div>{accordion.content}</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</section>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
|
2
2
|
import {
|
|
3
3
|
i as isValidHeadingLevel,
|
|
4
4
|
a as isValidHighlightColour,
|
|
5
5
|
g as generateCalloutAside,
|
|
6
6
|
H as HeadingContentTypes,
|
|
7
|
-
} from './
|
|
8
|
-
import { v as validateValueAgainstArray } from './
|
|
9
|
-
import { C as ConsoleMessageClass } from './
|
|
7
|
+
} from './callout-aside-helpers.js';
|
|
8
|
+
import { v as validateValueAgainstArray } from './validation-functions.js';
|
|
9
|
+
import { C as ConsoleMessageClass } from './console-message.js';
|
|
10
10
|
|
|
11
11
|
const ontarioAsideCss =
|
|
12
|
-
'@charset "UTF-8";h6,.ontario-h6,h5,.ontario-h5,h4,.ontario-h4,h3,.ontario-h3,h2,.ontario-h2,h1,.ontario-h1{font-style:normal;font-weight:700;text-rendering:optimizeLegibility;margin-bottom:1rem;font-feature-settings:normal;font-family:"Raleway", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif}h1,.ontario-h1{font-size:2rem;letter-spacing:0.04rem;line-height:1.29;margin:2.5rem 0 1.5rem 0;max-width:70rem}@media screen and (min-width: 40em){h1,.ontario-h1{font-size:2.5rem;letter-spacing:0.04rem;line-height:1.2}}h2,.ontario-h2{font-size:1.6875rem;letter-spacing:0.03rem;line-height:1.37;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h2,.ontario-h2{font-size:2.0625rem;letter-spacing:0.02rem;line-height:1.33}}h3,.ontario-h3{font-size:1.4375rem;letter-spacing:0.02rem;line-height:1.39;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h3,.ontario-h3{font-size:1.75rem;letter-spacing:0.02rem;line-height:1.43}}h4,.ontario-h4{font-size:1.25rem;letter-spacing:0.03rem;line-height:1.5;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h4,.ontario-h4{font-size:1.5rem;letter-spacing:0.0313rem;line-height:1.5}}h5,.ontario-h5{font-size:1.125rem;letter-spacing:0.03rem;line-height:1.56;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h5,.ontario-h5{font-size:1.1875rem;letter-spacing:0.025rem;line-height:1.5}}h6,.ontario-h6{font-size:1rem;line-height:1.56;letter-spacing:0.03rem;max-width:48rem;margin:0 0 0.75rem 0}@media screen and (min-width: 40em){h6,.ontario-h6{font-size:1rem;letter-spacing:0.025rem;line-height:1.5}}.ontario-lead-statement{font-size:1.25rem;line-height:1.6;max-width:70rem}@media screen and (min-width: 40em){.ontario-lead-statement{font-size:1.375rem}}html{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem}body{font-size:1rem;line-height:1.6;background-color:#FFFFFF;color:#1a1a1a;margin:0}p{font-size:inherit;margin-bottom:1.25rem;text-rendering:optimizeLegibility;margin:0 0 1.5rem 0}cite{font-style:italic;line-height:inherit}strong{font-weight:700;line-height:inherit}*,*::before,*::after{box-sizing:inherit}main p,main p:not(.ontario-lead-statement),main dd,main li{max-width:48rem}hr{border:0;padding:0;margin:2.5rem 0;border-bottom:4px solid #cccccc}hr.ontario-hr--dark{border-bottom:4px solid #1a1a1a}a{color:#0066CC;text-decoration:underline}a:visited{color:#551A8B}a:hover{color:#00478F}a:active{color:#002142}a:focus{-moz-box-shadow:0 0 0 4px #009ADB;-webkit-box-shadow:0 0 0 4px #009ADB;box-shadow:0 0 0 4px #009ADB;outline:4px solid transparent;transition:all 0.1s ease-in-out}p{margin:0 0 1.5rem 0}p+h1,p+h2,p+h3,p+h4,p+h5,p+h6,ul+h1,ul+h2,ul+h3,ul+h4,ul+h5,ul+h6,ol+h1,ol+h2,ol+h3,ol+h4,ol+h5,ol+h6,h1+h2,h2+h3,h3+h4,h4+h5,h5+h6{margin-top:2rem}p code,td code,li code{line-height:2.25rem}input[type=text],input[type=number],input[type=email],input[type=date],input[type=color],input[type=search],input[type=tel],textarea{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}input[type=checkbox]+label,input[type=radio]+label{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:400;margin-left:0;margin-right:0}fieldset{border:0;margin:0;padding:0;page-break-inside:avoid}legend,label{display:block;margin:0}select{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}ul,ol{padding:0}ul{margin-left:2rem}ul li{padding:0 0 0.75rem 0}ol{margin-left:1.75rem}ol li{padding:0 0 0.75rem 0.25rem}ul li:last-child,ol li:last-child{padding-bottom:0}ul[class*=columns-] li:last-child,ol[class*=columns-] li:last-child{padding-bottom:0.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 2rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 1.75rem}p+ul,p+ol{margin-top:-0.75rem}@media screen and (min-width: 40em){ul{margin:0.5rem 0 1.5rem 3rem}ol{margin:0.5rem 0 1.5rem 2.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 3rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 2.75rem}}.ontario-aside{border-left:0.25rem solid #367A76;padding:1.5rem;margin:2rem 0 2.5rem 2rem}.ontario-aside *{max-width:48rem}.ontario-aside *:last-child{margin-bottom:0.5rem}@media screen and (max-width: 40em){.ontario-aside .ontario-aside{margin:2rem 0 2.5rem 1rem}}.ontario-aside__title{margin:0 0 1rem}.ontario-border-highlight--teal{border-color:#367A76 !important}.ontario-border-highlight--gold{border-color:#86743D !important}.ontario-border-highlight--yellow{border-color:#8A600D !important}.ontario-border-highlight--taupe{border-color:#7B725C !important}.ontario-border-highlight--green{border-color:#2B8737 !important}.ontario-border-highlight--lime{border-color:#5F8129 !important}.ontario-border-highlight--sky{border-color:#1080A6 !important}.ontario-border-highlight--blue{border-color:#0369ac !important}.ontario-border-highlight--purple{border-color:#92278F !important}';
|
|
12
|
+
'@charset "UTF-8";h6,.ontario-h6,h5,.ontario-h5,h4,.ontario-h4,h3,.ontario-h3,h2,.ontario-h2,h1,.ontario-h1{font-style:normal;font-weight:700;text-rendering:optimizeLegibility;margin-bottom:1rem;font-feature-settings:normal;font-family:"Raleway Modified", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif}h1,.ontario-h1{font-size:2rem;letter-spacing:0.04rem;line-height:1.29;margin:2.5rem 0 1.5rem 0;max-width:70rem}@media screen and (min-width: 40em){h1,.ontario-h1{font-size:2.5rem;letter-spacing:0.04rem;line-height:1.2}}h2,.ontario-h2{font-size:1.6875rem;letter-spacing:0.03rem;line-height:1.37;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h2,.ontario-h2{font-size:2.0625rem;letter-spacing:0.02rem;line-height:1.33}}h3,.ontario-h3{font-size:1.4375rem;letter-spacing:0.02rem;line-height:1.39;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h3,.ontario-h3{font-size:1.75rem;letter-spacing:0.02rem;line-height:1.43}}h4,.ontario-h4{font-size:1.25rem;letter-spacing:0.03rem;line-height:1.5;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h4,.ontario-h4{font-size:1.5rem;letter-spacing:0.0313rem;line-height:1.5}}h5,.ontario-h5{font-size:1.125rem;letter-spacing:0.03rem;line-height:1.56;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h5,.ontario-h5{font-size:1.1875rem;letter-spacing:0.025rem;line-height:1.5}}h6,.ontario-h6{font-size:1rem;line-height:1.56;letter-spacing:0.03rem;max-width:48rem;margin:0 0 0.75rem 0}@media screen and (min-width: 40em){h6,.ontario-h6{font-size:1rem;letter-spacing:0.025rem;line-height:1.5}}.ontario-lead-statement{font-size:1.25rem;line-height:1.6;max-width:70rem}@media screen and (min-width: 40em){.ontario-lead-statement{font-size:1.375rem}}html{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem}body{font-size:1rem;line-height:1.6;background-color:#FFFFFF;color:#1a1a1a;margin:0}p{font-size:inherit;margin-bottom:1.25rem;text-rendering:optimizeLegibility;margin:0 0 1.5rem 0}cite{font-style:italic;line-height:inherit}strong{font-weight:700;line-height:inherit}*,*::before,*::after{box-sizing:inherit}main p,main p:not(.ontario-lead-statement),main dd,main li{max-width:48rem}hr{border:0;padding:0;margin:2.5rem 0;border-bottom:4px solid #cccccc}hr.ontario-hr--dark{border-bottom:4px solid #1a1a1a}a{color:#0066CC;text-decoration:underline}a:visited{color:#551A8B}a:hover{color:#00478F}a:active{color:#002142}a:focus{-moz-box-shadow:0 0 0 4px #009ADB;-webkit-box-shadow:0 0 0 4px #009ADB;box-shadow:0 0 0 4px #009ADB;outline:4px solid transparent;transition:all 0.1s ease-in-out}p{margin:0 0 1.5rem 0}p+h1,p+h2,p+h3,p+h4,p+h5,p+h6,ul+h1,ul+h2,ul+h3,ul+h4,ul+h5,ul+h6,ol+h1,ol+h2,ol+h3,ol+h4,ol+h5,ol+h6,h1+h2,h2+h3,h3+h4,h4+h5,h5+h6{margin-top:2rem}p code,td code,li code{line-height:2.25rem}input[type=text],input[type=number],input[type=email],input[type=date],input[type=color],input[type=search],input[type=tel],textarea{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}input[type=checkbox]+label,input[type=radio]+label{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:400;margin-left:0;margin-right:0}fieldset{border:0;margin:0;padding:0;page-break-inside:avoid}legend,label{display:block;margin:0}select{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}ul,ol{padding:0}ul{margin-left:2rem}ul li{padding:0 0 0.75rem 0}ol{margin-left:1.75rem}ol li{padding:0 0 0.75rem 0.25rem}ul li:last-child,ol li:last-child{padding-bottom:0}ul[class*=columns-] li:last-child,ol[class*=columns-] li:last-child{padding-bottom:0.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 2rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 1.75rem}p+ul,p+ol{margin-top:-0.75rem}@media screen and (min-width: 40em){ul{margin:0.5rem 0 1.5rem 3rem}ol{margin:0.5rem 0 1.5rem 2.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 3rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 2.75rem}}.ontario-aside{border-left:0.25rem solid #367A76;padding:1.5rem;margin:2rem 0 2.5rem 2rem}.ontario-aside *{max-width:48rem}.ontario-aside *:last-child{margin-bottom:0.5rem}@media screen and (max-width: 40em){.ontario-aside .ontario-aside{margin:2rem 0 2.5rem 1rem}}.ontario-aside__title{margin:0 0 1rem}.ontario-border-highlight--teal{border-color:#367A76 !important}.ontario-border-highlight--gold{border-color:#86743D !important}.ontario-border-highlight--yellow{border-color:#8A600D !important}.ontario-border-highlight--taupe{border-color:#7B725C !important}.ontario-border-highlight--green{border-color:#2B8737 !important}.ontario-border-highlight--lime{border-color:#5F8129 !important}.ontario-border-highlight--sky{border-color:#1080A6 !important}.ontario-border-highlight--blue{border-color:#0369ac !important}.ontario-border-highlight--purple{border-color:#92278F !important}';
|
|
13
13
|
|
|
14
14
|
const OntarioAside$1 = /*@__PURE__*/ proxyCustomElement(
|
|
15
|
-
class OntarioAside extends
|
|
15
|
+
class OntarioAside extends HTMLElement {
|
|
16
16
|
constructor() {
|
|
17
17
|
super();
|
|
18
18
|
this.__registerHost();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"ontario-aside.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,
|
|
1
|
+
{"file":"ontario-aside.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,k0JAAk0J;;MCsB70JA,cAAY,iBAAAC,kBAAA,CAAA,MAAA,YAAA,SAAA,WAAA,CAAA;;;;;;AACxB;;AAEG;AACsB,IAAA,WAAW;AAEpC;;AAEG;IACsB,kBAAkB,GAAuB,QAAQ;AAE1E;;AAEG;AACK,IAAA,cAAc;AAEtB;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Ae,GAAA;AACtB,QAAA,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE;QACzC;AACE,aAAA,kBAAkB;aAClB,gBAAgB,CAAC,sBAAsB;aACvC,cAAc,CAAC,IAAI;aACnB,gBAAgB,CAAC,mBAAmB;aACpC,cAAc,CAAC,kCAAkC;aACjD,gBAAgB,CAAC,kBAAkB;aACnC,cAAc,CAAC,iCAAiC;aAChD,gBAAgB,CAAC,UAAU;aAC3B,cAAc,CAAC,aAAa;AAC5B,aAAA,YAAY,EAAE;AAChB,QAAA,QAAQ,IAAI,CAAC,kBAAkB,GAAG,QAAQ;;IAG3C,iBAAiB,GAAA;QAChB,IAAI,CAAC,uBAAuB,EAAE;QAC9B,IAAI,CAAC,mBAAmB,EAAE;QAC1B,IAAI,CAAC,0BAA0B,EAAE;;IAGlC,MAAM,GAAA;QACL,OAAO,oBAAoB,CAC1B,OAAO,EACP,IAAI,CAAC,kBAAkB,EACvB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,eAAe,CACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioAside","__stencil_proxyCustomElement"],"sources":["src/components/ontario-aside/ontario-aside.scss?tag=ontario-aside&encapsulation=shadow","src/components/ontario-aside/ontario-aside.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/4-elements/global.elements';\n\n.ontario-aside {\n\tborder-left: spacing.$spacing-1 solid colours.$ontario-colour-dark-teal;\n\tpadding: spacing.$spacing-5;\n\tmargin: spacing.$spacing-6 spacing.$spacing-0 spacing.$spacing-7 spacing.$spacing-6;\n\n\t* {\n\t\tmax-width: globalVariables.$standard-width;\n\n\t\t&:last-child {\n\t\t\tmargin-bottom: spacing.$spacing-2;\n\t\t}\n\t}\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\t.ontario-aside {\n\t\t\tmargin: spacing.$spacing-6 spacing.$spacing-0 spacing.$spacing-7 spacing.$spacing-4;\n\t\t}\n\t}\n}\n\n.ontario-aside__title {\n\tmargin: spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-4;\n}\n\n$aside-highlight-colours: (\n\t'teal': colours.$ontario-colour-dark-teal,\n\t'gold': colours.$ontario-colour-dark-gold,\n\t'yellow': colours.$ontario-colour-dark-yellow,\n\t'taupe': colours.$ontario-colour-dark-taupe,\n\t'green': colours.$ontario-colour-dark-green,\n\t'lime': colours.$ontario-colour-dark-lime,\n\t'sky': colours.$ontario-colour-dark-sky,\n\t'blue': colours.$ontario-colour-dark-blue,\n\t'purple': colours.$ontario-colour-dark-purple,\n);\n\n@each $colour-name, $hex in $aside-highlight-colours {\n\t.ontario-border-highlight--#{$colour-name} {\n\t\tborder-color: $hex !important;\n\t}\n}\n","import { Component, Prop, Watch } from '@stencil/core';\n\nimport {\n\tCalloutAside,\n\tHeadingLevelOptions,\n\tHeadingContentType,\n\tHeadingContentTypes,\n\tHighlightColourOptions,\n} from '../../utils/components/callout-aside/callout-aside.interface';\nimport {\n\tisValidHighlightColour,\n\tgenerateCalloutAside,\n\tisValidHeadingLevel,\n} from '../../utils/components/callout-aside/callout-aside-helpers';\nimport { validateValueAgainstArray } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\n\n@Component({\n\ttag: 'ontario-aside',\n\tstyleUrl: 'ontario-aside.scss',\n\tshadow: true,\n})\nexport class OntarioAside implements CalloutAside {\n\t/**\n\t * The heading level of the aside heading.\n\t */\n\t@Prop({ mutable: true }) headingType?: HeadingLevelOptions;\n\n\t/**\n\t * The type of the heading content. If no prop is passed, it will default to string.\n\t */\n\t@Prop({ mutable: true }) headingContentType: HeadingContentType = 'string';\n\n\t/**\n\t * Text or HTML to be displayed as the heading of the aside. If the heading content should be displayed as HTML, the `headingContentType` needs to be set to `html`.\n\t */\n\t@Prop() headingContent?: string;\n\n\t/**\n\t * Optional text to be displayed as the content for the aside component. If a string is passed, it will automatically be nested in a paragraph tag.\n\t *\n\t * HTML content can also be passed as the child/children of the aside component if additional/different elements for the content are needed.\n\t *\n\t * @example\n\t * <ontario-aside headingType='h3' headingContent='This is the aside heading'><p>This is the first sentence of the aside content.</p><p>This is the second sentence of the aside content.</p></ontario-aside>\n\t */\n\t@Prop() content?: string;\n\n\t/**\n\t * Optional prop to choose the border colour of the aside. If none is passed, the default colour will be teal.\n\t */\n\t@Prop({ mutable: true }) highlightColour?: HighlightColourOptions = 'teal';\n\n\t/**\n\t * Watch for changes to the `headingType` prop.\n\t *\n\t * This is for validation purposes to make sure the `headingType` matches one of the `HeadingLevelOptions`.\n\t */\n\t@Watch('headingType')\n\tvalidateHeadingType() {\n\t\tif (!!this.headingType) {\n\t\t\tif (isValidHeadingLevel(this.headingType)) return this.headingType;\n\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\treturn message\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(` headingType ${this.headingType} `)\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-aside> ')\n\t\t\t\t.addRegularText('is not a valid type. Please ensure your heading type matches one of the headingType types.')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes in the `headingContentType` prop for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `headingContentType` will be set to its default (`string`).\n\t * If a match is found in one of the array values then `headingContentType` will be set to the matching array key value.\n\t */\n\t@Watch('headingContentType')\n\tvalidateHeadingContentType() {\n\t\tconst isValid = validateValueAgainstArray(this.headingContentType, HeadingContentTypes);\n\t\tif (isValid) {\n\t\t\treturn this.headingContentType;\n\t\t} else {\n\t\t\treturn this.warnDefaultType();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `highlightColour` prop.\n\t *\n\t * If no `highlightColour` is passed, or if the `highlightColour` does not match the `highlightColour` options, a default value of 'teal' will be applied.\n\t */\n\t@Watch('highlightColour')\n\tvalidateHighlightColour() {\n\t\tif (this.highlightColour) {\n\t\t\tif (isValidHighlightColour(this.highlightColour)) return this.highlightColour;\n\t\t\telse {\n\t\t\t\tconst message = new ConsoleMessageClass();\n\t\t\t\tmessage\n\t\t\t\t\t.addDesignSystemTag()\n\t\t\t\t\t.addMonospaceText(` highlightColour ${this.highlightColour} `)\n\t\t\t\t\t.addRegularText('for')\n\t\t\t\t\t.addMonospaceText(' <ontario-aside> ')\n\t\t\t\t\t.addRegularText(\n\t\t\t\t\t\t'does not match one of the valid highlightColour types. A default colour of `teal` will be applied.',\n\t\t\t\t\t)\n\t\t\t\t\t.printMessage();\n\t\t\t}\n\t\t}\n\n\t\t// if no highlight colour is passed, return 'teal'\n\t\treturn 'teal';\n\t}\n\n\t/**\n\t * Print the invalid `type` warning message.\n\t * @returns default type ('string')\n\t */\n\tprivate warnDefaultType() {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' headingContentType ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-aside> ')\n\t\t\t.addRegularText('was set to an invalid type; only')\n\t\t\t.addMonospaceText(' string or html ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' string ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn (this.headingContentType = 'string');\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateHighlightColour();\n\t\tthis.validateHeadingType();\n\t\tthis.validateHeadingContentType();\n\t}\n\n\trender() {\n\t\treturn generateCalloutAside(\n\t\t\t'aside',\n\t\t\tthis.headingContentType,\n\t\t\tthis.headingType,\n\t\t\tthis.headingContent,\n\t\t\tthis.content,\n\t\t\tthis.highlightColour,\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as validateLanguage } from './
|
|
3
|
-
import { t as translations } from './
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { b as validateLanguage } from './validation-functions.js';
|
|
3
|
+
import { t as translations } from './global.i18n.js';
|
|
4
4
|
|
|
5
5
|
var OntarioIconArrowUp = `<svg class="ontario-icon" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg>
|
|
6
6
|
`;
|
|
@@ -9,7 +9,7 @@ const ontarioBackToTopCss =
|
|
|
9
9
|
'.ontario-back-to-top,.ontario-back-to-top--default{position:fixed;bottom:5%;right:2%;visibility:hidden;opacity:0;transition:0.1s ease-in-out;display:flex;justify-content:center;align-items:center;height:3rem;padding:0.5rem 1rem 0.5rem 0.75rem;background:#e6e6e6;border:0.125rem solid #FFFFFF;border-radius:4px;box-shadow:0 0.125rem 0.25rem rgba(26, 26, 26, 0.6);box-sizing:border-box;color:#1a1a1a;line-height:1.25rem;font-size:1rem;font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-weight:600;z-index:10000;cursor:pointer}.ontario-back-to-top .ontario-icon,.ontario-back-to-top--default .ontario-icon{margin:0.125rem 0.5rem 0 0;width:2rem;height:2rem}.ontario-back-to-top:hover,.ontario-back-to-top--default:hover{background-color:#cccccc}.ontario-back-to-top:focus,.ontario-back-to-top--default:focus{background-color:#e6e6e6;box-shadow:0 0 0 0.25rem #009ADB, 0 0.1875rem 0.3125rem 0.1875rem rgba(0, 0, 0, 0.6);outline:0.25rem solid transparent;transition:0.1s ease-in-out}.ontario-back-to-top:active,.ontario-back-to-top--default:active{background-color:#b2b2b2;box-shadow:0 0 0 0.25rem #009ADB, 0 0.3125rem 0.4375rem 0.1875rem rgba(0, 0, 0, 0.6);outline:0.25rem solid transparent;transition:background-color 0s, box-shadow 0.1s ease-in-out}@media screen and (max-width: 73em){.ontario-back-to-top,.ontario-back-to-top--default{flex-direction:column;height:4.75rem;padding:0.375rem 0.75rem 0.5625rem 0.75rem}.ontario-back-to-top .ontario-icon,.ontario-back-to-top--default .ontario-icon{margin:0.0625rem 0 0.25rem 0;width:2rem;height:2rem}}@media screen and (max-width: 40em){.ontario-back-to-top,.ontario-back-to-top--default{display:block;padding:0.25rem;font-size:0;width:3rem;height:3rem}.ontario-back-to-top .ontario-icon,.ontario-back-to-top--default .ontario-icon{margin:0.5rem 0 0 0}@-moz-document url-prefix(){.ontario-back-to-top .ontario-icon,.ontario-back-to-top--default .ontario-icon{margin-top:0.125rem}}}.ontario-back-to-top.active,.ontario-back-to-top--default.active{visibility:visible;opacity:1}';
|
|
10
10
|
|
|
11
11
|
const OntarioBackToTop$1 = /*@__PURE__*/ proxyCustomElement(
|
|
12
|
-
class OntarioBackToTop extends
|
|
12
|
+
class OntarioBackToTop extends HTMLElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super();
|
|
15
15
|
this.__registerHost();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"ontario-back-to-top.js","mappings":";;;;;;;AAAA,MAAM,mBAAmB,GAAG,kgEAAkgE;;MCajhEA,kBAAgB,iBAAAC,kBAAA,CAAA,MAAA,gBAAA,
|
|
1
|
+
{"file":"ontario-back-to-top.js","mappings":";;;;;;;AAAA,MAAM,mBAAmB,GAAG,kgEAAkgE;;MCajhEA,kBAAgB,iBAAAC,kBAAA,CAAA,MAAA,gBAAA,SAAA,WAAA,CAAA;;;;;;;AAG5B;;;AAGG;AACsB,IAAA,QAAQ;IAExB,YAAY,GAAQ,YAAY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CAAC,CAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioBackToTop","__stencil_proxyCustomElement"],"sources":["src/components/ontario-back-to-top/ontario-back-to-top.scss?tag=ontario-back-to-top&encapsulation=shadow","src/components/ontario-back-to-top/ontario-back-to-top.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/fonts.variables' as fonts;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/functions/global.functions' as globalFunctions;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-sizes.variables' as fontSizes;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-weights.variables' as fontWeights;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tfocusPlaceholders;\n\n$ontario-icon-margin-top: 0.125rem;\n\n// Colour variables\n$ontario-colour-back-to-top-background: #e6e6e6;\n$ontario-colour-back-to-top--active-background: #b2b2b2;\n\n.ontario-back-to-top,\n// Fractal component style coverage ↓\n.ontario-back-to-top--default {\n\tposition: fixed;\n\tbottom: 5%;\n\tright: 2%;\n\tvisibility: hidden;\n\topacity: 0;\n\ttransition: 0.1s ease-in-out;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\theight: globalFunctions.px-to-rem(48);\n\tpadding: spacing.$spacing-2 spacing.$spacing-4 spacing.$spacing-2 spacing.$spacing-3;\n\tbackground: $ontario-colour-back-to-top-background;\n\tborder: globalFunctions.px-to-rem(2) solid colours.$ontario-colour-white;\n\tborder-radius: globalVariables.$global-radius;\n\tbox-shadow: 0 globalFunctions.px-to-rem(2) globalFunctions.px-to-rem(4) rgba(colours.$ontario-colour-black, 0.6);\n\tbox-sizing: border-box;\n\tcolor: colours.$ontario-colour-black;\n\tline-height: globalFunctions.px-to-rem(20);\n\tfont-size: fontSizes.$ontario-font-size-standard-body-text;\n\tfont-family: fonts.$ontario-font-open-sans;\n\tfont-weight: fontWeights.$ontario-font-weights-semi-bold;\n\tz-index: 10000;\n\tcursor: pointer;\n\n\t.ontario-icon {\n\t\tmargin: $ontario-icon-margin-top spacing.$spacing-2 spacing.$spacing-0 spacing.$spacing-0;\n\t\twidth: globalFunctions.px-to-rem(32);\n\t\theight: globalFunctions.px-to-rem(32);\n\t}\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-greyscale-20;\n\t}\n\n\t&:focus {\n\t\tbackground-color: $ontario-colour-back-to-top-background;\n\t\tbox-shadow:\n\t\t\t0 0 0 globalFunctions.px-to-rem(4) colours.$ontario-colour-focus,\n\t\t\t0 globalFunctions.px-to-rem(3) globalFunctions.px-to-rem(5) globalFunctions.px-to-rem(3) rgba(0, 0, 0, 0.6);\n\t\toutline: globalFunctions.px-to-rem(4) solid transparent;\n\t\ttransition: 0.1s ease-in-out;\n\t}\n\n\t&:active {\n\t\tbackground-color: $ontario-colour-back-to-top--active-background;\n\t\tbox-shadow:\n\t\t\t0 0 0 globalFunctions.px-to-rem(4) colours.$ontario-colour-focus,\n\t\t\t0 globalFunctions.px-to-rem(5) globalFunctions.px-to-rem(7) globalFunctions.px-to-rem(3) rgba(0, 0, 0, 0.6);\n\t\toutline: globalFunctions.px-to-rem(4) solid transparent;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t@media screen and (max-width: breakpoints.$medium-breakpoint) {\n\t\tflex-direction: column;\n\t\theight: globalFunctions.px-to-rem(76);\n\t\tpadding: globalFunctions.px-to-rem(6) spacing.$spacing-3 globalFunctions.px-to-rem(9) spacing.$spacing-3;\n\n\t\t.ontario-icon {\n\t\t\tmargin: globalFunctions.px-to-rem(1) spacing.$spacing-0 spacing.$spacing-1 spacing.$spacing-0;\n\t\t\twidth: globalFunctions.px-to-rem(32);\n\t\t\theight: globalFunctions.px-to-rem(32);\n\t\t}\n\t}\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tdisplay: block;\n\t\tpadding: spacing.$spacing-1;\n\t\tfont-size: 0;\n\t\twidth: globalFunctions.px-to-rem(48);\n\t\theight: globalFunctions.px-to-rem(48);\n\n\t\t.ontario-icon {\n\t\t\tmargin: spacing.$spacing-2 spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-0;\n\n\t\t\t@-moz-document url-prefix() {\n\t\t\t\tmargin-top: $ontario-icon-margin-top;\n\t\t\t}\n\t\t}\n\t}\n\n\t&.active {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n","import { Component, h, Element, Prop, Listen, State } from '@stencil/core';\n\nimport OntarioIconArrowUp from '../ontario-icon/assets/ontario-icon-arrow-up.svg';\nimport { Language } from '../../utils/common/language-types';\nimport { validateLanguage } from '../../utils/validation/validation-functions';\n\nimport translations from '../../translations/global.i18n.json';\n\n@Component({\n\ttag: 'ontario-back-to-top',\n\tstyleUrl: 'ontario-back-to-top.scss',\n\tshadow: true,\n})\nexport class OntarioBackToTop {\n\t@Element() element: HTMLElement;\n\n\t/**\n\t * The language of the component.\n\t * This is used for translations, and is by default set through event listeners checking for a language property from the header. If no language prop is passed, it will default to English.\n\t */\n\t@Prop({ mutable: true }) language?: Language;\n\n\t@State() translations: any = translations;\n\n\t@State() private displayBackToTop: boolean = false;\n\n\t@State() private scrollYValue: number = 200;\n\n\t/**\n\t * This listens for the window Y scroll value to be above 200 pixels. Once it is, the Back to Top button will toggle the `displayBackToTop` state which will set an active class to control the components' visibility.\n\t */\n\t@Listen('scroll', { target: 'window' })\n\tshowBackToTopButton() {\n\t\tthis.displayBackToTop = window.scrollY > this.scrollYValue;\n\t}\n\n\t/**\n\t * This listens for the `setAppLanguage` event sent from the test language toggler when it is is connected to the DOM. It is used for the initial language when the input component loads.\n\t */\n\t@Listen('setAppLanguage', { target: 'window' })\n\thandleSetAppLanguage(event: CustomEvent<Language>) {\n\t\tif (!this.language) {\n\t\t\tthis.language = validateLanguage(event);\n\t\t}\n\t}\n\n\t@Listen('headerLanguageToggled', { target: 'window' })\n\thandleHeaderLanguageToggled(event: CustomEvent<Language>) {\n\t\tthis.language = validateLanguage(event);\n\t}\n\n\t/**\n\t * Scroll to top functionality when the Back to Top button is clicked\n\t */\n\tprivate scrollToTop() {\n\t\twindow.scrollTo({ top: 0, left: 0, behavior: 'smooth' });\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.language = validateLanguage(this.language);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<button\n\t\t\t\tclass={this.displayBackToTop ? `ontario-back-to-top active` : `ontario-back-to-top`}\n\t\t\t\tonClick={this.scrollToTop}\n\t\t\t\taria-label={this.translations.backToTop.ariaLabel[`${this.language}`]}\n\t\t\t>\n\t\t\t\t<span aria-hidden=\"true\" innerHTML={OntarioIconArrowUp}></span>\n\t\t\t\t{this.translations.backToTop.top[`${this.language}`]}\n\t\t\t</button>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { r as retrieveEnumKeys } from './utils.js';
|
|
3
3
|
import { C as ConsoleMessageClass } from './console-message.js';
|
|
4
|
-
import {
|
|
4
|
+
import { v as validateValueAgainstArray } from './validation-functions.js';
|
|
5
5
|
|
|
6
6
|
var BadgeColourToClass;
|
|
7
7
|
(function (BadgeColourToClass) {
|
|
@@ -18,7 +18,7 @@ var BadgeColourToClass;
|
|
|
18
18
|
const BadgeColours = retrieveEnumKeys(BadgeColourToClass);
|
|
19
19
|
|
|
20
20
|
const ontarioBadgeCss =
|
|
21
|
-
'.ontario-badge__container{display:flex;flex-direction:column;gap:2.5rem;align-items:flex-start;padding:1.5rem 1rem}.ontario-badge__label{display:block;text-align:left;font-weight:600;margin-bottom:0.75rem;font-size:0.875rem;color:#4d4d4d}.ontario-badge{display:inline-block;background-color:#E2F0F4;color:#4d4d4d;padding:0.25rem 0.5rem;font-family:"Raleway", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:700;line-height:1.5625rem;letter-spacing:0.03rem;text-transform:uppercase}.ontario-badge--default-light{background-color:#E2F0F4;color:#4d4d4d}.ontario-badge--default-heavy{background-color:#1080A6;color:#FFFFFF}.ontario-badge--neutral-light{background-color:#f2f2f2;color:#4d4d4d}.ontario-badge--neutral-heavy{background-color:#1a1a1a;color:#FFFFFF}.ontario-badge--alert-heavy{background-color:#CD0000;color:#FFFFFF}.ontario-badge--warning-heavy{background-color:#FFD440;color:#1a1a1a}.ontario-badge--success-heavy{background-color:#118847;color:#FFFFFF}.ontario-badge--white{background-color:#FFFFFF;color:#4d4d4d;border:0.0625rem solid #4d4d4d}.ontario-badge--grey{background-color:#cccccc;color:#1a1a1a}';
|
|
21
|
+
'.ontario-badge__container{display:flex;flex-direction:column;gap:2.5rem;align-items:flex-start;padding:1.5rem 1rem}.ontario-badge__label{display:block;text-align:left;font-weight:600;margin-bottom:0.75rem;font-size:0.875rem;color:#4d4d4d}.ontario-badge{display:inline-block;background-color:#E2F0F4;color:#4d4d4d;padding:0.25rem 0.5rem;font-family:"Raleway Modified", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:700;line-height:1.5625rem;letter-spacing:0.03rem;text-transform:uppercase}.ontario-badge--default-light{background-color:#E2F0F4;color:#4d4d4d}.ontario-badge--default-heavy{background-color:#1080A6;color:#FFFFFF}.ontario-badge--neutral-light{background-color:#f2f2f2;color:#4d4d4d}.ontario-badge--neutral-heavy{background-color:#1a1a1a;color:#FFFFFF}.ontario-badge--alert-heavy{background-color:#CD0000;color:#FFFFFF}.ontario-badge--warning-heavy{background-color:#FFD440;color:#1a1a1a}.ontario-badge--success-heavy{background-color:#118847;color:#FFFFFF}.ontario-badge--white{background-color:#FFFFFF;color:#4d4d4d;border:0.0625rem solid #4d4d4d}.ontario-badge--grey{background-color:#cccccc;color:#1a1a1a}';
|
|
22
22
|
|
|
23
23
|
const OntarioBadge = /*@__PURE__*/ proxyCustomElement(
|
|
24
24
|
class OntarioBadge extends HTMLElement {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"ontario-badge2.js","mappings":";;;;;AAEA,IAAY,kBAUX;AAVD,CAAA,UAAY,kBAAkB,EAAA;AAC7B,IAAA,kBAAA,CAAA,MAAA,CAAA,GAAA,8BAAqC;AACrC,IAAA,kBAAA,CAAA,WAAA,CAAA,GAAA,8BAA0C;AAC1C,IAAA,kBAAA,CAAA,OAAA,CAAA,GAAA,8BAAsC;AACtC,IAAA,kBAAA,CAAA,MAAA,CAAA,GAAA,8BAAqC;AACrC,IAAA,kBAAA,CAAA,KAAA,CAAA,GAAA,4BAAkC;AAClC,IAAA,kBAAA,CAAA,QAAA,CAAA,GAAA,8BAAuC;AACvC,IAAA,kBAAA,CAAA,OAAA,CAAA,GAAA,8BAAsC;AACtC,IAAA,kBAAA,CAAA,OAAA,CAAA,GAAA,sBAA8B;AAC9B,IAAA,kBAAA,CAAA,UAAA,CAAA,GAAA,qBAAgC;AACjC,CAAC,EAVW,kBAAkB,KAAlB,kBAAkB,GAU7B,EAAA,CAAA,CAAA;AAEM,MAAM,YAAY,GAAG,gBAAgB,CAAC,kBAAkB,CAAC;;ACdhE,MAAM,eAAe,GAAG,
|
|
1
|
+
{"file":"ontario-badge2.js","mappings":";;;;;AAEA,IAAY,kBAUX;AAVD,CAAA,UAAY,kBAAkB,EAAA;AAC7B,IAAA,kBAAA,CAAA,MAAA,CAAA,GAAA,8BAAqC;AACrC,IAAA,kBAAA,CAAA,WAAA,CAAA,GAAA,8BAA0C;AAC1C,IAA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GAAG,IAAI,mBAAmB,EAAE;gBACzC;AACE,qBAAA,kBAAkB;AAClB,qBAAA,gBAAgB,CAAC,CAAW,QAAA,EAAA,IAAI,CAAC,MAAM,GAAG;qBAC1C,cAAc,CAAC,KAAK;qBACpB,gBAAgB,CAAC,mBAAmB;qBACpC,cAAc,CAAC,2FAA2F;AAC1G,qBAAA,YAAY,EAAE;;;AAIlB,QAAA,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;;AAGnC;;;;;;AAMG;AACH,IAAA,cAAc,CAAC,MAAmB,EAAA;AACjC,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM;QACpB,OAAO,IAAI,CAAC,MAAM;;AAGnB;;;;;;;AAOG;IACH,aAAa,GAAA;AACZ,QAAA,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW;AAClE,QAAA,OAAO,UAAU;;IAGlB,iBAAiB,GAAA;QAChB,IAAI,CAAC,cAAc,EAAE;QACrB,IAAI,CAAC,aAAa,EAAE;;IAGrB,MAAM,GAAA;AACL,QAAA,QACC,6DAAM,KAAK,EAAE,CAAiB,cAAA,EAAA,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAE,CAAA,EAAc,YAAA,EAAA,IAAI,CAAC,aAAa,EAC7F,EAAA,IAAI,CAAC,aAAa,EAAE,CACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement"],"sources":["src/components/ontario-badge/ontario-badge.types.ts","src/components/ontario-badge/ontario-badge.scss?tag=ontario-badge&encapsulation=shadow","src/components/ontario-badge/ontario-badge.tsx"],"sourcesContent":["import { retrieveEnumKeys } from '../../utils/helper/utils';\n\nexport enum BadgeColourToClass {\n\tteal = 'ontario-badge--default-heavy',\n\tlightTeal = 'ontario-badge--default-light',\n\tblack = 'ontario-badge--neutral-heavy',\n\tgrey = 'ontario-badge--neutral-light',\n\tred = 'ontario-badge--alert-heavy',\n\tyellow = 'ontario-badge--warning-heavy',\n\tgreen = 'ontario-badge--success-heavy',\n\twhite = 'ontario-badge--white',\n\tdarkGrey = 'ontario-badge--grey',\n}\n\nexport const BadgeColours = retrieveEnumKeys(BadgeColourToClass);\n\nexport type BadgeColour = keyof typeof BadgeColourToClass;\n","@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/fonts.variables' as fonts;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-weights.variables' as fontWeights;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-sizes.variables' as fontSizes;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/functions/global.functions' as globalFunctions;\n\n.ontario-badge__container {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: spacing.$spacing-7;\n\talign-items: flex-start;\n\tpadding: spacing.$spacing-5 spacing.$spacing-4;\n}\n\n.ontario-badge__label {\n\tdisplay: block;\n\ttext-align: left;\n\tfont-weight: fontWeights.$ontario-font-weights-semi-bold;\n\tmargin-bottom: spacing.$spacing-3;\n\tfont-size: fontSizes.$ontario-font-size-small;\n\tcolor: colours.$ontario-greyscale-70;\n}\n\n.ontario-badge {\n\tdisplay: inline-block;\n\tbackground-color: colours.$ontario-colour-information-light;\n\tcolor: colours.$ontario-greyscale-70;\n\tpadding: spacing.$spacing-1 spacing.$spacing-2;\n\tfont-family: fonts.$ontario-font-raleway-modified;\n\tfont-size: fontSizes.$ontario-font-size-standard-body-text;\n\tfont-weight: fontWeights.$ontario-font-weights-bold;\n\tline-height: globalFunctions.px-to-rem(25);\n\tletter-spacing: 0.03rem;\n\ttext-transform: uppercase;\n}\n\n.ontario-badge--default-light {\n\tbackground-color: colours.$ontario-colour-information-light;\n\tcolor: colours.$ontario-greyscale-70;\n}\n\n.ontario-badge--default-heavy {\n\tbackground-color: colours.$ontario-colour-information;\n\tcolor: colours.$ontario-colour-white;\n}\n\n.ontario-badge--neutral-light {\n\tbackground-color: colours.$ontario-greyscale-5;\n\tcolor: colours.$ontario-greyscale-70;\n}\n\n.ontario-badge--neutral-heavy {\n\tbackground-color: colours.$ontario-colour-black;\n\tcolor: colours.$ontario-colour-white;\n}\n\n.ontario-badge--alert-heavy {\n\tbackground-color: colours.$ontario-colour-alert;\n\tcolor: colours.$ontario-colour-white;\n}\n\n.ontario-badge--warning-heavy {\n\tbackground-color: colours.$ontario-colour-warning;\n\tcolor: colours.$ontario-colour-black;\n}\n\n.ontario-badge--success-heavy {\n\tbackground-color: colours.$ontario-colour-success;\n\tcolor: colours.$ontario-colour-white;\n}\n\n.ontario-badge--white {\n\tbackground-color: colours.$ontario-colour-white;\n\tcolor: colours.$ontario-greyscale-70;\n\tborder: globalFunctions.px-to-rem(1) solid colours.$ontario-greyscale-70;\n}\n\n.ontario-badge--grey {\n\tbackground-color: colours.$ontario-greyscale-20;\n\tcolor: colours.$ontario-colour-black;\n}\n","import { Component, Prop, Element, h, Watch, AttachInternals } from '@stencil/core';\n\nimport { BadgeColour, BadgeColours, BadgeColourToClass } from './ontario-badge.types';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\nimport { validateValueAgainstArray } from '../../utils/validation/validation-functions';\n\n@Component({\n\ttag: 'ontario-badge',\n\tstyleUrl: 'ontario-badge.scss',\n\tshadow: true,\n})\nexport class OntarioBadge {\n\t@Element() host: HTMLElement;\n\t@AttachInternals() internals: ElementInternals;\n\n\t/**\n\t * The colour of the badge.\n\t */\n\t@Prop({ mutable: true }) colour: BadgeColour = 'teal';\n\n\t/**\n\t * The label for the badge.\n\t *\n\t * Offical guidance is to keep the label length within 15 characters.\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * An aria label for screen readers.\n\t *\n\t * Used to provide more context to screen readers if necessary.\n\t *\n\t * This property is optional.\n\t *\n\t * @example\n\t * <ontario-badge aria-label-text=\"This training is currently in progress.\">In progress</ontario-badge>\n\t */\n\t@Prop({ mutable: true }) ariaLabelText?: string;\n\n\t/**\n\t * Watch for changes in the `label` prop for validation purposes.\n\t *\n\t * If no `label` value or host.textContent is provided, a warning message will be printed.\n\t */\n\t@Watch('label')\n\tvalidateLabel() {\n\t\tif (!this.getBadgeLabel()) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' a label ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-badge> ')\n\t\t\t\t.addRegularText('was not provided.')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `colour` prop.\n\t *\n\t * If no `colour` is passed, or if the `colour` does not match the `colour` options, a default value of 'teal' will be applied.\n\t *\n\t * @returns {BadgeColour}\n\t */\n\t@Watch('colour')\n\tvalidateColour(): BadgeColour {\n\t\tif (this.colour) {\n\t\t\tif (validateValueAgainstArray(this.colour, BadgeColours)) {\n\t\t\t\treturn this.colour;\n\t\t\t} else {\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(` colour ${this.colour} `)\n\t\t\t\t\t.addRegularText('for')\n\t\t\t\t\t.addMonospaceText(' <ontario-badge> ')\n\t\t\t\t\t.addRegularText('does not match one of the valid colour types. A default colour of `teal` will be applied.')\n\t\t\t\t\t.printMessage();\n\t\t\t}\n\t\t}\n\n\t\treturn this.setBadgeColour('teal');\n\t}\n\n\t/**\n\t * Programatically set and return the colour prop.\n\t *\n\t * @prop {BadgeColour} colour\n\t *\n\t * @returns {BadgeColour}\n\t */\n\tsetBadgeColour(colour: BadgeColour): BadgeColour {\n\t\tthis.colour = colour;\n\t\treturn this.colour;\n\t}\n\n\t/**\n\t * Returns badge label depending on if the label prop was set or\n\t * if the host.textContent (text in-between the opening and closing tag) was set.\n\t *\n\t * The label prop takes priority.\n\t *\n\t * @returns {string | null}\n\t */\n\tgetBadgeLabel(): string | null {\n\t\tconst badgeLabel = this.label ? this.label : this.host.textContent;\n\t\treturn badgeLabel;\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateColour();\n\t\tthis.validateLabel();\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<span class={`ontario-badge ${BadgeColourToClass[this.colour]}`} aria-label={this.ariaLabelText}>\n\t\t\t\t{this.getBadgeLabel()}\n\t\t\t</span>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as validatePropExists } from './
|
|
3
|
-
import { C as ConsoleMessageClass } from './
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { a as validatePropExists } from './validation-functions.js';
|
|
3
|
+
import { C as ConsoleMessageClass } from './console-message.js';
|
|
4
4
|
|
|
5
5
|
const ontarioBlockquoteCss =
|
|
6
|
-
'@charset "UTF-8";.ontario-blockquote{border-left:4px solid #4d4d4d;font-family:"Raleway", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1.1875rem;font-weight:400;letter-spacing:0.025rem;line-height:1.56;max-width:48rem;margin:2rem;padding:1.5rem 0 1.5rem 1.5rem;quotes:"“" "”"}@media screen and (max-width: 40em){.ontario-blockquote{font-size:1.125rem;letter-spacing:0.03rem;line-height:1.5;margin:1.5rem 0 2rem 0}}.ontario-blockquote p{margin:0 0 1.5rem 0}.ontario-blockquote p::before{content:open-quote}.ontario-blockquote p::after{content:close-quote}.ontario-blockquote--short{font-size:1.75rem;letter-spacing:0.02rem;line-height:1.5}@media screen and (max-width: 40em){.ontario-blockquote--short{font-size:1.4375rem;line-height:1.43}}.ontario-blockquote__attribution,.ontario-blockquote__byline{display:block;font-size:1rem;letter-spacing:0.025rem;line-height:1.56;text-align:right}@media screen and (max-width: 40em){.ontario-blockquote__attribution,.ontario-blockquote__byline{letter-spacing:0.03rem;line-height:1.5}}.ontario-blockquote__attribution{font-style:normal;font-weight:700}.ontario-blockquote__attribution::before{content:"— "}html[lang=fr] blockquote{quotes:"« " " »"}';
|
|
6
|
+
'@charset "UTF-8";.ontario-blockquote{border-left:4px solid #4d4d4d;font-family:"Raleway Modified", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1.1875rem;font-weight:400;letter-spacing:0.025rem;line-height:1.56;max-width:48rem;margin:2rem;padding:1.5rem 0 1.5rem 1.5rem;quotes:"“" "”"}@media screen and (max-width: 40em){.ontario-blockquote{font-size:1.125rem;letter-spacing:0.03rem;line-height:1.5;margin:1.5rem 0 2rem 0}}.ontario-blockquote p{margin:0 0 1.5rem 0}.ontario-blockquote p::before{content:open-quote}.ontario-blockquote p::after{content:close-quote}.ontario-blockquote--short{font-size:1.75rem;letter-spacing:0.02rem;line-height:1.5}@media screen and (max-width: 40em){.ontario-blockquote--short{font-size:1.4375rem;line-height:1.43}}.ontario-blockquote__attribution,.ontario-blockquote__byline{display:block;font-size:1rem;letter-spacing:0.025rem;line-height:1.56;text-align:right}@media screen and (max-width: 40em){.ontario-blockquote__attribution,.ontario-blockquote__byline{letter-spacing:0.03rem;line-height:1.5}}.ontario-blockquote__attribution{font-style:normal;font-weight:700}.ontario-blockquote__attribution::before{content:"— "}html[lang=fr] blockquote{quotes:"« " " »"}';
|
|
7
7
|
|
|
8
8
|
const OntarioBlockquote$1 = /*@__PURE__*/ proxyCustomElement(
|
|
9
|
-
class OntarioBlockquote extends
|
|
9
|
+
class OntarioBlockquote extends HTMLElement {
|
|
10
10
|
constructor() {
|
|
11
11
|
super();
|
|
12
12
|
this.__registerHost();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"ontario-blockquote.js","mappings":";;;;AAAA,MAAM,oBAAoB,GAAG,
|
|
1
|
+
{"file":"ontario-blockquote.js","mappings":";;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ACH,SAAC,CAAC;AAEF,QAAA,MAAM,OAAO,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE;QACpC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC;;IAGrC,MAAM,GAAA;AACL,QAAA,QACC,CAAA,CAAA,YAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAY,KAAK,EAAE,IAAI,CAAC,UAAU,GAAG,CAA8C,4CAAA,CAAA,GAAG,oBAAoB,EAAA,EACzG,CAAI,CAAA,GAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EAAA,IAAI,CAAC,UAAU,CAAK,EACvB,IAAI,CAAC,WAAW,IAAI,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,iCAAiC,EAAE,EAAA,IAAI,CAAC,WAAW,CAAQ,EAC3F,IAAI,CAAC,MAAM,IAAI,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,4BAA4B,EAAE,EAAA,IAAI,CAAC,MAAM,CAAQ,CACjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioBlockquote","__stencil_proxyCustomElement"],"sources":["src/components/ontario-blockquote/ontario-blockquote.scss?tag=ontario-blockquote&encapsulation=shadow","src/components/ontario-blockquote/ontario-blockquote.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/fonts.variables' as fonts;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/line-heights.variables' as lineHeights;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-weights.variables' as fontWeights;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/functions/global.functions' as globalFunctions;\n\n.ontario-blockquote {\n\tborder-left: 4px solid colours.$ontario-greyscale-70;\n\tfont-family: fonts.$ontario-font-raleway-modified;\n\tfont-size: globalFunctions.px-to-rem(19);\n\tfont-weight: fontWeights.$ontario-font-weights-normal;\n\tletter-spacing: 0.025rem;\n\tline-height: lineHeights.$ontario-line-height-8;\n\tmax-width: globalVariables.$standard-width;\n\tmargin: spacing.$spacing-6;\n\tpadding: spacing.$spacing-5 0 spacing.$spacing-5 spacing.$spacing-5;\n\tquotes: '\\201C' '\\201D';\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tfont-size: globalFunctions.px-to-rem(18);\n\t\tletter-spacing: 0.03rem;\n\t\tline-height: lineHeights.$ontario-line-height-7;\n\t\tmargin: spacing.$spacing-5 spacing.$spacing-0 spacing.$spacing-6 spacing.$spacing-0;\n\t}\n}\n\n.ontario-blockquote p {\n\tmargin: spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-5 spacing.$spacing-0;\n\n\t&::before {\n\t\tcontent: open-quote;\n\t}\n\n\t&::after {\n\t\tcontent: close-quote;\n\t}\n}\n\n.ontario-blockquote--short {\n\tfont-size: globalFunctions.px-to-rem(28);\n\tletter-spacing: 0.02rem;\n\tline-height: lineHeights.$ontario-line-height-7;\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tfont-size: globalFunctions.px-to-rem(23);\n\t\tline-height: lineHeights.$ontario-line-height-6;\n\t}\n}\n\n.ontario-blockquote__attribution,\n.ontario-blockquote__byline {\n\tdisplay: block;\n\tfont-size: globalFunctions.px-to-rem(16);\n\tletter-spacing: 0.025rem;\n\tline-height: lineHeights.$ontario-line-height-8;\n\ttext-align: right;\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tletter-spacing: 0.03rem;\n\t\tline-height: lineHeights.$ontario-line-height-7;\n\t}\n}\n\n.ontario-blockquote__attribution {\n\tfont-style: normal;\n\tfont-weight: fontWeights.$ontario-font-weights-bold;\n\n\t&::before {\n\t\tcontent: '\\2014 \\0020';\n\t}\n}\n\nhtml[lang='fr'] blockquote {\n\tquotes: '« ' ' »';\n}\n","import { Component, h, Element, Prop, State, Watch } from '@stencil/core';\n\nimport { Blockquote } from './blockquote.interface';\n\nimport { validatePropExists } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\n\n@Component({\n\ttag: 'ontario-blockquote',\n\tstyleUrl: 'ontario-blockquote.scss',\n\tshadow: true,\n})\nexport class OntarioBlockquote implements Blockquote {\n\t@Element() host: HTMLElement;\n\n\t/**\n\t * Text to be displayed as the quote.\n\t *\n\t * Note that wrapping the quotes in quotations is not needed - this is handled through the component styles\n\t */\n\t@Prop({ mutable: true }) quote: string;\n\n\t/**\n\t * Optional text to be displayed as the attribution (the author) of the quote.\n\t */\n\t@Prop() attribution?: string;\n\n\t/**\n\t * Optional text to be displayed for additional information about the attribution/author.\n\t */\n\t@Prop() byline?: string;\n\n\t@State() shortQuoteLength: number = 140;\n\n\t@State() shortQuote: boolean = false;\n\n\t@State() private quoteState: string;\n\n\t/*\n\t * Watch for changes in the `quote` prop for validation purposes.\n\t *\n\t * If the `quote` prop is not provided, set the `quote` prop to the host textContent (if it exists).\n\t * If the `quote` prop length is 140 characters or less, set the `shortQuote` state to true - this will add additonal classes for the blockquote styles.\n\t */\n\t@Watch('quote')\n\tvalidateQuote() {\n\t\tthis.quoteState = this.quote ?? this.host.textContent ?? '';\n\t\tthis.validateQuoteContent(this.quoteState);\n\t\tthis.shortQuote = this.quoteState?.length <= this.shortQuoteLength ?? true;\n\t}\n\n\t/**\n\t * Print the missing `quote` prop warning message\n\t */\n\tvalidateQuoteContent(newValue: string) {\n\t\tif (validatePropExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' quote ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-blockquote> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateQuote();\n\t}\n\n\t/**\n\t * This helper is used to help load translations for any slots + text content passed in by the user.\n\t */\n\tcomponentDidLoad() {\n\t\tconst observer = new MutationObserver((mutations) => {\n\t\t\tmutations.forEach((mutation) => {\n\t\t\t\tif (mutation.type === 'attributes') {\n\t\t\t\t\tthis.validateQuote();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tconst options = { attributes: true };\n\t\tobserver.observe(this.host, options);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<blockquote class={this.shortQuote ? `ontario-blockquote ontario-blockquote--short` : `ontario-blockquote`}>\n\t\t\t\t<p>{this.quoteState}</p>\n\t\t\t\t{this.attribution && <cite class=\"ontario-blockquote__attribution\">{this.attribution}</cite>}\n\t\t\t\t{this.byline && <cite class=\"ontario-blockquote__byline\">{this.byline}</cite>}\n\t\t\t</blockquote>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { v as validateValueAgainstArray, a as validatePropExists } from './
|
|
3
|
-
import { C as ConsoleMessageClass } from './
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { v as validateValueAgainstArray, a as validatePropExists } from './validation-functions.js';
|
|
3
|
+
import { C as ConsoleMessageClass } from './console-message.js';
|
|
4
4
|
|
|
5
5
|
const ButtonTypes = ['primary', 'secondary', 'tertiary', 'internalThemeDark'];
|
|
6
6
|
const HtmlTypes = ['button', 'reset', 'submit'];
|
|
@@ -9,7 +9,7 @@ const ontarioButtonCss =
|
|
|
9
9
|
'.ontario-button:focus,.ontario-button:active{box-shadow:0 0 0 4px #009ADB;outline:4px solid transparent;transition:box-shadow 0.1s ease-in-out}.ontario-button{border:none;border-radius:4px;box-sizing:border-box;box-shadow:none;display:inline-block;font-size:1.125rem;font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-weight:600;line-height:1.5555555556;margin:0 1.75rem 1.5rem 0;min-width:10rem;padding:0.625rem 1.5rem;text-align:center;text-decoration:none;cursor:pointer}@media screen and (max-width: 40em){.ontario-button{margin-right:0;display:block;width:100%}}.ontario-button .ontario-icon{margin-right:4px}.ontario-button--primary{background-color:#0066CC;color:#FFFFFF}.ontario-button--primary:hover{background-color:#00478F;color:#FFFFFF}.ontario-button--primary:focus{background-color:#00478F;color:#FFFFFF;transition:background-color 0.2s ease-out, box-shadow 0.1s ease-in-out}.ontario-button--primary:active{background-color:#002142;color:#FFFFFF;transition:background-color 0s, box-shadow 0.1s ease-in-out}.ontario-button--primary:visited{color:#FFFFFF}.ontario-button--secondary{background-color:#FFFFFF;border:2px solid #0066CC;color:#0066CC;padding-top:0.5rem;padding-bottom:0.5rem}.ontario-button--secondary:hover{background-color:#e0f0ff;border-color:#00478F;color:#00478F}.ontario-button--secondary:focus{background-color:#e0f0ff;border-color:#00478F;color:#00478F;transition:background-color 0.2s ease-out, box-shadow 0.1s ease-in-out}.ontario-button--secondary:active{background-color:#c2e0ff;border-color:#002142;color:#002142;transition:background-color 0s, box-shadow 0.1s ease-in-out}.ontario-button--secondary:visited{color:#0066CC}.ontario-button--tertiary{background-color:transparent;color:#0066CC;text-decoration:underline}.ontario-button--tertiary:hover{background-color:#e8e8e8;color:#00478F;text-decoration:underline}.ontario-button--tertiary:focus{background-color:#e8e8e8;color:#00478F;text-decoration:underline;transition:background-color 0.2s ease-out, box-shadow 0.1s ease-in-out}.ontario-button--tertiary:active{background-color:#d1d1d1;color:#002142;text-decoration:underline;transition:background-color 0s, box-shadow 0.1s ease-in-out}.ontario-button--tertiary:visited{color:#0066CC}.ontario-button--internalThemeDark{background-color:#1a1a1a;border:2px solid #FFFFFF;color:#FFFFFF}.ontario-button--internalThemeDark:hover{background-color:#4d4d4d}.ontario-button--internalThemeDark:focus{background-color:#4d4d4d;transition:background-color 0.2s ease-out, box-shadow 0.1s ease-in-out}.ontario-button--internalThemeDark:active{background-color:#4d4d4d;transition:background-color 0s, box-shadow 0.1s ease-in-out}.ontario-button--internalThemeDark:visited{color:#0066CC}';
|
|
10
10
|
|
|
11
11
|
const OntarioButton$1 = /*@__PURE__*/ proxyCustomElement(
|
|
12
|
-
class OntarioButton extends
|
|
12
|
+
class OntarioButton extends HTMLElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super();
|
|
15
15
|
this.__registerHost();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"ontario-button.js","mappings":";;;;AAAO,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,mBAAmB,CAAU;AACtF,MAAM,SAAS,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAU;;ACD/D,MAAM,gBAAgB,GAAG,urFAAurF;;MCcnsFA,eAAa,iBAAAC,kBAAA,CAAA,MAAA,aAAA,SAAAC,CAAA,CAAA;;;;;;;;AAEN,IAAA,SAAS;AAE5B;;;;AAIG;IACK,IAAI,GAAe,WAAW;AAEtC;;;;AAIG;IACK,QAAQ,GAAa,QAAQ;AAErC;;;;;;;AAOG;AACK,IAAA,KAAK;AAEb;;;;;;;AAOG;AACsB,IAAA,aAAa;AAEtC;;AAEG;AACsB,IAAA,SAAS;AAElC;;;AAGG;AACc,IAAA,SAAS;AAE1B;;;AAGG;AACc,IAAA,aAAa;AAEb,IAAA,UAAU;AAE3B;;AAEG;AAEK,IAAA,SAAS;AAEjB;;;;AAIG;IAEK,kBAAkB,GAAA;AACzB,QAAA,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE;AAC3D,Q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I,EAAE,GAAG,IAAI,CAAC,SAAS;gBAC/B,IAAI,EAAE,aAAa,EAAE;AACtB,aAAC,CAAC;;;IAIJ,MAAM,GAAA;QACL,QACC,+DACC,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAuB,CAAC,EACvD,IAAI,EAAE,IAAI,CAAC,aAAa,EACxB,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,gBACV,IAAI,CAAC,aAAa,EAC9B,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,EAAA,EAEf,IAAI,CAAC,UAAU,CACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioButton","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/ontario-button/ontario-button.types.ts","src/components/ontario-button/ontario-button.scss?tag=ontario-button&encapsulation=shadow","src/components/ontario-button/ontario-button.tsx"],"sourcesContent":["export const ButtonTypes = ['primary', 'secondary', 'tertiary', 'internalThemeDark'] as const;\nexport const HtmlTypes = ['button', 'reset', 'submit'] as const;\n\nexport type ButtonType = (typeof ButtonTypes)[number];\nexport type HtmlType = (typeof HtmlTypes)[number];\n","@use 'sass:math';\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-weights.variables' as fontWeights;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/fonts.variables' as fonts;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tplaceholders;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tfocusPlaceholders;\n\n$ontario-button-bg-primary: colours.$ontario-colour-link;\n$ontario-button-bg-primary--hover: colours.$ontario-colour-link--hover;\n$ontario-button-bg-primary--active: colours.$ontario-colour-link--active;\n$ontario-button-bg-secondary: colours.$ontario-colour-white;\n\n.ontario-button {\n\tborder: none;\n\tborder-radius: globalVariables.$global-radius;\n\tbox-sizing: border-box;\n\tbox-shadow: none;\n\tdisplay: inline-block;\n\tfont-size: 1.125rem;\n\tfont-family: fonts.$ontario-font-open-sans;\n\tfont-weight: fontWeights.$ontario-font-weights-semi-bold;\n\tline-height: math.div(14, 9);\n\tmargin: spacing.$spacing-0 (spacing.$spacing-4 + spacing.$spacing-3) spacing.$spacing-5 spacing.$spacing-0;\n\tmin-width: 10rem;\n\tpadding: math.div((spacing.$spacing-4 + spacing.$spacing-1), 2) spacing.$spacing-5;\n\ttext-align: center;\n\ttext-decoration: none;\n\tcursor: pointer;\n\n\t&:focus,\n\t&:active {\n\t\t@extend %ontario-focus;\n\t}\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tmargin-right: 0;\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t}\n\n\t.ontario-icon {\n\t\tmargin-right: 4px;\n\t}\n}\n\n.ontario-button--primary {\n\tbackground-color: $ontario-button-bg-primary;\n\tcolor: colours.$ontario-colour-white;\n\n\t&:hover {\n\t\tbackground-color: $ontario-button-bg-primary--hover;\n\t\tcolor: colours.$ontario-colour-white;\n\t}\n\n\t&:focus {\n\t\tbackground-color: $ontario-button-bg-primary--hover;\n\t\tcolor: colours.$ontario-colour-white;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: $ontario-button-bg-primary--active;\n\t\tcolor: colours.$ontario-colour-white;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-white;\n\t}\n}\n\n.ontario-button--secondary {\n\tbackground-color: $ontario-button-bg-secondary;\n\tborder: globalVariables.$border-size-standard solid colours.$ontario-colour-link;\n\tcolor: colours.$ontario-colour-link;\n\tpadding-top: spacing.$spacing-2;\n\tpadding-bottom: spacing.$spacing-2;\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-colour-button-secondary--hover;\n\t\tborder-color: colours.$ontario-colour-link--hover;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t}\n\n\t&:focus {\n\t\tbackground-color: colours.$ontario-colour-button-secondary--hover;\n\t\tborder-color: colours.$ontario-colour-link--hover;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: colours.$ontario-colour-button-secondary--active;\n\t\tborder-color: colours.$ontario-colour-link--active;\n\t\tcolor: colours.$ontario-colour-link--active;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-link;\n\t}\n}\n\n.ontario-button--tertiary {\n\tbackground-color: transparent;\n\tcolor: colours.$ontario-colour-link;\n\ttext-decoration: underline;\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-colour-button-tertiary--hover;\n\t\tcolor: $ontario-button-bg-primary--hover;\n\t\ttext-decoration: underline;\n\t}\n\n\t&:focus {\n\t\tbackground-color: colours.$ontario-colour-button-tertiary--hover;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t\ttext-decoration: underline;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: colours.$ontario-colour-button-tertiary--active;\n\t\tcolor: colours.$ontario-colour-link--active;\n\t\ttext-decoration: underline;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-link;\n\t}\n}\n\n.ontario-button--internalThemeDark {\n\tbackground-color: colours.$ontario-colour-black;\n\tborder: globalVariables.$border-size-standard solid colours.$ontario-colour-white;\n\tcolor: colours.$ontario-colour-white;\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-greyscale-70;\n\t}\n\n\t&:focus {\n\t\tbackground-color: colours.$ontario-greyscale-70;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: colours.$ontario-greyscale-70;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-link;\n\t}\n}\n","import { Component, Prop, Element, h, Watch, State, AttachInternals } from '@stencil/core';\n\nimport { Button } from './button.interface';\nimport { ButtonType, ButtonTypes, HtmlType, HtmlTypes } from './ontario-button.types';\n\nimport { validatePropExists, validateValueAgainstArray } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\n\n@Component({\n\ttag: 'ontario-button',\n\tstyleUrl: 'ontario-button.scss',\n\tshadow: true,\n\tformAssociated: true,\n})\nexport class OntarioButton implements Button {\n\t@Element() host: HTMLElement;\n\t@AttachInternals() internals: ElementInternals;\n\n\t/**\n\t * The type of button to render.\n\t *\n\t * If no type is passed, it will default to 'secondary'.\n\t */\n\t@Prop() type: ButtonType = 'secondary';\n\n\t/**\n\t * The native HTML button type the button should use.\n\t *\n\t * If no htmlType is passed, it will default to 'button'.\n\t */\n\t@Prop() htmlType: HtmlType = 'button';\n\n\t/**\n\t * Text to be displayed within the button. This will override the text provided through the host element textContent.\n\t *\n\t * @example\n\t * <ontario-button label=\"Label Text\">Text</ontario-button>\n\t *\n\t * The resulting button will have the label `\"Label Text\"`.\n\t */\n\t@Prop() label?: string;\n\n\t/**\n\t * Provides more context as to what the button interaction is doing. This should only be used for accessibility purposes, if the button interaction requires more description than what the text provides.\n\t *\n\t * This is optional.\n\t *\n\t * @example\n\t * <ontario-button aria-label-text=\"Click button to open map\">Open</ontario button>\n\t */\n\t@Prop({ mutable: true }) ariaLabelText?: string;\n\n\t/**\n\t * The unique identifier of the button. This is optional - if no ID is passed, one will be generated.\n\t */\n\t@Prop({ mutable: true }) elementId?: string;\n\n\t/**\n\t * Mutable variable, for internal use only.\n\t * Set the button's type depending on validation result.\n\t */\n\t@State() private typeState: string;\n\n\t/**\n\t * Mutable variable, for internal use only.\n\t * Set the native HTML button type depending on validation result.\n\t */\n\t@State() private htmlTypeState: string;\n\n\t@State() private labelState: string;\n\n\t/**\n\t * A reference to the internal button element.\n\t */\n\n\tprivate buttonRef: HTMLButtonElement;\n\n\t/*\n\t * Watch for changes to the `label` property for validation purposes.\n\t *\n\t * If no `label` prop is provided, the `label` prop will be set to the host element textContent (if it exists).\n\t */\n\t@Watch('label')\n\tprivate updateLabelContent() {\n\t\tthis.labelState = this.label ?? this.host.textContent ?? '';\n\t\tthis.validateLabelContent(this.labelState);\n\t}\n\n\t/**\n\t * Watch for changes to the `type` property for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `type` will be set to its default (`secondary`).\n\t * If a match is found in one of the array values then `type` will be set to the matching array key value.\n\t */\n\t@Watch('type')\n\tvalidateType() {\n\t\tconst isValid = validateValueAgainstArray(this.type, ButtonTypes);\n\t\tthis.typeState = isValid ? this.type : this.warnDefaultType();\n\t}\n\n\t/**\n\t * Watch for changes to the `htmlType` property for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `htmlType` will be set to its default (`submit`).\n\t * If a match is found in one of the array values then `htmlType` will be set to the matching array key value.\n\t */\n\t@Watch('htmlType')\n\tvalidateHtmlType() {\n\t\tconst isValid = validateValueAgainstArray(this.htmlType, HtmlTypes);\n\t\tthis.htmlTypeState = isValid ? this.htmlType : this.warnDefaultHtmlType();\n\t}\n\n\t/**\n\t * Print the missing `label` prop warning message\n\t */\n\tvalidateLabelContent(newValue: string) {\n\t\tif (validatePropExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' label ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-button> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Print the invalid `type` prop warning message\n\t * @returns default type (secondary)\n\t */\n\tprivate warnDefaultType(): ButtonType {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' type ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-button> ')\n\t\t\t.addRegularText('was set to an invalid type; only')\n\t\t\t.addMonospaceText(' primary, secondary, or tertiary ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' secondary ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn 'secondary';\n\t}\n\n\t/**\n\t * Print the invalid `htmlType` warning message\n\t * @returns default htmlType (button)\n\t */\n\tprivate warnDefaultHtmlType(): HtmlType {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' htmlType ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-button> ')\n\t\t\t.addRegularText('was set to an invalid htmlType; only')\n\t\t\t.addMonospaceText(' button, reset, or submit ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' button ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn 'button';\n\t}\n\n\t/**\n\t * @returns the classes of the button based of the button's `type`.\n\t */\n\tprivate getClass() {\n\t\treturn `ontario-button ontario-button--${this.typeState}`;\n\t}\n\n\tpublic getId(): string {\n\t\treturn this.elementId ?? '';\n\t}\n\n\t/**\n\t * Set `buttonId`, `label`, and `ariaLabel` using internal component logic.\n\t */\n\tcomponentWillLoad() {\n\t\tthis.updateLabelContent();\n\t\tthis.validateHtmlType();\n\t\tthis.validateType();\n\t\tthis.ariaLabelText = this.ariaLabelText ?? this.labelState;\n\t}\n\n\tcomponentDidLoad() {\n\t\t// Used to help load translations for any slots + text content passed in by the user.\n\t\tconst observer = new MutationObserver((mutations) => {\n\t\t\tmutations.forEach((mutation) => {\n\t\t\t\tif (mutation.type === 'attributes') {\n\t\t\t\t\tthis.updateLabelContent();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tconst options = { attributes: true };\n\t\tobserver.observe(this.host, options);\n\n\t\t// Add a click event listener to handle submitting a form\n\t\tif (this.htmlTypeState === 'submit') {\n\t\t\tthis.buttonRef.addEventListener('click', () => {\n\t\t\t\tconst { form } = this.internals;\n\t\t\t\tform?.requestSubmit();\n\t\t\t});\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<button\n\t\t\t\tref={(el) => (this.buttonRef = el as HTMLButtonElement)}\n\t\t\t\ttype={this.htmlTypeState}\n\t\t\t\tclass={this.getClass()}\n\t\t\t\taria-label={this.ariaLabelText}\n\t\t\t\tid={this.getId()}\n\t\t\t>\n\t\t\t\t{this.labelState}\n\t\t\t</button>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
1
|
+
{"file":"ontario-button.js","mappings":";;;;AAAO,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,mBAAmB,CAAU;AACtF,MAAM,SAAS,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAU;;ACD/D,MAAM,gBAAgB,GAAG,urFAAurF;;MCcnsFA,eAAa,iBAAAC,kBAAA,CAAA,MAAA,aAAA,SAAA,W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,CAAC,CAAC,SAAS,KAAI;AACnD,YAAA,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,KAAI;AAC9B,gBAAA,IAAI,QAAQ,CAAC,IAAI,KAAK,YAAY,EAAE;oBACnC,IAAI,CAAC,kBAAkB,EAAE;;AAE3B,aAAC,CAAC;AACH,SAAC,CAAC;AAEF,QAAA,MAAM,OAAO,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE;QACpC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC;;AAGpC,QAAA,IAAI,IAAI,CAAC,aAAa,KAAK,QAAQ,EAAE;YACpC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAK;AAC7C,gBAAA,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS;gBAC/B,IAAI,EAAE,aAAa,EAAE;AACtB,aAAC,CAAC;;;IAIJ,MAAM,GAAA;QACL,QACC,+DACC,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAuB,CAAC,EACvD,IAAI,EAAE,IAAI,CAAC,aAAa,EACxB,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,gBACV,IAAI,CAAC,aAAa,EAC9B,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,EAAA,EAEf,IAAI,CAAC,UAAU,CACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioButton","__stencil_proxyCustomElement"],"sources":["src/components/ontario-button/ontario-button.types.ts","src/components/ontario-button/ontario-button.scss?tag=ontario-button&encapsulation=shadow","src/components/ontario-button/ontario-button.tsx"],"sourcesContent":["export const ButtonTypes = ['primary', 'secondary', 'tertiary', 'internalThemeDark'] as const;\nexport const HtmlTypes = ['button', 'reset', 'submit'] as const;\n\nexport type ButtonType = (typeof ButtonTypes)[number];\nexport type HtmlType = (typeof HtmlTypes)[number];\n","@use 'sass:math';\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-weights.variables' as fontWeights;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/fonts.variables' as fonts;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tplaceholders;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as\n\tfocusPlaceholders;\n\n$ontario-button-bg-primary: colours.$ontario-colour-link;\n$ontario-button-bg-primary--hover: colours.$ontario-colour-link--hover;\n$ontario-button-bg-primary--active: colours.$ontario-colour-link--active;\n$ontario-button-bg-secondary: colours.$ontario-colour-white;\n\n.ontario-button {\n\tborder: none;\n\tborder-radius: globalVariables.$global-radius;\n\tbox-sizing: border-box;\n\tbox-shadow: none;\n\tdisplay: inline-block;\n\tfont-size: 1.125rem;\n\tfont-family: fonts.$ontario-font-open-sans;\n\tfont-weight: fontWeights.$ontario-font-weights-semi-bold;\n\tline-height: math.div(14, 9);\n\tmargin: spacing.$spacing-0 (spacing.$spacing-4 + spacing.$spacing-3) spacing.$spacing-5 spacing.$spacing-0;\n\tmin-width: 10rem;\n\tpadding: math.div((spacing.$spacing-4 + spacing.$spacing-1), 2) spacing.$spacing-5;\n\ttext-align: center;\n\ttext-decoration: none;\n\tcursor: pointer;\n\n\t&:focus,\n\t&:active {\n\t\t@extend %ontario-focus;\n\t}\n\n\t@media screen and (max-width: breakpoints.$small-breakpoint) {\n\t\tmargin-right: 0;\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t}\n\n\t.ontario-icon {\n\t\tmargin-right: 4px;\n\t}\n}\n\n.ontario-button--primary {\n\tbackground-color: $ontario-button-bg-primary;\n\tcolor: colours.$ontario-colour-white;\n\n\t&:hover {\n\t\tbackground-color: $ontario-button-bg-primary--hover;\n\t\tcolor: colours.$ontario-colour-white;\n\t}\n\n\t&:focus {\n\t\tbackground-color: $ontario-button-bg-primary--hover;\n\t\tcolor: colours.$ontario-colour-white;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: $ontario-button-bg-primary--active;\n\t\tcolor: colours.$ontario-colour-white;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-white;\n\t}\n}\n\n.ontario-button--secondary {\n\tbackground-color: $ontario-button-bg-secondary;\n\tborder: globalVariables.$border-size-standard solid colours.$ontario-colour-link;\n\tcolor: colours.$ontario-colour-link;\n\tpadding-top: spacing.$spacing-2;\n\tpadding-bottom: spacing.$spacing-2;\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-colour-button-secondary--hover;\n\t\tborder-color: colours.$ontario-colour-link--hover;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t}\n\n\t&:focus {\n\t\tbackground-color: colours.$ontario-colour-button-secondary--hover;\n\t\tborder-color: colours.$ontario-colour-link--hover;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: colours.$ontario-colour-button-secondary--active;\n\t\tborder-color: colours.$ontario-colour-link--active;\n\t\tcolor: colours.$ontario-colour-link--active;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-link;\n\t}\n}\n\n.ontario-button--tertiary {\n\tbackground-color: transparent;\n\tcolor: colours.$ontario-colour-link;\n\ttext-decoration: underline;\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-colour-button-tertiary--hover;\n\t\tcolor: $ontario-button-bg-primary--hover;\n\t\ttext-decoration: underline;\n\t}\n\n\t&:focus {\n\t\tbackground-color: colours.$ontario-colour-button-tertiary--hover;\n\t\tcolor: colours.$ontario-colour-link--hover;\n\t\ttext-decoration: underline;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: colours.$ontario-colour-button-tertiary--active;\n\t\tcolor: colours.$ontario-colour-link--active;\n\t\ttext-decoration: underline;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-link;\n\t}\n}\n\n.ontario-button--internalThemeDark {\n\tbackground-color: colours.$ontario-colour-black;\n\tborder: globalVariables.$border-size-standard solid colours.$ontario-colour-white;\n\tcolor: colours.$ontario-colour-white;\n\n\t&:hover {\n\t\tbackground-color: colours.$ontario-greyscale-70;\n\t}\n\n\t&:focus {\n\t\tbackground-color: colours.$ontario-greyscale-70;\n\t\ttransition:\n\t\t\tbackground-color 0.2s ease-out,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:active {\n\t\tbackground-color: colours.$ontario-greyscale-70;\n\t\ttransition:\n\t\t\tbackground-color 0s,\n\t\t\tfocusPlaceholders.$ontario-focus-transition;\n\t}\n\n\t&:visited {\n\t\tcolor: colours.$ontario-colour-link;\n\t}\n}\n","import { Component, Prop, Element, h, Watch, State, AttachInternals } from '@stencil/core';\n\nimport { Button } from './button.interface';\nimport { ButtonType, ButtonTypes, HtmlType, HtmlTypes } from './ontario-button.types';\n\nimport { validatePropExists, validateValueAgainstArray } from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\n\n@Component({\n\ttag: 'ontario-button',\n\tstyleUrl: 'ontario-button.scss',\n\tshadow: true,\n\tformAssociated: true,\n})\nexport class OntarioButton implements Button {\n\t@Element() host: HTMLElement;\n\t@AttachInternals() internals: ElementInternals;\n\n\t/**\n\t * The type of button to render.\n\t *\n\t * If no type is passed, it will default to 'secondary'.\n\t */\n\t@Prop() type: ButtonType = 'secondary';\n\n\t/**\n\t * The native HTML button type the button should use.\n\t *\n\t * If no htmlType is passed, it will default to 'button'.\n\t */\n\t@Prop() htmlType: HtmlType = 'button';\n\n\t/**\n\t * Text to be displayed within the button. This will override the text provided through the host element textContent.\n\t *\n\t * @example\n\t * <ontario-button label=\"Label Text\">Text</ontario-button>\n\t *\n\t * The resulting button will have the label `\"Label Text\"`.\n\t */\n\t@Prop() label?: string;\n\n\t/**\n\t * Provides more context as to what the button interaction is doing. This should only be used for accessibility purposes, if the button interaction requires more description than what the text provides.\n\t *\n\t * This is optional.\n\t *\n\t * @example\n\t * <ontario-button aria-label-text=\"Click button to open map\">Open</ontario button>\n\t */\n\t@Prop({ mutable: true }) ariaLabelText?: string;\n\n\t/**\n\t * The unique identifier of the button. This is optional - if no ID is passed, one will be generated.\n\t */\n\t@Prop({ mutable: true }) elementId?: string;\n\n\t/**\n\t * Mutable variable, for internal use only.\n\t * Set the button's type depending on validation result.\n\t */\n\t@State() private typeState: string;\n\n\t/**\n\t * Mutable variable, for internal use only.\n\t * Set the native HTML button type depending on validation result.\n\t */\n\t@State() private htmlTypeState: string;\n\n\t@State() private labelState: string;\n\n\t/**\n\t * A reference to the internal button element.\n\t */\n\n\tprivate buttonRef: HTMLButtonElement;\n\n\t/*\n\t * Watch for changes to the `label` property for validation purposes.\n\t *\n\t * If no `label` prop is provided, the `label` prop will be set to the host element textContent (if it exists).\n\t */\n\t@Watch('label')\n\tprivate updateLabelContent() {\n\t\tthis.labelState = this.label ?? this.host.textContent ?? '';\n\t\tthis.validateLabelContent(this.labelState);\n\t}\n\n\t/**\n\t * Watch for changes to the `type` property for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `type` will be set to its default (`secondary`).\n\t * If a match is found in one of the array values then `type` will be set to the matching array key value.\n\t */\n\t@Watch('type')\n\tvalidateType() {\n\t\tconst isValid = validateValueAgainstArray(this.type, ButtonTypes);\n\t\tthis.typeState = isValid ? this.type : this.warnDefaultType();\n\t}\n\n\t/**\n\t * Watch for changes to the `htmlType` property for validation purposes.\n\t *\n\t * If the user input doesn't match one of the array values then `htmlType` will be set to its default (`submit`).\n\t * If a match is found in one of the array values then `htmlType` will be set to the matching array key value.\n\t */\n\t@Watch('htmlType')\n\tvalidateHtmlType() {\n\t\tconst isValid = validateValueAgainstArray(this.htmlType, HtmlTypes);\n\t\tthis.htmlTypeState = isValid ? this.htmlType : this.warnDefaultHtmlType();\n\t}\n\n\t/**\n\t * Print the missing `label` prop warning message\n\t */\n\tvalidateLabelContent(newValue: string) {\n\t\tif (validatePropExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' label ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-button> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Print the invalid `type` prop warning message\n\t * @returns default type (secondary)\n\t */\n\tprivate warnDefaultType(): ButtonType {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' type ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-button> ')\n\t\t\t.addRegularText('was set to an invalid type; only')\n\t\t\t.addMonospaceText(' primary, secondary, or tertiary ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' secondary ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn 'secondary';\n\t}\n\n\t/**\n\t * Print the invalid `htmlType` warning message\n\t * @returns default htmlType (button)\n\t */\n\tprivate warnDefaultHtmlType(): HtmlType {\n\t\tconst message = new ConsoleMessageClass();\n\t\tmessage\n\t\t\t.addDesignSystemTag()\n\t\t\t.addMonospaceText(' htmlType ')\n\t\t\t.addRegularText('on')\n\t\t\t.addMonospaceText(' <ontario-button> ')\n\t\t\t.addRegularText('was set to an invalid htmlType; only')\n\t\t\t.addMonospaceText(' button, reset, or submit ')\n\t\t\t.addRegularText('are supported. The default type')\n\t\t\t.addMonospaceText(' button ')\n\t\t\t.addRegularText('is assumed.')\n\t\t\t.printMessage();\n\t\treturn 'button';\n\t}\n\n\t/**\n\t * @returns the classes of the button based of the button's `type`.\n\t */\n\tprivate getClass() {\n\t\treturn `ontario-button ontario-button--${this.typeState}`;\n\t}\n\n\tpublic getId(): string {\n\t\treturn this.elementId ?? '';\n\t}\n\n\t/**\n\t * Set `buttonId`, `label`, and `ariaLabel` using internal component logic.\n\t */\n\tcomponentWillLoad() {\n\t\tthis.updateLabelContent();\n\t\tthis.validateHtmlType();\n\t\tthis.validateType();\n\t\tthis.ariaLabelText = this.ariaLabelText ?? this.labelState;\n\t}\n\n\tcomponentDidLoad() {\n\t\t// Used to help load translations for any slots + text content passed in by the user.\n\t\tconst observer = new MutationObserver((mutations) => {\n\t\t\tmutations.forEach((mutation) => {\n\t\t\t\tif (mutation.type === 'attributes') {\n\t\t\t\t\tthis.updateLabelContent();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tconst options = { attributes: true };\n\t\tobserver.observe(this.host, options);\n\n\t\t// Add a click event listener to handle submitting a form\n\t\tif (this.htmlTypeState === 'submit') {\n\t\t\tthis.buttonRef.addEventListener('click', () => {\n\t\t\t\tconst { form } = this.internals;\n\t\t\t\tform?.requestSubmit();\n\t\t\t});\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<button\n\t\t\t\tref={(el) => (this.buttonRef = el as HTMLButtonElement)}\n\t\t\t\ttype={this.htmlTypeState}\n\t\t\t\tclass={this.getClass()}\n\t\t\t\taria-label={this.ariaLabelText}\n\t\t\t\tid={this.getId()}\n\t\t\t>\n\t\t\t\t{this.labelState}\n\t\t\t</button>\n\t\t);\n\t}\n}\n"],"version":3}
|