@gov-design-system-ce/components 0.0.62 → 0.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{constants-0488d137.js → constants-25f7a6be.js} +2 -2
- package/dist/cjs/{constants-0488d137.js.map → constants-25f7a6be.js.map} +1 -1
- package/dist/cjs/{constants-23b7a283.js → constants-427a2843.js} +2 -2
- package/dist/cjs/constants-427a2843.js.map +1 -0
- package/dist/cjs/{constants-ff12205f.js → constants-a31344ad.js} +1 -1
- package/dist/{collection/components/gov-button/default/constants.js.map → cjs/constants-a31344ad.js.map} +1 -1
- package/dist/cjs/core.cjs.js +25 -2
- package/dist/cjs/core.cjs.js.map +1 -1
- package/dist/cjs/{form-f68d13c6.js → form-74063d50.js} +3 -1
- package/dist/cjs/form-74063d50.js.map +1 -0
- package/dist/cjs/gov-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +2 -2
- package/dist/cjs/gov-app.cjs.entry.js +797 -520
- package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +2 -2
- package/dist/cjs/gov-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-button.cjs.entry.js +3 -3
- package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-card.cjs.entry.js +2 -2
- package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-chip.cjs.entry.js +102 -0
- package/dist/cjs/gov-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-container.cjs.entry.js +2 -2
- package/dist/cjs/gov-control-group.cjs.entry.js +2 -2
- package/dist/cjs/gov-cookiebar.cjs.entry.js +2 -2
- package/dist/cjs/gov-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-empty.cjs.entry.js +2 -2
- package/dist/cjs/gov-error-code.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-file.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-group.cjs.entry.js +13 -4
- package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-input.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +7 -7
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +15 -4
- package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +4 -4
- package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/gov-grid.cjs.entry.js +2 -2
- package/dist/cjs/gov-icon.cjs.entry.js +4 -4
- package/dist/cjs/gov-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-infobar.cjs.entry.js +6 -5
- package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-layout-column.cjs.entry.js +2 -2
- package/dist/cjs/gov-layout.cjs.entry.js +2 -2
- package/dist/cjs/gov-loading.cjs.entry.js +2 -2
- package/dist/cjs/gov-message.cjs.entry.js +2 -2
- package/dist/cjs/gov-modal.cjs.entry.js +8 -5
- package/dist/cjs/gov-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-nav-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-nav.cjs.entry.js +1 -1
- package/dist/cjs/gov-pagination.cjs.entry.js +2 -2
- package/dist/cjs/gov-prompt.cjs.entry.js +2 -2
- package/dist/cjs/gov-side-nav-item.cjs.entry.js +5 -5
- package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-side-nav.cjs.entry.js +3 -3
- package/dist/cjs/gov-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/gov-spacer.cjs.entry.js +2 -2
- package/dist/cjs/gov-statsbar-item.cjs.entry.js +2 -2
- package/dist/cjs/gov-statsbar.cjs.entry.js +2 -2
- package/dist/cjs/gov-stepper-item.cjs.entry.js +2 -2
- package/dist/cjs/gov-stepper.cjs.entry.js +2 -2
- package/dist/cjs/gov-tabs-item.cjs.entry.js +6 -6
- package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tabs.cjs.entry.js +26 -17
- package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tag.cjs.entry.js +51 -0
- package/dist/cjs/gov-tag.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tile.cjs.entry.js +2 -2
- package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tiles.cjs.entry.js +2 -2
- package/dist/cjs/gov-toast.cjs.entry.js +3 -3
- package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +3 -3
- package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tooltip.cjs.entry.js +41 -6
- package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizard-item.cjs.entry.js +2 -2
- package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizard.cjs.entry.js +2 -2
- package/dist/cjs/{index-83edd4fe.js → index-7b6bba34.js} +145 -3
- package/dist/cjs/index-7b6bba34.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{template-e1c4ff78.js → template-4b951d1d.js} +8 -1
- package/dist/cjs/template-4b951d1d.js.map +1 -0
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/gov-accordion/gov-accordion-item.css +5 -2
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion.css +5 -2
- package/dist/collection/components/gov-app/gov-app.css +5 -2
- package/dist/collection/components/gov-app/gov-app.js +5 -3
- package/dist/collection/components/gov-app/gov-app.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.css +5 -2
- package/dist/collection/components/gov-attachments/gov-attachments.css +5 -2
- package/dist/collection/components/gov-backdrop/gov-backdrop.css +5 -2
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +5 -2
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
- package/dist/collection/components/gov-button/button/constants.js.map +1 -0
- package/dist/collection/components/gov-button/{default → button}/gov-button.css +6 -3
- package/dist/collection/components/gov-button/{default → button}/gov-button.js +9 -9
- package/dist/collection/components/gov-button/button/gov-button.js.map +1 -0
- package/dist/collection/components/gov-button/button/gov-button.types.js.map +1 -0
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.css +5 -2
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -1
- package/dist/collection/components/gov-card/gov-card.css +5 -2
- package/dist/collection/components/gov-card/gov-card.js +1 -1
- package/dist/collection/components/gov-card/gov-card.js.map +1 -1
- package/dist/collection/components/{gov-badge → gov-chip}/constants.js +5 -5
- package/dist/collection/components/gov-chip/constants.js.map +1 -0
- package/dist/collection/components/gov-chip/gov-chip.css +1270 -0
- package/dist/collection/components/{gov-badge/gov-badge.js → gov-chip/gov-chip.js} +150 -23
- package/dist/collection/components/gov-chip/gov-chip.js.map +1 -0
- package/dist/collection/components/gov-container/gov-container.css +5 -2
- package/dist/collection/components/gov-control-group/gov-control-group.css +5 -2
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +5 -2
- package/dist/collection/components/gov-empty/gov-empty.css +5 -2
- package/dist/collection/components/gov-error-code/gov-error-code.css +5 -2
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +5 -2
- package/dist/collection/components/gov-form/checkbox/constants.js +1 -0
- package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +8 -2
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +2 -2
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
- package/dist/collection/components/gov-form/control/gov-form-control.css +5 -2
- package/dist/collection/components/gov-form/file/gov-form-file.css +5 -2
- package/dist/collection/components/gov-form/group/gov-form-group.css +5 -2
- package/dist/collection/components/gov-form/group/gov-form-group.js +13 -2
- package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
- package/dist/collection/components/gov-form/input/gov-form-input.css +5 -2
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
- package/dist/collection/components/gov-form/label/gov-form-label.css +5 -2
- package/dist/collection/components/gov-form/message/gov-form-message.css +5 -2
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +5 -2
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.css +8 -4
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -1
- package/dist/collection/components/gov-form/radio/constants.js +1 -0
- package/dist/collection/components/gov-form/radio/constants.js.map +1 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.css +8 -2
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +4 -4
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
- package/dist/collection/components/gov-form/search/gov-form-search.css +5 -2
- package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
- package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.css +5 -2
- package/dist/collection/components/gov-form/select/gov-form-select.js +39 -2
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.types.js.map +1 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.css +7 -2
- package/dist/collection/components/gov-form/switch/gov-form-switch.js +1 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
- package/dist/collection/components/gov-grid/gov-grid-item.css +5 -2
- package/dist/collection/components/gov-grid/gov-grid.css +5 -2
- package/dist/collection/components/gov-icon/gov-icon.css +8 -2
- package/dist/collection/components/gov-icon/gov-icon.js +4 -10
- package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
- package/dist/collection/components/gov-icon/list.js +17 -11
- package/dist/collection/components/gov-icon/list.js.map +1 -1
- package/dist/collection/components/gov-infobar/{default/constants.js → constants.js} +3 -2
- package/dist/collection/components/gov-infobar/constants.js.map +1 -0
- package/dist/collection/components/gov-infobar/{default/gov-infobar.css → gov-infobar.css} +9 -3
- package/dist/collection/components/gov-infobar/{default/gov-infobar.js → gov-infobar.js} +12 -11
- package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -0
- package/dist/collection/components/gov-infobar/gov-infobar.types.js.map +1 -0
- package/dist/collection/components/gov-layout/gov-layout-column.css +5 -2
- package/dist/collection/components/gov-layout/gov-layout.css +5 -2
- package/dist/collection/components/gov-loading/loading/gov-loading.css +5 -2
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.css +5 -2
- package/dist/collection/components/gov-message/gov-message.css +5 -2
- package/dist/collection/components/gov-modal/gov-modal.css +5 -2
- package/dist/collection/components/gov-modal/gov-modal.js +24 -3
- package/dist/collection/components/gov-modal/gov-modal.js.map +1 -1
- package/dist/collection/components/gov-nav/gov-nav-item.css +5 -2
- package/dist/collection/components/gov-nav/gov-nav.css +5 -2
- package/dist/collection/components/gov-pagination/gov-pagination.css +5 -2
- package/dist/collection/components/gov-promp/gov-prompt.css +5 -2
- package/dist/collection/components/gov-side-nav/constants.js +1 -1
- package/dist/collection/components/gov-side-nav/constants.js.map +1 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +6 -3
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +2 -2
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +1 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav.css +5 -2
- package/dist/collection/components/gov-spacer/gov-spacer.css +5 -2
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +5 -2
- package/dist/collection/components/gov-statsbar/gov-statsbar.css +5 -2
- package/dist/collection/components/gov-stepper/gov-stepper-item.css +5 -2
- package/dist/collection/components/gov-stepper/gov-stepper.css +5 -2
- package/dist/collection/components/gov-tabs/constants.js +1 -1
- package/dist/collection/components/gov-tabs/constants.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.css +5 -2
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +4 -4
- package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.css +16 -14
- package/dist/collection/components/gov-tabs/gov-tabs.js +29 -21
- package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
- package/dist/collection/components/gov-tag/constants.js +4 -0
- package/dist/collection/components/gov-tag/constants.js.map +1 -0
- package/dist/collection/components/gov-tag/gov-tag.css +1274 -0
- package/dist/collection/components/gov-tag/gov-tag.js +118 -0
- package/dist/collection/components/gov-tag/gov-tag.js.map +1 -0
- package/dist/collection/components/gov-tile/container/gov-tiles.css +5 -2
- package/dist/collection/components/gov-tile/gov-tile.css +5 -2
- package/dist/collection/components/gov-tile/gov-tile.js +3 -3
- package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
- package/dist/collection/components/gov-toast/gov-toast.css +6 -3
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +14 -2
- package/dist/collection/components/gov-tooltip/gov-tooltip.css +6 -3
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +40 -5
- package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.css +5 -2
- package/dist/collection/components/gov-wizard/gov-wizard-item.js +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
- package/dist/collection/components/gov-wizard/gov-wizard.css +5 -2
- package/dist/collection/data/font-definitions.js +6 -6
- package/dist/collection/helpers/Dom/template.js +7 -0
- package/dist/collection/helpers/Dom/template.js.map +1 -1
- package/dist/collection/helpers/Dom/template.types.js.map +1 -1
- package/dist/collection/pages/Accordion.js +15 -15
- package/dist/collection/pages/Accordion.js.map +1 -1
- package/dist/collection/pages/{Badge.js → Chip.js} +181 -181
- package/dist/collection/pages/Chip.js.map +1 -0
- package/dist/collection/pages/Forms.js +23 -0
- package/dist/collection/pages/Forms.js.map +1 -1
- package/dist/collection/pages/Infobar.js +5 -5
- package/dist/collection/pages/Infobar.js.map +1 -1
- package/dist/collection/pages/Tabs.js +7 -7
- package/dist/collection/pages/Tabs.js.map +1 -1
- package/dist/collection/pages/Tag.js +253 -0
- package/dist/collection/pages/Tag.js.map +1 -0
- package/dist/collection/pages/ToastMessageCountdown.js +5 -5
- package/dist/collection/pages/ToastMessageCountdown.js.map +1 -1
- package/dist/collection/pages/Tooltip.js +3 -3
- package/dist/collection/pages/Tooltip.js.map +1 -1
- package/dist/components/gov-accordion-item.js +1 -1
- package/dist/components/gov-accordion-item.js.map +1 -1
- package/dist/components/gov-accordion.js +1 -1
- package/dist/components/gov-app.js +1 -1
- package/dist/components/gov-app.js.map +1 -1
- package/dist/components/gov-attachments-item.js +1 -1
- package/dist/components/gov-attachments.js +1 -1
- package/dist/components/gov-backdrop.js +1 -1
- package/dist/components/gov-breadcrumbs.js +1 -1
- package/dist/components/gov-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button.js +1 -1
- package/dist/components/gov-card.js +1 -1
- package/dist/components/gov-card.js.map +1 -1
- package/dist/components/{gov-badge.d.ts → gov-chip.d.ts} +4 -4
- package/dist/components/gov-chip.js +2 -0
- package/dist/components/gov-container.js +1 -1
- package/dist/components/gov-control-group.js +1 -1
- package/dist/components/gov-cookiebar.js +1 -1
- package/dist/components/gov-dropdown.js +1 -1
- package/dist/components/gov-dropdown.js.map +1 -1
- package/dist/components/gov-empty.js +1 -1
- package/dist/components/gov-error-code.js +1 -1
- package/dist/components/gov-form-autocomplete.js +1 -1
- package/dist/components/gov-form-checkbox.js +1 -1
- package/dist/components/gov-form-checkbox.js.map +1 -1
- package/dist/components/gov-form-control.js +1 -1
- package/dist/components/gov-form-file.js +1 -1
- package/dist/components/gov-form-group.js +1 -1
- package/dist/components/gov-form-group.js.map +1 -1
- package/dist/components/gov-form-input.js +1 -1
- package/dist/components/gov-form-label.js +1 -1
- package/dist/components/gov-form-message.js +1 -1
- package/dist/components/gov-form-multi-select.js +1 -1
- package/dist/components/gov-form-password-power.js +1 -1
- package/dist/components/gov-form-password-power.js.map +1 -1
- package/dist/components/gov-form-radio.js +1 -1
- package/dist/components/gov-form-radio.js.map +1 -1
- package/dist/components/gov-form-search.js +1 -1
- package/dist/components/gov-form-search.js.map +1 -1
- package/dist/components/gov-form-select.js +1 -1
- package/dist/components/gov-form-switch.js +1 -1
- package/dist/components/gov-form-switch.js.map +1 -1
- package/dist/components/gov-grid-item.js +1 -1
- package/dist/components/gov-grid.js +1 -1
- package/dist/components/gov-icon.js +1 -1
- package/dist/components/gov-infobar.js +1 -1
- package/dist/components/gov-infobar.js.map +1 -1
- package/dist/components/gov-layout-column.js +1 -1
- package/dist/components/gov-layout.js +1 -1
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-message.js +1 -1
- package/dist/components/gov-modal.js +1 -1
- package/dist/components/gov-modal.js.map +1 -1
- package/dist/components/gov-nav-item.js +1 -1
- package/dist/components/gov-nav.js +1 -1
- package/dist/components/gov-pagination.js +1 -1
- package/dist/components/gov-prompt.js +1 -1
- package/dist/components/gov-side-nav-item.js +1 -1
- package/dist/components/gov-side-nav-item.js.map +1 -1
- package/dist/components/gov-side-nav.js +1 -1
- package/dist/components/gov-side-nav.js.map +1 -1
- package/dist/components/gov-skeleton.js +1 -1
- package/dist/components/gov-skeleton.js.map +1 -1
- package/dist/components/gov-spacer.js +1 -1
- package/dist/components/gov-statsbar-item.js +1 -1
- package/dist/components/gov-statsbar.js +1 -1
- package/dist/components/gov-stepper-item.js +1 -1
- package/dist/components/gov-stepper.js +1 -1
- package/dist/components/gov-tabs-item.js +1 -1
- package/dist/components/gov-tabs-item.js.map +1 -1
- package/dist/components/gov-tabs.js +1 -1
- package/dist/components/gov-tabs.js.map +1 -1
- package/dist/components/gov-tag.d.ts +11 -0
- package/dist/components/gov-tag.js +2 -0
- package/dist/components/gov-tag.js.map +1 -0
- package/dist/components/gov-tile.js +1 -1
- package/dist/components/gov-tile.js.map +1 -1
- package/dist/components/gov-tiles.js +1 -1
- package/dist/components/gov-toast.js +1 -1
- package/dist/components/gov-toast.js.map +1 -1
- package/dist/components/gov-tooltip-content.js +1 -1
- package/dist/components/gov-tooltip-content.js.map +1 -1
- package/dist/components/gov-tooltip.js +1 -1
- package/dist/components/gov-tooltip.js.map +1 -1
- package/dist/components/gov-wizard-item.js +1 -1
- package/dist/components/gov-wizard-item.js.map +1 -1
- package/dist/components/gov-wizard.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-b3cb7945.js → p-202b7b42.js} +2 -2
- package/dist/components/{p-1b4f2520.js → p-22cd88f7.js} +2 -2
- package/dist/components/p-28e59384.js +2 -0
- package/dist/components/p-28e59384.js.map +1 -0
- package/dist/components/p-2dee9951.js +2 -0
- package/dist/components/p-2dee9951.js.map +1 -0
- package/dist/components/{p-3dbf7f49.js → p-3c71d697.js} +1 -1
- package/dist/{cjs/constants-ff12205f.js.map → components/p-3c71d697.js.map} +1 -1
- package/dist/components/p-40b51fd3.js +2 -0
- package/dist/components/{p-522dd298.js.map → p-40b51fd3.js.map} +1 -1
- package/dist/components/p-53e02bee.js +2 -0
- package/dist/components/p-53e02bee.js.map +1 -0
- package/dist/components/{p-f72ecbef.js → p-71a4c88d.js} +2 -2
- package/dist/components/p-71a4c88d.js.map +1 -0
- package/dist/components/{p-bc5d5903.js → p-8b53e056.js} +2 -2
- package/dist/components/p-94bf1f51.js +2 -0
- package/dist/components/p-94bf1f51.js.map +1 -0
- package/dist/components/{p-8da17139.js → p-d60bcfde.js} +2 -2
- package/dist/components/p-db1f0452.js +2 -0
- package/dist/components/p-db1f0452.js.map +1 -0
- package/dist/components/{p-9ba6e755.js → p-ddf6db05.js} +2 -2
- package/dist/components/p-ddf6db05.js.map +1 -0
- package/dist/components/{p-94542a50.js → p-e196ff42.js} +2 -2
- package/dist/components/p-e196ff42.js.map +1 -0
- package/dist/components/{p-3e8a9e92.js → p-f2efd9b5.js} +2 -2
- package/dist/components/p-fa1e4aea.js +2 -0
- package/dist/components/p-fa1e4aea.js.map +1 -0
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-2bb9f781.entry.js → p-01d928c5.entry.js} +2 -2
- package/dist/core/{p-998c3336.entry.js → p-029beaf4.entry.js} +2 -2
- package/dist/core/p-05e4822a.entry.js +2 -0
- package/dist/core/p-05e4822a.entry.js.map +1 -0
- package/dist/core/p-09966eaa.entry.js +2 -0
- package/dist/core/p-09966eaa.entry.js.map +1 -0
- package/dist/core/p-0e5fa8bf.js +2 -0
- package/dist/core/p-0e5fa8bf.js.map +1 -0
- package/dist/core/{p-739dd451.entry.js → p-1116fec6.entry.js} +2 -2
- package/dist/core/{p-041d30b1.entry.js → p-141d9af4.entry.js} +2 -2
- package/dist/core/{p-e1780dba.entry.js → p-1730ac7a.entry.js} +2 -2
- package/dist/core/p-1a04e45e.entry.js +2 -0
- package/dist/core/p-1a04e45e.entry.js.map +1 -0
- package/dist/core/{p-88a78167.entry.js → p-2016172f.entry.js} +2 -2
- package/dist/core/{p-1c62f175.entry.js → p-22abe742.entry.js} +2 -2
- package/dist/core/{p-5316e768.entry.js → p-243b1ccc.entry.js} +2 -2
- package/dist/core/p-28e59384.js +2 -0
- package/dist/core/p-28e59384.js.map +1 -0
- package/dist/core/{p-e2d6efaf.entry.js → p-2a95f9fb.entry.js} +2 -2
- package/dist/core/{p-32a4b7e3.entry.js → p-2aef69ed.entry.js} +2 -2
- package/dist/core/p-2aef69ed.entry.js.map +1 -0
- package/dist/core/p-2bcabdd5.entry.js +2 -0
- package/dist/core/{p-2bf0c1c5.entry.js.map → p-2bcabdd5.entry.js.map} +1 -1
- package/dist/core/{p-33895061.entry.js → p-2c9a4d08.entry.js} +2 -2
- package/dist/core/{p-74ce7780.entry.js → p-2f858bf5.entry.js} +2 -2
- package/dist/core/p-2f858bf5.entry.js.map +1 -0
- package/dist/core/{p-89921159.entry.js → p-356adceb.entry.js} +2 -2
- package/dist/core/p-3b45ecb0.entry.js +2 -0
- package/dist/core/p-3b45ecb0.entry.js.map +1 -0
- package/dist/core/{p-2fe9d3ea.entry.js → p-44f4daa3.entry.js} +2 -2
- package/dist/core/p-461d28ed.entry.js +2 -0
- package/dist/core/p-461d28ed.entry.js.map +1 -0
- package/dist/core/{p-afa12399.entry.js → p-466f885b.entry.js} +2 -2
- package/dist/core/p-466f885b.entry.js.map +1 -0
- package/dist/core/p-47d63996.entry.js +2 -0
- package/dist/core/p-47d63996.entry.js.map +1 -0
- package/dist/core/p-4accef73.entry.js +2 -0
- package/dist/core/{p-7e8d2066.entry.js.map → p-4accef73.entry.js.map} +1 -1
- package/dist/core/{p-3bacd021.js → p-4c55142b.js} +1 -1
- package/dist/core/p-4c55142b.js.map +1 -0
- package/dist/core/{p-f62efc34.entry.js → p-53549fe4.entry.js} +2 -2
- package/dist/core/p-5bc604a3.js +3 -0
- package/dist/core/p-5bc604a3.js.map +1 -0
- package/dist/core/{p-6f43bd00.entry.js → p-6675a0f0.entry.js} +2 -2
- package/dist/core/{p-0eb11cfc.entry.js → p-67138ae9.entry.js} +2 -2
- package/dist/core/{p-19b897c0.entry.js → p-6833aeaf.entry.js} +2 -2
- package/dist/core/p-705efbf1.entry.js +2 -0
- package/dist/core/p-705efbf1.entry.js.map +1 -0
- package/dist/core/{p-1da9f871.entry.js → p-7757e4a1.entry.js} +2 -2
- package/dist/core/{p-0c57e410.entry.js → p-7b7f8cc2.entry.js} +2 -2
- package/dist/core/p-7b7f8cc2.entry.js.map +1 -0
- package/dist/core/{p-de5c9181.entry.js → p-7d85bc32.entry.js} +2 -2
- package/dist/core/{p-de5c9181.entry.js.map → p-7d85bc32.entry.js.map} +1 -1
- package/dist/core/{p-84f6b11a.entry.js → p-81593c86.entry.js} +2 -2
- package/dist/core/{p-84f6b11a.entry.js.map → p-81593c86.entry.js.map} +1 -1
- package/dist/core/{p-88010439.entry.js → p-877121d4.entry.js} +2 -2
- package/dist/core/p-87b5668e.entry.js +2 -0
- package/dist/core/p-87b5668e.entry.js.map +1 -0
- package/dist/core/{p-35c1c12c.entry.js → p-965f24fb.entry.js} +2 -2
- package/dist/core/p-965f24fb.entry.js.map +1 -0
- package/dist/core/{p-acd6a9f4.entry.js → p-9af6210d.entry.js} +2 -2
- package/dist/core/p-9af6210d.entry.js.map +1 -0
- package/dist/core/{p-93897e60.entry.js → p-9d4a6e9b.entry.js} +2 -2
- package/dist/core/{p-b0c97376.entry.js → p-a133cdda.entry.js} +2 -2
- package/dist/core/{p-7702c8c2.entry.js → p-a3b6c5c7.entry.js} +2 -2
- package/dist/core/{p-19a54ee9.entry.js → p-a54c1e85.entry.js} +2 -2
- package/dist/core/p-a54c1e85.entry.js.map +1 -0
- package/dist/core/{p-82b4b522.entry.js → p-a9493d11.entry.js} +2 -2
- package/dist/core/p-ae13fbbc.entry.js +2 -0
- package/dist/core/p-ae13fbbc.entry.js.map +1 -0
- package/dist/core/{p-7372b066.entry.js → p-b3840f50.entry.js} +2 -2
- package/dist/core/{p-228da18e.entry.js → p-b49293dc.entry.js} +2 -2
- package/dist/core/p-b49ac370.entry.js +2 -0
- package/dist/core/{p-4452c278.entry.js.map → p-b49ac370.entry.js.map} +1 -1
- package/dist/core/p-b946cd3f.entry.js +2 -0
- package/dist/core/p-b946cd3f.entry.js.map +1 -0
- package/dist/core/p-bd1855f7.entry.js +2 -0
- package/dist/core/{p-c5d3efc2.entry.js.map → p-bd1855f7.entry.js.map} +1 -1
- package/dist/core/{p-7fa1290e.entry.js → p-c0be9590.entry.js} +2 -2
- package/dist/core/{p-28f39f69.entry.js → p-c3e4700b.entry.js} +2 -2
- package/dist/core/p-c574ecc8.entry.js +2 -0
- package/dist/core/{p-5e23a6ba.entry.js.map → p-c574ecc8.entry.js.map} +1 -1
- package/dist/core/p-c5e9da95.entry.js +2 -0
- package/dist/core/p-c5e9da95.entry.js.map +1 -0
- package/dist/core/{p-a7719b55.entry.js → p-ce586e19.entry.js} +2 -2
- package/dist/core/{p-c81d62db.entry.js → p-d4c468b9.entry.js} +2 -2
- package/dist/core/p-db1f0452.js +2 -0
- package/dist/core/p-db1f0452.js.map +1 -0
- package/dist/core/{p-80f5140b.entry.js → p-e4f703d3.entry.js} +2 -2
- package/dist/core/{p-93042b25.entry.js → p-e5c2f601.entry.js} +2 -2
- package/dist/core/p-e9c0fac1.entry.js +2 -0
- package/dist/core/p-e9c0fac1.entry.js.map +1 -0
- package/dist/core/{p-1c40fdd5.entry.js → p-eb0c9716.entry.js} +2 -2
- package/dist/core/p-eb0c9716.entry.js.map +1 -0
- package/dist/core/p-f9f212a6.entry.js +2 -0
- package/dist/core/p-f9f212a6.entry.js.map +1 -0
- package/dist/core/p-fa1e4aea.js +2 -0
- package/dist/core/p-fa1e4aea.js.map +1 -0
- package/dist/core/p-fc2a1e14.entry.js +2 -0
- package/dist/core/p-fc2a1e14.entry.js.map +1 -0
- package/dist/esm/{constants-ba92640d.js → constants-34a29ae2.js} +1 -1
- package/dist/{components/p-3dbf7f49.js.map → esm/constants-34a29ae2.js.map} +1 -1
- package/dist/esm/{constants-24dad929.js → constants-6df4edc4.js} +2 -2
- package/dist/esm/constants-6df4edc4.js.map +1 -0
- package/dist/esm/{constants-f5c21493.js → constants-867ac6e2.js} +2 -2
- package/dist/esm/{constants-f5c21493.js.map → constants-867ac6e2.js.map} +1 -1
- package/dist/esm/core.js +26 -3
- package/dist/esm/core.js.map +1 -1
- package/dist/esm/{form-2d9f68d9.js → form-39dc6896.js} +3 -1
- package/dist/esm/form-39dc6896.js.map +1 -0
- package/dist/esm/gov-accordion-item.entry.js +2 -2
- package/dist/esm/gov-accordion-item.entry.js.map +1 -1
- package/dist/esm/gov-accordion.entry.js +2 -2
- package/dist/esm/gov-app.entry.js +797 -520
- package/dist/esm/gov-app.entry.js.map +1 -1
- package/dist/esm/gov-attachments_3.entry.js +2 -2
- package/dist/esm/gov-backdrop.entry.js +2 -2
- package/dist/esm/gov-breadcrumbs.entry.js +2 -2
- package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
- package/dist/esm/gov-button.entry.js +3 -3
- package/dist/esm/gov-button.entry.js.map +1 -1
- package/dist/esm/gov-card.entry.js +2 -2
- package/dist/esm/gov-card.entry.js.map +1 -1
- package/dist/esm/gov-chip.entry.js +98 -0
- package/dist/esm/gov-chip.entry.js.map +1 -0
- package/dist/esm/gov-container.entry.js +2 -2
- package/dist/esm/gov-control-group.entry.js +2 -2
- package/dist/esm/gov-cookiebar.entry.js +2 -2
- package/dist/esm/gov-dropdown.entry.js +3 -3
- package/dist/esm/gov-dropdown.entry.js.map +1 -1
- package/dist/esm/gov-empty.entry.js +2 -2
- package/dist/esm/gov-error-code.entry.js +2 -2
- package/dist/esm/gov-form-autocomplete.entry.js +2 -2
- package/dist/esm/gov-form-checkbox.entry.js +5 -5
- package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
- package/dist/esm/gov-form-control.entry.js +3 -3
- package/dist/esm/gov-form-file.entry.js +3 -3
- package/dist/esm/gov-form-group.entry.js +13 -4
- package/dist/esm/gov-form-group.entry.js.map +1 -1
- package/dist/esm/gov-form-input.entry.js +3 -3
- package/dist/esm/gov-form-input.entry.js.map +1 -1
- package/dist/esm/gov-form-label.entry.js +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +3 -3
- package/dist/esm/gov-form-password-power.entry.js +2 -2
- package/dist/esm/gov-form-password-power.entry.js.map +1 -1
- package/dist/esm/gov-form-radio.entry.js +7 -7
- package/dist/esm/gov-form-radio.entry.js.map +1 -1
- package/dist/esm/gov-form-search.entry.js +1 -1
- package/dist/esm/gov-form-search.entry.js.map +1 -1
- package/dist/esm/gov-form-select.entry.js +15 -4
- package/dist/esm/gov-form-select.entry.js.map +1 -1
- package/dist/esm/gov-form-switch.entry.js +4 -4
- package/dist/esm/gov-form-switch.entry.js.map +1 -1
- package/dist/esm/gov-grid-item.entry.js +2 -2
- package/dist/esm/gov-grid.entry.js +2 -2
- package/dist/esm/gov-icon.entry.js +4 -4
- package/dist/esm/gov-icon.entry.js.map +1 -1
- package/dist/esm/gov-infobar.entry.js +6 -5
- package/dist/esm/gov-infobar.entry.js.map +1 -1
- package/dist/esm/gov-layout-column.entry.js +2 -2
- package/dist/esm/gov-layout.entry.js +2 -2
- package/dist/esm/gov-loading.entry.js +2 -2
- package/dist/esm/gov-message.entry.js +2 -2
- package/dist/esm/gov-modal.entry.js +8 -5
- package/dist/esm/gov-modal.entry.js.map +1 -1
- package/dist/esm/gov-nav-item.entry.js +1 -1
- package/dist/esm/gov-nav.entry.js +1 -1
- package/dist/esm/gov-pagination.entry.js +2 -2
- package/dist/esm/gov-prompt.entry.js +2 -2
- package/dist/esm/gov-side-nav-item.entry.js +5 -5
- package/dist/esm/gov-side-nav-item.entry.js.map +1 -1
- package/dist/esm/gov-side-nav.entry.js +3 -3
- package/dist/esm/gov-skeleton.entry.js +2 -2
- package/dist/esm/gov-spacer.entry.js +2 -2
- package/dist/esm/gov-statsbar-item.entry.js +2 -2
- package/dist/esm/gov-statsbar.entry.js +2 -2
- package/dist/esm/gov-stepper-item.entry.js +2 -2
- package/dist/esm/gov-stepper.entry.js +2 -2
- package/dist/esm/gov-tabs-item.entry.js +6 -6
- package/dist/esm/gov-tabs-item.entry.js.map +1 -1
- package/dist/esm/gov-tabs.entry.js +26 -17
- package/dist/esm/gov-tabs.entry.js.map +1 -1
- package/dist/esm/gov-tag.entry.js +47 -0
- package/dist/esm/gov-tag.entry.js.map +1 -0
- package/dist/esm/gov-tile.entry.js +2 -2
- package/dist/esm/gov-tile.entry.js.map +1 -1
- package/dist/esm/gov-tiles.entry.js +2 -2
- package/dist/esm/gov-toast.entry.js +3 -3
- package/dist/esm/gov-toast.entry.js.map +1 -1
- package/dist/esm/gov-tooltip-content.entry.js +3 -3
- package/dist/esm/gov-tooltip-content.entry.js.map +1 -1
- package/dist/esm/gov-tooltip.entry.js +41 -6
- package/dist/esm/gov-tooltip.entry.js.map +1 -1
- package/dist/esm/gov-wizard-item.entry.js +2 -2
- package/dist/esm/gov-wizard-item.entry.js.map +1 -1
- package/dist/esm/gov-wizard.entry.js +2 -2
- package/dist/esm/{index-ae3c50f1.js → index-eb59f132.js} +145 -4
- package/dist/esm/index-eb59f132.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{template-10332292.js → template-df429738.js} +8 -1
- package/dist/esm/template-df429738.js.map +1 -0
- package/dist/hydrate/index.js +1406 -978
- package/dist/stencil.config.js +2 -1
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +1 -1
- package/dist/types/components/gov-app/gov-app.d.ts +3 -2
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +1 -1
- package/dist/types/components/gov-button/{default → button}/gov-button.d.ts +1 -1
- package/dist/types/components/gov-card/gov-card.d.ts +1 -1
- package/dist/types/components/{gov-badge → gov-chip}/constants.d.ts +1 -1
- package/dist/types/components/{gov-badge/gov-badge.d.ts → gov-chip/gov-chip.d.ts} +34 -7
- package/dist/types/components/gov-form/checkbox/constants.d.ts +1 -0
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +1 -1
- package/dist/types/components/gov-form/group/gov-form-group.d.ts +2 -1
- package/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +2 -2
- package/dist/types/components/gov-form/radio/constants.d.ts +1 -0
- package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +1 -1
- package/dist/types/components/gov-form/select/gov-form-select.d.ts +6 -1
- package/dist/types/components/gov-form/select/gov-form-select.types.d.ts +5 -0
- package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +1 -1
- package/dist/types/components/gov-icon/gov-icon.d.ts +2 -3
- package/dist/types/components/gov-infobar/{default/constants.d.ts → constants.d.ts} +3 -2
- package/dist/types/components/gov-infobar/{default/gov-infobar.d.ts → gov-infobar.d.ts} +2 -2
- package/dist/types/components/gov-infobar/{default/gov-infobar.types.d.ts → gov-infobar.types.d.ts} +1 -1
- package/dist/types/components/gov-modal/gov-modal.d.ts +4 -0
- package/dist/types/components/gov-side-nav/constants.d.ts +1 -1
- package/dist/types/components/gov-side-nav/gov-side-nav-item.d.ts +1 -1
- package/dist/types/components/gov-tabs/constants.d.ts +1 -1
- package/dist/types/components/gov-tabs/gov-tabs-item.d.ts +1 -1
- package/dist/types/components/gov-tabs/gov-tabs.d.ts +5 -6
- package/dist/types/components/gov-tag/constants.d.ts +3 -0
- package/dist/types/components/gov-tag/gov-tag.d.ts +22 -0
- package/dist/types/components/gov-tile/gov-tile.d.ts +1 -1
- package/dist/types/components/gov-wizard/gov-wizard-item.d.ts +1 -1
- package/dist/types/components.d.ts +224 -133
- package/dist/types/helpers/Dom/template.types.d.ts +1 -0
- package/dist/types/pages/Chip.d.ts +3 -0
- package/dist/types/pages/Tag.d.ts +3 -0
- package/package.json +3 -3
- package/dist/cjs/constants-23b7a283.js.map +0 -1
- package/dist/cjs/form-f68d13c6.js.map +0 -1
- package/dist/cjs/gov-badge.cjs.entry.js +0 -84
- package/dist/cjs/gov-badge.cjs.entry.js.map +0 -1
- package/dist/cjs/index-83edd4fe.js.map +0 -1
- package/dist/cjs/template-e1c4ff78.js.map +0 -1
- package/dist/collection/components/gov-badge/constants.js.map +0 -1
- package/dist/collection/components/gov-badge/gov-badge.css +0 -1267
- package/dist/collection/components/gov-badge/gov-badge.js.map +0 -1
- package/dist/collection/components/gov-button/default/gov-button.js.map +0 -1
- package/dist/collection/components/gov-button/default/gov-button.types.js.map +0 -1
- package/dist/collection/components/gov-infobar/default/constants.js.map +0 -1
- package/dist/collection/components/gov-infobar/default/gov-infobar.js.map +0 -1
- package/dist/collection/components/gov-infobar/default/gov-infobar.types.js.map +0 -1
- package/dist/collection/pages/Badge.js.map +0 -1
- package/dist/components/gov-badge.js +0 -2
- package/dist/components/p-17c1ffc1.js +0 -2
- package/dist/components/p-17c1ffc1.js.map +0 -1
- package/dist/components/p-36be8f6e.js +0 -2
- package/dist/components/p-36be8f6e.js.map +0 -1
- package/dist/components/p-3f37ddb6.js +0 -2
- package/dist/components/p-3f37ddb6.js.map +0 -1
- package/dist/components/p-522dd298.js +0 -2
- package/dist/components/p-80c0109d.js +0 -2
- package/dist/components/p-80c0109d.js.map +0 -1
- package/dist/components/p-80e30702.js +0 -2
- package/dist/components/p-80e30702.js.map +0 -1
- package/dist/components/p-8d44ca3c.js +0 -2
- package/dist/components/p-8d44ca3c.js.map +0 -1
- package/dist/components/p-94542a50.js.map +0 -1
- package/dist/components/p-9ba6e755.js.map +0 -1
- package/dist/components/p-f72ecbef.js.map +0 -1
- package/dist/core/p-0553eb92.entry.js +0 -2
- package/dist/core/p-0553eb92.entry.js.map +0 -1
- package/dist/core/p-06699657.entry.js +0 -2
- package/dist/core/p-06699657.entry.js.map +0 -1
- package/dist/core/p-0c57e410.entry.js.map +0 -1
- package/dist/core/p-10cbc3fe.js +0 -3
- package/dist/core/p-10cbc3fe.js.map +0 -1
- package/dist/core/p-19a54ee9.entry.js.map +0 -1
- package/dist/core/p-1c40fdd5.entry.js.map +0 -1
- package/dist/core/p-2bf0c1c5.entry.js +0 -2
- package/dist/core/p-32a4b7e3.entry.js.map +0 -1
- package/dist/core/p-34ed07f6.js +0 -2
- package/dist/core/p-34ed07f6.js.map +0 -1
- package/dist/core/p-35c1c12c.entry.js.map +0 -1
- package/dist/core/p-36be8f6e.js +0 -2
- package/dist/core/p-36be8f6e.js.map +0 -1
- package/dist/core/p-3bacd021.js.map +0 -1
- package/dist/core/p-3f37ddb6.js +0 -2
- package/dist/core/p-3f37ddb6.js.map +0 -1
- package/dist/core/p-4452c278.entry.js +0 -2
- package/dist/core/p-49926f53.entry.js +0 -2
- package/dist/core/p-49926f53.entry.js.map +0 -1
- package/dist/core/p-5cc3e768.entry.js +0 -2
- package/dist/core/p-5cc3e768.entry.js.map +0 -1
- package/dist/core/p-5e23a6ba.entry.js +0 -2
- package/dist/core/p-74ce7780.entry.js.map +0 -1
- package/dist/core/p-7e8d2066.entry.js +0 -2
- package/dist/core/p-80e30702.js +0 -2
- package/dist/core/p-80e30702.js.map +0 -1
- package/dist/core/p-9633e7b5.entry.js +0 -2
- package/dist/core/p-9633e7b5.entry.js.map +0 -1
- package/dist/core/p-acd6a9f4.entry.js.map +0 -1
- package/dist/core/p-afa12399.entry.js.map +0 -1
- package/dist/core/p-bc6f1479.entry.js +0 -2
- package/dist/core/p-bc6f1479.entry.js.map +0 -1
- package/dist/core/p-bcf71ab5.entry.js +0 -2
- package/dist/core/p-bcf71ab5.entry.js.map +0 -1
- package/dist/core/p-c4c9ff83.entry.js +0 -2
- package/dist/core/p-c4c9ff83.entry.js.map +0 -1
- package/dist/core/p-c5d3efc2.entry.js +0 -2
- package/dist/core/p-c61444f7.entry.js +0 -2
- package/dist/core/p-c61444f7.entry.js.map +0 -1
- package/dist/core/p-d84b290e.entry.js +0 -2
- package/dist/core/p-d84b290e.entry.js.map +0 -1
- package/dist/core/p-da762184.entry.js +0 -2
- package/dist/core/p-da762184.entry.js.map +0 -1
- package/dist/core/p-e5227e40.entry.js +0 -2
- package/dist/core/p-e5227e40.entry.js.map +0 -1
- package/dist/core/p-fab698a7.entry.js +0 -2
- package/dist/core/p-fab698a7.entry.js.map +0 -1
- package/dist/esm/constants-24dad929.js.map +0 -1
- package/dist/esm/constants-ba92640d.js.map +0 -1
- package/dist/esm/form-2d9f68d9.js.map +0 -1
- package/dist/esm/gov-badge.entry.js +0 -80
- package/dist/esm/gov-badge.entry.js.map +0 -1
- package/dist/esm/index-ae3c50f1.js.map +0 -1
- package/dist/esm/template-10332292.js.map +0 -1
- package/dist/types/pages/Badge.d.ts +0 -3
- /package/dist/collection/components/gov-button/{default → button}/constants.js +0 -0
- /package/dist/collection/components/gov-button/{default → button}/gov-button.types.js +0 -0
- /package/dist/collection/components/gov-infobar/{default/gov-infobar.types.js → gov-infobar.types.js} +0 -0
- /package/dist/components/{gov-badge.js.map → gov-chip.js.map} +0 -0
- /package/dist/components/{p-b3cb7945.js.map → p-202b7b42.js.map} +0 -0
- /package/dist/components/{p-1b4f2520.js.map → p-22cd88f7.js.map} +0 -0
- /package/dist/components/{p-bc5d5903.js.map → p-8b53e056.js.map} +0 -0
- /package/dist/components/{p-8da17139.js.map → p-d60bcfde.js.map} +0 -0
- /package/dist/components/{p-3e8a9e92.js.map → p-f2efd9b5.js.map} +0 -0
- /package/dist/core/{p-2bb9f781.entry.js.map → p-01d928c5.entry.js.map} +0 -0
- /package/dist/core/{p-998c3336.entry.js.map → p-029beaf4.entry.js.map} +0 -0
- /package/dist/core/{p-739dd451.entry.js.map → p-1116fec6.entry.js.map} +0 -0
- /package/dist/core/{p-041d30b1.entry.js.map → p-141d9af4.entry.js.map} +0 -0
- /package/dist/core/{p-e1780dba.entry.js.map → p-1730ac7a.entry.js.map} +0 -0
- /package/dist/core/{p-88a78167.entry.js.map → p-2016172f.entry.js.map} +0 -0
- /package/dist/core/{p-1c62f175.entry.js.map → p-22abe742.entry.js.map} +0 -0
- /package/dist/core/{p-5316e768.entry.js.map → p-243b1ccc.entry.js.map} +0 -0
- /package/dist/core/{p-e2d6efaf.entry.js.map → p-2a95f9fb.entry.js.map} +0 -0
- /package/dist/core/{p-33895061.entry.js.map → p-2c9a4d08.entry.js.map} +0 -0
- /package/dist/core/{p-89921159.entry.js.map → p-356adceb.entry.js.map} +0 -0
- /package/dist/core/{p-2fe9d3ea.entry.js.map → p-44f4daa3.entry.js.map} +0 -0
- /package/dist/core/{p-f62efc34.entry.js.map → p-53549fe4.entry.js.map} +0 -0
- /package/dist/core/{p-6f43bd00.entry.js.map → p-6675a0f0.entry.js.map} +0 -0
- /package/dist/core/{p-0eb11cfc.entry.js.map → p-67138ae9.entry.js.map} +0 -0
- /package/dist/core/{p-19b897c0.entry.js.map → p-6833aeaf.entry.js.map} +0 -0
- /package/dist/core/{p-1da9f871.entry.js.map → p-7757e4a1.entry.js.map} +0 -0
- /package/dist/core/{p-88010439.entry.js.map → p-877121d4.entry.js.map} +0 -0
- /package/dist/core/{p-93897e60.entry.js.map → p-9d4a6e9b.entry.js.map} +0 -0
- /package/dist/core/{p-b0c97376.entry.js.map → p-a133cdda.entry.js.map} +0 -0
- /package/dist/core/{p-7702c8c2.entry.js.map → p-a3b6c5c7.entry.js.map} +0 -0
- /package/dist/core/{p-82b4b522.entry.js.map → p-a9493d11.entry.js.map} +0 -0
- /package/dist/core/{p-7372b066.entry.js.map → p-b3840f50.entry.js.map} +0 -0
- /package/dist/core/{p-228da18e.entry.js.map → p-b49293dc.entry.js.map} +0 -0
- /package/dist/core/{p-7fa1290e.entry.js.map → p-c0be9590.entry.js.map} +0 -0
- /package/dist/core/{p-28f39f69.entry.js.map → p-c3e4700b.entry.js.map} +0 -0
- /package/dist/core/{p-a7719b55.entry.js.map → p-ce586e19.entry.js.map} +0 -0
- /package/dist/core/{p-c81d62db.entry.js.map → p-d4c468b9.entry.js.map} +0 -0
- /package/dist/core/{p-80f5140b.entry.js.map → p-e4f703d3.entry.js.map} +0 -0
- /package/dist/core/{p-93042b25.entry.js.map → p-e5c2f601.entry.js.map} +0 -0
- /package/dist/types/components/gov-button/{default → button}/constants.d.ts +0 -0
- /package/dist/types/components/gov-button/{default → button}/gov-button.types.d.ts +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { validateProp } from "
|
|
2
|
+
import { validateProp } from "../../helpers/Validate/props";
|
|
3
3
|
import { InfobarClass, InfobarVariants } from "./constants";
|
|
4
|
-
import { govHost, toBoolAttr } from "
|
|
5
|
-
import Fragment from "
|
|
6
|
-
import { validateWcagProp } from "
|
|
7
|
-
import { canValidateWcagOnRender } from "
|
|
8
|
-
import { delay } from "
|
|
4
|
+
import { govHost, toBoolAttr } from "../../helpers/Dom/template";
|
|
5
|
+
import Fragment from "../../helpers/Fragment";
|
|
6
|
+
import { validateWcagProp } from "../../helpers/Validate/wcag";
|
|
7
|
+
import { canValidateWcagOnRender } from "../../helpers/Dom/win";
|
|
8
|
+
import { delay } from "../../utils/utils";
|
|
9
9
|
export class GovInfobar {
|
|
10
10
|
constructor() {
|
|
11
11
|
this.headline = undefined;
|
|
12
12
|
this.variant = "primary";
|
|
13
13
|
this.inverse = false;
|
|
14
14
|
this.wcagCloseLabel = undefined;
|
|
15
|
-
this.wcagToggleLabel =
|
|
15
|
+
this.wcagToggleLabel = 'Zobrazit více informací';
|
|
16
16
|
this.closable = false;
|
|
17
17
|
this.toggleContent = false;
|
|
18
18
|
this.h = govHost(this.host);
|
|
@@ -37,7 +37,7 @@ export class GovInfobar {
|
|
|
37
37
|
variant = "secondary";
|
|
38
38
|
}
|
|
39
39
|
const closeButton = (h("div", { class: InfobarClass.close }, h("gov-button", { size: "s", "aria-label": this.wcagCloseLabel, type: "base", variant: variant, inverse: inverse, "on-gov-click": this.onCloseHandler.bind(this) }, h("gov-icon", { name: "x-lg" }))));
|
|
40
|
-
return (h(Host, { class: this.h.classes(InfobarClass.root), variant: this.variant }, h("section", { class: InfobarClass.section, role: "infobar" }, this.h.hasSlot("icon") && (h("div", { class: InfobarClass.icon }, h("slot", { name: "icon" }))), h("div", { class: InfobarClass.content }, this.headline ? (h(Fragment, null, h("div", { class: InfobarClass.headline }, h("p", null, this.headline), h("gov-button", { size: "s", "aria-label": this.wcagToggleLabel, type: "base", variant: variant, inverse: inverse, "on-gov-click": () => this.toggleContent = !this.toggleContent }, h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down' }))), h("div", { hidden: !this.toggleContent, "aria-hidden": toBoolAttr(this.toggleContent) }, h("slot", null)))) : (h("slot", null)))), this.closable && closeButton));
|
|
40
|
+
return (h(Host, { class: this.h.classes(InfobarClass.root), variant: this.variant }, h("section", { class: InfobarClass.section, role: "infobar" }, this.h.hasSlot("icon") && (h("div", { class: InfobarClass.icon }, h("slot", { name: "icon" }))), h("div", { class: InfobarClass.content + (this.closable ? ' ' + InfobarClass.closable : '') }, this.headline ? (h(Fragment, null, h("div", { class: InfobarClass.headline }, h("p", null, this.headline), h("gov-button", { size: "s", "aria-label": this.wcagToggleLabel, type: "base", variant: variant, inverse: inverse, "on-gov-click": () => this.toggleContent = !this.toggleContent }, h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down' }))), h("div", { hidden: !this.toggleContent, "aria-hidden": toBoolAttr(this.toggleContent) }, h("slot", null)))) : (h("slot", null)))), this.closable && closeButton));
|
|
41
41
|
}
|
|
42
42
|
onCloseHandler(e) {
|
|
43
43
|
this.govClose.emit({
|
|
@@ -97,7 +97,7 @@ export class GovInfobar {
|
|
|
97
97
|
"VariantType": {
|
|
98
98
|
"location": "import",
|
|
99
99
|
"path": "./constants",
|
|
100
|
-
"id": "../../../packages/core/src/components/gov-infobar/
|
|
100
|
+
"id": "../../../packages/core/src/components/gov-infobar/constants.ts::VariantType"
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
},
|
|
@@ -161,7 +161,8 @@ export class GovInfobar {
|
|
|
161
161
|
"text": "Aria label for the toggle button. It is mandatory if the infobar has headline"
|
|
162
162
|
},
|
|
163
163
|
"attribute": "wcag-toggle-label",
|
|
164
|
-
"reflect": false
|
|
164
|
+
"reflect": false,
|
|
165
|
+
"defaultValue": "'Zobrazit v\u00EDce informac\u00ED'"
|
|
165
166
|
},
|
|
166
167
|
"closable": {
|
|
167
168
|
"type": "boolean",
|
|
@@ -206,7 +207,7 @@ export class GovInfobar {
|
|
|
206
207
|
"InfobarEvent": {
|
|
207
208
|
"location": "import",
|
|
208
209
|
"path": "./gov-infobar.types",
|
|
209
|
-
"id": "../../../packages/core/src/components/gov-infobar/
|
|
210
|
+
"id": "../../../packages/core/src/components/gov-infobar/gov-infobar.types.ts::InfobarEvent"
|
|
210
211
|
}
|
|
211
212
|
}
|
|
212
213
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gov-infobar.js","sourceRoot":"","sources":["../../../../../../src/components/gov-infobar/gov-infobar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAA;AACzD,OAAO,EAAC,YAAY,EAAE,eAAe,EAAc,MAAM,aAAa,CAAA;AACtE,OAAO,EAAC,OAAO,EAAE,UAAU,EAAC,MAAM,4BAA4B,CAAA;AAI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ACT,IAAI,CAAC,QAAQ,IAAI,WAAW,CACxB,CACR,CAAA;EACH,CAAC;EAED,cAAc,CAAC,CAA2B;IACxC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;MACjB,SAAS,EAAE,YAAY,CAAC,IAAI;MAC5B,GAAG,EAAE,IAAI,CAAC,IAAI;MACd,aAAa,EAAE,CAAC;KACjB,CAAC,CAAA;EACJ,CAAC;EAED;;KAEG;EAEH,KAAK,CAAC,YAAY;IAChB,IAAI,IAAI,CAAC,QAAQ,EAAE;MACjB,gBAAgB,CAAC,IAAI,CAAC,cAAc,EAAE,kBAAkB,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;KAC7E;IACD,IAAI,IAAI,CAAC,QAAQ,EAAE;MACjB,gBAAgB,CAAC,IAAI,CAAC,eAAe,EAAE,mBAAmB,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;KAC/E;EACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {InfobarClass, InfobarVariants, VariantType} from \"./constants\"\nimport {govHost, toBoolAttr} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {InfobarEvent} from \"./gov-infobar.types\"\nimport {ButtonEvent} from \"../gov-button/button/gov-button.types\"\nimport Fragment from \"../../helpers/Fragment\"\nimport {validateWcagProp} from \"../../helpers/Validate/wcag\"\nimport {canValidateWcagOnRender} from \"../../helpers/Dom/win\"\nimport {delay} from \"../../utils/utils\"\n\n@Component({\n tag: \"gov-infobar\",\n styleUrl: \"gov-infobar.scss\",\n})\nexport class GovInfobar {\n private h: GovHost\n\n constructor() {\n this.h = govHost(this.host)\n }\n\n @Element() host: HTMLGovInfobarElement\n\n /**\n * Style variation of the button.\n */\n @Prop() readonly headline: string\n /**\n * Style variation of the button.\n */\n @Prop() readonly variant: VariantType = \"primary\"\n /**\n * Determine if component should have inverse colors to be used on dark background\n */\n @Prop() readonly inverse: boolean = false\n /**\n * Aria label for the closing button. It is mandatory if the infobar is closable\n */\n @Prop({attribute: \"wcag-close-label\"}) readonly wcagCloseLabel: string\n /**\n * Aria label for the toggle button. It is mandatory if the infobar has headline\n */\n @Prop({attribute: \"wcag-toggle-label\"}) readonly wcagToggleLabel: string = 'Zobrazit více informací'\n /**\n * Called when the close button is clicked\n */\n @Event({eventName: \"gov-close\"}) govClose: EventEmitter<InfobarEvent>\n /**\n * Displays the option to close the infobar\n */\n @Prop() readonly closable?: boolean = false\n\n @State() toggleContent = false\n\n @Watch(\"variant\")\n validateVariant(newValue: string): void {\n validateProp(InfobarVariants, newValue, InfobarClass.root)\n }\n\n componentWillLoad(): void {\n this.validateVariant(this.variant)\n }\n\n async componentDidRender() {\n if (canValidateWcagOnRender()) {\n await delay(500)\n await this.validateWcag()\n }\n }\n\n render() {\n let inverse = !this.inverse\n let variant = this.inverse ? \"secondary\" : this.variant\n\n if (this.variant == \"warning\") {\n inverse = false\n variant = \"secondary\"\n }\n\n const closeButton = (\n <div class={InfobarClass.close}>\n <gov-button\n size=\"s\"\n aria-label={this.wcagCloseLabel}\n type=\"base\"\n variant={variant}\n inverse={inverse}\n on-gov-click={this.onCloseHandler.bind(this)}\n >\n <gov-icon name=\"x-lg\"></gov-icon>\n </gov-button>\n </div>\n )\n\n return (\n <Host class={this.h.classes(InfobarClass.root)} variant={this.variant}>\n <section class={InfobarClass.section} role=\"infobar\">\n {this.h.hasSlot(\"icon\") && (\n <div class={InfobarClass.icon}>\n <slot name=\"icon\"/>\n </div>\n )}\n <div class={InfobarClass.content + (this.closable ? ' ' + InfobarClass.closable : '')}>\n {this.headline ? (\n <Fragment>\n <div class={InfobarClass.headline}>\n <p>{this.headline}</p>\n <gov-button\n size=\"s\"\n aria-label={this.wcagToggleLabel}\n type=\"base\"\n variant={variant}\n inverse={inverse}\n on-gov-click={() => this.toggleContent = !this.toggleContent}\n >\n <gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'}></gov-icon>\n </gov-button>\n </div>\n <div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n <slot/>\n </div>\n </Fragment>\n ) : (\n <slot/>\n )}\n </div>\n </section>\n {this.closable && closeButton}\n </Host>\n )\n }\n\n onCloseHandler(e: CustomEvent<ButtonEvent>) {\n this.govClose.emit({\n component: InfobarClass.root,\n ref: this.host,\n originalEvent: e,\n })\n }\n\n /**\n * Validate the WCAG attributes of the component\n */\n @Method()\n async validateWcag(): Promise<void> {\n if (this.closable) {\n validateWcagProp(this.wcagCloseLabel, 'wcag-close-label', InfobarClass.root)\n }\n if (this.headline) {\n validateWcagProp(this.wcagToggleLabel, 'wcag-toggle-label', InfobarClass.root)\n }\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gov-infobar.types.js","sourceRoot":"","sources":["../../../../../../src/components/gov-infobar/gov-infobar.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../types/event.types\"\n\nexport interface InfobarEvent extends GovBaseEvent {\n\tref: HTMLGovInfobarElement\n}\n\n"]}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/* stylelint-disable order/order */
|
|
40
40
|
/* stylelint-enable order/order */
|
|
41
41
|
/**
|
|
42
|
-
* Generates CSS3 var with
|
|
42
|
+
* Generates CSS3 var with button value
|
|
43
43
|
*/
|
|
44
44
|
/*
|
|
45
45
|
- Variables - General
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
- Variables - Backdrop
|
|
71
71
|
*/
|
|
72
72
|
/*
|
|
73
|
-
- Variables - Buttons (&&
|
|
73
|
+
- Variables - Buttons (&& Chips)
|
|
74
74
|
*/
|
|
75
75
|
/*
|
|
76
76
|
- Variables - Breadcrumbs
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
/*
|
|
191
191
|
- Variables - Layout
|
|
192
192
|
*/
|
|
193
|
+
/*
|
|
194
|
+
- Variables - Tag
|
|
195
|
+
*/
|
|
193
196
|
.gov-spin-animation,
|
|
194
197
|
.gov-pseudo-spin-animation::before {
|
|
195
198
|
animation: spin 4s linear infinite;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/* stylelint-disable order/order */
|
|
40
40
|
/* stylelint-enable order/order */
|
|
41
41
|
/**
|
|
42
|
-
* Generates CSS3 var with
|
|
42
|
+
* Generates CSS3 var with button value
|
|
43
43
|
*/
|
|
44
44
|
/*
|
|
45
45
|
- Variables - General
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
- Variables - Backdrop
|
|
71
71
|
*/
|
|
72
72
|
/*
|
|
73
|
-
- Variables - Buttons (&&
|
|
73
|
+
- Variables - Buttons (&& Chips)
|
|
74
74
|
*/
|
|
75
75
|
/*
|
|
76
76
|
- Variables - Breadcrumbs
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
/*
|
|
191
191
|
- Variables - Layout
|
|
192
192
|
*/
|
|
193
|
+
/*
|
|
194
|
+
- Variables - Tag
|
|
195
|
+
*/
|
|
193
196
|
.gov-spin-animation,
|
|
194
197
|
.gov-pseudo-spin-animation::before {
|
|
195
198
|
animation: spin 4s linear infinite;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/* stylelint-disable order/order */
|
|
40
40
|
/* stylelint-enable order/order */
|
|
41
41
|
/**
|
|
42
|
-
* Generates CSS3 var with
|
|
42
|
+
* Generates CSS3 var with button value
|
|
43
43
|
*/
|
|
44
44
|
/*
|
|
45
45
|
- Variables - General
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
- Variables - Backdrop
|
|
71
71
|
*/
|
|
72
72
|
/*
|
|
73
|
-
- Variables - Buttons (&&
|
|
73
|
+
- Variables - Buttons (&& Chips)
|
|
74
74
|
*/
|
|
75
75
|
/*
|
|
76
76
|
- Variables - Breadcrumbs
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
/*
|
|
191
191
|
- Variables - Layout
|
|
192
192
|
*/
|
|
193
|
+
/*
|
|
194
|
+
- Variables - Tag
|
|
195
|
+
*/
|
|
193
196
|
.gov-spin-animation,
|
|
194
197
|
.gov-pseudo-spin-animation::before {
|
|
195
198
|
animation: spin 4s linear infinite;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/* stylelint-disable order/order */
|
|
40
40
|
/* stylelint-enable order/order */
|
|
41
41
|
/**
|
|
42
|
-
* Generates CSS3 var with
|
|
42
|
+
* Generates CSS3 var with button value
|
|
43
43
|
*/
|
|
44
44
|
/*
|
|
45
45
|
- Variables - General
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
- Variables - Backdrop
|
|
71
71
|
*/
|
|
72
72
|
/*
|
|
73
|
-
- Variables - Buttons (&&
|
|
73
|
+
- Variables - Buttons (&& Chips)
|
|
74
74
|
*/
|
|
75
75
|
/*
|
|
76
76
|
- Variables - Breadcrumbs
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
/*
|
|
191
191
|
- Variables - Layout
|
|
192
192
|
*/
|
|
193
|
+
/*
|
|
194
|
+
- Variables - Tag
|
|
195
|
+
*/
|
|
193
196
|
.gov-spin-animation,
|
|
194
197
|
.gov-pseudo-spin-animation::before {
|
|
195
198
|
animation: spin 4s linear infinite;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/* stylelint-disable order/order */
|
|
40
40
|
/* stylelint-enable order/order */
|
|
41
41
|
/**
|
|
42
|
-
* Generates CSS3 var with
|
|
42
|
+
* Generates CSS3 var with button value
|
|
43
43
|
*/
|
|
44
44
|
/*
|
|
45
45
|
- Variables - General
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
- Variables - Backdrop
|
|
71
71
|
*/
|
|
72
72
|
/*
|
|
73
|
-
- Variables - Buttons (&&
|
|
73
|
+
- Variables - Buttons (&& Chips)
|
|
74
74
|
*/
|
|
75
75
|
/*
|
|
76
76
|
- Variables - Breadcrumbs
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
/*
|
|
191
191
|
- Variables - Layout
|
|
192
192
|
*/
|
|
193
|
+
/*
|
|
194
|
+
- Variables - Tag
|
|
195
|
+
*/
|
|
193
196
|
.gov-spin-animation,
|
|
194
197
|
.gov-pseudo-spin-animation::before {
|
|
195
198
|
animation: spin 4s linear infinite;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/* stylelint-disable order/order */
|
|
40
40
|
/* stylelint-enable order/order */
|
|
41
41
|
/**
|
|
42
|
-
* Generates CSS3 var with
|
|
42
|
+
* Generates CSS3 var with button value
|
|
43
43
|
*/
|
|
44
44
|
/*
|
|
45
45
|
- Variables - General
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
- Variables - Backdrop
|
|
71
71
|
*/
|
|
72
72
|
/*
|
|
73
|
-
- Variables - Buttons (&&
|
|
73
|
+
- Variables - Buttons (&& Chips)
|
|
74
74
|
*/
|
|
75
75
|
/*
|
|
76
76
|
- Variables - Breadcrumbs
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
/*
|
|
191
191
|
- Variables - Layout
|
|
192
192
|
*/
|
|
193
|
+
/*
|
|
194
|
+
- Variables - Tag
|
|
195
|
+
*/
|
|
193
196
|
.gov-spin-animation,
|
|
194
197
|
.gov-pseudo-spin-animation::before {
|
|
195
198
|
animation: spin 4s linear infinite;
|
|
@@ -9,6 +9,7 @@ import { ModalClass } from "./constants";
|
|
|
9
9
|
export class GovModal {
|
|
10
10
|
constructor() {
|
|
11
11
|
this.open = false;
|
|
12
|
+
this.blockClose = false;
|
|
12
13
|
this.label = undefined;
|
|
13
14
|
this.role = "dialog";
|
|
14
15
|
this.labelTag = "h2";
|
|
@@ -55,12 +56,14 @@ export class GovModal {
|
|
|
55
56
|
}
|
|
56
57
|
render() {
|
|
57
58
|
const LabelTag = this.labelTag;
|
|
58
|
-
return (h(Host, { class: this.h.classes(ModalClass.root), open: this.open }, h("dialog", { class: ModalClass.dialog, hidden: !this.open, tabindex: "-1", open: this.open, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.open), "aria-labelledby": this.wcagLabelledBy || this.labelId, "aria-describedby": this.wcagDescribedBy || this.contentId, role: this.role }, h("div", { class: ModalClass.inner }, h("div", { class: ModalClass.header }, this.h.hasSlot("icon") && (h("div", { class: ModalClass.icon }, h("slot", { name: "icon" }))), this.label && (h(LabelTag, { class: ModalClass.title, id: this.labelId }, this.label)), h("gov-button", { class: ModalClass.close, variant: "primary", wcagLabel: this.wcagCloseLabel, wcagLabelledBy: this.wcagCloseLabelledBy, type: "base", "on-gov-click": this.onCloseHandler.bind(this) }, h("gov-icon", { name: "x-lg" }))), h("div", { class: ModalClass.content, id: this.contentId }, h("slot", null)), this.h.hasSlot("footer") && (h("div", { class: ModalClass.footer }, h("slot", { name: "footer" }))))), this.open ? (h("gov-backdrop", { "wcag-label": this.wcagCloseLabel, "wcag-labelled-by": this.wcagCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })) : null));
|
|
59
|
+
return (h(Host, { class: this.h.classes(ModalClass.root), open: this.open }, h("dialog", { class: ModalClass.dialog, hidden: !this.open, tabindex: "-1", open: this.open, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.open), "aria-labelledby": this.wcagLabelledBy || this.labelId, "aria-describedby": this.wcagDescribedBy || this.contentId, role: this.role }, h("div", { class: ModalClass.inner }, h("div", { class: ModalClass.header }, this.h.hasSlot("icon") && (h("div", { class: ModalClass.icon }, h("slot", { name: "icon" }))), this.label && (h(LabelTag, { class: ModalClass.title, id: this.labelId }, this.label)), h("gov-button", { disabled: this.blockClose, class: ModalClass.close, variant: "primary", wcagLabel: this.wcagCloseLabel, wcagLabelledBy: this.wcagCloseLabelledBy, type: "base", "on-gov-click": this.onCloseHandler.bind(this) }, h("gov-icon", { name: "x-lg" }))), h("div", { class: ModalClass.content, id: this.contentId }, h("slot", null)), this.h.hasSlot("footer") && (h("div", { class: ModalClass.footer }, h("slot", { name: "footer" }))))), this.open ? (h("gov-backdrop", { "wcag-label": this.wcagCloseLabel, "wcag-labelled-by": this.wcagCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })) : null));
|
|
59
60
|
}
|
|
60
61
|
onCloseHandler(e) {
|
|
61
62
|
e.stopPropagation();
|
|
62
|
-
this.
|
|
63
|
-
|
|
63
|
+
if (this.blockClose === false) {
|
|
64
|
+
this.hideModal();
|
|
65
|
+
this.govClose.emit(e);
|
|
66
|
+
}
|
|
64
67
|
}
|
|
65
68
|
/**
|
|
66
69
|
* Showing the modal
|
|
@@ -112,6 +115,24 @@ export class GovModal {
|
|
|
112
115
|
"reflect": false,
|
|
113
116
|
"defaultValue": "false"
|
|
114
117
|
},
|
|
118
|
+
"blockClose": {
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"mutable": false,
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "boolean",
|
|
123
|
+
"resolved": "boolean",
|
|
124
|
+
"references": {}
|
|
125
|
+
},
|
|
126
|
+
"required": false,
|
|
127
|
+
"optional": false,
|
|
128
|
+
"docs": {
|
|
129
|
+
"tags": [],
|
|
130
|
+
"text": "Attribute allowing blocking the modal closing"
|
|
131
|
+
},
|
|
132
|
+
"attribute": "block-close",
|
|
133
|
+
"reflect": false,
|
|
134
|
+
"defaultValue": "false"
|
|
135
|
+
},
|
|
115
136
|
"label": {
|
|
116
137
|
"type": "string",
|
|
117
138
|
"mutable": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-modal.js","sourceRoot":"","sources":["../../../../../../src/components/gov-modal/gov-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, Host, Method, Prop, Watch, h } from \"@stencil/core\"\nimport { govHost, toBoolAttr } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\nimport { govErrorLog } from \"../../helpers/Log/gov.log\"\nimport { validateWcagRef } from \"../../helpers/Validate/wcag\"\nimport { createID } from \"../../utils/string.utils\"\nimport { delay } from \"../../utils/utils\"\nimport { ModalClass } from \"./constants\"\nimport { Nullable } from \"../../types/interfaces\"\n\n@Component({\n\ttag: \"gov-modal\",\n\tstyleUrl: \"gov-modal.scss\",\n})\nexport class GovModal {\n\tprivate h: GovHost\n\tprivate readonly labelId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.labelId = createID(\"GovModalLabel\")\n\t\tthis.contentId = createID(\"GovModalContent\")\n\t}\n\n\t@Element() host: HTMLGovModalElement\n\n\t/**\n\t * Attribute for modal window display\n\t */\n\t@Prop({mutable: true}) open = false\n\t/**\n\t * Attribute allowing blocking the modal closing\n\t */\n\t@Prop() blockClose = false\n\t/**\n\t * Title of modal window\n\t */\n\t@Prop() label: string\n\t/**\n\t * Role of modal\n\t */\n\t@Prop({ attribute: \"role\" }) role: Nullable<string> = \"dialog\"\n\t/**\n\t * Used to change the HTML tag in the modal label for correct semantic structure\n\t */\n\t@Prop({ attribute: \"label-tag\" }) readonly labelTag: string = \"h2\"\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: \"wcag-labelled-by\" }) wcagLabelledBy: string\n\t/**\n\t * Indicates the id of a component that describes the modal.\n\t */\n\t@Prop({ attribute: \"wcag-described-by\" }) wcagDescribedBy: string\n\t/**\n\t * Adds accessible label for the modal close button that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: \"wcag-close-label\" }) wcagCloseLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for closing the modal window\n\t */\n\t@Prop({ attribute: \"wcag-close-labelled-by\" }) wcagCloseLabelledBy: string\n\t/**\n\t * Emitted when modal window closes.\n\t */\n\t@Event({ eventName: \"gov-close\" }) govClose: EventEmitter<PointerEvent>\n\n\t@Watch(\"labelTag\")\n\tvalidateLabelTag(newValue: string): void {\n\t\tconst validTags = [\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\"]\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${ModalClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch(\"open\")\n\twatchOpen(newValue: boolean): void {\n\t\tthis.open = newValue\n\t}\n\n\tprivate showModal() {\n\t\tthis.open = true\n\t\tdocument.body.classList.add(ModalClass.bodyFix)\n\t}\n\n\tprivate hideModal() {\n\t\tthis.open = false\n\t\tdocument.body.classList.remove(ModalClass.bodyFix)\n\t}\n\n\tasync componentWillRender() {\n\t\tif (this.open) {\n\t\t\tthis.showModal()\n\t\t} else {\n\t\t\tthis.hideModal()\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\tconst LabelTag = this.labelTag\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ModalClass.root)} open={this.open}>\n\t\t\t\t<dialog\n\t\t\t\t\tclass={ModalClass.dialog}\n\t\t\t\t\thidden={!this.open}\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\topen={this.open}\n\t\t\t\t\taria-modal=\"true\"\n\t\t\t\t\taria-hidden={toBoolAttr(!this.open)}\n\t\t\t\t\taria-labelledby={this.wcagLabelledBy || this.labelId}\n\t\t\t\t\taria-describedby={this.wcagDescribedBy || this.contentId}\n\t\t\t\t\trole={this.role}\n\t\t\t\t>\n\t\t\t\t\t<div class={ModalClass.inner}>\n\t\t\t\t\t\t<div class={ModalClass.header}>\n\t\t\t\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t\t\t\t<div class={ModalClass.icon}>\n\t\t\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{this.label && (\n\t\t\t\t\t\t\t\t<LabelTag class={ModalClass.title} id={this.labelId}>\n\t\t\t\t\t\t\t\t\t{this.label}\n\t\t\t\t\t\t\t\t</LabelTag>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\tdisabled={this.blockClose}\n\t\t\t\t\t\t\t\tclass={ModalClass.close}\n\t\t\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t\t\twcagLabel={this.wcagCloseLabel}\n\t\t\t\t\t\t\t\twcagLabelledBy={this.wcagCloseLabelledBy}\n\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<gov-icon name=\"x-lg\" />\n\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class={ModalClass.content} id={this.contentId}>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{this.h.hasSlot(\"footer\") && (\n\t\t\t\t\t\t\t<div class={ModalClass.footer}>\n\t\t\t\t\t\t\t\t<slot name=\"footer\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</dialog>\n\n\t\t\t\t{this.open ? (\n\t\t\t\t\t<gov-backdrop\n\t\t\t\t\t\twcag-label={this.wcagCloseLabel}\n\t\t\t\t\t\twcag-labelled-by={this.wcagCloseLabelledBy}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t/>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onCloseHandler(e: PointerEvent) {\n\t\te.stopPropagation()\n\t\tif(this.blockClose === false) {\n\t\t\tthis.hideModal()\n\t\t\tthis.govClose.emit(e)\n\t\t}\n\t}\n\n\t/**\n\t * Showing the modal\n\t */\n\t@Method()\n\tasync show(): Promise<void> {\n\t\tthis.showModal()\n\t}\n\n\t/**\n\t * Hiding the modal\n\t */\n\t@Method()\n\tasync hide(): Promise<void> {\n\t\tthis.hideModal()\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagRef(this.wcagLabelledBy, \"wcag-labelled-by\", ModalClass.root)\n\t\tvalidateWcagRef(this.wcagDescribedBy, \"wcag-described-by\", ModalClass.root)\n\t}\n}\n"]}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/* stylelint-disable order/order */
|
|
40
40
|
/* stylelint-enable order/order */
|
|
41
41
|
/**
|
|
42
|
-
* Generates CSS3 var with
|
|
42
|
+
* Generates CSS3 var with button value
|
|
43
43
|
*/
|
|
44
44
|
/*
|
|
45
45
|
- Variables - General
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
- Variables - Backdrop
|
|
71
71
|
*/
|
|
72
72
|
/*
|
|
73
|
-
- Variables - Buttons (&&
|
|
73
|
+
- Variables - Buttons (&& Chips)
|
|
74
74
|
*/
|
|
75
75
|
/*
|
|
76
76
|
- Variables - Breadcrumbs
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
/*
|
|
191
191
|
- Variables - Layout
|
|
192
192
|
*/
|
|
193
|
+
/*
|
|
194
|
+
- Variables - Tag
|
|
195
|
+
*/
|
|
193
196
|
.gov-spin-animation,
|
|
194
197
|
.gov-pseudo-spin-animation::before {
|
|
195
198
|
animation: spin 4s linear infinite;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/* stylelint-disable order/order */
|
|
40
40
|
/* stylelint-enable order/order */
|
|
41
41
|
/**
|
|
42
|
-
* Generates CSS3 var with
|
|
42
|
+
* Generates CSS3 var with button value
|
|
43
43
|
*/
|
|
44
44
|
/*
|
|
45
45
|
- Variables - General
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
- Variables - Backdrop
|
|
71
71
|
*/
|
|
72
72
|
/*
|
|
73
|
-
- Variables - Buttons (&&
|
|
73
|
+
- Variables - Buttons (&& Chips)
|
|
74
74
|
*/
|
|
75
75
|
/*
|
|
76
76
|
- Variables - Breadcrumbs
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
/*
|
|
191
191
|
- Variables - Layout
|
|
192
192
|
*/
|
|
193
|
+
/*
|
|
194
|
+
- Variables - Tag
|
|
195
|
+
*/
|
|
193
196
|
.gov-spin-animation,
|
|
194
197
|
.gov-pseudo-spin-animation::before {
|
|
195
198
|
animation: spin 4s linear infinite;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
/* stylelint-disable order/order */
|
|
54
54
|
/* stylelint-enable order/order */
|
|
55
55
|
/**
|
|
56
|
-
* Generates CSS3 var with
|
|
56
|
+
* Generates CSS3 var with button value
|
|
57
57
|
*/
|
|
58
58
|
/*
|
|
59
59
|
- Variables - General
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
- Variables - Backdrop
|
|
85
85
|
*/
|
|
86
86
|
/*
|
|
87
|
-
- Variables - Buttons (&&
|
|
87
|
+
- Variables - Buttons (&& Chips)
|
|
88
88
|
*/
|
|
89
89
|
/*
|
|
90
90
|
- Variables - Breadcrumbs
|
|
@@ -204,6 +204,9 @@
|
|
|
204
204
|
/*
|
|
205
205
|
- Variables - Layout
|
|
206
206
|
*/
|
|
207
|
+
/*
|
|
208
|
+
- Variables - Tag
|
|
209
|
+
*/
|
|
207
210
|
.gov-spin-animation,
|
|
208
211
|
.gov-pseudo-spin-animation::before {
|
|
209
212
|
animation: spin 4s linear infinite;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/* stylelint-disable order/order */
|
|
40
40
|
/* stylelint-enable order/order */
|
|
41
41
|
/**
|
|
42
|
-
* Generates CSS3 var with
|
|
42
|
+
* Generates CSS3 var with button value
|
|
43
43
|
*/
|
|
44
44
|
/*
|
|
45
45
|
- Variables - General
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
- Variables - Backdrop
|
|
71
71
|
*/
|
|
72
72
|
/*
|
|
73
|
-
- Variables - Buttons (&&
|
|
73
|
+
- Variables - Buttons (&& Chips)
|
|
74
74
|
*/
|
|
75
75
|
/*
|
|
76
76
|
- Variables - Breadcrumbs
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
/*
|
|
191
191
|
- Variables - Layout
|
|
192
192
|
*/
|
|
193
|
+
/*
|
|
194
|
+
- Variables - Tag
|
|
195
|
+
*/
|
|
193
196
|
.gov-spin-animation,
|
|
194
197
|
.gov-pseudo-spin-animation::before {
|
|
195
198
|
animation: spin 4s linear infinite;
|
|
@@ -10,7 +10,7 @@ export const SideNavItemClass = {
|
|
|
10
10
|
name: 'gov-side-nav-item__name',
|
|
11
11
|
label: 'gov-side-nav-item__label',
|
|
12
12
|
arrow: 'gov-side-nav-item__arrow',
|
|
13
|
-
|
|
13
|
+
chip: 'gov-side-nav-item__chip',
|
|
14
14
|
content: 'gov-side-nav-item__content',
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-side-nav/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;EAC3B,IAAI,EAAE,cAAc;EACpB,KAAK,EAAE,qBAAqB;CAC5B,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG;EAC/B,IAAI,EAAE,mBAAmB;EACzB,YAAY,EAAE,2BAA2B;EACzC,MAAM,EAAE,2BAA2B;EACnC,IAAI,EAAE,yBAAyB;EAC/B,IAAI,EAAE,yBAAyB;EAC/B,KAAK,EAAE,0BAA0B;EACjC,KAAK,EAAE,0BAA0B;EACjC,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-side-nav/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;EAC3B,IAAI,EAAE,cAAc;EACpB,KAAK,EAAE,qBAAqB;CAC5B,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG;EAC/B,IAAI,EAAE,mBAAmB;EACzB,YAAY,EAAE,2BAA2B;EACzC,MAAM,EAAE,2BAA2B;EACnC,IAAI,EAAE,yBAAyB;EAC/B,IAAI,EAAE,yBAAyB;EAC/B,KAAK,EAAE,0BAA0B;EACjC,KAAK,EAAE,0BAA0B;EACjC,IAAI,EAAE,yBAAyB;EAC/B,OAAO,EAAE,4BAA4B;CACrC,CAAA","sourcesContent":["export const SideNavClass = {\n\troot: 'gov-side-nav',\n\taside: 'gov-side-nav__aside',\n}\n\nexport const SideNavItemClass = {\n\troot: 'gov-side-nav-item',\n\trootWithIcon: 'gov-side-nav-item--w-icon',\n\theader: 'gov-side-nav-item__header',\n\ticon: 'gov-side-nav-item__icon',\n\tname: 'gov-side-nav-item__name',\n\tlabel: 'gov-side-nav-item__label',\n\tarrow: 'gov-side-nav-item__arrow',\n\tchip: 'gov-side-nav-item__chip',\n\tcontent: 'gov-side-nav-item__content',\n}\n"]}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/* stylelint-disable order/order */
|
|
40
40
|
/* stylelint-enable order/order */
|
|
41
41
|
/**
|
|
42
|
-
* Generates CSS3 var with
|
|
42
|
+
* Generates CSS3 var with button value
|
|
43
43
|
*/
|
|
44
44
|
/*
|
|
45
45
|
- Variables - General
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
- Variables - Backdrop
|
|
71
71
|
*/
|
|
72
72
|
/*
|
|
73
|
-
- Variables - Buttons (&&
|
|
73
|
+
- Variables - Buttons (&& Chips)
|
|
74
74
|
*/
|
|
75
75
|
/*
|
|
76
76
|
- Variables - Breadcrumbs
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
/*
|
|
191
191
|
- Variables - Layout
|
|
192
192
|
*/
|
|
193
|
+
/*
|
|
194
|
+
- Variables - Tag
|
|
195
|
+
*/
|
|
193
196
|
.gov-spin-animation,
|
|
194
197
|
.gov-pseudo-spin-animation::before {
|
|
195
198
|
animation: spin 4s linear infinite;
|
|
@@ -296,7 +299,7 @@ button.gov-side-nav-item__name {
|
|
|
296
299
|
.gov-side-nav-item__label {
|
|
297
300
|
color: inherit;
|
|
298
301
|
}
|
|
299
|
-
.gov-side-nav-
|
|
302
|
+
.gov-side-nav-item__chip {
|
|
300
303
|
display: flex;
|
|
301
304
|
flex: 0 0 auto;
|
|
302
305
|
}
|
|
@@ -36,7 +36,7 @@ export class GovSideNavItem {
|
|
|
36
36
|
const { isExpandedState, label } = this;
|
|
37
37
|
// TODO: správný počet zanořených childů
|
|
38
38
|
const hasChilds = this.host.children.length > 1;
|
|
39
|
-
return (h(Host, { class: this.classNames, role: "listitem", inverse: this.inverse, "aria-expanded": booleanString(isExpandedState) }, this.href ? (h("div", { class: SideNavItemClass.header }, h("a", { class: SideNavItemClass.name, href: this.href }, this.h.hasSlot('icon') && (h("span", { class: SideNavItemClass.icon }, h("slot", { name: "icon" }))), h("span", { class: SideNavItemClass.label }, label), this.count && (h("span", { class: SideNavItemClass.
|
|
39
|
+
return (h(Host, { class: this.classNames, role: "listitem", inverse: this.inverse, "aria-expanded": booleanString(isExpandedState) }, this.href ? (h("div", { class: SideNavItemClass.header }, h("a", { class: SideNavItemClass.name, href: this.href }, this.h.hasSlot('icon') && (h("span", { class: SideNavItemClass.icon }, h("slot", { name: "icon" }))), h("span", { class: SideNavItemClass.label }, label), this.count && (h("span", { class: SideNavItemClass.chip }, h("gov-chip", { variant: "secondary", size: "s", inverse: this.inverse }, "3")))), hasChilds && (h("button", { type: "button", class: SideNavItemClass.arrow, onClick: () => this.toggle() }, h("gov-icon", { name: "chevron-down" }))))) : (h("div", { class: SideNavItemClass.header }, h("button", { class: SideNavItemClass.name, type: "button", onClick: () => this.toggle() }, this.h.hasSlot('icon') && (h("span", { class: SideNavItemClass.icon }, h("slot", { name: "icon" }))), h("span", { class: SideNavItemClass.label }, label), hasChilds && (h("span", { class: SideNavItemClass.arrow }, h("gov-icon", { name: "chevron-down" })))))), hasChilds && (h("div", { class: SideNavItemClass.content }, h("slot", null)))));
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Opening the sidenav
|
|
@@ -216,7 +216,7 @@ export class GovSideNavItem {
|
|
|
216
216
|
"optional": false,
|
|
217
217
|
"docs": {
|
|
218
218
|
"tags": [],
|
|
219
|
-
"text": "Defines whether the sidenav is open or closed by
|
|
219
|
+
"text": "Defines whether the sidenav is open or closed by button"
|
|
220
220
|
},
|
|
221
221
|
"attribute": "is-expanded",
|
|
222
222
|
"reflect": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gov-side-nav-item.js","sourceRoot":"","sources":["../../../../../../src/components/gov-side-nav/gov-side-nav-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAA;AAC5G,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAE1E,OAAO,EAA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W,EAAE,CAAA;EACnB,CAAC;EAED;;KAEG;EAEH,KAAK,CAAC,MAAM;IACX,IAAI,CAAC,eAAe,GAAG,CAAC,IAAI,CAAC,eAAe,CAAA;IAC5C,IAAI,CAAC,WAAW,EAAE,CAAA;EACnB,CAAC;EAED;;KAEG;EAEH,KAAK,CAAC,YAAY;IACjB,OAAO,IAAI,CAAC,eAAe,CAAA;EAC5B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Prop, State, Watch, Host, Method, Event, EventEmitter } from '@stencil/core'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { SideNavItemClass } from './constants'\nimport { booleanString, prepareClasses } from '../../helpers/Dom/template'\nimport { GovSideNavItemChangeEvent } from './gov-side-nav-item.d'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-side-nav-item',\n\tstyleUrl: 'gov-side-nav-item.scss',\n})\nexport class GovSideNavItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovSideNavItemElement\n\t@State() isExpandedState: boolean\n\n\t/**\n\t * Determide if component should have inversed colors to be used on dark background\n\t */\n\t@Prop() readonly inverse: boolean = false\n\t/**\n\t * Determide if component should have compact styles.\n\t */\n\t@Prop() readonly compact: boolean = false\n\t/**\n\t * Custom sidenav item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Defined the count of nested items\n\t */\n\t@Prop() readonly count: boolean = false\n\t/**\n\t * Item name of the sidenav\n\t */\n\t@Prop() readonly label: 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() 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 * Defines whether the sidenav is open or closed by button\n\t */\n\t@Prop({ attribute: 'is-expanded' }) readonly isExpanded: boolean = false\n\t/**\n\t * Called when the sidenav state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovSideNavItemChangeEvent>\n\n\t@Watch('label')\n\tvalidateLabel(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${SideNavItemClass.root}]: Parameter label is required.`)\n\t\t}\n\t}\n\n\tprivate emmitChange(): void {\n\t\tthis.govChange.emit({ open: this.isExpandedState, element: this.host })\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.isExpandedState = this.isExpanded\n\t\tthis.validateLabel(this.label)\n\t}\n\n\tget classNames(): string {\n\t\tconst { h } = this\n\n\t\treturn prepareClasses([SideNavItemClass.root, h.hasSlot('icon') && SideNavItemClass.rootWithIcon])\n\t}\n\n\trender() {\n\t\tconst { isExpandedState, label } = this\n\t\t// TODO: správný počet zanořených childů\n\t\tconst hasChilds = this.host.children.length > 1\n\n\t\treturn (\n\t\t\t<Host class={this.classNames} role=\"listitem\" inverse={this.inverse} aria-expanded={booleanString(isExpandedState)}>\n\t\t\t\t{this.href ? (\n\t\t\t\t\t<div class={SideNavItemClass.header}>\n\t\t\t\t\t\t<a class={SideNavItemClass.name} href={this.href}>\n\t\t\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t\t\t<span class={SideNavItemClass.icon}>\n\t\t\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<span class={SideNavItemClass.label}>{label}</span>\n\n\t\t\t\t\t\t\t{this.count && (\n\t\t\t\t\t\t\t\t<span class={SideNavItemClass.chip}>\n\t\t\t\t\t\t\t\t\t<gov-chip variant=\"secondary\" size=\"s\" inverse={this.inverse}>\n\t\t\t\t\t\t\t\t\t\t{/* // TODO: správný počet zanořených childů */}3\n\t\t\t\t\t\t\t\t\t</gov-chip>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</a>\n\n\t\t\t\t\t\t{hasChilds && (\n\t\t\t\t\t\t\t<button type=\"button\" class={SideNavItemClass.arrow} onClick={() => this.toggle()}>\n\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-down\"></gov-icon>\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={SideNavItemClass.header}>\n\t\t\t\t\t\t<button class={SideNavItemClass.name} type=\"button\" onClick={() => this.toggle()}>\n\t\t\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t\t\t<span class={SideNavItemClass.icon}>\n\t\t\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<span class={SideNavItemClass.label}>{label}</span>\n\n\t\t\t\t\t\t\t{hasChilds && (\n\t\t\t\t\t\t\t\t<span class={SideNavItemClass.arrow}>\n\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-down\"></gov-icon>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\n\t\t\t\t{hasChilds && (\n\t\t\t\t\t<div class={SideNavItemClass.content}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Opening the sidenav\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tthis.isExpandedState = true\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Closing the sidenav\n\t */\n\t@Method()\n\tasync close(): Promise<void> {\n\t\tthis.isExpandedState = false\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * sidenav switch\n\t */\n\t@Method()\n\tasync toggle(): Promise<void> {\n\t\tthis.isExpandedState = !this.isExpandedState\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync currentState(): Promise<boolean> {\n\t\treturn this.isExpandedState\n\t}\n}\n"]}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/* stylelint-disable order/order */
|
|
40
40
|
/* stylelint-enable order/order */
|
|
41
41
|
/**
|
|
42
|
-
* Generates CSS3 var with
|
|
42
|
+
* Generates CSS3 var with button value
|
|
43
43
|
*/
|
|
44
44
|
/*
|
|
45
45
|
- Variables - General
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
- Variables - Backdrop
|
|
71
71
|
*/
|
|
72
72
|
/*
|
|
73
|
-
- Variables - Buttons (&&
|
|
73
|
+
- Variables - Buttons (&& Chips)
|
|
74
74
|
*/
|
|
75
75
|
/*
|
|
76
76
|
- Variables - Breadcrumbs
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
/*
|
|
191
191
|
- Variables - Layout
|
|
192
192
|
*/
|
|
193
|
+
/*
|
|
194
|
+
- Variables - Tag
|
|
195
|
+
*/
|
|
193
196
|
.gov-spin-animation,
|
|
194
197
|
.gov-pseudo-spin-animation::before {
|
|
195
198
|
animation: spin 4s linear infinite;
|