@gov-design-system-ce/components 4.6.0 → 4.6.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/Fragment-D4qSkFah.js.map +1 -1
- package/dist/cjs/accessibility-BQJmIVWV.js.map +1 -1
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
- package/dist/cjs/array.utils-DOh1gCQS.js.map +1 -1
- package/dist/cjs/attribute-CH1-zDDl.js.map +1 -1
- package/dist/cjs/colors-DgrrxjsX.js.map +1 -1
- package/dist/cjs/constants-357ehBFU.js.map +1 -1
- package/dist/cjs/constants-CFAhiwqu.js.map +1 -1
- package/dist/cjs/constants-CYm8AK_D.js.map +1 -1
- package/dist/cjs/constants-CbBhWRUQ.js.map +1 -1
- package/dist/cjs/constants-ChDSk4SZ.js.map +1 -1
- package/dist/cjs/constants-D6LZ31rS.js.map +1 -1
- package/dist/cjs/constants-DcKnOyW4.js.map +1 -1
- package/dist/cjs/constants-Dmmp9FHy.js.map +1 -1
- package/dist/cjs/constants-WvkMgj1j.js.map +1 -1
- package/dist/cjs/constants-ymB2dvwV.js.map +1 -1
- package/dist/cjs/constants-z2ZSS2je.js.map +1 -1
- package/dist/cjs/form-GgXzZZ-E.js.map +1 -1
- package/dist/cjs/gov-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-accordion-item.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-accordion.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-attachments.gov-attachments-item.gov-form-message.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +3 -3
- package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-backdrop.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-banner.cjs.entry.js +2 -2
- package/dist/cjs/gov-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-banner.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-blockquote.cjs.entry.js +1 -1
- package/dist/cjs/gov-blockquote.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-blockquote.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-breadcrumbs.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-button.cjs.entry.js +3 -3
- package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-button.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-card.cjs.entry.js +1 -1
- package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-card.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-chip.cjs.entry.js +2 -2
- package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-chip.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-collapsible.cjs.entry.js +2 -2
- package/dist/cjs/gov-collapsible.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-collapsible.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-container.cjs.entry.js +1 -1
- package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-container.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-control-group.cjs.entry.js +1 -1
- package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-control-group.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-cookiebar.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-dialog.cjs.entry.js +1 -1
- package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-dialog.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-dropdown.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-empty.cjs.entry.js +1 -1
- package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-empty.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
- package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-error-code.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-flex.gov-icon.gov-theme-switch.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-flex_3.cjs.entry.js +3 -3
- package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-autocomplete.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-checkbox-group.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-checkbox.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-control.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-file.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-group.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-group.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-input.gov-skeleton.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-input_2.cjs.entry.js +6 -6
- package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-label.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-multi-select.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-password-power.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio-group.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-range.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-range.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-range.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-search.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-select.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-switch.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-grid-item.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-grid.cjs.entry.js +1 -1
- package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-grid.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-infobar.cjs.entry.js +2 -2
- package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-infobar.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
- package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-layout-column.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-layout.cjs.entry.js +1 -1
- package/dist/cjs/gov-layout.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-layout.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
- package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-lifecycle.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-link.cjs.entry.js +1 -1
- package/dist/cjs/gov-link.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-link.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-loading.cjs.entry.js +1 -1
- package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-loading.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-message.cjs.entry.js +1 -1
- package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-message.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-pagination.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
- package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-spacer.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-stepper-item.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-stepper.cjs.entry.js +1 -1
- package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-stepper.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tabs-item.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tabs.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-tag.cjs.entry.js +1 -1
- package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tag.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-tile.cjs.entry.js +1 -1
- package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tile.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-toast.cjs.entry.js +1 -1
- package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-toast.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-tooltip.gov-tooltip-content.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-tooltip_2.cjs.entry.js +3 -3
- package/dist/cjs/gov-tooltip_2.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizard-item.cjs.entry.js +2 -2
- package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizard-item.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
- package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizard.entry.cjs.js.map +1 -1
- package/dist/cjs/gov.log-C5EH15b_.js.map +1 -1
- package/dist/cjs/helpers-DmI-ZOAH.js.map +1 -1
- package/dist/cjs/helpers.types-vap8QfRH.js.map +1 -1
- package/dist/cjs/props-CPENhBnM.js.map +1 -1
- package/dist/cjs/sizes-D5zsw2g5.js.map +1 -1
- package/dist/cjs/stencil.utils-8sCYbm34.js.map +1 -1
- package/dist/cjs/string.utils-BG4pUfEi.js.map +1 -1
- package/dist/cjs/template-Cj6PcLmR.js.map +1 -1
- package/dist/cjs/utils-NnC78QR3.js.map +1 -1
- package/dist/cjs/wcag-Bvzxnp5D.js.map +1 -1
- package/dist/collection/components/gov-accordion/constants.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +3 -3
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion.js +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion.types.js.map +1 -1
- package/dist/collection/components/gov-attachments/constants.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.js +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments.js +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -1
- package/dist/collection/components/gov-backdrop/constants.js.map +1 -1
- package/dist/collection/components/gov-backdrop/gov-backdrop.js +1 -1
- package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
- package/dist/collection/components/gov-banner/constants.js.map +1 -1
- package/dist/collection/components/gov-banner/gov-banner.js +2 -2
- package/dist/collection/components/gov-banner/gov-banner.js.map +1 -1
- package/dist/collection/components/gov-blockquote/constants.js.map +1 -1
- package/dist/collection/components/gov-blockquote/gov-blockquote.js +1 -1
- package/dist/collection/components/gov-blockquote/gov-blockquote.js.map +1 -1
- package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
- package/dist/collection/components/gov-button/button/constants.js.map +1 -1
- package/dist/collection/components/gov-button/button/gov-button.js +5 -5
- package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
- package/dist/collection/components/gov-button/button/gov-button.types.js.map +1 -1
- package/dist/collection/components/gov-button/dropdown/constants.js.map +1 -1
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -1
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js.map +1 -1
- package/dist/collection/components/gov-card/constants.js.map +1 -1
- package/dist/collection/components/gov-card/gov-card.js +1 -1
- package/dist/collection/components/gov-card/gov-card.js.map +1 -1
- package/dist/collection/components/gov-card/interfaces.js.map +1 -1
- package/dist/collection/components/gov-chip/constants.js.map +1 -1
- package/dist/collection/components/gov-chip/gov-chip.js +2 -2
- package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
- package/dist/collection/components/gov-collapsible/constants.js.map +1 -1
- package/dist/collection/components/gov-collapsible/gov-collapsible.js +2 -2
- package/dist/collection/components/gov-collapsible/gov-collapsible.js.map +1 -1
- package/dist/collection/components/gov-container/constants.js.map +1 -1
- package/dist/collection/components/gov-container/gov-container.js +1 -1
- package/dist/collection/components/gov-container/gov-container.js.map +1 -1
- package/dist/collection/components/gov-control-group/constants.js.map +1 -1
- package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
- package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
- package/dist/collection/components/gov-cookiebar/constants.js.map +1 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -1
- package/dist/collection/components/gov-dialog/constants.js.map +1 -1
- package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
- package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
- package/dist/collection/components/gov-empty/constants.js.map +1 -1
- package/dist/collection/components/gov-empty/gov-empty.js +1 -1
- package/dist/collection/components/gov-empty/gov-empty.js.map +1 -1
- package/dist/collection/components/gov-error-code/constants.js.map +1 -1
- package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
- package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -1
- package/dist/collection/components/gov-flex/constants.js.map +1 -1
- package/dist/collection/components/gov-flex/gov-flex.js +1 -1
- package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +3 -3
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +1 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js.map +1 -1
- package/dist/collection/components/gov-form/control/constants.js.map +1 -1
- package/dist/collection/components/gov-form/control/gov-form-control.js +4 -4
- package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
- package/dist/collection/components/gov-form/file/constants.js.map +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.js +4 -4
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +1 -1
- package/dist/collection/components/gov-form/group/constants.js.map +1 -1
- package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js.map +1 -1
- package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
- package/dist/collection/components/gov-form/group/gov-form-group.types.js.map +1 -1
- package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-radio-group.js.map +1 -1
- package/dist/collection/components/gov-form/input/constants.js.map +1 -1
- package/dist/collection/components/gov-form/input/gov-form-input.js +6 -6
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
- package/dist/collection/components/gov-form/input/gov-form-input.types.js.map +1 -1
- package/dist/collection/components/gov-form/label/constants.js.map +1 -1
- package/dist/collection/components/gov-form/label/gov-form-label.js +2 -2
- package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
- package/dist/collection/components/gov-form/message/constants.js.map +1 -1
- package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
- package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -4
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +1 -1
- package/dist/collection/components/gov-form/password-power/constants.js.map +1 -1
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -1
- package/dist/collection/components/gov-form/radio/constants.js.map +1 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +2 -2
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.types.js.map +1 -1
- package/dist/collection/components/gov-form/range/constants.js.map +1 -1
- package/dist/collection/components/gov-form/range/gov-form-range.js +2 -2
- package/dist/collection/components/gov-form/range/gov-form-range.js.map +1 -1
- package/dist/collection/components/gov-form/search/constants.js.map +1 -1
- package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
- package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
- package/dist/collection/components/gov-form/select/constants.js.map +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.js +4 -4
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.types.js.map +1 -1
- package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.types.js.map +1 -1
- package/dist/collection/components/gov-grid/constants.js.map +1 -1
- package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
- package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
- package/dist/collection/components/gov-grid/gov-grid.js +1 -1
- package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
- package/dist/collection/components/gov-icon/constants.js.map +1 -1
- package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
- package/dist/collection/components/gov-icon/helpers.js.map +1 -1
- package/dist/collection/components/gov-icon/list.js.map +1 -1
- package/dist/collection/components/gov-infobar/constants.js.map +1 -1
- package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
- package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
- package/dist/collection/components/gov-infobar/gov-infobar.types.js.map +1 -1
- package/dist/collection/components/gov-layout/constants.js.map +1 -1
- package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
- package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -1
- package/dist/collection/components/gov-layout/gov-layout.js +1 -1
- package/dist/collection/components/gov-layout/gov-layout.js.map +1 -1
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -1
- package/dist/collection/components/gov-link/constants.js.map +1 -1
- package/dist/collection/components/gov-link/gov-link.js +1 -1
- package/dist/collection/components/gov-link/gov-link.js.map +1 -1
- package/dist/collection/components/gov-loading/loading/constants.js.map +1 -1
- package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
- package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
- package/dist/collection/components/gov-loading/skeleton/constants.js.map +1 -1
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
- package/dist/collection/components/gov-message/constants.js.map +1 -1
- package/dist/collection/components/gov-message/gov-message.js +1 -1
- package/dist/collection/components/gov-message/gov-message.js.map +1 -1
- package/dist/collection/components/gov-pagination/constants.js.map +1 -1
- package/dist/collection/components/gov-pagination/gov-pagination.js +1 -1
- package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
- package/dist/collection/components/gov-pagination/gov-pagination.types.js.map +1 -1
- package/dist/collection/components/gov-pagination/pagination.js.map +1 -1
- package/dist/collection/components/gov-spacer/constants.js.map +1 -1
- package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
- package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
- package/dist/collection/components/gov-stepper/stepper/constants.js.map +1 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.d.js.map +1 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js +1 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js.map +1 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper.js +1 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper.js.map +1 -1
- package/dist/collection/components/gov-tabs/constants.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -1
- package/dist/collection/components/gov-tag/constants.js.map +1 -1
- package/dist/collection/components/gov-tag/gov-tag.js +1 -1
- package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
- package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.types.js.map +1 -1
- package/dist/collection/components/gov-tile/constants.js.map +1 -1
- package/dist/collection/components/gov-tile/gov-tile.js +1 -1
- package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
- package/dist/collection/components/gov-toast/constants.js.map +1 -1
- package/dist/collection/components/gov-toast/gov-toast.js +1 -1
- package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
- package/dist/collection/components/gov-tooltip/constants.js.map +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
- package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
- package/dist/collection/components/gov-wizard/constants.js.map +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.d.js.map +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
- package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.types.js.map +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard.js.map +1 -1
- package/dist/collection/core/constants/colors.js.map +1 -1
- package/dist/collection/core/constants/sizes.js.map +1 -1
- package/dist/collection/core/constants/tags.js.map +1 -1
- package/dist/collection/core/constants/tokens.js.map +1 -1
- package/dist/collection/data/color-definitions.js +500 -494
- package/dist/collection/data/font-definitions.js +132 -132
- package/dist/collection/helpers/Accessibility/accessibility.js.map +1 -1
- package/dist/collection/helpers/Accessibility/attributes.js.map +1 -1
- package/dist/collection/helpers/Dom/attribute.js.map +1 -1
- package/dist/collection/helpers/Dom/document.js.map +1 -1
- package/dist/collection/helpers/Dom/form.js.map +1 -1
- package/dist/collection/helpers/Dom/form.types.js.map +1 -1
- package/dist/collection/helpers/Dom/template.js.map +1 -1
- package/dist/collection/helpers/Dom/template.types.js.map +1 -1
- package/dist/collection/helpers/Dom/win.js.map +1 -1
- package/dist/collection/helpers/Fragment.js.map +1 -1
- package/dist/collection/helpers/Log/gov.log.js.map +1 -1
- package/dist/collection/helpers/Validate/props.js.map +1 -1
- package/dist/collection/helpers/Validate/wcag.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/types/event.types.js.map +1 -1
- package/dist/collection/types/interfaces.js.map +1 -1
- package/dist/collection/utils/array.utils.js.map +1 -1
- package/dist/collection/utils/bool.utils.js.map +1 -1
- package/dist/collection/utils/dom.utils.js.map +1 -1
- package/dist/collection/utils/ds.utils.js.map +1 -1
- package/dist/collection/utils/file.utils.js.map +1 -1
- package/dist/collection/utils/helpers.types.js.map +1 -1
- package/dist/collection/utils/icon.utils.js.map +1 -1
- package/dist/collection/utils/number.utils.js.map +1 -1
- package/dist/collection/utils/object.utils.js.map +1 -1
- package/dist/collection/utils/stencil.utils.js.map +1 -1
- package/dist/collection/utils/string.utils.js.map +1 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/gov-accordion-item.js +1 -1
- package/dist/components/gov-accordion-item.js.map +1 -1
- package/dist/components/gov-accordion.js +1 -1
- package/dist/components/gov-accordion.js.map +1 -1
- package/dist/components/gov-attachments-item.js +1 -1
- package/dist/components/gov-attachments.js +1 -1
- package/dist/components/gov-backdrop.js +1 -1
- package/dist/components/gov-banner.js +1 -1
- package/dist/components/gov-banner.js.map +1 -1
- package/dist/components/gov-blockquote.js +1 -1
- package/dist/components/gov-blockquote.js.map +1 -1
- package/dist/components/gov-breadcrumbs.js +1 -1
- package/dist/components/gov-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button.js +1 -1
- package/dist/components/gov-card.js +1 -1
- package/dist/components/gov-card.js.map +1 -1
- package/dist/components/gov-chip.js +1 -1
- package/dist/components/gov-collapsible.js +1 -1
- package/dist/components/gov-collapsible.js.map +1 -1
- package/dist/components/gov-container.js +1 -1
- package/dist/components/gov-container.js.map +1 -1
- package/dist/components/gov-control-group.js +1 -1
- package/dist/components/gov-control-group.js.map +1 -1
- package/dist/components/gov-cookiebar.js +1 -1
- package/dist/components/gov-cookiebar.js.map +1 -1
- package/dist/components/gov-dialog.js +1 -1
- package/dist/components/gov-dialog.js.map +1 -1
- package/dist/components/gov-dropdown.js +1 -1
- package/dist/components/gov-dropdown.js.map +1 -1
- package/dist/components/gov-empty.js +1 -1
- package/dist/components/gov-empty.js.map +1 -1
- package/dist/components/gov-error-code.js +1 -1
- package/dist/components/gov-error-code.js.map +1 -1
- package/dist/components/gov-flex.js +1 -1
- package/dist/components/gov-flex.js.map +1 -1
- package/dist/components/gov-form-autocomplete.js +1 -1
- package/dist/components/gov-form-checkbox-group.js +1 -1
- package/dist/components/gov-form-checkbox-group.js.map +1 -1
- package/dist/components/gov-form-checkbox.js +1 -1
- package/dist/components/gov-form-checkbox.js.map +1 -1
- package/dist/components/gov-form-control.js +1 -1
- package/dist/components/gov-form-control.js.map +1 -1
- package/dist/components/gov-form-file.js +1 -1
- package/dist/components/gov-form-file.js.map +1 -1
- package/dist/components/gov-form-group.js +1 -1
- package/dist/components/gov-form-group.js.map +1 -1
- package/dist/components/gov-form-input.js +1 -1
- package/dist/components/gov-form-label.js +1 -1
- package/dist/components/gov-form-label.js.map +1 -1
- package/dist/components/gov-form-message.js +1 -1
- package/dist/components/gov-form-multi-select.js +1 -1
- package/dist/components/gov-form-multi-select.js.map +1 -1
- package/dist/components/gov-form-password-power.js +1 -1
- package/dist/components/gov-form-password-power.js.map +1 -1
- package/dist/components/gov-form-radio-group.js +1 -1
- package/dist/components/gov-form-radio-group.js.map +1 -1
- package/dist/components/gov-form-radio.js.map +1 -1
- package/dist/components/gov-form-range.js +1 -1
- package/dist/components/gov-form-range.js.map +1 -1
- package/dist/components/gov-form-search.js +1 -1
- package/dist/components/gov-form-search.js.map +1 -1
- package/dist/components/gov-form-select.js +1 -1
- package/dist/components/gov-form-switch.js +1 -1
- package/dist/components/gov-form-switch.js.map +1 -1
- package/dist/components/gov-grid-item.js +1 -1
- package/dist/components/gov-grid-item.js.map +1 -1
- package/dist/components/gov-grid.js +1 -1
- package/dist/components/gov-grid.js.map +1 -1
- package/dist/components/gov-icon.js +1 -1
- package/dist/components/gov-infobar.js +1 -1
- package/dist/components/gov-infobar.js.map +1 -1
- package/dist/components/gov-layout-column.js +1 -1
- package/dist/components/gov-layout-column.js.map +1 -1
- package/dist/components/gov-layout.js +1 -1
- package/dist/components/gov-layout.js.map +1 -1
- package/dist/components/gov-lifecycle.js +1 -1
- package/dist/components/gov-lifecycle.js.map +1 -1
- package/dist/components/gov-link.js +1 -1
- package/dist/components/gov-link.js.map +1 -1
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-loading.js.map +1 -1
- package/dist/components/gov-message.js +1 -1
- package/dist/components/gov-message.js.map +1 -1
- package/dist/components/gov-pagination.js +1 -1
- package/dist/components/gov-pagination.js.map +1 -1
- package/dist/components/gov-skeleton.js +1 -1
- package/dist/components/gov-spacer.js +1 -1
- package/dist/components/gov-spacer.js.map +1 -1
- package/dist/components/gov-stepper-item.js +1 -1
- package/dist/components/gov-stepper-item.js.map +1 -1
- package/dist/components/gov-stepper.js +1 -1
- package/dist/components/gov-stepper.js.map +1 -1
- package/dist/components/gov-tabs-item.js +1 -1
- package/dist/components/gov-tabs-item.js.map +1 -1
- package/dist/components/gov-tabs.js +1 -1
- package/dist/components/gov-tabs.js.map +1 -1
- package/dist/components/gov-tag.js +1 -1
- package/dist/components/gov-tag.js.map +1 -1
- package/dist/components/gov-theme-switch.js +1 -1
- package/dist/components/gov-theme-switch.js.map +1 -1
- package/dist/components/gov-tile.js +1 -1
- package/dist/components/gov-tile.js.map +1 -1
- package/dist/components/gov-toast.js +1 -1
- package/dist/components/gov-toast.js.map +1 -1
- package/dist/components/gov-tooltip-content.js +1 -1
- package/dist/components/gov-tooltip.js +1 -1
- package/dist/components/gov-wizard-item.js +1 -1
- package/dist/components/gov-wizard-item.js.map +1 -1
- package/dist/components/gov-wizard.js +1 -1
- package/dist/components/gov-wizard.js.map +1 -1
- package/dist/components/p-4i8qDRtu.js.map +1 -1
- package/dist/components/p-5itQzbON.js.map +1 -1
- package/dist/components/p-9imLQpxb.js.map +1 -1
- package/dist/components/p-B0KFtEn3.js +2 -0
- package/dist/components/p-B0KFtEn3.js.map +1 -0
- package/dist/components/p-B0hcuYXk.js.map +1 -1
- package/dist/components/p-B3tdsiZv.js.map +1 -1
- package/dist/components/p-BKP-F1qP.js.map +1 -1
- package/dist/components/{p-D8QfVS4O.js → p-BNnuBQvo.js} +2 -2
- package/dist/components/p-BNnuBQvo.js.map +1 -0
- package/dist/components/p-BTwdrNoS.js.map +1 -1
- package/dist/components/p-BUmDydor.js.map +1 -1
- package/dist/components/{p-DW1DKFMF.js → p-BZTY3MxF.js} +2 -2
- package/dist/components/p-BZTY3MxF.js.map +1 -0
- package/dist/components/p-BcQO4NH2.js.map +1 -1
- package/dist/components/{p-BJnSrRNH.js → p-BrdXh0mI.js} +2 -2
- package/dist/components/p-BrdXh0mI.js.map +1 -0
- package/dist/components/{p-_FzmpyXv.js → p-Bv5L0j6n.js} +2 -2
- package/dist/components/p-Bv5L0j6n.js.map +1 -0
- package/dist/components/p-C6JN9gdb.js.map +1 -1
- package/dist/components/p-CNqoJU2V.js.map +1 -1
- package/dist/components/p-CQvUntGY.js.map +1 -1
- package/dist/components/p-CUVZZBqo.js.map +1 -1
- package/dist/components/p-CXgom82_.js.map +1 -1
- package/dist/components/p-CZr7GBEo.js.map +1 -1
- package/dist/components/p-CfaJM4SA.js +2 -0
- package/dist/components/p-CfaJM4SA.js.map +1 -0
- package/dist/components/p-Cjg0wpDG.js.map +1 -1
- package/dist/components/p-ClYmjarv.js.map +1 -1
- package/dist/components/p-DBXGhafv.js.map +1 -1
- package/dist/components/{p-Ba8Z-AIX.js → p-DFu5UVoP.js} +2 -2
- package/dist/components/p-DFu5UVoP.js.map +1 -0
- package/dist/components/p-DKo9A5gq.js.map +1 -1
- package/dist/components/{p-9VlKyZSl.js → p-DMVQRz4f.js} +2 -2
- package/dist/components/p-DMVQRz4f.js.map +1 -0
- package/dist/components/{p-2_-up8FX.js → p-DesycS6d.js} +2 -2
- package/dist/components/p-DesycS6d.js.map +1 -0
- package/dist/components/p-DfI_0WW6.js.map +1 -1
- package/dist/components/p-DrPpH_9c.js.map +1 -1
- package/dist/components/p-EeKNA85D.js.map +1 -1
- package/dist/components/p-GYov8gU1.js.map +1 -1
- package/dist/components/p-Nvj7WFs_.js.map +1 -1
- package/dist/components/p-Q99QrOoi.js.map +1 -1
- package/dist/components/p-U40vKHrs.js.map +1 -1
- package/dist/components/{p-DZJk8GrA.js → p-UDT3DloZ.js} +2 -2
- package/dist/components/p-UDT3DloZ.js.map +1 -0
- package/dist/components/{p-CWqMiVYH.js → p-djqfSbq-.js} +2 -2
- package/dist/components/p-djqfSbq-.js.map +1 -0
- package/dist/components/p-vN03FcXN.js.map +1 -1
- package/dist/components/{p-DhGb8cBK.js → p-x3w8Mun_.js} +2 -2
- package/dist/components/p-x3w8Mun_.js.map +1 -0
- package/dist/components/p-yqJEurSE.js +2 -0
- package/dist/components/p-yqJEurSE.js.map +1 -0
- package/dist/core/core.css +38 -38
- package/dist/core/core.esm.js +1 -1
- package/dist/core/gov-accordion-item.entry.esm.js.map +1 -1
- package/dist/core/gov-accordion.entry.esm.js.map +1 -1
- package/dist/core/gov-attachments.gov-attachments-item.gov-form-message.entry.esm.js.map +1 -1
- package/dist/core/gov-backdrop.entry.esm.js.map +1 -1
- package/dist/core/gov-banner.entry.esm.js.map +1 -1
- package/dist/core/gov-blockquote.entry.esm.js.map +1 -1
- package/dist/core/gov-breadcrumbs.entry.esm.js.map +1 -1
- package/dist/core/gov-button.entry.esm.js.map +1 -1
- package/dist/core/gov-card.entry.esm.js.map +1 -1
- package/dist/core/gov-chip.entry.esm.js.map +1 -1
- package/dist/core/gov-collapsible.entry.esm.js.map +1 -1
- package/dist/core/gov-container.entry.esm.js.map +1 -1
- package/dist/core/gov-control-group.entry.esm.js.map +1 -1
- package/dist/core/gov-cookiebar.entry.esm.js.map +1 -1
- package/dist/core/gov-dialog.entry.esm.js.map +1 -1
- package/dist/core/gov-dropdown.entry.esm.js.map +1 -1
- package/dist/core/gov-empty.entry.esm.js.map +1 -1
- package/dist/core/gov-error-code.entry.esm.js.map +1 -1
- package/dist/core/gov-flex.gov-icon.gov-theme-switch.entry.esm.js.map +1 -1
- package/dist/core/gov-form-autocomplete.entry.esm.js.map +1 -1
- package/dist/core/gov-form-checkbox-group.entry.esm.js.map +1 -1
- package/dist/core/gov-form-checkbox.entry.esm.js.map +1 -1
- package/dist/core/gov-form-control.entry.esm.js.map +1 -1
- package/dist/core/gov-form-file.entry.esm.js.map +1 -1
- package/dist/core/gov-form-group.entry.esm.js.map +1 -1
- package/dist/core/gov-form-input.gov-skeleton.entry.esm.js.map +1 -1
- package/dist/core/gov-form-label.entry.esm.js.map +1 -1
- package/dist/core/gov-form-multi-select.entry.esm.js.map +1 -1
- package/dist/core/gov-form-password-power.entry.esm.js.map +1 -1
- package/dist/core/gov-form-radio-group.entry.esm.js.map +1 -1
- package/dist/core/gov-form-radio.entry.esm.js.map +1 -1
- package/dist/core/gov-form-range.entry.esm.js.map +1 -1
- package/dist/core/gov-form-search.entry.esm.js.map +1 -1
- package/dist/core/gov-form-select.entry.esm.js.map +1 -1
- package/dist/core/gov-form-switch.entry.esm.js.map +1 -1
- package/dist/core/gov-grid-item.entry.esm.js.map +1 -1
- package/dist/core/gov-grid.entry.esm.js.map +1 -1
- package/dist/core/gov-infobar.entry.esm.js.map +1 -1
- package/dist/core/gov-layout-column.entry.esm.js.map +1 -1
- package/dist/core/gov-layout.entry.esm.js.map +1 -1
- package/dist/core/gov-lifecycle.entry.esm.js.map +1 -1
- package/dist/core/gov-link.entry.esm.js.map +1 -1
- package/dist/core/gov-loading.entry.esm.js.map +1 -1
- package/dist/core/gov-message.entry.esm.js.map +1 -1
- package/dist/core/gov-pagination.entry.esm.js.map +1 -1
- package/dist/core/gov-spacer.entry.esm.js.map +1 -1
- package/dist/core/gov-stepper-item.entry.esm.js.map +1 -1
- package/dist/core/gov-stepper.entry.esm.js.map +1 -1
- package/dist/core/gov-tabs-item.entry.esm.js.map +1 -1
- package/dist/core/gov-tabs.entry.esm.js.map +1 -1
- package/dist/core/gov-tag.entry.esm.js.map +1 -1
- package/dist/core/gov-tile.entry.esm.js.map +1 -1
- package/dist/core/gov-toast.entry.esm.js.map +1 -1
- package/dist/core/gov-tooltip.gov-tooltip-content.entry.esm.js.map +1 -1
- package/dist/core/gov-wizard-item.entry.esm.js.map +1 -1
- package/dist/core/gov-wizard.entry.esm.js.map +1 -1
- package/dist/core/{p-37f6095e.entry.js → p-04ec45ab.entry.js} +2 -2
- package/dist/core/p-04ec45ab.entry.js.map +1 -0
- package/dist/core/p-0af96cc0.entry.js +2 -0
- package/dist/core/p-0af96cc0.entry.js.map +1 -0
- package/dist/core/{p-b93548cc.entry.js → p-11fc3899.entry.js} +2 -2
- package/dist/core/p-11fc3899.entry.js.map +1 -0
- package/dist/core/{p-67d1e6e2.entry.js → p-157a1636.entry.js} +2 -2
- package/dist/core/p-157a1636.entry.js.map +1 -0
- package/dist/core/p-1626cc67.entry.js +2 -0
- package/dist/core/p-1626cc67.entry.js.map +1 -0
- package/dist/core/{p-46effc25.entry.js → p-187c0eda.entry.js} +2 -2
- package/dist/core/p-187c0eda.entry.js.map +1 -0
- package/dist/core/p-3314505d.entry.js +2 -0
- package/dist/core/p-3314505d.entry.js.map +1 -0
- package/dist/core/p-33209782.entry.js +2 -0
- package/dist/core/p-33209782.entry.js.map +1 -0
- package/dist/core/{p-715c0e2e.entry.js → p-33b462c9.entry.js} +2 -2
- package/dist/core/p-33b462c9.entry.js.map +1 -0
- package/dist/core/{p-f067af74.entry.js → p-3e07bf07.entry.js} +2 -2
- package/dist/core/p-3e07bf07.entry.js.map +1 -0
- package/dist/core/p-3e5ae012.entry.js +2 -0
- package/dist/core/p-3e5ae012.entry.js.map +1 -0
- package/dist/core/p-46824842.entry.js.map +1 -1
- package/dist/core/{p-1375d52d.entry.js → p-469f14db.entry.js} +2 -2
- package/dist/core/p-469f14db.entry.js.map +1 -0
- package/dist/core/p-4c02094d.entry.js +2 -0
- package/dist/core/p-4c02094d.entry.js.map +1 -0
- package/dist/core/{p-6f173022.entry.js → p-4d365881.entry.js} +2 -2
- package/dist/core/p-4d365881.entry.js.map +1 -0
- package/dist/core/p-4d36cd18.entry.js +2 -0
- package/dist/core/p-4d36cd18.entry.js.map +1 -0
- package/dist/core/p-4d902f20.entry.js +2 -0
- package/dist/core/p-4d902f20.entry.js.map +1 -0
- package/dist/core/p-4da8ac1d.entry.js +2 -0
- package/dist/core/p-4da8ac1d.entry.js.map +1 -0
- package/dist/core/p-511eed88.entry.js +2 -0
- package/dist/core/p-511eed88.entry.js.map +1 -0
- package/dist/core/{p-8655fd24.entry.js → p-5305e82e.entry.js} +2 -2
- package/dist/core/p-5305e82e.entry.js.map +1 -0
- package/dist/core/p-558e75a6.entry.js +2 -0
- package/dist/core/p-558e75a6.entry.js.map +1 -0
- package/dist/core/p-5721cf9b.entry.js.map +1 -1
- package/dist/core/p-57ca8ac7.entry.js +2 -0
- package/dist/core/p-57ca8ac7.entry.js.map +1 -0
- package/dist/core/{p-8161e1fe.entry.js → p-5c872d64.entry.js} +2 -2
- package/dist/core/p-5c872d64.entry.js.map +1 -0
- package/dist/core/p-5itQzbON.js.map +1 -1
- package/dist/core/p-65a09763.entry.js +2 -0
- package/dist/core/p-65a09763.entry.js.map +1 -0
- package/dist/core/{p-e7f889c7.entry.js → p-6b44890d.entry.js} +2 -2
- package/dist/core/p-6b44890d.entry.js.map +1 -0
- package/dist/core/p-6d2ce4c7.entry.js +2 -0
- package/dist/core/p-6d2ce4c7.entry.js.map +1 -0
- package/dist/core/{p-b3b517f0.entry.js → p-70b5555f.entry.js} +2 -2
- package/dist/core/p-70b5555f.entry.js.map +1 -0
- package/dist/core/p-73bd93f9.entry.js +2 -0
- package/dist/core/p-73bd93f9.entry.js.map +1 -0
- package/dist/core/p-852310d9.entry.js +2 -0
- package/dist/core/p-852310d9.entry.js.map +1 -0
- package/dist/core/p-90ab65b4.entry.js +2 -0
- package/dist/core/p-90ab65b4.entry.js.map +1 -0
- package/dist/core/{p-2cfa670d.entry.js → p-91cbee1b.entry.js} +2 -2
- package/dist/core/p-91cbee1b.entry.js.map +1 -0
- package/dist/core/p-9d9e9401.entry.js +2 -0
- package/dist/core/p-9d9e9401.entry.js.map +1 -0
- package/dist/core/p-B6CqPcY_.js.map +1 -1
- package/dist/core/p-BUmDydor.js.map +1 -1
- package/dist/core/p-BcQO4NH2.js.map +1 -1
- package/dist/core/p-BjcqOprh.js.map +1 -1
- package/dist/core/p-Bo1ROm5Q.js.map +1 -1
- package/dist/core/p-Bz_RzYFb.js.map +1 -1
- package/dist/core/p-C3R1T_pg.js.map +1 -1
- package/dist/core/p-C6JN9gdb.js.map +1 -1
- package/dist/core/p-CDIRBJsi.js.map +1 -1
- package/dist/core/p-CQvUntGY.js.map +1 -1
- package/dist/core/p-Ccwpa1ck.js.map +1 -1
- package/dist/core/p-CgDnDrq5.js.map +1 -1
- package/dist/core/p-Cjg0wpDG.js.map +1 -1
- package/dist/core/p-CoD1xawt.js.map +1 -1
- package/dist/core/p-Cx3bEC5v.js.map +1 -1
- package/dist/core/p-CzXeijOj.js.map +1 -1
- package/dist/core/p-D4TGB274.js.map +1 -1
- package/dist/core/p-DBXGhafv.js.map +1 -1
- package/dist/core/p-DNztiAH0.js.map +1 -1
- package/dist/core/p-DQuL1Twl.js.map +1 -1
- package/dist/core/p-DYcNEwSZ.js.map +1 -1
- package/dist/core/p-EeKNA85D.js.map +1 -1
- package/dist/core/p-GYov8gU1.js.map +1 -1
- package/dist/core/p-NOJjz9dT.js.map +1 -1
- package/dist/core/p-Q99QrOoi.js.map +1 -1
- package/dist/core/p-U40vKHrs.js.map +1 -1
- package/dist/core/p-a2c61d50.entry.js +2 -0
- package/dist/core/p-a2c61d50.entry.js.map +1 -0
- package/dist/core/p-abb7780e.entry.js +2 -0
- package/dist/core/p-abb7780e.entry.js.map +1 -0
- package/dist/core/p-bd2df430.entry.js +2 -0
- package/dist/core/p-bd2df430.entry.js.map +1 -0
- package/dist/core/p-bd389bfd.entry.js +2 -0
- package/dist/core/p-bd389bfd.entry.js.map +1 -0
- package/dist/core/{p-7387370c.entry.js → p-be9af807.entry.js} +2 -2
- package/dist/core/p-be9af807.entry.js.map +1 -0
- package/dist/core/p-bf573a56.entry.js +2 -0
- package/dist/core/p-bf573a56.entry.js.map +1 -0
- package/dist/core/p-c1b9f1ab.entry.js +2 -0
- package/dist/core/p-c1b9f1ab.entry.js.map +1 -0
- package/dist/core/{p-01bc645f.entry.js → p-c21bc8f9.entry.js} +2 -2
- package/dist/core/p-c21bc8f9.entry.js.map +1 -0
- package/dist/core/{p-dec65494.entry.js → p-c4734357.entry.js} +2 -2
- package/dist/core/p-c4734357.entry.js.map +1 -0
- package/dist/core/p-c6b55c0a.entry.js.map +1 -1
- package/dist/core/p-cd163299.entry.js +2 -0
- package/dist/core/p-cd163299.entry.js.map +1 -0
- package/dist/core/p-d43959a0.entry.js +2 -0
- package/dist/core/p-d43959a0.entry.js.map +1 -0
- package/dist/core/p-d9c574f0.entry.js +2 -0
- package/dist/core/p-d9c574f0.entry.js.map +1 -0
- package/dist/core/p-da997fb3.entry.js +2 -0
- package/dist/core/p-da997fb3.entry.js.map +1 -0
- package/dist/core/{p-017d6340.entry.js → p-db860031.entry.js} +2 -2
- package/dist/core/p-db860031.entry.js.map +1 -0
- package/dist/core/p-def34832.entry.js +2 -0
- package/dist/core/p-def34832.entry.js.map +1 -0
- package/dist/core/p-e30968b3.entry.js +2 -0
- package/dist/core/p-e30968b3.entry.js.map +1 -0
- package/dist/core/{p-e1b2af6b.entry.js → p-e39e5dc7.entry.js} +2 -2
- package/dist/core/p-e39e5dc7.entry.js.map +1 -0
- package/dist/core/p-eb3f6808.entry.js +2 -0
- package/dist/core/p-eb3f6808.entry.js.map +1 -0
- package/dist/core/{p-f58a20af.entry.js → p-eb766437.entry.js} +2 -2
- package/dist/core/p-eb766437.entry.js.map +1 -0
- package/dist/core/{p-495e25d8.entry.js → p-f3887d6d.entry.js} +2 -2
- package/dist/core/p-f3887d6d.entry.js.map +1 -0
- package/dist/core/p-f7bdb44a.entry.js.map +1 -1
- package/dist/core/p-fca7a0d6.entry.js +2 -0
- package/dist/core/p-fca7a0d6.entry.js.map +1 -0
- package/dist/core/p-vN03FcXN.js.map +1 -1
- package/dist/esm/Fragment-5itQzbON.js.map +1 -1
- package/dist/esm/accessibility-wqNV8djF.js.map +1 -1
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
- package/dist/esm/array.utils-CJ0U_ONv.js.map +1 -1
- package/dist/esm/attribute-Bz_RzYFb.js.map +1 -1
- package/dist/esm/colors-U40vKHrs.js.map +1 -1
- package/dist/esm/constants-BNBB_29K.js.map +1 -1
- package/dist/esm/constants-BegH8u6i.js.map +1 -1
- package/dist/esm/constants-BiWo5BNa.js.map +1 -1
- package/dist/esm/constants-CysDgoMA.js.map +1 -1
- package/dist/esm/constants-DHvN41Ek.js.map +1 -1
- package/dist/esm/constants-DbTQsVRc.js.map +1 -1
- package/dist/esm/constants-Du0ZtfYe.js.map +1 -1
- package/dist/esm/constants-Q99QrOoi.js.map +1 -1
- package/dist/esm/constants-YOtDGTm5.js.map +1 -1
- package/dist/esm/constants-aqe7GX2n.js.map +1 -1
- package/dist/esm/constants-oYp2tkdN.js.map +1 -1
- package/dist/esm/form-DvhJiKwA.js.map +1 -1
- package/dist/esm/gov-accordion-item.entry.js +3 -3
- package/dist/esm/gov-accordion-item.entry.js.map +1 -1
- package/dist/esm/gov-accordion.entry.js +1 -1
- package/dist/esm/gov-accordion.entry.js.map +1 -1
- package/dist/esm/gov-attachments.gov-attachments-item.gov-form-message.entry.js.map +1 -1
- package/dist/esm/gov-attachments_3.entry.js +3 -3
- package/dist/esm/gov-attachments_3.entry.js.map +1 -1
- package/dist/esm/gov-backdrop.entry.js +1 -1
- package/dist/esm/gov-backdrop.entry.js.map +1 -1
- package/dist/esm/gov-banner.entry.js +2 -2
- package/dist/esm/gov-banner.entry.js.map +1 -1
- package/dist/esm/gov-blockquote.entry.js +1 -1
- package/dist/esm/gov-blockquote.entry.js.map +1 -1
- package/dist/esm/gov-breadcrumbs.entry.js +1 -1
- package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
- package/dist/esm/gov-button.entry.js +3 -3
- package/dist/esm/gov-button.entry.js.map +1 -1
- package/dist/esm/gov-card.entry.js +1 -1
- package/dist/esm/gov-card.entry.js.map +1 -1
- package/dist/esm/gov-chip.entry.js +2 -2
- package/dist/esm/gov-chip.entry.js.map +1 -1
- package/dist/esm/gov-collapsible.entry.js +2 -2
- package/dist/esm/gov-collapsible.entry.js.map +1 -1
- package/dist/esm/gov-container.entry.js +1 -1
- package/dist/esm/gov-container.entry.js.map +1 -1
- package/dist/esm/gov-control-group.entry.js +1 -1
- package/dist/esm/gov-control-group.entry.js.map +1 -1
- package/dist/esm/gov-cookiebar.entry.js +1 -1
- package/dist/esm/gov-cookiebar.entry.js.map +1 -1
- package/dist/esm/gov-dialog.entry.js +1 -1
- package/dist/esm/gov-dialog.entry.js.map +1 -1
- package/dist/esm/gov-dropdown.entry.js +1 -1
- package/dist/esm/gov-dropdown.entry.js.map +1 -1
- package/dist/esm/gov-empty.entry.js +1 -1
- package/dist/esm/gov-empty.entry.js.map +1 -1
- package/dist/esm/gov-error-code.entry.js +1 -1
- package/dist/esm/gov-error-code.entry.js.map +1 -1
- package/dist/esm/gov-flex.gov-icon.gov-theme-switch.entry.js.map +1 -1
- package/dist/esm/gov-flex_3.entry.js +3 -3
- package/dist/esm/gov-flex_3.entry.js.map +1 -1
- package/dist/esm/gov-form-autocomplete.entry.js +1 -1
- package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
- package/dist/esm/gov-form-checkbox-group.entry.js +1 -1
- package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
- package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
- package/dist/esm/gov-form-control.entry.js +1 -1
- package/dist/esm/gov-form-control.entry.js.map +1 -1
- package/dist/esm/gov-form-file.entry.js +1 -1
- package/dist/esm/gov-form-file.entry.js.map +1 -1
- package/dist/esm/gov-form-group.entry.js +1 -1
- package/dist/esm/gov-form-group.entry.js.map +1 -1
- package/dist/esm/gov-form-input.gov-skeleton.entry.js.map +1 -1
- package/dist/esm/gov-form-input_2.entry.js +6 -6
- package/dist/esm/gov-form-input_2.entry.js.map +1 -1
- package/dist/esm/gov-form-label.entry.js +1 -1
- package/dist/esm/gov-form-label.entry.js.map +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +2 -2
- package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
- package/dist/esm/gov-form-password-power.entry.js +1 -1
- package/dist/esm/gov-form-password-power.entry.js.map +1 -1
- package/dist/esm/gov-form-radio-group.entry.js +1 -1
- package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
- package/dist/esm/gov-form-radio.entry.js.map +1 -1
- package/dist/esm/gov-form-range.entry.js +2 -2
- package/dist/esm/gov-form-range.entry.js.map +1 -1
- package/dist/esm/gov-form-search.entry.js +1 -1
- package/dist/esm/gov-form-search.entry.js.map +1 -1
- package/dist/esm/gov-form-select.entry.js +2 -2
- package/dist/esm/gov-form-select.entry.js.map +1 -1
- package/dist/esm/gov-form-switch.entry.js.map +1 -1
- package/dist/esm/gov-grid-item.entry.js +1 -1
- package/dist/esm/gov-grid-item.entry.js.map +1 -1
- package/dist/esm/gov-grid.entry.js +1 -1
- package/dist/esm/gov-grid.entry.js.map +1 -1
- package/dist/esm/gov-infobar.entry.js +2 -2
- package/dist/esm/gov-infobar.entry.js.map +1 -1
- package/dist/esm/gov-layout-column.entry.js +1 -1
- package/dist/esm/gov-layout-column.entry.js.map +1 -1
- package/dist/esm/gov-layout.entry.js +1 -1
- package/dist/esm/gov-layout.entry.js.map +1 -1
- package/dist/esm/gov-lifecycle.entry.js +1 -1
- package/dist/esm/gov-lifecycle.entry.js.map +1 -1
- package/dist/esm/gov-link.entry.js +1 -1
- package/dist/esm/gov-link.entry.js.map +1 -1
- package/dist/esm/gov-loading.entry.js +1 -1
- package/dist/esm/gov-loading.entry.js.map +1 -1
- package/dist/esm/gov-message.entry.js +1 -1
- package/dist/esm/gov-message.entry.js.map +1 -1
- package/dist/esm/gov-pagination.entry.js.map +1 -1
- package/dist/esm/gov-spacer.entry.js +1 -1
- package/dist/esm/gov-spacer.entry.js.map +1 -1
- package/dist/esm/gov-stepper-item.entry.js +1 -1
- package/dist/esm/gov-stepper-item.entry.js.map +1 -1
- package/dist/esm/gov-stepper.entry.js +1 -1
- package/dist/esm/gov-stepper.entry.js.map +1 -1
- package/dist/esm/gov-tabs-item.entry.js +1 -1
- package/dist/esm/gov-tabs-item.entry.js.map +1 -1
- package/dist/esm/gov-tabs.entry.js +1 -1
- package/dist/esm/gov-tabs.entry.js.map +1 -1
- package/dist/esm/gov-tag.entry.js +1 -1
- package/dist/esm/gov-tag.entry.js.map +1 -1
- package/dist/esm/gov-tile.entry.js +1 -1
- package/dist/esm/gov-tile.entry.js.map +1 -1
- package/dist/esm/gov-toast.entry.js +1 -1
- package/dist/esm/gov-toast.entry.js.map +1 -1
- package/dist/esm/gov-tooltip.gov-tooltip-content.entry.js.map +1 -1
- package/dist/esm/gov-tooltip_2.entry.js +3 -3
- package/dist/esm/gov-tooltip_2.entry.js.map +1 -1
- package/dist/esm/gov-wizard-item.entry.js +2 -2
- package/dist/esm/gov-wizard-item.entry.js.map +1 -1
- package/dist/esm/gov-wizard.entry.js +1 -1
- package/dist/esm/gov-wizard.entry.js.map +1 -1
- package/dist/esm/gov.log-BtqD9K8d.js.map +1 -1
- package/dist/esm/helpers-GYov8gU1.js.map +1 -1
- package/dist/esm/helpers.types-DNztiAH0.js.map +1 -1
- package/dist/esm/props-CJZgTDla.js.map +1 -1
- package/dist/esm/sizes-BcQO4NH2.js.map +1 -1
- package/dist/esm/stencil.utils-Cjg0wpDG.js.map +1 -1
- package/dist/esm/string.utils-vN03FcXN.js.map +1 -1
- package/dist/esm/template-CoD1xawt.js.map +1 -1
- package/dist/esm/utils-CQvUntGY.js.map +1 -1
- package/dist/esm/wcag-CD6_13JO.js.map +1 -1
- package/dist/globals.d.ts +2 -2
- package/dist/hydrate/index.js +75 -75
- package/dist/hydrate/index.mjs +75 -75
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/interfaces.d.ts +1 -1
- package/dist/types/types/typings.d.ts +6 -6
- package/dist/types/work/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
- package/package.json +29 -29
- package/dist/components/p-2_-up8FX.js.map +0 -1
- package/dist/components/p-9VlKyZSl.js.map +0 -1
- package/dist/components/p-BJnSrRNH.js.map +0 -1
- package/dist/components/p-Ba8Z-AIX.js.map +0 -1
- package/dist/components/p-BnxqJyb_.js +0 -2
- package/dist/components/p-BnxqJyb_.js.map +0 -1
- package/dist/components/p-CJnwyVlG.js +0 -2
- package/dist/components/p-CJnwyVlG.js.map +0 -1
- package/dist/components/p-CWqMiVYH.js.map +0 -1
- package/dist/components/p-CgXcNDpE.js +0 -2
- package/dist/components/p-CgXcNDpE.js.map +0 -1
- package/dist/components/p-D8QfVS4O.js.map +0 -1
- package/dist/components/p-DW1DKFMF.js.map +0 -1
- package/dist/components/p-DZJk8GrA.js.map +0 -1
- package/dist/components/p-DhGb8cBK.js.map +0 -1
- package/dist/components/p-_FzmpyXv.js.map +0 -1
- package/dist/core/p-017d6340.entry.js.map +0 -1
- package/dist/core/p-01bc645f.entry.js.map +0 -1
- package/dist/core/p-0e06af2b.entry.js +0 -2
- package/dist/core/p-0e06af2b.entry.js.map +0 -1
- package/dist/core/p-1375d52d.entry.js.map +0 -1
- package/dist/core/p-264cbd4e.entry.js +0 -2
- package/dist/core/p-264cbd4e.entry.js.map +0 -1
- package/dist/core/p-2cfa670d.entry.js.map +0 -1
- package/dist/core/p-33a62c22.entry.js +0 -2
- package/dist/core/p-33a62c22.entry.js.map +0 -1
- package/dist/core/p-37f6095e.entry.js.map +0 -1
- package/dist/core/p-3cf20b56.entry.js +0 -2
- package/dist/core/p-3cf20b56.entry.js.map +0 -1
- package/dist/core/p-46effc25.entry.js.map +0 -1
- package/dist/core/p-495e25d8.entry.js.map +0 -1
- package/dist/core/p-4aea131f.entry.js +0 -2
- package/dist/core/p-4aea131f.entry.js.map +0 -1
- package/dist/core/p-4ce8e721.entry.js +0 -2
- package/dist/core/p-4ce8e721.entry.js.map +0 -1
- package/dist/core/p-5283672a.entry.js +0 -2
- package/dist/core/p-5283672a.entry.js.map +0 -1
- package/dist/core/p-54209c57.entry.js +0 -2
- package/dist/core/p-54209c57.entry.js.map +0 -1
- package/dist/core/p-56dc11ba.entry.js +0 -2
- package/dist/core/p-56dc11ba.entry.js.map +0 -1
- package/dist/core/p-58911028.entry.js +0 -2
- package/dist/core/p-58911028.entry.js.map +0 -1
- package/dist/core/p-617b0dbe.entry.js +0 -2
- package/dist/core/p-617b0dbe.entry.js.map +0 -1
- package/dist/core/p-6781bfc0.entry.js +0 -2
- package/dist/core/p-6781bfc0.entry.js.map +0 -1
- package/dist/core/p-67d1e6e2.entry.js.map +0 -1
- package/dist/core/p-6e42a12a.entry.js +0 -2
- package/dist/core/p-6e42a12a.entry.js.map +0 -1
- package/dist/core/p-6f173022.entry.js.map +0 -1
- package/dist/core/p-7099beb0.entry.js +0 -2
- package/dist/core/p-7099beb0.entry.js.map +0 -1
- package/dist/core/p-715c0e2e.entry.js.map +0 -1
- package/dist/core/p-7387370c.entry.js.map +0 -1
- package/dist/core/p-768fe015.entry.js +0 -2
- package/dist/core/p-768fe015.entry.js.map +0 -1
- package/dist/core/p-7a3d4b6b.entry.js +0 -2
- package/dist/core/p-7a3d4b6b.entry.js.map +0 -1
- package/dist/core/p-7f4cf2f9.entry.js +0 -2
- package/dist/core/p-7f4cf2f9.entry.js.map +0 -1
- package/dist/core/p-8161e1fe.entry.js.map +0 -1
- package/dist/core/p-820eb0fb.entry.js +0 -2
- package/dist/core/p-820eb0fb.entry.js.map +0 -1
- package/dist/core/p-8655fd24.entry.js.map +0 -1
- package/dist/core/p-8f6172d4.entry.js +0 -2
- package/dist/core/p-8f6172d4.entry.js.map +0 -1
- package/dist/core/p-90cd5ffe.entry.js +0 -2
- package/dist/core/p-90cd5ffe.entry.js.map +0 -1
- package/dist/core/p-98314c19.entry.js +0 -2
- package/dist/core/p-98314c19.entry.js.map +0 -1
- package/dist/core/p-ac962619.entry.js +0 -2
- package/dist/core/p-ac962619.entry.js.map +0 -1
- package/dist/core/p-ae6d0bcd.entry.js +0 -2
- package/dist/core/p-ae6d0bcd.entry.js.map +0 -1
- package/dist/core/p-b3b517f0.entry.js.map +0 -1
- package/dist/core/p-b7306a6f.entry.js +0 -2
- package/dist/core/p-b7306a6f.entry.js.map +0 -1
- package/dist/core/p-b93548cc.entry.js.map +0 -1
- package/dist/core/p-be3bbe06.entry.js +0 -2
- package/dist/core/p-be3bbe06.entry.js.map +0 -1
- package/dist/core/p-cf06a38b.entry.js +0 -2
- package/dist/core/p-cf06a38b.entry.js.map +0 -1
- package/dist/core/p-dec65494.entry.js.map +0 -1
- package/dist/core/p-df09f0be.entry.js +0 -2
- package/dist/core/p-df09f0be.entry.js.map +0 -1
- package/dist/core/p-e0634fae.entry.js +0 -2
- package/dist/core/p-e0634fae.entry.js.map +0 -1
- package/dist/core/p-e1b2af6b.entry.js.map +0 -1
- package/dist/core/p-e29cd545.entry.js +0 -2
- package/dist/core/p-e29cd545.entry.js.map +0 -1
- package/dist/core/p-e5e7abe0.entry.js +0 -2
- package/dist/core/p-e5e7abe0.entry.js.map +0 -1
- package/dist/core/p-e7f889c7.entry.js.map +0 -1
- package/dist/core/p-ebd3d25f.entry.js +0 -2
- package/dist/core/p-ebd3d25f.entry.js.map +0 -1
- package/dist/core/p-f067af74.entry.js.map +0 -1
- package/dist/core/p-f58a20af.entry.js.map +0 -1
- package/dist/core/p-fe3bd57c.entry.js +0 -2
- package/dist/core/p-fe3bd57c.entry.js.map +0 -1
- package/dist/dist/components/gov-accordion-item.d.ts +0 -11
- package/dist/dist/components/gov-accordion.d.ts +0 -11
- package/dist/dist/components/gov-app.d.ts +0 -11
- package/dist/dist/components/gov-attachments-item.d.ts +0 -11
- package/dist/dist/components/gov-attachments.d.ts +0 -11
- package/dist/dist/components/gov-backdrop.d.ts +0 -11
- package/dist/dist/components/gov-banner.d.ts +0 -11
- package/dist/dist/components/gov-blockquote.d.ts +0 -11
- package/dist/dist/components/gov-breadcrumbs.d.ts +0 -11
- package/dist/dist/components/gov-button.d.ts +0 -11
- package/dist/dist/components/gov-card.d.ts +0 -11
- package/dist/dist/components/gov-chip.d.ts +0 -11
- package/dist/dist/components/gov-collapsible.d.ts +0 -11
- package/dist/dist/components/gov-container.d.ts +0 -11
- package/dist/dist/components/gov-control-group.d.ts +0 -11
- package/dist/dist/components/gov-cookiebar.d.ts +0 -11
- package/dist/dist/components/gov-dialog.d.ts +0 -11
- package/dist/dist/components/gov-dropdown.d.ts +0 -11
- package/dist/dist/components/gov-empty.d.ts +0 -11
- package/dist/dist/components/gov-error-code.d.ts +0 -11
- package/dist/dist/components/gov-flex.d.ts +0 -11
- package/dist/dist/components/gov-form-autocomplete.d.ts +0 -11
- package/dist/dist/components/gov-form-checkbox-group.d.ts +0 -11
- package/dist/dist/components/gov-form-checkbox.d.ts +0 -11
- package/dist/dist/components/gov-form-control.d.ts +0 -11
- package/dist/dist/components/gov-form-file.d.ts +0 -11
- package/dist/dist/components/gov-form-group.d.ts +0 -11
- package/dist/dist/components/gov-form-input.d.ts +0 -11
- package/dist/dist/components/gov-form-label.d.ts +0 -11
- package/dist/dist/components/gov-form-message.d.ts +0 -11
- package/dist/dist/components/gov-form-multi-select.d.ts +0 -11
- package/dist/dist/components/gov-form-password-power.d.ts +0 -11
- package/dist/dist/components/gov-form-radio-group.d.ts +0 -11
- package/dist/dist/components/gov-form-radio.d.ts +0 -11
- package/dist/dist/components/gov-form-range.d.ts +0 -11
- package/dist/dist/components/gov-form-search.d.ts +0 -11
- package/dist/dist/components/gov-form-select.d.ts +0 -11
- package/dist/dist/components/gov-form-switch.d.ts +0 -11
- package/dist/dist/components/gov-grid-item.d.ts +0 -11
- package/dist/dist/components/gov-grid.d.ts +0 -11
- package/dist/dist/components/gov-icon.d.ts +0 -11
- package/dist/dist/components/gov-infobar.d.ts +0 -11
- package/dist/dist/components/gov-layout-column.d.ts +0 -11
- package/dist/dist/components/gov-layout.d.ts +0 -11
- package/dist/dist/components/gov-lifecycle.d.ts +0 -11
- package/dist/dist/components/gov-link.d.ts +0 -11
- package/dist/dist/components/gov-loading.d.ts +0 -11
- package/dist/dist/components/gov-message.d.ts +0 -11
- package/dist/dist/components/gov-pagination.d.ts +0 -11
- package/dist/dist/components/gov-skeleton.d.ts +0 -11
- package/dist/dist/components/gov-spacer.d.ts +0 -11
- package/dist/dist/components/gov-stepper-item.d.ts +0 -11
- package/dist/dist/components/gov-stepper.d.ts +0 -11
- package/dist/dist/components/gov-tabs-item.d.ts +0 -11
- package/dist/dist/components/gov-tabs.d.ts +0 -11
- package/dist/dist/components/gov-tag.d.ts +0 -11
- package/dist/dist/components/gov-theme-switch.d.ts +0 -11
- package/dist/dist/components/gov-tile.d.ts +0 -11
- package/dist/dist/components/gov-toast.d.ts +0 -11
- package/dist/dist/components/gov-tooltip-content.d.ts +0 -11
- package/dist/dist/components/gov-tooltip.d.ts +0 -11
- package/dist/dist/components/gov-wizard-item.d.ts +0 -11
- package/dist/dist/components/gov-wizard.d.ts +0 -11
- package/dist/dist/components/index.d.ts +0 -33
- package/dist/dist/dist/components/index.d.ts +0 -33
- package/dist/dist/dist/globals.d.ts +0 -2
- package/dist/dist/dist/hydrate/index.d.ts +0 -273
- package/dist/dist/dist/types/interfaces.d.ts +0 -1
- package/dist/dist/dist/types/stencil-public-runtime.d.ts +0 -1702
- package/dist/dist/globals.d.ts +0 -2
- package/dist/dist/hydrate/index.d.ts +0 -273
- package/dist/dist/types/components/gov-accordion/constants.d.ts +0 -19
- package/dist/dist/types/components/gov-accordion/gov-accordion-item.d.ts +0 -43
- package/dist/dist/types/components/gov-accordion/gov-accordion.d.ts +0 -26
- package/dist/dist/types/components/gov-accordion/gov-accordion.types.d.ts +0 -9
- package/dist/dist/types/components/gov-attachments/constants.d.ts +0 -11
- package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +0 -4
- package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.ts +0 -24
- package/dist/dist/types/components/gov-attachments/gov-attachments.d.ts +0 -19
- package/dist/dist/types/components/gov-backdrop/constants.d.ts +0 -4
- package/dist/dist/types/components/gov-backdrop/gov-backdrop.d.ts +0 -32
- package/dist/dist/types/components/gov-banner/constants.d.ts +0 -26
- package/dist/dist/types/components/gov-banner/gov-banner.d.ts +0 -28
- package/dist/dist/types/components/gov-blockquote/constants.d.ts +0 -10
- package/dist/dist/types/components/gov-blockquote/gov-blockquote.d.ts +0 -15
- package/dist/dist/types/components/gov-breadcrumbs/constants.d.ts +0 -3
- package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +0 -4
- package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +0 -42
- package/dist/dist/types/components/gov-button/button/constants.d.ts +0 -29
- package/dist/dist/types/components/gov-button/button/gov-button.d.ts +0 -133
- package/dist/dist/types/components/gov-button/button/gov-button.types.d.ts +0 -4
- package/dist/dist/types/components/gov-button/dropdown/constants.d.ts +0 -10
- package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +0 -40
- package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +0 -4
- package/dist/dist/types/components/gov-card/constants.d.ts +0 -16
- package/dist/dist/types/components/gov-card/gov-card.d.ts +0 -57
- package/dist/dist/types/components/gov-card/interfaces.d.ts +0 -4
- package/dist/dist/types/components/gov-chip/constants.d.ts +0 -21
- package/dist/dist/types/components/gov-chip/gov-chip.d.ts +0 -82
- package/dist/dist/types/components/gov-collapsible/constants.d.ts +0 -18
- package/dist/dist/types/components/gov-collapsible/gov-collapsible.d.ts +0 -36
- package/dist/dist/types/components/gov-container/constants.d.ts +0 -3
- package/dist/dist/types/components/gov-container/gov-container.d.ts +0 -6
- package/dist/dist/types/components/gov-control-group/constants.d.ts +0 -7
- package/dist/dist/types/components/gov-control-group/gov-control-group.d.ts +0 -24
- package/dist/dist/types/components/gov-cookiebar/constants.d.ts +0 -7
- package/dist/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +0 -7
- package/dist/dist/types/components/gov-dialog/constants.d.ts +0 -11
- package/dist/dist/types/components/gov-dialog/gov-dialog.d.ts +0 -70
- package/dist/dist/types/components/gov-empty/constants.d.ts +0 -19
- package/dist/dist/types/components/gov-empty/gov-empty.d.ts +0 -21
- package/dist/dist/types/components/gov-error-code/constants.d.ts +0 -4
- package/dist/dist/types/components/gov-error-code/gov-error-code.d.ts +0 -6
- package/dist/dist/types/components/gov-flex/constants.d.ts +0 -7
- package/dist/dist/types/components/gov-flex/gov-flex.d.ts +0 -39
- package/dist/dist/types/components/gov-form/autocomplete/constants.d.ts +0 -11
- package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +0 -149
- package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +0 -9
- package/dist/dist/types/components/gov-form/checkbox/constants.d.ts +0 -10
- package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +0 -86
- package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +0 -5
- package/dist/dist/types/components/gov-form/control/constants.d.ts +0 -9
- package/dist/dist/types/components/gov-form/control/gov-form-control.d.ts +0 -40
- package/dist/dist/types/components/gov-form/file/constants.d.ts +0 -7
- package/dist/dist/types/components/gov-form/file/gov-form-file.d.ts +0 -129
- package/dist/dist/types/components/gov-form/file/gov-form-file.types.d.ts +0 -11
- package/dist/dist/types/components/gov-form/group/constants.d.ts +0 -18
- package/dist/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +0 -32
- package/dist/dist/types/components/gov-form/group/gov-form-group.d.ts +0 -18
- package/dist/dist/types/components/gov-form/group/gov-form-group.types.d.ts +0 -7
- package/dist/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +0 -32
- package/dist/dist/types/components/gov-form/input/constants.d.ts +0 -28
- package/dist/dist/types/components/gov-form/input/gov-form-input.d.ts +0 -178
- package/dist/dist/types/components/gov-form/input/gov-form-input.types.d.ts +0 -4
- package/dist/dist/types/components/gov-form/label/constants.d.ts +0 -8
- package/dist/dist/types/components/gov-form/label/gov-form-label.d.ts +0 -26
- package/dist/dist/types/components/gov-form/message/constants.d.ts +0 -11
- package/dist/dist/types/components/gov-form/message/gov-form-message.d.ts +0 -23
- package/dist/dist/types/components/gov-form/multiselect/constants.d.ts +0 -10
- package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +0 -127
- package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +0 -10
- package/dist/dist/types/components/gov-form/password-power/constants.d.ts +0 -5
- package/dist/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +0 -7
- package/dist/dist/types/components/gov-form/radio/constants.d.ts +0 -10
- package/dist/dist/types/components/gov-form/radio/gov-form-radio.d.ts +0 -83
- package/dist/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +0 -5
- package/dist/dist/types/components/gov-form/range/constants.d.ts +0 -9
- package/dist/dist/types/components/gov-form/range/gov-form-range.d.ts +0 -116
- package/dist/dist/types/components/gov-form/search/constants.d.ts +0 -10
- package/dist/dist/types/components/gov-form/search/gov-form-search.d.ts +0 -13
- package/dist/dist/types/components/gov-form/select/constants.d.ts +0 -8
- package/dist/dist/types/components/gov-form/select/gov-form-select.d.ts +0 -89
- package/dist/dist/types/components/gov-form/select/gov-form-select.types.d.ts +0 -9
- package/dist/dist/types/components/gov-form/switch/constants.d.ts +0 -12
- package/dist/dist/types/components/gov-form/switch/gov-form-switch.d.ts +0 -81
- package/dist/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +0 -5
- package/dist/dist/types/components/gov-grid/constants.d.ts +0 -10
- package/dist/dist/types/components/gov-grid/gov-grid-item.d.ts +0 -46
- package/dist/dist/types/components/gov-grid/gov-grid.d.ts +0 -19
- package/dist/dist/types/components/gov-icon/constants.d.ts +0 -18
- package/dist/dist/types/components/gov-icon/gov-icon.d.ts +0 -34
- package/dist/dist/types/components/gov-icon/helpers.d.ts +0 -6
- package/dist/dist/types/components/gov-icon/list.d.ts +0 -3
- package/dist/dist/types/components/gov-infobar/constants.d.ts +0 -16
- package/dist/dist/types/components/gov-infobar/gov-infobar.d.ts +0 -51
- package/dist/dist/types/components/gov-infobar/gov-infobar.types.d.ts +0 -4
- package/dist/dist/types/components/gov-layout/constants.d.ts +0 -20
- package/dist/dist/types/components/gov-layout/gov-layout-column.d.ts +0 -6
- package/dist/dist/types/components/gov-layout/gov-layout.d.ts +0 -20
- package/dist/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +0 -14
- package/dist/dist/types/components/gov-link/constants.d.ts +0 -8
- package/dist/dist/types/components/gov-link/gov-link.d.ts +0 -34
- package/dist/dist/types/components/gov-loading/loading/constants.d.ts +0 -9
- package/dist/dist/types/components/gov-loading/loading/gov-loading.d.ts +0 -13
- package/dist/dist/types/components/gov-loading/skeleton/constants.d.ts +0 -21
- package/dist/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +0 -46
- package/dist/dist/types/components/gov-message/constants.d.ts +0 -13
- package/dist/dist/types/components/gov-message/gov-message.d.ts +0 -16
- package/dist/dist/types/components/gov-pagination/constants.d.ts +0 -22
- package/dist/dist/types/components/gov-pagination/gov-pagination.d.ts +0 -97
- package/dist/dist/types/components/gov-pagination/gov-pagination.types.d.ts +0 -5
- package/dist/dist/types/components/gov-pagination/pagination.d.ts +0 -12
- package/dist/dist/types/components/gov-spacer/constants.d.ts +0 -15
- package/dist/dist/types/components/gov-spacer/gov-spacer.d.ts +0 -18
- package/dist/dist/types/components/gov-stepper/stepper/constants.d.ts +0 -21
- package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +0 -4
- package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +0 -31
- package/dist/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +0 -22
- package/dist/dist/types/components/gov-tabs/constants.d.ts +0 -28
- package/dist/dist/types/components/gov-tabs/gov-tabs-item.d.ts +0 -54
- package/dist/dist/types/components/gov-tabs/gov-tabs.d.ts +0 -70
- package/dist/dist/types/components/gov-tabs/gov-tabs.types.d.ts +0 -14
- package/dist/dist/types/components/gov-tag/constants.d.ts +0 -12
- package/dist/dist/types/components/gov-tag/gov-tag.d.ts +0 -35
- package/dist/dist/types/components/gov-theme-switch/constants.d.ts +0 -12
- package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +0 -46
- package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +0 -10
- package/dist/dist/types/components/gov-tile/constants.d.ts +0 -13
- package/dist/dist/types/components/gov-tile/gov-tile.d.ts +0 -34
- package/dist/dist/types/components/gov-toast/constants.d.ts +0 -17
- package/dist/dist/types/components/gov-toast/gov-toast.d.ts +0 -58
- package/dist/dist/types/components/gov-tooltip/constants.d.ts +0 -20
- package/dist/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +0 -28
- package/dist/dist/types/components/gov-tooltip/gov-tooltip.d.ts +0 -58
- package/dist/dist/types/components/gov-wizard/constants.d.ts +0 -19
- package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +0 -4
- package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.ts +0 -60
- package/dist/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +0 -4
- package/dist/dist/types/components/gov-wizard/gov-wizard.d.ts +0 -35
- package/dist/dist/types/core/constants/colors.d.ts +0 -13
- package/dist/dist/types/core/constants/sizes.d.ts +0 -13
- package/dist/dist/types/core/constants/tags.d.ts +0 -12
- package/dist/dist/types/core/constants/tokens.d.ts +0 -1
- package/dist/dist/types/helpers/Accessibility/accessibility.d.ts +0 -1
- package/dist/dist/types/helpers/Accessibility/attributes.d.ts +0 -1
- package/dist/dist/types/helpers/Dom/attribute.d.ts +0 -13
- package/dist/dist/types/helpers/Dom/document.d.ts +0 -4
- package/dist/dist/types/helpers/Dom/form.d.ts +0 -3
- package/dist/dist/types/helpers/Dom/form.types.d.ts +0 -11
- package/dist/dist/types/helpers/Dom/template.d.ts +0 -10
- package/dist/dist/types/helpers/Dom/template.types.d.ts +0 -14
- package/dist/dist/types/helpers/Dom/win.d.ts +0 -18
- package/dist/dist/types/helpers/Fragment.d.ts +0 -2
- package/dist/dist/types/helpers/Log/gov.log.d.ts +0 -8
- package/dist/dist/types/helpers/Validate/props.d.ts +0 -1
- package/dist/dist/types/helpers/Validate/wcag.d.ts +0 -4
- package/dist/dist/types/index.d.ts +0 -0
- package/dist/dist/types/interfaces.d.ts +0 -1
- package/dist/dist/types/stencil-public-runtime.d.ts +0 -1702
- package/dist/dist/types/types/event.types.d.ts +0 -4
- package/dist/dist/types/types/interfaces.d.ts +0 -2
- package/dist/dist/types/types/typings.d.ts +0 -6
- package/dist/dist/types/utils/array.utils.d.ts +0 -2
- package/dist/dist/types/utils/bool.utils.d.ts +0 -1
- package/dist/dist/types/utils/dom.utils.d.ts +0 -1
- package/dist/dist/types/utils/ds.utils.d.ts +0 -1
- package/dist/dist/types/utils/file.utils.d.ts +0 -3
- package/dist/dist/types/utils/helpers.types.d.ts +0 -49
- package/dist/dist/types/utils/icon.utils.d.ts +0 -4
- package/dist/dist/types/utils/number.utils.d.ts +0 -1
- package/dist/dist/types/utils/object.utils.d.ts +0 -2
- package/dist/dist/types/utils/stencil.utils.d.ts +0 -1
- package/dist/dist/types/utils/string.utils.d.ts +0 -4
- package/dist/dist/types/utils/utils.d.ts +0 -20
- package/dist/types/Users/KameraT/Desktop/Projects/DIA/Sarka/designSystemFinal/gov-design-system/packages/core/.stencil/packages/core/stencil.config.d.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-banner/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAEjD,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAGjE,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC3B,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,mCAAe,CAAA;AAChB,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,QAK3B;AAGD,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,iCAAa,CAAA;IACb,iCAAa,CAAA;AACd,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AAGD,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,kCAAe,CAAA;IACf,gCAAa,CAAA;AACd,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAGD,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,qBAAqB;CAC9B,CAAA","sourcesContent":["import {ValueOf} from \"../../types/interfaces\";\
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-banner/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAEjD,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAGjE,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC3B,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,mCAAe,CAAA;AAChB,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,QAK3B;AAGD,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,iCAAa,CAAA;IACb,iCAAa,CAAA;AACd,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AAGD,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,kCAAe,CAAA;IACf,gCAAa,CAAA;AACd,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAGD,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,qBAAqB;CAC9B,CAAA","sourcesContent":["import {ValueOf} from \"../../types/interfaces\";\nimport {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\n\nexport const BannerSizes = pick(Sizes, ['_S', '_M', '_L', '_XL'])\nexport type BannerSizesType = `${ValueOf<typeof BannerSizes>}`\n\nexport enum BannerBackground {\n\tSIMPLE = 'simple',\n\tWAVES = 'waves',\n\tSTRIPES = 'stripes',\n\tLINES = 'lines',\n}\nexport type BannerBackgroundsType = `${ValueOf<typeof BannerBackground>}`\n\nexport enum BannerForeground {\n\tIMAGE = 'image',\n\tLOGO = 'logo',\n\tICON = 'icon',\n}\nexport type BannerForegroundsType = `${ValueOf<typeof BannerForeground>}`\n\nexport enum BannerTextColor {\n\tLIGHT = 'light',\n\tDARK = 'dark',\n}\nexport type BannerTextColorsType = `${ValueOf<typeof BannerTextColor>}`\n\nexport const BannerClass = {\n\troot: 'gov-banner',\n\tcontent: 'gov-banner__content',\n}\n"]}
|
|
@@ -41,10 +41,10 @@ export class GovBanner {
|
|
|
41
41
|
this.validateTextColor(this.textColor);
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, Object.assign({ key: '
|
|
44
|
+
return (h(Host, Object.assign({ key: '3e20f606dab5e32411afc2dbf2bc94add284bed4', class: this.h.classes(BannerClass.root), role: "region", size: this.size }, (this.size !== "xl" ? {
|
|
45
45
|
background: this.background,
|
|
46
46
|
foreground: this.foreground
|
|
47
|
-
} : { 'text-color': this.textColor })), h("div", { key: '
|
|
47
|
+
} : { 'text-color': this.textColor })), h("div", { key: '334c429dac2fcde8b9bbaa223ec5111ba2ea062f' }, h("div", { key: '900e59f605db3ddb9a0999ee6d802aa73d0f4cb3', class: BannerClass.content }, h("slot", { key: 'b5bbcc66a5d7154e22c73c78001c1e2609c034cc', name: "headline" }), h("slot", { key: '3bc1675de3e41360eebd57fcc0880ede40053c3f' })), this.h.hasSlot('button') && (h("slot", { key: '9b85a1240ae9a28c8297085f88674006a729cc72', name: "button" }))), h("slot", { key: 'e2b1423f67a81d8188d68b1fbfdad1a88b3893cd', name: "image" })));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "gov-banner"; }
|
|
50
50
|
static get properties() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-banner.js","sourceRoot":"","sources":["../../../../../../src/components/gov-banner/gov-banner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B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C1C,CAAC;IAED,MAAM;QACF,OAAO,CACH,EAAC,IAAI,mEAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EACvC,IAAI,EAAC,QAAQ,EACb,IAAI,EAAE,IAAI,CAAC,IAAI,IACX,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC;YACtB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;SAC9B,CAAC,CAAC,CAAC,EAAC,YAAY,EAAE,IAAI,CAAC,SAAS,EAAC,CAAC;YACrC;gBACI,4DAAK,KAAK,EAAE,WAAW,CAAC,OAAO;oBAC3B,6DAAM,IAAI,EAAC,UAAU,GAAE;oBACvB,8DAAO,CACL;gBACL,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CACzB,6DAAM,IAAI,EAAC,QAAQ,GAAE,CACxB,CACC;YACN,6DAAM,IAAI,EAAC,OAAO,GAAE,CACjB,CACV,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import {Component, Element, h, Host, Prop, Watch} from '@stencil/core'\
|
|
1
|
+
{"version":3,"file":"gov-banner.js","sourceRoot":"","sources":["../../../../../../src/components/gov-banner/gov-banner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAElD,OAAO,EACH,gBAAgB,EAEhB,WAAW,EACX,gBAAgB,EAEhB,WAAW,EAEX,eAAe,EAElB,MAAM,aAAa,CAAC;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W,CAAC,IAAI,CAAC,EACvC,IAAI,EAAC,QAAQ,EACb,IAAI,EAAE,IAAI,CAAC,IAAI,IACX,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC;YACtB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;SAC9B,CAAC,CAAC,CAAC,EAAC,YAAY,EAAE,IAAI,CAAC,SAAS,EAAC,CAAC;YACrC;gBACI,4DAAK,KAAK,EAAE,WAAW,CAAC,OAAO;oBAC3B,6DAAM,IAAI,EAAC,UAAU,GAAE;oBACvB,8DAAO,CACL;gBACL,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CACzB,6DAAM,IAAI,EAAC,QAAQ,GAAE,CACxB,CACC;YACN,6DAAM,IAAI,EAAC,OAAO,GAAE,CACjB,CACV,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import {Component, Element, h, Host, Prop, Watch} from '@stencil/core'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {\n BannerBackground,\n BannerBackgroundsType,\n BannerClass,\n BannerForeground,\n BannerForegroundsType,\n BannerSizes,\n BannerSizesType,\n BannerTextColor,\n BannerTextColorsType\n} from \"./constants\";\nimport {validateProp} from \"../../helpers/Validate/props\";\n\n@Component({\n tag: 'gov-banner',\n})\nexport class GovBanner {\n private h: GovHost\n\n constructor() {\n this.h = govHost(this.host)\n }\n\n @Element() host: HTMLGovBannerElement\n /**\n * Banner’s size.\n */\n @Prop({reflect: true}) readonly size: BannerSizesType = BannerSizes._M\n /**\n * Banner’s background\n */\n @Prop() readonly background: BannerBackgroundsType = BannerBackground.SIMPLE\n /**\n * Banner’s foreground\n */\n @Prop() readonly foreground: BannerForegroundsType = BannerForeground.LOGO\n /**\n * XL Banner’s text color\n */\n @Prop({attribute: 'text-color'}) readonly textColor: BannerTextColorsType = BannerTextColor.LIGHT\n\n @Watch('size')\n validateSize(newValue: string): void {\n validateProp(BannerSizes, newValue, BannerClass.root)\n }\n\n @Watch('background')\n validateBackground(newValue: string): void {\n validateProp(BannerBackground, newValue, BannerClass.root)\n }\n\n @Watch('foreground')\n validateForeground(newValue: string): void {\n validateProp(BannerForeground, newValue, BannerClass.root)\n }\n\n @Watch('text-color')\n validateTextColor(newValue: string): void {\n validateProp(BannerTextColor, newValue, BannerClass.root)\n }\n\n componentWillLoad(): void {\n this.validateSize(this.size)\n this.validateBackground(this.background)\n this.validateForeground(this.foreground)\n this.validateTextColor(this.textColor)\n }\n\n render() {\n return (\n <Host class={this.h.classes(BannerClass.root)}\n role=\"region\"\n size={this.size}\n {...(this.size !== \"xl\" ? {\n background: this.background,\n foreground: this.foreground\n } : {'text-color': this.textColor})}>\n <div>\n <div class={BannerClass.content}>\n <slot name=\"headline\"/>\n <slot/>\n </div>\n {this.h.hasSlot('button') && (\n <slot name=\"button\"/>\n )}\n </div>\n <slot name=\"image\"/>\n </Host>\n )\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-blockquote/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;AACpB,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAGD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,IAAI,EAAE,gBAAgB;CACtB,CAAA","sourcesContent":["import {ValueOf} from \"../../types/interfaces\";\
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-blockquote/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;AACpB,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAGD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,IAAI,EAAE,gBAAgB;CACtB,CAAA","sourcesContent":["import {ValueOf} from \"../../types/interfaces\";\n\nexport enum BlockquoteType {\n\tPRIMARY = 'primary',\n\tSUBTLE = 'subtle',\n\tNEUTRAL = 'neutral',\n}\nexport type BlockquoteTypesType = `${ValueOf<typeof BlockquoteType>}`\n\nexport const BlockquoteClass = {\n\troot: 'gov-blockquote',\n}\n"]}
|
|
@@ -10,7 +10,7 @@ export class GovBlockquote {
|
|
|
10
10
|
this.h = govHost(this.host);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'c12f0f01c2db5025112edd1ebc834a18ff754546', class: this.h.classes(BlockquoteClass.root), type: this.type }, h("gov-icon", { key: 'f043fdebbbd95c4eb3909985243f5ef253eb0335', type: "components", name: "quote", size: "3xl" }), h("blockquote", { key: '57cdec66772ad7732a79dd9a55cad1d9e5058ed7', cite: this.cite }, h("slot", { key: '71a0e5ca7f377e22f4c12c44c517f142d45e47a9' })), h("slot", { key: 'b0c7f4796b12e1baec71c03d20cb2ff99ae51311', name: "image" }), h("slot", { key: '55e5588b7e9793743a6b8ef403d363ddde8300d8', name: "author" })));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "gov-blockquote"; }
|
|
16
16
|
static get properties() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-blockquote.js","sourceRoot":"","sources":["../../../../../../src/components/gov-blockquote/gov-blockquote.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAC,eAAe,EAAE,cAAc,EAAsB,MAAM,aAAa,CAAC;AAMjF,MAAM,OAAO,aAAa;IAGzB;QAKA;;WAEG;QAC6B,SAAI,GAAwB,cAAc,CAAC,MAAM,CAAA;QAPhF,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAYD,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI;YACjE,iEAAU,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,KAAK,GAAY;YAC/D,mEAAY,IAAI,EAAE,IAAI,CAAC,IAAI;gBAC1B,8DAAQ,CACI;YACb,6DAAM,IAAI,EAAC,OAAO,GAAG;YACrB,6DAAM,IAAI,EAAC,QAAQ,GAAG,CAChB,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Host, h, Prop} from '@stencil/core'\
|
|
1
|
+
{"version":3,"file":"gov-blockquote.js","sourceRoot":"","sources":["../../../../../../src/components/gov-blockquote/gov-blockquote.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAC,eAAe,EAAE,cAAc,EAAsB,MAAM,aAAa,CAAC;AAMjF,MAAM,OAAO,aAAa;IAGzB;QAKA;;WAEG;QAC6B,SAAI,GAAwB,cAAc,CAAC,MAAM,CAAA;QAPhF,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAYD,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI;YACjE,iEAAU,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,KAAK,GAAY;YAC/D,mEAAY,IAAI,EAAE,IAAI,CAAC,IAAI;gBAC1B,8DAAQ,CACI;YACb,6DAAM,IAAI,EAAC,OAAO,GAAG;YACrB,6DAAM,IAAI,EAAC,QAAQ,GAAG,CAChB,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Host, h, Prop} from '@stencil/core'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport {BlockquoteClass, BlockquoteType, BlockquoteTypesType} from \"./constants\";\n\n\n@Component({\n\ttag: 'gov-blockquote',\n})\nexport class GovBlockquote {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovBlockquoteElement\n\t/**\n\t * Blockquote’s type\n\t */\n\t@Prop({reflect: true}) readonly type: BlockquoteTypesType = BlockquoteType.SUBTLE\n\t/**\n\t * Blockquote’s cite url\n\t */\n\t@Prop({attribute: 'cite'}) readonly cite: string\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(BlockquoteClass.root)} type={this.type}>\n\t\t\t\t<gov-icon type=\"components\" name=\"quote\" size=\"3xl\"></gov-icon>\n\t\t\t\t<blockquote cite={this.cite}>\n\t\t\t\t\t<slot />\n\t\t\t\t</blockquote>\n\t\t\t\t<slot name=\"image\" />\n\t\t\t\t<slot name=\"author\" />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-breadcrumbs/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,IAAI,EAAE,iBAAiB;CACvB,CAAA","sourcesContent":["export const BreadcrumbsClass = {\
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-breadcrumbs/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,IAAI,EAAE,iBAAiB;CACvB,CAAA","sourcesContent":["export const BreadcrumbsClass = {\n\troot: 'gov-breadcrumbs',\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-breadcrumbs.d.js","sourceRoot":"","sources":["../../../../../../src/components/gov-breadcrumbs/gov-breadcrumbs.d.tsx"],"names":[],"mappings":"","sourcesContent":["export interface GovBreadcrumbsChangeEvent {\
|
|
1
|
+
{"version":3,"file":"gov-breadcrumbs.d.js","sourceRoot":"","sources":["../../../../../../src/components/gov-breadcrumbs/gov-breadcrumbs.d.tsx"],"names":[],"mappings":"","sourcesContent":["export interface GovBreadcrumbsChangeEvent {\n\topen: boolean\n\telement: HTMLGovBreadcrumbsElement\n}\n"]}
|
|
@@ -47,7 +47,7 @@ export class GovBreadcrumbs {
|
|
|
47
47
|
this.toggleOption = sumOfWidths > hostWidth;
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'f8d5534c547e913a6ea57caafb588e00244f5c13', class: this.h.classes(BreadcrumbsClass.root), expanded: this.expanded }, h("nav", { key: '932e17955c6bdfb53339597b088519e91a5249f6', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy }, h("slot", { key: '618bee35e6a66fad8fb7cf35485d101ce0b62ad4' })), this.toggleOption ? (h("gov-button", { size: 'xs', color: 'primary', type: 'base', "aria-label": this.accessibleToggleLabel, "aria-pressed": this.expanded, "aria-expanded": this.expanded, "on-gov-click": () => this.expanded = !this.expanded }, h("gov-icon", { name: this.expanded ? 'chevron-up' : 'chevron-down', type: "components" }))) : null));
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Validate the WCAG attributes of the component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-breadcrumbs.js","sourceRoot":"","sources":["../../../../../../src/components/gov-breadcrumbs/gov-breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACnG,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAElD,OAAO,EAAC,IAAI,EAAC,MAAM,2BAA2B,CAAC;AAK/C,MAAM,OAAO,cAAc;IAI1B;QAHQ,WAAM,GAAG,KAAK,CAAC;QAQvB;;WAEG;QACc,gBAAW,GAAY,KAAK,CAAA;QAC7C;;WAEG;QACwC,eAAU,GAAY,KAAK,CAAA;QAStE;;WAEG;QACoD,0BAAqB,GAAW,4BAA4B,CAAA;QAM1G,aAAQ,GAAG,KAAK,CAAC;QACjB,iBAAY,GAAG,KAAK,CAAC;QA9B7B,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IA+BD,KAAK,CAAC,kBAAkB;QACvB,IAAI,CAAC,2BAA2B,EAAE,CAAA;QAClC,IAAI,uBAAuB,EAAE,EAAE,CAAC;YA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,QAAQ;gBAElD,gBAAU,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,EAAE,IAAI,EAAC,YAAY,GAAY,CAChF,CACb,CAAC,CAAC,CAAC,IAAI,CACF,CACP,CAAA;IACF,CAAC;IAGD;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,uBAAuB,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAC1G,uBAAuB,CAAC,IAAI,CAAC,qBAAqB,EAAE,SAAS,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IACjG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State} from '@stencil/core'\
|
|
1
|
+
{"version":3,"file":"gov-breadcrumbs.js","sourceRoot":"","sources":["../../../../../../src/components/gov-breadcrumbs/gov-breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACnG,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAElD,OAAO,EAAC,IAAI,EAAC,MAAM,2BAA2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AC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ;YAC1E,0EAAiB,IAAI,CAAC,eAAe,qBAAmB,IAAI,CAAC,oBAAoB;gBAChF,8DAAO,CACF;YACL,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CACpB,kBACC,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,MAAM,gBACA,IAAI,CAAC,qBAAqB,kBACxB,IAAI,CAAC,QAAQ,mBACZ,IAAI,CAAC,QAAQ,kBACd,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ;gBAElD,gBAAU,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,EAAE,IAAI,EAAC,YAAY,GAAY,CAChF,CACb,CAAC,CAAC,CAAC,IAAI,CACF,CACP,CAAA;IACF,CAAC;IAGD;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,uBAAuB,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAC1G,uBAAuB,CAAC,IAAI,CAAC,qBAAqB,EAAE,SAAS,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IACjG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State} from '@stencil/core'\nimport {BreadcrumbsClass} from './constants'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {GovBreadcrumbsChangeEvent} from './gov-breadcrumbs.d'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {tick} from \"../../utils/stencil.utils\";\n\n@Component({\n\ttag: 'gov-breadcrumbs',\n})\nexport class GovBreadcrumbs {\n\tprivate inited = false;\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovBreadcrumbsElement\n\t/**\n\t * Defines whether the components can be collapsible when element doesn't fit in one row.\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the breadcrumbs are open or closed by button\n\t */\n\t@Prop({attribute: 'is-expanded'}) readonly isExpanded: boolean = false\n\t/**\n\t * Adds accessible label for the pagination that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) readonly accessibleLabel: string\n\t/**\n\t * Indicates the id of a component that labels the pagination.\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) readonly accessibleLabelledBy: string\n\t/**\n\t * Adds an accessible label to display the full breadcrumb navigation that only screen readers can see.\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit či skrýt navigaci'\n\t/**\n\t * Called when the Breadcrumbs state changes\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<GovBreadcrumbsChangeEvent>\n\n\t@State() expanded = false;\n\t@State() toggleOption = false;\n\n\tasync componentDidRender() {\n\t\tthis.scheduleContentVerification()\n\t\tif (canValidateWcagOnRender()) {\n\t\t\ttick(() => this.validateAccessibility())\n\t\t}\n\t}\n\n\tprivate scheduleContentVerification() {\n\t\tif (this.inited) return;\n\t\tthis.inited = true;\n\t\ttick(() => {\n\t\t\tthis.calculateWidthOfItems();\n\t\t\tthis.inited = false;\n\t\t});\n\t}\n\n\tprivate calculateWidthOfItems() {\n\t\tconst hostWidth = this.host.getBoundingClientRect().width;\n\t\tlet sumOfWidths = 0;\n\t\tthis.host.querySelectorAll('li').forEach((li) => {\n\t\t\tsumOfWidths += li.getBoundingClientRect().width\n\t\t})\n\t\tthis.toggleOption = sumOfWidths > hostWidth;\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(BreadcrumbsClass.root)} expanded={this.expanded}>\n\t\t\t\t<nav aria-label={this.accessibleLabel} aria-labelledby={this.accessibleLabelledBy}>\n\t\t\t\t\t<slot/>\n\t\t\t\t</nav>\n\t\t\t\t{this.toggleOption ? (\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\tsize={'xs'}\n\t\t\t\t\t\tcolor={'primary'}\n\t\t\t\t\t\ttype={'base'}\n\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\taria-pressed={this.expanded}\n\t\t\t\t\t\taria-expanded={this.expanded}\n\t\t\t\t\t\ton-gov-click={() => this.expanded = !this.expanded}\n\t\t\t\t\t>\n\t\t\t\t\t\t<gov-icon name={this.expanded ? 'chevron-up' : 'chevron-down'} type=\"components\"></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleLabel, this.accessibleLabelledBy, BreadcrumbsClass.root, this.host)\n\t\tvalidateAccessibleLabel(this.accessibleToggleLabel, undefined, BreadcrumbsClass.root, this.host)\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/button/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAA;AAEvD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAE3C,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAGxE,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAA;AAG5G,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACrB,6BAAe,CAAA;IACf,mCAAqB,CAAA;IACrB,2BAAa,CAAA;IACb,2BAAa,CAAA;AACd,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAGD,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACrB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,6BAAe,CAAA;AAChB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAGD,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACvB,gCAAgB,CAAA;IAChB,8BAAc,CAAA;IACd,4BAAY,CAAA;AACb,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB;AAGD,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,IAAI,EAAE,YAAY;CAClB,CAAA","sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/button/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAA;AAEvD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAE3C,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAGxE,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAA;AAG5G,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACrB,6BAAe,CAAA;IACf,mCAAqB,CAAA;IACrB,2BAAa,CAAA;IACb,2BAAa,CAAA;AACd,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAGD,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACrB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,6BAAe,CAAA;AAChB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAGD,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACvB,gCAAgB,CAAA;IAChB,8BAAc,CAAA;IACd,4BAAY,CAAA;AACb,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB;AAGD,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,IAAI,EAAE,YAAY;CAClB,CAAA","sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\nimport { Colors } from '../../../core/constants/colors'\nimport { ValueOf } from '../../../types/interfaces'\nimport { pick } from '../../../utils/utils'\n\nexport const ButtonSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type ButtonSizesType = `${ValueOf<typeof ButtonSizes>}`\n\nexport const ButtonColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'SUCCESS', 'ERROR', 'WARNING'])\nexport type ButtonColorType = `${ValueOf<typeof ButtonColors>}`\n\nexport enum ButtonType {\n\tSOLID = 'solid',\n\tOUTLINED = 'outlined',\n\tBASE = 'base',\n\tLINK = 'link',\n}\nexport type ButtonTypesType = `${ValueOf<typeof ButtonType>}`\n\nexport enum NativeType {\n\tSUBMIT = 'submit',\n\tBUTTON = 'button',\n\tRESET = 'reset',\n}\nexport type NativeTypesType = `${ValueOf<typeof NativeType>}`\n\nexport enum ButtonTarget {\n\tBLANK = '_blank',\n\tSELF = '_self',\n\tNEW = '_new',\n}\nexport type ButtonTargetType = `${ValueOf<typeof ButtonTarget>}`\n\nexport const ButtonClass = {\n\troot: 'gov-button',\n}\n"]}
|
|
@@ -98,9 +98,9 @@ export class GovButton {
|
|
|
98
98
|
render() {
|
|
99
99
|
const Tag = this.href ? Tags.A : Tags.BUTTON;
|
|
100
100
|
const nativeType = Tag === Tags.A ? undefined : this.nativeType;
|
|
101
|
-
return (h(Host, { key: '
|
|
102
|
-
h("gov-icon", { key: '
|
|
103
|
-
h("gov-icon", { key: '
|
|
101
|
+
return (h(Host, { key: 'be41c5da0a82fa7c16239527bc720510de8ecbd5', size: this.size, hydrated: this.hydrated, color: this.color, class: this.h.classes(ButtonClass.root), type: this.type }, h(Tag, Object.assign({ key: 'c46f9288bccd35208999be6e0b3fbdc53097e9eb', class: "element", ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), disabled: this.disabled, id: this.identifier, href: this.href, target: this.target, download: this.download, hreflang: this.hreflang, rel: this.rel, name: this.name, type: nativeType, tabindex: this.disabled ? "-1" : this.tab }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled) }), toBool(this.loading) && !this.h.hasSlot("icon-end") &&
|
|
102
|
+
h("gov-icon", { key: '051f379ac0f6095662027cb21aa97167d641aeb9', name: "loader", class: "gov-spin-animation", type: "components" }), this.h.hasSlot("icon-start") && h("slot", { key: 'f727f494903fa51f278cf7bbd4045dff83bf735d', name: "icon-start" }), h("slot", { key: 'dfb09a744c1ef48ef8fd5af7e833b28cf4138d89' }), this.h.hasSlot("icon-end") && h("slot", { key: '1d81872f18bf2c66af51eb327b45cd102dec9ec9', name: "icon-end" }), toBool(this.loading) && this.h.hasSlot("icon-end") &&
|
|
103
|
+
h("gov-icon", { key: '288d436dbc423b0a02701a0c7764b46f2957d7f4', name: "loader", class: "gov-spin-animation", type: "components" }))));
|
|
104
104
|
}
|
|
105
105
|
onClickHandler(e) {
|
|
106
106
|
e.stopPropagation();
|
|
@@ -299,7 +299,7 @@ export class GovButton {
|
|
|
299
299
|
"optional": false,
|
|
300
300
|
"docs": {
|
|
301
301
|
"tags": [],
|
|
302
|
-
"text": "Makes the button component disabled.\
|
|
302
|
+
"text": "Makes the button component disabled.\nThis prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies"
|
|
303
303
|
},
|
|
304
304
|
"getter": false,
|
|
305
305
|
"setter": false,
|
|
@@ -325,7 +325,7 @@ export class GovButton {
|
|
|
325
325
|
"optional": true,
|
|
326
326
|
"docs": {
|
|
327
327
|
"tags": [],
|
|
328
|
-
"text": "Same as original parameter\
|
|
328
|
+
"text": "Same as original parameter\nhttps://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type"
|
|
329
329
|
},
|
|
330
330
|
"getter": false,
|
|
331
331
|
"setter": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-button.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/button/gov-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EACN,WAAW,EACX,YAAY,EAIZ,UAAU,EAEV,UAAU,GAEV,MAAM,aAAa,CAAA;AACpB,OAAO,EAAC,OAAO,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AAE1E,OAAO,EAAC,MAAM,EAAC,MAAM,2BAA2B,CAAA;AAChD,OAAO,EAAC,KAAK,EAAC,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {validateProp} from \"../../../helpers/Validate/props\"\r\nimport {\r\n\tButtonClass,\r\n\tButtonColors,\r\n\tButtonColorType,\r\n\tButtonSizesType,\r\n\tButtonTargetType,\r\n\tButtonType,\r\n\tButtonTypesType,\r\n\tNativeType,\r\n\tNativeTypesType,\r\n} from \"./constants\"\r\nimport {govHost, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\r\nimport {toBool} from \"../../../utils/bool.utils\"\r\nimport {Sizes} from \"../../../core/constants/sizes\"\r\nimport {validateAccessibleLabel} from \"../../../helpers/Validate/wcag\"\r\nimport {canValidateWcagOnRender} from \"../../../helpers/Dom/win\"\r\nimport {delay} from \"../../../utils/utils\"\r\nimport {ButtonEvent} from \"./gov-button.types\"\r\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\r\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\r\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\r\n\r\nenum Tags {\r\n\tA = \"a\",\r\n\tBUTTON = \"button\",\r\n}\r\n\r\n@Component({\r\n\ttag: \"gov-button\",\r\n})\r\nexport class GovButton {\r\n\tprivate h: GovHost\r\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement\r\n\tprivate attributeObserver: AttributeObserver\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovButtonElement\r\n\r\n\t/**\r\n\t * Style variation of the button\r\n\t */\r\n\t@Prop({reflect: true}) readonly color: ButtonColorType\r\n\t/**\r\n\t * Button’s size\r\n\t */\r\n\t@Prop({reflect: true}) readonly size?: ButtonSizesType = \"m\"\r\n\t/**\r\n\t * Button's type\r\n\t */\r\n\t@Prop({reflect: true}) readonly type: ButtonTypesType\r\n\t/**\r\n\t * Expands the button to fill 100% of the container width\r\n\t */\r\n\t@Prop({reflect: true}) readonly expanded: boolean = false\r\n\t/**\r\n\t * Expands the button to fill 100% of the container width only on mobile\r\n\t */\r\n\t@Prop({reflect: true, attribute: \"expanded-mobile\"}) readonly expandedMobile: boolean = false\r\n\t/**\r\n\t * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute\r\n\t */\r\n\t@Prop() readonly name: string\r\n\t/**\r\n\t * Makes the button component disabled.\r\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Same as original parameter\r\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\r\n\t */\r\n\t@Prop() readonly nativeType?: NativeTypesType = \"button\"\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\r\n\t */\r\n\t@Prop() readonly href: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\r\n\t */\r\n\t@Prop() readonly target?: ButtonTargetType\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\r\n\t */\r\n\t@Prop() readonly download: boolean\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\r\n\t */\r\n\t@Prop() readonly tab: number = 0\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang\r\n\t */\r\n\t@Prop() readonly hreflang: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-referrerpolicy\r\n\t */\r\n\t@Prop() readonly referrerpolicy: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel\r\n\t */\r\n\t@Prop() readonly rel: string\r\n\t/**\r\n\t * Indicates whether an asynchronous process is running\r\n\t */\r\n\t@Prop() readonly loading: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\r\n\t */\r\n\t@Prop() readonly focusable: boolean = true\r\n\t/**\r\n\t * Custom button identifier\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Emitted when the button click\r\n\t */\r\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<ButtonEvent>\r\n\t/**\r\n\t * Emitted when the button has focus\r\n\t */\r\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<ButtonEvent>\r\n\t/**\r\n\t * Emitted when the button loses focus\r\n\t */\r\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<ButtonEvent>\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(ButtonColors, newValue, ButtonClass.root)\r\n\t}\r\n\r\n\t@Watch(\"type\")\r\n\tvalidateType(newValue: string): void {\r\n\t\tvalidateProp(ButtonType, newValue, ButtonClass.root)\r\n\t}\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(Sizes, newValue, ButtonClass.root)\r\n\t}\r\n\r\n\t@Watch(\"nativeType\")\r\n\tvalidateNativeType(newValue: string): void {\r\n\t\tvalidateProp(NativeType, newValue, ButtonClass.root)\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t\tthis.validateType(this.type)\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.validateNativeType(this.nativeType)\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tasync componentDidRender() {\r\n\t\tif (canValidateWcagOnRender()) {\r\n\t\t\tawait delay(500)\r\n\t\t\tawait this.validateAccessibility()\r\n\t\t}\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst Tag = this.href ? Tags.A : Tags.BUTTON\r\n\t\tconst nativeType = Tag === Tags.A ? undefined : this.nativeType\r\n\r\n\t\treturn (\r\n\t\t\t<Host size={this.size}\r\n\t\t\t\t hydrated={this.hydrated}\r\n\t\t\t\t color={this.color}\r\n\t\t\t\t class={this.h.classes(ButtonClass.root)}\r\n\t\t\t\t type={this.type}>\r\n\t\t\t\t<Tag\r\n\t\t\t\t\tclass=\"element\"\r\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLButtonElement | HTMLLinkElement)}\r\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\r\n\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\r\n\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\r\n\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\tid={this.identifier}\r\n\t\t\t\t\thref={this.href}\r\n\t\t\t\t\ttarget={this.target}\r\n\t\t\t\t\tdownload={this.download}\r\n\t\t\t\t\threflang={this.hreflang}\r\n\t\t\t\t\trel={this.rel}\r\n\t\t\t\t\tname={this.name}\r\n\t\t\t\t\ttype={nativeType}\r\n\t\t\t\t\ttabindex={this.disabled ? \"-1\" : this.tab}\r\n\t\t\t\t\t{...this.inheritedAttributes}\r\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\r\n\t\t\t\t>\r\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot(\"icon-end\") &&\r\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\" type=\"components\"></gov-icon>}\r\n\t\t\t\t\t{this.h.hasSlot(\"icon-start\") && <slot name=\"icon-start\"></slot>}\r\n\t\t\t\t\t<slot/>\r\n\t\t\t\t\t{this.h.hasSlot(\"icon-end\") && <slot name=\"icon-end\"></slot>}\r\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot(\"icon-end\") &&\r\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\" type=\"components\"></gov-icon>}\r\n\t\t\t\t</Tag>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onClickHandler(e: PointerEvent): void {\r\n\t\te.stopPropagation()\r\n\t\tif (this.disabled === false) {\r\n\t\t\tthis.govClick.emit({\r\n\t\t\t\tcomponent: ButtonClass.root,\r\n\t\t\t\toriginalEvent: e,\r\n\t\t\t\tref: this.host,\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\tprivate onFocusHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govFocus.emit({\r\n\t\t\tcomponent: ButtonClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t\tref: this.host,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onBlurHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govBlur.emit({\r\n\t\t\tcomponent: ButtonClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t\tref: this.host,\r\n\t\t})\r\n\t}\r\n\r\n\t/**\r\n\t * Focus button element\r\n\t */\r\n\t@Method()\r\n\tasync setFocus(): Promise<void> {\r\n\t\tthis.triggerRef.focus()\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a clickable element instance\r\n\t */\r\n\t@Method()\r\n\tasync getRef() {\r\n\t\treturn this.triggerRef\r\n\t}\r\n\r\n\t/**\r\n\t * Validate the Accessibility attributes of the component\r\n\t */\r\n\t@Method()\r\n\tasync validateAccessibility(): Promise<void> {\r\n\t\tif (this.focusable) {\r\n\t\t\tvalidateAccessibleLabel(this.triggerRef.getAttribute('aria-label'), this.triggerRef.getAttribute('aria-labelledby'), ButtonClass.root, this.host)\r\n\t\t}\r\n\t}\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"gov-button.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/button/gov-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EACN,WAAW,EACX,YAAY,EAIZ,UAAU,EAEV,UAAU,GAEV,MAAM,aAAa,CAAA;AACpB,OAAO,EAAC,OAAO,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AAE1E,OAAO,EAAC,MAAM,EAAC,MAAM,2BAA2B,CAAA;AAChD,OAAO,EAAC,KAAK,EAAC,MAAM,+BAA+B,CAAA;AACnD,OAAO,EAAC,uBAAu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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {\n\tButtonClass,\n\tButtonColors,\n\tButtonColorType,\n\tButtonSizesType,\n\tButtonTargetType,\n\tButtonType,\n\tButtonTypesType,\n\tNativeType,\n\tNativeTypesType,\n} from \"./constants\"\nimport {govHost, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {toBool} from \"../../../utils/bool.utils\"\nimport {Sizes} from \"../../../core/constants/sizes\"\nimport {validateAccessibleLabel} from \"../../../helpers/Validate/wcag\"\nimport {canValidateWcagOnRender} from \"../../../helpers/Dom/win\"\nimport {delay} from \"../../../utils/utils\"\nimport {ButtonEvent} from \"./gov-button.types\"\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\n\nenum Tags {\n\tA = \"a\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-button\",\n})\nexport class GovButton {\n\tprivate h: GovHost\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement\n\tprivate attributeObserver: AttributeObserver\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovButtonElement\n\n\t/**\n\t * Style variation of the button\n\t */\n\t@Prop({reflect: true}) readonly color: ButtonColorType\n\t/**\n\t * Button’s size\n\t */\n\t@Prop({reflect: true}) readonly size?: ButtonSizesType = \"m\"\n\t/**\n\t * Button's type\n\t */\n\t@Prop({reflect: true}) readonly type: ButtonTypesType\n\t/**\n\t * Expands the button to fill 100% of the container width\n\t */\n\t@Prop({reflect: true}) readonly expanded: boolean = false\n\t/**\n\t * Expands the button to fill 100% of the container width only on mobile\n\t */\n\t@Prop({reflect: true, attribute: \"expanded-mobile\"}) readonly expandedMobile: boolean = false\n\t/**\n\t * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Makes the button component disabled.\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\n\t */\n\t@Prop() readonly nativeType?: NativeTypesType = \"button\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target?: ButtonTargetType\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\n\t */\n\t@Prop() readonly download: boolean\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\n\t */\n\t@Prop() readonly tab: number = 0\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang\n\t */\n\t@Prop() readonly hreflang: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-referrerpolicy\n\t */\n\t@Prop() readonly referrerpolicy: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel\n\t */\n\t@Prop() readonly rel: string\n\t/**\n\t * Indicates whether an asynchronous process is running\n\t */\n\t@Prop() readonly loading: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom button identifier\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Emitted when the button click\n\t */\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button has focus\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button loses focus\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<ButtonEvent>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(ButtonType, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"nativeType\")\n\tvalidateNativeType(newValue: string): void {\n\t\tvalidateProp(NativeType, newValue, ButtonClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateType(this.type)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateNativeType(this.nativeType)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? Tags.A : Tags.BUTTON\n\t\tconst nativeType = Tag === Tags.A ? undefined : this.nativeType\n\n\t\treturn (\n\t\t\t<Host size={this.size}\n\t\t\t\t hydrated={this.hydrated}\n\t\t\t\t color={this.color}\n\t\t\t\t class={this.h.classes(ButtonClass.root)}\n\t\t\t\t type={this.type}>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLButtonElement | HTMLLinkElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\tid={this.identifier}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tdownload={this.download}\n\t\t\t\t\threflang={this.hreflang}\n\t\t\t\t\trel={this.rel}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\ttype={nativeType}\n\t\t\t\t\ttabindex={this.disabled ? \"-1\" : this.tab}\n\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t>\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot(\"icon-end\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\" type=\"components\"></gov-icon>}\n\t\t\t\t\t{this.h.hasSlot(\"icon-start\") && <slot name=\"icon-start\"></slot>}\n\t\t\t\t\t<slot/>\n\t\t\t\t\t{this.h.hasSlot(\"icon-end\") && <slot name=\"icon-end\"></slot>}\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot(\"icon-end\") &&\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\" type=\"components\"></gov-icon>}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false) {\n\t\t\tthis.govClick.emit({\n\t\t\t\tcomponent: ButtonClass.root,\n\t\t\t\toriginalEvent: e,\n\t\t\t\tref: this.host,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getRef() {\n\t\treturn this.triggerRef\n\t}\n\n\t/**\n\t * Validate the Accessibility attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.focusable) {\n\t\t\tvalidateAccessibleLabel(this.triggerRef.getAttribute('aria-label'), this.triggerRef.getAttribute('aria-labelledby'), ButtonClass.root, this.host)\n\t\t}\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-button.types.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/button/gov-button.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../../types/event.types\"\
|
|
1
|
+
{"version":3,"file":"gov-button.types.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/button/gov-button.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../../types/event.types\"\n\nexport interface ButtonEvent extends GovBaseEvent {\n\tref: HTMLGovButtonElement\n}\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/dropdown/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,QAGX;AAHD,WAAY,QAAQ;IACnB,yBAAa,CAAA;IACb,2BAAe,CAAA;AAChB,CAAC,EAHW,QAAQ,KAAR,QAAQ,QAGnB;AAID,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,oBAAoB;CAC1B,CAAA","sourcesContent":["import { ValueOf } from \"../../../types/interfaces\"\
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/dropdown/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,QAGX;AAHD,WAAY,QAAQ;IACnB,yBAAa,CAAA;IACb,2BAAe,CAAA;AAChB,CAAC,EAHW,QAAQ,KAAR,QAAQ,QAGnB;AAID,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,oBAAoB;CAC1B,CAAA","sourcesContent":["import { ValueOf } from \"../../../types/interfaces\"\n\nexport enum Position {\n\tLEFT = 'left',\n\tRIGHT = 'right',\n}\n\nexport type PositionType = `${ValueOf<typeof Position>}`\n\nexport const DropdownClass = {\n\troot: 'gov-dropdown',\n\tlist: 'gov-dropdown__list'\n}\n"]}
|
|
@@ -48,7 +48,7 @@ export class GovDropdown {
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '402f6c2f97151f2abe832422e1eef4f3da15acee', class: this.h.classes([DropdownClass.root]), open: this.open, position: this.position }, h("slot", { key: '0cf6f85829b69b0d0c14eee595557eda4687ce6d' }), h("div", { key: '6658b9882d31fb919a12e97c0abc72a3e641fd6c', ref: el => registerClickOutside(this, el, () => this.open = false), class: DropdownClass.list, id: this.listId, "aria-labelledby": this.controlId, "aria-hidden": toBoolAttr(!this.open), hidden: !this.open }, h("slot", { key: 'b4f4b0b240731a2c03dda84989ba1a1d85c4e27a', name: "list" }))));
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* Returns the current state of the dropdown
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-dropdown.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/dropdown/gov-dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACnG,OAAO,EAAC,oBAAoB,EAAC,MAAM,uBAAuB,CAAA;AAC1D,OAAO,EAAC,OAAO,EAAE,UAAU,EAAC,MAAM,+BAA+B,CAAA;AAGjE,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAe,MAAM,aAAa,CAAA;AAMjE,MAAM,OAAO,WAAW;IAKvB;QAYA;;WAEG;QACoB,SAAI,GAAG,KAAK,CAAA;QACnC;;WAEG;QACc,aAAQ,GAAiB,QAAQ,CAAC,IAAI,CAAA;QAlBtD,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IA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,aAAa,CAAC,IAAI;gBAC7B,aAAa,EAAE,CAAC;gBAChB,IAAI,EAAE,IAAI,CAAC,IAAI;aACf,CAAC,CAAA;QACH,CAAC,CAAC,CAAA;IACH,CAAC;IAED,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ;YAC1F,8DAAa;YACb,4DACC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,oBAAoB,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,EAClE,KAAK,EAAE,aAAa,CAAC,IAAI,EACzB,EAAE,EAAE,IAAI,CAAC,MAAM,qBACE,IAAI,CAAC,SAAS,iBAClB,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EACnC,MAAM,EAAE,CAAC,IAAI,CAAC,IAAI;gBAClB,6DAAM,IAAI,EAAC,MAAM,GAAQ,CACpB,CACA,CACP,CAAA;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,QAAQ;QACb,OAAO,IAAI,CAAC,IAAI,CAAA;IACjB,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,MAAM;QACX,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;IACvB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch} from \"@stencil/core\"\
|
|
1
|
+
{"version":3,"file":"gov-dropdown.js","sourceRoot":"","sources":["../../../../../../../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CAAC,MAAM,qBACE,IAAI,CAAC,SAAS,iBAClB,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EACnC,MAAM,EAAE,CAAC,IAAI,CAAC,IAAI;gBAClB,6DAAM,IAAI,EAAC,MAAM,GAAQ,CACpB,CACA,CACP,CAAA;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,QAAQ;QACb,OAAO,IAAI,CAAC,IAAI,CAAA;IACjB,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,MAAM;QACX,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;IACvB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch} from \"@stencil/core\"\nimport {registerClickOutside} from \"stencil-click-outside\"\nimport {govHost, toBoolAttr} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {Nullable} from \"../../../types/interfaces\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {ButtonClass} from \"../button/constants\"\nimport {DropdownClass, Position, PositionType} from \"./constants\"\nimport {DropdownEvent} from \"./gov-dropdown.types\"\n\n@Component({\n\ttag: \"gov-dropdown\",\n})\nexport class GovDropdown {\n\tprivate h: GovHost\n\tprivate readonly listId: string\n\tprivate readonly controlId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.listId = createID(\"GovDropdownList\")\n\t\tthis.controlId = createID(\"GovDropdownControl\")\n\t}\n\n\t@Element() host: HTMLGovButtonElement\n\n\t/**\n\t * Custom trigger identifier\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Dropdown state\n\t */\n\t@Prop({mutable: true}) open = false\n\t/**\n\t * Menu display position\n\t */\n\t@Prop() readonly position: PositionType = Position.LEFT\n\t/**\n\t * Emitted when the dropdown change state\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<DropdownEvent>\n\n\t@Watch('open')\n\twatchOpen() {\n\t\tthis.trigger?.setAttribute(\"aria-expanded\", toBoolAttr(this.open))\n\t}\n\n\tget trigger() {\n\t\treturn this.host.querySelector(`* > ${ButtonClass.root}`) as HTMLGovButtonElement\n\t}\n\n\tget list() {\n\t\treturn this.h.getSlot(\"list\") as Nullable<HTMLUListElement>\n\t}\n\n\tcomponentWillLoad() {\n\t\tif (!this.trigger) return;\n\n\t\tthis.trigger.setAttribute(\"aria-controls\", this.listId)\n\t\tthis.trigger.setAttribute(\"aria-haspopup\", toBoolAttr(!!this.list))\n\t\tthis.trigger.setAttribute(\"aria-expanded\", toBoolAttr(this.open))\n\t\tthis.trigger.setAttribute(\"identifier\", this.identifier ?? this.controlId)\n\n\t\tthis.trigger.addEventListener(\"gov-click\", (e) => {\n\t\t\te.preventDefault()\n\t\t\te.stopPropagation()\n\t\t\tthis.open = !this.open\n\n\t\t\tthis.govChange.emit({\n\t\t\t\tcomponent: DropdownClass.root,\n\t\t\t\toriginalEvent: e,\n\t\t\t\topen: this.open,\n\t\t\t})\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes([DropdownClass.root])} open={this.open} position={this.position}>\n\t\t\t\t<slot></slot>\n\t\t\t\t<div\n\t\t\t\t\tref={el => registerClickOutside(this, el, () => this.open = false)}\n\t\t\t\t\tclass={DropdownClass.list}\n\t\t\t\t\tid={this.listId}\n\t\t\t\t\taria-labelledby={this.controlId}\n\t\t\t\t\taria-hidden={toBoolAttr(!this.open)}\n\t\t\t\t\thidden={!this.open}>\n\t\t\t\t\t<slot name=\"list\"></slot>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns the current state of the dropdown\n\t */\n\t@Method()\n\tasync getState() {\n\t\treturn this.open\n\t}\n\n\t/**\n\t * Toggle state of dropdown\n\t */\n\t@Method()\n\tasync toggle() {\n\t\tthis.open = !this.open\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-dropdown.types.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/dropdown/gov-dropdown.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../../types/event.types\"\
|
|
1
|
+
{"version":3,"file":"gov-dropdown.types.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-button/dropdown/gov-dropdown.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../../types/event.types\"\n\nexport interface DropdownEvent extends GovBaseEvent {\n\topen: boolean\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-card/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACxB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;AACtB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAGD,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,kBAAkB;IAC1B,KAAK,EAAE,iBAAiB;IACxB,KAAK,EAAE,iBAAiB;IACxB,GAAG,EAAE,eAAe;IACpB,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,mBAAmB;IAC5B,MAAM,EAAE,kBAAkB;CAC1B,CAAA","sourcesContent":["import {ValueOf} from \"../../types/interfaces\";\
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-card/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACxB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;AACtB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAGD,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,kBAAkB;IAC1B,KAAK,EAAE,iBAAiB;IACxB,KAAK,EAAE,iBAAiB;IACxB,GAAG,EAAE,eAAe;IACpB,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,mBAAmB;IAC5B,MAAM,EAAE,kBAAkB;CAC1B,CAAA","sourcesContent":["import {ValueOf} from \"../../types/interfaces\";\n\nexport enum CardDirection {\n\tHORIZONTAL = 'horizontal',\n\tVERTICAL = 'vertical',\n}\nexport type CardDirectionType = `${ValueOf<typeof CardDirection>}`\n\nexport const CardClass = {\n\troot: 'gov-card',\n\theader: 'gov-card__header',\n\tarrow: 'gov-card__arrow',\n\tinner: 'gov-card__inner',\n\timg: 'gov-card__img',\n\ticon: 'gov-card__icon',\n\tcontent: 'gov-card__content',\n\tfooter: 'gov-card__footer',\n}\n"]}
|
|
@@ -44,7 +44,7 @@ export class GovCard {
|
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
46
|
const Tag = this.href ? Tags.A : Tags.DIV;
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: '8e06f44b5b92bdbbdd47121d3e136485b83ce64e', class: this.h.classes(CardClass.root), open: this.open, collapsible: booleanString(this.collapsible), clickable: this.clickable, direction: this.direction, hydrated: this.hydrated }, this.collapsible ? (h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.accessibleTriggerLabel, "aria-labelledby": this.accessibleTriggerLabelledBy, "aria-expanded": booleanString(this.open), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, h("slot", { name: "headline" }), h("gov-icon", { class: CardClass.arrow, name: "chevron-down", type: "components" }))) : this.h.hasSlot("headline") ? (h("div", { class: CardClass.header }, h("slot", { name: "headline" }))) : null, h(Tag, { key: 'e10c86ffa82d2e6227f0212295f4eed2ec68adac', href: this.href, target: this.target, id: this.contentId, "aria-hidden": this.collapsible ? booleanString(!this.open) : undefined, hidden: this.collapsible ? !this.open : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined, class: CardClass.inner }, this.h.hasSlot('img') && (h("div", { key: 'f3c3a6f840fb6c8c6a4816e821bc3678fb696140', class: CardClass.img }, h("slot", { key: 'd935568b7eeab4ce60cd699c301bf735a62e8862', name: "img" }))), this.h.hasSlot('icon') && (h("div", { key: 'a11162b8aa9820facd7e141cecd95327c1d299f4', class: CardClass.icon }, h("slot", { key: 'e8dbb0a3e4f24eeed4254f8b91e9491029eb0221', name: "icon" }))), h("div", { key: '76953be0ece73a123389d5d3e5f5accf5da9fd27', class: CardClass.content }, h("slot", { key: 'a424223d3cd41e382cb97685c40a11ac43c8f836' })), this.h.hasSlot('footer') && (h("div", { key: '4ab1cfaa4d814f1bf693b44c4a56169caf8cea45', class: CardClass.footer }, h("slot", { key: '3427ccf260355c8b8b3b8d1dea54d8e82ec44da5', name: "footer" }))))));
|
|
48
48
|
}
|
|
49
49
|
onClickHandler(e) {
|
|
50
50
|
e.stopPropagation();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-card.js","sourceRoot":"","sources":["../../../../../../src/components/gov-card/gov-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AAC5F,OAAO,EAAC,SAAS,EAAoB,MAAM,aAAa,CAAA;AACxD,OAAO,EAAC,aAAa,EAAE,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAEjE,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAA;AAIvC,IA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\
|
|
1
|
+
{"version":3,"file":"gov-card.js","sourceRoot":"","sources":["../../../../../../src/components/gov-card/gov-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AAC5F,OAAO,EAAC,SAAS,EAAoB,MAAM,aAAa,CAAA;AACxD,OAAO,EAAC,aAAa,EAAE,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAEjE,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAA;AAIvC,IAAK,IAGJ;AAHD,WAAK,IAAI;IACR,eAAO,CAAA;IACP,mBAAW,CAAA;AACZ,CAAC,EAHI,IAAI,KAAJ,IAAI,QAGR;AAKD,MAAM,OAAO,OAAO;IAMnB;QAFQ,aAAQ,GAAG,KAAK,CAAA;QAUxB;;WAEG;QACc,cAAS,GAAsB,UAAU,CAAA;QAC1D;;WAEG;QACc,gBAAW,GAAY,KAAK,CAAA;QAC7C;;WAEG;QACc,cAAS,GAAY,KAAK,CAAA;QAC3C;;WAEG;QACmC,SAAI,GAAG,IAAI,CAAA;QAtBhD,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAA;QAC7C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAA;KAC3C;IA0CD,KAAK,CAAC,kB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,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;YACtB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,EAAC,CAAC,CAAA;QAC3D,CAAC;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,uBAAuB,CAAC,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC,2BAA2B,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAClH,CAAC;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {CardClass, CardDirectionType} from './constants'\nimport {booleanString, govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {createID} from '../../utils/string.utils'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {GovCardChangeEvent} from './interfaces'\nimport {ButtonTargetType} from \"../gov-button/button/constants\";\n\nenum Tags {\n\tA = \"a\",\n\tDIV = \"div\",\n}\n\n@Component({\n\ttag: 'gov-card',\n})\nexport class GovCard {\n\tprivate h: GovHost\n\tprivate readonly headlineId: string\n\tprivate readonly contentId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.headlineId = createID('GovCardHeadline')\n\t\tthis.contentId = createID('GovCardContent')\n\t}\n\n\t@Element() host: HTMLGovCardElement\n\n\t/**\n\t * Card direction\n\t */\n\t@Prop() readonly direction: CardDirectionType = \"vertical\"\n\t/**\n\t * Defines weather the card can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines weather the card can be clickable with hover effect\n\t */\n\t@Prop() readonly clickable: boolean = false\n\t/**\n\t * Defines whether the card is open or closed\n\t */\n\t@Prop({reflect: true, mutable: true}) open = true\n\t/**\n\t * Link on whole card\n\t */\n\t@Prop({reflect: true}) readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target?: ButtonTargetType\n\t/**\n\t * Adds accessible label for the collapsible button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) accessibleTriggerLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for collapsible card\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) accessibleTriggerLabelledBy: string\n\t/**\n\t * Called when the card toggle state changes\n\t */\n\t@Event({eventName: 'gov-toggle'}) govToggle: EventEmitter<GovCardChangeEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? Tags.A : Tags.DIV\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(CardClass.root)} open={this.open}\n\t\t\t\t collapsible={booleanString(this.collapsible)}\n\t\t\t\t clickable={this.clickable}\n\t\t\t\t direction={this.direction} hydrated={this.hydrated}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<button\n\t\t\t\t\t\tid={this.headlineId}\n\t\t\t\t\t\tclass={CardClass.header}\n\t\t\t\t\t\taria-label={this.accessibleTriggerLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleTriggerLabelledBy}\n\t\t\t\t\t\taria-expanded={booleanString(this.open)}\n\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t<gov-icon class={CardClass.arrow} name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t\t</button>\n\t\t\t\t) : this.h.hasSlot(\"headline\") ? (\n\t\t\t\t\t<div class={CardClass.header}>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t<Tag href={this.href}\n\t\t\t\t\t target={this.target}\n\t\t\t\t\t id={this.contentId}\n\t\t\t\t\t aria-hidden={this.collapsible ? booleanString(!this.open) : undefined}\n\t\t\t\t\t hidden={this.collapsible ? !this.open : undefined}\n\t\t\t\t\t aria-labelledby={this.collapsible ? this.headlineId : undefined}\n\t\t\t\t\t class={CardClass.inner}>\n\n\t\t\t\t\t{this.h.hasSlot('img') && (\n\t\t\t\t\t\t<div class={CardClass.img}>\n\t\t\t\t\t\t\t<slot name=\"img\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t<div class={CardClass.icon}>\n\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div class={CardClass.content}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{this.h.hasSlot('footer') && (\n\t\t\t\t\t\t<div class={CardClass.footer}>\n\t\t\t\t\t\t\t<slot name=\"footer\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e) {\n\t\te.stopPropagation()\n\t\tif (this.collapsible) {\n\t\t\tthis.open = !this.open\n\t\t\tthis.govToggle.emit({open: this.open, element: this.host})\n\t\t}\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tvalidateAccessibleLabel(this.accessibleTriggerLabel, this.accessibleTriggerLabelledBy, CardClass.root, this.host)\n\t\t}\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../src/components/gov-card/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["export interface GovCardChangeEvent {\
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../src/components/gov-card/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["export interface GovCardChangeEvent {\n\topen: boolean\n\telement: HTMLGovCardElement\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-chip/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAEjD,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGzD,MAAM,CAAN,IAAY,QAGX;AAHD,WAAY,QAAQ;IACnB,2BAAe,CAAA;IACf,iCAAqB,CAAA;AACtB,CAAC,EAHW,QAAQ,KAAR,QAAQ,QAGnB;AAGD,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACrB,qBAAO,CAAA;IACP,2BAAa,CAAA;IACb,+BAAiB,CAAA;AAClB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAGD,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iBAAiB;IACxB,QAAQ,EAAE,qBAAqB;IAC/B,OAAO,EAAE,oBAAoB;CAC7B,CAAA","sourcesContent":["import { ValueOf } from '../../types/interfaces'\
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-chip/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAEjD,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAGzD,MAAM,CAAN,IAAY,QAGX;AAHD,WAAY,QAAQ;IACnB,2BAAe,CAAA;IACf,iCAAqB,CAAA;AACtB,CAAC,EAHW,QAAQ,KAAR,QAAQ,QAGnB;AAGD,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACrB,qBAAO,CAAA;IACP,2BAAa,CAAA;IACb,+BAAiB,CAAA;AAClB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAGD,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iBAAiB;IACxB,QAAQ,EAAE,qBAAqB;IAC/B,OAAO,EAAE,oBAAoB;CAC7B,CAAA","sourcesContent":["import { ValueOf } from '../../types/interfaces'\nimport {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\n\nexport const ChipSizes = pick(Sizes, ['_XS', '_S', '_M'])\nexport type ChipSizesType = `${ValueOf<typeof ChipSizes>}`\n\nexport enum ChipType {\n\tSOLID = 'solid',\n\tOUTLINED = 'outlined',\n}\nexport type ChipTypesType = `${ValueOf<typeof ChipType>}`\n\nexport enum NativeType {\n\tA = 'a',\n\tSPAN = 'span',\n\tBUTTON = 'button',\n}\nexport type NativeTypesType = `${ValueOf<typeof NativeType>}`\n\nexport const ChipClass = {\n\troot: 'gov-chip',\n\tinner: 'gov-chip__inner',\n\thasRight: 'gov-chip--has-right',\n\thasLeft: 'gov-chip--has-left',\n}\n"]}
|
|
@@ -69,11 +69,11 @@ export class GovChip {
|
|
|
69
69
|
const nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined;
|
|
70
70
|
const iconStart = prepareIconFormat(this.iconStart);
|
|
71
71
|
const iconEnd = prepareIconFormat(this.iconEnd);
|
|
72
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: 'bbe58de10514cfa5049188d6cbea7402e4abef1a', class: this.h.classes([
|
|
73
73
|
ChipClass.root,
|
|
74
74
|
this.h.hasSlot("right") ? ChipClass.hasRight : undefined,
|
|
75
75
|
this.h.hasSlot("left") ? ChipClass.hasLeft : undefined,
|
|
76
|
-
]), disabled: this.disabled, href: this.href, color: this.color, type: this.type, size: this.size, focusable: this.focusable, hydrated: this.hydrated }, h(Tag, Object.assign({ key: '
|
|
76
|
+
]), disabled: this.disabled, href: this.href, color: this.color, type: this.type, size: this.size, focusable: this.focusable, hydrated: this.hydrated }, h(Tag, Object.assign({ key: '593f0ccd8f024d3b0539d029eb1ce15744b99dcc', class: "element", href: this.href, target: this.target, ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), tabindex: (this.h.hasSlot("left") || this.h.hasSlot("right") || this.disabled || !this.focusable) ? "-1" : "0", id: this.identifier || this.chipId, type: nativeType }, this.inheritedAttributes, { "aria-disabled": this.disabled }), h("slot", { key: 'd67eb38a50b78d336c6f26b94d771862f22d27e4', name: "left" }), h("slot", { key: '2642c53b31ace283aca7b21566b39e56caf7a0e2', name: "icon-start" }, iconStart && h("gov-icon", { key: '8320fe3e6540b008684af9306b09b2464809948b', type: iconStart.type, name: iconStart.name })), h("slot", { key: '5c3c63c5cfef7d7c8ff1420ef6121e90fc735d80' }), h("slot", { key: '4e1e6f8751b8708a92b73d499c1f406c0fcb2fcc', name: "icon-end" }, iconEnd && h("gov-icon", { key: 'a660967c54adc0b623b5f94b04e8e689425b7f28', type: iconEnd.type, name: iconEnd.name })), h("slot", { key: 'af67d89fc3d70312d65078ad6f38b4ec4056542f', name: "right" }))));
|
|
77
77
|
}
|
|
78
78
|
onClickHandler(e) {
|
|
79
79
|
e.stopPropagation();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-chip.js","sourceRoot":"","sources":["../../../../../../src/components/gov-chip/gov-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAE1G,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAA;AACzD,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAClD,OAAO,EAAC,SAAS,EAAE,SAAS,EAAgC,UAAU,EAAkB,MAAM,aAAa,CAAA;AAC3G,OAAO,EAAC,YAAY,EAAmB,WAAW,EAAC,MAAM,gCAAgC,CAAA;AACzF,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,qBAAqB,EAAC,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAC,cAAc,EAAC,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAC,iBAAiB,EAAa,MAAM,6BAA6B,CAAC;AAK1E,MAAM,OAAO,OAAO;IAOnB;QAHQ,aAAQ,GAAG,KAAK,CAAA;QAUxB;;WAEG;QAC6B,aAAQ,GAAY,KAAK,CAAA;QAmBzD;;WAEG;QACc,SAAI,GAAkB,SAAS,CAAC,EAAE,CAAA;QACnD;;WAEG;QACc,QAAG,GAAoB,MAAM,CAAA;QAC9C;;WAEG;QACc,U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AAI,CAAC,UAAU,CAAA;IACvB,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,QAAQ;QACb,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAA;IACxB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {validateProp} from \"../../helpers/Validate/props\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {ChipClass, ChipSizes, ChipSizesType, ChipTypesType, NativeType, NativeTypesType} from \"./constants\"\r\nimport {ButtonColors, ButtonColorType, ButtonSizes} from \"../gov-button/button/constants\"\r\nimport {createID} from \"../../utils/string.utils\"\r\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\r\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\r\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\r\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\r\n\r\n@Component({\r\n\ttag: \"gov-chip\",\r\n})\r\nexport class GovChip {\r\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement | HTMLSpanElement\r\n\tprivate h: GovHost\r\n\tprivate readonly chipId: string\r\n\tprivate hydrated = false\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.chipId = createID('GovChip')\r\n\t}\r\n\r\n\t@Element() host: HTMLGovChipElement\r\n\r\n\t/**\r\n\t * Makes the chip component disabled.\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\r\n\t */\r\n\t@Prop() readonly href: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\r\n\t */\r\n\t@Prop() readonly target: string\r\n\t/**\r\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\r\n\t */\r\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\r\n\t/**\r\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\r\n\t */\r\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\r\n\t/**\r\n\t * Chip’s size.\r\n\t */\r\n\t@Prop() readonly size: ChipSizesType = ChipSizes._M\r\n\t/**\r\n\t * Used to change the HTML tag in the chip\r\n\t */\r\n\t@Prop() readonly tag: NativeTypesType = \"span\"\r\n\t/**\r\n\t * Style variation of the chip.\r\n\t */\r\n\t@Prop() readonly color: ButtonColorType = ButtonColors.PRIMARY\r\n\t/**\r\n\t * Chip’s type\r\n\t */\r\n\t@Prop({reflect: true}) readonly type: ChipTypesType\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\r\n\t */\r\n\t@Prop() readonly focusable: boolean = true\r\n\t/**\r\n\t * Custom chip identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly identifier: string\r\n\t/**\r\n\t * Emitted when the button click.\r\n\t */\r\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<PointerEvent>\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(ButtonColors, newValue, ChipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(ButtonSizes, newValue, ChipClass.root)\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host)\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst Tag = this.href ? NativeType.A : this.tag\r\n\t\tconst nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined\r\n\r\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\r\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\r\n\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tclass={this.h.classes([\r\n\t\t\t\t\tChipClass.root,\r\n\t\t\t\t\tthis.h.hasSlot(\"right\") ? ChipClass.hasRight : undefined,\r\n\t\t\t\t\tthis.h.hasSlot(\"left\") ? ChipClass.hasLeft : undefined,\r\n\t\t\t\t])}\r\n\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\thref={this.href}\r\n\t\t\t\tcolor={this.color}\r\n\t\t\t\ttype={this.type}\r\n\t\t\t\tsize={this.size}\r\n\t\t\t\tfocusable={this.focusable}\r\n\t\t\t\thydrated={this.hydrated}\r\n\t\t\t>\r\n\t\t\t\t<Tag\r\n\t\t\t\t\tclass=\"element\"\r\n\t\t\t\t\thref={this.href}\r\n\t\t\t\t\ttarget={this.target}\r\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLButtonElement | HTMLSpanElement)}\r\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\r\n\t\t\t\t\ttabindex={(this.h.hasSlot(\"left\") || this.h.hasSlot(\"right\") || this.disabled || !this.focusable) ? \"-1\" : \"0\"}\r\n\t\t\t\t\tid={this.identifier || this.chipId}\r\n\t\t\t\t\ttype={nativeType}\r\n\t\t\t\t\t{...this.inheritedAttributes}\r\n\t\t\t\t\taria-disabled={this.disabled}>\r\n\t\t\t\t\t<slot name=\"left\"></slot>\r\n\t\t\t\t\t<slot name=\"icon-start\">\r\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t\t<slot/>\r\n\t\t\t\t\t<slot name=\"icon-end\">\r\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t\t<slot name=\"right\"></slot>\r\n\t\t\t\t</Tag>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onClickHandler(e: PointerEvent): void {\r\n\t\te.stopPropagation()\r\n\t\tif (this.disabled === false && this.tag === NativeType.BUTTON) {\r\n\t\t\tthis.govClick.emit(e)\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a clickable element instance\r\n\t */\r\n\t@Method()\r\n\tasync geRef() {\r\n\t\treturn this.triggerRef\r\n\t}\r\n\r\n\t/**\r\n\t * Focus button element\r\n\t */\r\n\t@Method()\r\n\tasync setFocus():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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {ChipClass, ChipSizes, ChipSizesType, ChipTypesType, NativeType, NativeTypesType} from \"./constants\"\nimport {ButtonColors, ButtonColorType, ButtonSizes} from \"../gov-button/button/constants\"\nimport {createID} from \"../../utils/string.utils\"\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\n\n@Component({\n\ttag: \"gov-chip\",\n})\nexport class GovChip {\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement | HTMLSpanElement\n\tprivate h: GovHost\n\tprivate readonly chipId: string\n\tprivate hydrated = false\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.chipId = createID('GovChip')\n\t}\n\n\t@Element() host: HTMLGovChipElement\n\n\t/**\n\t * Makes the chip component disabled.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\n\t/**\n\t * Chip’s size.\n\t */\n\t@Prop() readonly size: ChipSizesType = ChipSizes._M\n\t/**\n\t * Used to change the HTML tag in the chip\n\t */\n\t@Prop() readonly tag: NativeTypesType = \"span\"\n\t/**\n\t * Style variation of the chip.\n\t */\n\t@Prop() readonly color: ButtonColorType = ButtonColors.PRIMARY\n\t/**\n\t * Chip’s type\n\t */\n\t@Prop({reflect: true}) readonly type: ChipTypesType\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom chip identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Emitted when the button click.\n\t */\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<PointerEvent>\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(ButtonColors, newValue, ChipClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ButtonSizes, newValue, ChipClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? NativeType.A : this.tag\n\t\tconst nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined\n\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes([\n\t\t\t\t\tChipClass.root,\n\t\t\t\t\tthis.h.hasSlot(\"right\") ? ChipClass.hasRight : undefined,\n\t\t\t\t\tthis.h.hasSlot(\"left\") ? ChipClass.hasLeft : undefined,\n\t\t\t\t])}\n\t\t\t\tdisabled={this.disabled}\n\t\t\t\thref={this.href}\n\t\t\t\tcolor={this.color}\n\t\t\t\ttype={this.type}\n\t\t\t\tsize={this.size}\n\t\t\t\tfocusable={this.focusable}\n\t\t\t\thydrated={this.hydrated}\n\t\t\t>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLButtonElement | HTMLSpanElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\ttabindex={(this.h.hasSlot(\"left\") || this.h.hasSlot(\"right\") || this.disabled || !this.focusable) ? \"-1\" : \"0\"}\n\t\t\t\t\tid={this.identifier || this.chipId}\n\t\t\t\t\ttype={nativeType}\n\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\taria-disabled={this.disabled}>\n\t\t\t\t\t<slot name=\"left\"></slot>\n\t\t\t\t\t<slot name=\"icon-start\">\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t<slot name=\"icon-end\">\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\n\t\t\t\t\t</slot>\n\t\t\t\t\t<slot name=\"right\"></slot>\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false && this.tag === NativeType.BUTTON) {\n\t\t\tthis.govClick.emit(e)\n\t\t}\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync geRef() {\n\t\treturn this.triggerRef\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-collapsible/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAG7E,MAAM,CAAN,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC/B,qCAAa,CAAA;IACb,iCAAS,CAAA;AACV,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B;AAGD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,0BAA0B;IACnC,OAAO,EAAE,0BAA0B;IACnC,KAAK,EAAE,wBAAwB;IAC/B,KAAK,EAAE,wBAAwB;IAC/B,OAAO,EAAE,0BAA0B;IACnC,QAAQ,EAAE,2BAA2B;CACrC,CAAA","sourcesContent":["import {pick} from \"../../utils/utils\";\
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-collapsible/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,KAAK,EAAC,MAAM,4BAA4B,CAAC;AAGjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAG7E,MAAM,CAAN,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC/B,qCAAa,CAAA;IACb,iCAAS,CAAA;AACV,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B;AAGD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,0BAA0B;IACnC,OAAO,EAAE,0BAA0B;IACnC,KAAK,EAAE,wBAAwB;IAC/B,KAAK,EAAE,wBAAwB;IAC/B,OAAO,EAAE,0BAA0B;IACnC,QAAQ,EAAE,2BAA2B;CACrC,CAAA","sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const CollapsibleSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type CollapsibleSizesType = `${ValueOf<typeof CollapsibleSizes>}`\n\nexport enum CollapsibleDirection {\n\tDOWN = 'down',\n\tUP = 'up',\n}\nexport type CollapsibleDirectionType = `${ValueOf<typeof CollapsibleDirection>}`\n\nexport const CollapsibleClass = {\n\troot: 'gov-collapsible',\n\tdetails: 'gov-collapsible__details',\n\tsummary: 'gov-collapsible__summary',\n\ttitle: 'gov-collapsible__title',\n\tarrow: 'gov-collapsible__arrow',\n\tcontent: 'gov-collapsible__content',\n\tdisabled: 'gov-collapsible--disabled',\n}\n"]}
|
|
@@ -51,11 +51,11 @@ export class GovCollapsible {
|
|
|
51
51
|
this.hydrated = true;
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: '769978332f69d9faf2a4e8b305db730f30aff4ef', hydrated: this.hydrated, class: this.h.classes([CollapsibleClass.root, this.disabled && CollapsibleClass.disabled]), size: this.size }, h("gov-button", Object.assign({ key: '8471245d9dd22f5599d234f86b7bf2127d8632ac', color: 'primary', size: this.size, type: 'link', disabled: this.disabled, "onGov-click": (e) => {
|
|
55
55
|
e.stopPropagation();
|
|
56
56
|
e.preventDefault();
|
|
57
57
|
this.open = !this.open;
|
|
58
|
-
} }, this.inheritedAttributes, { identifier: this.triggerId, "aria-controls": this.contentId, "aria-expanded": booleanString(this.open), "aria-haspopup": "true" }), this.label, h("gov-icon", { key: '
|
|
58
|
+
} }, this.inheritedAttributes, { identifier: this.triggerId, "aria-controls": this.contentId, "aria-expanded": booleanString(this.open), "aria-haspopup": "true" }), this.label, h("gov-icon", { key: '01d4627f3817249e3653f8a2fdf0cc2d2d2ad36a', slot: 'icon-end', name: this.open ? 'chevron-up' : 'chevron-down', type: "components" })), h("div", { key: '0d680443f3fa888d753aaf0090e9c4da177dbf7b', class: CollapsibleClass.content, hidden: !this.open, id: this.contentId, "aria-labelledby": this.triggerId, "aria-hidden": booleanString(!this.open) }, h("slot", { key: '4b3c64ff8fb7f6d6039d9042328121207ccf7580' }))));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "gov-collapsible"; }
|
|
61
61
|
static get properties() {
|