@gov-design-system-ce/components 4.2.9 → 4.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/package.json +3 -3
- package/readme.md +15 -0
- package/dist/cjs/Fragment-D4qSkFah.js +0 -8
- package/dist/cjs/Fragment-D4qSkFah.js.map +0 -1
- package/dist/cjs/accessibility-BQJmIVWV.js +0 -13
- package/dist/cjs/accessibility-BQJmIVWV.js.map +0 -1
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/array.utils-DOh1gCQS.js +0 -45
- package/dist/cjs/array.utils-DOh1gCQS.js.map +0 -1
- package/dist/cjs/attribute-CH1-zDDl.js +0 -103
- package/dist/cjs/attribute-CH1-zDDl.js.map +0 -1
- package/dist/cjs/colors-DgrrxjsX.js +0 -19
- package/dist/cjs/colors-DgrrxjsX.js.map +0 -1
- package/dist/cjs/constants-357ehBFU.js +0 -15
- package/dist/cjs/constants-357ehBFU.js.map +0 -1
- package/dist/cjs/constants-CFAhiwqu.js +0 -19
- package/dist/cjs/constants-CFAhiwqu.js.map +0 -1
- package/dist/cjs/constants-CS58GJeI.js +0 -29
- package/dist/cjs/constants-CS58GJeI.js.map +0 -1
- package/dist/cjs/constants-CYm8AK_D.js +0 -27
- package/dist/cjs/constants-CYm8AK_D.js.map +0 -1
- package/dist/cjs/constants-CbBhWRUQ.js +0 -26
- package/dist/cjs/constants-CbBhWRUQ.js.map +0 -1
- package/dist/cjs/constants-ChDSk4SZ.js +0 -16
- package/dist/cjs/constants-ChDSk4SZ.js.map +0 -1
- package/dist/cjs/constants-D6LZ31rS.js +0 -28
- package/dist/cjs/constants-D6LZ31rS.js.map +0 -1
- package/dist/cjs/constants-DcKnOyW4.js +0 -18
- package/dist/cjs/constants-DcKnOyW4.js.map +0 -1
- package/dist/cjs/constants-Dmmp9FHy.js +0 -37
- package/dist/cjs/constants-Dmmp9FHy.js.map +0 -1
- package/dist/cjs/constants-WvkMgj1j.js +0 -27
- package/dist/cjs/constants-WvkMgj1j.js.map +0 -1
- package/dist/cjs/constants-ymB2dvwV.js +0 -28
- package/dist/cjs/constants-ymB2dvwV.js.map +0 -1
- package/dist/cjs/constants-z2ZSS2je.js +0 -37
- package/dist/cjs/constants-z2ZSS2je.js.map +0 -1
- package/dist/cjs/core.cjs.js +0 -49
- package/dist/cjs/core.cjs.js.map +0 -1
- package/dist/cjs/form-GgXzZZ-E.js +0 -156
- package/dist/cjs/form-GgXzZZ-E.js.map +0 -1
- package/dist/cjs/gov-accordion-item.cjs.entry.js +0 -80
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-accordion-item.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +0 -59
- package/dist/cjs/gov-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-accordion.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-attachments.gov-attachments-item.gov-form-message.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +0 -117
- package/dist/cjs/gov-attachments_3.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-backdrop.cjs.entry.js +0 -55
- package/dist/cjs/gov-backdrop.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-backdrop.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-banner.cjs.entry.js +0 -91
- package/dist/cjs/gov-banner.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-banner.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-blockquote.cjs.entry.js +0 -34
- package/dist/cjs/gov-blockquote.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-blockquote.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +0 -76
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-breadcrumbs.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-button.cjs.entry.js +0 -186
- package/dist/cjs/gov-button.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-button.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-card.cjs.entry.js +0 -91
- package/dist/cjs/gov-card.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-card.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-chip.cjs.entry.js +0 -131
- package/dist/cjs/gov-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-chip.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-container.cjs.entry.js +0 -24
- package/dist/cjs/gov-container.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-container.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-control-group.cjs.entry.js +0 -51
- package/dist/cjs/gov-control-group.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-control-group.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-cookiebar.cjs.entry.js +0 -28
- package/dist/cjs/gov-cookiebar.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-cookiebar.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-dialog.cjs.entry.js +0 -169
- package/dist/cjs/gov-dialog.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-dialog.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-dropdown.cjs.entry.js +0 -146
- package/dist/cjs/gov-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-dropdown.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-empty.cjs.entry.js +0 -63
- package/dist/cjs/gov-empty.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-empty.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-error-code.cjs.entry.js +0 -25
- package/dist/cjs/gov-error-code.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-error-code.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-flex.gov-icon.gov-theme-switch.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-flex_3.cjs.entry.js +0 -338
- package/dist/cjs/gov-flex_3.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +0 -284
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-autocomplete.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +0 -92
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-checkbox-group.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +0 -151
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-checkbox.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +0 -85
- package/dist/cjs/gov-form-control.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-control.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +0 -287
- package/dist/cjs/gov-form-file.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-file.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-group.cjs.entry.js +0 -51
- package/dist/cjs/gov-form-group.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-group.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-input.gov-skeleton.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-input_2.cjs.entry.js +0 -290
- package/dist/cjs/gov-form-input_2.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-label.cjs.entry.js +0 -35
- package/dist/cjs/gov-form-label.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-label.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +0 -270
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-multi-select.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-password-power.cjs.entry.js +0 -23
- package/dist/cjs/gov-form-password-power.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-password-power.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-radio-group.cjs.entry.js +0 -80
- package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-radio-group.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +0 -147
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-radio.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-range.cjs.entry.js +0 -212
- package/dist/cjs/gov-form-range.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-range.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +0 -35
- package/dist/cjs/gov-form-search.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-search.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +0 -158
- package/dist/cjs/gov-form-select.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-select.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +0 -148
- package/dist/cjs/gov-form-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-switch.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-grid-item.cjs.entry.js +0 -30
- package/dist/cjs/gov-grid-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-grid-item.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-grid.cjs.entry.js +0 -22
- package/dist/cjs/gov-grid.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-grid.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-infobar.cjs.entry.js +0 -107
- package/dist/cjs/gov-infobar.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-infobar.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-layout-column.cjs.entry.js +0 -21
- package/dist/cjs/gov-layout-column.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-layout-column.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-layout.cjs.entry.js +0 -35
- package/dist/cjs/gov-layout.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-layout.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-lifecycle.cjs.entry.js +0 -46
- package/dist/cjs/gov-lifecycle.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-lifecycle.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-link.cjs.entry.js +0 -59
- package/dist/cjs/gov-link.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-link.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-loading.cjs.entry.js +0 -44
- package/dist/cjs/gov-loading.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-loading.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-message.cjs.entry.js +0 -49
- package/dist/cjs/gov-message.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-message.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-pagination.cjs.entry.js +0 -257
- package/dist/cjs/gov-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-pagination.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-spacer.cjs.entry.js +0 -55
- package/dist/cjs/gov-spacer.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-spacer.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-stepper-item.cjs.entry.js +0 -53
- package/dist/cjs/gov-stepper-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-stepper-item.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-stepper.cjs.entry.js +0 -53
- package/dist/cjs/gov-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-stepper.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-tabs-item.cjs.entry.js +0 -70
- package/dist/cjs/gov-tabs-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tabs-item.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-tabs.cjs.entry.js +0 -232
- package/dist/cjs/gov-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tabs.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-tag.cjs.entry.js +0 -65
- package/dist/cjs/gov-tag.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tag.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-tile.cjs.entry.js +0 -47
- package/dist/cjs/gov-tile.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tile.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-toast.cjs.entry.js +0 -125
- package/dist/cjs/gov-toast.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-toast.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +0 -65
- package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tooltip-content.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-tooltip.cjs.entry.js +0 -251
- package/dist/cjs/gov-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tooltip.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-wizard-item.cjs.entry.js +0 -105
- package/dist/cjs/gov-wizard-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-wizard-item.entry.cjs.js.map +0 -1
- package/dist/cjs/gov-wizard.cjs.entry.js +0 -70
- package/dist/cjs/gov-wizard.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-wizard.entry.cjs.js.map +0 -1
- package/dist/cjs/gov.log-C5EH15b_.js +0 -53
- package/dist/cjs/gov.log-C5EH15b_.js.map +0 -1
- package/dist/cjs/helpers-DmI-ZOAH.js +0 -20
- package/dist/cjs/helpers-DmI-ZOAH.js.map +0 -1
- package/dist/cjs/helpers.types-vap8QfRH.js +0 -17
- package/dist/cjs/helpers.types-vap8QfRH.js.map +0 -1
- package/dist/cjs/index-pjwoybrU.js +0 -3085
- package/dist/cjs/index-pjwoybrU.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -5
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -16
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/props-CPENhBnM.js +0 -17
- package/dist/cjs/props-CPENhBnM.js.map +0 -1
- package/dist/cjs/sizes-D5zsw2g5.js +0 -19
- package/dist/cjs/sizes-D5zsw2g5.js.map +0 -1
- package/dist/cjs/stencil.utils-8sCYbm34.js +0 -12
- package/dist/cjs/stencil.utils-8sCYbm34.js.map +0 -1
- package/dist/cjs/string.utils-BG4pUfEi.js +0 -26
- package/dist/cjs/string.utils-BG4pUfEi.js.map +0 -1
- package/dist/cjs/template-DS4pSCTb.js +0 -115
- package/dist/cjs/template-DS4pSCTb.js.map +0 -1
- package/dist/cjs/utils-NnC78QR3.js +0 -42
- package/dist/cjs/utils-NnC78QR3.js.map +0 -1
- package/dist/cjs/wcag-Bvzxnp5D.js +0 -56
- package/dist/cjs/wcag-Bvzxnp5D.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -72
- package/dist/collection/components/gov-accordion/constants.js +0 -19
- package/dist/collection/components/gov-accordion/constants.js.map +0 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +0 -226
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +0 -1
- package/dist/collection/components/gov-accordion/gov-accordion.js +0 -125
- package/dist/collection/components/gov-accordion/gov-accordion.js.map +0 -1
- package/dist/collection/components/gov-accordion/gov-accordion.types.js +0 -2
- package/dist/collection/components/gov-accordion/gov-accordion.types.js.map +0 -1
- package/dist/collection/components/gov-attachments/constants.js +0 -12
- package/dist/collection/components/gov-attachments/constants.js.map +0 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.css +0 -55
- package/dist/collection/components/gov-attachments/gov-attachments-item.d.js +0 -2
- package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +0 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.js +0 -125
- package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +0 -1
- package/dist/collection/components/gov-attachments/gov-attachments.js +0 -92
- package/dist/collection/components/gov-attachments/gov-attachments.js.map +0 -1
- package/dist/collection/components/gov-backdrop/constants.js +0 -5
- package/dist/collection/components/gov-backdrop/constants.js.map +0 -1
- package/dist/collection/components/gov-backdrop/gov-backdrop.js +0 -166
- package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +0 -1
- package/dist/collection/components/gov-banner/constants.js +0 -26
- package/dist/collection/components/gov-banner/constants.js.map +0 -1
- package/dist/collection/components/gov-banner/gov-banner.js +0 -175
- package/dist/collection/components/gov-banner/gov-banner.js.map +0 -1
- package/dist/collection/components/gov-blockquote/constants.js +0 -10
- package/dist/collection/components/gov-blockquote/constants.js.map +0 -1
- package/dist/collection/components/gov-blockquote/gov-blockquote.js +0 -67
- package/dist/collection/components/gov-blockquote/gov-blockquote.js.map +0 -1
- package/dist/collection/components/gov-breadcrumbs/constants.js +0 -4
- package/dist/collection/components/gov-breadcrumbs/constants.js.map +0 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js +0 -2
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +0 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +0 -215
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +0 -1
- package/dist/collection/components/gov-button/button/constants.js +0 -28
- package/dist/collection/components/gov-button/button/constants.js.map +0 -1
- package/dist/collection/components/gov-button/button/gov-button.js +0 -710
- package/dist/collection/components/gov-button/button/gov-button.js.map +0 -1
- package/dist/collection/components/gov-button/button/gov-button.types.js +0 -2
- package/dist/collection/components/gov-button/button/gov-button.types.js.map +0 -1
- package/dist/collection/components/gov-button/dropdown/constants.js +0 -10
- package/dist/collection/components/gov-button/dropdown/constants.js.map +0 -1
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +0 -205
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +0 -1
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js +0 -2
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js.map +0 -1
- package/dist/collection/components/gov-card/constants.js +0 -16
- package/dist/collection/components/gov-card/constants.js.map +0 -1
- package/dist/collection/components/gov-card/gov-card.js +0 -287
- package/dist/collection/components/gov-card/gov-card.js.map +0 -1
- package/dist/collection/components/gov-card/interfaces.js +0 -2
- package/dist/collection/components/gov-card/interfaces.js.map +0 -1
- package/dist/collection/components/gov-chip/constants.js +0 -21
- package/dist/collection/components/gov-chip/constants.js.map +0 -1
- package/dist/collection/components/gov-chip/gov-chip.js +0 -437
- package/dist/collection/components/gov-chip/gov-chip.js.map +0 -1
- package/dist/collection/components/gov-container/constants.js +0 -4
- package/dist/collection/components/gov-container/constants.js.map +0 -1
- package/dist/collection/components/gov-container/gov-container.js +0 -14
- package/dist/collection/components/gov-container/gov-container.js.map +0 -1
- package/dist/collection/components/gov-control-group/constants.js +0 -7
- package/dist/collection/components/gov-control-group/constants.js.map +0 -1
- package/dist/collection/components/gov-control-group/gov-control-group.js +0 -131
- package/dist/collection/components/gov-control-group/gov-control-group.js.map +0 -1
- package/dist/collection/components/gov-cookiebar/constants.js +0 -8
- package/dist/collection/components/gov-cookiebar/constants.js.map +0 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +0 -14
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +0 -1
- package/dist/collection/components/gov-dialog/constants.js +0 -12
- package/dist/collection/components/gov-dialog/constants.js.map +0 -1
- package/dist/collection/components/gov-dialog/gov-dialog.js +0 -394
- package/dist/collection/components/gov-dialog/gov-dialog.js.map +0 -1
- package/dist/collection/components/gov-empty/constants.js +0 -19
- package/dist/collection/components/gov-empty/constants.js.map +0 -1
- package/dist/collection/components/gov-empty/gov-empty.js +0 -122
- package/dist/collection/components/gov-empty/gov-empty.js.map +0 -1
- package/dist/collection/components/gov-error-code/constants.js +0 -5
- package/dist/collection/components/gov-error-code/constants.js.map +0 -1
- package/dist/collection/components/gov-error-code/gov-error-code.js +0 -14
- package/dist/collection/components/gov-error-code/gov-error-code.js.map +0 -1
- package/dist/collection/components/gov-flex/constants.js +0 -6
- package/dist/collection/components/gov-flex/constants.js.map +0 -1
- package/dist/collection/components/gov-flex/gov-flex.js +0 -186
- package/dist/collection/components/gov-flex/gov-flex.js.map +0 -1
- package/dist/collection/components/gov-form/autocomplete/constants.js +0 -11
- package/dist/collection/components/gov-form/autocomplete/constants.js.map +0 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +0 -860
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +0 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js +0 -2
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +0 -1
- package/dist/collection/components/gov-form/checkbox/constants.js +0 -10
- package/dist/collection/components/gov-form/checkbox/constants.js.map +0 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +0 -448
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +0 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js +0 -2
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js.map +0 -1
- package/dist/collection/components/gov-form/control/constants.js +0 -9
- package/dist/collection/components/gov-form/control/constants.js.map +0 -1
- package/dist/collection/components/gov-form/control/gov-form-control.js +0 -202
- package/dist/collection/components/gov-form/control/gov-form-control.js.map +0 -1
- package/dist/collection/components/gov-form/file/constants.js +0 -8
- package/dist/collection/components/gov-form/file/constants.js.map +0 -1
- package/dist/collection/components/gov-form/file/gov-form-file.js +0 -746
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +0 -1
- package/dist/collection/components/gov-form/file/gov-form-file.types.js +0 -2
- package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +0 -1
- package/dist/collection/components/gov-form/group/constants.js +0 -18
- package/dist/collection/components/gov-form/group/constants.js.map +0 -1
- package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +0 -192
- package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js.map +0 -1
- package/dist/collection/components/gov-form/group/gov-form-group.css +0 -78
- package/dist/collection/components/gov-form/group/gov-form-group.js +0 -102
- package/dist/collection/components/gov-form/group/gov-form-group.js.map +0 -1
- package/dist/collection/components/gov-form/group/gov-form-group.types.js +0 -2
- package/dist/collection/components/gov-form/group/gov-form-group.types.js.map +0 -1
- package/dist/collection/components/gov-form/group/gov-form-radio-group.js +0 -181
- package/dist/collection/components/gov-form/group/gov-form-radio-group.js.map +0 -1
- package/dist/collection/components/gov-form/input/constants.js +0 -28
- package/dist/collection/components/gov-form/input/constants.js.map +0 -1
- package/dist/collection/components/gov-form/input/gov-form-input.js +0 -934
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +0 -1
- package/dist/collection/components/gov-form/input/gov-form-input.types.js +0 -2
- package/dist/collection/components/gov-form/input/gov-form-input.types.js.map +0 -1
- package/dist/collection/components/gov-form/label/constants.js +0 -8
- package/dist/collection/components/gov-form/label/constants.js.map +0 -1
- package/dist/collection/components/gov-form/label/gov-form-label.js +0 -137
- package/dist/collection/components/gov-form/label/gov-form-label.js.map +0 -1
- package/dist/collection/components/gov-form/message/constants.js +0 -10
- package/dist/collection/components/gov-form/message/constants.js.map +0 -1
- package/dist/collection/components/gov-form/message/gov-form-message.js +0 -120
- package/dist/collection/components/gov-form/message/gov-form-message.js.map +0 -1
- package/dist/collection/components/gov-form/multiselect/constants.js +0 -10
- package/dist/collection/components/gov-form/multiselect/constants.js.map +0 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +0 -722
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +0 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js +0 -2
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +0 -1
- package/dist/collection/components/gov-form/password-power/constants.js +0 -6
- package/dist/collection/components/gov-form/password-power/constants.js.map +0 -1
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +0 -32
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +0 -1
- package/dist/collection/components/gov-form/radio/constants.js +0 -10
- package/dist/collection/components/gov-form/radio/constants.js.map +0 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +0 -424
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +0 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.types.js +0 -2
- package/dist/collection/components/gov-form/radio/gov-form-radio.types.js.map +0 -1
- package/dist/collection/components/gov-form/range/constants.js +0 -9
- package/dist/collection/components/gov-form/range/constants.js.map +0 -1
- package/dist/collection/components/gov-form/range/gov-form-range.js +0 -644
- package/dist/collection/components/gov-form/range/gov-form-range.js.map +0 -1
- package/dist/collection/components/gov-form/search/constants.js +0 -9
- package/dist/collection/components/gov-form/search/constants.js.map +0 -1
- package/dist/collection/components/gov-form/search/gov-form-search.js +0 -76
- package/dist/collection/components/gov-form/search/gov-form-search.js.map +0 -1
- package/dist/collection/components/gov-form/select/constants.js +0 -8
- package/dist/collection/components/gov-form/select/constants.js.map +0 -1
- package/dist/collection/components/gov-form/select/gov-form-select.js +0 -471
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +0 -1
- package/dist/collection/components/gov-form/select/gov-form-select.types.js +0 -2
- package/dist/collection/components/gov-form/select/gov-form-select.types.js.map +0 -1
- package/dist/collection/components/gov-form/switch/constants.js +0 -12
- package/dist/collection/components/gov-form/switch/constants.js.map +0 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.js +0 -425
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +0 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.types.js +0 -2
- package/dist/collection/components/gov-form/switch/gov-form-switch.types.js.map +0 -1
- package/dist/collection/components/gov-grid/constants.js +0 -9
- package/dist/collection/components/gov-grid/constants.js.map +0 -1
- package/dist/collection/components/gov-grid/gov-grid-item.js +0 -218
- package/dist/collection/components/gov-grid/gov-grid-item.js.map +0 -1
- package/dist/collection/components/gov-grid/gov-grid.js +0 -81
- package/dist/collection/components/gov-grid/gov-grid.js.map +0 -1
- package/dist/collection/components/gov-icon/constants.js +0 -27
- package/dist/collection/components/gov-icon/constants.js.map +0 -1
- package/dist/collection/components/gov-icon/gov-icon.js +0 -211
- package/dist/collection/components/gov-icon/gov-icon.js.map +0 -1
- package/dist/collection/components/gov-icon/helpers.js +0 -14
- package/dist/collection/components/gov-icon/helpers.js.map +0 -1
- package/dist/collection/components/gov-icon/list.js +0 -174
- package/dist/collection/components/gov-icon/list.js.map +0 -1
- package/dist/collection/components/gov-infobar/constants.js +0 -16
- package/dist/collection/components/gov-infobar/constants.js.map +0 -1
- package/dist/collection/components/gov-infobar/gov-infobar.js +0 -258
- package/dist/collection/components/gov-infobar/gov-infobar.js.map +0 -1
- package/dist/collection/components/gov-infobar/gov-infobar.types.js +0 -2
- package/dist/collection/components/gov-infobar/gov-infobar.types.js.map +0 -1
- package/dist/collection/components/gov-layout/constants.js +0 -19
- package/dist/collection/components/gov-layout/constants.js.map +0 -1
- package/dist/collection/components/gov-layout/gov-layout-column.js +0 -14
- package/dist/collection/components/gov-layout/gov-layout-column.js.map +0 -1
- package/dist/collection/components/gov-layout/gov-layout.js +0 -103
- package/dist/collection/components/gov-layout/gov-layout.js.map +0 -1
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +0 -39
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +0 -1
- package/dist/collection/components/gov-link/constants.js +0 -8
- package/dist/collection/components/gov-link/constants.js.map +0 -1
- package/dist/collection/components/gov-link/gov-link.js +0 -165
- package/dist/collection/components/gov-link/gov-link.js.map +0 -1
- package/dist/collection/components/gov-loading/loading/constants.js +0 -9
- package/dist/collection/components/gov-loading/loading/constants.js.map +0 -1
- package/dist/collection/components/gov-loading/loading/gov-loading.js +0 -61
- package/dist/collection/components/gov-loading/loading/gov-loading.js.map +0 -1
- package/dist/collection/components/gov-loading/skeleton/constants.js +0 -20
- package/dist/collection/components/gov-loading/skeleton/constants.js.map +0 -1
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +0 -251
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +0 -1
- package/dist/collection/components/gov-message/constants.js +0 -13
- package/dist/collection/components/gov-message/constants.js.map +0 -1
- package/dist/collection/components/gov-message/gov-message.js +0 -89
- package/dist/collection/components/gov-message/gov-message.js.map +0 -1
- package/dist/collection/components/gov-pagination/constants.js +0 -21
- package/dist/collection/components/gov-pagination/constants.js.map +0 -1
- package/dist/collection/components/gov-pagination/gov-pagination.js +0 -539
- package/dist/collection/components/gov-pagination/gov-pagination.js.map +0 -1
- package/dist/collection/components/gov-pagination/gov-pagination.types.js +0 -2
- package/dist/collection/components/gov-pagination/gov-pagination.types.js.map +0 -1
- package/dist/collection/components/gov-pagination/pagination.js +0 -55
- package/dist/collection/components/gov-pagination/pagination.js.map +0 -1
- package/dist/collection/components/gov-spacer/constants.js +0 -15
- package/dist/collection/components/gov-spacer/constants.js.map +0 -1
- package/dist/collection/components/gov-spacer/gov-spacer.js +0 -93
- package/dist/collection/components/gov-spacer/gov-spacer.js.map +0 -1
- package/dist/collection/components/gov-stepper/stepper/constants.js +0 -20
- package/dist/collection/components/gov-stepper/stepper/constants.js.map +0 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.d.js +0 -2
- package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.d.js.map +0 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js +0 -143
- package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js.map +0 -1
- package/dist/collection/components/gov-stepper/stepper/gov-stepper.js +0 -98
- package/dist/collection/components/gov-stepper/stepper/gov-stepper.js.map +0 -1
- package/dist/collection/components/gov-tabs/constants.js +0 -27
- package/dist/collection/components/gov-tabs/constants.js.map +0 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +0 -285
- package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +0 -1
- package/dist/collection/components/gov-tabs/gov-tabs.js +0 -471
- package/dist/collection/components/gov-tabs/gov-tabs.js.map +0 -1
- package/dist/collection/components/gov-tabs/gov-tabs.types.js +0 -2
- package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +0 -1
- package/dist/collection/components/gov-tag/constants.js +0 -12
- package/dist/collection/components/gov-tag/constants.js.map +0 -1
- package/dist/collection/components/gov-tag/gov-tag.js +0 -189
- package/dist/collection/components/gov-tag/gov-tag.js.map +0 -1
- package/dist/collection/components/gov-theme-switch/constants.js +0 -12
- package/dist/collection/components/gov-theme-switch/constants.js.map +0 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +0 -259
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +0 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.types.js +0 -7
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.types.js.map +0 -1
- package/dist/collection/components/gov-tile/constants.js +0 -13
- package/dist/collection/components/gov-tile/constants.js.map +0 -1
- package/dist/collection/components/gov-tile/gov-tile.js +0 -173
- package/dist/collection/components/gov-tile/gov-tile.js.map +0 -1
- package/dist/collection/components/gov-toast/constants.js +0 -17
- package/dist/collection/components/gov-toast/constants.js.map +0 -1
- package/dist/collection/components/gov-toast/gov-toast.js +0 -302
- package/dist/collection/components/gov-toast/gov-toast.js.map +0 -1
- package/dist/collection/components/gov-tooltip/constants.js +0 -19
- package/dist/collection/components/gov-tooltip/constants.js.map +0 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +0 -174
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +0 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +0 -434
- package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +0 -1
- package/dist/collection/components/gov-wizard/constants.js +0 -18
- package/dist/collection/components/gov-wizard/constants.js.map +0 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.d.js +0 -2
- package/dist/collection/components/gov-wizard/gov-wizard-item.d.js.map +0 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.js +0 -327
- package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +0 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.types.js +0 -2
- package/dist/collection/components/gov-wizard/gov-wizard-item.types.js.map +0 -1
- package/dist/collection/components/gov-wizard/gov-wizard.js +0 -174
- package/dist/collection/components/gov-wizard/gov-wizard.js.map +0 -1
- package/dist/collection/core/constants/colors.js +0 -15
- package/dist/collection/core/constants/colors.js.map +0 -1
- package/dist/collection/core/constants/sizes.js +0 -15
- package/dist/collection/core/constants/sizes.js.map +0 -1
- package/dist/collection/core/constants/tags.js +0 -14
- package/dist/collection/core/constants/tags.js.map +0 -1
- package/dist/collection/core/constants/tokens.js +0 -19
- package/dist/collection/core/constants/tokens.js.map +0 -1
- package/dist/collection/data/color-definitions.js +0 -494
- package/dist/collection/data/font-definitions.js +0 -132
- package/dist/collection/helpers/Accessibility/accessibility.js +0 -10
- package/dist/collection/helpers/Accessibility/accessibility.js.map +0 -1
- package/dist/collection/helpers/Accessibility/attributes.js +0 -54
- package/dist/collection/helpers/Accessibility/attributes.js.map +0 -1
- package/dist/collection/helpers/Dom/attribute.js +0 -41
- package/dist/collection/helpers/Dom/attribute.js.map +0 -1
- package/dist/collection/helpers/Dom/document.js +0 -46
- package/dist/collection/helpers/Dom/document.js.map +0 -1
- package/dist/collection/helpers/Dom/form.js +0 -72
- package/dist/collection/helpers/Dom/form.js.map +0 -1
- package/dist/collection/helpers/Dom/form.types.js +0 -2
- package/dist/collection/helpers/Dom/form.types.js.map +0 -1
- package/dist/collection/helpers/Dom/template.js +0 -103
- package/dist/collection/helpers/Dom/template.js.map +0 -1
- package/dist/collection/helpers/Dom/template.types.js +0 -2
- package/dist/collection/helpers/Dom/template.types.js.map +0 -1
- package/dist/collection/helpers/Dom/win.js +0 -27
- package/dist/collection/helpers/Dom/win.js.map +0 -1
- package/dist/collection/helpers/Fragment.js +0 -2
- package/dist/collection/helpers/Fragment.js.map +0 -1
- package/dist/collection/helpers/Log/gov.log.js +0 -21
- package/dist/collection/helpers/Log/gov.log.js.map +0 -1
- package/dist/collection/helpers/Validate/props.js +0 -10
- package/dist/collection/helpers/Validate/props.js.map +0 -1
- package/dist/collection/helpers/Validate/wcag.js +0 -59
- package/dist/collection/helpers/Validate/wcag.js.map +0 -1
- package/dist/collection/index.js +0 -2
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/pages/Accordion.js +0 -300
- package/dist/collection/pages/Accordion.js.map +0 -1
- package/dist/collection/pages/AttributeSection.js +0 -59
- package/dist/collection/pages/AttributeSection.js.map +0 -1
- package/dist/collection/pages/Avatar.js +0 -47
- package/dist/collection/pages/Avatar.js.map +0 -1
- package/dist/collection/pages/Badge.js +0 -29
- package/dist/collection/pages/Badge.js.map +0 -1
- package/dist/collection/pages/Banner.js +0 -278
- package/dist/collection/pages/Banner.js.map +0 -1
- package/dist/collection/pages/Blockquote.js +0 -25
- package/dist/collection/pages/Blockquote.js.map +0 -1
- package/dist/collection/pages/Breadcrumbs.js +0 -62
- package/dist/collection/pages/Breadcrumbs.js.map +0 -1
- package/dist/collection/pages/Button.js +0 -1450
- package/dist/collection/pages/Button.js.map +0 -1
- package/dist/collection/pages/Card.js +0 -78
- package/dist/collection/pages/Card.js.map +0 -1
- package/dist/collection/pages/Chip.js +0 -265
- package/dist/collection/pages/Chip.js.map +0 -1
- package/dist/collection/pages/Collapsible.js +0 -43
- package/dist/collection/pages/Collapsible.js.map +0 -1
- package/dist/collection/pages/Container.js +0 -21
- package/dist/collection/pages/Container.js.map +0 -1
- package/dist/collection/pages/ControlGroup.js +0 -227
- package/dist/collection/pages/ControlGroup.js.map +0 -1
- package/dist/collection/pages/CookieConsent.js +0 -29
- package/dist/collection/pages/CookieConsent.js.map +0 -1
- package/dist/collection/pages/Dialog.js +0 -56
- package/dist/collection/pages/Dialog.js.map +0 -1
- package/dist/collection/pages/Empty.js +0 -64
- package/dist/collection/pages/Empty.js.map +0 -1
- package/dist/collection/pages/Error.js +0 -18
- package/dist/collection/pages/Error.js.map +0 -1
- package/dist/collection/pages/Flex.js +0 -62
- package/dist/collection/pages/Flex.js.map +0 -1
- package/dist/collection/pages/FormLabel.js +0 -13
- package/dist/collection/pages/FormLabel.js.map +0 -1
- package/dist/collection/pages/FormMessage.js +0 -82
- package/dist/collection/pages/FormMessage.js.map +0 -1
- package/dist/collection/pages/Forms.js +0 -2329
- package/dist/collection/pages/Forms.js.map +0 -1
- package/dist/collection/pages/FormsRestructure.js +0 -13
- package/dist/collection/pages/FormsRestructure.js.map +0 -1
- package/dist/collection/pages/Grid.js +0 -113
- package/dist/collection/pages/Grid.js.map +0 -1
- package/dist/collection/pages/Home.js +0 -114
- package/dist/collection/pages/Home.js.map +0 -1
- package/dist/collection/pages/HorizontalStepper.js +0 -85
- package/dist/collection/pages/HorizontalStepper.js.map +0 -1
- package/dist/collection/pages/Icon.js +0 -32
- package/dist/collection/pages/Icon.js.map +0 -1
- package/dist/collection/pages/Infobar.js +0 -129
- package/dist/collection/pages/Infobar.js.map +0 -1
- package/dist/collection/pages/Layout.js +0 -97
- package/dist/collection/pages/Layout.js.map +0 -1
- package/dist/collection/pages/Loading.js +0 -89
- package/dist/collection/pages/Loading.js.map +0 -1
- package/dist/collection/pages/Message.js +0 -82
- package/dist/collection/pages/Message.js.map +0 -1
- package/dist/collection/pages/Pagination.js +0 -38
- package/dist/collection/pages/Pagination.js.map +0 -1
- package/dist/collection/pages/Spacer.js +0 -26
- package/dist/collection/pages/Spacer.js.map +0 -1
- package/dist/collection/pages/Stepper.js +0 -103
- package/dist/collection/pages/Stepper.js.map +0 -1
- package/dist/collection/pages/Tabs.js +0 -611
- package/dist/collection/pages/Tabs.js.map +0 -1
- package/dist/collection/pages/Tag.js +0 -220
- package/dist/collection/pages/Tag.js.map +0 -1
- package/dist/collection/pages/Tiles.js +0 -107
- package/dist/collection/pages/Tiles.js.map +0 -1
- package/dist/collection/pages/ToastMessage.js +0 -47
- package/dist/collection/pages/ToastMessage.js.map +0 -1
- package/dist/collection/pages/ToastMessageCountdown.js +0 -47
- package/dist/collection/pages/ToastMessageCountdown.js.map +0 -1
- package/dist/collection/pages/Tooltip.js +0 -168
- package/dist/collection/pages/Tooltip.js.map +0 -1
- package/dist/collection/pages/Typography.js +0 -161
- package/dist/collection/pages/Typography.js.map +0 -1
- package/dist/collection/pages/UserNavigation.js +0 -134
- package/dist/collection/pages/UserNavigation.js.map +0 -1
- package/dist/collection/pages/Wizard.js +0 -106
- package/dist/collection/pages/Wizard.js.map +0 -1
- package/dist/collection/types/event.types.js +0 -2
- package/dist/collection/types/event.types.js.map +0 -1
- package/dist/collection/types/interfaces.js +0 -2
- package/dist/collection/types/interfaces.js.map +0 -1
- package/dist/collection/utils/array.utils.js +0 -21
- package/dist/collection/utils/array.utils.js.map +0 -1
- package/dist/collection/utils/bool.utils.js +0 -15
- package/dist/collection/utils/bool.utils.js.map +0 -1
- package/dist/collection/utils/dom.utils.js +0 -6
- package/dist/collection/utils/dom.utils.js.map +0 -1
- package/dist/collection/utils/ds.utils.js +0 -5
- package/dist/collection/utils/ds.utils.js.map +0 -1
- package/dist/collection/utils/file.utils.js +0 -26
- package/dist/collection/utils/file.utils.js.map +0 -1
- package/dist/collection/utils/helpers.types.js +0 -54
- package/dist/collection/utils/helpers.types.js.map +0 -1
- package/dist/collection/utils/icon.utils.js +0 -31
- package/dist/collection/utils/icon.utils.js.map +0 -1
- package/dist/collection/utils/number.utils.js +0 -4
- package/dist/collection/utils/number.utils.js.map +0 -1
- package/dist/collection/utils/object.utils.js +0 -30
- package/dist/collection/utils/object.utils.js.map +0 -1
- package/dist/collection/utils/stencil.utils.js +0 -6
- package/dist/collection/utils/stencil.utils.js.map +0 -1
- package/dist/collection/utils/string.utils.js +0 -17
- package/dist/collection/utils/string.utils.js.map +0 -1
- package/dist/collection/utils/utils.js +0 -35
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/gov-accordion-item.d.ts +0 -11
- package/dist/components/gov-accordion-item.js +0 -2
- package/dist/components/gov-accordion-item.js.map +0 -1
- package/dist/components/gov-accordion.d.ts +0 -11
- package/dist/components/gov-accordion.js +0 -2
- package/dist/components/gov-accordion.js.map +0 -1
- package/dist/components/gov-attachments-item.d.ts +0 -11
- package/dist/components/gov-attachments-item.js +0 -2
- package/dist/components/gov-attachments-item.js.map +0 -1
- package/dist/components/gov-attachments.d.ts +0 -11
- package/dist/components/gov-attachments.js +0 -2
- package/dist/components/gov-attachments.js.map +0 -1
- package/dist/components/gov-backdrop.d.ts +0 -11
- package/dist/components/gov-backdrop.js +0 -2
- package/dist/components/gov-backdrop.js.map +0 -1
- package/dist/components/gov-banner.d.ts +0 -11
- package/dist/components/gov-banner.js +0 -2
- package/dist/components/gov-banner.js.map +0 -1
- package/dist/components/gov-blockquote.d.ts +0 -11
- package/dist/components/gov-blockquote.js +0 -2
- package/dist/components/gov-blockquote.js.map +0 -1
- package/dist/components/gov-breadcrumbs.d.ts +0 -11
- package/dist/components/gov-breadcrumbs.js +0 -2
- package/dist/components/gov-breadcrumbs.js.map +0 -1
- package/dist/components/gov-button.d.ts +0 -11
- package/dist/components/gov-button.js +0 -2
- package/dist/components/gov-button.js.map +0 -1
- package/dist/components/gov-card.d.ts +0 -11
- package/dist/components/gov-card.js +0 -2
- package/dist/components/gov-card.js.map +0 -1
- package/dist/components/gov-chip.d.ts +0 -11
- package/dist/components/gov-chip.js +0 -2
- package/dist/components/gov-chip.js.map +0 -1
- package/dist/components/gov-container.d.ts +0 -11
- package/dist/components/gov-container.js +0 -2
- package/dist/components/gov-container.js.map +0 -1
- package/dist/components/gov-control-group.d.ts +0 -11
- package/dist/components/gov-control-group.js +0 -2
- package/dist/components/gov-control-group.js.map +0 -1
- package/dist/components/gov-cookiebar.d.ts +0 -11
- package/dist/components/gov-cookiebar.js +0 -2
- package/dist/components/gov-cookiebar.js.map +0 -1
- package/dist/components/gov-dialog.d.ts +0 -11
- package/dist/components/gov-dialog.js +0 -2
- package/dist/components/gov-dialog.js.map +0 -1
- package/dist/components/gov-dropdown.d.ts +0 -11
- package/dist/components/gov-dropdown.js +0 -2
- package/dist/components/gov-dropdown.js.map +0 -1
- package/dist/components/gov-empty.d.ts +0 -11
- package/dist/components/gov-empty.js +0 -2
- package/dist/components/gov-empty.js.map +0 -1
- package/dist/components/gov-error-code.d.ts +0 -11
- package/dist/components/gov-error-code.js +0 -2
- package/dist/components/gov-error-code.js.map +0 -1
- package/dist/components/gov-flex.d.ts +0 -11
- package/dist/components/gov-flex.js +0 -2
- package/dist/components/gov-flex.js.map +0 -1
- package/dist/components/gov-form-autocomplete.d.ts +0 -11
- package/dist/components/gov-form-autocomplete.js +0 -2
- package/dist/components/gov-form-autocomplete.js.map +0 -1
- package/dist/components/gov-form-checkbox-group.d.ts +0 -11
- package/dist/components/gov-form-checkbox-group.js +0 -2
- package/dist/components/gov-form-checkbox-group.js.map +0 -1
- package/dist/components/gov-form-checkbox.d.ts +0 -11
- package/dist/components/gov-form-checkbox.js +0 -2
- package/dist/components/gov-form-checkbox.js.map +0 -1
- package/dist/components/gov-form-control.d.ts +0 -11
- package/dist/components/gov-form-control.js +0 -2
- package/dist/components/gov-form-control.js.map +0 -1
- package/dist/components/gov-form-file.d.ts +0 -11
- package/dist/components/gov-form-file.js +0 -2
- package/dist/components/gov-form-file.js.map +0 -1
- package/dist/components/gov-form-group.d.ts +0 -11
- package/dist/components/gov-form-group.js +0 -2
- package/dist/components/gov-form-group.js.map +0 -1
- package/dist/components/gov-form-input.d.ts +0 -11
- package/dist/components/gov-form-input.js +0 -2
- package/dist/components/gov-form-input.js.map +0 -1
- package/dist/components/gov-form-label.d.ts +0 -11
- package/dist/components/gov-form-label.js +0 -2
- package/dist/components/gov-form-label.js.map +0 -1
- package/dist/components/gov-form-message.d.ts +0 -11
- package/dist/components/gov-form-message.js +0 -2
- package/dist/components/gov-form-message.js.map +0 -1
- package/dist/components/gov-form-multi-select.d.ts +0 -11
- package/dist/components/gov-form-multi-select.js +0 -2
- package/dist/components/gov-form-multi-select.js.map +0 -1
- package/dist/components/gov-form-password-power.d.ts +0 -11
- package/dist/components/gov-form-password-power.js +0 -2
- package/dist/components/gov-form-password-power.js.map +0 -1
- package/dist/components/gov-form-radio-group.d.ts +0 -11
- package/dist/components/gov-form-radio-group.js +0 -2
- package/dist/components/gov-form-radio-group.js.map +0 -1
- package/dist/components/gov-form-radio.d.ts +0 -11
- package/dist/components/gov-form-radio.js +0 -2
- package/dist/components/gov-form-radio.js.map +0 -1
- package/dist/components/gov-form-range.d.ts +0 -11
- package/dist/components/gov-form-range.js +0 -2
- package/dist/components/gov-form-range.js.map +0 -1
- package/dist/components/gov-form-search.d.ts +0 -11
- package/dist/components/gov-form-search.js +0 -2
- package/dist/components/gov-form-search.js.map +0 -1
- package/dist/components/gov-form-select.d.ts +0 -11
- package/dist/components/gov-form-select.js +0 -2
- package/dist/components/gov-form-select.js.map +0 -1
- package/dist/components/gov-form-switch.d.ts +0 -11
- package/dist/components/gov-form-switch.js +0 -2
- package/dist/components/gov-form-switch.js.map +0 -1
- package/dist/components/gov-grid-item.d.ts +0 -11
- package/dist/components/gov-grid-item.js +0 -2
- package/dist/components/gov-grid-item.js.map +0 -1
- package/dist/components/gov-grid.d.ts +0 -11
- package/dist/components/gov-grid.js +0 -2
- package/dist/components/gov-grid.js.map +0 -1
- package/dist/components/gov-icon.d.ts +0 -11
- package/dist/components/gov-icon.js +0 -2
- package/dist/components/gov-icon.js.map +0 -1
- package/dist/components/gov-infobar.d.ts +0 -11
- package/dist/components/gov-infobar.js +0 -2
- package/dist/components/gov-infobar.js.map +0 -1
- package/dist/components/gov-layout-column.d.ts +0 -11
- package/dist/components/gov-layout-column.js +0 -2
- package/dist/components/gov-layout-column.js.map +0 -1
- package/dist/components/gov-layout.d.ts +0 -11
- package/dist/components/gov-layout.js +0 -2
- package/dist/components/gov-layout.js.map +0 -1
- package/dist/components/gov-lifecycle.d.ts +0 -11
- package/dist/components/gov-lifecycle.js +0 -2
- package/dist/components/gov-lifecycle.js.map +0 -1
- package/dist/components/gov-link.d.ts +0 -11
- package/dist/components/gov-link.js +0 -2
- package/dist/components/gov-link.js.map +0 -1
- package/dist/components/gov-loading.d.ts +0 -11
- package/dist/components/gov-loading.js +0 -2
- package/dist/components/gov-loading.js.map +0 -1
- package/dist/components/gov-message.d.ts +0 -11
- package/dist/components/gov-message.js +0 -2
- package/dist/components/gov-message.js.map +0 -1
- package/dist/components/gov-pagination.d.ts +0 -11
- package/dist/components/gov-pagination.js +0 -2
- package/dist/components/gov-pagination.js.map +0 -1
- package/dist/components/gov-skeleton.d.ts +0 -11
- package/dist/components/gov-skeleton.js +0 -2
- package/dist/components/gov-skeleton.js.map +0 -1
- package/dist/components/gov-spacer.d.ts +0 -11
- package/dist/components/gov-spacer.js +0 -2
- package/dist/components/gov-spacer.js.map +0 -1
- package/dist/components/gov-stepper-item.d.ts +0 -11
- package/dist/components/gov-stepper-item.js +0 -2
- package/dist/components/gov-stepper-item.js.map +0 -1
- package/dist/components/gov-stepper.d.ts +0 -11
- package/dist/components/gov-stepper.js +0 -2
- package/dist/components/gov-stepper.js.map +0 -1
- package/dist/components/gov-tabs-item.d.ts +0 -11
- package/dist/components/gov-tabs-item.js +0 -2
- package/dist/components/gov-tabs-item.js.map +0 -1
- package/dist/components/gov-tabs.d.ts +0 -11
- package/dist/components/gov-tabs.js +0 -2
- package/dist/components/gov-tabs.js.map +0 -1
- package/dist/components/gov-tag.d.ts +0 -11
- package/dist/components/gov-tag.js +0 -2
- package/dist/components/gov-tag.js.map +0 -1
- package/dist/components/gov-theme-switch.d.ts +0 -11
- package/dist/components/gov-theme-switch.js +0 -2
- package/dist/components/gov-theme-switch.js.map +0 -1
- package/dist/components/gov-tile.d.ts +0 -11
- package/dist/components/gov-tile.js +0 -2
- package/dist/components/gov-tile.js.map +0 -1
- package/dist/components/gov-toast.d.ts +0 -11
- package/dist/components/gov-toast.js +0 -2
- package/dist/components/gov-toast.js.map +0 -1
- package/dist/components/gov-tooltip-content.d.ts +0 -11
- package/dist/components/gov-tooltip-content.js +0 -2
- package/dist/components/gov-tooltip-content.js.map +0 -1
- package/dist/components/gov-tooltip.d.ts +0 -11
- package/dist/components/gov-tooltip.js +0 -2
- package/dist/components/gov-tooltip.js.map +0 -1
- package/dist/components/gov-wizard-item.d.ts +0 -11
- package/dist/components/gov-wizard-item.js +0 -2
- package/dist/components/gov-wizard-item.js.map +0 -1
- package/dist/components/gov-wizard.d.ts +0 -11
- package/dist/components/gov-wizard.js +0 -2
- package/dist/components/gov-wizard.js.map +0 -1
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -2
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-4i8qDRtu.js +0 -2
- package/dist/components/p-4i8qDRtu.js.map +0 -1
- package/dist/components/p-5itQzbON.js +0 -2
- package/dist/components/p-5itQzbON.js.map +0 -1
- package/dist/components/p-9COKmDO0.js +0 -2
- package/dist/components/p-9COKmDO0.js.map +0 -1
- package/dist/components/p-9imLQpxb.js +0 -2
- package/dist/components/p-9imLQpxb.js.map +0 -1
- package/dist/components/p-B03Rpjps.js +0 -2
- package/dist/components/p-B03Rpjps.js.map +0 -1
- package/dist/components/p-B0hcuYXk.js +0 -2
- package/dist/components/p-B0hcuYXk.js.map +0 -1
- package/dist/components/p-B3tdsiZv.js +0 -2
- package/dist/components/p-B3tdsiZv.js.map +0 -1
- package/dist/components/p-BKP-F1qP.js +0 -2
- package/dist/components/p-BKP-F1qP.js.map +0 -1
- package/dist/components/p-BTwdrNoS.js +0 -2
- package/dist/components/p-BTwdrNoS.js.map +0 -1
- package/dist/components/p-BUmDydor.js +0 -2
- package/dist/components/p-BUmDydor.js.map +0 -1
- package/dist/components/p-BcQO4NH2.js +0 -2
- package/dist/components/p-BcQO4NH2.js.map +0 -1
- package/dist/components/p-C6JN9gdb.js +0 -2
- package/dist/components/p-C6JN9gdb.js.map +0 -1
- package/dist/components/p-CNqoJU2V.js +0 -2
- package/dist/components/p-CNqoJU2V.js.map +0 -1
- package/dist/components/p-CQvUntGY.js +0 -2
- package/dist/components/p-CQvUntGY.js.map +0 -1
- package/dist/components/p-CUVZZBqo.js +0 -2
- package/dist/components/p-CUVZZBqo.js.map +0 -1
- package/dist/components/p-CXbpWAIF.js +0 -2
- package/dist/components/p-CXbpWAIF.js.map +0 -1
- package/dist/components/p-CXgom82_.js +0 -2
- package/dist/components/p-CXgom82_.js.map +0 -1
- package/dist/components/p-CZr7GBEo.js +0 -2
- package/dist/components/p-CZr7GBEo.js.map +0 -1
- package/dist/components/p-Cjg0wpDG.js +0 -2
- package/dist/components/p-Cjg0wpDG.js.map +0 -1
- package/dist/components/p-ClYmjarv.js +0 -2
- package/dist/components/p-ClYmjarv.js.map +0 -1
- package/dist/components/p-Cta_74Ps.js +0 -2
- package/dist/components/p-Cta_74Ps.js.map +0 -1
- package/dist/components/p-Cy7Wk3yM.js +0 -2
- package/dist/components/p-Cy7Wk3yM.js.map +0 -1
- package/dist/components/p-D4Z6jWqx.js +0 -2
- package/dist/components/p-D4Z6jWqx.js.map +0 -1
- package/dist/components/p-DBXGhafv.js +0 -2
- package/dist/components/p-DBXGhafv.js.map +0 -1
- package/dist/components/p-DJ1DN3ks.js +0 -2
- package/dist/components/p-DJ1DN3ks.js.map +0 -1
- package/dist/components/p-DTn9nVrF.js +0 -2
- package/dist/components/p-DTn9nVrF.js.map +0 -1
- package/dist/components/p-DfI_0WW6.js +0 -2
- package/dist/components/p-DfI_0WW6.js.map +0 -1
- package/dist/components/p-DfJDyRCE.js +0 -2
- package/dist/components/p-DfJDyRCE.js.map +0 -1
- package/dist/components/p-Dmr81UhL.js +0 -2
- package/dist/components/p-Dmr81UhL.js.map +0 -1
- package/dist/components/p-DnZEr-aq.js +0 -2
- package/dist/components/p-DnZEr-aq.js.map +0 -1
- package/dist/components/p-DrPpH_9c.js +0 -2
- package/dist/components/p-DrPpH_9c.js.map +0 -1
- package/dist/components/p-EeKNA85D.js +0 -2
- package/dist/components/p-EeKNA85D.js.map +0 -1
- package/dist/components/p-GYov8gU1.js +0 -2
- package/dist/components/p-GYov8gU1.js.map +0 -1
- package/dist/components/p-Nvj7WFs_.js +0 -2
- package/dist/components/p-Nvj7WFs_.js.map +0 -1
- package/dist/components/p-Q99QrOoi.js +0 -2
- package/dist/components/p-Q99QrOoi.js.map +0 -1
- package/dist/components/p-U40vKHrs.js +0 -2
- package/dist/components/p-U40vKHrs.js.map +0 -1
- package/dist/components/p-vN03FcXN.js +0 -2
- package/dist/components/p-vN03FcXN.js.map +0 -1
- package/dist/components/p-wlTP5ZEU.js +0 -2
- package/dist/components/p-wlTP5ZEU.js.map +0 -1
- package/dist/core/core.css +0 -14153
- package/dist/core/core.esm.js +0 -2
- package/dist/core/core.esm.js.map +0 -1
- package/dist/core/gov-accordion-item.entry.esm.js.map +0 -1
- package/dist/core/gov-accordion.entry.esm.js.map +0 -1
- package/dist/core/gov-attachments.gov-attachments-item.gov-form-message.entry.esm.js.map +0 -1
- package/dist/core/gov-backdrop.entry.esm.js.map +0 -1
- package/dist/core/gov-banner.entry.esm.js.map +0 -1
- package/dist/core/gov-blockquote.entry.esm.js.map +0 -1
- package/dist/core/gov-breadcrumbs.entry.esm.js.map +0 -1
- package/dist/core/gov-button.entry.esm.js.map +0 -1
- package/dist/core/gov-card.entry.esm.js.map +0 -1
- package/dist/core/gov-chip.entry.esm.js.map +0 -1
- package/dist/core/gov-container.entry.esm.js.map +0 -1
- package/dist/core/gov-control-group.entry.esm.js.map +0 -1
- package/dist/core/gov-cookiebar.entry.esm.js.map +0 -1
- package/dist/core/gov-dialog.entry.esm.js.map +0 -1
- package/dist/core/gov-dropdown.entry.esm.js.map +0 -1
- package/dist/core/gov-empty.entry.esm.js.map +0 -1
- package/dist/core/gov-error-code.entry.esm.js.map +0 -1
- package/dist/core/gov-flex.gov-icon.gov-theme-switch.entry.esm.js.map +0 -1
- package/dist/core/gov-form-autocomplete.entry.esm.js.map +0 -1
- package/dist/core/gov-form-checkbox-group.entry.esm.js.map +0 -1
- package/dist/core/gov-form-checkbox.entry.esm.js.map +0 -1
- package/dist/core/gov-form-control.entry.esm.js.map +0 -1
- package/dist/core/gov-form-file.entry.esm.js.map +0 -1
- package/dist/core/gov-form-group.entry.esm.js.map +0 -1
- package/dist/core/gov-form-input.gov-skeleton.entry.esm.js.map +0 -1
- package/dist/core/gov-form-label.entry.esm.js.map +0 -1
- package/dist/core/gov-form-multi-select.entry.esm.js.map +0 -1
- package/dist/core/gov-form-password-power.entry.esm.js.map +0 -1
- package/dist/core/gov-form-radio-group.entry.esm.js.map +0 -1
- package/dist/core/gov-form-radio.entry.esm.js.map +0 -1
- package/dist/core/gov-form-range.entry.esm.js.map +0 -1
- package/dist/core/gov-form-search.entry.esm.js.map +0 -1
- package/dist/core/gov-form-select.entry.esm.js.map +0 -1
- package/dist/core/gov-form-switch.entry.esm.js.map +0 -1
- package/dist/core/gov-grid-item.entry.esm.js.map +0 -1
- package/dist/core/gov-grid.entry.esm.js.map +0 -1
- package/dist/core/gov-infobar.entry.esm.js.map +0 -1
- package/dist/core/gov-layout-column.entry.esm.js.map +0 -1
- package/dist/core/gov-layout.entry.esm.js.map +0 -1
- package/dist/core/gov-lifecycle.entry.esm.js.map +0 -1
- package/dist/core/gov-link.entry.esm.js.map +0 -1
- package/dist/core/gov-loading.entry.esm.js.map +0 -1
- package/dist/core/gov-message.entry.esm.js.map +0 -1
- package/dist/core/gov-pagination.entry.esm.js.map +0 -1
- package/dist/core/gov-spacer.entry.esm.js.map +0 -1
- package/dist/core/gov-stepper-item.entry.esm.js.map +0 -1
- package/dist/core/gov-stepper.entry.esm.js.map +0 -1
- package/dist/core/gov-tabs-item.entry.esm.js.map +0 -1
- package/dist/core/gov-tabs.entry.esm.js.map +0 -1
- package/dist/core/gov-tag.entry.esm.js.map +0 -1
- package/dist/core/gov-tile.entry.esm.js.map +0 -1
- package/dist/core/gov-toast.entry.esm.js.map +0 -1
- package/dist/core/gov-tooltip-content.entry.esm.js.map +0 -1
- package/dist/core/gov-tooltip.entry.esm.js.map +0 -1
- package/dist/core/gov-wizard-item.entry.esm.js.map +0 -1
- package/dist/core/gov-wizard.entry.esm.js.map +0 -1
- package/dist/core/index.esm.js +0 -2
- package/dist/core/index.esm.js.map +0 -1
- package/dist/core/loader.esm.js.map +0 -1
- package/dist/core/p-01482eb2.entry.js +0 -2
- package/dist/core/p-01482eb2.entry.js.map +0 -1
- package/dist/core/p-0dbda4ab.entry.js +0 -2
- package/dist/core/p-0dbda4ab.entry.js.map +0 -1
- package/dist/core/p-19a408eb.entry.js +0 -2
- package/dist/core/p-19a408eb.entry.js.map +0 -1
- package/dist/core/p-1bfbad36.entry.js +0 -2
- package/dist/core/p-1bfbad36.entry.js.map +0 -1
- package/dist/core/p-1f4450cc.entry.js +0 -2
- package/dist/core/p-1f4450cc.entry.js.map +0 -1
- package/dist/core/p-2142c481.entry.js +0 -2
- package/dist/core/p-2142c481.entry.js.map +0 -1
- package/dist/core/p-25a33448.entry.js +0 -2
- package/dist/core/p-25a33448.entry.js.map +0 -1
- package/dist/core/p-2affc4c0.entry.js +0 -2
- package/dist/core/p-2affc4c0.entry.js.map +0 -1
- package/dist/core/p-3477fcf1.entry.js +0 -2
- package/dist/core/p-3477fcf1.entry.js.map +0 -1
- package/dist/core/p-35c24ac5.entry.js +0 -2
- package/dist/core/p-35c24ac5.entry.js.map +0 -1
- package/dist/core/p-35cd4ecd.entry.js +0 -2
- package/dist/core/p-35cd4ecd.entry.js.map +0 -1
- package/dist/core/p-35f784be.entry.js +0 -2
- package/dist/core/p-35f784be.entry.js.map +0 -1
- package/dist/core/p-37770cee.entry.js +0 -2
- package/dist/core/p-37770cee.entry.js.map +0 -1
- package/dist/core/p-37b98852.entry.js +0 -2
- package/dist/core/p-37b98852.entry.js.map +0 -1
- package/dist/core/p-48a3bb49.entry.js +0 -2
- package/dist/core/p-48a3bb49.entry.js.map +0 -1
- package/dist/core/p-4e170f53.entry.js +0 -2
- package/dist/core/p-4e170f53.entry.js.map +0 -1
- package/dist/core/p-57aac00e.entry.js +0 -2
- package/dist/core/p-57aac00e.entry.js.map +0 -1
- package/dist/core/p-5c9371da.entry.js +0 -2
- package/dist/core/p-5c9371da.entry.js.map +0 -1
- package/dist/core/p-5itQzbON.js +0 -2
- package/dist/core/p-5itQzbON.js.map +0 -1
- package/dist/core/p-6508f953.entry.js +0 -2
- package/dist/core/p-6508f953.entry.js.map +0 -1
- package/dist/core/p-730b823a.entry.js +0 -2
- package/dist/core/p-730b823a.entry.js.map +0 -1
- package/dist/core/p-7b623100.entry.js +0 -2
- package/dist/core/p-7b623100.entry.js.map +0 -1
- package/dist/core/p-7f46f70a.entry.js +0 -2
- package/dist/core/p-7f46f70a.entry.js.map +0 -1
- package/dist/core/p-83507d07.entry.js +0 -2
- package/dist/core/p-83507d07.entry.js.map +0 -1
- package/dist/core/p-871d4318.entry.js +0 -2
- package/dist/core/p-871d4318.entry.js.map +0 -1
- package/dist/core/p-8873dc4b.entry.js +0 -2
- package/dist/core/p-8873dc4b.entry.js.map +0 -1
- package/dist/core/p-8c942041.entry.js +0 -2
- package/dist/core/p-8c942041.entry.js.map +0 -1
- package/dist/core/p-8d42ee97.entry.js +0 -2
- package/dist/core/p-8d42ee97.entry.js.map +0 -1
- package/dist/core/p-8dceba0b.entry.js +0 -2
- package/dist/core/p-8dceba0b.entry.js.map +0 -1
- package/dist/core/p-901cbf94.entry.js +0 -2
- package/dist/core/p-901cbf94.entry.js.map +0 -1
- package/dist/core/p-90b277bb.entry.js +0 -2
- package/dist/core/p-90b277bb.entry.js.map +0 -1
- package/dist/core/p-90ff56f4.entry.js +0 -2
- package/dist/core/p-90ff56f4.entry.js.map +0 -1
- package/dist/core/p-962d5767.entry.js +0 -2
- package/dist/core/p-962d5767.entry.js.map +0 -1
- package/dist/core/p-984b6020.entry.js +0 -2
- package/dist/core/p-984b6020.entry.js.map +0 -1
- package/dist/core/p-9d2a4eb1.entry.js +0 -2
- package/dist/core/p-9d2a4eb1.entry.js.map +0 -1
- package/dist/core/p-9ff7e018.entry.js +0 -2
- package/dist/core/p-9ff7e018.entry.js.map +0 -1
- package/dist/core/p-B6CqPcY_.js +0 -2
- package/dist/core/p-B6CqPcY_.js.map +0 -1
- package/dist/core/p-BBOh2pxy.js +0 -2
- package/dist/core/p-BBOh2pxy.js.map +0 -1
- package/dist/core/p-BUmDydor.js +0 -2
- package/dist/core/p-BUmDydor.js.map +0 -1
- package/dist/core/p-BcQO4NH2.js +0 -2
- package/dist/core/p-BcQO4NH2.js.map +0 -1
- package/dist/core/p-BjcqOprh.js +0 -2
- package/dist/core/p-BjcqOprh.js.map +0 -1
- package/dist/core/p-Bo1ROm5Q.js +0 -2
- package/dist/core/p-Bo1ROm5Q.js.map +0 -1
- package/dist/core/p-Bz_RzYFb.js +0 -2
- package/dist/core/p-Bz_RzYFb.js.map +0 -1
- package/dist/core/p-C3R1T_pg.js +0 -2
- package/dist/core/p-C3R1T_pg.js.map +0 -1
- package/dist/core/p-C6JN9gdb.js +0 -2
- package/dist/core/p-C6JN9gdb.js.map +0 -1
- package/dist/core/p-CDIRBJsi.js +0 -2
- package/dist/core/p-CDIRBJsi.js.map +0 -1
- package/dist/core/p-CLBboRhb.js +0 -2
- package/dist/core/p-CLBboRhb.js.map +0 -1
- package/dist/core/p-CQvUntGY.js +0 -2
- package/dist/core/p-CQvUntGY.js.map +0 -1
- package/dist/core/p-Ccwpa1ck.js +0 -2
- package/dist/core/p-Ccwpa1ck.js.map +0 -1
- package/dist/core/p-CgDnDrq5.js +0 -2
- package/dist/core/p-CgDnDrq5.js.map +0 -1
- package/dist/core/p-Cjg0wpDG.js +0 -2
- package/dist/core/p-Cjg0wpDG.js.map +0 -1
- package/dist/core/p-Cx3bEC5v.js +0 -2
- package/dist/core/p-Cx3bEC5v.js.map +0 -1
- package/dist/core/p-CzXeijOj.js +0 -2
- package/dist/core/p-CzXeijOj.js.map +0 -1
- package/dist/core/p-D4TGB274.js +0 -2
- package/dist/core/p-D4TGB274.js.map +0 -1
- package/dist/core/p-DBXGhafv.js +0 -2
- package/dist/core/p-DBXGhafv.js.map +0 -1
- package/dist/core/p-DNztiAH0.js +0 -2
- package/dist/core/p-DNztiAH0.js.map +0 -1
- package/dist/core/p-DQuL1Twl.js +0 -2
- package/dist/core/p-DQuL1Twl.js.map +0 -1
- package/dist/core/p-DT2tslUp.js +0 -3
- package/dist/core/p-DT2tslUp.js.map +0 -1
- package/dist/core/p-DYcNEwSZ.js +0 -2
- package/dist/core/p-DYcNEwSZ.js.map +0 -1
- package/dist/core/p-EeKNA85D.js +0 -2
- package/dist/core/p-EeKNA85D.js.map +0 -1
- package/dist/core/p-GYov8gU1.js +0 -2
- package/dist/core/p-GYov8gU1.js.map +0 -1
- package/dist/core/p-NOJjz9dT.js +0 -2
- package/dist/core/p-NOJjz9dT.js.map +0 -1
- package/dist/core/p-Q99QrOoi.js +0 -2
- package/dist/core/p-Q99QrOoi.js.map +0 -1
- package/dist/core/p-U40vKHrs.js +0 -2
- package/dist/core/p-U40vKHrs.js.map +0 -1
- package/dist/core/p-a18c600d.entry.js +0 -2
- package/dist/core/p-a18c600d.entry.js.map +0 -1
- package/dist/core/p-aaa73dc8.entry.js +0 -2
- package/dist/core/p-aaa73dc8.entry.js.map +0 -1
- package/dist/core/p-ade69b24.entry.js +0 -2
- package/dist/core/p-ade69b24.entry.js.map +0 -1
- package/dist/core/p-b19afdd8.entry.js +0 -2
- package/dist/core/p-b19afdd8.entry.js.map +0 -1
- package/dist/core/p-b97b4439.entry.js +0 -2
- package/dist/core/p-b97b4439.entry.js.map +0 -1
- package/dist/core/p-bbe0d727.entry.js +0 -2
- package/dist/core/p-bbe0d727.entry.js.map +0 -1
- package/dist/core/p-bedd75e1.entry.js +0 -2
- package/dist/core/p-bedd75e1.entry.js.map +0 -1
- package/dist/core/p-c1a1fc45.entry.js +0 -2
- package/dist/core/p-c1a1fc45.entry.js.map +0 -1
- package/dist/core/p-c6f52c6f.entry.js +0 -2
- package/dist/core/p-c6f52c6f.entry.js.map +0 -1
- package/dist/core/p-c99cc786.entry.js +0 -2
- package/dist/core/p-c99cc786.entry.js.map +0 -1
- package/dist/core/p-c9edada1.entry.js +0 -2
- package/dist/core/p-c9edada1.entry.js.map +0 -1
- package/dist/core/p-cddfc899.entry.js +0 -2
- package/dist/core/p-cddfc899.entry.js.map +0 -1
- package/dist/core/p-ce588d98.entry.js +0 -2
- package/dist/core/p-ce588d98.entry.js.map +0 -1
- package/dist/core/p-d4440adf.entry.js +0 -2
- package/dist/core/p-d4440adf.entry.js.map +0 -1
- package/dist/core/p-d48d5870.entry.js +0 -2
- package/dist/core/p-d48d5870.entry.js.map +0 -1
- package/dist/core/p-d8264763.entry.js +0 -2
- package/dist/core/p-d8264763.entry.js.map +0 -1
- package/dist/core/p-e169f098.entry.js +0 -2
- package/dist/core/p-e169f098.entry.js.map +0 -1
- package/dist/core/p-e3e3e9f2.entry.js +0 -2
- package/dist/core/p-e3e3e9f2.entry.js.map +0 -1
- package/dist/core/p-e8507630.entry.js +0 -2
- package/dist/core/p-e8507630.entry.js.map +0 -1
- package/dist/core/p-f0505205.entry.js +0 -2
- package/dist/core/p-f0505205.entry.js.map +0 -1
- package/dist/core/p-f3c873f5.entry.js +0 -2
- package/dist/core/p-f3c873f5.entry.js.map +0 -1
- package/dist/core/p-vN03FcXN.js +0 -2
- package/dist/core/p-vN03FcXN.js.map +0 -1
- package/dist/esm/Fragment-5itQzbON.js +0 -6
- package/dist/esm/Fragment-5itQzbON.js.map +0 -1
- package/dist/esm/accessibility-wqNV8djF.js +0 -11
- package/dist/esm/accessibility-wqNV8djF.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/array.utils-CJ0U_ONv.js +0 -42
- package/dist/esm/array.utils-CJ0U_ONv.js.map +0 -1
- package/dist/esm/attribute-Bz_RzYFb.js +0 -99
- package/dist/esm/attribute-Bz_RzYFb.js.map +0 -1
- package/dist/esm/colors-U40vKHrs.js +0 -19
- package/dist/esm/colors-U40vKHrs.js.map +0 -1
- package/dist/esm/constants-BNBB_29K.js +0 -33
- package/dist/esm/constants-BNBB_29K.js.map +0 -1
- package/dist/esm/constants-BegH8u6i.js +0 -15
- package/dist/esm/constants-BegH8u6i.js.map +0 -1
- package/dist/esm/constants-BiWo5BNa.js +0 -13
- package/dist/esm/constants-BiWo5BNa.js.map +0 -1
- package/dist/esm/constants-CysDgoMA.js +0 -13
- package/dist/esm/constants-CysDgoMA.js.map +0 -1
- package/dist/esm/constants-DHvN41Ek.js +0 -32
- package/dist/esm/constants-DHvN41Ek.js.map +0 -1
- package/dist/esm/constants-DbTQsVRc.js +0 -23
- package/dist/esm/constants-DbTQsVRc.js.map +0 -1
- package/dist/esm/constants-Du0ZtfYe.js +0 -23
- package/dist/esm/constants-Du0ZtfYe.js.map +0 -1
- package/dist/esm/constants-Q99QrOoi.js +0 -23
- package/dist/esm/constants-Q99QrOoi.js.map +0 -1
- package/dist/esm/constants-TT_l4YYj.js +0 -24
- package/dist/esm/constants-TT_l4YYj.js.map +0 -1
- package/dist/esm/constants-YOtDGTm5.js +0 -23
- package/dist/esm/constants-YOtDGTm5.js.map +0 -1
- package/dist/esm/constants-aqe7GX2n.js +0 -16
- package/dist/esm/constants-aqe7GX2n.js.map +0 -1
- package/dist/esm/constants-oYp2tkdN.js +0 -22
- package/dist/esm/constants-oYp2tkdN.js.map +0 -1
- package/dist/esm/core.js +0 -45
- package/dist/esm/core.js.map +0 -1
- package/dist/esm/form-DvhJiKwA.js +0 -141
- package/dist/esm/form-DvhJiKwA.js.map +0 -1
- package/dist/esm/gov-accordion-item.entry.js +0 -78
- package/dist/esm/gov-accordion-item.entry.js.map +0 -1
- package/dist/esm/gov-accordion.entry.js +0 -57
- package/dist/esm/gov-accordion.entry.js.map +0 -1
- package/dist/esm/gov-attachments.gov-attachments-item.gov-form-message.entry.js.map +0 -1
- package/dist/esm/gov-attachments_3.entry.js +0 -113
- package/dist/esm/gov-attachments_3.entry.js.map +0 -1
- package/dist/esm/gov-backdrop.entry.js +0 -53
- package/dist/esm/gov-backdrop.entry.js.map +0 -1
- package/dist/esm/gov-banner.entry.js +0 -89
- package/dist/esm/gov-banner.entry.js.map +0 -1
- package/dist/esm/gov-blockquote.entry.js +0 -32
- package/dist/esm/gov-blockquote.entry.js.map +0 -1
- package/dist/esm/gov-breadcrumbs.entry.js +0 -74
- package/dist/esm/gov-breadcrumbs.entry.js.map +0 -1
- package/dist/esm/gov-button.entry.js +0 -184
- package/dist/esm/gov-button.entry.js.map +0 -1
- package/dist/esm/gov-card.entry.js +0 -89
- package/dist/esm/gov-card.entry.js.map +0 -1
- package/dist/esm/gov-chip.entry.js +0 -129
- package/dist/esm/gov-chip.entry.js.map +0 -1
- package/dist/esm/gov-container.entry.js +0 -22
- package/dist/esm/gov-container.entry.js.map +0 -1
- package/dist/esm/gov-control-group.entry.js +0 -49
- package/dist/esm/gov-control-group.entry.js.map +0 -1
- package/dist/esm/gov-cookiebar.entry.js +0 -26
- package/dist/esm/gov-cookiebar.entry.js.map +0 -1
- package/dist/esm/gov-dialog.entry.js +0 -167
- package/dist/esm/gov-dialog.entry.js.map +0 -1
- package/dist/esm/gov-dropdown.entry.js +0 -144
- package/dist/esm/gov-dropdown.entry.js.map +0 -1
- package/dist/esm/gov-empty.entry.js +0 -61
- package/dist/esm/gov-empty.entry.js.map +0 -1
- package/dist/esm/gov-error-code.entry.js +0 -23
- package/dist/esm/gov-error-code.entry.js.map +0 -1
- package/dist/esm/gov-flex.gov-icon.gov-theme-switch.entry.js.map +0 -1
- package/dist/esm/gov-flex_3.entry.js +0 -334
- package/dist/esm/gov-flex_3.entry.js.map +0 -1
- package/dist/esm/gov-form-autocomplete.entry.js +0 -282
- package/dist/esm/gov-form-autocomplete.entry.js.map +0 -1
- package/dist/esm/gov-form-checkbox-group.entry.js +0 -90
- package/dist/esm/gov-form-checkbox-group.entry.js.map +0 -1
- package/dist/esm/gov-form-checkbox.entry.js +0 -149
- package/dist/esm/gov-form-checkbox.entry.js.map +0 -1
- package/dist/esm/gov-form-control.entry.js +0 -83
- package/dist/esm/gov-form-control.entry.js.map +0 -1
- package/dist/esm/gov-form-file.entry.js +0 -285
- package/dist/esm/gov-form-file.entry.js.map +0 -1
- package/dist/esm/gov-form-group.entry.js +0 -49
- package/dist/esm/gov-form-group.entry.js.map +0 -1
- package/dist/esm/gov-form-input.gov-skeleton.entry.js.map +0 -1
- package/dist/esm/gov-form-input_2.entry.js +0 -287
- package/dist/esm/gov-form-input_2.entry.js.map +0 -1
- package/dist/esm/gov-form-label.entry.js +0 -33
- package/dist/esm/gov-form-label.entry.js.map +0 -1
- package/dist/esm/gov-form-multi-select.entry.js +0 -268
- package/dist/esm/gov-form-multi-select.entry.js.map +0 -1
- package/dist/esm/gov-form-password-power.entry.js +0 -21
- package/dist/esm/gov-form-password-power.entry.js.map +0 -1
- package/dist/esm/gov-form-radio-group.entry.js +0 -78
- package/dist/esm/gov-form-radio-group.entry.js.map +0 -1
- package/dist/esm/gov-form-radio.entry.js +0 -145
- package/dist/esm/gov-form-radio.entry.js.map +0 -1
- package/dist/esm/gov-form-range.entry.js +0 -210
- package/dist/esm/gov-form-range.entry.js.map +0 -1
- package/dist/esm/gov-form-search.entry.js +0 -33
- package/dist/esm/gov-form-search.entry.js.map +0 -1
- package/dist/esm/gov-form-select.entry.js +0 -156
- package/dist/esm/gov-form-select.entry.js.map +0 -1
- package/dist/esm/gov-form-switch.entry.js +0 -146
- package/dist/esm/gov-form-switch.entry.js.map +0 -1
- package/dist/esm/gov-grid-item.entry.js +0 -28
- package/dist/esm/gov-grid-item.entry.js.map +0 -1
- package/dist/esm/gov-grid.entry.js +0 -20
- package/dist/esm/gov-grid.entry.js.map +0 -1
- package/dist/esm/gov-infobar.entry.js +0 -105
- package/dist/esm/gov-infobar.entry.js.map +0 -1
- package/dist/esm/gov-layout-column.entry.js +0 -19
- package/dist/esm/gov-layout-column.entry.js.map +0 -1
- package/dist/esm/gov-layout.entry.js +0 -33
- package/dist/esm/gov-layout.entry.js.map +0 -1
- package/dist/esm/gov-lifecycle.entry.js +0 -44
- package/dist/esm/gov-lifecycle.entry.js.map +0 -1
- package/dist/esm/gov-link.entry.js +0 -57
- package/dist/esm/gov-link.entry.js.map +0 -1
- package/dist/esm/gov-loading.entry.js +0 -42
- package/dist/esm/gov-loading.entry.js.map +0 -1
- package/dist/esm/gov-message.entry.js +0 -47
- package/dist/esm/gov-message.entry.js.map +0 -1
- package/dist/esm/gov-pagination.entry.js +0 -255
- package/dist/esm/gov-pagination.entry.js.map +0 -1
- package/dist/esm/gov-spacer.entry.js +0 -53
- package/dist/esm/gov-spacer.entry.js.map +0 -1
- package/dist/esm/gov-stepper-item.entry.js +0 -51
- package/dist/esm/gov-stepper-item.entry.js.map +0 -1
- package/dist/esm/gov-stepper.entry.js +0 -51
- package/dist/esm/gov-stepper.entry.js.map +0 -1
- package/dist/esm/gov-tabs-item.entry.js +0 -68
- package/dist/esm/gov-tabs-item.entry.js.map +0 -1
- package/dist/esm/gov-tabs.entry.js +0 -230
- package/dist/esm/gov-tabs.entry.js.map +0 -1
- package/dist/esm/gov-tag.entry.js +0 -63
- package/dist/esm/gov-tag.entry.js.map +0 -1
- package/dist/esm/gov-tile.entry.js +0 -45
- package/dist/esm/gov-tile.entry.js.map +0 -1
- package/dist/esm/gov-toast.entry.js +0 -123
- package/dist/esm/gov-toast.entry.js.map +0 -1
- package/dist/esm/gov-tooltip-content.entry.js +0 -63
- package/dist/esm/gov-tooltip-content.entry.js.map +0 -1
- package/dist/esm/gov-tooltip.entry.js +0 -249
- package/dist/esm/gov-tooltip.entry.js.map +0 -1
- package/dist/esm/gov-wizard-item.entry.js +0 -103
- package/dist/esm/gov-wizard-item.entry.js.map +0 -1
- package/dist/esm/gov-wizard.entry.js +0 -68
- package/dist/esm/gov-wizard.entry.js.map +0 -1
- package/dist/esm/gov.log-BtqD9K8d.js +0 -46
- package/dist/esm/gov.log-BtqD9K8d.js.map +0 -1
- package/dist/esm/helpers-GYov8gU1.js +0 -18
- package/dist/esm/helpers-GYov8gU1.js.map +0 -1
- package/dist/esm/helpers.types-DNztiAH0.js +0 -12
- package/dist/esm/helpers.types-DNztiAH0.js.map +0 -1
- package/dist/esm/index-DT2tslUp.js +0 -3056
- package/dist/esm/index-DT2tslUp.js.map +0 -1
- package/dist/esm/index.js +0 -4
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -14
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/props-CJZgTDla.js +0 -15
- package/dist/esm/props-CJZgTDla.js.map +0 -1
- package/dist/esm/sizes-BcQO4NH2.js +0 -19
- package/dist/esm/sizes-BcQO4NH2.js.map +0 -1
- package/dist/esm/stencil.utils-Cjg0wpDG.js +0 -10
- package/dist/esm/stencil.utils-Cjg0wpDG.js.map +0 -1
- package/dist/esm/string.utils-vN03FcXN.js +0 -21
- package/dist/esm/string.utils-vN03FcXN.js.map +0 -1
- package/dist/esm/template-BBOh2pxy.js +0 -107
- package/dist/esm/template-BBOh2pxy.js.map +0 -1
- package/dist/esm/utils-CQvUntGY.js +0 -36
- package/dist/esm/utils-CQvUntGY.js.map +0 -1
- package/dist/esm/wcag-CD6_13JO.js +0 -52
- package/dist/esm/wcag-CD6_13JO.js.map +0 -1
- package/dist/globals.d.ts +0 -2
- package/dist/hydrate/index.d.ts +0 -273
- package/dist/hydrate/index.js +0 -25872
- package/dist/hydrate/index.mjs +0 -25864
- package/dist/hydrate/package.json +0 -12
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/stencil.config.js +0 -93
- package/dist/stencil.config.js.map +0 -1
- package/dist/types/Users/iwory/iWork/asseco/mv/gov-design-system-ce/packages/core/.stencil/packages/core/stencil.config.d.ts +0 -2
- package/dist/types/components/gov-accordion/constants.d.ts +0 -19
- package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +0 -43
- package/dist/types/components/gov-accordion/gov-accordion.d.ts +0 -26
- package/dist/types/components/gov-accordion/gov-accordion.types.d.ts +0 -9
- package/dist/types/components/gov-attachments/constants.d.ts +0 -11
- package/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +0 -4
- package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +0 -24
- package/dist/types/components/gov-attachments/gov-attachments.d.ts +0 -19
- package/dist/types/components/gov-backdrop/constants.d.ts +0 -4
- package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +0 -32
- package/dist/types/components/gov-banner/constants.d.ts +0 -26
- package/dist/types/components/gov-banner/gov-banner.d.ts +0 -28
- package/dist/types/components/gov-blockquote/constants.d.ts +0 -10
- package/dist/types/components/gov-blockquote/gov-blockquote.d.ts +0 -15
- package/dist/types/components/gov-breadcrumbs/constants.d.ts +0 -3
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +0 -4
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +0 -42
- package/dist/types/components/gov-button/button/constants.d.ts +0 -29
- package/dist/types/components/gov-button/button/gov-button.d.ts +0 -133
- package/dist/types/components/gov-button/button/gov-button.types.d.ts +0 -4
- package/dist/types/components/gov-button/dropdown/constants.d.ts +0 -10
- package/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +0 -40
- package/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +0 -4
- package/dist/types/components/gov-card/constants.d.ts +0 -16
- package/dist/types/components/gov-card/gov-card.d.ts +0 -57
- package/dist/types/components/gov-card/interfaces.d.ts +0 -4
- package/dist/types/components/gov-chip/constants.d.ts +0 -21
- package/dist/types/components/gov-chip/gov-chip.d.ts +0 -82
- package/dist/types/components/gov-container/constants.d.ts +0 -3
- package/dist/types/components/gov-container/gov-container.d.ts +0 -6
- package/dist/types/components/gov-control-group/constants.d.ts +0 -7
- package/dist/types/components/gov-control-group/gov-control-group.d.ts +0 -24
- package/dist/types/components/gov-cookiebar/constants.d.ts +0 -7
- package/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +0 -7
- package/dist/types/components/gov-dialog/constants.d.ts +0 -11
- package/dist/types/components/gov-dialog/gov-dialog.d.ts +0 -70
- package/dist/types/components/gov-empty/constants.d.ts +0 -19
- package/dist/types/components/gov-empty/gov-empty.d.ts +0 -21
- package/dist/types/components/gov-error-code/constants.d.ts +0 -4
- package/dist/types/components/gov-error-code/gov-error-code.d.ts +0 -6
- package/dist/types/components/gov-flex/constants.d.ts +0 -7
- package/dist/types/components/gov-flex/gov-flex.d.ts +0 -39
- package/dist/types/components/gov-form/autocomplete/constants.d.ts +0 -11
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +0 -149
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +0 -9
- package/dist/types/components/gov-form/checkbox/constants.d.ts +0 -10
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +0 -86
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +0 -5
- package/dist/types/components/gov-form/control/constants.d.ts +0 -9
- package/dist/types/components/gov-form/control/gov-form-control.d.ts +0 -40
- package/dist/types/components/gov-form/file/constants.d.ts +0 -7
- package/dist/types/components/gov-form/file/gov-form-file.d.ts +0 -133
- package/dist/types/components/gov-form/file/gov-form-file.types.d.ts +0 -11
- package/dist/types/components/gov-form/group/constants.d.ts +0 -18
- package/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +0 -32
- package/dist/types/components/gov-form/group/gov-form-group.d.ts +0 -18
- package/dist/types/components/gov-form/group/gov-form-group.types.d.ts +0 -7
- package/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +0 -32
- package/dist/types/components/gov-form/input/constants.d.ts +0 -28
- package/dist/types/components/gov-form/input/gov-form-input.d.ts +0 -178
- package/dist/types/components/gov-form/input/gov-form-input.types.d.ts +0 -4
- package/dist/types/components/gov-form/label/constants.d.ts +0 -8
- package/dist/types/components/gov-form/label/gov-form-label.d.ts +0 -26
- package/dist/types/components/gov-form/message/constants.d.ts +0 -11
- package/dist/types/components/gov-form/message/gov-form-message.d.ts +0 -23
- package/dist/types/components/gov-form/multiselect/constants.d.ts +0 -10
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +0 -127
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +0 -10
- package/dist/types/components/gov-form/password-power/constants.d.ts +0 -5
- package/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +0 -7
- package/dist/types/components/gov-form/radio/constants.d.ts +0 -10
- package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +0 -83
- package/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +0 -5
- package/dist/types/components/gov-form/range/constants.d.ts +0 -9
- package/dist/types/components/gov-form/range/gov-form-range.d.ts +0 -116
- package/dist/types/components/gov-form/search/constants.d.ts +0 -10
- package/dist/types/components/gov-form/search/gov-form-search.d.ts +0 -13
- package/dist/types/components/gov-form/select/constants.d.ts +0 -8
- package/dist/types/components/gov-form/select/gov-form-select.d.ts +0 -89
- package/dist/types/components/gov-form/select/gov-form-select.types.d.ts +0 -9
- package/dist/types/components/gov-form/switch/constants.d.ts +0 -12
- package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +0 -81
- package/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +0 -5
- package/dist/types/components/gov-grid/constants.d.ts +0 -10
- package/dist/types/components/gov-grid/gov-grid-item.d.ts +0 -46
- package/dist/types/components/gov-grid/gov-grid.d.ts +0 -19
- package/dist/types/components/gov-icon/constants.d.ts +0 -18
- package/dist/types/components/gov-icon/gov-icon.d.ts +0 -34
- package/dist/types/components/gov-icon/helpers.d.ts +0 -6
- package/dist/types/components/gov-icon/list.d.ts +0 -3
- package/dist/types/components/gov-infobar/constants.d.ts +0 -16
- package/dist/types/components/gov-infobar/gov-infobar.d.ts +0 -51
- package/dist/types/components/gov-infobar/gov-infobar.types.d.ts +0 -4
- package/dist/types/components/gov-layout/constants.d.ts +0 -20
- package/dist/types/components/gov-layout/gov-layout-column.d.ts +0 -6
- package/dist/types/components/gov-layout/gov-layout.d.ts +0 -20
- package/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +0 -14
- package/dist/types/components/gov-link/constants.d.ts +0 -8
- package/dist/types/components/gov-link/gov-link.d.ts +0 -34
- package/dist/types/components/gov-loading/loading/constants.d.ts +0 -9
- package/dist/types/components/gov-loading/loading/gov-loading.d.ts +0 -13
- package/dist/types/components/gov-loading/skeleton/constants.d.ts +0 -21
- package/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +0 -46
- package/dist/types/components/gov-message/constants.d.ts +0 -13
- package/dist/types/components/gov-message/gov-message.d.ts +0 -16
- package/dist/types/components/gov-pagination/constants.d.ts +0 -22
- package/dist/types/components/gov-pagination/gov-pagination.d.ts +0 -97
- package/dist/types/components/gov-pagination/gov-pagination.types.d.ts +0 -5
- package/dist/types/components/gov-pagination/pagination.d.ts +0 -12
- package/dist/types/components/gov-spacer/constants.d.ts +0 -15
- package/dist/types/components/gov-spacer/gov-spacer.d.ts +0 -18
- package/dist/types/components/gov-stepper/stepper/constants.d.ts +0 -21
- package/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +0 -4
- package/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +0 -31
- package/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +0 -22
- package/dist/types/components/gov-tabs/constants.d.ts +0 -28
- package/dist/types/components/gov-tabs/gov-tabs-item.d.ts +0 -54
- package/dist/types/components/gov-tabs/gov-tabs.d.ts +0 -70
- package/dist/types/components/gov-tabs/gov-tabs.types.d.ts +0 -14
- package/dist/types/components/gov-tag/constants.d.ts +0 -12
- package/dist/types/components/gov-tag/gov-tag.d.ts +0 -35
- package/dist/types/components/gov-theme-switch/constants.d.ts +0 -12
- package/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +0 -46
- package/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +0 -10
- package/dist/types/components/gov-tile/constants.d.ts +0 -13
- package/dist/types/components/gov-tile/gov-tile.d.ts +0 -34
- package/dist/types/components/gov-toast/constants.d.ts +0 -17
- package/dist/types/components/gov-toast/gov-toast.d.ts +0 -58
- package/dist/types/components/gov-tooltip/constants.d.ts +0 -20
- package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +0 -28
- package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +0 -58
- package/dist/types/components/gov-wizard/constants.d.ts +0 -19
- package/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +0 -4
- package/dist/types/components/gov-wizard/gov-wizard-item.d.ts +0 -60
- package/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +0 -4
- package/dist/types/components/gov-wizard/gov-wizard.d.ts +0 -35
- package/dist/types/components.d.ts +0 -5163
- package/dist/types/core/constants/colors.d.ts +0 -13
- package/dist/types/core/constants/sizes.d.ts +0 -13
- package/dist/types/core/constants/tags.d.ts +0 -12
- package/dist/types/core/constants/tokens.d.ts +0 -1
- package/dist/types/helpers/Accessibility/accessibility.d.ts +0 -1
- package/dist/types/helpers/Accessibility/attributes.d.ts +0 -1
- package/dist/types/helpers/Dom/attribute.d.ts +0 -13
- package/dist/types/helpers/Dom/document.d.ts +0 -4
- package/dist/types/helpers/Dom/form.d.ts +0 -3
- package/dist/types/helpers/Dom/form.types.d.ts +0 -11
- package/dist/types/helpers/Dom/template.d.ts +0 -10
- package/dist/types/helpers/Dom/template.types.d.ts +0 -12
- package/dist/types/helpers/Dom/win.d.ts +0 -18
- package/dist/types/helpers/Fragment.d.ts +0 -2
- package/dist/types/helpers/Log/gov.log.d.ts +0 -8
- package/dist/types/helpers/Validate/props.d.ts +0 -1
- package/dist/types/helpers/Validate/wcag.d.ts +0 -4
- package/dist/types/index.d.ts +0 -1
- package/dist/types/interfaces.d.ts +0 -1
- package/dist/types/pages/Accordion.d.ts +0 -3
- package/dist/types/pages/AttributeSection.d.ts +0 -3
- package/dist/types/pages/Avatar.d.ts +0 -3
- package/dist/types/pages/Badge.d.ts +0 -3
- package/dist/types/pages/Banner.d.ts +0 -3
- package/dist/types/pages/Blockquote.d.ts +0 -3
- package/dist/types/pages/Breadcrumbs.d.ts +0 -3
- package/dist/types/pages/Button.d.ts +0 -3
- package/dist/types/pages/Card.d.ts +0 -3
- package/dist/types/pages/Chip.d.ts +0 -3
- package/dist/types/pages/Collapsible.d.ts +0 -3
- package/dist/types/pages/Container.d.ts +0 -3
- package/dist/types/pages/ControlGroup.d.ts +0 -3
- package/dist/types/pages/CookieConsent.d.ts +0 -3
- package/dist/types/pages/Dialog.d.ts +0 -3
- package/dist/types/pages/Empty.d.ts +0 -3
- package/dist/types/pages/Error.d.ts +0 -3
- package/dist/types/pages/Flex.d.ts +0 -3
- package/dist/types/pages/FormLabel.d.ts +0 -3
- package/dist/types/pages/FormMessage.d.ts +0 -3
- package/dist/types/pages/Forms.d.ts +0 -8
- package/dist/types/pages/FormsRestructure.d.ts +0 -3
- package/dist/types/pages/Grid.d.ts +0 -3
- package/dist/types/pages/Home.d.ts +0 -3
- package/dist/types/pages/HorizontalStepper.d.ts +0 -3
- package/dist/types/pages/Icon.d.ts +0 -3
- package/dist/types/pages/Infobar.d.ts +0 -3
- package/dist/types/pages/Layout.d.ts +0 -3
- package/dist/types/pages/Loading.d.ts +0 -3
- package/dist/types/pages/Message.d.ts +0 -3
- package/dist/types/pages/Pagination.d.ts +0 -3
- package/dist/types/pages/Spacer.d.ts +0 -3
- package/dist/types/pages/Stepper.d.ts +0 -3
- package/dist/types/pages/Tabs.d.ts +0 -3
- package/dist/types/pages/Tag.d.ts +0 -3
- package/dist/types/pages/Tiles.d.ts +0 -3
- package/dist/types/pages/ToastMessage.d.ts +0 -3
- package/dist/types/pages/ToastMessageCountdown.d.ts +0 -3
- package/dist/types/pages/Tooltip.d.ts +0 -3
- package/dist/types/pages/Typography.d.ts +0 -3
- package/dist/types/pages/UserNavigation.d.ts +0 -24
- package/dist/types/pages/Wizard.d.ts +0 -3
- package/dist/types/stencil-public-runtime.d.ts +0 -1709
- package/dist/types/types/event.types.d.ts +0 -4
- package/dist/types/types/interfaces.d.ts +0 -2
- package/dist/types/types/typings.d.ts +0 -6
- package/dist/types/utils/array.utils.d.ts +0 -2
- package/dist/types/utils/bool.utils.d.ts +0 -1
- package/dist/types/utils/dom.utils.d.ts +0 -1
- package/dist/types/utils/ds.utils.d.ts +0 -1
- package/dist/types/utils/file.utils.d.ts +0 -3
- package/dist/types/utils/helpers.types.d.ts +0 -49
- package/dist/types/utils/icon.utils.d.ts +0 -4
- package/dist/types/utils/number.utils.d.ts +0 -1
- package/dist/types/utils/object.utils.d.ts +0 -2
- package/dist/types/utils/stencil.utils.d.ts +0 -1
- package/dist/types/utils/string.utils.d.ts +0 -4
- package/dist/types/utils/utils.d.ts +0 -20
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-pjwoybrU.js');
|
|
4
|
-
var props = require('./props-CPENhBnM.js');
|
|
5
|
-
var constants = require('./constants-z2ZSS2je.js');
|
|
6
|
-
var template = require('./template-DS4pSCTb.js');
|
|
7
|
-
var sizes = require('./sizes-D5zsw2g5.js');
|
|
8
|
-
var wcag = require('./wcag-Bvzxnp5D.js');
|
|
9
|
-
var gov_log = require('./gov.log-C5EH15b_.js');
|
|
10
|
-
var utils = require('./utils-NnC78QR3.js');
|
|
11
|
-
var accessibility = require('./accessibility-BQJmIVWV.js');
|
|
12
|
-
var attribute = require('./attribute-CH1-zDDl.js');
|
|
13
|
-
require('./colors-DgrrxjsX.js');
|
|
14
|
-
require('./string.utils-BG4pUfEi.js');
|
|
15
|
-
require('./helpers.types-vap8QfRH.js');
|
|
16
|
-
|
|
17
|
-
function toBool(value) {
|
|
18
|
-
if (typeof value === 'string') {
|
|
19
|
-
return ['true', 'True', 'TRUE', '1'].indexOf(value) !== -1;
|
|
20
|
-
}
|
|
21
|
-
else if (typeof value === 'number') {
|
|
22
|
-
return value > 0;
|
|
23
|
-
}
|
|
24
|
-
else if (typeof value === 'boolean') {
|
|
25
|
-
return value;
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
return value ? true : false;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
var Tags;
|
|
33
|
-
(function (Tags) {
|
|
34
|
-
Tags["A"] = "a";
|
|
35
|
-
Tags["BUTTON"] = "button";
|
|
36
|
-
})(Tags || (Tags = {}));
|
|
37
|
-
const GovButton = class {
|
|
38
|
-
constructor(hostRef) {
|
|
39
|
-
index.registerInstance(this, hostRef);
|
|
40
|
-
this.govClick = index.createEvent(this, "gov-click");
|
|
41
|
-
this.govFocus = index.createEvent(this, "gov-focus");
|
|
42
|
-
this.govBlur = index.createEvent(this, "gov-blur");
|
|
43
|
-
this.hydrated = false;
|
|
44
|
-
/**
|
|
45
|
-
* Button’s size
|
|
46
|
-
*/
|
|
47
|
-
this.size = "m";
|
|
48
|
-
/**
|
|
49
|
-
* Expands the button to fill 100% of the container width
|
|
50
|
-
*/
|
|
51
|
-
this.expanded = false;
|
|
52
|
-
/**
|
|
53
|
-
* Expands the button to fill 100% of the container width only on mobile
|
|
54
|
-
*/
|
|
55
|
-
this.expandedMobile = false;
|
|
56
|
-
/**
|
|
57
|
-
* Makes the button component disabled.
|
|
58
|
-
* This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies
|
|
59
|
-
*/
|
|
60
|
-
this.disabled = false;
|
|
61
|
-
/**
|
|
62
|
-
* Same as original parameter
|
|
63
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type
|
|
64
|
-
*/
|
|
65
|
-
this.nativeType = "button";
|
|
66
|
-
/**
|
|
67
|
-
* Same as original parameter
|
|
68
|
-
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
|
|
69
|
-
*/
|
|
70
|
-
this.tabindex = 0;
|
|
71
|
-
/**
|
|
72
|
-
* Same as original parameter
|
|
73
|
-
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable
|
|
74
|
-
*/
|
|
75
|
-
this.focusable = true;
|
|
76
|
-
this.inheritedAttributes = {};
|
|
77
|
-
this.h = template.govHost(this.host);
|
|
78
|
-
}
|
|
79
|
-
validateColor(newValue) {
|
|
80
|
-
props.validateProp(constants.ButtonColors, newValue, constants.ButtonClass.root);
|
|
81
|
-
}
|
|
82
|
-
validateType(newValue) {
|
|
83
|
-
props.validateProp(constants.ButtonType, newValue, constants.ButtonClass.root);
|
|
84
|
-
}
|
|
85
|
-
validateSize(newValue) {
|
|
86
|
-
props.validateProp(sizes.Sizes, newValue, constants.ButtonClass.root);
|
|
87
|
-
}
|
|
88
|
-
validateNativeType(newValue) {
|
|
89
|
-
props.validateProp(constants.NativeType, newValue, constants.ButtonClass.root);
|
|
90
|
-
}
|
|
91
|
-
componentDidLoad() {
|
|
92
|
-
this.attributeObserver = new attribute.AttributeObserver(this.host, (attributeName, newValue) => {
|
|
93
|
-
this.onAriaAttributeChange(attributeName, newValue);
|
|
94
|
-
});
|
|
95
|
-
this.attributeObserver.startObserving(attribute.ariaAttributes);
|
|
96
|
-
}
|
|
97
|
-
onAriaAttributeChange(attributeName, newValue) {
|
|
98
|
-
this.host.removeAttribute(attributeName);
|
|
99
|
-
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
100
|
-
}
|
|
101
|
-
disconnectedCallback() {
|
|
102
|
-
var _a;
|
|
103
|
-
(_a = this.attributeObserver) === null || _a === void 0 ? void 0 : _a.stopObserving();
|
|
104
|
-
}
|
|
105
|
-
componentWillLoad() {
|
|
106
|
-
this.validateColor(this.color);
|
|
107
|
-
this.validateType(this.type);
|
|
108
|
-
this.validateSize(this.size);
|
|
109
|
-
this.validateNativeType(this.nativeType);
|
|
110
|
-
this.inheritedAttributes = accessibility.inheritAriaAttributes(this.host);
|
|
111
|
-
}
|
|
112
|
-
async componentDidRender() {
|
|
113
|
-
if (gov_log.canValidateWcagOnRender()) {
|
|
114
|
-
await utils.delay(500);
|
|
115
|
-
await this.validateAccessibility();
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
connectedCallback() {
|
|
119
|
-
this.hydrated = true;
|
|
120
|
-
}
|
|
121
|
-
render() {
|
|
122
|
-
const Tag = this.href ? Tags.A : Tags.BUTTON;
|
|
123
|
-
const nativeType = Tag === Tags.A ? undefined : this.nativeType;
|
|
124
|
-
return (index.h(index.Host, { key: '121d16797366f30c7d5cd3af18171cb8b22bc789', size: this.size, hydrated: this.hydrated, color: this.color, class: this.h.classes(constants.ButtonClass.root), type: this.type }, index.h(Tag, Object.assign({ key: 'ad4a83ffacbb5360e81988e9e8d709611be7276e', 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.tabindex }, this.inheritedAttributes, { "aria-disabled": template.toBoolAttrIfDefined(this.disabled) }), toBool(this.loading) && !this.h.hasSlot("icon-end") &&
|
|
125
|
-
index.h("gov-icon", { key: '449464e921e45abda79ccbb855a1ad94b244fd08', name: "loader", class: "gov-spin-animation", type: "components" }), this.h.hasSlot("icon-start") && index.h("slot", { key: 'fa432280096722ed9fc96de54b1ac4c4213f635f', name: "icon-start" }), index.h("slot", { key: '2b3121e1c8ad64cf84922bb328850c2e32cbf2a7' }), this.h.hasSlot("icon-end") && index.h("slot", { key: '406b3f6413eb0cd206fcb059dfdfcaae6571083f', name: "icon-end" }), toBool(this.loading) && this.h.hasSlot("icon-end") &&
|
|
126
|
-
index.h("gov-icon", { key: '737635b06a56fb1ce7cc9d675f0588686b3867e4', name: "loader", class: "gov-spin-animation", type: "components" }))));
|
|
127
|
-
}
|
|
128
|
-
onClickHandler(e) {
|
|
129
|
-
e.stopPropagation();
|
|
130
|
-
if (this.disabled === false) {
|
|
131
|
-
this.govClick.emit({
|
|
132
|
-
component: constants.ButtonClass.root,
|
|
133
|
-
originalEvent: e,
|
|
134
|
-
ref: this.host,
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
onFocusHandler(e) {
|
|
139
|
-
e.stopPropagation();
|
|
140
|
-
this.govFocus.emit({
|
|
141
|
-
component: constants.ButtonClass.root,
|
|
142
|
-
originalEvent: e,
|
|
143
|
-
ref: this.host,
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
onBlurHandler(e) {
|
|
147
|
-
e.stopPropagation();
|
|
148
|
-
this.govBlur.emit({
|
|
149
|
-
component: constants.ButtonClass.root,
|
|
150
|
-
originalEvent: e,
|
|
151
|
-
ref: this.host,
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Focus button element
|
|
156
|
-
*/
|
|
157
|
-
async setFocus() {
|
|
158
|
-
this.triggerRef.focus();
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Returns a clickable element instance
|
|
162
|
-
*/
|
|
163
|
-
async getRef() {
|
|
164
|
-
return this.triggerRef;
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Validate the Accessibility attributes of the component
|
|
168
|
-
*/
|
|
169
|
-
async validateAccessibility() {
|
|
170
|
-
if (this.focusable) {
|
|
171
|
-
wcag.validateAccessibleLabel(this.triggerRef.getAttribute('aria-label'), this.triggerRef.getAttribute('aria-labelledby'), constants.ButtonClass.root, this.host);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
get host() { return index.getElement(this); }
|
|
175
|
-
static get watchers() { return {
|
|
176
|
-
"color": ["validateColor"],
|
|
177
|
-
"type": ["validateType"],
|
|
178
|
-
"size": ["validateSize"],
|
|
179
|
-
"nativeType": ["validateNativeType"]
|
|
180
|
-
}; }
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
exports.gov_button = GovButton;
|
|
184
|
-
//# sourceMappingURL=gov-button.entry.cjs.js.map
|
|
185
|
-
|
|
186
|
-
//# sourceMappingURL=gov-button.cjs.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"gov-button.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;AAAM,SAAU,MAAM,CAAC,KAAU,EAAA;AAChC,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AAC9B,QAAA,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE;;AACpD,SAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QACrC,OAAO,KAAK,GAAG,CAAC;;AACV,SAAA,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE;AACtC,QAAA,OAAO,KAAK;;SACN;QACN,OAAO,KAAK,GAAG,IAAI,GAAG,KAAK;;AAE7B;;ACeA,IAAK,IAGJ;AAHD,CAAA,UAAK,IAAI,EAAA;AACR,IAAA,IAAA,CAAA,GAAA,CAAA,GAAA,GAAO;AACP,IAAA,IAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAHI,IAAI,KAAJ,IAAI,GAGR,EAAA,CAAA,CAAA;MAKY,SAAS,GAAA,MAAA;AAMrB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;;AAFQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAYxB;;AAEG;AAC6B,QAAA,IAAI,CAAA,IAAA,GAAqB,GAAG;AAK5D;;AAEG;AAC6B,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;AACzD;;AAEG;AAC2D,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a,EAAA;QAClC,CAAC,CAAC,eAAe,EAAE;AACnB,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YACjB,SAAS,EAAEA,qBAAW,CAAC,IAAI;AAC3B,YAAA,aAAa,EAAE,CAAC;YAChB,GAAG,EAAE,IAAI,CAAC,IAAI;AACd,SAAA,CAAC;;AAGH;;AAEG;AAEH,IAAA,MAAM,QAAQ,GAAA;AACb,QAAA,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE;;AAGxB;;AAEG;AAEH,IAAA,MAAM,MAAM,GAAA;QACX,OAAO,IAAI,CAAC,UAAU;;AAGvB;;AAEG;AAEH,IAAA,MAAM,qBAAqB,GAAA;AAC1B,QAAA,IAAI,IAAI,CAAC,SAAS,EAAE;YACnBY,4BAAuB,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAEZ,qBAAW,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;;;;;;;;;;;;;;","names":["govHost","validateProp","ButtonColors","ButtonClass","ButtonType","Sizes","NativeType","AttributeObserver","ariaAttributes","inheritAriaAttributes","canValidateWcagOnRender","delay","h","Host","toBoolAttrIfDefined","validateAccessibleLabel"],"sources":["../../../packages/core/src/utils/bool.utils.ts","../../../packages/core/src/components/gov-button/button/gov-button.tsx"],"sourcesContent":["export function toBool(value: any): boolean {\n\tif (typeof value === 'string') {\n\t\treturn ['true', 'True', 'TRUE', '1'].indexOf(value) !== -1\n\t} else if (typeof value === 'number') {\n\t\treturn value > 0\n\t} else if (typeof value === 'boolean') {\n\t\treturn value\n\t} else {\n\t\treturn value ? true : false\n\t}\n}\n","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 tabindex: 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.tabindex}\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"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-button.entry.cjs.js","sources":["../../../packages/core/src/utils/bool.utils.ts","../../../packages/core/src/components/gov-button/button/gov-button.tsx"],"sourcesContent":["export function toBool(value: any): boolean {\n\tif (typeof value === 'string') {\n\t\treturn ['true', 'True', 'TRUE', '1'].indexOf(value) !== -1\n\t} else if (typeof value === 'number') {\n\t\treturn value > 0\n\t} else if (typeof value === 'boolean') {\n\t\treturn value\n\t} else {\n\t\treturn value ? true : false\n\t}\n}\n","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 tabindex: 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.tabindex}\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"],"names":["govHost","validateProp","ButtonColors","ButtonClass","ButtonType","Sizes","NativeType","AttributeObserver","ariaAttributes","inheritAriaAttributes","canValidateWcagOnRender","delay","h","Host","toBoolAttrIfDefined","validateAccessibleLabel"],"mappings":";;;;;;;;;;;;;;;;AAAM,SAAU,MAAM,CAAC,KAAU,EAAA;AAChC,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AAC9B,QAAA,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE;;AACpD,SAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QACrC,OAAO,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AI,CAAC,IAAI,CAAC;;;;;;;;;;;;;;"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-pjwoybrU.js');
|
|
4
|
-
var template = require('./template-DS4pSCTb.js');
|
|
5
|
-
var string_utils = require('./string.utils-BG4pUfEi.js');
|
|
6
|
-
var wcag = require('./wcag-Bvzxnp5D.js');
|
|
7
|
-
var gov_log = require('./gov.log-C5EH15b_.js');
|
|
8
|
-
var utils = require('./utils-NnC78QR3.js');
|
|
9
|
-
require('./helpers.types-vap8QfRH.js');
|
|
10
|
-
|
|
11
|
-
var CardDirection;
|
|
12
|
-
(function (CardDirection) {
|
|
13
|
-
CardDirection["HORIZONTAL"] = "horizontal";
|
|
14
|
-
CardDirection["VERTICAL"] = "vertical";
|
|
15
|
-
})(CardDirection || (CardDirection = {}));
|
|
16
|
-
const CardClass = {
|
|
17
|
-
root: 'gov-card',
|
|
18
|
-
header: 'gov-card__header',
|
|
19
|
-
arrow: 'gov-card__arrow',
|
|
20
|
-
inner: 'gov-card__inner',
|
|
21
|
-
img: 'gov-card__img',
|
|
22
|
-
icon: 'gov-card__icon',
|
|
23
|
-
content: 'gov-card__content',
|
|
24
|
-
footer: 'gov-card__footer',
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
var Tags;
|
|
28
|
-
(function (Tags) {
|
|
29
|
-
Tags["A"] = "a";
|
|
30
|
-
Tags["DIV"] = "div";
|
|
31
|
-
})(Tags || (Tags = {}));
|
|
32
|
-
const GovCard = class {
|
|
33
|
-
constructor(hostRef) {
|
|
34
|
-
index.registerInstance(this, hostRef);
|
|
35
|
-
this.govToggle = index.createEvent(this, "gov-toggle");
|
|
36
|
-
this.hydrated = false;
|
|
37
|
-
/**
|
|
38
|
-
* Card direction
|
|
39
|
-
*/
|
|
40
|
-
this.direction = "vertical";
|
|
41
|
-
/**
|
|
42
|
-
* Defines weather the card can be collapsible
|
|
43
|
-
*/
|
|
44
|
-
this.collapsible = false;
|
|
45
|
-
/**
|
|
46
|
-
* Defines weather the card can be clickable with hover effect
|
|
47
|
-
*/
|
|
48
|
-
this.clickable = false;
|
|
49
|
-
/**
|
|
50
|
-
* Defines whether the card is open or closed
|
|
51
|
-
*/
|
|
52
|
-
this.open = true;
|
|
53
|
-
this.h = template.govHost(this.host);
|
|
54
|
-
this.headlineId = string_utils.createID('GovCardHeadline');
|
|
55
|
-
this.contentId = string_utils.createID('GovCardContent');
|
|
56
|
-
}
|
|
57
|
-
async componentDidRender() {
|
|
58
|
-
if (gov_log.canValidateWcagOnRender()) {
|
|
59
|
-
await utils.delay(500);
|
|
60
|
-
await this.validateAccessibility();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
connectedCallback() {
|
|
64
|
-
this.hydrated = true;
|
|
65
|
-
}
|
|
66
|
-
render() {
|
|
67
|
-
const Tag = this.href ? Tags.A : Tags.DIV;
|
|
68
|
-
return (index.h(index.Host, { key: 'f82c40e7efa575ba9d64bd8caa0209403ffc20fb', class: this.h.classes(CardClass.root), open: this.open, collapsible: template.booleanString(this.collapsible), clickable: this.clickable, direction: this.direction, hydrated: this.hydrated }, this.collapsible ? (index.h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.accessibleTriggerLabel, "aria-labelledby": this.accessibleTriggerLabelledBy, "aria-expanded": template.booleanString(this.open), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, index.h("slot", { name: "headline" }), index.h("gov-icon", { class: CardClass.arrow, name: "chevron-down", type: "components" }))) : this.h.hasSlot("headline") ? (index.h("div", { class: CardClass.header }, index.h("slot", { name: "headline" }))) : null, index.h(Tag, { key: '2df6c292a0cfc9804826bb607dc27936f7ab00f8', href: this.href, target: this.target, id: this.contentId, "aria-hidden": this.collapsible ? template.booleanString(!this.open) : undefined, hidden: this.collapsible ? !this.open : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined, class: CardClass.inner }, this.h.hasSlot('img') && (index.h("div", { key: '0c237bd7dd87b4f3a5842615e47666cbe2118d02', class: CardClass.img }, index.h("slot", { key: 'b4e7582ca06d9dec6b6b55b51d50cb14671268cd', name: "img" }))), this.h.hasSlot('icon') && (index.h("div", { key: 'eb0c31816aea23cfcc25335a8b2493f21da0cd3b', class: CardClass.icon }, index.h("slot", { key: '2dead413f83bd5ca42d277b8696d44e566b83f26', name: "icon" }))), index.h("div", { key: '52461c6aaf6344c2d4486fbf381bd49a570a1b02', class: CardClass.content }, index.h("slot", { key: '7e629cf403a3de59bd9740ffbd11686de793074b' })), this.h.hasSlot('footer') && (index.h("div", { key: '61dac1a4fc6e08c7bc8a3783987f001e8abb1c51', class: CardClass.footer }, index.h("slot", { key: 'cacb424a31b54a7eb463ec993c606aa85e0af2a0', name: "footer" }))))));
|
|
69
|
-
}
|
|
70
|
-
onClickHandler(e) {
|
|
71
|
-
e.stopPropagation();
|
|
72
|
-
if (this.collapsible) {
|
|
73
|
-
this.open = !this.open;
|
|
74
|
-
this.govToggle.emit({ open: this.open, element: this.host });
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Validate the accessible attributes of the component
|
|
79
|
-
*/
|
|
80
|
-
async validateAccessibility() {
|
|
81
|
-
if (this.collapsible) {
|
|
82
|
-
wcag.validateAccessibleLabel(this.accessibleTriggerLabel, this.accessibleTriggerLabelledBy, CardClass.root, this.host);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
get host() { return index.getElement(this); }
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
exports.gov_card = GovCard;
|
|
89
|
-
//# sourceMappingURL=gov-card.entry.cjs.js.map
|
|
90
|
-
|
|
91
|
-
//# sourceMappingURL=gov-card.cjs.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"gov-card.entry.cjs.js","mappings":";;;;;;;;;;AAEA,IAAY,aAGX;AAHD,CAAA,UAAY,aAAa,EAAA;AACxB,IAAA,aAAA,CAAA,YAAA,CAAA,G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AAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAO,CACF,EAEL,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,KACxBA,OAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,SAAS,CAAC,MAAM,EAAA,EAC3BA,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,QAAQ,EAAA,CAAE,CAChB,CACN,CACI,CACA;;AAID,IAAA,cAAc,CAAC,CAAC,EAAA;QACvB,CAAC,CAAC,eAAe,EAAE;AACnB,QAAA,IAAI,IAAI,CAAC,WAAW,EAAE;AACrB,YAAA,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI;AACtB,YAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,EAAC,CAAC;;;AAI5D;;AAEG;AAEH,IAAA,MAAM,qBAAqB,GAAA;AAC1B,QAAA,IAAI,IAAI,CAAC,WAAW,EAAE;AACrB,YAAAG,4BAAuB,CAAC,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC,2BAA2B,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;;;;;;;;","names":["govHost","createID","canValidateWcagOnRender","delay","h","Host","booleanString","validateAccessibleLabel"],"sources":["../../../packages/core/src/components/gov-card/constants.ts","../../../packages/core/src/components/gov-card/gov-card.tsx"],"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","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"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-card.entry.cjs.js","sources":["../../../packages/core/src/components/gov-card/constants.ts","../../../packages/core/src/components/gov-card/gov-card.tsx"],"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","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"],"names":["govHost","createID","canValidateWcagOnRender","delay","h","Host","booleanString","validateAccessibleLabel"],"mappings":";;;;;;;;;;AAEA,IAAY,aAGX;AAHD,CAAA,UAAY,aAAa,EAAA;AACxB,IAAA,aAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AACzB,IAAA,aAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACtB,CAAC,EAHW,aAAa,KAAb,aAAa,GAGxB,EAAA,CAAA,C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C,KACxBA,OAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,SAAS,CAAC,MAAM,EAAA,EAC3BA,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,QAAQ,EAAA,CAAE,CAChB,CACN,CACI,CACA;;AAID,IAAA,cAAc,CAAC,CAAC,EAAA;QACvB,CAAC,CAAC,eAAe,EAAE;AACnB,QAAA,IAAI,IAAI,CAAC,WAAW,EAAE;AACrB,YAAA,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI;AACtB,YAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,EAAC,CAAC;;;AAI5D;;AAEG;AAEH,IAAA,MAAM,qBAAqB,GAAA;AAC1B,QAAA,IAAI,IAAI,CAAC,WAAW,EAAE;AACrB,YAAAG,4BAAuB,CAAC,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC,2BAA2B,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;;;;;;;;"}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-pjwoybrU.js');
|
|
4
|
-
var props = require('./props-CPENhBnM.js');
|
|
5
|
-
var template = require('./template-DS4pSCTb.js');
|
|
6
|
-
var utils = require('./utils-NnC78QR3.js');
|
|
7
|
-
var sizes = require('./sizes-D5zsw2g5.js');
|
|
8
|
-
var constants = require('./constants-z2ZSS2je.js');
|
|
9
|
-
var string_utils = require('./string.utils-BG4pUfEi.js');
|
|
10
|
-
var helpers = require('./helpers-DmI-ZOAH.js');
|
|
11
|
-
var accessibility = require('./accessibility-BQJmIVWV.js');
|
|
12
|
-
var attribute = require('./attribute-CH1-zDDl.js');
|
|
13
|
-
require('./gov.log-C5EH15b_.js');
|
|
14
|
-
require('./colors-DgrrxjsX.js');
|
|
15
|
-
|
|
16
|
-
const ChipSizes = utils.pick(sizes.Sizes, ['_XS', '_S', '_M']);
|
|
17
|
-
var ChipType;
|
|
18
|
-
(function (ChipType) {
|
|
19
|
-
ChipType["SOLID"] = "solid";
|
|
20
|
-
ChipType["OUTLINED"] = "outlined";
|
|
21
|
-
})(ChipType || (ChipType = {}));
|
|
22
|
-
var NativeType;
|
|
23
|
-
(function (NativeType) {
|
|
24
|
-
NativeType["A"] = "a";
|
|
25
|
-
NativeType["SPAN"] = "span";
|
|
26
|
-
NativeType["BUTTON"] = "button";
|
|
27
|
-
})(NativeType || (NativeType = {}));
|
|
28
|
-
const ChipClass = {
|
|
29
|
-
root: 'gov-chip',
|
|
30
|
-
hasRight: 'gov-chip--has-right',
|
|
31
|
-
hasLeft: 'gov-chip--has-left',
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
const GovChip = class {
|
|
35
|
-
constructor(hostRef) {
|
|
36
|
-
index.registerInstance(this, hostRef);
|
|
37
|
-
this.govClick = index.createEvent(this, "gov-click");
|
|
38
|
-
this.hydrated = false;
|
|
39
|
-
/**
|
|
40
|
-
* Makes the chip component disabled.
|
|
41
|
-
*/
|
|
42
|
-
this.disabled = false;
|
|
43
|
-
/**
|
|
44
|
-
* Chip’s size.
|
|
45
|
-
*/
|
|
46
|
-
this.size = ChipSizes._M;
|
|
47
|
-
/**
|
|
48
|
-
* Used to change the HTML tag in the chip
|
|
49
|
-
*/
|
|
50
|
-
this.tag = "span";
|
|
51
|
-
/**
|
|
52
|
-
* Style variation of the chip.
|
|
53
|
-
*/
|
|
54
|
-
this.color = constants.ButtonColors.PRIMARY;
|
|
55
|
-
/**
|
|
56
|
-
* Same as original parameter
|
|
57
|
-
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable
|
|
58
|
-
*/
|
|
59
|
-
this.focusable = true;
|
|
60
|
-
this.inheritedAttributes = {};
|
|
61
|
-
this.h = template.govHost(this.host);
|
|
62
|
-
this.chipId = string_utils.createID('GovChip');
|
|
63
|
-
}
|
|
64
|
-
validateColor(newValue) {
|
|
65
|
-
props.validateProp(constants.ButtonColors, newValue, ChipClass.root);
|
|
66
|
-
}
|
|
67
|
-
validateSize(newValue) {
|
|
68
|
-
props.validateProp(constants.ButtonSizes, newValue, ChipClass.root);
|
|
69
|
-
}
|
|
70
|
-
componentWillLoad() {
|
|
71
|
-
this.validateColor(this.color);
|
|
72
|
-
this.validateSize(this.size);
|
|
73
|
-
this.inheritedAttributes = accessibility.inheritAriaAttributes(this.host);
|
|
74
|
-
}
|
|
75
|
-
componentDidLoad() {
|
|
76
|
-
this.attributeObserver = new attribute.AttributeObserver(this.host, (attributeName, newValue) => {
|
|
77
|
-
this.onAriaAttributeChange(attributeName, newValue);
|
|
78
|
-
});
|
|
79
|
-
this.attributeObserver.startObserving(attribute.ariaAttributes);
|
|
80
|
-
}
|
|
81
|
-
disconnectedCallback() {
|
|
82
|
-
var _a;
|
|
83
|
-
(_a = this.attributeObserver) === null || _a === void 0 ? void 0 : _a.stopObserving();
|
|
84
|
-
}
|
|
85
|
-
connectedCallback() {
|
|
86
|
-
this.hydrated = true;
|
|
87
|
-
}
|
|
88
|
-
onAriaAttributeChange(attributeName, newValue) {
|
|
89
|
-
this.host.removeAttribute(attributeName);
|
|
90
|
-
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
91
|
-
}
|
|
92
|
-
render() {
|
|
93
|
-
const Tag = this.href ? NativeType.A : this.tag;
|
|
94
|
-
const nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined;
|
|
95
|
-
const iconStart = helpers.prepareIconFormat(this.iconStart);
|
|
96
|
-
const iconEnd = helpers.prepareIconFormat(this.iconEnd);
|
|
97
|
-
return (index.h(index.Host, { key: '32757f0c00fbf343f2a09c81c36f0631e007dee7', class: this.h.classes([
|
|
98
|
-
ChipClass.root,
|
|
99
|
-
this.h.hasSlot("right") ? ChipClass.hasRight : undefined,
|
|
100
|
-
this.h.hasSlot("left") ? ChipClass.hasLeft : undefined,
|
|
101
|
-
]), disabled: this.disabled, href: this.href, color: this.color, type: this.type, size: this.size, focusable: this.focusable, hydrated: this.hydrated }, index.h(Tag, Object.assign({ key: '15c641eec13ca157f1d7a3709fc8843f18180b10', 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 }), index.h("slot", { key: '81f56e0015e7d8ad1b72b7c24c90fd6eb04f31e8', name: "left" }), index.h("slot", { key: '76377b22dc1c71a1fd0c5ca6bf0132760fbfca77', name: "icon-start" }, iconStart && index.h("gov-icon", { key: '55245f14620f9a9d4c04d48a88944a44068148b2', type: iconStart.type, name: iconStart.name })), index.h("slot", { key: '4159dd5f8662d6b7ba5647e1220eddeeaef54553' }), index.h("slot", { key: '8810a1161bfea9da7cc932ea5ce4810d4762d208', name: "icon-end" }, iconEnd && index.h("gov-icon", { key: 'c4585843d3e078f9a99ec01a78cb862c1783a36c', type: iconEnd.type, name: iconEnd.name })), index.h("slot", { key: '0b05c2e16d2ddea5bba82bfce3f1500889379f1a', name: "right" }))));
|
|
102
|
-
}
|
|
103
|
-
onClickHandler(e) {
|
|
104
|
-
e.stopPropagation();
|
|
105
|
-
if (this.disabled === false && this.tag === NativeType.BUTTON) {
|
|
106
|
-
this.govClick.emit(e);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Returns a clickable element instance
|
|
111
|
-
*/
|
|
112
|
-
async geRef() {
|
|
113
|
-
return this.triggerRef;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Focus button element
|
|
117
|
-
*/
|
|
118
|
-
async setFocus() {
|
|
119
|
-
this.triggerRef.focus();
|
|
120
|
-
}
|
|
121
|
-
get host() { return index.getElement(this); }
|
|
122
|
-
static get watchers() { return {
|
|
123
|
-
"color": ["validateColor"],
|
|
124
|
-
"size": ["validateSize"]
|
|
125
|
-
}; }
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
exports.gov_chip = GovChip;
|
|
129
|
-
//# sourceMappingURL=gov-chip.entry.cjs.js.map
|
|
130
|
-
|
|
131
|
-
//# sourceMappingURL=gov-chip.cjs.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"gov-chip.entry.cjs.js","mappings":";;;;;;;;;;;;;;;AAIO,MAAM,SAAS,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAGzD,IAAY,QAGX;AAHD,CAAA,UAAY,QAAQ,EAAA;AACnB,IAAA,QAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,QAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACtB,CAAC,EAHW,QAAQ,KAAR,QAAQ,GAGnB,EAAA,CAAA,CAAA;AAGD,IAAY,UAIX;AAJD,CAAA,UAAY,UAAU,EAAA;AACrB,IAAA,UAAA,CAAA,GAAA,CAAA,GAAA,GAAO;AACP,IAAA,UAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,UAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAJW,UAAU,KAAV,UAAU,GAIrB,EAAA,CAAA,CAAA;AAGM,MAAM,SAAS,GAAG;AACxB,IAAA,IAAI,EAAE,UAAU;AAChB,IACA,QAAQ,EAAE,qBAAqB;AAC/B,IAAA,OAAO,EAAE,oBAAoB;CAC7B;;MCVY,OAAO,GAAA,MAAA;AAOnB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAHQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAUxB;;AAEG;AAC6B,QAAA,IAAQ,CAAA,QAAA,G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OAAO,IAAIA,uEAAU,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,GAAa,CACnE,EACPA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,OAAO,GAAQ,CACrB,CACA;;AAID,IAAA,cAAc,CAAC,CAAe,EAAA;QACrC,CAAC,CAAC,eAAe,EAAE;AACnB,QAAA,IAAI,IAAI,CAAC,QAAQ,KAAK,KAAK,IAAI,IAAI,CAAC,GAAG,KAAK,UAAU,CAAC,MAAM,EAAE;AAC9D,YAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;;;AAIvB;;AAEG;AAEH,IAAA,MAAM,KAAK,GAAA;QACV,OAAO,IAAI,CAAC,UAAU;;AAGvB;;AAEG;AAEH,IAAA,MAAM,QAAQ,GAAA;AACb,QAAA,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE;;;;;;;;;;;","names":["pick","Sizes","ButtonColors","govHost","createID","validateProp","ButtonSizes","inheritAriaAttributes","AttributeObserver","ariaAttributes","prepareIconFormat","h","Host"],"sources":["../../../packages/core/src/components/gov-chip/constants.ts","../../../packages/core/src/components/gov-chip/gov-chip.tsx"],"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","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"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gov-chip.entry.cjs.js","sources":["../../../packages/core/src/components/gov-chip/constants.ts","../../../packages/core/src/components/gov-chip/gov-chip.tsx"],"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","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"],"names":["pick","Sizes","ButtonColors","govHost","createID","validateProp","ButtonSizes","inheritAriaAttributes","AttributeObserver","ariaAttributes","prepareIconFormat","h","Host"],"mappings":";;;;;;;;;;;;;;;AAIO,MAAM,SAAS,GAAGA,UAAI,CAACC,WAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAGzD,IAAY,QAGX;AAHD,CAAA,UAAY,QAAQ,EAAA;AACnB,IAAA,QAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,QAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACtB,CAAC,EAHW,QAAQ,KAAR,QAAQ,GAGnB,EAAA,CAAA,CAAA;AAGD,IAAY,UAIX;AAJD,CAAA,UAAY,UAAU,EAAA;AACrB,IAAA,UAAA,CAAA,GAAA,CAAA,GAAA,GAAO;AACP,IAAA,UAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,UAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AAClB,CAAC,EAJW,UAAU,KAAV,UAAU,GAIrB,EAAA,CAAA,CAAA;AAGM,MAAM,SAAS,GAAG;AACxB,IAAA,IAAI,EAAE,UAAU;AAChB,IACA,QAAQ,EAAE,qBAAqB;AAC/B,IAAA,OAAO,EAAE,oBAAoB;CAC7B;;MCVY,OAAO,GAAA,MAAA;AAOnB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAHQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAUxB;;AAEG;AAC6B,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;AAmBzD;;AAEG;AACc,QAAA,IAAA,CAAA,IAAI,GAAkB,SAAS,CAAC,EAAE;AACnD;;AAEG;AACc,QAAA,IAAG,CAAA,GAAA,GAAoB,MAAM;AAC9C;;AAEG;AACc,QAAA,IAAA,CAAA,KAAK,GAAoBC,sBAAY,CAAC,OAAO;AAK9D;;;AAGG;AACc,QAAA,IAAS,CAAA,SAAA,GAAY,IAAI;AAoBjC,QAAA,IAA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AAI,CAAC,QAAQ,KAAK,KAAK,IAAI,IAAI,CAAC,GAAG,KAAK,UAAU,CAAC,MAAM,EAAE;AAC9D,YAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;;;AAIvB;;AAEG;AAEH,IAAA,MAAM,KAAK,GAAA;QACV,OAAO,IAAI,CAAC,UAAU;;AAGvB;;AAEG;AAEH,IAAA,MAAM,QAAQ,GAAA;AACb,QAAA,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE;;;;;;;;;;;"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-pjwoybrU.js');
|
|
4
|
-
var template = require('./template-DS4pSCTb.js');
|
|
5
|
-
|
|
6
|
-
const ContainerClass = {
|
|
7
|
-
root: 'gov-container',
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const GovContainer = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
this.h = template.govHost(this.host);
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
return (index.h(index.Host, { key: '82f7c451b4196138a062e9e807c0b264b5f8e1fe', class: this.h.classes(ContainerClass.root) }, index.h("slot", { key: '04a40aeafe57c99f4a148d04320bf390e3444ea8' })));
|
|
17
|
-
}
|
|
18
|
-
get host() { return index.getElement(this); }
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.gov_container = GovContainer;
|
|
22
|
-
//# sourceMappingURL=gov-container.entry.cjs.js.map
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=gov-container.cjs.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"gov-container.entry.cjs.js","mappings":";;;;;AAAO,MAAM,cAAc,GAAG;AAC7B,IAAA,IAAI,EAAE,eAAe;CACrB;;MCMY,YAAY,GAAA,MAAA;AAGxB,IAAA,WAAA,CAAA,OAAA,EAAA;;QACC,IAAI,CAAC,CAAC,GAAGA,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;IAID,MAAM,GAAA;AACL,QAAA,QACCC,OAAA,CAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAA,EAC/CD,OAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACF;;;;;;;","names":["govHost","h","Host"],"sources":["../../../packages/core/src/components/gov-container/constants.tsx","../../../packages/core/src/components/gov-container/gov-container.tsx"],"sourcesContent":["export const ContainerClass = {\n\troot: 'gov-container',\n}\n","import { Component, Element, h, Host } from '@stencil/core'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { ContainerClass } from './constants'\n\n@Component({\n\ttag: 'gov-container',\n})\nexport class GovContainer {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovContainerElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ContainerClass.root)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|