@ongov/ontario-design-system-component-library 4.3.0-alpha.1 → 4.3.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-88d5cf20.js +873 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{ontario-accordion_42.cjs.entry.js → ontario-accordion_43.cjs.entry.js} +347 -213
- package/dist/cjs/ontario-accordion_43.cjs.entry.js.map +1 -0
- package/dist/cjs/ontario-design-system-components.cjs.js +1 -1
- package/dist/cjs/ontario-icon-account.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-add-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-add.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-arrow-up.cjs.entry.js +4 -4
- package/dist/cjs/ontario-icon-attach.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-bookmark-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-bookmark-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-calendar.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-chevron-right.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-clock.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-close-header.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-close.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-cloud.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-collapse.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-credit-card.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-critical-alert-warning.cjs.entry.js +5 -5
- package/dist/cjs/ontario-icon-delete.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-document.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-download.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-dropdown-arrow.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-edit.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-expand.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-export.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-facebook-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-facebook.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-favourite-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-favourite-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-filter.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-flickr.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-grid.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-instagram.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-interac-en-alt.cjs.entry.js +19 -19
- package/dist/cjs/ontario-icon-interac-en.cjs.entry.js +18 -18
- package/dist/cjs/ontario-icon-interac-fr-alt.cjs.entry.js +19 -19
- package/dist/cjs/ontario-icon-interac-fr.cjs.entry.js +12 -12
- package/dist/cjs/ontario-icon-linkedin-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-linkedin.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-list.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-live-chat.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-location-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-location-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-lock-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-lock-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-map.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-mastercard-alt.cjs.entry.js +6 -6
- package/dist/cjs/ontario-icon-media-fast-forward.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-media-fast-rewind.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-media-pause.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-media-play.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-media-stop.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-menu-header.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-menu.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-microphone-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-microphone-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-more-vertical.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-new-window.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-next.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-password-hide.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-password-show.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-phone.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-photo.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-pin-location-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-pin-location-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-previous.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-remove-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-remove.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-replay.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-rss-feed.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-save.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-search-white.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-search.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sentiment-1.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sentiment-2.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sentiment-3.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sentiment-4.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-settings.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-share.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sort.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-tag.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-timer.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-transport-bicycle.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-transport-car.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-transport-walk.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-tty.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-twitter-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-twitter.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-upload.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-video.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-visa.cjs.entry.js +5 -5
- package/dist/cjs/ontario-icon-vote-dislike.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-vote-like.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-vpn-key.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-wheelchair.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-wifi.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-youtube.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ontario-badge/ontario-badge.css +104 -0
- package/dist/collection/components/ontario-badge/ontario-badge.js +192 -0
- package/dist/collection/components/ontario-badge/ontario-badge.js.map +1 -0
- package/dist/collection/components/ontario-badge/ontario-badge.types.js +13 -0
- package/dist/collection/components/ontario-badge/ontario-badge.types.js.map +1 -0
- package/dist/collection/components/ontario-badge/test/ontario-badge.e2e.js +80 -0
- package/dist/collection/components/ontario-badge/test/ontario-badge.e2e.js.map +1 -0
- package/dist/collection/components/ontario-badge/test/ontario-badge.spec.js +33 -0
- package/dist/collection/components/ontario-badge/test/ontario-badge.spec.js.map +1 -0
- package/dist/collection/components/ontario-blockquote/ontario-blockquote.js +2 -2
- package/dist/collection/components/ontario-button/ontario-button.js +7 -16
- package/dist/collection/components/ontario-button/ontario-button.js.map +1 -1
- package/dist/collection/components/ontario-card/ontario-card.js +4 -4
- package/dist/collection/components/ontario-card-collection/ontario-card-collection.css +15 -0
- package/dist/collection/components/ontario-card-collection/ontario-card-collection.js +2 -2
- package/dist/collection/components/ontario-checkbox/ontario-checkboxes.css +8 -7
- package/dist/collection/components/ontario-checkbox/ontario-checkboxes.js +4 -4
- package/dist/collection/components/ontario-critical-alert/ontario-critical-alert.js +6 -6
- package/dist/collection/components/ontario-date-input/ontario-date-input.css +9 -7
- package/dist/collection/components/ontario-date-input/ontario-date-input.js +4 -4
- package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.css +9 -7
- package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.js +3 -3
- package/dist/collection/components/ontario-fieldset/ontario-fieldset.css +1 -0
- package/dist/collection/components/ontario-fieldset/ontario-fieldset.js +4 -4
- package/dist/collection/components/ontario-header/ontario-application-header.css +7 -7
- package/dist/collection/components/ontario-header/ontario-header.css +7 -7
- package/dist/collection/components/ontario-header/ontario-header.js +18 -6
- package/dist/collection/components/ontario-header/ontario-header.js.map +1 -1
- package/dist/collection/components/ontario-header/service-ontario-header.css +7 -7
- package/dist/collection/components/ontario-header/test/ontario-header.spec.js +12 -0
- package/dist/collection/components/ontario-header/test/ontario-header.spec.js.map +1 -1
- package/dist/collection/components/ontario-hint-expander/ontario-hint-expander.js +7 -7
- package/dist/collection/components/ontario-icon/ontario-icon-accessibility.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-account.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-add-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-add.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-alert-error.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-alert-information.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-alert-success.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-alert-warning.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-arrow-up.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-attach.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-bookmark-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-bookmark-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-calendar.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-camera.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-chevron-down.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-chevron-left.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-chevron-right.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-chevron-up.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-clock.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-close-header.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-close.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-cloud.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-collapse.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-credit-card.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-critical-alert-warning.js +5 -5
- package/dist/collection/components/ontario-icon/ontario-icon-delete.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-document.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-download.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-dropdown-arrow.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-edit.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-email.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-expand.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-export.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-facebook-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-facebook.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-favourite-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-favourite-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-filter.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-flickr.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-grid.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-help.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-instagram.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-interac-en-alt.js +19 -19
- package/dist/collection/components/ontario-icon/ontario-icon-interac-en.js +18 -18
- package/dist/collection/components/ontario-icon/ontario-icon-interac-fr-alt.js +19 -19
- package/dist/collection/components/ontario-icon/ontario-icon-interac-fr.js +12 -12
- package/dist/collection/components/ontario-icon/ontario-icon-linkedin-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-linkedin.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-list.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-live-chat.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-location-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-location-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-lock-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-lock-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-map.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-mastercard-alt.js +6 -6
- package/dist/collection/components/ontario-icon/ontario-icon-mastercard.js +9 -9
- package/dist/collection/components/ontario-icon/ontario-icon-media-fast-forward.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-media-fast-rewind.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-media-pause.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-media-play.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-media-stop.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-menu-header.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-menu.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-microphone-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-microphone-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-more-vertical.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-new-window.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-next.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-notification.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-password-hide.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-password-show.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-phone.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-photo.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-pin-location-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-pin-location-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-previous.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-print.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-remove-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-remove.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-replay.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-rss-feed.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-save.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-search-white.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-search.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-1.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-2.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-3.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-4.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-5.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-settings.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-share.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sort.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-tag.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-text-message.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-timer.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-transport-bicycle.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-transport-bus.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-transport-car.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-transport-walk.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-tty.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-twitter-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-twitter.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-upload.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-video.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-visa.js +5 -5
- package/dist/collection/components/ontario-icon/ontario-icon-vote-dislike.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-vote-like.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-vpn-key.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-wheelchair.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-wifi.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-youtube.js +3 -3
- package/dist/collection/components/ontario-input/ontario-input.css +9 -7
- package/dist/collection/components/ontario-input/ontario-input.js +3 -3
- package/dist/collection/components/ontario-language-toggle/ontario-language-toggle.css +7 -7
- package/dist/collection/components/ontario-language-toggle/ontario-language-toggle.js +1 -1
- package/dist/collection/components/ontario-page-alert/ontario-page-alert.js +5 -5
- package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.css +8 -7
- package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.js +4 -4
- package/dist/collection/components/ontario-step-indicator/ontario-step-indicator.js +5 -5
- package/dist/collection/components/ontario-table/ontario-table.js +5 -5
- package/dist/collection/components/ontario-textarea/ontario-textarea.css +9 -7
- package/dist/collection/components/ontario-textarea/ontario-textarea.js +3 -3
- package/dist/collection/fonts/open-sans-700--italic/open-sans-700--italic.ttf +0 -0
- package/dist/collection/utils/helper/utils.js +19 -3
- package/dist/collection/utils/helper/utils.js.map +1 -1
- package/dist/components/ontario-badge.d.ts +11 -0
- package/dist/components/ontario-badge.js +160 -0
- package/dist/components/ontario-badge.js.map +1 -0
- package/dist/components/ontario-blockquote.js +2 -2
- package/dist/components/ontario-button.js +7 -16
- package/dist/components/ontario-button.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 +4 -4
- package/dist/components/ontario-checkboxes.js +5 -5
- package/dist/components/ontario-checkboxes.js.map +1 -1
- package/dist/components/ontario-critical-alert.js +6 -6
- package/dist/components/ontario-date-input.js +5 -5
- package/dist/components/ontario-date-input.js.map +1 -1
- package/dist/components/ontario-dropdown-list.js +4 -4
- package/dist/components/ontario-dropdown-list.js.map +1 -1
- package/dist/components/ontario-fieldset.js +5 -5
- package/dist/components/ontario-fieldset.js.map +1 -1
- package/dist/components/ontario-header.js +21 -9
- package/dist/components/ontario-header.js.map +1 -1
- package/dist/components/ontario-hint-expander2.js +7 -7
- package/dist/components/ontario-icon-accessibility.js +3 -3
- package/dist/components/ontario-icon-account.js +3 -3
- package/dist/components/ontario-icon-add-alt.js +3 -3
- package/dist/components/ontario-icon-add.js +3 -3
- package/dist/components/ontario-icon-alert-error2.js +4 -4
- package/dist/components/ontario-icon-alert-information2.js +4 -4
- package/dist/components/ontario-icon-alert-success2.js +4 -4
- package/dist/components/ontario-icon-alert-warning2.js +4 -4
- package/dist/components/ontario-icon-arrow-up.js +4 -4
- package/dist/components/ontario-icon-attach.js +3 -3
- package/dist/components/ontario-icon-bookmark-off.js +3 -3
- package/dist/components/ontario-icon-bookmark-on.js +3 -3
- package/dist/components/ontario-icon-calendar.js +3 -3
- package/dist/components/ontario-icon-camera.js +3 -3
- package/dist/components/ontario-icon-chevron-down2.js +3 -3
- package/dist/components/ontario-icon-chevron-left2.js +3 -3
- package/dist/components/ontario-icon-chevron-right.js +3 -3
- package/dist/components/ontario-icon-chevron-up2.js +3 -3
- package/dist/components/ontario-icon-clock.js +3 -3
- package/dist/components/ontario-icon-close-header.js +3 -3
- package/dist/components/ontario-icon-close.js +3 -3
- package/dist/components/ontario-icon-cloud.js +3 -3
- package/dist/components/ontario-icon-collapse.js +3 -3
- package/dist/components/ontario-icon-credit-card.js +3 -3
- package/dist/components/ontario-icon-critical-alert-warning.js +5 -5
- package/dist/components/ontario-icon-delete.js +3 -3
- package/dist/components/ontario-icon-document.js +3 -3
- package/dist/components/ontario-icon-download.js +3 -3
- package/dist/components/ontario-icon-dropdown-arrow.js +3 -3
- package/dist/components/ontario-icon-edit.js +3 -3
- package/dist/components/ontario-icon-email.js +3 -3
- package/dist/components/ontario-icon-expand.js +3 -3
- package/dist/components/ontario-icon-export.js +3 -3
- package/dist/components/ontario-icon-facebook-alt.js +3 -3
- package/dist/components/ontario-icon-facebook.js +3 -3
- package/dist/components/ontario-icon-favourite-off.js +3 -3
- package/dist/components/ontario-icon-favourite-on.js +3 -3
- package/dist/components/ontario-icon-filter.js +3 -3
- package/dist/components/ontario-icon-flickr.js +3 -3
- package/dist/components/ontario-icon-grid.js +3 -3
- package/dist/components/ontario-icon-help.js +3 -3
- package/dist/components/ontario-icon-instagram.js +3 -3
- package/dist/components/ontario-icon-interac-en-alt.js +19 -19
- package/dist/components/ontario-icon-interac-en.js +18 -18
- package/dist/components/ontario-icon-interac-fr-alt.js +19 -19
- package/dist/components/ontario-icon-interac-fr.js +12 -12
- package/dist/components/ontario-icon-linkedin-alt.js +3 -3
- package/dist/components/ontario-icon-linkedin.js +3 -3
- package/dist/components/ontario-icon-list.js +3 -3
- package/dist/components/ontario-icon-live-chat.js +3 -3
- package/dist/components/ontario-icon-location-off.js +3 -3
- package/dist/components/ontario-icon-location-on.js +3 -3
- package/dist/components/ontario-icon-lock-off.js +3 -3
- package/dist/components/ontario-icon-lock-on.js +3 -3
- package/dist/components/ontario-icon-map.js +3 -3
- package/dist/components/ontario-icon-mastercard-alt.js +6 -6
- package/dist/components/ontario-icon-mastercard.js +9 -9
- package/dist/components/ontario-icon-media-fast-forward.js +3 -3
- package/dist/components/ontario-icon-media-fast-rewind.js +3 -3
- package/dist/components/ontario-icon-media-pause.js +3 -3
- package/dist/components/ontario-icon-media-play.js +3 -3
- package/dist/components/ontario-icon-media-stop.js +3 -3
- package/dist/components/ontario-icon-menu-header.js +3 -3
- package/dist/components/ontario-icon-menu.js +3 -3
- package/dist/components/ontario-icon-microphone-off.js +3 -3
- package/dist/components/ontario-icon-microphone-on.js +3 -3
- package/dist/components/ontario-icon-more-vertical.js +3 -3
- package/dist/components/ontario-icon-new-window.js +3 -3
- package/dist/components/ontario-icon-next.js +3 -3
- package/dist/components/ontario-icon-notification.js +3 -3
- package/dist/components/ontario-icon-password-hide.js +3 -3
- package/dist/components/ontario-icon-password-show.js +3 -3
- package/dist/components/ontario-icon-phone.js +3 -3
- package/dist/components/ontario-icon-photo.js +3 -3
- package/dist/components/ontario-icon-pin-location-off.js +3 -3
- package/dist/components/ontario-icon-pin-location-on.js +3 -3
- package/dist/components/ontario-icon-previous.js +3 -3
- package/dist/components/ontario-icon-print.js +3 -3
- package/dist/components/ontario-icon-remove-alt.js +3 -3
- package/dist/components/ontario-icon-remove.js +3 -3
- package/dist/components/ontario-icon-replay.js +3 -3
- package/dist/components/ontario-icon-rss-feed.js +3 -3
- package/dist/components/ontario-icon-save.js +3 -3
- package/dist/components/ontario-icon-search-white.js +3 -3
- package/dist/components/ontario-icon-search.js +3 -3
- package/dist/components/ontario-icon-sentiment-1.js +3 -3
- package/dist/components/ontario-icon-sentiment-2.js +3 -3
- package/dist/components/ontario-icon-sentiment-3.js +3 -3
- package/dist/components/ontario-icon-sentiment-4.js +3 -3
- package/dist/components/ontario-icon-sentiment-5.js +3 -3
- package/dist/components/ontario-icon-settings.js +3 -3
- package/dist/components/ontario-icon-share.js +3 -3
- package/dist/components/ontario-icon-sort.js +3 -3
- package/dist/components/ontario-icon-tag.js +3 -3
- package/dist/components/ontario-icon-text-message.js +3 -3
- package/dist/components/ontario-icon-timer.js +3 -3
- package/dist/components/ontario-icon-transport-bicycle.js +3 -3
- package/dist/components/ontario-icon-transport-bus.js +3 -3
- package/dist/components/ontario-icon-transport-car.js +3 -3
- package/dist/components/ontario-icon-transport-walk.js +3 -3
- package/dist/components/ontario-icon-tty.js +3 -3
- package/dist/components/ontario-icon-twitter-alt.js +3 -3
- package/dist/components/ontario-icon-twitter.js +3 -3
- package/dist/components/ontario-icon-upload.js +3 -3
- package/dist/components/ontario-icon-video.js +3 -3
- package/dist/components/ontario-icon-visa.js +5 -5
- package/dist/components/ontario-icon-vote-dislike.js +3 -3
- package/dist/components/ontario-icon-vote-like.js +3 -3
- package/dist/components/ontario-icon-vpn-key.js +3 -3
- package/dist/components/ontario-icon-wheelchair.js +3 -3
- package/dist/components/ontario-icon-wifi.js +3 -3
- package/dist/components/ontario-icon-youtube.js +3 -3
- package/dist/components/ontario-input.js +4 -4
- package/dist/components/ontario-input.js.map +1 -1
- package/dist/components/ontario-language-toggle2.js +2 -2
- package/dist/components/ontario-language-toggle2.js.map +1 -1
- package/dist/components/ontario-page-alert.js +5 -5
- package/dist/components/ontario-radio-buttons.js +5 -5
- package/dist/components/ontario-radio-buttons.js.map +1 -1
- package/dist/components/ontario-step-indicator.js +5 -5
- package/dist/components/ontario-table.js +6 -6
- package/dist/components/ontario-textarea.js +4 -4
- package/dist/components/ontario-textarea.js.map +1 -1
- package/dist/components/utils.js +21 -4
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/index-603026f7.js +489 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{ontario-accordion_42.entry.js → ontario-accordion_43.entry.js} +347 -213
- package/dist/esm/ontario-accordion_43.entry.js.map +1 -0
- package/dist/esm/ontario-design-system-components.js +1 -1
- package/dist/esm/ontario-icon-account.entry.js +3 -3
- package/dist/esm/ontario-icon-add-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-add.entry.js +3 -3
- package/dist/esm/ontario-icon-arrow-up.entry.js +4 -4
- package/dist/esm/ontario-icon-attach.entry.js +3 -3
- package/dist/esm/ontario-icon-bookmark-off.entry.js +3 -3
- package/dist/esm/ontario-icon-bookmark-on.entry.js +3 -3
- package/dist/esm/ontario-icon-calendar.entry.js +3 -3
- package/dist/esm/ontario-icon-chevron-right.entry.js +3 -3
- package/dist/esm/ontario-icon-clock.entry.js +3 -3
- package/dist/esm/ontario-icon-close-header.entry.js +3 -3
- package/dist/esm/ontario-icon-close.entry.js +3 -3
- package/dist/esm/ontario-icon-cloud.entry.js +3 -3
- package/dist/esm/ontario-icon-collapse.entry.js +3 -3
- package/dist/esm/ontario-icon-credit-card.entry.js +3 -3
- package/dist/esm/ontario-icon-critical-alert-warning.entry.js +5 -5
- package/dist/esm/ontario-icon-delete.entry.js +3 -3
- package/dist/esm/ontario-icon-document.entry.js +3 -3
- package/dist/esm/ontario-icon-download.entry.js +3 -3
- package/dist/esm/ontario-icon-dropdown-arrow.entry.js +3 -3
- package/dist/esm/ontario-icon-edit.entry.js +3 -3
- package/dist/esm/ontario-icon-expand.entry.js +3 -3
- package/dist/esm/ontario-icon-export.entry.js +3 -3
- package/dist/esm/ontario-icon-facebook-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-facebook.entry.js +3 -3
- package/dist/esm/ontario-icon-favourite-off.entry.js +3 -3
- package/dist/esm/ontario-icon-favourite-on.entry.js +3 -3
- package/dist/esm/ontario-icon-filter.entry.js +3 -3
- package/dist/esm/ontario-icon-flickr.entry.js +3 -3
- package/dist/esm/ontario-icon-grid.entry.js +3 -3
- package/dist/esm/ontario-icon-instagram.entry.js +3 -3
- package/dist/esm/ontario-icon-interac-en-alt.entry.js +19 -19
- package/dist/esm/ontario-icon-interac-en.entry.js +18 -18
- package/dist/esm/ontario-icon-interac-fr-alt.entry.js +19 -19
- package/dist/esm/ontario-icon-interac-fr.entry.js +12 -12
- package/dist/esm/ontario-icon-linkedin-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-linkedin.entry.js +3 -3
- package/dist/esm/ontario-icon-list.entry.js +3 -3
- package/dist/esm/ontario-icon-live-chat.entry.js +3 -3
- package/dist/esm/ontario-icon-location-off.entry.js +3 -3
- package/dist/esm/ontario-icon-location-on.entry.js +3 -3
- package/dist/esm/ontario-icon-lock-off.entry.js +3 -3
- package/dist/esm/ontario-icon-lock-on.entry.js +3 -3
- package/dist/esm/ontario-icon-map.entry.js +3 -3
- package/dist/esm/ontario-icon-mastercard-alt.entry.js +6 -6
- package/dist/esm/ontario-icon-media-fast-forward.entry.js +3 -3
- package/dist/esm/ontario-icon-media-fast-rewind.entry.js +3 -3
- package/dist/esm/ontario-icon-media-pause.entry.js +3 -3
- package/dist/esm/ontario-icon-media-play.entry.js +3 -3
- package/dist/esm/ontario-icon-media-stop.entry.js +3 -3
- package/dist/esm/ontario-icon-menu-header.entry.js +3 -3
- package/dist/esm/ontario-icon-menu.entry.js +3 -3
- package/dist/esm/ontario-icon-microphone-off.entry.js +3 -3
- package/dist/esm/ontario-icon-microphone-on.entry.js +3 -3
- package/dist/esm/ontario-icon-more-vertical.entry.js +3 -3
- package/dist/esm/ontario-icon-new-window.entry.js +3 -3
- package/dist/esm/ontario-icon-next.entry.js +3 -3
- package/dist/esm/ontario-icon-password-hide.entry.js +3 -3
- package/dist/esm/ontario-icon-password-show.entry.js +3 -3
- package/dist/esm/ontario-icon-phone.entry.js +3 -3
- package/dist/esm/ontario-icon-photo.entry.js +3 -3
- package/dist/esm/ontario-icon-pin-location-off.entry.js +3 -3
- package/dist/esm/ontario-icon-pin-location-on.entry.js +3 -3
- package/dist/esm/ontario-icon-previous.entry.js +3 -3
- package/dist/esm/ontario-icon-remove-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-remove.entry.js +3 -3
- package/dist/esm/ontario-icon-replay.entry.js +3 -3
- package/dist/esm/ontario-icon-rss-feed.entry.js +3 -3
- package/dist/esm/ontario-icon-save.entry.js +3 -3
- package/dist/esm/ontario-icon-search-white.entry.js +3 -3
- package/dist/esm/ontario-icon-search.entry.js +3 -3
- package/dist/esm/ontario-icon-sentiment-1.entry.js +3 -3
- package/dist/esm/ontario-icon-sentiment-2.entry.js +3 -3
- package/dist/esm/ontario-icon-sentiment-3.entry.js +3 -3
- package/dist/esm/ontario-icon-sentiment-4.entry.js +3 -3
- package/dist/esm/ontario-icon-settings.entry.js +3 -3
- package/dist/esm/ontario-icon-share.entry.js +3 -3
- package/dist/esm/ontario-icon-sort.entry.js +3 -3
- package/dist/esm/ontario-icon-tag.entry.js +3 -3
- package/dist/esm/ontario-icon-timer.entry.js +3 -3
- package/dist/esm/ontario-icon-transport-bicycle.entry.js +3 -3
- package/dist/esm/ontario-icon-transport-car.entry.js +3 -3
- package/dist/esm/ontario-icon-transport-walk.entry.js +3 -3
- package/dist/esm/ontario-icon-tty.entry.js +3 -3
- package/dist/esm/ontario-icon-twitter-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-twitter.entry.js +3 -3
- package/dist/esm/ontario-icon-upload.entry.js +3 -3
- package/dist/esm/ontario-icon-video.entry.js +3 -3
- package/dist/esm/ontario-icon-visa.entry.js +5 -5
- package/dist/esm/ontario-icon-vote-dislike.entry.js +3 -3
- package/dist/esm/ontario-icon-vote-like.entry.js +3 -3
- package/dist/esm/ontario-icon-vpn-key.entry.js +3 -3
- package/dist/esm/ontario-icon-wheelchair.entry.js +3 -3
- package/dist/esm/ontario-icon-wifi.entry.js +3 -3
- package/dist/esm/ontario-icon-youtube.entry.js +3 -3
- package/dist/ontario-design-system-components/fonts/open-sans-700--italic/open-sans-700--italic.ttf +0 -0
- package/dist/ontario-design-system-components/ontario-design-system-components.css +20 -11
- package/dist/ontario-design-system-components/ontario-design-system-components.esm.js +1 -1
- package/dist/ontario-design-system-components/ontario-design-system-components.esm.js.map +1 -1
- package/dist/ontario-design-system-components/{p-8653b9a6.entry.js → p-000d118a.entry.js} +4 -4
- package/{www/build/p-c6d771f1.entry.js → dist/ontario-design-system-components/p-003c7025.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-a2461cfc.entry.js → p-037cb397.entry.js} +4 -4
- package/{www/build/p-2a6e912e.entry.js → dist/ontario-design-system-components/p-09bb0aa3.entry.js} +8 -8
- package/{www/build/p-3fb5a2f5.entry.js → dist/ontario-design-system-components/p-0d89c7b9.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-b52ef7dc.entry.js → p-0f88c8f2.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-8973affb.entry.js → p-0fe90a53.entry.js} +7 -7
- package/dist/ontario-design-system-components/{p-d8e9546c.entry.js → p-11580fc7.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-3b1c06b1.entry.js → p-11fbb285.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-6477890e.entry.js → p-126496c8.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-c779e248.entry.js → p-12e02882.entry.js} +9 -9
- package/{www/build/p-34371cd7.entry.js → dist/ontario-design-system-components/p-152aa9e4.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-47b56153.entry.js → p-1929437f.entry.js} +4 -4
- package/{www/build/p-b83a30cf.entry.js → dist/ontario-design-system-components/p-1cfdae8d.entry.js} +4 -4
- package/{www/build/p-e51793eb.entry.js → dist/ontario-design-system-components/p-1fbb0f59.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-ecbcd457.entry.js → p-22062614.entry.js} +4 -4
- package/{www/build/p-86849b43.entry.js → dist/ontario-design-system-components/p-24ef276d.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-5a775ff3.entry.js → p-26390b88.entry.js} +4 -4
- package/{www/build/p-10899c2d.entry.js → dist/ontario-design-system-components/p-29dfd6c4.entry.js} +7 -7
- package/{www/build/p-be4fbe09.entry.js → dist/ontario-design-system-components/p-2e8d508a.entry.js} +6 -6
- package/dist/ontario-design-system-components/{p-f8c4ff40.entry.js → p-2ed27310.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-9cab9d12.entry.js → p-30786743.entry.js} +4 -4
- package/{www/build/p-0fa6ba1b.entry.js → dist/ontario-design-system-components/p-3904f9dd.entry.js} +4 -4
- package/{www/build/p-b428f67a.entry.js → dist/ontario-design-system-components/p-39d3a9ed.entry.js} +4 -4
- package/{www/build/p-21b80693.entry.js → dist/ontario-design-system-components/p-3a1447aa.entry.js} +9 -9
- package/{www/build/p-61548ae2.entry.js → dist/ontario-design-system-components/p-3aa826f2.entry.js} +12 -12
- package/dist/ontario-design-system-components/{p-0f8e5a0c.entry.js → p-3f08b13d.entry.js} +20 -20
- package/{www/build/p-4f1683c0.entry.js → dist/ontario-design-system-components/p-4043191b.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-c69e5796.entry.js → p-41e0168e.entry.js} +4 -4
- package/{www/build/p-af8d070d.entry.js → dist/ontario-design-system-components/p-43c3e426.entry.js} +7 -7
- package/dist/ontario-design-system-components/{p-f8cbec7c.entry.js → p-45de5461.entry.js} +4 -4
- package/{www/build/p-6df12aab.entry.js → dist/ontario-design-system-components/p-48215bea.entry.js} +22 -22
- package/dist/ontario-design-system-components/{p-eb4faafb.entry.js → p-4888bc18.entry.js} +7 -7
- package/{www/build/p-446337ea.entry.js → dist/ontario-design-system-components/p-4d6d69da.entry.js} +7 -7
- package/{www/build/p-1cd78ef5.entry.js → dist/ontario-design-system-components/p-5d7e5889.entry.js} +4 -4
- package/{www/build/p-cb21b1a3.entry.js → dist/ontario-design-system-components/p-5d92e9b1.entry.js} +4 -4
- package/{www/build/p-7a822cb8.entry.js → dist/ontario-design-system-components/p-5ec63da7.entry.js} +4 -4
- package/{www/build/p-a33f978b.entry.js → dist/ontario-design-system-components/p-5efb4624.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-3218a141.entry.js → p-60bfb63f.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-7afdef3f.entry.js → p-641ca864.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-44fe73c2.entry.js → p-643806d5.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-fb1a144e.entry.js → p-6668d4e0.entry.js} +10 -10
- package/{www/build/p-ce1fa4bd.entry.js → dist/ontario-design-system-components/p-6dc2187e.entry.js} +4 -4
- package/{www/build/p-0aea8df7.entry.js → dist/ontario-design-system-components/p-70498106.entry.js} +4 -4
- package/{www/build/p-fe487325.entry.js → dist/ontario-design-system-components/p-70a335e2.entry.js} +4 -4
- package/{www/build/p-965f968c.entry.js → dist/ontario-design-system-components/p-728c461b.entry.js} +9 -9
- package/{www/build/p-bad1e757.entry.js → dist/ontario-design-system-components/p-73878f44.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-d733ba28.entry.js → p-76ddf27f.entry.js} +4 -4
- package/{www/build/p-12d41776.entry.js → dist/ontario-design-system-components/p-845375a2.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-9ffdf9ad.entry.js → p-85951533.entry.js} +7 -7
- package/{www/build/p-564a51a5.entry.js → dist/ontario-design-system-components/p-876f72e7.entry.js} +12 -12
- package/dist/ontario-design-system-components/{p-01f427db.entry.js → p-87be02cc.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-5184701e.entry.js → p-8b2362b8.entry.js} +6 -6
- package/{www/build/p-35681159.entry.js → dist/ontario-design-system-components/p-8eba142e.entry.js} +9 -9
- package/{www/build/p-1526e1f3.entry.js → dist/ontario-design-system-components/p-92fa3045.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-981933f3.entry.js → p-94563a01.entry.js} +4 -4
- package/{www/build/p-3868d245.entry.js → dist/ontario-design-system-components/p-95343ef7.entry.js} +7 -7
- package/{www/build/p-533a039a.entry.js → dist/ontario-design-system-components/p-96322ecb.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-a80d7066.entry.js → p-972530c1.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-daca3528.entry.js → p-98785629.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-f0ca3e20.entry.js → p-9e981b18.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-95671e82.entry.js → p-a3c8e0fe.entry.js} +4 -4
- package/{www/build/p-3cca2f28.entry.js → dist/ontario-design-system-components/p-a5c3340b.entry.js} +49 -49
- package/dist/ontario-design-system-components/{p-ba5dc106.entry.js → p-a8cd11a8.entry.js} +7 -7
- package/dist/ontario-design-system-components/{p-7f8d2db6.entry.js → p-ae0b1cd7.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-a168d607.entry.js → p-af83e253.entry.js} +4 -4
- package/{www/build/p-04fb2b1f.entry.js → dist/ontario-design-system-components/p-b45d5fea.entry.js} +4 -4
- package/{www/build/p-f45d1e6b.entry.js → dist/ontario-design-system-components/p-b6b24bb7.entry.js} +4 -4
- package/{www/build/p-e6c90ae8.entry.js → dist/ontario-design-system-components/p-b8e71a4d.entry.js} +4 -4
- package/{www/build/p-8b743603.entry.js → dist/ontario-design-system-components/p-be44e14b.entry.js} +4 -4
- package/{www/build/p-5128c0bb.entry.js → dist/ontario-design-system-components/p-c2da353b.entry.js} +4 -4
- package/{www/build/p-8ed8323f.entry.js → dist/ontario-design-system-components/p-c3b931b0.entry.js} +4 -4
- package/{www/build/p-404f3050.entry.js → dist/ontario-design-system-components/p-c4b4c80f.entry.js} +9 -9
- package/{www/build/p-9c9d49a3.entry.js → dist/ontario-design-system-components/p-c4e02cd7.entry.js} +7 -7
- package/dist/ontario-design-system-components/{p-e87fde13.entry.js → p-c4fafb66.entry.js} +9 -9
- package/{www/build/p-adbbd012.entry.js → dist/ontario-design-system-components/p-c8422e76.entry.js} +9 -9
- package/{www/build/p-bb072cb8.entry.js → dist/ontario-design-system-components/p-cc01fa6d.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-b1596322.entry.js → p-cdcc4bc1.entry.js} +4 -4
- package/{www/build/p-00364195.entry.js → dist/ontario-design-system-components/p-cff41424.entry.js} +707 -633
- package/dist/ontario-design-system-components/p-cff41424.entry.js.map +1 -0
- package/dist/ontario-design-system-components/{p-f125e857.entry.js → p-d7d192a9.entry.js} +13 -13
- package/{www/build/p-baf6249e.entry.js → dist/ontario-design-system-components/p-d9462565.entry.js} +7 -7
- package/{www/build/p-e952d94f.entry.js → dist/ontario-design-system-components/p-de7d54f1.entry.js} +4 -4
- package/{www/build/p-32666b1a.entry.js → dist/ontario-design-system-components/p-df980b9f.entry.js} +9 -9
- package/{www/build/p-6fb80d3b.entry.js → dist/ontario-design-system-components/p-e2227665.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-7c593bd8.entry.js → p-e381e658.entry.js} +9 -9
- package/{www/build/p-6a62b87d.entry.js → dist/ontario-design-system-components/p-e615ffad.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-6c85610c.entry.js → p-e86f15ef.entry.js} +4 -4
- package/{www/build/p-7738a68d.entry.js → dist/ontario-design-system-components/p-eb9017c9.entry.js} +4 -4
- package/{www/build/p-80d23c2c.entry.js → dist/ontario-design-system-components/p-eec91982.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-16dc2584.entry.js → p-f02f5143.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-39ab52ad.entry.js → p-f0f73537.entry.js} +7 -7
- package/dist/ontario-design-system-components/{p-17409379.entry.js → p-f5749dfe.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-1567ea71.entry.js → p-f6947391.entry.js} +4 -4
- package/{www/build/p-87fb19b5.entry.js → dist/ontario-design-system-components/p-fac0d8ee.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-ed2d68e1.entry.js → p-fc9ff3c0.entry.js} +4 -4
- package/{www/build/p-e96e36ff.entry.js → dist/ontario-design-system-components/p-fec501d5.entry.js} +4 -4
- package/dist/types/components/ontario-badge/ontario-badge.d.ts +59 -0
- package/dist/types/components/ontario-badge/ontario-badge.types.d.ts +11 -0
- package/dist/types/components.d.ts +40 -0
- package/dist/types/utils/helper/utils.d.ts +16 -1
- package/package.json +3 -3
- package/readme.md +2 -0
- package/src/components/ontario-badge/ontario-badge.scss +71 -0
- package/src/components/ontario-badge/ontario-badge.tsx +123 -0
- package/src/components/ontario-badge/ontario-badge.types.ts +15 -0
- package/src/components/ontario-badge/readme.md +57 -0
- package/src/components/ontario-badge/test/__snapshots__/ontario-badge.spec.tsx.snap +45 -0
- package/src/components/ontario-badge/test/ontario-badge.e2e.ts +105 -0
- package/src/components/ontario-badge/test/ontario-badge.spec.tsx +40 -0
- package/src/components/ontario-button/ontario-button.tsx +7 -13
- package/src/components/ontario-card-collection/ontario-card-collection.scss +12 -0
- package/src/components/ontario-checkbox/readme.md +54 -0
- package/src/components/ontario-date-input/readme.md +55 -0
- package/src/components/ontario-dropdown-list/readme.md +52 -1
- package/src/components/ontario-header/ontario-header.tsx +8 -8
- package/src/components/ontario-header/test/ontario-header.spec.tsx +12 -0
- package/src/components/ontario-input/readme.md +39 -1
- package/src/components/ontario-radio-buttons/readme.md +53 -1
- package/src/components/ontario-textarea/readme.md +38 -0
- package/src/components.d.ts +40 -0
- package/src/index.html +14 -14
- package/src/utils/helper/utils.ts +20 -3
- package/www/build/ontario-design-system-components.css +20 -11
- package/www/build/ontario-design-system-components.esm.js +1 -1
- package/www/build/ontario-design-system-components.esm.js.map +1 -1
- package/www/build/{p-8653b9a6.entry.js → p-000d118a.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-c6d771f1.entry.js → www/build/p-003c7025.entry.js} +9 -9
- package/www/build/{p-a2461cfc.entry.js → p-037cb397.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-2a6e912e.entry.js → www/build/p-09bb0aa3.entry.js} +8 -8
- package/{dist/ontario-design-system-components/p-3fb5a2f5.entry.js → www/build/p-0d89c7b9.entry.js} +4 -4
- package/www/build/{p-b52ef7dc.entry.js → p-0f88c8f2.entry.js} +9 -9
- package/www/build/{p-8973affb.entry.js → p-0fe90a53.entry.js} +7 -7
- package/www/build/{p-d8e9546c.entry.js → p-11580fc7.entry.js} +4 -4
- package/www/build/{p-3b1c06b1.entry.js → p-11fbb285.entry.js} +4 -4
- package/www/build/{p-6477890e.entry.js → p-126496c8.entry.js} +4 -4
- package/www/build/{p-c779e248.entry.js → p-12e02882.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-34371cd7.entry.js → www/build/p-152aa9e4.entry.js} +4 -4
- package/www/build/{p-47b56153.entry.js → p-1929437f.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-b83a30cf.entry.js → www/build/p-1cfdae8d.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-e51793eb.entry.js → www/build/p-1fbb0f59.entry.js} +4 -4
- package/www/build/{p-ecbcd457.entry.js → p-22062614.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-86849b43.entry.js → www/build/p-24ef276d.entry.js} +4 -4
- package/www/build/{p-5a775ff3.entry.js → p-26390b88.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-10899c2d.entry.js → www/build/p-29dfd6c4.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-be4fbe09.entry.js → www/build/p-2e8d508a.entry.js} +6 -6
- package/www/build/{p-f8c4ff40.entry.js → p-2ed27310.entry.js} +4 -4
- package/www/build/{p-9cab9d12.entry.js → p-30786743.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-0fa6ba1b.entry.js → www/build/p-3904f9dd.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-b428f67a.entry.js → www/build/p-39d3a9ed.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-21b80693.entry.js → www/build/p-3a1447aa.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-61548ae2.entry.js → www/build/p-3aa826f2.entry.js} +12 -12
- package/www/build/{p-0f8e5a0c.entry.js → p-3f08b13d.entry.js} +20 -20
- package/{dist/ontario-design-system-components/p-4f1683c0.entry.js → www/build/p-4043191b.entry.js} +4 -4
- package/www/build/{p-c69e5796.entry.js → p-41e0168e.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-af8d070d.entry.js → www/build/p-43c3e426.entry.js} +7 -7
- package/www/build/{p-f8cbec7c.entry.js → p-45de5461.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-6df12aab.entry.js → www/build/p-48215bea.entry.js} +22 -22
- package/www/build/{p-eb4faafb.entry.js → p-4888bc18.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-446337ea.entry.js → www/build/p-4d6d69da.entry.js} +7 -7
- package/www/build/{p-016eeaf2.css → p-5c2c7e30.css} +20 -11
- package/{dist/ontario-design-system-components/p-1cd78ef5.entry.js → www/build/p-5d7e5889.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-cb21b1a3.entry.js → www/build/p-5d92e9b1.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-7a822cb8.entry.js → www/build/p-5ec63da7.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-a33f978b.entry.js → www/build/p-5efb4624.entry.js} +9 -9
- package/www/build/{p-3218a141.entry.js → p-60bfb63f.entry.js} +4 -4
- package/www/build/{p-7afdef3f.entry.js → p-641ca864.entry.js} +4 -4
- package/www/build/{p-44fe73c2.entry.js → p-643806d5.entry.js} +4 -4
- package/www/build/{p-fb1a144e.entry.js → p-6668d4e0.entry.js} +10 -10
- package/{dist/ontario-design-system-components/p-ce1fa4bd.entry.js → www/build/p-6dc2187e.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-0aea8df7.entry.js → www/build/p-70498106.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-fe487325.entry.js → www/build/p-70a335e2.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-965f968c.entry.js → www/build/p-728c461b.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-bad1e757.entry.js → www/build/p-73878f44.entry.js} +4 -4
- package/www/build/{p-d733ba28.entry.js → p-76ddf27f.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-12d41776.entry.js → www/build/p-845375a2.entry.js} +4 -4
- package/www/build/{p-9ffdf9ad.entry.js → p-85951533.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-564a51a5.entry.js → www/build/p-876f72e7.entry.js} +12 -12
- package/www/build/{p-01f427db.entry.js → p-87be02cc.entry.js} +4 -4
- package/www/build/{p-5184701e.entry.js → p-8b2362b8.entry.js} +6 -6
- package/{dist/ontario-design-system-components/p-35681159.entry.js → www/build/p-8eba142e.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-1526e1f3.entry.js → www/build/p-92fa3045.entry.js} +4 -4
- package/www/build/{p-981933f3.entry.js → p-94563a01.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-3868d245.entry.js → www/build/p-95343ef7.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-533a039a.entry.js → www/build/p-96322ecb.entry.js} +9 -9
- package/www/build/{p-a80d7066.entry.js → p-972530c1.entry.js} +4 -4
- package/www/build/{p-daca3528.entry.js → p-98785629.entry.js} +4 -4
- package/www/build/{p-f0ca3e20.entry.js → p-9e981b18.entry.js} +4 -4
- package/www/build/{p-95671e82.entry.js → p-a3c8e0fe.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-3cca2f28.entry.js → www/build/p-a5c3340b.entry.js} +49 -49
- package/www/build/{p-ba5dc106.entry.js → p-a8cd11a8.entry.js} +7 -7
- package/www/build/{p-7f8d2db6.entry.js → p-ae0b1cd7.entry.js} +4 -4
- package/www/build/{p-a168d607.entry.js → p-af83e253.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-04fb2b1f.entry.js → www/build/p-b45d5fea.entry.js} +4 -4
- package/www/build/{p-a8bba86c.js → p-b61db0f6.js} +1 -1
- package/{dist/ontario-design-system-components/p-f45d1e6b.entry.js → www/build/p-b6b24bb7.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-e6c90ae8.entry.js → www/build/p-b8e71a4d.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-8b743603.entry.js → www/build/p-be44e14b.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-5128c0bb.entry.js → www/build/p-c2da353b.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-8ed8323f.entry.js → www/build/p-c3b931b0.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-404f3050.entry.js → www/build/p-c4b4c80f.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-9c9d49a3.entry.js → www/build/p-c4e02cd7.entry.js} +7 -7
- package/www/build/{p-e87fde13.entry.js → p-c4fafb66.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-adbbd012.entry.js → www/build/p-c8422e76.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-bb072cb8.entry.js → www/build/p-cc01fa6d.entry.js} +9 -9
- package/www/build/{p-b1596322.entry.js → p-cdcc4bc1.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-00364195.entry.js → www/build/p-cff41424.entry.js} +707 -633
- package/www/build/p-cff41424.entry.js.map +1 -0
- package/www/build/{p-f125e857.entry.js → p-d7d192a9.entry.js} +13 -13
- package/{dist/ontario-design-system-components/p-baf6249e.entry.js → www/build/p-d9462565.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-e952d94f.entry.js → www/build/p-de7d54f1.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-32666b1a.entry.js → www/build/p-df980b9f.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-6fb80d3b.entry.js → www/build/p-e2227665.entry.js} +4 -4
- package/www/build/{p-7c593bd8.entry.js → p-e381e658.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-6a62b87d.entry.js → www/build/p-e615ffad.entry.js} +4 -4
- package/www/build/{p-6c85610c.entry.js → p-e86f15ef.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-7738a68d.entry.js → www/build/p-eb9017c9.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-80d23c2c.entry.js → www/build/p-eec91982.entry.js} +4 -4
- package/www/build/{p-16dc2584.entry.js → p-f02f5143.entry.js} +4 -4
- package/www/build/{p-39ab52ad.entry.js → p-f0f73537.entry.js} +7 -7
- package/www/build/{p-17409379.entry.js → p-f5749dfe.entry.js} +4 -4
- package/www/build/{p-1567ea71.entry.js → p-f6947391.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-87fb19b5.entry.js → www/build/p-fac0d8ee.entry.js} +4 -4
- package/www/build/{p-ed2d68e1.entry.js → p-fc9ff3c0.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-e96e36ff.entry.js → www/build/p-fec501d5.entry.js} +4 -4
- package/www/fonts/open-sans-700--italic/open-sans-700--italic.ttf +0 -0
- package/www/index.html +15 -17
- package/dist/cjs/ontario-accordion_42.cjs.entry.js.map +0 -1
- package/dist/esm/ontario-accordion_42.entry.js.map +0 -1
- package/dist/ontario-design-system-components/p-00364195.entry.js.map +0 -1
- package/www/build/p-00364195.entry.js.map +0 -1
- /package/dist/ontario-design-system-components/{p-8653b9a6.entry.js.map → p-000d118a.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c6d771f1.entry.js.map → p-003c7025.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-a2461cfc.entry.js.map → p-037cb397.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-2a6e912e.entry.js.map → p-09bb0aa3.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-3fb5a2f5.entry.js.map → p-0d89c7b9.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-b52ef7dc.entry.js.map → p-0f88c8f2.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-8973affb.entry.js.map → p-0fe90a53.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-d8e9546c.entry.js.map → p-11580fc7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-3b1c06b1.entry.js.map → p-11fbb285.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-6477890e.entry.js.map → p-126496c8.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c779e248.entry.js.map → p-12e02882.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-34371cd7.entry.js.map → p-152aa9e4.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-47b56153.entry.js.map → p-1929437f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-b83a30cf.entry.js.map → p-1cfdae8d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e51793eb.entry.js.map → p-1fbb0f59.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-ecbcd457.entry.js.map → p-22062614.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-86849b43.entry.js.map → p-24ef276d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5a775ff3.entry.js.map → p-26390b88.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-10899c2d.entry.js.map → p-29dfd6c4.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-be4fbe09.entry.js.map → p-2e8d508a.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f8c4ff40.entry.js.map → p-2ed27310.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-9cab9d12.entry.js.map → p-30786743.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-0fa6ba1b.entry.js.map → p-3904f9dd.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-b428f67a.entry.js.map → p-39d3a9ed.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-21b80693.entry.js.map → p-3a1447aa.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-61548ae2.entry.js.map → p-3aa826f2.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-0f8e5a0c.entry.js.map → p-3f08b13d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-4f1683c0.entry.js.map → p-4043191b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c69e5796.entry.js.map → p-41e0168e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-af8d070d.entry.js.map → p-43c3e426.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f8cbec7c.entry.js.map → p-45de5461.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-6df12aab.entry.js.map → p-48215bea.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-eb4faafb.entry.js.map → p-4888bc18.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-446337ea.entry.js.map → p-4d6d69da.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-1cd78ef5.entry.js.map → p-5d7e5889.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-cb21b1a3.entry.js.map → p-5d92e9b1.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-7a822cb8.entry.js.map → p-5ec63da7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-a33f978b.entry.js.map → p-5efb4624.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-3218a141.entry.js.map → p-60bfb63f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-7afdef3f.entry.js.map → p-641ca864.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-44fe73c2.entry.js.map → p-643806d5.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-fb1a144e.entry.js.map → p-6668d4e0.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-ce1fa4bd.entry.js.map → p-6dc2187e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-0aea8df7.entry.js.map → p-70498106.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-fe487325.entry.js.map → p-70a335e2.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-965f968c.entry.js.map → p-728c461b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-bad1e757.entry.js.map → p-73878f44.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-d733ba28.entry.js.map → p-76ddf27f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-12d41776.entry.js.map → p-845375a2.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-9ffdf9ad.entry.js.map → p-85951533.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-564a51a5.entry.js.map → p-876f72e7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-01f427db.entry.js.map → p-87be02cc.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5184701e.entry.js.map → p-8b2362b8.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-35681159.entry.js.map → p-8eba142e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-1526e1f3.entry.js.map → p-92fa3045.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-981933f3.entry.js.map → p-94563a01.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-3868d245.entry.js.map → p-95343ef7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-533a039a.entry.js.map → p-96322ecb.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-a80d7066.entry.js.map → p-972530c1.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-daca3528.entry.js.map → p-98785629.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f0ca3e20.entry.js.map → p-9e981b18.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-95671e82.entry.js.map → p-a3c8e0fe.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-3cca2f28.entry.js.map → p-a5c3340b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-ba5dc106.entry.js.map → p-a8cd11a8.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-7f8d2db6.entry.js.map → p-ae0b1cd7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-a168d607.entry.js.map → p-af83e253.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-04fb2b1f.entry.js.map → p-b45d5fea.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f45d1e6b.entry.js.map → p-b6b24bb7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e6c90ae8.entry.js.map → p-b8e71a4d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-8b743603.entry.js.map → p-be44e14b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5128c0bb.entry.js.map → p-c2da353b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-8ed8323f.entry.js.map → p-c3b931b0.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-404f3050.entry.js.map → p-c4b4c80f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-9c9d49a3.entry.js.map → p-c4e02cd7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e87fde13.entry.js.map → p-c4fafb66.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-adbbd012.entry.js.map → p-c8422e76.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-bb072cb8.entry.js.map → p-cc01fa6d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-b1596322.entry.js.map → p-cdcc4bc1.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f125e857.entry.js.map → p-d7d192a9.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-baf6249e.entry.js.map → p-d9462565.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e952d94f.entry.js.map → p-de7d54f1.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-32666b1a.entry.js.map → p-df980b9f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-6fb80d3b.entry.js.map → p-e2227665.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-7c593bd8.entry.js.map → p-e381e658.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-6a62b87d.entry.js.map → p-e615ffad.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-6c85610c.entry.js.map → p-e86f15ef.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-7738a68d.entry.js.map → p-eb9017c9.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-80d23c2c.entry.js.map → p-eec91982.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-16dc2584.entry.js.map → p-f02f5143.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-39ab52ad.entry.js.map → p-f0f73537.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-17409379.entry.js.map → p-f5749dfe.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-1567ea71.entry.js.map → p-f6947391.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-87fb19b5.entry.js.map → p-fac0d8ee.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-ed2d68e1.entry.js.map → p-fc9ff3c0.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e96e36ff.entry.js.map → p-fec501d5.entry.js.map} +0 -0
- /package/www/build/{p-8653b9a6.entry.js.map → p-000d118a.entry.js.map} +0 -0
- /package/www/build/{p-c6d771f1.entry.js.map → p-003c7025.entry.js.map} +0 -0
- /package/www/build/{p-a2461cfc.entry.js.map → p-037cb397.entry.js.map} +0 -0
- /package/www/build/{p-2a6e912e.entry.js.map → p-09bb0aa3.entry.js.map} +0 -0
- /package/www/build/{p-3fb5a2f5.entry.js.map → p-0d89c7b9.entry.js.map} +0 -0
- /package/www/build/{p-b52ef7dc.entry.js.map → p-0f88c8f2.entry.js.map} +0 -0
- /package/www/build/{p-8973affb.entry.js.map → p-0fe90a53.entry.js.map} +0 -0
- /package/www/build/{p-d8e9546c.entry.js.map → p-11580fc7.entry.js.map} +0 -0
- /package/www/build/{p-3b1c06b1.entry.js.map → p-11fbb285.entry.js.map} +0 -0
- /package/www/build/{p-6477890e.entry.js.map → p-126496c8.entry.js.map} +0 -0
- /package/www/build/{p-c779e248.entry.js.map → p-12e02882.entry.js.map} +0 -0
- /package/www/build/{p-34371cd7.entry.js.map → p-152aa9e4.entry.js.map} +0 -0
- /package/www/build/{p-47b56153.entry.js.map → p-1929437f.entry.js.map} +0 -0
- /package/www/build/{p-b83a30cf.entry.js.map → p-1cfdae8d.entry.js.map} +0 -0
- /package/www/build/{p-e51793eb.entry.js.map → p-1fbb0f59.entry.js.map} +0 -0
- /package/www/build/{p-ecbcd457.entry.js.map → p-22062614.entry.js.map} +0 -0
- /package/www/build/{p-86849b43.entry.js.map → p-24ef276d.entry.js.map} +0 -0
- /package/www/build/{p-5a775ff3.entry.js.map → p-26390b88.entry.js.map} +0 -0
- /package/www/build/{p-10899c2d.entry.js.map → p-29dfd6c4.entry.js.map} +0 -0
- /package/www/build/{p-be4fbe09.entry.js.map → p-2e8d508a.entry.js.map} +0 -0
- /package/www/build/{p-f8c4ff40.entry.js.map → p-2ed27310.entry.js.map} +0 -0
- /package/www/build/{p-9cab9d12.entry.js.map → p-30786743.entry.js.map} +0 -0
- /package/www/build/{p-0fa6ba1b.entry.js.map → p-3904f9dd.entry.js.map} +0 -0
- /package/www/build/{p-b428f67a.entry.js.map → p-39d3a9ed.entry.js.map} +0 -0
- /package/www/build/{p-21b80693.entry.js.map → p-3a1447aa.entry.js.map} +0 -0
- /package/www/build/{p-61548ae2.entry.js.map → p-3aa826f2.entry.js.map} +0 -0
- /package/www/build/{p-0f8e5a0c.entry.js.map → p-3f08b13d.entry.js.map} +0 -0
- /package/www/build/{p-4f1683c0.entry.js.map → p-4043191b.entry.js.map} +0 -0
- /package/www/build/{p-c69e5796.entry.js.map → p-41e0168e.entry.js.map} +0 -0
- /package/www/build/{p-af8d070d.entry.js.map → p-43c3e426.entry.js.map} +0 -0
- /package/www/build/{p-f8cbec7c.entry.js.map → p-45de5461.entry.js.map} +0 -0
- /package/www/build/{p-6df12aab.entry.js.map → p-48215bea.entry.js.map} +0 -0
- /package/www/build/{p-eb4faafb.entry.js.map → p-4888bc18.entry.js.map} +0 -0
- /package/www/build/{p-446337ea.entry.js.map → p-4d6d69da.entry.js.map} +0 -0
- /package/www/build/{p-1cd78ef5.entry.js.map → p-5d7e5889.entry.js.map} +0 -0
- /package/www/build/{p-cb21b1a3.entry.js.map → p-5d92e9b1.entry.js.map} +0 -0
- /package/www/build/{p-7a822cb8.entry.js.map → p-5ec63da7.entry.js.map} +0 -0
- /package/www/build/{p-a33f978b.entry.js.map → p-5efb4624.entry.js.map} +0 -0
- /package/www/build/{p-3218a141.entry.js.map → p-60bfb63f.entry.js.map} +0 -0
- /package/www/build/{p-7afdef3f.entry.js.map → p-641ca864.entry.js.map} +0 -0
- /package/www/build/{p-44fe73c2.entry.js.map → p-643806d5.entry.js.map} +0 -0
- /package/www/build/{p-fb1a144e.entry.js.map → p-6668d4e0.entry.js.map} +0 -0
- /package/www/build/{p-ce1fa4bd.entry.js.map → p-6dc2187e.entry.js.map} +0 -0
- /package/www/build/{p-0aea8df7.entry.js.map → p-70498106.entry.js.map} +0 -0
- /package/www/build/{p-fe487325.entry.js.map → p-70a335e2.entry.js.map} +0 -0
- /package/www/build/{p-965f968c.entry.js.map → p-728c461b.entry.js.map} +0 -0
- /package/www/build/{p-bad1e757.entry.js.map → p-73878f44.entry.js.map} +0 -0
- /package/www/build/{p-d733ba28.entry.js.map → p-76ddf27f.entry.js.map} +0 -0
- /package/www/build/{p-12d41776.entry.js.map → p-845375a2.entry.js.map} +0 -0
- /package/www/build/{p-9ffdf9ad.entry.js.map → p-85951533.entry.js.map} +0 -0
- /package/www/build/{p-564a51a5.entry.js.map → p-876f72e7.entry.js.map} +0 -0
- /package/www/build/{p-01f427db.entry.js.map → p-87be02cc.entry.js.map} +0 -0
- /package/www/build/{p-5184701e.entry.js.map → p-8b2362b8.entry.js.map} +0 -0
- /package/www/build/{p-35681159.entry.js.map → p-8eba142e.entry.js.map} +0 -0
- /package/www/build/{p-1526e1f3.entry.js.map → p-92fa3045.entry.js.map} +0 -0
- /package/www/build/{p-981933f3.entry.js.map → p-94563a01.entry.js.map} +0 -0
- /package/www/build/{p-3868d245.entry.js.map → p-95343ef7.entry.js.map} +0 -0
- /package/www/build/{p-533a039a.entry.js.map → p-96322ecb.entry.js.map} +0 -0
- /package/www/build/{p-a80d7066.entry.js.map → p-972530c1.entry.js.map} +0 -0
- /package/www/build/{p-daca3528.entry.js.map → p-98785629.entry.js.map} +0 -0
- /package/www/build/{p-f0ca3e20.entry.js.map → p-9e981b18.entry.js.map} +0 -0
- /package/www/build/{p-95671e82.entry.js.map → p-a3c8e0fe.entry.js.map} +0 -0
- /package/www/build/{p-3cca2f28.entry.js.map → p-a5c3340b.entry.js.map} +0 -0
- /package/www/build/{p-ba5dc106.entry.js.map → p-a8cd11a8.entry.js.map} +0 -0
- /package/www/build/{p-7f8d2db6.entry.js.map → p-ae0b1cd7.entry.js.map} +0 -0
- /package/www/build/{p-a168d607.entry.js.map → p-af83e253.entry.js.map} +0 -0
- /package/www/build/{p-04fb2b1f.entry.js.map → p-b45d5fea.entry.js.map} +0 -0
- /package/www/build/{p-f45d1e6b.entry.js.map → p-b6b24bb7.entry.js.map} +0 -0
- /package/www/build/{p-e6c90ae8.entry.js.map → p-b8e71a4d.entry.js.map} +0 -0
- /package/www/build/{p-8b743603.entry.js.map → p-be44e14b.entry.js.map} +0 -0
- /package/www/build/{p-5128c0bb.entry.js.map → p-c2da353b.entry.js.map} +0 -0
- /package/www/build/{p-8ed8323f.entry.js.map → p-c3b931b0.entry.js.map} +0 -0
- /package/www/build/{p-404f3050.entry.js.map → p-c4b4c80f.entry.js.map} +0 -0
- /package/www/build/{p-9c9d49a3.entry.js.map → p-c4e02cd7.entry.js.map} +0 -0
- /package/www/build/{p-e87fde13.entry.js.map → p-c4fafb66.entry.js.map} +0 -0
- /package/www/build/{p-adbbd012.entry.js.map → p-c8422e76.entry.js.map} +0 -0
- /package/www/build/{p-bb072cb8.entry.js.map → p-cc01fa6d.entry.js.map} +0 -0
- /package/www/build/{p-b1596322.entry.js.map → p-cdcc4bc1.entry.js.map} +0 -0
- /package/www/build/{p-f125e857.entry.js.map → p-d7d192a9.entry.js.map} +0 -0
- /package/www/build/{p-baf6249e.entry.js.map → p-d9462565.entry.js.map} +0 -0
- /package/www/build/{p-e952d94f.entry.js.map → p-de7d54f1.entry.js.map} +0 -0
- /package/www/build/{p-32666b1a.entry.js.map → p-df980b9f.entry.js.map} +0 -0
- /package/www/build/{p-6fb80d3b.entry.js.map → p-e2227665.entry.js.map} +0 -0
- /package/www/build/{p-7c593bd8.entry.js.map → p-e381e658.entry.js.map} +0 -0
- /package/www/build/{p-6a62b87d.entry.js.map → p-e615ffad.entry.js.map} +0 -0
- /package/www/build/{p-6c85610c.entry.js.map → p-e86f15ef.entry.js.map} +0 -0
- /package/www/build/{p-7738a68d.entry.js.map → p-eb9017c9.entry.js.map} +0 -0
- /package/www/build/{p-80d23c2c.entry.js.map → p-eec91982.entry.js.map} +0 -0
- /package/www/build/{p-16dc2584.entry.js.map → p-f02f5143.entry.js.map} +0 -0
- /package/www/build/{p-39ab52ad.entry.js.map → p-f0f73537.entry.js.map} +0 -0
- /package/www/build/{p-17409379.entry.js.map → p-f5749dfe.entry.js.map} +0 -0
- /package/www/build/{p-1567ea71.entry.js.map → p-f6947391.entry.js.map} +0 -0
- /package/www/build/{p-87fb19b5.entry.js.map → p-fac0d8ee.entry.js.map} +0 -0
- /package/www/build/{p-ed2d68e1.entry.js.map → p-fc9ff3c0.entry.js.map} +0 -0
- /package/www/build/{p-e96e36ff.entry.js.map → p-fec501d5.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"ontario-dropdown-list.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,sBAAsB,GAAG,otTAAotT,CAAC;AACpvT,kCAAe,sBAAsB;;MC2CxBA,qBAAmB;;;;;;;;;;;;;;;wBA8EF,KAAK;kCAcc,KAAK;;;;;;;;;;;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C,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,EACtD,MAAM,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,EAClD,OAAO,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,EACpD,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,IAExB,IAAI,CAAC,kBAAkB;aACtB,IAAI,CAAC,kBAAkB,KAAK,IAAI,IAAI,IAAI,CAAC,kBAAkB,KAAK,MAAM,IACtE,kBAAS,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAU,KAE5E,kBAAS,IAAI,CAAC,kBAAkB,CAAU,CAC1C,CAAC,EAEF,MAAA,MAAA,IAAI,CAAC,eAAe,0CAAE,GAAG,CAAC,CAAC,QAAQ,MACnC,cAAQ,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,IACxD,QAAQ,CAAC,KAAK,CACP,CACT,CAAC,mCAAI,EAAE,CACA,EACR,IAAI,CAAC,oBAAoB,KACzB,6BACC,IAAI,EAAE,IAAI,CAAC,oBAAoB,CAAC,IAAI,EACpC,OAAO,EAAE,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAC1C,eAAe,EAAE,IAAI,CAAC,oBAAoB,CAAC,eAAe,GAClC,CACzB,CACI,EACL;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioDropdownList","uuid"],"sources":["src/components/ontario-dropdown-list/ontario-dropdown-list.scss?tag=ontario-dropdown-list&encapsulation=shadow","src/components/ontario-dropdown-list/ontario-dropdown-list.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/4-elements/_global.elements.scss';\n@use '../../styles/form.scss';\n@forward '../../utils/components/error-message/error-message';\n\n$ontario-dropdown-border-width: 0.125rem;\n\n.ontario-dropdown {\n\tbackground-color: colours.$ontario-colour-white;\n\tbackground-position: right spacing.$spacing-2 center;\n\tbackground-repeat: no-repeat;\n\tbackground-size: spacing.$spacing-6;\n\tpadding-right: (spacing.$spacing-4 * 2.25);\n\tcursor: pointer;\n\n\t&.ontario-dropdown-hint-expander--true {\n\t\tmargin-bottom: spacing.$spacing-4;\n\t}\n}\n\n/* These styles are to fix differences in default styling for dropdowns in IE */\n.ontario-dropdown::-ms-expand {\n\tdisplay: none;\n}\n\n.ontario-dropdown option {\n\tfont-weight: normal;\n}\n\n.ontario-dropdown--error {\n\tselect {\n\t\tborder: $ontario-dropdown-border-width solid colours.$ontario-colour-alert;\n\t}\n}\n","import {\n\tComponent,\n\tState,\n\tElement,\n\th,\n\tProp,\n\tEvent,\n\tListen,\n\tWatch,\n\tgetAssetPath,\n\tEventEmitter,\n\tAttachInternals,\n} from '@stencil/core';\nimport { v4 as uuid } from 'uuid';\n\nimport { DropdownOption } from './dropdown-option.interface';\nimport { Dropdown } from './dropdown.interface';\nimport { HintExpander } from '../ontario-hint-expander/hint-expander.interface';\n\nimport { Hint } from '../../utils/common/common.interface';\nimport { InputCaption } from '../../utils/common/input-caption/input-caption';\nimport { Caption } from '../../utils/common/input-caption/caption.interface';\nimport {\n\tvalidateObjectExists,\n\tvalidatePropExists,\n\tvalidateLanguage,\n} from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\nimport { hasMultipleTrueValues } from '../../utils/helper/utils';\nimport { Language } from '../../utils/common/language-types';\nimport { constructHintTextObject } from '../../utils/components/hints/hints';\nimport { InputFocusBlurEvent, EventType, InputInteractionEvent } from '../../utils/events/event-handler.interface';\nimport { handleInputEvent } from '../../utils/events/event-handler';\n\nimport { default as translations } from '../../translations/global.i18n.json';\nimport { ErrorMessage } from '../../utils/components/error-message/error-message';\n\n@Component({\n\ttag: 'ontario-dropdown-list',\n\tstyleUrl: 'ontario-dropdown-list.scss',\n\tshadow: true,\n\tformAssociated: true,\n\tassetsDirs: ['./assets'],\n})\nexport class OntarioDropdownList implements Dropdown {\n\t@Element() element: HTMLElement;\n\t@AttachInternals() internals: ElementInternals;\n\n\thintTextRef: HTMLOntarioHintTextElement | undefined;\n\n\t/**\n\t * The text to display for the dropdown list label.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * name=\"ontario-dropdown-list\"\n\t * caption='{\n\t * \"captionText\": \"Label\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * ...>\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() caption: Caption | string;\n\n\t/**\n\t * The language of the component.\n\t * This is used for translations, and is by default set through event listeners checking for a language property from the header. If no language is passed, it will default to English.\n\t */\n\t@Prop({ mutable: true }) language?: Language;\n\n\t/**\n\t * The name for the dropdown list. The name value is used to reference form data after a form is submitted.\n\t */\n\t@Prop() name: string;\n\n\t/**\n\t * The ID for the dropdown list.\n\t * If no ID is provided, one will be generated.\n\t */\n\t@Prop({ mutable: true }) elementId?: string;\n\n\t/**\n\t * The options for dropdown list.\n\t *\n\t * Each option will be passed in through an object in the options array.\n\t * This can either be passed in as an object directly (if using react), or as a string in HTML.\n\t *\n\t * In the example below, the options are being passed in as a string and there are three dropdown options displayed.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * caption='{\n\t * \"captionText\": \"Label\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * name=\"ontario-dropdown-list\"\n\t * options='[\n\t * {\n\t * \"value\": \"dropdown-option-1\",\n\t * \"label\": \"Option 1\",\n\t * \"selected\": \"true\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-2\",\n\t * \"label\": \"Option 2\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-3\",\n\t * \"label\": \"Option 3\"\n\t * }\n\t * ]'\n\t * >\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() options: string | DropdownOption[];\n\n\t/**\n\t * This is used to determine whether the dropdown list is required or not.\n\t * This prop also gets passed to the InputCaption utility to display either an optional or required flag in the label.\n\t * If no prop is set, it will default to false (optional).\n\t */\n\t@Prop() required?: boolean = false;\n\n\t/**\n\t * This prop is used to determine whether or not the initial option displayed is empty.\n\t * If set to `true`, it will render the default “select” text.\n\t * If set to a string, it will render the string value.\n\t *\n\t * @example\n\t * <ontario-dropdown-list is-empty-start-option=\"true\"></ontario-dropdown-list>\n\t *\n\t * or\n\t *\n\t * <ontario-dropdown-list is-empty-start-option=\"Please select\"></ontario-dropdown-list>\n\t */\n\t@Prop() isEmptyStartOption?: boolean | string = false;\n\n\t/**\n\t * Used to include the ontario-hint-text component for the dropdown list.\n\t * This is optional.\n\t */\n\t@Prop() hintText?: string | Hint;\n\n\t/**\n\t * Used to include the ontario-hint-expander component for the dropdown list component.\n\t * This is passed in as an object with key-value pairs.\n\t *\n\t * This is optional.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * caption='{\n\t * \"caption\": \"What province do you live in?\",\n\t * \"captionType\": \"heading\",\n\t * }\n\t * name=\"ontario-dropdown-list\"\n\t * options='[\n\t * {\n\t * \"value\": \"dropdown-option-1\",\n\t * \"label\": \"Option 1\",\n\t * \"selected\": \"true\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-2\",\n\t * \"label\": \"Option 2\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-3\",\n\t * \"label\": \"Option 3\"\n\t * }\n\t * ]'\n\t * hint-expander='{\n\t * \"hint\": \"Hint expander for the dropdown list\",\n\t * \"content\": \"Example hint expander content for the dropdown list.\"\n\t * }'\n\t * >\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() hintExpander?: HintExpander | string;\n\n\t/**\n\t * Set this to display an error message\n\t */\n\t@Prop({ mutable: true }) errorMessage?: string;\n\n\t/**\n\t * Used to add a custom function to the dropdown onChange event.\n\t */\n\t@Prop() customOnChange?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used to add a custom function to the dropdown onBlur event.\n\t */\n\t@Prop() customOnBlur?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used to add a custom function to the dropdown onFocus event.\n\t */\n\t@Prop() customOnFocus?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used for the `aria-describedby` value of the dropdown list. This will match with the id of the hint text.\n\t */\n\t@State() hintTextId: string | null | undefined;\n\n\t/**\n\t * Instantiate an InputCaption object for internal logic use\n\t */\n\t@State() private captionState: InputCaption;\n\n\t/**\n\t * The options are re-assigned to the internalOptions array.\n\t */\n\t@State() private internalOptions: DropdownOption[];\n\n\t/**\n\t * The hint text options are re-assigned to the internalHintText array.\n\t */\n\t@State() private internalHintText: Hint;\n\n\t/**\n\t * The hint expander options are re-assigned to the internalHintExpander array.\n\t */\n\t@State() private internalHintExpander: HintExpander;\n\n\t@State() translations: any = translations;\n\n\t/**\n\t * Emitted when a keyboard input or mouse event occurs when a dropdown list has been changed.\n\t */\n\t@Event() dropdownOnChange: EventEmitter<InputInteractionEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when a dropdown list has lost focus.\n\t */\n\t@Event() dropdownOnBlur: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when a dropdown list has gained focus.\n\t */\n\t@Event() dropdownOnFocus: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * Emitted when an error message is reported to the component.\n\t */\n\t@Event() inputErrorOccurred: EventEmitter<{ errorMessage: string }>;\n\n\t/**\n\t * This listens for the `setAppLanguage` event sent from the test language toggler when it is is connected to the DOM. It is used for the initial language when the input component loads.\n\t */\n\t@Listen('setAppLanguage', { target: 'window' })\n\thandleSetAppLanguage(event: CustomEvent<Language>) {\n\t\tif (!this.language) {\n\t\t\tthis.language = validateLanguage(event);\n\t\t}\n\t}\n\n\t@Listen('headerLanguageToggled', { target: 'window' })\n\thandleHeaderLanguageToggled(event: CustomEvent<Language>) {\n\t\tthis.language = validateLanguage(event);\n\t}\n\n\t/*\n\t * Watch for changes in the `name` prop for validation purposes.\n\t *\n\t * Validate the `name` and make sure the `name` prop has a value.\n\t * Log a warning if user doesn't input a value for the `name`.\n\t */\n\t@Watch('name')\n\tvalidateName(newValue: string) {\n\t\tif (validatePropExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' name ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/*\n\t * Watch for changes in the `options` prop for validation purposes.\n\t *\n\t * Validate the `options` and make sure the `options` prop has a value.\n\t * Log a warning if user doesn't input a value for the `options`.\n\t */\n\t@Watch('options')\n\tvalidateOptions(newValue: object) {\n\t\tif (validateObjectExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' options ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `options` prop.\n\t *\n\t * If an `options` prop is passed, it will be parsed (if it is a string), and the result will be set to the `internalOptions` state. The result will be run through a validation function.\n\t */\n\t@Watch('options')\n\tparseOptions() {\n\t\tif (typeof this.options !== 'undefined') {\n\t\t\tif (!Array.isArray(this.options)) {\n\t\t\t\tthis.internalOptions = JSON.parse(this.options);\n\t\t\t} else {\n\t\t\t\tthis.internalOptions = this.options;\n\t\t\t}\n\t\t}\n\n\t\t// Check selected status of options and set the selectedValue\n\t\tthis.validateSelectedOption(this.internalOptions);\n\t}\n\n\t/**\n\t * Watch for changes to the `caption` prop.\n\t *\n\t * The caption will be run through the InputCaption constructor to convert it to the correct format, and set the result to the `captionState` state.\n\t * @param newValue: Caption | string\n\t */\n\t@Watch('caption')\n\tprivate updateCaptionState(newValue: Caption | string) {\n\t\tthis.captionState = new InputCaption(\n\t\t\tthis.element.tagName,\n\t\t\tnewValue,\n\t\t\ttranslations,\n\t\t\tthis.language,\n\t\t\tfalse,\n\t\t\tthis.required,\n\t\t);\n\t}\n\n\t/**\n\t * Watch for changes to the `hintText` prop.\n\t *\n\t * If a `hintText` prop is passed, the `constructHintTextObject` function will convert it to the correct format, and set the result to the `internalHintText` state.\n\t */\n\t@Watch('hintText')\n\tprivate parseHintText() {\n\t\tif (this.hintText) {\n\t\t\tconst hintTextObject = constructHintTextObject(this.hintText);\n\t\t\tthis.internalHintText = hintTextObject;\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `language` prop to render either the English or French translations\n\t */\n\t@Watch('language')\n\tupdateLanguage() {\n\t\tthis.updateCaptionState(this.caption);\n\t}\n\n\t/**\n\t * Watch for changes to the `hintExpander` prop.\n\t *\n\t * If a `hintExpander` prop is passed, it will be parsed (if it is a string), and the result will be set to the `internalHintExpander` state.\n\t */\n\t@Watch('hintExpander')\n\tprivate parseHintExpander() {\n\t\tconst hintExpander = this.hintExpander;\n\t\tif (hintExpander) {\n\t\t\tif (typeof hintExpander === 'string') this.internalHintExpander = JSON.parse(hintExpander);\n\t\t\telse this.internalHintExpander = hintExpander;\n\t\t}\n\t}\n\n\t@Watch('errorMessage')\n\tbroadcastInputErrorOccurredEvent() {\n\t\t// Emit event to notify anyone who wants to listen for errors occurring\n\t\tthis.inputErrorOccurred.emit({ errorMessage: this.errorMessage ?? '' });\n\t}\n\n\t/**\n\t * Function to handle dropdown list events and the information pertaining to the dropdown list to emit.\n\t */\n\tprivate handleEvent(event: Event, eventType: EventType) {\n\t\tconst input = event.target as HTMLSelectElement | null;\n\n\t\tthis.internals?.setFormValue?.(input?.value ?? '');\n\n\t\thandleInputEvent(\n\t\t\tevent,\n\t\t\teventType,\n\t\t\tinput,\n\t\t\tthis.dropdownOnChange,\n\t\t\tthis.dropdownOnFocus,\n\t\t\tthis.dropdownOnBlur,\n\t\t\tundefined,\n\t\t\t'dropdown',\n\t\t\tthis.customOnChange,\n\t\t\tthis.customOnFocus,\n\t\t\tthis.customOnBlur,\n\t\t\tundefined,\n\t\t\tthis.element,\n\t\t);\n\t}\n\n\tpublic getId(): string {\n\t\treturn this.elementId ?? '';\n\t}\n\n\t/**\n\t * This function will set a selected key to `false` for each dropdown if no selected value is passed.\n\t *\n\t * It will also pass a warning to the user if multiple `true` selected values are passed.\n\t *\n\t * @param options\n\t * @returns options\n\t */\n\tprivate validateSelectedOption(options: DropdownOption[]) {\n\t\tconst selected = 'selected';\n\n\t\toptions.forEach((singleOption) => {\n\t\t\t// if no selected key is passed, set a default key to false\n\t\t\tif (!singleOption.hasOwnProperty(selected)) {\n\t\t\t\tsingleOption.selected = false;\n\t\t\t}\n\t\t});\n\n\t\tif (hasMultipleTrueValues(options, selected)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' There are duplicate truthy `selected` values ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\n\t\t\t\t.addRegularText('options. Please update options so only one truthy `selected` value exists.')\n\t\t\t\t.printMessage();\n\t\t}\n\n\t\treturn options;\n\t}\n\n\tprivate getDropdownArrow() {\n\t\treturn {\n\t\t\tbackgroundImage: `url(${getAssetPath('./assets/ontario-material-dropdown-arrow-48px.svg')})`,\n\t\t};\n\t}\n\n\tprivate getClass(): string {\n\t\treturn this.hintExpander\n\t\t\t? `ontario-input ontario-dropdown ontario-dropdown-hint-expander--true`\n\t\t\t: `ontario-input ontario-dropdown`;\n\t}\n\n\t/**\n\t * If a `hintText` prop is passed, the id generated from it will be set to the internal `hintTextId` state to match with the select `aria-describedBy` attribute.\n\t */\n\tasync componentDidLoad() {\n\t\tthis.hintTextId = await this.hintTextRef?.getHintTextId();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.updateCaptionState(this.caption);\n\t\tthis.parseOptions();\n\t\tthis.validateName(this.name);\n\t\tthis.validateOptions(this.internalOptions);\n\t\tthis.elementId = this.elementId ?? uuid();\n\t\tthis.parseHintText();\n\t\tthis.parseHintExpander();\n\t\tthis.language = validateLanguage(this.language);\n\t}\n\n\trender() {\n\t\tconst error = !!this.errorMessage;\n\t\treturn (\n\t\t\t<div class={`ontario-form-group ${error ? 'ontario-dropdown--error' : ''}`}>\n\t\t\t\t{this.captionState.getCaption(this.getId(), !!this.internalHintExpander)}\n\t\t\t\t{this.internalHintText && (\n\t\t\t\t\t<ontario-hint-text\n\t\t\t\t\t\thint={this.internalHintText.hint}\n\t\t\t\t\t\thintContentType={this.internalHintText.hintContentType}\n\t\t\t\t\t\tref={(el) => (this.hintTextRef = el)}\n\t\t\t\t\t></ontario-hint-text>\n\t\t\t\t)}\n\t\t\t\t<ErrorMessage message={this.errorMessage} error={error} />\n\t\t\t\t<select\n\t\t\t\t\tclass={this.getClass()}\n\t\t\t\t\taria-describedby={this.hintTextId}\n\t\t\t\t\tid={this.getId()}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\tstyle={this.getDropdownArrow()}\n\t\t\t\t\tonChange={(e) => this.handleEvent(e, EventType.Change)}\n\t\t\t\t\tonBlur={(e) => this.handleEvent(e, EventType.Blur)}\n\t\t\t\t\tonFocus={(e) => this.handleEvent(e, EventType.Focus)}\n\t\t\t\t\trequired={!!this.required}\n\t\t\t\t>\n\t\t\t\t\t{this.isEmptyStartOption &&\n\t\t\t\t\t\t(this.isEmptyStartOption === true || this.isEmptyStartOption === 'true' ? (\n\t\t\t\t\t\t\t<option>{this.translations.dropdownList.select[`${this.language}`]}</option>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<option>{this.isEmptyStartOption}</option>\n\t\t\t\t\t\t))}\n\n\t\t\t\t\t{this.internalOptions?.map((dropdown) => (\n\t\t\t\t\t\t<option value={dropdown.value} selected={dropdown.selected}>\n\t\t\t\t\t\t\t{dropdown.label}\n\t\t\t\t\t\t</option>\n\t\t\t\t\t)) ?? ''}\n\t\t\t\t</select>\n\t\t\t\t{this.internalHintExpander && (\n\t\t\t\t\t<ontario-hint-expander\n\t\t\t\t\t\thint={this.internalHintExpander.hint}\n\t\t\t\t\t\tcontent={this.internalHintExpander.content}\n\t\t\t\t\t\thintContentType={this.internalHintExpander.hintContentType}\n\t\t\t\t\t></ontario-hint-expander>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
1
|
+
{"file":"ontario-dropdown-list.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,sBAAsB,GAAG,4vTAA4vT,CAAC;AAC5xT,kCAAe,sBAAsB;;MC2CxBA,qBAAmB;;;;;;;;;;;;;;;wBA8EF,KAAK;kCAcc,KAAK;;;;;;;;;;;;4BA0FxB,YAAY;;;;;IA0BzC,oBAAoB,CAAC,KAA4B;QAChD,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YACnB,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;SACxC;KACD;IAGD,2BAA2B,CAAC,KAA4B;QACvD,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;KACxC;;;;;;;IASD,YAAY,CAAC,QAAgB;QAC5B,IAAI,kBAAkB,CAAC,QAAQ,CAAC,EAAE;YACjC,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE,CAAC;YAC1C,OAAO;iBACL,kBAAkB,EAAE;iBACpB,gBAAgB,CAAC,QAAQ,CAAC;iBA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M,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAU,KAE5E,kBAAS,IAAI,CAAC,kBAAkB,CAAU,CAC1C,CAAC,EAEF,MAAA,MAAA,IAAI,CAAC,eAAe,0CAAE,GAAG,CAAC,CAAC,QAAQ,MACnC,cAAQ,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,IACxD,QAAQ,CAAC,KAAK,CACP,CACT,CAAC,mCAAI,EAAE,CACA,EACR,IAAI,CAAC,oBAAoB,KACzB,6BACC,IAAI,EAAE,IAAI,CAAC,oBAAoB,CAAC,IAAI,EACpC,OAAO,EAAE,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAC1C,eAAe,EAAE,IAAI,CAAC,oBAAoB,CAAC,eAAe,GAClC,CACzB,CACI,EACL;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioDropdownList","uuid"],"sources":["src/components/ontario-dropdown-list/ontario-dropdown-list.scss?tag=ontario-dropdown-list&encapsulation=shadow","src/components/ontario-dropdown-list/ontario-dropdown-list.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/4-elements/_global.elements.scss';\n@use '../../styles/form.scss';\n@forward '../../utils/components/error-message/error-message';\n\n$ontario-dropdown-border-width: 0.125rem;\n\n.ontario-dropdown {\n\tbackground-color: colours.$ontario-colour-white;\n\tbackground-position: right spacing.$spacing-2 center;\n\tbackground-repeat: no-repeat;\n\tbackground-size: spacing.$spacing-6;\n\tpadding-right: (spacing.$spacing-4 * 2.25);\n\tcursor: pointer;\n\n\t&.ontario-dropdown-hint-expander--true {\n\t\tmargin-bottom: spacing.$spacing-4;\n\t}\n}\n\n/* These styles are to fix differences in default styling for dropdowns in IE */\n.ontario-dropdown::-ms-expand {\n\tdisplay: none;\n}\n\n.ontario-dropdown option {\n\tfont-weight: normal;\n}\n\n.ontario-dropdown--error {\n\tselect {\n\t\tborder: $ontario-dropdown-border-width solid colours.$ontario-colour-alert;\n\t}\n}\n","import {\n\tComponent,\n\tState,\n\tElement,\n\th,\n\tProp,\n\tEvent,\n\tListen,\n\tWatch,\n\tgetAssetPath,\n\tEventEmitter,\n\tAttachInternals,\n} from '@stencil/core';\nimport { v4 as uuid } from 'uuid';\n\nimport { DropdownOption } from './dropdown-option.interface';\nimport { Dropdown } from './dropdown.interface';\nimport { HintExpander } from '../ontario-hint-expander/hint-expander.interface';\n\nimport { Hint } from '../../utils/common/common.interface';\nimport { InputCaption } from '../../utils/common/input-caption/input-caption';\nimport { Caption } from '../../utils/common/input-caption/caption.interface';\nimport {\n\tvalidateObjectExists,\n\tvalidatePropExists,\n\tvalidateLanguage,\n} from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\nimport { hasMultipleTrueValues } from '../../utils/helper/utils';\nimport { Language } from '../../utils/common/language-types';\nimport { constructHintTextObject } from '../../utils/components/hints/hints';\nimport { InputFocusBlurEvent, EventType, InputInteractionEvent } from '../../utils/events/event-handler.interface';\nimport { handleInputEvent } from '../../utils/events/event-handler';\n\nimport { default as translations } from '../../translations/global.i18n.json';\nimport { ErrorMessage } from '../../utils/components/error-message/error-message';\n\n@Component({\n\ttag: 'ontario-dropdown-list',\n\tstyleUrl: 'ontario-dropdown-list.scss',\n\tshadow: true,\n\tformAssociated: true,\n\tassetsDirs: ['./assets'],\n})\nexport class OntarioDropdownList implements Dropdown {\n\t@Element() element: HTMLElement;\n\t@AttachInternals() internals: ElementInternals;\n\n\thintTextRef: HTMLOntarioHintTextElement | undefined;\n\n\t/**\n\t * The text to display for the dropdown list label.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * name=\"ontario-dropdown-list\"\n\t * caption='{\n\t * \"captionText\": \"Label\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * ...>\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() caption: Caption | string;\n\n\t/**\n\t * The language of the component.\n\t * This is used for translations, and is by default set through event listeners checking for a language property from the header. If no language is passed, it will default to English.\n\t */\n\t@Prop({ mutable: true }) language?: Language;\n\n\t/**\n\t * The name for the dropdown list. The name value is used to reference form data after a form is submitted.\n\t */\n\t@Prop() name: string;\n\n\t/**\n\t * The ID for the dropdown list.\n\t * If no ID is provided, one will be generated.\n\t */\n\t@Prop({ mutable: true }) elementId?: string;\n\n\t/**\n\t * The options for dropdown list.\n\t *\n\t * Each option will be passed in through an object in the options array.\n\t * This can either be passed in as an object directly (if using react), or as a string in HTML.\n\t *\n\t * In the example below, the options are being passed in as a string and there are three dropdown options displayed.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * caption='{\n\t * \"captionText\": \"Label\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * name=\"ontario-dropdown-list\"\n\t * options='[\n\t * {\n\t * \"value\": \"dropdown-option-1\",\n\t * \"label\": \"Option 1\",\n\t * \"selected\": \"true\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-2\",\n\t * \"label\": \"Option 2\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-3\",\n\t * \"label\": \"Option 3\"\n\t * }\n\t * ]'\n\t * >\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() options: string | DropdownOption[];\n\n\t/**\n\t * This is used to determine whether the dropdown list is required or not.\n\t * This prop also gets passed to the InputCaption utility to display either an optional or required flag in the label.\n\t * If no prop is set, it will default to false (optional).\n\t */\n\t@Prop() required?: boolean = false;\n\n\t/**\n\t * This prop is used to determine whether or not the initial option displayed is empty.\n\t * If set to `true`, it will render the default “select” text.\n\t * If set to a string, it will render the string value.\n\t *\n\t * @example\n\t * <ontario-dropdown-list is-empty-start-option=\"true\"></ontario-dropdown-list>\n\t *\n\t * or\n\t *\n\t * <ontario-dropdown-list is-empty-start-option=\"Please select\"></ontario-dropdown-list>\n\t */\n\t@Prop() isEmptyStartOption?: boolean | string = false;\n\n\t/**\n\t * Used to include the ontario-hint-text component for the dropdown list.\n\t * This is optional.\n\t */\n\t@Prop() hintText?: string | Hint;\n\n\t/**\n\t * Used to include the ontario-hint-expander component for the dropdown list component.\n\t * This is passed in as an object with key-value pairs.\n\t *\n\t * This is optional.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * caption='{\n\t * \"caption\": \"What province do you live in?\",\n\t * \"captionType\": \"heading\",\n\t * }\n\t * name=\"ontario-dropdown-list\"\n\t * options='[\n\t * {\n\t * \"value\": \"dropdown-option-1\",\n\t * \"label\": \"Option 1\",\n\t * \"selected\": \"true\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-2\",\n\t * \"label\": \"Option 2\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-3\",\n\t * \"label\": \"Option 3\"\n\t * }\n\t * ]'\n\t * hint-expander='{\n\t * \"hint\": \"Hint expander for the dropdown list\",\n\t * \"content\": \"Example hint expander content for the dropdown list.\"\n\t * }'\n\t * >\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() hintExpander?: HintExpander | string;\n\n\t/**\n\t * Set this to display an error message\n\t */\n\t@Prop({ mutable: true }) errorMessage?: string;\n\n\t/**\n\t * Used to add a custom function to the dropdown onChange event.\n\t */\n\t@Prop() customOnChange?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used to add a custom function to the dropdown onBlur event.\n\t */\n\t@Prop() customOnBlur?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used to add a custom function to the dropdown onFocus event.\n\t */\n\t@Prop() customOnFocus?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used for the `aria-describedby` value of the dropdown list. This will match with the id of the hint text.\n\t */\n\t@State() hintTextId: string | null | undefined;\n\n\t/**\n\t * Instantiate an InputCaption object for internal logic use\n\t */\n\t@State() private captionState: InputCaption;\n\n\t/**\n\t * The options are re-assigned to the internalOptions array.\n\t */\n\t@State() private internalOptions: DropdownOption[];\n\n\t/**\n\t * The hint text options are re-assigned to the internalHintText array.\n\t */\n\t@State() private internalHintText: Hint;\n\n\t/**\n\t * The hint expander options are re-assigned to the internalHintExpander array.\n\t */\n\t@State() private internalHintExpander: HintExpander;\n\n\t@State() translations: any = translations;\n\n\t/**\n\t * Emitted when a keyboard input or mouse event occurs when a dropdown list has been changed.\n\t */\n\t@Event() dropdownOnChange: EventEmitter<InputInteractionEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when a dropdown list has lost focus.\n\t */\n\t@Event() dropdownOnBlur: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when a dropdown list has gained focus.\n\t */\n\t@Event() dropdownOnFocus: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * Emitted when an error message is reported to the component.\n\t */\n\t@Event() inputErrorOccurred: EventEmitter<{ errorMessage: string }>;\n\n\t/**\n\t * This listens for the `setAppLanguage` event sent from the test language toggler when it is is connected to the DOM. It is used for the initial language when the input component loads.\n\t */\n\t@Listen('setAppLanguage', { target: 'window' })\n\thandleSetAppLanguage(event: CustomEvent<Language>) {\n\t\tif (!this.language) {\n\t\t\tthis.language = validateLanguage(event);\n\t\t}\n\t}\n\n\t@Listen('headerLanguageToggled', { target: 'window' })\n\thandleHeaderLanguageToggled(event: CustomEvent<Language>) {\n\t\tthis.language = validateLanguage(event);\n\t}\n\n\t/*\n\t * Watch for changes in the `name` prop for validation purposes.\n\t *\n\t * Validate the `name` and make sure the `name` prop has a value.\n\t * Log a warning if user doesn't input a value for the `name`.\n\t */\n\t@Watch('name')\n\tvalidateName(newValue: string) {\n\t\tif (validatePropExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' name ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/*\n\t * Watch for changes in the `options` prop for validation purposes.\n\t *\n\t * Validate the `options` and make sure the `options` prop has a value.\n\t * Log a warning if user doesn't input a value for the `options`.\n\t */\n\t@Watch('options')\n\tvalidateOptions(newValue: object) {\n\t\tif (validateObjectExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' options ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `options` prop.\n\t *\n\t * If an `options` prop is passed, it will be parsed (if it is a string), and the result will be set to the `internalOptions` state. The result will be run through a validation function.\n\t */\n\t@Watch('options')\n\tparseOptions() {\n\t\tif (typeof this.options !== 'undefined') {\n\t\t\tif (!Array.isArray(this.options)) {\n\t\t\t\tthis.internalOptions = JSON.parse(this.options);\n\t\t\t} else {\n\t\t\t\tthis.internalOptions = this.options;\n\t\t\t}\n\t\t}\n\n\t\t// Check selected status of options and set the selectedValue\n\t\tthis.validateSelectedOption(this.internalOptions);\n\t}\n\n\t/**\n\t * Watch for changes to the `caption` prop.\n\t *\n\t * The caption will be run through the InputCaption constructor to convert it to the correct format, and set the result to the `captionState` state.\n\t * @param newValue: Caption | string\n\t */\n\t@Watch('caption')\n\tprivate updateCaptionState(newValue: Caption | string) {\n\t\tthis.captionState = new InputCaption(\n\t\t\tthis.element.tagName,\n\t\t\tnewValue,\n\t\t\ttranslations,\n\t\t\tthis.language,\n\t\t\tfalse,\n\t\t\tthis.required,\n\t\t);\n\t}\n\n\t/**\n\t * Watch for changes to the `hintText` prop.\n\t *\n\t * If a `hintText` prop is passed, the `constructHintTextObject` function will convert it to the correct format, and set the result to the `internalHintText` state.\n\t */\n\t@Watch('hintText')\n\tprivate parseHintText() {\n\t\tif (this.hintText) {\n\t\t\tconst hintTextObject = constructHintTextObject(this.hintText);\n\t\t\tthis.internalHintText = hintTextObject;\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `language` prop to render either the English or French translations\n\t */\n\t@Watch('language')\n\tupdateLanguage() {\n\t\tthis.updateCaptionState(this.caption);\n\t}\n\n\t/**\n\t * Watch for changes to the `hintExpander` prop.\n\t *\n\t * If a `hintExpander` prop is passed, it will be parsed (if it is a string), and the result will be set to the `internalHintExpander` state.\n\t */\n\t@Watch('hintExpander')\n\tprivate parseHintExpander() {\n\t\tconst hintExpander = this.hintExpander;\n\t\tif (hintExpander) {\n\t\t\tif (typeof hintExpander === 'string') this.internalHintExpander = JSON.parse(hintExpander);\n\t\t\telse this.internalHintExpander = hintExpander;\n\t\t}\n\t}\n\n\t@Watch('errorMessage')\n\tbroadcastInputErrorOccurredEvent() {\n\t\t// Emit event to notify anyone who wants to listen for errors occurring\n\t\tthis.inputErrorOccurred.emit({ errorMessage: this.errorMessage ?? '' });\n\t}\n\n\t/**\n\t * Function to handle dropdown list events and the information pertaining to the dropdown list to emit.\n\t */\n\tprivate handleEvent(event: Event, eventType: EventType) {\n\t\tconst input = event.target as HTMLSelectElement | null;\n\n\t\tthis.internals?.setFormValue?.(input?.value ?? '');\n\n\t\thandleInputEvent(\n\t\t\tevent,\n\t\t\teventType,\n\t\t\tinput,\n\t\t\tthis.dropdownOnChange,\n\t\t\tthis.dropdownOnFocus,\n\t\t\tthis.dropdownOnBlur,\n\t\t\tundefined,\n\t\t\t'dropdown',\n\t\t\tthis.customOnChange,\n\t\t\tthis.customOnFocus,\n\t\t\tthis.customOnBlur,\n\t\t\tundefined,\n\t\t\tthis.element,\n\t\t);\n\t}\n\n\tpublic getId(): string {\n\t\treturn this.elementId ?? '';\n\t}\n\n\t/**\n\t * This function will set a selected key to `false` for each dropdown if no selected value is passed.\n\t *\n\t * It will also pass a warning to the user if multiple `true` selected values are passed.\n\t *\n\t * @param options\n\t * @returns options\n\t */\n\tprivate validateSelectedOption(options: DropdownOption[]) {\n\t\tconst selected = 'selected';\n\n\t\toptions.forEach((singleOption) => {\n\t\t\t// if no selected key is passed, set a default key to false\n\t\t\tif (!singleOption.hasOwnProperty(selected)) {\n\t\t\t\tsingleOption.selected = false;\n\t\t\t}\n\t\t});\n\n\t\tif (hasMultipleTrueValues(options, selected)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' There are duplicate truthy `selected` values ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\n\t\t\t\t.addRegularText('options. Please update options so only one truthy `selected` value exists.')\n\t\t\t\t.printMessage();\n\t\t}\n\n\t\treturn options;\n\t}\n\n\tprivate getDropdownArrow() {\n\t\treturn {\n\t\t\tbackgroundImage: `url(${getAssetPath('./assets/ontario-material-dropdown-arrow-48px.svg')})`,\n\t\t};\n\t}\n\n\tprivate getClass(): string {\n\t\treturn this.hintExpander\n\t\t\t? `ontario-input ontario-dropdown ontario-dropdown-hint-expander--true`\n\t\t\t: `ontario-input ontario-dropdown`;\n\t}\n\n\t/**\n\t * If a `hintText` prop is passed, the id generated from it will be set to the internal `hintTextId` state to match with the select `aria-describedBy` attribute.\n\t */\n\tasync componentDidLoad() {\n\t\tthis.hintTextId = await this.hintTextRef?.getHintTextId();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.updateCaptionState(this.caption);\n\t\tthis.parseOptions();\n\t\tthis.validateName(this.name);\n\t\tthis.validateOptions(this.internalOptions);\n\t\tthis.elementId = this.elementId ?? uuid();\n\t\tthis.parseHintText();\n\t\tthis.parseHintExpander();\n\t\tthis.language = validateLanguage(this.language);\n\t}\n\n\trender() {\n\t\tconst error = !!this.errorMessage;\n\t\treturn (\n\t\t\t<div class={`ontario-form-group ${error ? 'ontario-dropdown--error' : ''}`}>\n\t\t\t\t{this.captionState.getCaption(this.getId(), !!this.internalHintExpander)}\n\t\t\t\t{this.internalHintText && (\n\t\t\t\t\t<ontario-hint-text\n\t\t\t\t\t\thint={this.internalHintText.hint}\n\t\t\t\t\t\thintContentType={this.internalHintText.hintContentType}\n\t\t\t\t\t\tref={(el) => (this.hintTextRef = el)}\n\t\t\t\t\t></ontario-hint-text>\n\t\t\t\t)}\n\t\t\t\t<ErrorMessage message={this.errorMessage} error={error} />\n\t\t\t\t<select\n\t\t\t\t\tclass={this.getClass()}\n\t\t\t\t\taria-describedby={this.hintTextId}\n\t\t\t\t\tid={this.getId()}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\tstyle={this.getDropdownArrow()}\n\t\t\t\t\tonChange={(e) => this.handleEvent(e, EventType.Change)}\n\t\t\t\t\tonBlur={(e) => this.handleEvent(e, EventType.Blur)}\n\t\t\t\t\tonFocus={(e) => this.handleEvent(e, EventType.Focus)}\n\t\t\t\t\trequired={!!this.required}\n\t\t\t\t>\n\t\t\t\t\t{this.isEmptyStartOption &&\n\t\t\t\t\t\t(this.isEmptyStartOption === true || this.isEmptyStartOption === 'true' ? (\n\t\t\t\t\t\t\t<option>{this.translations.dropdownList.select[`${this.language}`]}</option>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<option>{this.isEmptyStartOption}</option>\n\t\t\t\t\t\t))}\n\n\t\t\t\t\t{this.internalOptions?.map((dropdown) => (\n\t\t\t\t\t\t<option value={dropdown.value} selected={dropdown.selected}>\n\t\t\t\t\t\t\t{dropdown.label}\n\t\t\t\t\t\t</option>\n\t\t\t\t\t)) ?? ''}\n\t\t\t\t</select>\n\t\t\t\t{this.internalHintExpander && (\n\t\t\t\t\t<ontario-hint-expander\n\t\t\t\t\t\thint={this.internalHintExpander.hint}\n\t\t\t\t\t\tcontent={this.internalHintExpander.content}\n\t\t\t\t\t\thintContentType={this.internalHintExpander.hintContentType}\n\t\t\t\t\t></ontario-hint-expander>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -4,7 +4,7 @@ import { C as ConsoleMessageClass } from './console-message.js';
|
|
|
4
4
|
import { a as validateValueAgainstArray, b as validatePropExists } from './validation-functions.js';
|
|
5
5
|
|
|
6
6
|
const ontarioFieldsetCss =
|
|
7
|
-
'@charset "UTF-8";h6,.ontario-h6,h5,.ontario-h5,h4,.ontario-h4,h3,.ontario-h3,h2,.ontario-h2,.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1,h1,.ontario-h1{font-style:normal;font-weight:700;text-rendering:optimizeLegibility;margin-bottom:1rem;font-feature-settings:normal;font-family:"Raleway", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif}.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1,h1,.ontario-h1{font-size:2rem;letter-spacing:0.04rem;line-height:1.29;margin:2.5rem 0 1.5rem 0;max-width:70rem}@media screen and (min-width: 40em){.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1,h1,.ontario-h1{font-size:2.5rem;letter-spacing:0.04rem;line-height:1.2}}h2,.ontario-h2{font-size:1.6875rem;letter-spacing:0.03rem;line-height:1.37;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h2,.ontario-h2{font-size:2.0625rem;letter-spacing:0.02rem;line-height:1.33}}h3,.ontario-h3{font-size:1.4375rem;letter-spacing:0.02rem;line-height:1.39;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h3,.ontario-h3{font-size:1.75rem;letter-spacing:0.02rem;line-height:1.43}}h4,.ontario-h4{font-size:1.25rem;letter-spacing:0.03rem;line-height:1.5;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h4,.ontario-h4{font-size:1.5rem;letter-spacing:0.0313rem;line-height:1.5}}h5,.ontario-h5{font-size:1.125rem;letter-spacing:0.03rem;line-height:1.56;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h5,.ontario-h5{font-size:1.1875rem;letter-spacing:0.025rem;line-height:1.5}}h6,.ontario-h6{font-size:1rem;line-height:1.56;letter-spacing:0.03rem;max-width:48rem;margin:0 0 0.75rem 0}@media screen and (min-width: 40em){h6,.ontario-h6{font-size:1rem;letter-spacing:0.025rem;line-height:1.5}}.ontario-lead-statement{font-size:1.25rem;line-height:1.6;max-width:70rem}@media screen and (min-width: 40em){.ontario-lead-statement{font-size:1.375rem}}html{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem}body{font-size:1rem;line-height:1.6;background-color:#FFFFFF;color:#1a1a1a;margin:0}p{font-size:inherit;margin-bottom:1.25rem;text-rendering:optimizeLegibility;margin:0 0 1.5rem 0}cite{font-style:italic;line-height:inherit}strong{font-weight:700;line-height:inherit}*,*::before,*::after{box-sizing:inherit}main p,main p:not(.ontario-lead-statement),main dd,main li{max-width:48rem}hr{border:0;padding:0;margin:2.5rem 0;border-bottom:4px solid #cccccc}hr.ontario-hr--dark{border-bottom:4px solid #1a1a1a}a{color:#0066CC;text-decoration:underline}a:visited{color:#551A8B}a:hover{color:#00478F}a:active{color:#002142}a:focus{-moz-box-shadow:0 0 0 4px #009ADB;-webkit-box-shadow:0 0 0 4px #009ADB;box-shadow:0 0 0 4px #009ADB;outline:4px solid transparent;transition:all 0.1s ease-in-out}p{margin:0 0 1.5rem 0}p+h1,p+h2,p+h3,p+h4,p+h5,p+h6,ul+h1,ul+h2,ul+h3,ul+h4,ul+h5,ul+h6,ol+h1,ol+h2,ol+h3,ol+h4,ol+h5,ol+h6,h1+h2,h2+h3,h3+h4,h4+h5,h5+h6{margin-top:2rem}p code,td code,li code{line-height:2.25rem}input[type=text],input[type=number],input[type=email],input[type=date],input[type=color],input[type=search],input[type=tel],textarea{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}input[type=checkbox]+label,input[type=radio]+label{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:400;margin-left:0;margin-right:0}fieldset{border:0;margin:0;padding:0;page-break-inside:avoid}legend,label{display:block;margin:0}select{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}ul,ol{padding:0}ul{margin-left:2rem}ul li{padding:0 0 0.75rem 0}ol{margin-left:1.75rem}ol li{padding:0 0 0.75rem 0.25rem}ul li:last-child,ol li:last-child{padding-bottom:0}ul[class*=columns-] li:last-child,ol[class*=columns-] li:last-child{padding-bottom:0.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 2rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 1.75rem}p+ul,p+ol{margin-top:-0.75rem}@media screen and (min-width: 40em){ul{margin:0.5rem 0 1.5rem 3rem}ol{margin:0.5rem 0 1.5rem 2.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 3rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 2.75rem}}.ontario-form-group:last-of-type{margin-bottom:2.5rem}.ontario-form-group:last-of-type{margin-bottom:3rem}.ontario-fieldset__legend{color:#1a1a1a;font-family:"Raleway", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1.1875rem;font-weight:700;margin:0 0 1rem 0;line-height:1.5;max-width:38.75em;white-space:normal;width:100
|
|
7
|
+
'@charset "UTF-8";h6,.ontario-h6,h5,.ontario-h5,h4,.ontario-h4,h3,.ontario-h3,h2,.ontario-h2,.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1,h1,.ontario-h1{font-style:normal;font-weight:700;text-rendering:optimizeLegibility;margin-bottom:1rem;font-feature-settings:normal;font-family:"Raleway", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif}.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1,h1,.ontario-h1{font-size:2rem;letter-spacing:0.04rem;line-height:1.29;margin:2.5rem 0 1.5rem 0;max-width:70rem}@media screen and (min-width: 40em){.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1,h1,.ontario-h1{font-size:2.5rem;letter-spacing:0.04rem;line-height:1.2}}h2,.ontario-h2{font-size:1.6875rem;letter-spacing:0.03rem;line-height:1.37;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h2,.ontario-h2{font-size:2.0625rem;letter-spacing:0.02rem;line-height:1.33}}h3,.ontario-h3{font-size:1.4375rem;letter-spacing:0.02rem;line-height:1.39;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h3,.ontario-h3{font-size:1.75rem;letter-spacing:0.02rem;line-height:1.43}}h4,.ontario-h4{font-size:1.25rem;letter-spacing:0.03rem;line-height:1.5;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h4,.ontario-h4{font-size:1.5rem;letter-spacing:0.0313rem;line-height:1.5}}h5,.ontario-h5{font-size:1.125rem;letter-spacing:0.03rem;line-height:1.56;margin:0 0 0.75rem 0;max-width:48rem}@media screen and (min-width: 40em){h5,.ontario-h5{font-size:1.1875rem;letter-spacing:0.025rem;line-height:1.5}}h6,.ontario-h6{font-size:1rem;line-height:1.56;letter-spacing:0.03rem;max-width:48rem;margin:0 0 0.75rem 0}@media screen and (min-width: 40em){h6,.ontario-h6{font-size:1rem;letter-spacing:0.025rem;line-height:1.5}}.ontario-lead-statement{font-size:1.25rem;line-height:1.6;max-width:70rem}@media screen and (min-width: 40em){.ontario-lead-statement{font-size:1.375rem}}html{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem}body{font-size:1rem;line-height:1.6;background-color:#FFFFFF;color:#1a1a1a;margin:0}p{font-size:inherit;margin-bottom:1.25rem;text-rendering:optimizeLegibility;margin:0 0 1.5rem 0}cite{font-style:italic;line-height:inherit}strong{font-weight:700;line-height:inherit}*,*::before,*::after{box-sizing:inherit}main p,main p:not(.ontario-lead-statement),main dd,main li{max-width:48rem}hr{border:0;padding:0;margin:2.5rem 0;border-bottom:4px solid #cccccc}hr.ontario-hr--dark{border-bottom:4px solid #1a1a1a}a{color:#0066CC;text-decoration:underline}a:visited{color:#551A8B}a:hover{color:#00478F}a:active{color:#002142}a:focus{-moz-box-shadow:0 0 0 4px #009ADB;-webkit-box-shadow:0 0 0 4px #009ADB;box-shadow:0 0 0 4px #009ADB;outline:4px solid transparent;transition:all 0.1s ease-in-out}p{margin:0 0 1.5rem 0}p+h1,p+h2,p+h3,p+h4,p+h5,p+h6,ul+h1,ul+h2,ul+h3,ul+h4,ul+h5,ul+h6,ol+h1,ol+h2,ol+h3,ol+h4,ol+h5,ol+h6,h1+h2,h2+h3,h3+h4,h4+h5,h5+h6{margin-top:2rem}p code,td code,li code{line-height:2.25rem}input[type=text],input[type=number],input[type=email],input[type=date],input[type=color],input[type=search],input[type=tel],textarea{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}input[type=checkbox]+label,input[type=radio]+label{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:400;margin-left:0;margin-right:0}fieldset{border:0;margin:0;padding:0;page-break-inside:avoid}legend,label{display:block;margin:0}select{background-origin:initial;height:auto;-webkit-appearance:none;-moz-appearance:none}ul,ol{padding:0}ul{margin-left:2rem}ul li{padding:0 0 0.75rem 0}ol{margin-left:1.75rem}ol li{padding:0 0 0.75rem 0.25rem}ul li:last-child,ol li:last-child{padding-bottom:0}ul[class*=columns-] li:last-child,ol[class*=columns-] li:last-child{padding-bottom:0.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 2rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 1.75rem}p+ul,p+ol{margin-top:-0.75rem}@media screen and (min-width: 40em){ul{margin:0.5rem 0 1.5rem 3rem}ol{margin:0.5rem 0 1.5rem 2.75rem}ul ul,ol ul{margin:0.5rem 0 0.5rem 3rem}ul ol,ol ol{margin:0.5rem 0 0.5rem 2.75rem}}.ontario-form-group:last-of-type{margin-bottom:2.5rem}.ontario-form-group:last-of-type{margin-bottom:3rem}.ontario-fieldset__legend{color:#1a1a1a;font-family:"Raleway", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1.1875rem;font-weight:700;margin:0 0 1rem 0;line-height:1.5;max-width:38.75em;white-space:normal;width:100%;hyphens:auto}@media screen and (max-width: 40em){.ontario-fieldset__legend{font-size:1.125rem;line-height:1.56}}.ontario-fieldset__legend--large,.ontario-fieldset__legend--heading{letter-spacing:0.02rem;line-height:1.2}.ontario-fieldset__legend--large h1,.ontario-fieldset__legend--heading h1{display:inline-block;margin:0}@media screen and (max-width: 40em){.ontario-fieldset__legend--large,.ontario-fieldset__legend--heading{font-size:1.4375rem;line-height:1.39}}.ontario-fieldset__legend--large{font-size:1.75rem}.ontario-fieldset__legend-required-flag,.ontario-fieldset__legend-optional-flag{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:400}.ontario-fieldset__legend-required-flag:before,.ontario-fieldset__legend-optional-flag:before{content:" "}.ontario-label__flag{font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:1rem;font-weight:400}.ontario-label__flag:before{content:" "}';
|
|
8
8
|
const OntarioFieldsetStyle0 = ontarioFieldsetCss;
|
|
9
9
|
|
|
10
10
|
const OntarioFieldset$1 = /*@__PURE__*/ proxyCustomElement(
|
|
@@ -75,16 +75,16 @@ const OntarioFieldset$1 = /*@__PURE__*/ proxyCustomElement(
|
|
|
75
75
|
render() {
|
|
76
76
|
return h(
|
|
77
77
|
'div',
|
|
78
|
-
{ key: '
|
|
78
|
+
{ key: 'b67eb0cfb89097276405ce512b45538201d524b7', class: 'ontario-form-group' },
|
|
79
79
|
h(
|
|
80
80
|
'fieldset',
|
|
81
|
-
{ key: '
|
|
81
|
+
{ key: '2b734fbca04ee66e7a1beaa389e96e4968257a0e', class: 'ontario-fieldset' },
|
|
82
82
|
h(
|
|
83
83
|
'legend',
|
|
84
|
-
{ key: '
|
|
84
|
+
{ key: 'b020a125d2257db804dc733d0f9cb81f63d0006d', class: this.getClass() },
|
|
85
85
|
this.legendSize === 'heading' ? h('h1', null, this.legend) : this.legend,
|
|
86
86
|
),
|
|
87
|
-
h('slot', { key: '
|
|
87
|
+
h('slot', { key: '8d46ec07de3ce88928468671d14d45d2e0ccc0ab' }),
|
|
88
88
|
),
|
|
89
89
|
);
|
|
90
90
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"ontario-fieldset.js","mappings":";;;;;AAAA,MAAM,kBAAkB,GAAG,
|
|
1
|
+
{"file":"ontario-fieldset.js","mappings":";;;;;AAAA,MAAM,kBAAkB,GAAG,y9KAAy9K,CAAC;AACr/K,8BAAe,kBAAkB;;MCYpBA,iBAAe;;;;;;0BASwB,SAAS;;;;;;IAO5D,kBAAkB;QACjB,MAAM,OAAO,GAAG,yBAAyB,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAEzE,IAAI,OAAO,EAAE;YACZ,OAAO,IAAI,CAAC,UAAU,CAAC;SACvB;aAAM;YACN,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE,CAAC;YAC1C,OAAO;iBACL,kBAAkB,EAAE;iBACpB,gBAAgB,CAAC,eAAe,IAAI,CAAC,UAAU,GAAG,CAAC;iBACnD,cAAc,CAAC,KAAK,CAAC;iBACrB,gBAAgB,CAAC,sBAAsB,CAAC;iBACxC,cAAc,CAAC,sDAAsD,CAAC;iBACtE,YAAY,EAAE,CAAC;YAEjB,OAAO,SAAS,CAAC;SACjB;KACD;;;;IAMD,cAAc;QACb,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KACrC;;;;IAKD,kBAAkB,CAAC,QAAgB;QAClC,IAAI,kBAAkB,CAAC,QAAQ,CAAC,EAAE;YACjC,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE,CAAC;YAC1C,OAAO;iBACL,kBAAkB,EAAE;iBACpB,gBAAgB,CAAC,UAAU,CAAC;iBAC5B,cAAc,CAAC,KAAK,CAAC;iBACrB,gBAAgB,CAAC,sBAAsB,CAAC;iBACxC,cAAc,CAAC,kBAAkB,CAAC;iBAClC,YAAY,EAAE,CAAC;SACjB;KACD;IACD,iBAAiB;QAChB,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,CAAC,kBAAkB,EAAE,CAAC;KAC1B;IAEO,QAAQ;QACf,QAAQ,IAAI,CAAC,UAAU;YACtB,KAAK,OAAO;gBACX,OAAO,0DAA0D,CAAC;YACnE,KAAK,SAAS;gBACb,OAAO,4DAA4D,CAAC;YACrE,KAAK,SAAS,CAAC;YACf;gBACC,OAAO,0BAA0B,CAAC;SACnC;KACD;IAED,MAAM;QACL,QACC,4DAAK,KAAK,EAAC,oBAAoB,IAC9B,iEAAU,KAAK,EAAC,kBAAkB,IACjC,+DAAQ,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,IAC5B,IAAI,CAAC,UAAU,KAAK,SAAS,GAAG,cAAK,IAAI,CAAC,MAAM,CAAM,GAAG,IAAI,CAAC,MAAM,CAC7D,EACT,8DAAQ,CACE,CACN,EACL;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["OntarioFieldset"],"sources":["src/components/ontario-fieldset/ontario-fieldset.scss?tag=ontario-fieldset&encapsulation=shadow","src/components/ontario-fieldset/ontario-fieldset.tsx"],"sourcesContent":["@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/4-elements/_global.elements.scss';\n@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/6-components/_form.component.scss';\n","import { Component, h, Prop, Watch } from '@stencil/core';\n\nimport { Fieldset } from './ontario-fieldset.interface';\n\nimport { CaptionType, CaptionTypes } from '../../utils/common/input-caption/input-caption.types';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\nimport { validatePropExists, validateValueAgainstArray } from '../../utils/validation/validation-functions';\n\n@Component({\n\ttag: 'ontario-fieldset',\n\tstyleUrl: 'ontario-fieldset.scss',\n\tshadow: true,\n})\nexport class OntarioFieldset implements Fieldset {\n\t/**\n\t * The text value used for the legend of the fieldset.\n\t */\n\t@Prop({ mutable: true }) legend: string;\n\n\t/**\n\t * The size of the fieldset legend. If no prop is passed, it will be `default`.\n\t */\n\t@Prop({ mutable: true }) legendSize: CaptionType = 'default';\n\n\t/**\n\t * Watch for changes to the legendSize prop.\n\t * This is for validation purposes to make sure the legendSize matches one of the CaptionTypes.\n\t */\n\t@Watch('legendSize')\n\tvalidateLegendSize() {\n\t\tconst isValid = validateValueAgainstArray(this.legendSize, CaptionTypes);\n\n\t\tif (isValid) {\n\t\t\treturn this.legendSize;\n\t\t} else {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(` legendSize ${this.legendSize} `)\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-fieldset> ')\n\t\t\t\t.addRegularText('is not a valid type. A default size will be applied.')\n\t\t\t\t.printMessage();\n\n\t\t\treturn 'default';\n\t\t}\n\t}\n\n\t/*\n\t * Watch for changes in the `legend` prop for validation purposes.\n\t */\n\t@Watch('legend')\n\tvalidateLegend() {\n\t\tthis.validateLegendText(this.legend);\n\t}\n\n\t/**\n\t * Print the legend warning message\n\t */\n\tvalidateLegendText(newValue: string) {\n\t\tif (validatePropExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' legend ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-fieldset> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\tcomponentWillLoad() {\n\t\tthis.validateLegend();\n\t\tthis.validateLegendSize();\n\t}\n\n\tprivate getClass() {\n\t\tswitch (this.legendSize) {\n\t\t\tcase 'large':\n\t\t\t\treturn `ontario-fieldset__legend ontario-fieldset__legend--large`;\n\t\t\tcase 'heading':\n\t\t\t\treturn `ontario-fieldset__legend ontario-fieldset__legend--heading`;\n\t\t\tcase 'default':\n\t\t\tdefault:\n\t\t\t\treturn `ontario-fieldset__legend`;\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div class=\"ontario-form-group\">\n\t\t\t\t<fieldset class=\"ontario-fieldset\">\n\t\t\t\t\t<legend class={this.getClass()}>\n\t\t\t\t\t\t{this.legendSize === 'heading' ? <h1>{this.legend}</h1> : this.legend}\n\t\t\t\t\t</legend>\n\t\t\t\t\t<slot />\n\t\t\t\t</fieldset>\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}
|