@gov-design-system-ce/components 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Fragment-52846f79.js +7 -0
- package/dist/cjs/Fragment-52846f79.js.map +1 -0
- package/dist/cjs/constants-0488d137.js +22 -0
- package/dist/cjs/constants-0488d137.js.map +1 -0
- package/dist/cjs/constants-0883e74c.js +30 -0
- package/dist/cjs/constants-0883e74c.js.map +1 -0
- package/dist/cjs/constants-0c6c8e11.js +30 -0
- package/dist/cjs/constants-0c6c8e11.js.map +1 -0
- package/dist/cjs/constants-1490a5eb.js +25 -0
- package/dist/cjs/constants-1490a5eb.js.map +1 -0
- package/dist/cjs/constants-20b3f7ee.js +28 -0
- package/dist/cjs/constants-20b3f7ee.js.map +1 -0
- package/dist/cjs/constants-21559414.js +29 -0
- package/dist/cjs/constants-21559414.js.map +1 -0
- package/dist/cjs/constants-23b7a283.js +33 -0
- package/dist/cjs/constants-23b7a283.js.map +1 -0
- package/dist/cjs/constants-2b1c31b8.js +15 -0
- package/dist/cjs/constants-2b1c31b8.js.map +1 -0
- package/dist/cjs/constants-61f8be34.js +26 -0
- package/dist/cjs/constants-61f8be34.js.map +1 -0
- package/dist/cjs/constants-86fb4eb4.js +19 -0
- package/dist/cjs/constants-86fb4eb4.js.map +1 -0
- package/dist/cjs/constants-97eea364.js +14 -0
- package/dist/cjs/constants-97eea364.js.map +1 -0
- package/dist/cjs/constants-adc8268f.js +37 -0
- package/dist/cjs/constants-adc8268f.js.map +1 -0
- package/dist/cjs/constants-caad94b4.js +16 -0
- package/dist/cjs/constants-caad94b4.js.map +1 -0
- package/dist/cjs/constants-ded92f8a.js +13 -0
- package/dist/cjs/constants-ded92f8a.js.map +1 -0
- package/dist/cjs/constants-e47694c4.js +19 -0
- package/dist/cjs/constants-e47694c4.js.map +1 -0
- package/dist/cjs/constants-e8760a84.js +20 -0
- package/dist/cjs/constants-e8760a84.js.map +1 -0
- package/dist/cjs/core.cjs.js +21 -0
- package/dist/cjs/core.cjs.js.map +1 -0
- package/dist/cjs/form-9b8b1740.js +150 -0
- package/dist/cjs/form-9b8b1740.js.map +1 -0
- package/dist/cjs/gov-accordion-item.cjs.entry.js +113 -0
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-accordion.cjs.entry.js +75 -0
- package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-alert.cjs.entry.js +58 -0
- package/dist/cjs/gov-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-app.cjs.entry.js +8356 -0
- package/dist/cjs/gov-app.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-attachments_3.cjs.entry.js +120 -0
- package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-backdrop.cjs.entry.js +54 -0
- package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-badge.cjs.entry.js +84 -0
- package/dist/cjs/gov-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +50 -0
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-button.cjs.entry.js +155 -0
- package/dist/cjs/gov-button.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-card.cjs.entry.js +112 -0
- package/dist/cjs/gov-card.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-container.cjs.entry.js +36 -0
- package/dist/cjs/gov-container.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-cookiebar.cjs.entry.js +33 -0
- package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-empty.cjs.entry.js +31 -0
- package/dist/cjs/gov-empty.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-error-code.cjs.entry.js +31 -0
- package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +177 -0
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +115 -0
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-control.cjs.entry.js +100 -0
- package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-file.cjs.entry.js +187 -0
- package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-group.cjs.entry.js +43 -0
- package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-input.cjs.entry.js +151 -0
- package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-label.cjs.entry.js +30 -0
- package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +193 -0
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-password-power.cjs.entry.js +28 -0
- package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-radio.cjs.entry.js +115 -0
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-search.cjs.entry.js +28 -0
- package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-select.cjs.entry.js +124 -0
- package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-switch.cjs.entry.js +115 -0
- package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-grid-item.cjs.entry.js +30 -0
- package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-grid.cjs.entry.js +28 -0
- package/dist/cjs/gov-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-icon.cjs.entry.js +126 -0
- package/dist/cjs/gov-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-layout-column.cjs.entry.js +25 -0
- package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-layout.cjs.entry.js +34 -0
- package/dist/cjs/gov-layout.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-loading.cjs.entry.js +31 -0
- package/dist/cjs/gov-loading.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-message.cjs.entry.js +43 -0
- package/dist/cjs/gov-message.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-modal.cjs.entry.js +105 -0
- package/dist/cjs/gov-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-nav-item.cjs.entry.js +37 -0
- package/dist/cjs/gov-nav-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-nav.cjs.entry.js +42 -0
- package/dist/cjs/gov-nav.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-pagination.cjs.entry.js +209 -0
- package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-prompt.cjs.entry.js +105 -0
- package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-side-nav-item.cjs.entry.js +85 -0
- package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-side-nav.cjs.entry.js +56 -0
- package/dist/cjs/gov-side-nav.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-skeleton.cjs.entry.js +117 -0
- package/dist/cjs/gov-skeleton.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-spacer.cjs.entry.js +57 -0
- package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-statsbar-item.cjs.entry.js +39 -0
- package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-statsbar.cjs.entry.js +52 -0
- package/dist/cjs/gov-statsbar.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-stepper-item.cjs.entry.js +77 -0
- package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-stepper.cjs.entry.js +50 -0
- package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tabs-item.cjs.entry.js +53 -0
- package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tabs.cjs.entry.js +189 -0
- package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tile.cjs.entry.js +50 -0
- package/dist/cjs/gov-tile.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tiles.cjs.entry.js +33 -0
- package/dist/cjs/gov-tiles.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-toast.cjs.entry.js +103 -0
- package/dist/cjs/gov-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +42 -0
- package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tooltip.cjs.entry.js +158 -0
- package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-wizzard-item.cjs.entry.js +110 -0
- package/dist/cjs/gov-wizzard-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-wizzard.cjs.entry.js +67 -0
- package/dist/cjs/gov-wizzard.cjs.entry.js.map +1 -0
- package/dist/cjs/gov.log-0c9dca27.js +20 -0
- package/dist/cjs/gov.log-0c9dca27.js.map +1 -0
- package/dist/cjs/index-29ac07f6.js +2325 -0
- package/dist/cjs/index-29ac07f6.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +23 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/props-5f82e4c0.js +16 -0
- package/dist/cjs/props-5f82e4c0.js.map +1 -0
- package/dist/cjs/sizes-79872c2a.js +18 -0
- package/dist/cjs/sizes-79872c2a.js.map +1 -0
- package/dist/cjs/string.utils-0f08c48c.js +24 -0
- package/dist/cjs/string.utils-0f08c48c.js.map +1 -0
- package/dist/cjs/template-e1c4ff78.js +121 -0
- package/dist/cjs/template-e1c4ff78.js.map +1 -0
- package/dist/cjs/utils-c9b1bba3.js +41 -0
- package/dist/cjs/utils-c9b1bba3.js.map +1 -0
- package/dist/cjs/variants-f5ffeef3.js +18 -0
- package/dist/cjs/variants-f5ffeef3.js.map +1 -0
- package/dist/cjs/wcag-6efc0ab7.js +67 -0
- package/dist/cjs/wcag-6efc0ab7.js.map +1 -0
- package/dist/cjs/win-84bda0aa.js +26 -0
- package/dist/cjs/win-84bda0aa.js.map +1 -0
- package/dist/collection/collection-manifest.json +69 -0
- package/dist/collection/components/gov-accordion/constants.js +21 -0
- package/dist/collection/components/gov-accordion/constants.js.map +1 -0
- package/dist/collection/components/gov-accordion/gov-accordion-item.css +484 -0
- package/dist/collection/components/gov-accordion/gov-accordion-item.d.js +2 -0
- package/dist/collection/components/gov-accordion/gov-accordion-item.d.js.map +1 -0
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +386 -0
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -0
- package/dist/collection/components/gov-accordion/gov-accordion.css +231 -0
- package/dist/collection/components/gov-accordion/gov-accordion.js +220 -0
- package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -0
- package/dist/collection/components/gov-alert/constants.js +11 -0
- package/dist/collection/components/gov-alert/constants.js.map +1 -0
- package/dist/collection/components/gov-alert/gov-alert.css +379 -0
- package/dist/collection/components/gov-alert/gov-alert.js +150 -0
- package/dist/collection/components/gov-alert/gov-alert.js.map +1 -0
- package/dist/collection/components/gov-app/gov-app.css +240 -0
- package/dist/collection/components/gov-app/gov-app.js +95 -0
- package/dist/collection/components/gov-app/gov-app.js.map +1 -0
- package/dist/collection/components/gov-attachments/constants.js +12 -0
- package/dist/collection/components/gov-attachments/constants.js.map +1 -0
- package/dist/collection/components/gov-attachments/gov-attachments-item.css +252 -0
- package/dist/collection/components/gov-attachments/gov-attachments-item.d.js +2 -0
- package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +1 -0
- package/dist/collection/components/gov-attachments/gov-attachments-item.js +121 -0
- package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -0
- package/dist/collection/components/gov-attachments/gov-attachments.css +238 -0
- package/dist/collection/components/gov-attachments/gov-attachments.js +99 -0
- package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -0
- package/dist/collection/components/gov-backdrop/constants.js +5 -0
- package/dist/collection/components/gov-backdrop/constants.js.map +1 -0
- package/dist/collection/components/gov-backdrop/gov-backdrop.css +237 -0
- package/dist/collection/components/gov-backdrop/gov-backdrop.js +162 -0
- package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -0
- package/dist/collection/components/gov-badge/constants.js +13 -0
- package/dist/collection/components/gov-badge/constants.js.map +1 -0
- package/dist/collection/components/gov-badge/gov-badge.css +1203 -0
- package/dist/collection/components/gov-badge/gov-badge.js +284 -0
- package/dist/collection/components/gov-badge/gov-badge.js.map +1 -0
- package/dist/collection/components/gov-breadcrumbs/constants.js +4 -0
- package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +270 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js +2 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +1 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +160 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -0
- package/dist/collection/components/gov-button/constants.js +29 -0
- package/dist/collection/components/gov-button/constants.js.map +1 -0
- package/dist/collection/components/gov-button/gov-button.css +1136 -0
- package/dist/collection/components/gov-button/gov-button.js +794 -0
- package/dist/collection/components/gov-button/gov-button.js.map +1 -0
- package/dist/collection/components/gov-card/constants.js +14 -0
- package/dist/collection/components/gov-card/constants.js.map +1 -0
- package/dist/collection/components/gov-card/gov-card.css +368 -0
- package/dist/collection/components/gov-card/gov-card.js +307 -0
- package/dist/collection/components/gov-card/gov-card.js.map +1 -0
- package/dist/collection/components/gov-card/interfaces.js +2 -0
- package/dist/collection/components/gov-card/interfaces.js.map +1 -0
- package/dist/collection/components/gov-container/constants.js +4 -0
- package/dist/collection/components/gov-container/constants.js.map +1 -0
- package/dist/collection/components/gov-container/gov-container.css +238 -0
- package/dist/collection/components/gov-container/gov-container.js +58 -0
- package/dist/collection/components/gov-container/gov-container.js.map +1 -0
- package/dist/collection/components/gov-cookiebar/constants.js +9 -0
- package/dist/collection/components/gov-cookiebar/constants.js.map +1 -0
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +280 -0
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +24 -0
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -0
- package/dist/collection/components/gov-empty/constants.js +7 -0
- package/dist/collection/components/gov-empty/constants.js.map +1 -0
- package/dist/collection/components/gov-empty/gov-empty.css +246 -0
- package/dist/collection/components/gov-empty/gov-empty.js +24 -0
- package/dist/collection/components/gov-empty/gov-empty.js.map +1 -0
- package/dist/collection/components/gov-error-code/constants.js +7 -0
- package/dist/collection/components/gov-error-code/constants.js.map +1 -0
- package/dist/collection/components/gov-error-code/gov-error-code.css +261 -0
- package/dist/collection/components/gov-error-code/gov-error-code.js +24 -0
- package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -0
- package/dist/collection/components/gov-form/autocomplete/constants.js +11 -0
- package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +273 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +660 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js +2 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +1 -0
- package/dist/collection/components/gov-form/checkbox/constants.js +8 -0
- package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -0
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +388 -0
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +397 -0
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -0
- package/dist/collection/components/gov-form/checkbox/interfaces.js +2 -0
- package/dist/collection/components/gov-form/checkbox/interfaces.js.map +1 -0
- package/dist/collection/components/gov-form/control/constants.js +9 -0
- package/dist/collection/components/gov-form/control/constants.js.map +1 -0
- package/dist/collection/components/gov-form/control/gov-form-control.css +282 -0
- package/dist/collection/components/gov-form/control/gov-form-control.js +234 -0
- package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -0
- package/dist/collection/components/gov-form/file/constants.js +10 -0
- package/dist/collection/components/gov-form/file/constants.js.map +1 -0
- package/dist/collection/components/gov-form/file/gov-form-file.css +285 -0
- package/dist/collection/components/gov-form/file/gov-form-file.js +555 -0
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -0
- package/dist/collection/components/gov-form/file/gov-form-file.types.js +2 -0
- package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +1 -0
- package/dist/collection/components/gov-form/group/constants.js +7 -0
- package/dist/collection/components/gov-form/group/constants.js.map +1 -0
- package/dist/collection/components/gov-form/group/gov-form-group.css +242 -0
- package/dist/collection/components/gov-form/group/gov-form-group.js +65 -0
- package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -0
- package/dist/collection/components/gov-form/input/constants.js +29 -0
- package/dist/collection/components/gov-form/input/constants.js.map +1 -0
- package/dist/collection/components/gov-form/input/gov-form-input.css +453 -0
- package/dist/collection/components/gov-form/input/gov-form-input.js +801 -0
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -0
- package/dist/collection/components/gov-form/label/constants.js +8 -0
- package/dist/collection/components/gov-form/label/constants.js.map +1 -0
- package/dist/collection/components/gov-form/label/gov-form-label.css +269 -0
- package/dist/collection/components/gov-form/label/gov-form-label.js +128 -0
- package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -0
- package/dist/collection/components/gov-form/message/constants.js +9 -0
- package/dist/collection/components/gov-form/message/constants.js.map +1 -0
- package/dist/collection/components/gov-form/message/gov-form-message.css +253 -0
- package/dist/collection/components/gov-form/message/gov-form-message.js +93 -0
- package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -0
- package/dist/collection/components/gov-form/multiselect/constants.js +12 -0
- package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -0
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +513 -0
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +544 -0
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -0
- package/dist/collection/components/gov-form/multiselect/interfaces.js +2 -0
- package/dist/collection/components/gov-form/multiselect/interfaces.js.map +1 -0
- package/dist/collection/components/gov-form/password-power/constants.js +6 -0
- package/dist/collection/components/gov-form/password-power/constants.js.map +1 -0
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.css +265 -0
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +43 -0
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -0
- package/dist/collection/components/gov-form/radio/constants.js +10 -0
- package/dist/collection/components/gov-form/radio/constants.js.map +1 -0
- package/dist/collection/components/gov-form/radio/gov-form-radio.css +387 -0
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +397 -0
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -0
- package/dist/collection/components/gov-form/radio/interfaces.js +2 -0
- package/dist/collection/components/gov-form/radio/interfaces.js.map +1 -0
- package/dist/collection/components/gov-form/search/constants.js +6 -0
- package/dist/collection/components/gov-form/search/constants.js.map +1 -0
- package/dist/collection/components/gov-form/search/gov-form-search.css +260 -0
- package/dist/collection/components/gov-form/search/gov-form-search.js +20 -0
- package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -0
- package/dist/collection/components/gov-form/select/constants.js +10 -0
- package/dist/collection/components/gov-form/select/constants.js.map +1 -0
- package/dist/collection/components/gov-form/select/gov-form-select.css +472 -0
- package/dist/collection/components/gov-form/select/gov-form-select.js +497 -0
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -0
- package/dist/collection/components/gov-form/switch/constants.js +10 -0
- package/dist/collection/components/gov-form/switch/constants.js.map +1 -0
- package/dist/collection/components/gov-form/switch/gov-form-switch.css +403 -0
- package/dist/collection/components/gov-form/switch/gov-form-switch.js +397 -0
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -0
- package/dist/collection/components/gov-form/switch/interfaces.js +2 -0
- package/dist/collection/components/gov-form/switch/interfaces.js.map +1 -0
- package/dist/collection/components/gov-grid/constants.js +7 -0
- package/dist/collection/components/gov-grid/constants.js.map +1 -0
- package/dist/collection/components/gov-grid/gov-grid-item.css +472 -0
- package/dist/collection/components/gov-grid/gov-grid-item.js +119 -0
- package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -0
- package/dist/collection/components/gov-grid/gov-grid.css +247 -0
- package/dist/collection/components/gov-grid/gov-grid.js +65 -0
- package/dist/collection/components/gov-grid/gov-grid.js.map +1 -0
- package/dist/collection/components/gov-icon/constants.js +11 -0
- package/dist/collection/components/gov-icon/constants.js.map +1 -0
- package/dist/collection/components/gov-icon/gov-icon.css +232 -0
- package/dist/collection/components/gov-icon/gov-icon.js +135 -0
- package/dist/collection/components/gov-icon/gov-icon.js.map +1 -0
- package/dist/collection/components/gov-icon/list.js +238 -0
- package/dist/collection/components/gov-icon/list.js.map +1 -0
- package/dist/collection/components/gov-layout/constants.js +19 -0
- package/dist/collection/components/gov-layout/constants.js.map +1 -0
- package/dist/collection/components/gov-layout/gov-layout-column.css +227 -0
- package/dist/collection/components/gov-layout/gov-layout-column.js +24 -0
- package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -0
- package/dist/collection/components/gov-layout/gov-layout.css +273 -0
- package/dist/collection/components/gov-layout/gov-layout.js +100 -0
- package/dist/collection/components/gov-layout/gov-layout.js.map +1 -0
- package/dist/collection/components/gov-loading/loading/constants.js +6 -0
- package/dist/collection/components/gov-loading/loading/constants.js.map +1 -0
- package/dist/collection/components/gov-loading/loading/gov-loading.css +251 -0
- package/dist/collection/components/gov-loading/loading/gov-loading.js +47 -0
- package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -0
- package/dist/collection/components/gov-loading/skeleton/constants.js +20 -0
- package/dist/collection/components/gov-loading/skeleton/constants.js.map +1 -0
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.css +290 -0
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +267 -0
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -0
- package/dist/collection/components/gov-message/constants.js +10 -0
- package/dist/collection/components/gov-message/constants.js.map +1 -0
- package/dist/collection/components/gov-message/gov-message.css +310 -0
- package/dist/collection/components/gov-message/gov-message.js +63 -0
- package/dist/collection/components/gov-message/gov-message.js.map +1 -0
- package/dist/collection/components/gov-modal/constants.js +14 -0
- package/dist/collection/components/gov-modal/constants.js.map +1 -0
- package/dist/collection/components/gov-modal/gov-modal.css +335 -0
- package/dist/collection/components/gov-modal/gov-modal.js +331 -0
- package/dist/collection/components/gov-modal/gov-modal.js.map +1 -0
- package/dist/collection/components/gov-nav/constants.js +9 -0
- package/dist/collection/components/gov-nav/constants.js.map +1 -0
- package/dist/collection/components/gov-nav/gov-nav-item.css +279 -0
- package/dist/collection/components/gov-nav/gov-nav-item.js +68 -0
- package/dist/collection/components/gov-nav/gov-nav-item.js.map +1 -0
- package/dist/collection/components/gov-nav/gov-nav.css +245 -0
- package/dist/collection/components/gov-nav/gov-nav.js +97 -0
- package/dist/collection/components/gov-nav/gov-nav.js.map +1 -0
- package/dist/collection/components/gov-pagination/constants.js +21 -0
- package/dist/collection/components/gov-pagination/constants.js.map +1 -0
- package/dist/collection/components/gov-pagination/gov-pagination.css +385 -0
- package/dist/collection/components/gov-pagination/gov-pagination.js +436 -0
- package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -0
- package/dist/collection/components/gov-pagination/pagination.js +55 -0
- package/dist/collection/components/gov-pagination/pagination.js.map +1 -0
- package/dist/collection/components/gov-promp/constants.js +13 -0
- package/dist/collection/components/gov-promp/constants.js.map +1 -0
- package/dist/collection/components/gov-promp/gov-prompt.css +338 -0
- package/dist/collection/components/gov-promp/gov-prompt.js +331 -0
- package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -0
- package/dist/collection/components/gov-side-nav/constants.js +16 -0
- package/dist/collection/components/gov-side-nav/constants.js.map +1 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +375 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js +2 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js.map +1 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +331 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +1 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav.css +228 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav.js +169 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav.js.map +1 -0
- package/dist/collection/components/gov-spacer/constants.js +15 -0
- package/dist/collection/components/gov-spacer/constants.js.map +1 -0
- package/dist/collection/components/gov-spacer/gov-spacer.css +293 -0
- package/dist/collection/components/gov-spacer/gov-spacer.js +95 -0
- package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -0
- package/dist/collection/components/gov-statsbar/constants.js +18 -0
- package/dist/collection/components/gov-statsbar/constants.js.map +1 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +287 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +65 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +1 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar.css +272 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar.js +102 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +1 -0
- package/dist/collection/components/gov-stepper/constants.js +21 -0
- package/dist/collection/components/gov-stepper/constants.js.map +1 -0
- package/dist/collection/components/gov-stepper/gov-stepper-item.css +450 -0
- package/dist/collection/components/gov-stepper/gov-stepper-item.d.js +2 -0
- package/dist/collection/components/gov-stepper/gov-stepper-item.d.js.map +1 -0
- package/dist/collection/components/gov-stepper/gov-stepper-item.js +246 -0
- package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -0
- package/dist/collection/components/gov-stepper/gov-stepper.css +228 -0
- package/dist/collection/components/gov-stepper/gov-stepper.js +97 -0
- package/dist/collection/components/gov-stepper/gov-stepper.js.map +1 -0
- package/dist/collection/components/gov-tabs/constants.js +25 -0
- package/dist/collection/components/gov-tabs/constants.js.map +1 -0
- package/dist/collection/components/gov-tabs/gov-tabs-item.css +229 -0
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +183 -0
- package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -0
- package/dist/collection/components/gov-tabs/gov-tabs.css +381 -0
- package/dist/collection/components/gov-tabs/gov-tabs.js +422 -0
- package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -0
- package/dist/collection/components/gov-tabs/gov-tabs.types.js +2 -0
- package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -0
- package/dist/collection/components/gov-tile/constants.js +10 -0
- package/dist/collection/components/gov-tile/constants.js.map +1 -0
- package/dist/collection/components/gov-tile/container/constants.js +4 -0
- package/dist/collection/components/gov-tile/container/constants.js.map +1 -0
- package/dist/collection/components/gov-tile/container/gov-tiles.css +310 -0
- package/dist/collection/components/gov-tile/container/gov-tiles.js +70 -0
- package/dist/collection/components/gov-tile/container/gov-tiles.js.map +1 -0
- package/dist/collection/components/gov-tile/gov-tile.css +326 -0
- package/dist/collection/components/gov-tile/gov-tile.js +99 -0
- package/dist/collection/components/gov-tile/gov-tile.js.map +1 -0
- package/dist/collection/components/gov-toast/constants.js +13 -0
- package/dist/collection/components/gov-toast/constants.js.map +1 -0
- package/dist/collection/components/gov-toast/gov-toast.css +394 -0
- package/dist/collection/components/gov-toast/gov-toast.js +267 -0
- package/dist/collection/components/gov-toast/gov-toast.js.map +1 -0
- package/dist/collection/components/gov-tooltip/constants.js +19 -0
- package/dist/collection/components/gov-tooltip/constants.js.map +1 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +324 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +63 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip.css +253 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +322 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -0
- package/dist/collection/components/gov-wizzard/constants.js +20 -0
- package/dist/collection/components/gov-wizzard/constants.js.map +1 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.css +441 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js +2 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js.map +1 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.js +381 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +1 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard.css +231 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard.js +168 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard.js.map +1 -0
- package/dist/collection/core/constants/sizes.js +15 -0
- package/dist/collection/core/constants/sizes.js.map +1 -0
- package/dist/collection/core/constants/tags.js +14 -0
- package/dist/collection/core/constants/tags.js.map +1 -0
- package/dist/collection/core/constants/variants.js +15 -0
- package/dist/collection/core/constants/variants.js.map +1 -0
- package/dist/collection/helpers/Dom/form.js +72 -0
- package/dist/collection/helpers/Dom/form.js.map +1 -0
- package/dist/collection/helpers/Dom/form.types.js +2 -0
- package/dist/collection/helpers/Dom/form.types.js.map +1 -0
- package/dist/collection/helpers/Dom/template.js +110 -0
- package/dist/collection/helpers/Dom/template.js.map +1 -0
- package/dist/collection/helpers/Dom/template.types.js +2 -0
- package/dist/collection/helpers/Dom/template.types.js.map +1 -0
- package/dist/collection/helpers/Dom/win.js +18 -0
- package/dist/collection/helpers/Dom/win.js.map +1 -0
- package/dist/collection/helpers/Fragment.js +2 -0
- package/dist/collection/helpers/Fragment.js.map +1 -0
- package/dist/collection/helpers/Log/gov.log.js +14 -0
- package/dist/collection/helpers/Log/gov.log.js.map +1 -0
- package/dist/collection/helpers/StorybookDocsTemplate.js +9 -0
- package/dist/collection/helpers/StorybookDocsTemplate.js.map +1 -0
- package/dist/collection/helpers/Validate/props.js +10 -0
- package/dist/collection/helpers/Validate/props.js.map +1 -0
- package/dist/collection/helpers/Validate/wcag.js +58 -0
- package/dist/collection/helpers/Validate/wcag.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/pages/Accordion.js +349 -0
- package/dist/collection/pages/Accordion.js.map +1 -0
- package/dist/collection/pages/Alert.js +83 -0
- package/dist/collection/pages/Alert.js.map +1 -0
- package/dist/collection/pages/Badge.js +321 -0
- package/dist/collection/pages/Badge.js.map +1 -0
- package/dist/collection/pages/Breadcrumbs.js +36 -0
- package/dist/collection/pages/Breadcrumbs.js.map +1 -0
- package/dist/collection/pages/Button.js +1277 -0
- package/dist/collection/pages/Button.js.map +1 -0
- package/dist/collection/pages/Card.js +102 -0
- package/dist/collection/pages/Card.js.map +1 -0
- package/dist/collection/pages/Container.js +15 -0
- package/dist/collection/pages/Container.js.map +1 -0
- package/dist/collection/pages/Cookiebar.js +29 -0
- package/dist/collection/pages/Cookiebar.js.map +1 -0
- package/dist/collection/pages/Empty.js +43 -0
- package/dist/collection/pages/Empty.js.map +1 -0
- package/dist/collection/pages/Error.js +16 -0
- package/dist/collection/pages/Error.js.map +1 -0
- package/dist/collection/pages/FormLabel.js +13 -0
- package/dist/collection/pages/FormLabel.js.map +1 -0
- package/dist/collection/pages/FormMessage.js +82 -0
- package/dist/collection/pages/FormMessage.js.map +1 -0
- package/dist/collection/pages/Forms.js +1205 -0
- package/dist/collection/pages/Forms.js.map +1 -0
- package/dist/collection/pages/FormsRestructure.js +13 -0
- package/dist/collection/pages/FormsRestructure.js.map +1 -0
- package/dist/collection/pages/Grid.js +92 -0
- package/dist/collection/pages/Grid.js.map +1 -0
- package/dist/collection/pages/Home.js +9 -0
- package/dist/collection/pages/Home.js.map +1 -0
- package/dist/collection/pages/Layout.js +97 -0
- package/dist/collection/pages/Layout.js.map +1 -0
- package/dist/collection/pages/Loading.js +95 -0
- package/dist/collection/pages/Loading.js.map +1 -0
- package/dist/collection/pages/Message.js +94 -0
- package/dist/collection/pages/Message.js.map +1 -0
- package/dist/collection/pages/Modal.js +57 -0
- package/dist/collection/pages/Modal.js.map +1 -0
- package/dist/collection/pages/Nav.js +30 -0
- package/dist/collection/pages/Nav.js.map +1 -0
- package/dist/collection/pages/Pagination.js +38 -0
- package/dist/collection/pages/Pagination.js.map +1 -0
- package/dist/collection/pages/Prompt.js +48 -0
- package/dist/collection/pages/Prompt.js.map +1 -0
- package/dist/collection/pages/SideNav.js +117 -0
- package/dist/collection/pages/SideNav.js.map +1 -0
- package/dist/collection/pages/Spacer.js +19 -0
- package/dist/collection/pages/Spacer.js.map +1 -0
- package/dist/collection/pages/Statsbar.js +202 -0
- package/dist/collection/pages/Statsbar.js.map +1 -0
- package/dist/collection/pages/Stepper.js +85 -0
- package/dist/collection/pages/Stepper.js.map +1 -0
- package/dist/collection/pages/Tabs.js +323 -0
- package/dist/collection/pages/Tabs.js.map +1 -0
- package/dist/collection/pages/Tiles.js +119 -0
- package/dist/collection/pages/Tiles.js.map +1 -0
- package/dist/collection/pages/ToastMessage.js +47 -0
- package/dist/collection/pages/ToastMessage.js.map +1 -0
- package/dist/collection/pages/ToastMessageCountdown.js +47 -0
- package/dist/collection/pages/ToastMessageCountdown.js.map +1 -0
- package/dist/collection/pages/Tooltip.js +137 -0
- package/dist/collection/pages/Tooltip.js.map +1 -0
- package/dist/collection/pages/Typography.js +75 -0
- package/dist/collection/pages/Typography.js.map +1 -0
- package/dist/collection/pages/Wizzard.js +88 -0
- package/dist/collection/pages/Wizzard.js.map +1 -0
- package/dist/collection/types/interfaces.js +2 -0
- package/dist/collection/types/interfaces.js.map +1 -0
- package/dist/collection/utils/array.utils.js +2 -0
- package/dist/collection/utils/array.utils.js.map +1 -0
- package/dist/collection/utils/bool.utils.js +15 -0
- package/dist/collection/utils/bool.utils.js.map +1 -0
- package/dist/collection/utils/ds.utils.js +5 -0
- package/dist/collection/utils/ds.utils.js.map +1 -0
- package/dist/collection/utils/file.utils.js +26 -0
- package/dist/collection/utils/file.utils.js.map +1 -0
- package/dist/collection/utils/icon.utils.js +31 -0
- package/dist/collection/utils/icon.utils.js.map +1 -0
- package/dist/collection/utils/number.utils.js +4 -0
- package/dist/collection/utils/number.utils.js.map +1 -0
- package/dist/collection/utils/string.utils.js +17 -0
- package/dist/collection/utils/string.utils.js.map +1 -0
- package/dist/collection/utils/utils.js +35 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/Fragment.js +5 -0
- package/dist/components/Fragment.js.map +1 -0
- package/dist/components/constants.js +25 -0
- package/dist/components/constants.js.map +1 -0
- package/dist/components/constants10.js +19 -0
- package/dist/components/constants10.js.map +1 -0
- package/dist/components/constants11.js +22 -0
- package/dist/components/constants11.js.map +1 -0
- package/dist/components/constants12.js +25 -0
- package/dist/components/constants12.js.map +1 -0
- package/dist/components/constants13.js +29 -0
- package/dist/components/constants13.js.map +1 -0
- package/dist/components/constants14.js +23 -0
- package/dist/components/constants14.js.map +1 -0
- package/dist/components/constants15.js +24 -0
- package/dist/components/constants15.js.map +1 -0
- package/dist/components/constants2.js +15 -0
- package/dist/components/constants2.js.map +1 -0
- package/dist/components/constants3.js +33 -0
- package/dist/components/constants3.js.map +1 -0
- package/dist/components/constants4.js +12 -0
- package/dist/components/constants4.js.map +1 -0
- package/dist/components/constants5.js +13 -0
- package/dist/components/constants5.js.map +1 -0
- package/dist/components/constants6.js +10 -0
- package/dist/components/constants6.js.map +1 -0
- package/dist/components/constants7.js +22 -0
- package/dist/components/constants7.js.map +1 -0
- package/dist/components/constants8.js +17 -0
- package/dist/components/constants8.js.map +1 -0
- package/dist/components/constants9.js +12 -0
- package/dist/components/constants9.js.map +1 -0
- package/dist/components/form.js +150 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/gov-accordion-item.d.ts +11 -0
- package/dist/components/gov-accordion-item.js +144 -0
- package/dist/components/gov-accordion-item.js.map +1 -0
- package/dist/components/gov-accordion.d.ts +11 -0
- package/dist/components/gov-accordion.js +92 -0
- package/dist/components/gov-accordion.js.map +1 -0
- package/dist/components/gov-alert.d.ts +11 -0
- package/dist/components/gov-alert.js +87 -0
- package/dist/components/gov-alert.js.map +1 -0
- package/dist/components/gov-app.d.ts +11 -0
- package/dist/components/gov-app.js +8369 -0
- package/dist/components/gov-app.js.map +1 -0
- package/dist/components/gov-attachments-item.d.ts +11 -0
- package/dist/components/gov-attachments-item.js +8 -0
- package/dist/components/gov-attachments-item.js.map +1 -0
- package/dist/components/gov-attachments-item2.js +69 -0
- package/dist/components/gov-attachments-item2.js.map +1 -0
- package/dist/components/gov-attachments.d.ts +11 -0
- package/dist/components/gov-attachments.js +8 -0
- package/dist/components/gov-attachments.js.map +1 -0
- package/dist/components/gov-attachments2.js +56 -0
- package/dist/components/gov-attachments2.js.map +1 -0
- package/dist/components/gov-backdrop.d.ts +11 -0
- package/dist/components/gov-backdrop.js +8 -0
- package/dist/components/gov-backdrop.js.map +1 -0
- package/dist/components/gov-backdrop2.js +68 -0
- package/dist/components/gov-backdrop2.js.map +1 -0
- package/dist/components/gov-badge.d.ts +11 -0
- package/dist/components/gov-badge.js +8 -0
- package/dist/components/gov-badge.js.map +1 -0
- package/dist/components/gov-badge2.js +100 -0
- package/dist/components/gov-badge2.js.map +1 -0
- package/dist/components/gov-breadcrumbs.d.ts +11 -0
- package/dist/components/gov-breadcrumbs.js +67 -0
- package/dist/components/gov-breadcrumbs.js.map +1 -0
- package/dist/components/gov-button.d.ts +11 -0
- package/dist/components/gov-button.js +8 -0
- package/dist/components/gov-button.js.map +1 -0
- package/dist/components/gov-button2.js +201 -0
- package/dist/components/gov-button2.js.map +1 -0
- package/dist/components/gov-card.d.ts +11 -0
- package/dist/components/gov-card.js +143 -0
- package/dist/components/gov-card.js.map +1 -0
- package/dist/components/gov-container.d.ts +11 -0
- package/dist/components/gov-container.js +51 -0
- package/dist/components/gov-container.js.map +1 -0
- package/dist/components/gov-cookiebar.d.ts +11 -0
- package/dist/components/gov-cookiebar.js +46 -0
- package/dist/components/gov-cookiebar.js.map +1 -0
- package/dist/components/gov-empty.d.ts +11 -0
- package/dist/components/gov-empty.js +44 -0
- package/dist/components/gov-empty.js.map +1 -0
- package/dist/components/gov-error-code.d.ts +11 -0
- package/dist/components/gov-error-code.js +44 -0
- package/dist/components/gov-error-code.js.map +1 -0
- package/dist/components/gov-form-autocomplete.d.ts +11 -0
- package/dist/components/gov-form-autocomplete.js +8 -0
- package/dist/components/gov-form-autocomplete.js.map +1 -0
- package/dist/components/gov-form-autocomplete2.js +222 -0
- package/dist/components/gov-form-autocomplete2.js.map +1 -0
- package/dist/components/gov-form-checkbox.d.ts +11 -0
- package/dist/components/gov-form-checkbox.js +141 -0
- package/dist/components/gov-form-checkbox.js.map +1 -0
- package/dist/components/gov-form-control.d.ts +11 -0
- package/dist/components/gov-form-control.js +114 -0
- package/dist/components/gov-form-control.js.map +1 -0
- package/dist/components/gov-form-file.d.ts +11 -0
- package/dist/components/gov-form-file.js +242 -0
- package/dist/components/gov-form-file.js.map +1 -0
- package/dist/components/gov-form-group.d.ts +11 -0
- package/dist/components/gov-form-group.js +57 -0
- package/dist/components/gov-form-group.js.map +1 -0
- package/dist/components/gov-form-input.d.ts +11 -0
- package/dist/components/gov-form-input.js +8 -0
- package/dist/components/gov-form-input.js.map +1 -0
- package/dist/components/gov-form-input2.js +193 -0
- package/dist/components/gov-form-input2.js.map +1 -0
- package/dist/components/gov-form-label.d.ts +11 -0
- package/dist/components/gov-form-label.js +46 -0
- package/dist/components/gov-form-label.js.map +1 -0
- package/dist/components/gov-form-message.d.ts +11 -0
- package/dist/components/gov-form-message.js +8 -0
- package/dist/components/gov-form-message.js.map +1 -0
- package/dist/components/gov-form-message2.js +57 -0
- package/dist/components/gov-form-message2.js.map +1 -0
- package/dist/components/gov-form-multi-select.d.ts +11 -0
- package/dist/components/gov-form-multi-select.js +246 -0
- package/dist/components/gov-form-multi-select.js.map +1 -0
- package/dist/components/gov-form-password-power.d.ts +11 -0
- package/dist/components/gov-form-password-power.js +43 -0
- package/dist/components/gov-form-password-power.js.map +1 -0
- package/dist/components/gov-form-radio.d.ts +11 -0
- package/dist/components/gov-form-radio.js +135 -0
- package/dist/components/gov-form-radio.js.map +1 -0
- package/dist/components/gov-form-search.d.ts +11 -0
- package/dist/components/gov-form-search.js +41 -0
- package/dist/components/gov-form-search.js.map +1 -0
- package/dist/components/gov-form-select.d.ts +11 -0
- package/dist/components/gov-form-select.js +8 -0
- package/dist/components/gov-form-select.js.map +1 -0
- package/dist/components/gov-form-select2.js +152 -0
- package/dist/components/gov-form-select2.js.map +1 -0
- package/dist/components/gov-form-switch.d.ts +11 -0
- package/dist/components/gov-form-switch.js +135 -0
- package/dist/components/gov-form-switch.js.map +1 -0
- package/dist/components/gov-grid-item.d.ts +11 -0
- package/dist/components/gov-grid-item.js +49 -0
- package/dist/components/gov-grid-item.js.map +1 -0
- package/dist/components/gov-grid.d.ts +11 -0
- package/dist/components/gov-grid.js +44 -0
- package/dist/components/gov-grid.js.map +1 -0
- package/dist/components/gov-icon.d.ts +11 -0
- package/dist/components/gov-icon.js +8 -0
- package/dist/components/gov-icon.js.map +1 -0
- package/dist/components/gov-icon2.js +141 -0
- package/dist/components/gov-icon2.js.map +1 -0
- package/dist/components/gov-layout-column.d.ts +11 -0
- package/dist/components/gov-layout-column.js +38 -0
- package/dist/components/gov-layout-column.js.map +1 -0
- package/dist/components/gov-layout.d.ts +11 -0
- package/dist/components/gov-layout.js +51 -0
- package/dist/components/gov-layout.js.map +1 -0
- package/dist/components/gov-loading.d.ts +11 -0
- package/dist/components/gov-loading.js +58 -0
- package/dist/components/gov-loading.js.map +1 -0
- package/dist/components/gov-message.d.ts +11 -0
- package/dist/components/gov-message.js +57 -0
- package/dist/components/gov-message.js.map +1 -0
- package/dist/components/gov-modal.d.ts +11 -0
- package/dist/components/gov-modal.js +149 -0
- package/dist/components/gov-modal.js.map +1 -0
- package/dist/components/gov-nav-item.d.ts +11 -0
- package/dist/components/gov-nav-item.js +53 -0
- package/dist/components/gov-nav-item.js.map +1 -0
- package/dist/components/gov-nav.d.ts +11 -0
- package/dist/components/gov-nav.js +57 -0
- package/dist/components/gov-nav.js.map +1 -0
- package/dist/components/gov-pagination.d.ts +11 -0
- package/dist/components/gov-pagination.js +255 -0
- package/dist/components/gov-pagination.js.map +1 -0
- package/dist/components/gov-prompt.d.ts +11 -0
- package/dist/components/gov-prompt.js +149 -0
- package/dist/components/gov-prompt.js.map +1 -0
- package/dist/components/gov-side-nav-item.d.ts +11 -0
- package/dist/components/gov-side-nav-item.js +124 -0
- package/dist/components/gov-side-nav-item.js.map +1 -0
- package/dist/components/gov-side-nav.d.ts +11 -0
- package/dist/components/gov-side-nav.js +73 -0
- package/dist/components/gov-side-nav.js.map +1 -0
- package/dist/components/gov-skeleton.d.ts +11 -0
- package/dist/components/gov-skeleton.js +137 -0
- package/dist/components/gov-skeleton.js.map +1 -0
- package/dist/components/gov-spacer.d.ts +11 -0
- package/dist/components/gov-spacer.js +72 -0
- package/dist/components/gov-spacer.js.map +1 -0
- package/dist/components/gov-statsbar-item.d.ts +11 -0
- package/dist/components/gov-statsbar-item.js +51 -0
- package/dist/components/gov-statsbar-item.js.map +1 -0
- package/dist/components/gov-statsbar.d.ts +11 -0
- package/dist/components/gov-statsbar.js +65 -0
- package/dist/components/gov-statsbar.js.map +1 -0
- package/dist/components/gov-stepper-item.d.ts +11 -0
- package/dist/components/gov-stepper-item.js +96 -0
- package/dist/components/gov-stepper-item.js.map +1 -0
- package/dist/components/gov-stepper.d.ts +11 -0
- package/dist/components/gov-stepper.js +61 -0
- package/dist/components/gov-stepper.js.map +1 -0
- package/dist/components/gov-tabs-item.d.ts +11 -0
- package/dist/components/gov-tabs-item.js +73 -0
- package/dist/components/gov-tabs-item.js.map +1 -0
- package/dist/components/gov-tabs.d.ts +11 -0
- package/dist/components/gov-tabs.js +232 -0
- package/dist/components/gov-tabs.js.map +1 -0
- package/dist/components/gov-tile.d.ts +11 -0
- package/dist/components/gov-tile.js +73 -0
- package/dist/components/gov-tile.js.map +1 -0
- package/dist/components/gov-tiles.d.ts +11 -0
- package/dist/components/gov-tiles.js +49 -0
- package/dist/components/gov-tiles.js.map +1 -0
- package/dist/components/gov-toast.d.ts +11 -0
- package/dist/components/gov-toast.js +136 -0
- package/dist/components/gov-toast.js.map +1 -0
- package/dist/components/gov-tooltip-content.d.ts +11 -0
- package/dist/components/gov-tooltip-content.js +54 -0
- package/dist/components/gov-tooltip-content.js.map +1 -0
- package/dist/components/gov-tooltip.d.ts +11 -0
- package/dist/components/gov-tooltip.js +176 -0
- package/dist/components/gov-tooltip.js.map +1 -0
- package/dist/components/gov-wizzard-item.d.ts +11 -0
- package/dist/components/gov-wizzard-item.js +141 -0
- package/dist/components/gov-wizzard-item.js.map +1 -0
- package/dist/components/gov-wizzard.d.ts +11 -0
- package/dist/components/gov-wizzard.js +81 -0
- package/dist/components/gov-wizzard.js.map +1 -0
- package/dist/components/gov.log.js +17 -0
- package/dist/components/gov.log.js.map +1 -0
- package/dist/components/index.d.ts +79 -0
- package/dist/components/index.js +61 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/props.js +14 -0
- package/dist/components/props.js.map +1 -0
- package/dist/components/sizes.js +18 -0
- package/dist/components/sizes.js.map +1 -0
- package/dist/components/string.utils.js +20 -0
- package/dist/components/string.utils.js.map +1 -0
- package/dist/components/template.js +113 -0
- package/dist/components/template.js.map +1 -0
- package/dist/components/utils.js +35 -0
- package/dist/components/utils.js.map +1 -0
- package/dist/components/variants.js +18 -0
- package/dist/components/variants.js.map +1 -0
- package/dist/components/wcag.js +62 -0
- package/dist/components/wcag.js.map +1 -0
- package/dist/components/win.js +22 -0
- package/dist/components/win.js.map +1 -0
- package/dist/core/core.css +1 -0
- package/dist/core/core.esm.js +2 -0
- package/dist/core/core.esm.js.map +1 -0
- package/dist/core/index.esm.js +2 -0
- package/dist/core/index.esm.js.map +1 -0
- package/dist/core/p-0272ffa0.entry.js +2 -0
- package/dist/core/p-0272ffa0.entry.js.map +1 -0
- package/dist/core/p-03990da5.js +2 -0
- package/dist/core/p-03990da5.js.map +1 -0
- package/dist/core/p-042d5b20.entry.js +2 -0
- package/dist/core/p-042d5b20.entry.js.map +1 -0
- package/dist/core/p-0874a5ec.entry.js +2 -0
- package/dist/core/p-0874a5ec.entry.js.map +1 -0
- package/dist/core/p-0f0564e8.entry.js +2 -0
- package/dist/core/p-0f0564e8.entry.js.map +1 -0
- package/dist/core/p-1020a160.js +2 -0
- package/dist/core/p-1020a160.js.map +1 -0
- package/dist/core/p-131c50d1.entry.js +2 -0
- package/dist/core/p-131c50d1.entry.js.map +1 -0
- package/dist/core/p-1c1d0bbe.js +2 -0
- package/dist/core/p-1c1d0bbe.js.map +1 -0
- package/dist/core/p-1def0eb2.entry.js +2 -0
- package/dist/core/p-1def0eb2.entry.js.map +1 -0
- package/dist/core/p-2426fa82.entry.js +2 -0
- package/dist/core/p-2426fa82.entry.js.map +1 -0
- package/dist/core/p-24636c53.js +2 -0
- package/dist/core/p-24636c53.js.map +1 -0
- package/dist/core/p-24877419.entry.js +2 -0
- package/dist/core/p-24877419.entry.js.map +1 -0
- package/dist/core/p-26acf964.js +2 -0
- package/dist/core/p-26acf964.js.map +1 -0
- package/dist/core/p-2f88b6d9.entry.js +2 -0
- package/dist/core/p-2f88b6d9.entry.js.map +1 -0
- package/dist/core/p-30b162df.entry.js +2 -0
- package/dist/core/p-30b162df.entry.js.map +1 -0
- package/dist/core/p-337fb136.entry.js +2 -0
- package/dist/core/p-337fb136.entry.js.map +1 -0
- package/dist/core/p-3464136c.js +2 -0
- package/dist/core/p-3464136c.js.map +1 -0
- package/dist/core/p-364b4792.js +2 -0
- package/dist/core/p-364b4792.js.map +1 -0
- package/dist/core/p-36be8f6e.js +2 -0
- package/dist/core/p-36be8f6e.js.map +1 -0
- package/dist/core/p-3f37ddb6.js +2 -0
- package/dist/core/p-3f37ddb6.js.map +1 -0
- package/dist/core/p-3f92f3bf.entry.js +2 -0
- package/dist/core/p-3f92f3bf.entry.js.map +1 -0
- package/dist/core/p-402c2751.entry.js +2 -0
- package/dist/core/p-402c2751.entry.js.map +1 -0
- package/dist/core/p-404f469e.js +2 -0
- package/dist/core/p-404f469e.js.map +1 -0
- package/dist/core/p-405fc50f.entry.js +2 -0
- package/dist/core/p-405fc50f.entry.js.map +1 -0
- package/dist/core/p-42636ddf.entry.js +2 -0
- package/dist/core/p-42636ddf.entry.js.map +1 -0
- package/dist/core/p-429850b9.entry.js +2 -0
- package/dist/core/p-429850b9.entry.js.map +1 -0
- package/dist/core/p-45485d1c.js +2 -0
- package/dist/core/p-45485d1c.js.map +1 -0
- package/dist/core/p-471c0863.entry.js +2 -0
- package/dist/core/p-471c0863.entry.js.map +1 -0
- package/dist/core/p-4af5e4f4.js +3 -0
- package/dist/core/p-4af5e4f4.js.map +1 -0
- package/dist/core/p-52dc68aa.entry.js +2 -0
- package/dist/core/p-52dc68aa.entry.js.map +1 -0
- package/dist/core/p-540e79c4.entry.js +2 -0
- package/dist/core/p-540e79c4.entry.js.map +1 -0
- package/dist/core/p-55500e5a.js +2 -0
- package/dist/core/p-55500e5a.js.map +1 -0
- package/dist/core/p-561fa17b.js +2 -0
- package/dist/core/p-561fa17b.js.map +1 -0
- package/dist/core/p-5a1c8d48.entry.js +2 -0
- package/dist/core/p-5a1c8d48.entry.js.map +1 -0
- package/dist/core/p-5d348765.entry.js +2 -0
- package/dist/core/p-5d348765.entry.js.map +1 -0
- package/dist/core/p-5defdc5e.js +2 -0
- package/dist/core/p-5defdc5e.js.map +1 -0
- package/dist/core/p-5e4cf9a2.entry.js +2 -0
- package/dist/core/p-5e4cf9a2.entry.js.map +1 -0
- package/dist/core/p-61103476.entry.js +2 -0
- package/dist/core/p-61103476.entry.js.map +1 -0
- package/dist/core/p-6278531b.js +2 -0
- package/dist/core/p-6278531b.js.map +1 -0
- package/dist/core/p-64ced668.js +2 -0
- package/dist/core/p-64ced668.js.map +1 -0
- package/dist/core/p-67006730.entry.js +2 -0
- package/dist/core/p-67006730.entry.js.map +1 -0
- package/dist/core/p-6aa31f02.entry.js +2 -0
- package/dist/core/p-6aa31f02.entry.js.map +1 -0
- package/dist/core/p-732f74fe.entry.js +2 -0
- package/dist/core/p-732f74fe.entry.js.map +1 -0
- package/dist/core/p-76e2aa52.entry.js +2 -0
- package/dist/core/p-76e2aa52.entry.js.map +1 -0
- package/dist/core/p-7bfa06b1.entry.js +2 -0
- package/dist/core/p-7bfa06b1.entry.js.map +1 -0
- package/dist/core/p-80e30702.js +2 -0
- package/dist/core/p-80e30702.js.map +1 -0
- package/dist/core/p-8204070b.entry.js +2 -0
- package/dist/core/p-8204070b.entry.js.map +1 -0
- package/dist/core/p-8bebbcc7.entry.js +2 -0
- package/dist/core/p-8bebbcc7.entry.js.map +1 -0
- package/dist/core/p-9144dde1.js +2 -0
- package/dist/core/p-9144dde1.js.map +1 -0
- package/dist/core/p-93edcce2.entry.js +2 -0
- package/dist/core/p-93edcce2.entry.js.map +1 -0
- package/dist/core/p-9bdce72b.entry.js +2 -0
- package/dist/core/p-9bdce72b.entry.js.map +1 -0
- package/dist/core/p-9cd80b05.js +2 -0
- package/dist/core/p-9cd80b05.js.map +1 -0
- package/dist/core/p-a4d23e73.entry.js +2 -0
- package/dist/core/p-a4d23e73.entry.js.map +1 -0
- package/dist/core/p-a5d69694.js +2 -0
- package/dist/core/p-a5d69694.js.map +1 -0
- package/dist/core/p-a6d14a47.js +2 -0
- package/dist/core/p-a6d14a47.js.map +1 -0
- package/dist/core/p-a89c27c1.entry.js +2 -0
- package/dist/core/p-a89c27c1.entry.js.map +1 -0
- package/dist/core/p-aba39622.entry.js +2 -0
- package/dist/core/p-aba39622.entry.js.map +1 -0
- package/dist/core/p-b2275b3d.js +2 -0
- package/dist/core/p-b2275b3d.js.map +1 -0
- package/dist/core/p-b7587525.entry.js +2 -0
- package/dist/core/p-b7587525.entry.js.map +1 -0
- package/dist/core/p-bce96aac.entry.js +2 -0
- package/dist/core/p-bce96aac.entry.js.map +1 -0
- package/dist/core/p-c20102ff.js +2 -0
- package/dist/core/p-c20102ff.js.map +1 -0
- package/dist/core/p-c836f7cd.entry.js +2 -0
- package/dist/core/p-c836f7cd.entry.js.map +1 -0
- package/dist/core/p-c91928ed.entry.js +2 -0
- package/dist/core/p-c91928ed.entry.js.map +1 -0
- package/dist/core/p-d2f6053f.entry.js +2 -0
- package/dist/core/p-d2f6053f.entry.js.map +1 -0
- package/dist/core/p-d389c001.entry.js +2 -0
- package/dist/core/p-d389c001.entry.js.map +1 -0
- package/dist/core/p-d5c2db32.entry.js +2 -0
- package/dist/core/p-d5c2db32.entry.js.map +1 -0
- package/dist/core/p-d8def432.entry.js +2 -0
- package/dist/core/p-d8def432.entry.js.map +1 -0
- package/dist/core/p-d90a2718.entry.js +2 -0
- package/dist/core/p-d90a2718.entry.js.map +1 -0
- package/dist/core/p-d9b4bc20.entry.js +2 -0
- package/dist/core/p-d9b4bc20.entry.js.map +1 -0
- package/dist/core/p-dc94a1da.entry.js +2 -0
- package/dist/core/p-dc94a1da.entry.js.map +1 -0
- package/dist/core/p-e1e4c8f8.entry.js +2 -0
- package/dist/core/p-e1e4c8f8.entry.js.map +1 -0
- package/dist/core/p-e3141382.entry.js +2 -0
- package/dist/core/p-e3141382.entry.js.map +1 -0
- package/dist/core/p-e4bb6100.entry.js +2 -0
- package/dist/core/p-e4bb6100.entry.js.map +1 -0
- package/dist/core/p-e4bb6114.entry.js +2 -0
- package/dist/core/p-e4bb6114.entry.js.map +1 -0
- package/dist/core/p-e6b8c610.entry.js +2 -0
- package/dist/core/p-e6b8c610.entry.js.map +1 -0
- package/dist/core/p-ef393836.entry.js +2 -0
- package/dist/core/p-ef393836.entry.js.map +1 -0
- package/dist/core/p-ef79904e.js +2 -0
- package/dist/core/p-ef79904e.js.map +1 -0
- package/dist/core/p-f027a1a1.entry.js +2 -0
- package/dist/core/p-f027a1a1.entry.js.map +1 -0
- package/dist/core/p-f0a4439e.entry.js +2 -0
- package/dist/core/p-f0a4439e.entry.js.map +1 -0
- package/dist/core/p-f644cad5.entry.js +2 -0
- package/dist/core/p-f644cad5.entry.js.map +1 -0
- package/dist/core/p-f687452c.js +2 -0
- package/dist/core/p-f687452c.js.map +1 -0
- package/dist/core/p-f6e2f2f0.entry.js +2 -0
- package/dist/core/p-f6e2f2f0.entry.js.map +1 -0
- package/dist/core/p-ff7365ae.js +2 -0
- package/dist/core/p-ff7365ae.js.map +1 -0
- package/dist/core/p-ffb7495c.js +2 -0
- package/dist/core/p-ffb7495c.js.map +1 -0
- package/dist/custom-elements/index.d.ts +387 -0
- package/dist/custom-elements/index.js +2 -0
- package/dist/custom-elements/index.js.map +1 -0
- package/dist/esm/Fragment-8d8d54fb.js +5 -0
- package/dist/esm/Fragment-8d8d54fb.js.map +1 -0
- package/dist/esm/constants-037c35bc.js +22 -0
- package/dist/esm/constants-037c35bc.js.map +1 -0
- package/dist/esm/constants-089b3fdd.js +33 -0
- package/dist/esm/constants-089b3fdd.js.map +1 -0
- package/dist/esm/constants-136d4cd3.js +16 -0
- package/dist/esm/constants-136d4cd3.js.map +1 -0
- package/dist/esm/constants-24dad929.js +29 -0
- package/dist/esm/constants-24dad929.js.map +1 -0
- package/dist/esm/constants-2b14bb01.js +10 -0
- package/dist/esm/constants-2b14bb01.js.map +1 -0
- package/dist/esm/constants-2e8258cf.js +15 -0
- package/dist/esm/constants-2e8258cf.js.map +1 -0
- package/dist/esm/constants-3786b01b.js +22 -0
- package/dist/esm/constants-3786b01b.js.map +1 -0
- package/dist/esm/constants-3df712e2.js +13 -0
- package/dist/esm/constants-3df712e2.js.map +1 -0
- package/dist/esm/constants-78474786.js +25 -0
- package/dist/esm/constants-78474786.js.map +1 -0
- package/dist/esm/constants-ab132d9c.js +25 -0
- package/dist/esm/constants-ab132d9c.js.map +1 -0
- package/dist/esm/constants-ba13b28f.js +17 -0
- package/dist/esm/constants-ba13b28f.js.map +1 -0
- package/dist/esm/constants-bf5a583f.js +24 -0
- package/dist/esm/constants-bf5a583f.js.map +1 -0
- package/dist/esm/constants-d71c09e0.js +12 -0
- package/dist/esm/constants-d71c09e0.js.map +1 -0
- package/dist/esm/constants-ebec7de8.js +12 -0
- package/dist/esm/constants-ebec7de8.js.map +1 -0
- package/dist/esm/constants-f5c21493.js +19 -0
- package/dist/esm/constants-f5c21493.js.map +1 -0
- package/dist/esm/constants-f7b618c2.js +23 -0
- package/dist/esm/constants-f7b618c2.js.map +1 -0
- package/dist/esm/core.js +19 -0
- package/dist/esm/core.js.map +1 -0
- package/dist/esm/form-669a7180.js +135 -0
- package/dist/esm/form-669a7180.js.map +1 -0
- package/dist/esm/gov-accordion-item.entry.js +109 -0
- package/dist/esm/gov-accordion-item.entry.js.map +1 -0
- package/dist/esm/gov-accordion.entry.js +71 -0
- package/dist/esm/gov-accordion.entry.js.map +1 -0
- package/dist/esm/gov-alert.entry.js +54 -0
- package/dist/esm/gov-alert.entry.js.map +1 -0
- package/dist/esm/gov-app.entry.js +8352 -0
- package/dist/esm/gov-app.entry.js.map +1 -0
- package/dist/esm/gov-attachments_3.entry.js +114 -0
- package/dist/esm/gov-attachments_3.entry.js.map +1 -0
- package/dist/esm/gov-backdrop.entry.js +50 -0
- package/dist/esm/gov-backdrop.entry.js.map +1 -0
- package/dist/esm/gov-badge.entry.js +80 -0
- package/dist/esm/gov-badge.entry.js.map +1 -0
- package/dist/esm/gov-breadcrumbs.entry.js +46 -0
- package/dist/esm/gov-breadcrumbs.entry.js.map +1 -0
- package/dist/esm/gov-button.entry.js +151 -0
- package/dist/esm/gov-button.entry.js.map +1 -0
- package/dist/esm/gov-card.entry.js +108 -0
- package/dist/esm/gov-card.entry.js.map +1 -0
- package/dist/esm/gov-container.entry.js +32 -0
- package/dist/esm/gov-container.entry.js.map +1 -0
- package/dist/esm/gov-cookiebar.entry.js +29 -0
- package/dist/esm/gov-cookiebar.entry.js.map +1 -0
- package/dist/esm/gov-empty.entry.js +27 -0
- package/dist/esm/gov-empty.entry.js.map +1 -0
- package/dist/esm/gov-error-code.entry.js +27 -0
- package/dist/esm/gov-error-code.entry.js.map +1 -0
- package/dist/esm/gov-form-autocomplete.entry.js +173 -0
- package/dist/esm/gov-form-autocomplete.entry.js.map +1 -0
- package/dist/esm/gov-form-checkbox.entry.js +111 -0
- package/dist/esm/gov-form-checkbox.entry.js.map +1 -0
- package/dist/esm/gov-form-control.entry.js +96 -0
- package/dist/esm/gov-form-control.entry.js.map +1 -0
- package/dist/esm/gov-form-file.entry.js +183 -0
- package/dist/esm/gov-form-file.entry.js.map +1 -0
- package/dist/esm/gov-form-group.entry.js +39 -0
- package/dist/esm/gov-form-group.entry.js.map +1 -0
- package/dist/esm/gov-form-input.entry.js +147 -0
- package/dist/esm/gov-form-input.entry.js.map +1 -0
- package/dist/esm/gov-form-label.entry.js +26 -0
- package/dist/esm/gov-form-label.entry.js.map +1 -0
- package/dist/esm/gov-form-multi-select.entry.js +189 -0
- package/dist/esm/gov-form-multi-select.entry.js.map +1 -0
- package/dist/esm/gov-form-password-power.entry.js +24 -0
- package/dist/esm/gov-form-password-power.entry.js.map +1 -0
- package/dist/esm/gov-form-radio.entry.js +111 -0
- package/dist/esm/gov-form-radio.entry.js.map +1 -0
- package/dist/esm/gov-form-search.entry.js +24 -0
- package/dist/esm/gov-form-search.entry.js.map +1 -0
- package/dist/esm/gov-form-select.entry.js +120 -0
- package/dist/esm/gov-form-select.entry.js.map +1 -0
- package/dist/esm/gov-form-switch.entry.js +111 -0
- package/dist/esm/gov-form-switch.entry.js.map +1 -0
- package/dist/esm/gov-grid-item.entry.js +26 -0
- package/dist/esm/gov-grid-item.entry.js.map +1 -0
- package/dist/esm/gov-grid.entry.js +24 -0
- package/dist/esm/gov-grid.entry.js.map +1 -0
- package/dist/esm/gov-icon.entry.js +122 -0
- package/dist/esm/gov-icon.entry.js.map +1 -0
- package/dist/esm/gov-layout-column.entry.js +21 -0
- package/dist/esm/gov-layout-column.entry.js.map +1 -0
- package/dist/esm/gov-layout.entry.js +30 -0
- package/dist/esm/gov-layout.entry.js.map +1 -0
- package/dist/esm/gov-loading.entry.js +27 -0
- package/dist/esm/gov-loading.entry.js.map +1 -0
- package/dist/esm/gov-message.entry.js +39 -0
- package/dist/esm/gov-message.entry.js.map +1 -0
- package/dist/esm/gov-modal.entry.js +101 -0
- package/dist/esm/gov-modal.entry.js.map +1 -0
- package/dist/esm/gov-nav-item.entry.js +33 -0
- package/dist/esm/gov-nav-item.entry.js.map +1 -0
- package/dist/esm/gov-nav.entry.js +38 -0
- package/dist/esm/gov-nav.entry.js.map +1 -0
- package/dist/esm/gov-pagination.entry.js +205 -0
- package/dist/esm/gov-pagination.entry.js.map +1 -0
- package/dist/esm/gov-prompt.entry.js +101 -0
- package/dist/esm/gov-prompt.entry.js.map +1 -0
- package/dist/esm/gov-side-nav-item.entry.js +81 -0
- package/dist/esm/gov-side-nav-item.entry.js.map +1 -0
- package/dist/esm/gov-side-nav.entry.js +52 -0
- package/dist/esm/gov-side-nav.entry.js.map +1 -0
- package/dist/esm/gov-skeleton.entry.js +113 -0
- package/dist/esm/gov-skeleton.entry.js.map +1 -0
- package/dist/esm/gov-spacer.entry.js +53 -0
- package/dist/esm/gov-spacer.entry.js.map +1 -0
- package/dist/esm/gov-statsbar-item.entry.js +35 -0
- package/dist/esm/gov-statsbar-item.entry.js.map +1 -0
- package/dist/esm/gov-statsbar.entry.js +48 -0
- package/dist/esm/gov-statsbar.entry.js.map +1 -0
- package/dist/esm/gov-stepper-item.entry.js +73 -0
- package/dist/esm/gov-stepper-item.entry.js.map +1 -0
- package/dist/esm/gov-stepper.entry.js +46 -0
- package/dist/esm/gov-stepper.entry.js.map +1 -0
- package/dist/esm/gov-tabs-item.entry.js +49 -0
- package/dist/esm/gov-tabs-item.entry.js.map +1 -0
- package/dist/esm/gov-tabs.entry.js +185 -0
- package/dist/esm/gov-tabs.entry.js.map +1 -0
- package/dist/esm/gov-tile.entry.js +46 -0
- package/dist/esm/gov-tile.entry.js.map +1 -0
- package/dist/esm/gov-tiles.entry.js +29 -0
- package/dist/esm/gov-tiles.entry.js.map +1 -0
- package/dist/esm/gov-toast.entry.js +99 -0
- package/dist/esm/gov-toast.entry.js.map +1 -0
- package/dist/esm/gov-tooltip-content.entry.js +38 -0
- package/dist/esm/gov-tooltip-content.entry.js.map +1 -0
- package/dist/esm/gov-tooltip.entry.js +154 -0
- package/dist/esm/gov-tooltip.entry.js.map +1 -0
- package/dist/esm/gov-wizzard-item.entry.js +106 -0
- package/dist/esm/gov-wizzard-item.entry.js.map +1 -0
- package/dist/esm/gov-wizzard.entry.js +63 -0
- package/dist/esm/gov-wizzard.entry.js.map +1 -0
- package/dist/esm/gov.log-af905420.js +17 -0
- package/dist/esm/gov.log-af905420.js.map +1 -0
- package/dist/esm/index-b010bfb4.js +2296 -0
- package/dist/esm/index-b010bfb4.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +19 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/props-789f7529.js +14 -0
- package/dist/esm/props-789f7529.js.map +1 -0
- package/dist/esm/sizes-6c5943b4.js +18 -0
- package/dist/esm/sizes-6c5943b4.js.map +1 -0
- package/dist/esm/string.utils-f268fc6b.js +20 -0
- package/dist/esm/string.utils-f268fc6b.js.map +1 -0
- package/dist/esm/template-10332292.js +113 -0
- package/dist/esm/template-10332292.js.map +1 -0
- package/dist/esm/utils-c057a3fa.js +35 -0
- package/dist/esm/utils-c057a3fa.js.map +1 -0
- package/dist/esm/variants-2b936d58.js +18 -0
- package/dist/esm/variants-2b936d58.js.map +1 -0
- package/dist/esm/wcag-3792d4bb.js +62 -0
- package/dist/esm/wcag-3792d4bb.js.map +1 -0
- package/dist/esm/win-9c8460bb.js +22 -0
- package/dist/esm/win-9c8460bb.js.map +1 -0
- package/dist/globals.d.ts +2 -0
- package/dist/hydrate/index.d.ts +217 -0
- package/dist/hydrate/index.js +20113 -0
- package/dist/hydrate/package.json +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.js +77 -0
- package/dist/stencil.config.js.map +1 -0
- package/dist/types/Users/iwory/iWork/asseco/mv/gov-design-system-ce/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
- package/dist/types/components/gov-accordion/constants.d.ts +22 -0
- package/dist/types/components/gov-accordion/gov-accordion-item.d.d.ts +4 -0
- package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +75 -0
- package/dist/types/components/gov-accordion/gov-accordion.d.ts +42 -0
- package/dist/types/components/gov-alert/constants.d.ts +11 -0
- package/dist/types/components/gov-alert/gov-alert.d.ts +30 -0
- package/dist/types/components/gov-app/gov-app.d.ts +38 -0
- package/dist/types/components/gov-attachments/constants.d.ts +11 -0
- package/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
- package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +24 -0
- package/dist/types/components/gov-attachments/gov-attachments.d.ts +19 -0
- package/dist/types/components/gov-backdrop/constants.d.ts +4 -0
- package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +32 -0
- package/dist/types/components/gov-badge/constants.d.ts +13 -0
- package/dist/types/components/gov-badge/gov-badge.d.ts +58 -0
- package/dist/types/components/gov-breadcrumbs/constants.d.ts +3 -0
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +4 -0
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +33 -0
- package/dist/types/components/gov-button/constants.d.ts +30 -0
- package/dist/types/components/gov-button/gov-button.d.ts +167 -0
- package/dist/types/components/gov-card/constants.d.ts +13 -0
- package/dist/types/components/gov-card/gov-card.d.ts +60 -0
- package/dist/types/components/gov-card/interfaces.d.ts +4 -0
- package/dist/types/components/gov-container/constants.d.ts +3 -0
- package/dist/types/components/gov-container/gov-container.d.ts +12 -0
- package/dist/types/components/gov-cookiebar/constants.d.ts +8 -0
- package/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
- package/dist/types/components/gov-empty/constants.d.ts +6 -0
- package/dist/types/components/gov-empty/gov-empty.d.ts +6 -0
- package/dist/types/components/gov-error-code/constants.d.ts +6 -0
- package/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
- package/dist/types/components/gov-form/autocomplete/constants.d.ts +12 -0
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +132 -0
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +3 -0
- package/dist/types/components/gov-form/checkbox/constants.d.ts +8 -0
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +82 -0
- package/dist/types/components/gov-form/checkbox/interfaces.d.ts +4 -0
- package/dist/types/components/gov-form/control/constants.d.ts +9 -0
- package/dist/types/components/gov-form/control/gov-form-control.d.ts +47 -0
- package/dist/types/components/gov-form/file/constants.d.ts +9 -0
- package/dist/types/components/gov-form/file/gov-form-file.d.ts +114 -0
- package/dist/types/components/gov-form/file/gov-form-file.types.d.ts +6 -0
- package/dist/types/components/gov-form/group/constants.d.ts +7 -0
- package/dist/types/components/gov-form/group/gov-form-group.d.ts +13 -0
- package/dist/types/components/gov-form/input/constants.d.ts +30 -0
- package/dist/types/components/gov-form/input/gov-form-input.d.ts +165 -0
- package/dist/types/components/gov-form/label/constants.d.ts +8 -0
- package/dist/types/components/gov-form/label/gov-form-label.d.ts +26 -0
- package/dist/types/components/gov-form/message/constants.d.ts +9 -0
- package/dist/types/components/gov-form/message/gov-form-message.d.ts +19 -0
- package/dist/types/components/gov-form/multiselect/constants.d.ts +13 -0
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +105 -0
- package/dist/types/components/gov-form/multiselect/interfaces.d.ts +4 -0
- package/dist/types/components/gov-form/password-power/constants.d.ts +5 -0
- package/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +7 -0
- package/dist/types/components/gov-form/radio/constants.d.ts +10 -0
- package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +82 -0
- package/dist/types/components/gov-form/radio/interfaces.d.ts +4 -0
- package/dist/types/components/gov-form/search/constants.d.ts +5 -0
- package/dist/types/components/gov-form/search/gov-form-search.d.ts +4 -0
- package/dist/types/components/gov-form/select/constants.d.ts +11 -0
- package/dist/types/components/gov-form/select/gov-form-select.d.ts +101 -0
- package/dist/types/components/gov-form/switch/constants.d.ts +10 -0
- package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +82 -0
- package/dist/types/components/gov-form/switch/interfaces.d.ts +4 -0
- package/dist/types/components/gov-grid/constants.d.ts +6 -0
- package/dist/types/components/gov-grid/gov-grid-item.d.ts +26 -0
- package/dist/types/components/gov-grid/gov-grid.d.ts +14 -0
- package/dist/types/components/gov-icon/constants.d.ts +12 -0
- package/dist/types/components/gov-icon/gov-icon.d.ts +24 -0
- package/dist/types/components/gov-icon/list.d.ts +3 -0
- package/dist/types/components/gov-layout/constants.d.ts +20 -0
- package/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
- package/dist/types/components/gov-layout/gov-layout.d.ts +20 -0
- package/dist/types/components/gov-loading/loading/constants.d.ts +5 -0
- package/dist/types/components/gov-loading/loading/gov-loading.d.ts +10 -0
- package/dist/types/components/gov-loading/skeleton/constants.d.ts +20 -0
- package/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +52 -0
- package/dist/types/components/gov-message/constants.d.ts +10 -0
- package/dist/types/components/gov-message/gov-message.d.ts +12 -0
- package/dist/types/components/gov-modal/constants.d.ts +13 -0
- package/dist/types/components/gov-modal/gov-modal.d.ts +65 -0
- package/dist/types/components/gov-nav/constants.d.ts +8 -0
- package/dist/types/components/gov-nav/gov-nav-item.d.ts +12 -0
- package/dist/types/components/gov-nav/gov-nav.d.ts +17 -0
- package/dist/types/components/gov-pagination/constants.d.ts +22 -0
- package/dist/types/components/gov-pagination/gov-pagination.d.ts +85 -0
- package/dist/types/components/gov-pagination/pagination.d.ts +12 -0
- package/dist/types/components/gov-promp/constants.d.ts +12 -0
- package/dist/types/components/gov-promp/gov-prompt.d.ts +65 -0
- package/dist/types/components/gov-side-nav/constants.d.ts +15 -0
- package/dist/types/components/gov-side-nav/gov-side-nav-item.d.d.ts +4 -0
- package/dist/types/components/gov-side-nav/gov-side-nav-item.d.ts +67 -0
- package/dist/types/components/gov-side-nav/gov-side-nav.d.ts +32 -0
- package/dist/types/components/gov-spacer/constants.d.ts +15 -0
- package/dist/types/components/gov-spacer/gov-spacer.d.ts +18 -0
- package/dist/types/components/gov-statsbar/constants.d.ts +18 -0
- package/dist/types/components/gov-statsbar/gov-statsbar-item.d.ts +14 -0
- package/dist/types/components/gov-statsbar/gov-statsbar.d.ts +19 -0
- package/dist/types/components/gov-stepper/constants.d.ts +22 -0
- package/dist/types/components/gov-stepper/gov-stepper-item.d.d.ts +4 -0
- package/dist/types/components/gov-stepper/gov-stepper-item.d.ts +48 -0
- package/dist/types/components/gov-stepper/gov-stepper.d.ts +20 -0
- package/dist/types/components/gov-tabs/constants.d.ts +25 -0
- package/dist/types/components/gov-tabs/gov-tabs-item.d.ts +37 -0
- package/dist/types/components/gov-tabs/gov-tabs.d.ts +73 -0
- package/dist/types/components/gov-tabs/gov-tabs.types.d.ts +8 -0
- package/dist/types/components/gov-tile/constants.d.ts +9 -0
- package/dist/types/components/gov-tile/container/constants.d.ts +3 -0
- package/dist/types/components/gov-tile/container/gov-tiles.d.ts +15 -0
- package/dist/types/components/gov-tile/gov-tile.d.ts +20 -0
- package/dist/types/components/gov-toast/constants.d.ts +14 -0
- package/dist/types/components/gov-toast/gov-toast.d.ts +55 -0
- package/dist/types/components/gov-tooltip/constants.d.ts +20 -0
- package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +10 -0
- package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +50 -0
- package/dist/types/components/gov-wizzard/constants.d.ts +21 -0
- package/dist/types/components/gov-wizzard/gov-wizzard-item.d.d.ts +4 -0
- package/dist/types/components/gov-wizzard/gov-wizzard-item.d.ts +73 -0
- package/dist/types/components/gov-wizzard/gov-wizzard.d.ts +33 -0
- package/dist/types/components.d.ts +4021 -0
- package/dist/types/core/constants/sizes.d.ts +13 -0
- package/dist/types/core/constants/tags.d.ts +12 -0
- package/dist/types/core/constants/variants.d.ts +12 -0
- package/dist/types/helpers/Dom/form.d.ts +3 -0
- package/dist/types/helpers/Dom/form.types.d.ts +11 -0
- package/dist/types/helpers/Dom/template.d.ts +10 -0
- package/dist/types/helpers/Dom/template.types.d.ts +12 -0
- package/dist/types/helpers/Dom/win.d.ts +9 -0
- package/dist/types/helpers/Fragment.d.ts +2 -0
- package/dist/types/helpers/Log/gov.log.d.ts +8 -0
- package/dist/types/helpers/StorybookDocsTemplate.d.ts +3 -0
- package/dist/types/helpers/Validate/props.d.ts +1 -0
- package/dist/types/helpers/Validate/wcag.d.ts +4 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/pages/Accordion.d.ts +3 -0
- package/dist/types/pages/Alert.d.ts +3 -0
- package/dist/types/pages/Badge.d.ts +3 -0
- package/dist/types/pages/Breadcrumbs.d.ts +3 -0
- package/dist/types/pages/Button.d.ts +3 -0
- package/dist/types/pages/Card.d.ts +3 -0
- package/dist/types/pages/Container.d.ts +3 -0
- package/dist/types/pages/Cookiebar.d.ts +3 -0
- package/dist/types/pages/Empty.d.ts +3 -0
- package/dist/types/pages/Error.d.ts +3 -0
- package/dist/types/pages/FormLabel.d.ts +3 -0
- package/dist/types/pages/FormMessage.d.ts +3 -0
- package/dist/types/pages/Forms.d.ts +8 -0
- package/dist/types/pages/FormsRestructure.d.ts +3 -0
- package/dist/types/pages/Grid.d.ts +3 -0
- package/dist/types/pages/Home.d.ts +3 -0
- package/dist/types/pages/Layout.d.ts +3 -0
- package/dist/types/pages/Loading.d.ts +3 -0
- package/dist/types/pages/Message.d.ts +3 -0
- package/dist/types/pages/Modal.d.ts +3 -0
- package/dist/types/pages/Nav.d.ts +3 -0
- package/dist/types/pages/Pagination.d.ts +3 -0
- package/dist/types/pages/Prompt.d.ts +3 -0
- package/dist/types/pages/SideNav.d.ts +3 -0
- package/dist/types/pages/Spacer.d.ts +3 -0
- package/dist/types/pages/Statsbar.d.ts +3 -0
- package/dist/types/pages/Stepper.d.ts +3 -0
- package/dist/types/pages/Tabs.d.ts +3 -0
- package/dist/types/pages/Tiles.d.ts +3 -0
- package/dist/types/pages/ToastMessage.d.ts +3 -0
- package/dist/types/pages/ToastMessageCountdown.d.ts +3 -0
- package/dist/types/pages/Tooltip.d.ts +3 -0
- package/dist/types/pages/Typography.d.ts +3 -0
- package/dist/types/pages/Wizzard.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +1581 -0
- package/dist/types/types/interfaces.d.ts +2 -0
- package/dist/types/types/typings.d.ts +6 -0
- package/dist/types/utils/array.utils.d.ts +1 -0
- package/dist/types/utils/bool.utils.d.ts +1 -0
- package/dist/types/utils/ds.utils.d.ts +1 -0
- package/dist/types/utils/file.utils.d.ts +3 -0
- package/dist/types/utils/icon.utils.d.ts +4 -0
- package/dist/types/utils/number.utils.d.ts +1 -0
- package/dist/types/utils/string.utils.d.ts +3 -0
- package/dist/types/utils/utils.d.ts +20 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +1 -1
- package/LICENSE +0 -21
- package/readme.md +0 -86
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as n}from"./p-03990da5.js";const t=t=>window&&n(t,window);const o=()=>{const n={canValidateWcagOnRender:false,iconsPath:"./assets/icons",documentNode:document?document:null};const o=t("GOV_DS_CONFIG");if(o){return Object.assign(Object.assign({},n),o)}return n};const s=()=>o().canValidateWcagOnRender;const c=()=>o().iconsPath;const e=()=>o().documentNode;export{s as c,e as d,c as i};
|
|
2
|
+
//# sourceMappingURL=p-c20102ff.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/core/src/helpers/Dom/win.ts"],"names":["getWindowProperty","name","window","property","config","defaultConfig","canValidateWcagOnRender","iconsPath","documentNode","document","windowProperty","Object","assign"],"mappings":"oCAQA,MAAMA,EAAwBC,GAAyCC,QAAUC,EAASF,EAA6BC,QAEvH,MAAME,EAAS,KACd,MAAMC,EAAyB,CAC9BC,wBAAyB,MACzBC,UAAW,iBACXC,aAAcC,SAAWA,SAAW,MAGrC,MAAMC,EAAiBV,EAA2B,iBAClD,GAAIU,EAAgB,CACnB,OAAAC,OAAAC,OAAAD,OAAAC,OAAA,GAAYP,GAAkBK,GAG/B,OAAOL,SAGKC,EAA0B,IAA0CF,IAASE,8BAC7EC,EAAY,IAA4BH,IAASG,gBACjDC,EAAe,IAA+BJ,IAASI","sourcesContent":["import { property } from '../../utils/utils'\n\ninterface IConfig {\n\tcanValidateWcagOnRender: boolean\n\ticonsPath: string\n\tdocumentNode: Document\n}\n\nconst getWindowProperty = <T>(name: string): Partial<T> | undefined => window && property(name as keyof typeof window, window)\n\nconst config = (): IConfig => {\n\tconst defaultConfig: IConfig = {\n\t\tcanValidateWcagOnRender: false,\n\t\ticonsPath: './assets/icons',\n\t\tdocumentNode: document ? document : null,\n\t}\n\n\tconst windowProperty = getWindowProperty<IConfig>('GOV_DS_CONFIG')\n\tif (windowProperty) {\n\t\treturn { ...defaultConfig, ...windowProperty }\n\t}\n\n\treturn defaultConfig\n}\n\nexport const canValidateWcagOnRender = (): IConfig['canValidateWcagOnRender'] => config().canValidateWcagOnRender\nexport const iconsPath = (): IConfig['iconsPath'] => config().iconsPath\nexport const documentNode = (): IConfig['documentNode'] => config().documentNode\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,c as o,h as r,H as t,g as n}from"./p-4af5e4f4.js";import{v as a}from"./p-26acf964.js";import{b as i,B as v,T as l,N as s}from"./p-b2275b3d.js";import{g as b,p as u,t as g,a as d}from"./p-3f37ddb6.js";import{S as c}from"./p-55500e5a.js";import{a as p,v as m}from"./p-364b4792.js";import{c as y}from"./p-c20102ff.js";import{d as h}from"./p-03990da5.js";import"./p-561fa17b.js";import"./p-ff7365ae.js";import"./p-24636c53.js";function k(e){if(typeof e==="string"){return["true","True","TRUE","1"].indexOf(e)!==-1}else if(typeof e==="number"){return e>0}else if(typeof e==="boolean"){return e}else{return e?true:false}}const w='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-button{display:inline-flex}.gov-button .element{margin:0;padding:0;font-family:var(--gov-font-family, "Roboto", sans-serif);font-weight:400;box-sizing:border-box;display:inline-flex;vertical-align:middle;justify-content:center;align-items:center;border:0;background-color:transparent;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:var(--gov-button-border-width, 0.0625rem) solid transparent;transition:background-color 150ms ease-in-out, border-color 150ms ease-in-out, color 150ms ease-in-out;cursor:inherit;will-change:background-color, border-color}.gov-button .element:focus{outline:none}.gov-button .element .gov-icon{flex:0 0 auto;color:inherit}.gov-button .element>*{display:flex}[hoverable].gov-button .element{cursor:pointer}[hoverable].gov-button .element:focus{outline:none}[hoverable].gov-button .element:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0.0625rem}[hoverable][type=outlined].gov-button .element:focus-visible,[hoverable][type=base].gov-button .element:focus-visible{outline-offset:0}[hoverable][disabled=""].gov-button,[hoverable][disabled=true i].gov-button,[hoverable][disabled="1"].gov-button{cursor:not-allowed}[hoverable][disabled=""].gov-button .element,[hoverable][disabled=true i].gov-button .element,[hoverable][disabled="1"].gov-button .element{pointer-events:none}[expanded=""].gov-button,[expanded=true i].gov-button,[expanded="1"].gov-button{display:block}[expanded=""].gov-button .element,[expanded=true i].gov-button .element,[expanded="1"].gov-button .element{display:flex;width:100%;margin-right:0;margin-left:0}[type=solid][variant=primary].gov-button .element{background-color:var(--gov-button-primary-solid-bg, var(--gov-color-primary));color:var(--gov-button-primary-solid-color, var(--gov-color-neutral-white));border-width:0}[type=solid][variant=primary][inverse=""].gov-button .element,[type=solid][variant=primary][inverse=true i].gov-button .element,[type=solid][variant=primary][inverse="1"].gov-button .element{color:var(--gov-button-primary-solid-inverse-color, var(--gov-color-primary));background-color:var(--gov-button-primary-solid-inverse-bg, var(--gov-color-primary-200))}[type=solid][variant=primary][inverse=""].gov-button .element:focus-visible,[type=solid][variant=primary][inverse=true i].gov-button .element:focus-visible,[type=solid][variant=primary][inverse="1"].gov-button .element:focus-visible{background-color:var(--gov-button-primary-solid-inverse-focus-bg, var(--gov-color-neutral-white))}[type=solid][variant=primary][disabled=""].gov-button .element,[type=solid][variant=primary][disabled=true i].gov-button .element,[type=solid][variant=primary][disabled="1"].gov-button .element{background-color:var(--gov-button-primary-solid-disabled-bg, var(--gov-color-primary-300));color:var(--gov-button-primary-solid-disabled-color, var(--gov-color-neutral-white))}[type=solid][variant=primary][disabled=""][inverse=""].gov-button .element,[type=solid][variant=primary][disabled=""][inverse=true i].gov-button .element,[type=solid][variant=primary][disabled=""][inverse="1"].gov-button .element,[type=solid][variant=primary][disabled=true i][inverse=""].gov-button .element,[type=solid][variant=primary][disabled=true i][inverse=true i].gov-button .element,[type=solid][variant=primary][disabled=true i][inverse="1"].gov-button .element,[type=solid][variant=primary][disabled="1"][inverse=""].gov-button .element,[type=solid][variant=primary][disabled="1"][inverse=true i].gov-button .element,[type=solid][variant=primary][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-primary-solid-inverse-disabled-bg, var(--gov-color-primary-300));color:var(--gov-button-primary-solid-inverse-disabled-color, var(--gov-color-primary-400))}@media not all and (pointer: coarse){[type=solid][variant=primary][hoverable].gov-button .element:hover{background-color:var(--gov-button-primary-solid-hover-bg, var(--gov-color-primary-700));color:var(--gov-button-primary-solid-hover-color, var(--gov-color-neutral-white))}[type=solid][variant=primary][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-primary-solid-active-bg, var(--gov-color-primary-800))}}@media not all and (pointer: coarse){[type=solid][variant=primary][hoverable][inverse=""].gov-button .element:hover,[type=solid][variant=primary][hoverable][inverse=true i].gov-button .element:hover,[type=solid][variant=primary][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-primary-solid-inverse-hover-bg, var(--gov-color-primary-700));color:var(--gov-button-primary-solid-inverse-hover-color, var(--gov-color-neutral-white))}[type=solid][variant=primary][hoverable][inverse=""].gov-button .element:hover:active,[type=solid][variant=primary][hoverable][inverse=true i].gov-button .element:hover:active,[type=solid][variant=primary][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-primary-solid-inverse-active-bg, var(--gov-color-primary-800))}}[type=outlined][variant=primary].gov-button .element{color:var(--gov-button-primary-outlined-color, var(--gov-color-primary));border-color:var(--gov-button-primary-outlined-border, var(--gov-color-primary))}[type=outlined][variant=primary][inverse=""].gov-button .element,[type=outlined][variant=primary][inverse=true i].gov-button .element,[type=outlined][variant=primary][inverse="1"].gov-button .element{color:var(--gov-button-primary-outlined-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-primary-outlined-inverse-bg, transparent);border-color:var(--gov-button-primary-outlined-inverse-border, var(--gov-color-neutral-white))}[type=outlined][variant=primary][inverse=""].gov-button .element:focus-visible,[type=outlined][variant=primary][inverse=true i].gov-button .element:focus-visible,[type=outlined][variant=primary][inverse="1"].gov-button .element:focus-visible{background-color:var(--gov-button-primary-outlined-inverse-focus-bg, transparent)}[type=outlined][variant=primary][disabled=""].gov-button .element,[type=outlined][variant=primary][disabled=true i].gov-button .element,[type=outlined][variant=primary][disabled="1"].gov-button .element{background-color:var(--gov-button-primary-outlined-disabled-bg, transparent);color:var(--gov-button-primary-outlined-disabled-color, var(--gov-color-primary-400));border-color:var(--gov-button-primary-outlined-disabled-border, var(--gov-color-primary-300))}[type=outlined][variant=primary][disabled=""][inverse=""].gov-button .element,[type=outlined][variant=primary][disabled=""][inverse=true i].gov-button .element,[type=outlined][variant=primary][disabled=""][inverse="1"].gov-button .element,[type=outlined][variant=primary][disabled=true i][inverse=""].gov-button .element,[type=outlined][variant=primary][disabled=true i][inverse=true i].gov-button .element,[type=outlined][variant=primary][disabled=true i][inverse="1"].gov-button .element,[type=outlined][variant=primary][disabled="1"][inverse=""].gov-button .element,[type=outlined][variant=primary][disabled="1"][inverse=true i].gov-button .element,[type=outlined][variant=primary][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-primary-outlined-inverse-disabled-bg, var(--gov-color-primary-300));color:var(--gov-button-primary-outlined-inverse-disabled-color, var(--gov-color-primary-400));border-color:var(--gov-button-primary-outlined-inverse-disabled-border-color, var(--gov-color-primary-400))}@media not all and (pointer: coarse){[type=outlined][variant=primary][hoverable].gov-button .element:hover{background-color:var(--gov-button-primary-outlined-hover-bg, var(--gov-color-primary-100));color:var(--gov-button-primary-outlined-hover-color, var(--gov-color-primary))}[type=outlined][variant=primary][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-primary-outlined-active-bg, var(--gov-color-primary-300))}}@media not all and (pointer: coarse){[type=outlined][variant=primary][hoverable][inverse=""].gov-button .element:hover,[type=outlined][variant=primary][hoverable][inverse=true i].gov-button .element:hover,[type=outlined][variant=primary][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-primary-outlined-inverse-hover-bg, var(--gov-color-primary-500));color:var(--gov-button-primary-outlined-inverse-hover-color, var(--gov-color-neutral-white))}[type=outlined][variant=primary][hoverable][inverse=""].gov-button .element:hover:active,[type=outlined][variant=primary][hoverable][inverse=true i].gov-button .element:hover:active,[type=outlined][variant=primary][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-primary-outlined-inverse-active-bg, var(--gov-color-primary-400))}}[type=base][variant=primary].gov-button .element{color:var(--gov-button-primary-base-color, var(--gov-color-primary));border-width:0}[type=base][variant=primary][inverse=""].gov-button .element,[type=base][variant=primary][inverse=true i].gov-button .element,[type=base][variant=primary][inverse="1"].gov-button .element{color:var(--gov-button-primary-base-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-primary-base-inverse-bg, transparent)}[type=base][variant=primary][disabled=""].gov-button .element,[type=base][variant=primary][disabled=true i].gov-button .element,[type=base][variant=primary][disabled="1"].gov-button .element{color:var(--gov-button-primary-base-disabled-color, var(--gov-color-primary-400))}[type=base][variant=primary][disabled=""][inverse=""].gov-button .element,[type=base][variant=primary][disabled=""][inverse=true i].gov-button .element,[type=base][variant=primary][disabled=""][inverse="1"].gov-button .element,[type=base][variant=primary][disabled=true i][inverse=""].gov-button .element,[type=base][variant=primary][disabled=true i][inverse=true i].gov-button .element,[type=base][variant=primary][disabled=true i][inverse="1"].gov-button .element,[type=base][variant=primary][disabled="1"][inverse=""].gov-button .element,[type=base][variant=primary][disabled="1"][inverse=true i].gov-button .element,[type=base][variant=primary][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-primary-base-inverse-disabled-bg, var(--gov-color-primary-300));color:var(--gov-button-primary-base-inverse-disabled-color, var(--gov-color-primary-400))}@media not all and (pointer: coarse){[type=base][variant=primary][hoverable].gov-button .element:hover{background-color:var(--gov-button-primary-base-hover-bg, var(--gov-color-primary-100));color:var(--gov-button-primary-base-hover-color, var(--gov-color-primary))}[type=base][variant=primary][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-primary-base-active-bg, var(--gov-color-primary-300))}}@media not all and (pointer: coarse){[type=base][variant=primary][hoverable][inverse=""].gov-button .element:hover,[type=base][variant=primary][hoverable][inverse=true i].gov-button .element:hover,[type=base][variant=primary][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-primary-base-inverse-hover-bg, var(--gov-color-primary-500));color:var(--gov-button-primary-base-inverse-hover-color, var(--gov-color-neutral-white))}[type=base][variant=primary][hoverable][inverse=""].gov-button .element:hover:active,[type=base][variant=primary][hoverable][inverse=true i].gov-button .element:hover:active,[type=base][variant=primary][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-primary-base-inverse-active-bg, var(--gov-color-primary-400));color:var(--gov-button-primary-base-inverse-active-color, var(--gov-color-neutral-white))}}[type=link][variant=primary].gov-button .element{color:var(--gov-button-primary-link-color, var(--gov-color-primary));border-width:0}[type=link][variant=primary][inverse=""].gov-button .element,[type=link][variant=primary][inverse=true i].gov-button .element,[type=link][variant=primary][inverse="1"].gov-button .element{color:var(--gov-button-primary-link-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-primary-link-inverse-bg, transparent)}[type=link][variant=primary][disabled=""].gov-button .element,[type=link][variant=primary][disabled=true i].gov-button .element,[type=link][variant=primary][disabled="1"].gov-button .element{color:var(--gov-button-primary-link-disabled-color, var(--gov-color-primary-400))}[type=link][variant=primary][disabled=""][inverse=""].gov-button .element,[type=link][variant=primary][disabled=""][inverse=true i].gov-button .element,[type=link][variant=primary][disabled=""][inverse="1"].gov-button .element,[type=link][variant=primary][disabled=true i][inverse=""].gov-button .element,[type=link][variant=primary][disabled=true i][inverse=true i].gov-button .element,[type=link][variant=primary][disabled=true i][inverse="1"].gov-button .element,[type=link][variant=primary][disabled="1"][inverse=""].gov-button .element,[type=link][variant=primary][disabled="1"][inverse=true i].gov-button .element,[type=link][variant=primary][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-primary-link-inverse-disabled-bg, transparent);color:var(--gov-button-primary-link-inverse-disabled-color, var(--gov-color-primary-400))}@media not all and (pointer: coarse){[type=link][variant=primary][hoverable].gov-button .element:hover{background-color:var(--gov-button-primary-link-hover-bg, transparent);color:var(--gov-button-primary-link-hover-color, var(--gov-color-primary))}[type=link][variant=primary][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-primary-link-active-bg, transparent);color:var(--gov-button-primary-link-active-color, var(--gov-color-primary-700))}}@media not all and (pointer: coarse){[type=link][variant=primary][hoverable][inverse=""].gov-button .element:hover,[type=link][variant=primary][hoverable][inverse=true i].gov-button .element:hover,[type=link][variant=primary][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-primary-link-inverse-hover-bg, transparent);color:var(--gov-button-primary-link-inverse-hover-color, var(--gov-color-neutral-white))}[type=link][variant=primary][hoverable][inverse=""].gov-button .element:hover:active,[type=link][variant=primary][hoverable][inverse=true i].gov-button .element:hover:active,[type=link][variant=primary][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-primary-link-inverse-active-bg, transparent);color:var(--gov-button-primary-link-inverse-active-color, var(--gov-color-primary-200))}}[type=solid][variant=secondary].gov-button .element{background-color:var(--gov-button-secondary-solid-bg, var(--gov-color-secondary));color:var(--gov-button-secondary-solid-color, var(--gov-color-neutral-white));border-width:0}[type=solid][variant=secondary][inverse=""].gov-button .element,[type=solid][variant=secondary][inverse=true i].gov-button .element,[type=solid][variant=secondary][inverse="1"].gov-button .element{color:var(--gov-button-secondary-solid-inverse-color, var(--gov-color-secondary));background-color:var(--gov-button-secondary-solid-inverse-bg, var(--gov-color-neutral-white))}[type=solid][variant=secondary][inverse=""].gov-button .element:focus-visible,[type=solid][variant=secondary][inverse=true i].gov-button .element:focus-visible,[type=solid][variant=secondary][inverse="1"].gov-button .element:focus-visible{background-color:var(--gov-button-secondary-solid-inverse-focus-bg, var(--gov-color-neutral-white))}[type=solid][variant=secondary][disabled=""].gov-button .element,[type=solid][variant=secondary][disabled=true i].gov-button .element,[type=solid][variant=secondary][disabled="1"].gov-button .element{background-color:var(--gov-button-secondary-solid-disabled-bg, var(--gov-color-secondary-300));color:var(--gov-button-secondary-solid-disabled-color, var(--gov-color-secondary-600))}[type=solid][variant=secondary][disabled=""][inverse=""].gov-button .element,[type=solid][variant=secondary][disabled=""][inverse=true i].gov-button .element,[type=solid][variant=secondary][disabled=""][inverse="1"].gov-button .element,[type=solid][variant=secondary][disabled=true i][inverse=""].gov-button .element,[type=solid][variant=secondary][disabled=true i][inverse=true i].gov-button .element,[type=solid][variant=secondary][disabled=true i][inverse="1"].gov-button .element,[type=solid][variant=secondary][disabled="1"][inverse=""].gov-button .element,[type=solid][variant=secondary][disabled="1"][inverse=true i].gov-button .element,[type=solid][variant=secondary][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-secondary-solid-inverse-disabled-bg, var(--gov-color-neutral-white));color:var(--gov-button-secondary-solid-inverse-disabled-color, var(--gov-color-secondary-600))}@media not all and (pointer: coarse){[type=solid][variant=secondary][hoverable].gov-button .element:hover{background-color:var(--gov-button-secondary-solid-hover-bg, var(--gov-color-secondary-900));color:var(--gov-button-secondary-solid-hover-color, var(--gov-color-neutral-white))}[type=solid][variant=secondary][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-secondary-solid-active-bg, var(--gov-color-secondary))}}@media not all and (pointer: coarse){[type=solid][variant=secondary][hoverable][inverse=""].gov-button .element:hover,[type=solid][variant=secondary][hoverable][inverse=true i].gov-button .element:hover,[type=solid][variant=secondary][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-secondary-solid-inverse-hover-bg, var(--gov-color-secondary-600));color:var(--gov-button-secondary-solid-inverse-hover-color, var(--gov-color-neutral-white))}[type=solid][variant=secondary][hoverable][inverse=""].gov-button .element:hover:active,[type=solid][variant=secondary][hoverable][inverse=true i].gov-button .element:hover:active,[type=solid][variant=secondary][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-secondary-solid-inverse-active-bg, var(--gov-color-secondary-700));color:var(--gov-button-secondary-solid-inverse-active-color, var(--gov-color-neutral-white))}}[type=outlined][variant=secondary].gov-button .element{color:var(--gov-button-secondary-outlined-color, var(--gov-color-secondary));border-color:var(--gov-button-secondary-outlined-border, var(--gov-color-secondary))}[type=outlined][variant=secondary][inverse=""].gov-button .element,[type=outlined][variant=secondary][inverse=true i].gov-button .element,[type=outlined][variant=secondary][inverse="1"].gov-button .element{color:var(--gov-button-secondary-outlined-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-secondary-outlined-inverse-bg, transparent);border-color:var(--gov-button-secondary-outlined-inverse-border, var(--gov-color-neutral-white))}[type=outlined][variant=secondary][inverse=""].gov-button .element:focus-visible,[type=outlined][variant=secondary][inverse=true i].gov-button .element:focus-visible,[type=outlined][variant=secondary][inverse="1"].gov-button .element:focus-visible{background-color:var(--gov-button-secondary-outlined-inverse-focus-bg, transparent)}[type=outlined][variant=secondary][disabled=""].gov-button .element,[type=outlined][variant=secondary][disabled=true i].gov-button .element,[type=outlined][variant=secondary][disabled="1"].gov-button .element{background-color:var(--gov-button-secondary-outlined-disabled-bg, transparent);color:var(--gov-button-secondary-outlined-disabled-color, var(--gov-color-secondary-500));border-color:var(--gov-button-secondary-outlined-disabled-border, var(--gov-color-secondary-500))}[type=outlined][variant=secondary][disabled=""][inverse=""].gov-button .element,[type=outlined][variant=secondary][disabled=""][inverse=true i].gov-button .element,[type=outlined][variant=secondary][disabled=""][inverse="1"].gov-button .element,[type=outlined][variant=secondary][disabled=true i][inverse=""].gov-button .element,[type=outlined][variant=secondary][disabled=true i][inverse=true i].gov-button .element,[type=outlined][variant=secondary][disabled=true i][inverse="1"].gov-button .element,[type=outlined][variant=secondary][disabled="1"][inverse=""].gov-button .element,[type=outlined][variant=secondary][disabled="1"][inverse=true i].gov-button .element,[type=outlined][variant=secondary][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-secondary-outlined-inverse-disabled-bg, var(--gov-color-secondary-700));color:var(--gov-button-secondary-outlined-inverse-disabled-color, var(--gov-color-secondary-600));border-color:var(--gov-button-secondary-outlined-inverse-disabled-border-color, var(--gov-color-secondary-600))}@media not all and (pointer: coarse){[type=outlined][variant=secondary][hoverable].gov-button .element:hover{background-color:var(--gov-button-secondary-outlined-hover-bg, var(--gov-color-secondary-300));color:var(--gov-button-secondary-outlined-hover-color, var(--gov-color-secondary))}[type=outlined][variant=secondary][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-secondary-outlined-active-bg, var(--gov-color-secondary-400))}}@media not all and (pointer: coarse){[type=outlined][variant=secondary][hoverable][inverse=""].gov-button .element:hover,[type=outlined][variant=secondary][hoverable][inverse=true i].gov-button .element:hover,[type=outlined][variant=secondary][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-secondary-outlined-inverse-hover-bg, var(--gov-color-secondary-700));color:var(--gov-button-secondary-outlined-inverse-hover-color, var(--gov-color-neutral-white))}[type=outlined][variant=secondary][hoverable][inverse=""].gov-button .element:hover:active,[type=outlined][variant=secondary][hoverable][inverse=true i].gov-button .element:hover:active,[type=outlined][variant=secondary][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-secondary-outlined-inverse-active-bg, var(--gov-color-secondary-600));color:var(--gov-button-secondary-outlined-inverse-active-color, var(--gov-color-secondary))}}[type=base][variant=secondary].gov-button .element{color:var(--gov-button-secondary-base-color, var(--gov-color-secondary));border-width:0}[type=base][variant=secondary][inverse=""].gov-button .element,[type=base][variant=secondary][inverse=true i].gov-button .element,[type=base][variant=secondary][inverse="1"].gov-button .element{color:var(--gov-button-secondary-base-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-secondary-base-inverse-bg, transparent)}[type=base][variant=secondary][disabled=""].gov-button .element,[type=base][variant=secondary][disabled=true i].gov-button .element,[type=base][variant=secondary][disabled="1"].gov-button .element{color:var(--gov-button-secondary-base-disabled-color, var(--gov-color-secondary-600))}[type=base][variant=secondary][disabled=""][inverse=""].gov-button .element,[type=base][variant=secondary][disabled=""][inverse=true i].gov-button .element,[type=base][variant=secondary][disabled=""][inverse="1"].gov-button .element,[type=base][variant=secondary][disabled=true i][inverse=""].gov-button .element,[type=base][variant=secondary][disabled=true i][inverse=true i].gov-button .element,[type=base][variant=secondary][disabled=true i][inverse="1"].gov-button .element,[type=base][variant=secondary][disabled="1"][inverse=""].gov-button .element,[type=base][variant=secondary][disabled="1"][inverse=true i].gov-button .element,[type=base][variant=secondary][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-secondary-base-inverse-disabled-bg, var(--gov-color-secondary-700));color:var(--gov-button-secondary-base-inverse-disabled-color, var(--gov-color-secondary-600))}@media not all and (pointer: coarse){[type=base][variant=secondary][hoverable].gov-button .element:hover{background-color:var(--gov-button-secondary-base-hover-bg, var(--gov-color-secondary-300));color:var(--gov-button-secondary-base-hover-color, var(--gov-color-secondary))}[type=base][variant=secondary][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-secondary-base-active-bg, var(--gov-color-secondary-400))}}@media not all and (pointer: coarse){[type=base][variant=secondary][hoverable][inverse=""].gov-button .element:hover,[type=base][variant=secondary][hoverable][inverse=true i].gov-button .element:hover,[type=base][variant=secondary][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-secondary-base-inverse-hover-bg, var(--gov-color-secondary-700));color:var(--gov-button-secondary-base-inverse-hover-color, var(--gov-color-neutral-white))}[type=base][variant=secondary][hoverable][inverse=""].gov-button .element:hover:active,[type=base][variant=secondary][hoverable][inverse=true i].gov-button .element:hover:active,[type=base][variant=secondary][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-secondary-base-inverse-active-bg, var(--gov-color-secondary-600));color:var(--gov-button-secondary-base-inverse-active-color, var(--gov-color-secondary))}}[type=link][variant=secondary].gov-button .element{color:var(--gov-button-secondary-link-color, var(--gov-color-secondary));border-width:0}[type=link][variant=secondary][inverse=""].gov-button .element,[type=link][variant=secondary][inverse=true i].gov-button .element,[type=link][variant=secondary][inverse="1"].gov-button .element{color:var(--gov-button-secondary-link-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-secondary-link-inverse-bg, transparent)}[type=link][variant=secondary][disabled=""].gov-button .element,[type=link][variant=secondary][disabled=true i].gov-button .element,[type=link][variant=secondary][disabled="1"].gov-button .element{color:var(--gov-button-secondary-link-disabled-color, var(--gov-color-secondary-600))}[type=link][variant=secondary][disabled=""][inverse=""].gov-button .element,[type=link][variant=secondary][disabled=""][inverse=true i].gov-button .element,[type=link][variant=secondary][disabled=""][inverse="1"].gov-button .element,[type=link][variant=secondary][disabled=true i][inverse=""].gov-button .element,[type=link][variant=secondary][disabled=true i][inverse=true i].gov-button .element,[type=link][variant=secondary][disabled=true i][inverse="1"].gov-button .element,[type=link][variant=secondary][disabled="1"][inverse=""].gov-button .element,[type=link][variant=secondary][disabled="1"][inverse=true i].gov-button .element,[type=link][variant=secondary][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-secondary-link-inverse-disabled-bg, transparent);color:var(--gov-button-secondary-link-inverse-disabled-color, var(--gov-color-secondary-600))}@media not all and (pointer: coarse){[type=link][variant=secondary][hoverable].gov-button .element:hover{background-color:var(--gov-button-secondary-link-hover-bg, transparent);color:var(--gov-button-secondary-link-hover-color, var(--gov-color-secondary))}[type=link][variant=secondary][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-secondary-link-active-bg, transparent);color:var(--gov-button-primary-link-active-color, var(--gov-color-secondary))}}@media not all and (pointer: coarse){[type=link][variant=secondary][hoverable][inverse=""].gov-button .element:hover,[type=link][variant=secondary][hoverable][inverse=true i].gov-button .element:hover,[type=link][variant=secondary][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-secondary-link-inverse-hover-bg, transparent);color:var(--gov-button-secondary-link-inverse-hover-color, var(--gov-color-neutral-white))}[type=link][variant=secondary][hoverable][inverse=""].gov-button .element:hover:active,[type=link][variant=secondary][hoverable][inverse=true i].gov-button .element:hover:active,[type=link][variant=secondary][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-secondary-link-inverse-active-bg, transparent);color:var(--gov-button-secondary-link-inverse-active-color, var(--gov-color-secondary-500))}}[type=solid][variant=error].gov-button .element{background-color:var(--gov-button-error-solid-bg, var(--gov-color-error));color:var(--gov-button-error-solid-color, var(--gov-color-neutral-white));border-width:0}[type=solid][variant=error][inverse=""].gov-button .element,[type=solid][variant=error][inverse=true i].gov-button .element,[type=solid][variant=error][inverse="1"].gov-button .element{color:var(--gov-button-error-solid-inverse-color, var(--gov-color-error));background-color:var(--gov-button-error-solid-inverse-bg, var(--gov-color-error-200))}[type=solid][variant=error][inverse=""].gov-button .element:focus-visible,[type=solid][variant=error][inverse=true i].gov-button .element:focus-visible,[type=solid][variant=error][inverse="1"].gov-button .element:focus-visible{background-color:var(--gov-button-error-solid-inverse-focus-bg, var(--gov-color-neutral-white))}[type=solid][variant=error][disabled=""].gov-button .element,[type=solid][variant=error][disabled=true i].gov-button .element,[type=solid][variant=error][disabled="1"].gov-button .element{background-color:var(--gov-button-error-solid-disabled-bg, var(--gov-color-error-200));color:var(--gov-button-error-solid-disabled-color, var(--gov-color-neutral-white))}[type=solid][variant=error][disabled=""][inverse=""].gov-button .element,[type=solid][variant=error][disabled=""][inverse=true i].gov-button .element,[type=solid][variant=error][disabled=""][inverse="1"].gov-button .element,[type=solid][variant=error][disabled=true i][inverse=""].gov-button .element,[type=solid][variant=error][disabled=true i][inverse=true i].gov-button .element,[type=solid][variant=error][disabled=true i][inverse="1"].gov-button .element,[type=solid][variant=error][disabled="1"][inverse=""].gov-button .element,[type=solid][variant=error][disabled="1"][inverse=true i].gov-button .element,[type=solid][variant=error][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-error-solid-inverse-disabled-bg, var(--gov-color-error-300));color:var(--gov-button-error-solid-inverse-disabled-color, var(--gov-color-error-400))}@media not all and (pointer: coarse){[type=solid][variant=error][hoverable].gov-button .element:hover{background-color:var(--gov-button-error-solid-hover-bg, var(--gov-color-error-500));color:var(--gov-button-error-solid-hover-color, var(--gov-color-neutral-white))}[type=solid][variant=error][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-error-solid-active-bg, var(--gov-color-error-600))}}@media not all and (pointer: coarse){[type=solid][variant=error][hoverable][inverse=""].gov-button .element:hover,[type=solid][variant=error][hoverable][inverse=true i].gov-button .element:hover,[type=solid][variant=error][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-error-solid-inverse-hover-bg, var(--gov-color-error-700));color:var(--gov-button-error-solid-inverse-hover-color, var(--gov-color-neutral-white))}[type=solid][variant=error][hoverable][inverse=""].gov-button .element:hover:active,[type=solid][variant=error][hoverable][inverse=true i].gov-button .element:hover:active,[type=solid][variant=error][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-error-solid-inverse-active-bg, var(--gov-color-error-800))}}[type=outlined][variant=error].gov-button .element{color:var(--gov-button-error-outlined-color, var(--gov-color-error));border-color:var(--gov-button-error-outlined-border, var(--gov-color-error))}[type=outlined][variant=error][inverse=""].gov-button .element,[type=outlined][variant=error][inverse=true i].gov-button .element,[type=outlined][variant=error][inverse="1"].gov-button .element{color:var(--gov-button-error-outlined-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-error-outlined-inverse-bg, transparent);border-color:var(--gov-button-error-outlined-inverse-border, var(--gov-color-neutral-white))}[type=outlined][variant=error][inverse=""].gov-button .element:focus-visible,[type=outlined][variant=error][inverse=true i].gov-button .element:focus-visible,[type=outlined][variant=error][inverse="1"].gov-button .element:focus-visible{background-color:var(--gov-button-error-outlined-inverse-focus-bg, transparent)}[type=outlined][variant=error][disabled=""].gov-button .element,[type=outlined][variant=error][disabled=true i].gov-button .element,[type=outlined][variant=error][disabled="1"].gov-button .element{background-color:var(--gov-button-error-outlined-disabled-bg, transparent);color:var(--gov-button-error-outlined-disabled-color, var(--gov-color-error-200));border-color:var(--gov-button-error-outlined-disabled-border, var(--gov-color-error-200))}[type=outlined][variant=error][disabled=""][inverse=""].gov-button .element,[type=outlined][variant=error][disabled=""][inverse=true i].gov-button .element,[type=outlined][variant=error][disabled=""][inverse="1"].gov-button .element,[type=outlined][variant=error][disabled=true i][inverse=""].gov-button .element,[type=outlined][variant=error][disabled=true i][inverse=true i].gov-button .element,[type=outlined][variant=error][disabled=true i][inverse="1"].gov-button .element,[type=outlined][variant=error][disabled="1"][inverse=""].gov-button .element,[type=outlined][variant=error][disabled="1"][inverse=true i].gov-button .element,[type=outlined][variant=error][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-error-outlined-inverse-disabled-bg, var(--gov-color-error-300));color:var(--gov-button-error-outlined-inverse-disabled-color, var(--gov-color-error-400));border-color:var(--gov-button-error-outlined-inverse-disabled-border-color, var(--gov-color-error-400))}@media not all and (pointer: coarse){[type=outlined][variant=error][hoverable].gov-button .element:hover{background-color:var(--gov-button-error-outlined-hover-bg, var(--gov-color-error-100));color:var(--gov-button-error-outlined-hover-color, var(--gov-color-error))}[type=outlined][variant=error][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-error-outlined-active-bg, var(--gov-color-error-200))}}@media not all and (pointer: coarse){[type=outlined][variant=error][hoverable][inverse=""].gov-button .element:hover,[type=outlined][variant=error][hoverable][inverse=true i].gov-button .element:hover,[type=outlined][variant=error][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-error-outlined-inverse-hover-bg, var(--gov-color-error-500));color:var(--gov-button-error-outlined-inverse-hover-color, var(--gov-color-neutral-white))}[type=outlined][variant=error][hoverable][inverse=""].gov-button .element:hover:active,[type=outlined][variant=error][hoverable][inverse=true i].gov-button .element:hover:active,[type=outlined][variant=error][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-error-outlined-inverse-active-bg, var(--gov-color-error-400))}}[type=base][variant=error].gov-button .element{color:var(--gov-button-error-base-color, var(--gov-color-error));border-width:0}[type=base][variant=error][inverse=""].gov-button .element,[type=base][variant=error][inverse=true i].gov-button .element,[type=base][variant=error][inverse="1"].gov-button .element{color:var(--gov-button-error-base-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-error-base-inverse-bg, transparent)}[type=base][variant=error][disabled=""].gov-button .element,[type=base][variant=error][disabled=true i].gov-button .element,[type=base][variant=error][disabled="1"].gov-button .element{color:var(--gov-button-error-base-disabled-color, var(--gov-color-error-200))}[type=base][variant=error][disabled=""][inverse=""].gov-button .element,[type=base][variant=error][disabled=""][inverse=true i].gov-button .element,[type=base][variant=error][disabled=""][inverse="1"].gov-button .element,[type=base][variant=error][disabled=true i][inverse=""].gov-button .element,[type=base][variant=error][disabled=true i][inverse=true i].gov-button .element,[type=base][variant=error][disabled=true i][inverse="1"].gov-button .element,[type=base][variant=error][disabled="1"][inverse=""].gov-button .element,[type=base][variant=error][disabled="1"][inverse=true i].gov-button .element,[type=base][variant=error][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-error-base-inverse-disabled-bg, var(--gov-color-error-300));color:var(--gov-button-error-base-inverse-disabled-color, var(--gov-color-error-400))}@media not all and (pointer: coarse){[type=base][variant=error][hoverable].gov-button .element:hover{background-color:var(--gov-button-error-base-hover-bg, var(--gov-color-error-100));color:var(--gov-button-error-base-hover-color, var(--gov-color-error))}[type=base][variant=error][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-error-base-active-bg, var(--gov-color-error-200))}}@media not all and (pointer: coarse){[type=base][variant=error][hoverable][inverse=""].gov-button .element:hover,[type=base][variant=error][hoverable][inverse=true i].gov-button .element:hover,[type=base][variant=error][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-error-base-inverse-hover-bg, var(--gov-color-error-500));color:var(--gov-button-error-base-inverse-hover-color, var(--gov-color-neutral-white))}[type=base][variant=error][hoverable][inverse=""].gov-button .element:hover:active,[type=base][variant=error][hoverable][inverse=true i].gov-button .element:hover:active,[type=base][variant=error][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-error-base-inverse-active-bg, var(--gov-color-error-400));color:var(--gov-button-error-base-inverse-active-color, var(--gov-color-neutral-white))}}[type=link][variant=error].gov-button .element{color:var(--gov-button-error-link-color, var(--gov-color-error));border-width:0}[type=link][variant=error][inverse=""].gov-button .element,[type=link][variant=error][inverse=true i].gov-button .element,[type=link][variant=error][inverse="1"].gov-button .element{color:var(--gov-button-error-link-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-error-link-inverse-bg, transparent)}[type=link][variant=error][disabled=""].gov-button .element,[type=link][variant=error][disabled=true i].gov-button .element,[type=link][variant=error][disabled="1"].gov-button .element{color:var(--gov-button-error-link-disabled-color, var(--gov-color-error-200))}[type=link][variant=error][disabled=""][inverse=""].gov-button .element,[type=link][variant=error][disabled=""][inverse=true i].gov-button .element,[type=link][variant=error][disabled=""][inverse="1"].gov-button .element,[type=link][variant=error][disabled=true i][inverse=""].gov-button .element,[type=link][variant=error][disabled=true i][inverse=true i].gov-button .element,[type=link][variant=error][disabled=true i][inverse="1"].gov-button .element,[type=link][variant=error][disabled="1"][inverse=""].gov-button .element,[type=link][variant=error][disabled="1"][inverse=true i].gov-button .element,[type=link][variant=error][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-error-link-inverse-disabled-bg, transparent);color:var(--gov-button-error-link-inverse-disabled-color, var(--gov-color-error-200))}@media not all and (pointer: coarse){[type=link][variant=error][hoverable].gov-button .element:hover{background-color:var(--gov-button-error-link-hover-bg, transparent);color:var(--gov-button-error-link-hover-color, var(--gov-color-error))}[type=link][variant=error][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-error-link-active-bg, transparent);color:var(--gov-button-primary-link-active-color, var(--gov-color-error-500))}}@media not all and (pointer: coarse){[type=link][variant=error][hoverable][inverse=""].gov-button .element:hover,[type=link][variant=error][hoverable][inverse=true i].gov-button .element:hover,[type=link][variant=error][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-error-link-inverse-hover-bg, transparent);color:var(--gov-button-error-link-inverse-hover-color, var(--gov-color-neutral-white))}[type=link][variant=error][hoverable][inverse=""].gov-button .element:hover:active,[type=link][variant=error][hoverable][inverse=true i].gov-button .element:hover:active,[type=link][variant=error][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-error-link-inverse-active-bg, transparent);color:var(--gov-button-error-link-inverse-active-color, var(--gov-color-neutral-white))}}[type=solid][variant=success].gov-button .element{background-color:var(--gov-button-success-solid-bg, var(--gov-color-success-500));color:var(--gov-button-success-solid-color, var(--gov-color-neutral-white));border-width:0}[type=solid][variant=success][inverse=""].gov-button .element,[type=solid][variant=success][inverse=true i].gov-button .element,[type=solid][variant=success][inverse="1"].gov-button .element{color:var(--gov-button-success-solid-inverse-color, var(--gov-color-success));background-color:var(--gov-button-success-solid-inverse-bg, var(--gov-color-success-200))}[type=solid][variant=success][inverse=""].gov-button .element:focus-visible,[type=solid][variant=success][inverse=true i].gov-button .element:focus-visible,[type=solid][variant=success][inverse="1"].gov-button .element:focus-visible{background-color:var(--gov-button-success-solid-inverse-focus-bg, var(--gov-color-neutral-white))}[type=solid][variant=success][disabled=""].gov-button .element,[type=solid][variant=success][disabled=true i].gov-button .element,[type=solid][variant=success][disabled="1"].gov-button .element{background-color:var(--gov-button-success-solid-disabled-bg, var(--gov-color-success-200));color:var(--gov-button-success-solid-disabled-color, var(--gov-color-neutral-white))}[type=solid][variant=success][disabled=""][inverse=""].gov-button .element,[type=solid][variant=success][disabled=""][inverse=true i].gov-button .element,[type=solid][variant=success][disabled=""][inverse="1"].gov-button .element,[type=solid][variant=success][disabled=true i][inverse=""].gov-button .element,[type=solid][variant=success][disabled=true i][inverse=true i].gov-button .element,[type=solid][variant=success][disabled=true i][inverse="1"].gov-button .element,[type=solid][variant=success][disabled="1"][inverse=""].gov-button .element,[type=solid][variant=success][disabled="1"][inverse=true i].gov-button .element,[type=solid][variant=success][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-success-solid-inverse-disabled-bg, var(--gov-color-success-300));color:var(--gov-button-success-solid-inverse-disabled-color, var(--gov-color-success-400))}@media not all and (pointer: coarse){[type=solid][variant=success][hoverable].gov-button .element:hover{background-color:var(--gov-button-success-solid-hover-bg, var(--gov-color-success-600));color:var(--gov-button-success-solid-hover-color, var(--gov-color-neutral-white))}[type=solid][variant=success][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-success-solid-active-bg, var(--gov-color-success-700))}}@media not all and (pointer: coarse){[type=solid][variant=success][hoverable][inverse=""].gov-button .element:hover,[type=solid][variant=success][hoverable][inverse=true i].gov-button .element:hover,[type=solid][variant=success][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-success-solid-inverse-hover-bg, var(--gov-color-success-700));color:var(--gov-button-success-solid-inverse-hover-color, var(--gov-color-neutral-white))}[type=solid][variant=success][hoverable][inverse=""].gov-button .element:hover:active,[type=solid][variant=success][hoverable][inverse=true i].gov-button .element:hover:active,[type=solid][variant=success][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-success-solid-inverse-active-bg, var(--gov-color-success-800))}}[type=outlined][variant=success].gov-button .element{color:var(--gov-button-success-outlined-color, var(--gov-color-success-500));border-color:var(--gov-button-success-outlined-border, var(--gov-color-success-500))}[type=outlined][variant=success][inverse=""].gov-button .element,[type=outlined][variant=success][inverse=true i].gov-button .element,[type=outlined][variant=success][inverse="1"].gov-button .element{color:var(--gov-button-success-outlined-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-success-outlined-inverse-bg, transparent);border-color:var(--gov-button-success-outlined-inverse-border, var(--gov-color-neutral-white))}[type=outlined][variant=success][inverse=""].gov-button .element:focus-visible,[type=outlined][variant=success][inverse=true i].gov-button .element:focus-visible,[type=outlined][variant=success][inverse="1"].gov-button .element:focus-visible{background-color:var(--gov-button-success-outlined-inverse-focus-bg, transparent)}[type=outlined][variant=success][disabled=""].gov-button .element,[type=outlined][variant=success][disabled=true i].gov-button .element,[type=outlined][variant=success][disabled="1"].gov-button .element{background-color:var(--gov-button-success-outlined-disabled-bg, transparent);color:var(--gov-button-success-outlined-disabled-color, var(--gov-color-success-300));border-color:var(--gov-button-success-outlined-disabled-border, var(--gov-color-success-300))}[type=outlined][variant=success][disabled=""][inverse=""].gov-button .element,[type=outlined][variant=success][disabled=""][inverse=true i].gov-button .element,[type=outlined][variant=success][disabled=""][inverse="1"].gov-button .element,[type=outlined][variant=success][disabled=true i][inverse=""].gov-button .element,[type=outlined][variant=success][disabled=true i][inverse=true i].gov-button .element,[type=outlined][variant=success][disabled=true i][inverse="1"].gov-button .element,[type=outlined][variant=success][disabled="1"][inverse=""].gov-button .element,[type=outlined][variant=success][disabled="1"][inverse=true i].gov-button .element,[type=outlined][variant=success][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-success-outlined-inverse-disabled-bg, var(--gov-color-success-300));color:var(--gov-button-success-outlined-inverse-disabled-color, var(--gov-color-success-400));border-color:var(--gov-button-success-outlined-inverse-disabled-border-color, var(--gov-color-success-400))}@media not all and (pointer: coarse){[type=outlined][variant=success][hoverable].gov-button .element:hover{background-color:var(--gov-button-success-outlined-hover-bg, var(--gov-color-success-100));color:var(--gov-button-success-outlined-hover-color, var(--gov-color-success-500))}[type=outlined][variant=success][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-success-outlined-active-bg, var(--gov-color-success-200))}}@media not all and (pointer: coarse){[type=outlined][variant=success][hoverable][inverse=""].gov-button .element:hover,[type=outlined][variant=success][hoverable][inverse=true i].gov-button .element:hover,[type=outlined][variant=success][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-success-outlined-inverse-hover-bg, var(--gov-color-success-500));color:var(--gov-button-success-outlined-inverse-hover-color, var(--gov-color-neutral-white))}[type=outlined][variant=success][hoverable][inverse=""].gov-button .element:hover:active,[type=outlined][variant=success][hoverable][inverse=true i].gov-button .element:hover:active,[type=outlined][variant=success][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-success-outlined-inverse-active-bg, var(--gov-color-success-400))}}[type=base][variant=success].gov-button .element{color:var(--gov-button-success-base-color, var(--gov-color-success-500));border-width:0}[type=base][variant=success][inverse=""].gov-button .element,[type=base][variant=success][inverse=true i].gov-button .element,[type=base][variant=success][inverse="1"].gov-button .element{color:var(--gov-button-success-base-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-success-base-inverse-bg, transparent)}[type=base][variant=success][disabled=""].gov-button .element,[type=base][variant=success][disabled=true i].gov-button .element,[type=base][variant=success][disabled="1"].gov-button .element{color:var(--gov-button-success-base-disabled-color, var(--gov-color-success-300))}[type=base][variant=success][disabled=""][inverse=""].gov-button .element,[type=base][variant=success][disabled=""][inverse=true i].gov-button .element,[type=base][variant=success][disabled=""][inverse="1"].gov-button .element,[type=base][variant=success][disabled=true i][inverse=""].gov-button .element,[type=base][variant=success][disabled=true i][inverse=true i].gov-button .element,[type=base][variant=success][disabled=true i][inverse="1"].gov-button .element,[type=base][variant=success][disabled="1"][inverse=""].gov-button .element,[type=base][variant=success][disabled="1"][inverse=true i].gov-button .element,[type=base][variant=success][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-success-base-inverse-disabled-bg, var(--gov-color-success-300));color:var(--gov-button-success-base-inverse-disabled-color, var(--gov-color-success-400))}@media not all and (pointer: coarse){[type=base][variant=success][hoverable].gov-button .element:hover{background-color:var(--gov-button-success-base-hover-bg, var(--gov-color-success-100));color:var(--gov-button-success-base-hover-color, var(--gov-color-success-500))}[type=base][variant=success][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-success-base-active-bg, var(--gov-color-success-200))}}@media not all and (pointer: coarse){[type=base][variant=success][hoverable][inverse=""].gov-button .element:hover,[type=base][variant=success][hoverable][inverse=true i].gov-button .element:hover,[type=base][variant=success][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-success-base-inverse-hover-bg, var(--gov-color-success-600));color:var(--gov-button-success-base-inverse-hover-color, var(--gov-color-neutral-white))}[type=base][variant=success][hoverable][inverse=""].gov-button .element:hover:active,[type=base][variant=success][hoverable][inverse=true i].gov-button .element:hover:active,[type=base][variant=success][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-success-base-inverse-active-bg, var(--gov-color-success-500));color:var(--gov-button-success-base-inverse-active-color, var(--gov-color-neutral-white))}}[type=link][variant=success].gov-button .element{color:var(--gov-button-success-link-color, var(--gov-color-success-500));border-width:0}[type=link][variant=success][inverse=""].gov-button .element,[type=link][variant=success][inverse=true i].gov-button .element,[type=link][variant=success][inverse="1"].gov-button .element{color:var(--gov-button-success-link-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-success-link-inverse-bg, transparent)}[type=link][variant=success][disabled=""].gov-button .element,[type=link][variant=success][disabled=true i].gov-button .element,[type=link][variant=success][disabled="1"].gov-button .element{color:var(--gov-button-success-link-disabled-color, var(--gov-color-success-300))}[type=link][variant=success][disabled=""][inverse=""].gov-button .element,[type=link][variant=success][disabled=""][inverse=true i].gov-button .element,[type=link][variant=success][disabled=""][inverse="1"].gov-button .element,[type=link][variant=success][disabled=true i][inverse=""].gov-button .element,[type=link][variant=success][disabled=true i][inverse=true i].gov-button .element,[type=link][variant=success][disabled=true i][inverse="1"].gov-button .element,[type=link][variant=success][disabled="1"][inverse=""].gov-button .element,[type=link][variant=success][disabled="1"][inverse=true i].gov-button .element,[type=link][variant=success][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-success-link-inverse-disabled-bg, transparent);color:var(--gov-button-success-link-inverse-disabled-color, var(--gov-color-success-400))}@media not all and (pointer: coarse){[type=link][variant=success][hoverable].gov-button .element:hover{background-color:var(--gov-button-success-link-hover-bg, transparent);color:var(--gov-button-success-link-hover-color, var(--gov-color-success-500))}[type=link][variant=success][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-success-link-active-bg, transparent);color:var(--gov-button-primary-link-active-color, var(--gov-color-success-600))}}@media not all and (pointer: coarse){[type=link][variant=success][hoverable][inverse=""].gov-button .element:hover,[type=link][variant=success][hoverable][inverse=true i].gov-button .element:hover,[type=link][variant=success][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-success-link-inverse-hover-bg, transparent);color:var(--gov-button-success-link-inverse-hover-color, var(--gov-color-neutral-white))}[type=link][variant=success][hoverable][inverse=""].gov-button .element:hover:active,[type=link][variant=success][hoverable][inverse=true i].gov-button .element:hover:active,[type=link][variant=success][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-success-link-inverse-active-bg, transparent);color:var(--gov-button-success-link-inverse-active-color, var(--gov-color-neutral-white))}}[type=solid][variant=warning].gov-button .element{background-color:var(--gov-button-warning-solid-bg, var(--gov-color-warning-500));color:var(--gov-button-warning-solid-color, var(--gov-color-neutral-white));border-width:0}[type=solid][variant=warning][inverse=""].gov-button .element,[type=solid][variant=warning][inverse=true i].gov-button .element,[type=solid][variant=warning][inverse="1"].gov-button .element{color:var(--gov-button-warning-solid-inverse-color, var(--gov-color-warning));background-color:var(--gov-button-warning-solid-inverse-bg, var(--gov-color-warning-200))}[type=solid][variant=warning][inverse=""].gov-button .element:focus-visible,[type=solid][variant=warning][inverse=true i].gov-button .element:focus-visible,[type=solid][variant=warning][inverse="1"].gov-button .element:focus-visible{background-color:var(--gov-button-warning-solid-inverse-focus-bg, var(--gov-color-neutral-white))}[type=solid][variant=warning][disabled=""].gov-button .element,[type=solid][variant=warning][disabled=true i].gov-button .element,[type=solid][variant=warning][disabled="1"].gov-button .element{background-color:var(--gov-button-warning-solid-disabled-bg, var(--gov-color-warning-200));color:var(--gov-button-warning-solid-disabled-color, var(--gov-color-neutral-white))}[type=solid][variant=warning][disabled=""][inverse=""].gov-button .element,[type=solid][variant=warning][disabled=""][inverse=true i].gov-button .element,[type=solid][variant=warning][disabled=""][inverse="1"].gov-button .element,[type=solid][variant=warning][disabled=true i][inverse=""].gov-button .element,[type=solid][variant=warning][disabled=true i][inverse=true i].gov-button .element,[type=solid][variant=warning][disabled=true i][inverse="1"].gov-button .element,[type=solid][variant=warning][disabled="1"][inverse=""].gov-button .element,[type=solid][variant=warning][disabled="1"][inverse=true i].gov-button .element,[type=solid][variant=warning][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-warning-solid-inverse-disabled-bg, var(--gov-color-warning-300));color:var(--gov-button-warning-solid-inverse-disabled-color, var(--gov-color-warning-400))}@media not all and (pointer: coarse){[type=solid][variant=warning][hoverable].gov-button .element:hover{background-color:var(--gov-button-warning-solid-hover-bg, var(--gov-color-warning-600));color:var(--gov-button-warning-solid-hover-color, var(--gov-color-neutral-white))}[type=solid][variant=warning][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-warning-solid-active-bg, var(--gov-color-warning-700))}}@media not all and (pointer: coarse){[type=solid][variant=warning][hoverable][inverse=""].gov-button .element:hover,[type=solid][variant=warning][hoverable][inverse=true i].gov-button .element:hover,[type=solid][variant=warning][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-warning-solid-inverse-hover-bg, var(--gov-color-warning-700));color:var(--gov-button-warning-solid-inverse-hover-color, var(--gov-color-neutral-white))}[type=solid][variant=warning][hoverable][inverse=""].gov-button .element:hover:active,[type=solid][variant=warning][hoverable][inverse=true i].gov-button .element:hover:active,[type=solid][variant=warning][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-warning-solid-inverse-active-bg, var(--gov-color-warning-800))}}[type=outlined][variant=warning].gov-button .element{color:var(--gov-button-warning-outlined-color, var(--gov-color-warning-500));border-color:var(--gov-button-warning-outlined-border, var(--gov-color-warning-500))}[type=outlined][variant=warning][inverse=""].gov-button .element,[type=outlined][variant=warning][inverse=true i].gov-button .element,[type=outlined][variant=warning][inverse="1"].gov-button .element{color:var(--gov-button-warning-outlined-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-warning-outlined-inverse-bg, transparent);border-color:var(--gov-button-warning-outlined-inverse-border, var(--gov-color-neutral-white))}[type=outlined][variant=warning][inverse=""].gov-button .element:focus-visible,[type=outlined][variant=warning][inverse=true i].gov-button .element:focus-visible,[type=outlined][variant=warning][inverse="1"].gov-button .element:focus-visible{background-color:var(--gov-button-warning-outlined-inverse-focus-bg, transparent)}[type=outlined][variant=warning][disabled=""].gov-button .element,[type=outlined][variant=warning][disabled=true i].gov-button .element,[type=outlined][variant=warning][disabled="1"].gov-button .element{background-color:var(--gov-button-warning-outlined-disabled-bg, transparent);color:var(--gov-button-warning-outlined-disabled-color, var(--gov-color-warning));border-color:var(--gov-button-warning-outlined-disabled-border, var(--gov-color-warning))}[type=outlined][variant=warning][disabled=""][inverse=""].gov-button .element,[type=outlined][variant=warning][disabled=""][inverse=true i].gov-button .element,[type=outlined][variant=warning][disabled=""][inverse="1"].gov-button .element,[type=outlined][variant=warning][disabled=true i][inverse=""].gov-button .element,[type=outlined][variant=warning][disabled=true i][inverse=true i].gov-button .element,[type=outlined][variant=warning][disabled=true i][inverse="1"].gov-button .element,[type=outlined][variant=warning][disabled="1"][inverse=""].gov-button .element,[type=outlined][variant=warning][disabled="1"][inverse=true i].gov-button .element,[type=outlined][variant=warning][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-warning-outlined-inverse-disabled-bg, var(--gov-color-warning-300));color:var(--gov-button-warning-outlined-inverse-disabled-color, var(--gov-color-warning-400));border-color:var(--gov-button-warning-outlined-inverse-disabled-border-color, var(--gov-color-warning-400))}@media not all and (pointer: coarse){[type=outlined][variant=warning][hoverable].gov-button .element:hover{background-color:var(--gov-button-warning-outlined-hover-bg, var(--gov-color-warning-200));color:var(--gov-button-warning-outlined-hover-color, var(--gov-color-warning-500))}[type=outlined][variant=warning][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-warning-outlined-active-bg, var(--gov-color-warning-300))}}@media not all and (pointer: coarse){[type=outlined][variant=warning][hoverable][inverse=""].gov-button .element:hover,[type=outlined][variant=warning][hoverable][inverse=true i].gov-button .element:hover,[type=outlined][variant=warning][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-warning-outlined-inverse-hover-bg, var(--gov-color-warning-500));color:var(--gov-button-warning-outlined-inverse-hover-color, var(--gov-color-neutral-white))}[type=outlined][variant=warning][hoverable][inverse=""].gov-button .element:hover:active,[type=outlined][variant=warning][hoverable][inverse=true i].gov-button .element:hover:active,[type=outlined][variant=warning][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-warning-outlined-inverse-active-bg, var(--gov-color-warning-400))}}[type=base][variant=warning].gov-button .element{color:var(--gov-button-warning-base-color, var(--gov-color-warning-500));border-width:0}[type=base][variant=warning][inverse=""].gov-button .element,[type=base][variant=warning][inverse=true i].gov-button .element,[type=base][variant=warning][inverse="1"].gov-button .element{color:var(--gov-button-warning-base-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-warning-base-inverse-bg, transparent)}[type=base][variant=warning][disabled=""].gov-button .element,[type=base][variant=warning][disabled=true i].gov-button .element,[type=base][variant=warning][disabled="1"].gov-button .element{color:var(--gov-button-warning-base-disabled-color, var(--gov-color-warning))}[type=base][variant=warning][disabled=""][inverse=""].gov-button .element,[type=base][variant=warning][disabled=""][inverse=true i].gov-button .element,[type=base][variant=warning][disabled=""][inverse="1"].gov-button .element,[type=base][variant=warning][disabled=true i][inverse=""].gov-button .element,[type=base][variant=warning][disabled=true i][inverse=true i].gov-button .element,[type=base][variant=warning][disabled=true i][inverse="1"].gov-button .element,[type=base][variant=warning][disabled="1"][inverse=""].gov-button .element,[type=base][variant=warning][disabled="1"][inverse=true i].gov-button .element,[type=base][variant=warning][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-warning-base-inverse-disabled-bg, var(--gov-color-warning-300));color:var(--gov-button-warning-base-inverse-disabled-color, var(--gov-color-warning-400))}@media not all and (pointer: coarse){[type=base][variant=warning][hoverable].gov-button .element:hover{background-color:var(--gov-button-warning-base-hover-bg, var(--gov-color-warning-200));color:var(--gov-button-warning-base-hover-color, var(--gov-color-warning-500))}[type=base][variant=warning][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-warning-base-active-bg, var(--gov-color-warning-300))}}@media not all and (pointer: coarse){[type=base][variant=warning][hoverable][inverse=""].gov-button .element:hover,[type=base][variant=warning][hoverable][inverse=true i].gov-button .element:hover,[type=base][variant=warning][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-warning-base-inverse-hover-bg, var(--gov-color-warning-500));color:var(--gov-button-warning-base-inverse-hover-color, var(--gov-color-neutral-white))}[type=base][variant=warning][hoverable][inverse=""].gov-button .element:hover:active,[type=base][variant=warning][hoverable][inverse=true i].gov-button .element:hover:active,[type=base][variant=warning][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-warning-base-inverse-active-bg, var(--gov-color-warning-400));color:var(--gov-button-warning-base-inverse-active-color, var(--gov-color-neutral-white))}}[type=link][variant=warning].gov-button .element{color:var(--gov-button-warning-link-color, var(--gov-color-warning-500));border-width:0}[type=link][variant=warning][inverse=""].gov-button .element,[type=link][variant=warning][inverse=true i].gov-button .element,[type=link][variant=warning][inverse="1"].gov-button .element{color:var(--gov-button-warning-link-inverse-color, var(--gov-color-neutral-white));background-color:var(--gov-button-warning-link-inverse-bg, transparent)}[type=link][variant=warning][disabled=""].gov-button .element,[type=link][variant=warning][disabled=true i].gov-button .element,[type=link][variant=warning][disabled="1"].gov-button .element{color:var(--gov-button-warning-link-disabled-color, var(--gov-color-warning))}[type=link][variant=warning][disabled=""][inverse=""].gov-button .element,[type=link][variant=warning][disabled=""][inverse=true i].gov-button .element,[type=link][variant=warning][disabled=""][inverse="1"].gov-button .element,[type=link][variant=warning][disabled=true i][inverse=""].gov-button .element,[type=link][variant=warning][disabled=true i][inverse=true i].gov-button .element,[type=link][variant=warning][disabled=true i][inverse="1"].gov-button .element,[type=link][variant=warning][disabled="1"][inverse=""].gov-button .element,[type=link][variant=warning][disabled="1"][inverse=true i].gov-button .element,[type=link][variant=warning][disabled="1"][inverse="1"].gov-button .element{background-color:var(--gov-button-warning-link-inverse-disabled-bg, transparent);color:var(--gov-button-warning-link-inverse-disabled-color, var(--gov-color-warning-400))}@media not all and (pointer: coarse){[type=link][variant=warning][hoverable].gov-button .element:hover{background-color:var(--gov-button-warning-link-hover-bg, transparent);color:var(--gov-button-warning-link-hover-color, var(--gov-color-warning-500))}[type=link][variant=warning][hoverable].gov-button .element:hover:active{background-color:var(--gov-button-warning-link-active-bg, transparent);color:var(--gov-button-primary-link-active-color, var(--gov-color-warning-600))}}@media not all and (pointer: coarse){[type=link][variant=warning][hoverable][inverse=""].gov-button .element:hover,[type=link][variant=warning][hoverable][inverse=true i].gov-button .element:hover,[type=link][variant=warning][hoverable][inverse="1"].gov-button .element:hover{background-color:var(--gov-button-warning-link-inverse-hover-bg, transparent);color:var(--gov-button-warning-link-inverse-hover-color, var(--gov-color-neutral-white))}[type=link][variant=warning][hoverable][inverse=""].gov-button .element:hover:active,[type=link][variant=warning][hoverable][inverse=true i].gov-button .element:hover:active,[type=link][variant=warning][hoverable][inverse="1"].gov-button .element:hover:active{background-color:var(--gov-button-warning-link-inverse-active-bg, transparent);color:var(--gov-button-warning-link-inverse-active-color, var(--gov-color-neutral-white))}}[size=xs].gov-button .element{font-weight:var(--gov-button-text-xs-font-weight, var(--gov-text-xs-font-weight));font-size:var(--gov-button-text-xs-font-size, var(--gov-text-xs-font-size));line-height:var(--gov-button-text-xs-line-height, var(--gov-text-xs-line-height));letter-spacing:var(--gov-button-text-xs-letter-spacing, var(--gov-text-xs-letter-spacing));-moz-column-gap:var(--gov-button-xs-padding-x, 0.625rem);column-gap:var(--gov-button-xs-padding-x, 0.625rem);min-height:var(--gov-button-xs-min-height, 1.5rem);padding:var(--gov-button-xs-padding-y, 0.125rem) var(--gov-button-xs-padding-x, 0.625rem)}[size=xs].gov-button .element .gov-icon{width:var(--gov-button-xs-icon-size, 1rem);height:var(--gov-button-xs-icon-size, 1rem)}[size=s].gov-button .element{font-weight:var(--gov-button-text-s-font-weight, var(--gov-text-s-font-weight));font-size:var(--gov-button-text-s-font-size, var(--gov-text-s-font-size));line-height:var(--gov-button-text-s-line-height, var(--gov-text-s-line-height));letter-spacing:var(--gov-button-text-s-letter-spacing, var(--gov-text-s-letter-spacing));-moz-column-gap:var(--gov-button-s-padding-x, 0.75rem);column-gap:var(--gov-button-s-padding-x, 0.75rem);min-height:var(--gov-button-s-min-height, 2rem);padding:var(--gov-button-s-padding-y, 0.25rem) var(--gov-button-s-padding-x, 0.75rem)}[size=s].gov-button .element .gov-icon{width:var(--gov-button-s-icon-size, 1rem);height:var(--gov-button-s-icon-size, 1rem)}[size=m].gov-button .element{font-weight:var(--gov-button-text-m-font-weight, var(--gov-text-m-font-weight));font-size:var(--gov-button-text-m-font-size, var(--gov-text-m-font-size));line-height:var(--gov-button-text-m-line-height, var(--gov-text-m-line-height));letter-spacing:var(--gov-button-text-m-letter-spacing, var(--gov-text-m-letter-spacing));-moz-column-gap:var(--gov-button-m-padding-x, 0.75rem);column-gap:var(--gov-button-m-padding-x, 0.75rem);min-height:var(--gov-button-m-min-height, 2.5rem);padding:var(--gov-button-m-padding-y, 0.375rem) var(--gov-button-m-padding-x, 0.75rem)}[size=m].gov-button .element .gov-icon{width:var(--gov-button-m-icon-size, 1.25rem);height:var(--gov-button-m-icon-size, 1.25rem)}[size=l].gov-button .element{font-weight:var(--gov-button-text-l-font-weight, var(--gov-text-l-font-weight));font-size:var(--gov-button-text-l-font-size, var(--gov-text-l-font-size));line-height:var(--gov-button-text-l-line-height, var(--gov-text-l-line-height));letter-spacing:var(--gov-button-text-l-letter-spacing, var(--gov-text-l-letter-spacing));-moz-column-gap:var(--gov-button-l-padding-x, 1rem);column-gap:var(--gov-button-l-padding-x, 1rem);min-height:var(--gov-button-l-min-height, 3rem);padding:var(--gov-button-l-padding-y, 0.5rem) var(--gov-button-l-padding-x, 1rem)}[size=l].gov-button .element .gov-icon{width:var(--gov-button-l-icon-size, 1.5rem);height:var(--gov-button-l-icon-size, 1.5rem)}[size=xl].gov-button .element{font-weight:var(--gov-button-text-xl-font-weight, var(--gov-text-xl-font-weight));font-size:var(--gov-button-text-xl-font-size, var(--gov-text-xl-font-size));line-height:var(--gov-button-text-xl-line-height, var(--gov-text-xl-line-height));letter-spacing:var(--gov-button-text-xl-letter-spacing, var(--gov-text-xl-letter-spacing));-moz-column-gap:var(--gov-button-xl-padding-x, 1.25rem);column-gap:var(--gov-button-xl-padding-x, 1.25rem);min-height:var(--gov-button-xl-min-height, 3.5rem);padding:var(--gov-button-xl-padding-y, 0.75rem) var(--gov-button-xl-padding-x, 1.25rem)}[size=xl].gov-button .element .gov-icon{width:var(--gov-button-xl-icon-size, 1.75rem);height:var(--gov-button-xl-icon-size, 1.75rem)}.gov-button{display:inline-block}.gov-button .element{border-radius:var(--gov-border-radius, 0.1875rem)}.gov-button[type=link] .element{padding:0;text-decoration:underline;line-height:inherit;min-height:inherit}@media not all and (pointer: coarse){.gov-button[type=link] .element:hover{text-decoration:none}}.gov-button[loading=true] .element>.gov-icon:not(.gov-spin-animation),.gov-button[loading=true] .element>gov-icon:not(.gov-spin-animation),.gov-button[loading="1"] .element>.gov-icon:not(.gov-spin-animation),.gov-button[loading="1"] .element>gov-icon:not(.gov-spin-animation){display:none}.gov-button:not(.gov-button--w-icon)[loading="0"][size=xs] .element,.gov-button:not(.gov-button--w-icon)[loading=false][size=xs] .element,.gov-button:not(.gov-button--w-icon)[loading=""][size=xs] .gov-button:not[type=link] .element{padding:var(--gov-button-xs-padding-y, 0.125rem) calc(var(--gov-button-xs-padding-x, 0.625rem) + var(--gov-button-xs-padding-x, 0.625rem) / 2 + var(--gov-button-xs-icon-size, 1rem) / 2)}.gov-button:not(.gov-button--w-icon)[loading="0"][size=s] .element,.gov-button:not(.gov-button--w-icon)[loading=false][size=s] .element,.gov-button:not(.gov-button--w-icon)[loading=""][size=s] .gov-button:not[type=link] .element{padding:var(--gov-button-s-padding-y, 0.25rem) calc(var(--gov-button-s-padding-x, 0.75rem) + var(--gov-button-s-padding-x, 0.75rem) / 2 + var(--gov-button-s-icon-size, 1rem) / 2)}.gov-button:not(.gov-button--w-icon)[loading="0"][size=m] .element,.gov-button:not(.gov-button--w-icon)[loading=false][size=m] .element,.gov-button:not(.gov-button--w-icon)[loading=""][size=m] .gov-button:not[type=link] .element{padding:var(--gov-button-m-padding-y, 0.375rem) calc(var(--gov-button-m-padding-x, 0.75rem) + var(--gov-button-m-padding-x, 0.75rem) / 2 + var(--gov-button-m-icon-size, 1.25rem) / 2)}.gov-button:not(.gov-button--w-icon)[loading="0"][size=l] .element,.gov-button:not(.gov-button--w-icon)[loading=false][size=l] .element,.gov-button:not(.gov-button--w-icon)[loading=""][size=l] .gov-button:not[type=link] .element{padding:var(--gov-button-l-padding-y, 0.5rem) calc(var(--gov-button-l-padding-x, 1rem) + var(--gov-button-l-padding-x, 1rem) / 2 + var(--gov-button-l-icon-size, 1.5rem) / 2)}.gov-button:not(.gov-button--w-icon)[loading="0"][size=xl] .element,.gov-button:not(.gov-button--w-icon)[loading=false][size=xl] .element,.gov-button:not(.gov-button--w-icon)[loading=""][size=xl] .gov-button:not[type=link] .element{padding:var(--gov-button-xl-padding-y, 0.75rem) calc(var(--gov-button-xl-padding-x, 1.25rem) + var(--gov-button-xl-padding-x, 1.25rem) / 2 + var(--gov-button-xl-icon-size, 1.75rem) / 2)}';var f;(function(e){e["A"]="a";e["BUTTON"]="button"})(f||(f={}));const x=class{constructor(r){e(this,r);this.govClick=o(this,"gov-click",7);this.govFocus=o(this,"gov-focus",7);this.govBlur=o(this,"gov-blur",7);this.variant=undefined;this.size="m";this.type="solid";this.expanded=false;this.inverse=false;this.name=undefined;this.disabled=false;this.nativeType="button";this.href=undefined;this.target=undefined;this.download=undefined;this.hreflang=undefined;this.referrerpolicy=undefined;this.rel=undefined;this.loading=undefined;this.focusable=true;this.identifier=undefined;this.wcagActiveDescendant=undefined;this.wcagControls=undefined;this.wcagDescribedBy=undefined;this.wcagDescription=undefined;this.wcagDetails=undefined;this.wcagExpanded=undefined;this.wcagLabel=undefined;this.wcagLabelledBy=undefined;this.wcagOwns=undefined;this.wcagHasPopup=undefined;this.wcagPressed=undefined;this.wcagCurrent=undefined;this.isPressed=false;this.h=b(this.host)}validateVariant(e){a(v,e,i.root)}validateType(e){a(l,e,i.root)}validateSize(e){a(c,e,i.root)}validateNativeType(e){a(s,e,i.root)}componentWillLoad(){this.validateVariant(this.variant);this.validateType(this.type);this.validateSize(this.size);this.validateNativeType(this.nativeType)}async componentDidRender(){if(y()){await h(500);await this.validateWcag()}}get classNames(){const{h:e}=this;return u([i.root,e.hasSlot("left-icon")&&i.rootWithIcon,e.hasSlot("right-icon")&&i.rootWithIcon])}render(){const e=this.href?f.A:f.BUTTON;const o=e===f.A?undefined:this.nativeType;return r(t,{hoverable:true,size:this.size,variant:this.variant,class:this.h.classes(this.classNames),type:this.type,inverse:this.inverse},r(e,{class:"element",ref:e=>this.buttonRef=e,onClick:this.onClickHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),onMouseDown:()=>this.isPressed=true,onMouseUp:()=>this.isPressed=false,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:o,tabindex:this.focusable?"0":"-1","aria-activedescendant":this.wcagActiveDescendant,"aria-describedby":this.wcagActiveDescendant,"aria-description":this.wcagDescription,"aria-controls":this.wcagControls,"aria-details":this.wcagDetails,"aria-expanded":g(this.wcagExpanded),"aria-label":this.wcagLabel,"aria-labelledby":this.wcagLabelledBy,"aria-owns":this.wcagOwns,"aria-haspopup":g(this.wcagHasPopup),"aria-pressed":d(this.isPressed),"aria-disabled":g(this.disabled),"aria-current":this.wcagCurrent},k(this.loading)&&!this.h.hasSlot("right-icon")&&r("gov-icon",{name:"loader",class:"gov-spin-animation"}),this.h.hasSlot("left-icon")&&r("slot",{name:"left-icon"}),r("slot",null),this.h.hasSlot("right-icon")&&r("slot",{name:"right-icon"}),k(this.loading)&&this.h.hasSlot("right-icon")&&r("gov-icon",{name:"loader",class:"gov-spin-animation"})))}onClickHandler(e){e.stopPropagation();if(this.disabled===false){this.govClick.emit(e)}}onFocusHandler(e){e.stopPropagation();this.govFocus.emit(e)}onBlurHandler(e){e.stopPropagation();this.govBlur.emit(e)}async setFocus(){this.buttonRef.focus()}async validateWcag(){if(this.focusable){p(this.wcagActiveDescendant,"aria-activedescendant",i.root);p(this.wcagControls,"aria-controls",i.root);p(this.wcagDetails,"aria-details",i.root);p(this.wcagOwns,"aria-owns",i.root);p(this.wcagHasPopup,"aria-haspopup",i.root);m(this.wcagLabel,this.wcagLabelledBy,i.root)}}get host(){return n(this)}static get watchers(){return{variant:["validateVariant"],type:["validateType"],size:["validateSize"],nativeType:["validateNativeType"]}}};x.style=w;export{x as gov_button};
|
|
2
|
+
//# sourceMappingURL=p-c836f7cd.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/core/src/utils/bool.utils.ts","../../../packages/core/src/components/gov-button/gov-button.scss?tag=gov-button","../../../packages/core/src/components/gov-button/gov-button.tsx"],"names":["toBool","value","indexOf","govButtonCss","Tags","GovButton","[object Object]","hostRef","this","h","govHost","host","newValue","validateProp","ButtonVariants","ButtonClass","root","Type","Sizes","NativeType","validateVariant","variant","validateType","type","validateSize","size","validateNativeType","nativeType","canValidateWcagOnRender","delay","validateWcag","classNames","prepareClasses","hasSlot","rootWithIcon","Tag","href","A","BUTTON","undefined","Host","hoverable","class","classes","inverse","ref","el","buttonRef","onClick","onClickHandler","bind","onFocus","onFocusHandler","onBlur","onBlurHandler","onMouseDown","isPressed","onMouseUp","disabled","id","identifier","target","download","hreflang","rel","name","tabindex","focusable","aria-activedescendant","wcagActiveDescendant","aria-describedby","aria-description","wcagDescription","aria-controls","wcagControls","aria-details","wcagDetails","aria-expanded","toBoolAttrIfDefined","wcagExpanded","aria-label","wcagLabel","aria-labelledby","wcagLabelledBy","aria-owns","wcagOwns","aria-haspopup","wcagHasPopup","aria-pressed","toBoolAttr","aria-disabled","aria-current","wcagCurrent","loading","e","stopPropagation","govClick","emit","govFocus","govBlur","focus","validateWcagRef","validateWcagLabel"],"mappings":"8bAAgBA,EAAOC,GACtB,UAAWA,IAAU,SAAU,CAC9B,MAAO,CAAC,OAAQ,OAAQ,OAAQ,KAAKC,QAAQD,MAAY,OACnD,UAAWA,IAAU,SAAU,CACrC,OAAOA,EAAQ,OACT,UAAWA,IAAU,UAAW,CACtC,OAAOA,MACD,CACN,OAAOA,EAAQ,KAAO,OCRxB,MAAME,EAAe,8mxECWrB,IAAKC,GAAL,SAAKA,GACJA,EAAA,KAAA,IACAA,EAAA,UAAA,UAFD,CAAKA,IAAAA,EAAI,WASIC,EAAS,MAIrBC,YAAAC,wJAayD,cAIN,sBAId,mBAID,wCASgB,sBAKJ,0LAuCV,oYAwFjB,MArKpBC,KAAKC,EAAIC,EAAQF,KAAKG,MAkJvBL,gBAAgBM,GACfC,EAAaC,EAAgBF,EAAUG,EAAYC,MAIpDV,aAAaM,GACZC,EAAaI,EAAML,EAAUG,EAAYC,MAI1CV,aAAaM,GACZC,EAAaK,EAAON,EAAUG,EAAYC,MAI3CV,mBAAmBM,GAClBC,EAAaM,EAAYP,EAAUG,EAAYC,MAKhDV,oBACCE,KAAKY,gBAAgBZ,KAAKa,SAC1Bb,KAAKc,aAAad,KAAKe,MACvBf,KAAKgB,aAAahB,KAAKiB,MACvBjB,KAAKkB,mBAAmBlB,KAAKmB,YAG9BrB,2BACC,GAAIsB,IAA2B,OACxBC,EAAM,WACNrB,KAAKsB,gBAIbC,iBACC,MAAMtB,EAAEA,GAAMD,KAEd,OAAOwB,EAAe,CAACjB,EAAYC,KAAMP,EAAEwB,QAAQ,cAAgBlB,EAAYmB,aAAczB,EAAEwB,QAAQ,eAAiBlB,EAAYmB,eAGrI5B,SACC,MAAM6B,EAAM3B,KAAK4B,KAAOhC,EAAKiC,EAAIjC,EAAKkC,OACtC,MAAMX,EAAaQ,IAAQ/B,EAAKiC,EAAIE,UAAY/B,KAAKmB,WAErD,OACClB,EAAC+B,EAAI,CAACC,UAAW,KAAMhB,KAAMjB,KAAKiB,KAAMJ,QAASb,KAAKa,QAASqB,MAAOlC,KAAKC,EAAEkC,QAAQnC,KAAKuB,YAAaR,KAAMf,KAAKe,KAAMqB,QAASpC,KAAKoC,SACrInC,EAAC0B,EAAG,CACHO,MAAM,UACNG,IAAKC,GAAOtC,KAAKuC,UAAYD,EAC7BE,QAASxC,KAAKyC,eAAeC,KAAK1C,MAClC2C,QAAS3C,KAAK4C,eAAeF,KAAK1C,MAClC6C,OAAQ7C,KAAK8C,cAAcJ,KAAK1C,MAChC+C,YAAa,IAAO/C,KAAKgD,UAAY,KACrCC,UAAW,IAAOjD,KAAKgD,UAAY,MACnCE,SAAUlD,KAAKkD,SACfC,GAAInD,KAAKoD,WACTxB,KAAM5B,KAAK4B,KACXyB,OAAQrD,KAAKqD,OACbC,SAAUtD,KAAKsD,SACfC,SAAUvD,KAAKuD,SACfC,IAAKxD,KAAKwD,IACVC,KAAMzD,KAAKyD,KACX1C,KAAMI,EACNuC,SAAU1D,KAAK2D,UAAY,IAAM,KAAIC,wBACd5D,KAAK6D,qBAAoBC,mBAC9B9D,KAAK6D,qBAAoBE,mBACzB/D,KAAKgE,gBAAeC,gBACvBjE,KAAKkE,aAAYC,eAClBnE,KAAKoE,YAAWC,gBACfC,EAAoBtE,KAAKuE,cAAaC,aACzCxE,KAAKyE,UAASC,kBACT1E,KAAK2E,eAAcC,YACzB5E,KAAK6E,SAAQC,gBACTR,EAAoBtE,KAAK+E,cAAaC,eACvCC,EAAWjF,KAAKgD,WAAUkC,gBACzBZ,EAAoBtE,KAAKkD,UAASiC,eACnCnF,KAAKoF,aAElB5F,EAAOQ,KAAKqF,WAAarF,KAAKC,EAAEwB,QAAQ,eAAiBxB,EAAA,WAAA,CAAUwD,KAAK,SAASvB,MAAM,uBACvFlC,KAAKC,EAAEwB,QAAQ,cAAgBxB,EAAA,OAAA,CAAMwD,KAAK,cAC3CxD,EAAA,OAAA,MACCD,KAAKC,EAAEwB,QAAQ,eAAiBxB,EAAA,OAAA,CAAMwD,KAAK,eAC3CjE,EAAOQ,KAAKqF,UAAYrF,KAAKC,EAAEwB,QAAQ,eAAiBxB,EAAA,WAAA,CAAUwD,KAAK,SAASvB,MAAM,yBAMnFpC,eAAewF,GACtBA,EAAEC,kBACF,GAAIvF,KAAKkD,WAAa,MAAO,CAC5BlD,KAAKwF,SAASC,KAAKH,IAIbxF,eAAewF,GACtBA,EAAEC,kBACFvF,KAAK0F,SAASD,KAAKH,GAGZxF,cAAcwF,GACrBA,EAAEC,kBACFvF,KAAK2F,QAAQF,KAAKH,GAOnBxF,iBACCE,KAAKuC,UAAUqD,QAOhB9F,qBACC,GAAIE,KAAK2D,UAAW,CACnBkC,EAAgB7F,KAAK6D,qBAAsB,wBAAyBtD,EAAYC,MAChFqF,EAAgB7F,KAAKkE,aAAc,gBAAiB3D,EAAYC,MAChEqF,EAAgB7F,KAAKoE,YAAa,eAAgB7D,EAAYC,MAC9DqF,EAAgB7F,KAAK6E,SAAU,YAAatE,EAAYC,MACxDqF,EAAgB7F,KAAK+E,aAAc,gBAAiBxE,EAAYC,MAChEsF,EAAkB9F,KAAKyE,UAAWzE,KAAK2E,eAAgBpE,EAAYC","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","/*\n * Button\n */\n\n// Shared definitions - BUTTON & badge\n@import \"./gov-button-core.scss\";\n\n.gov-button {\n\t@extend %button-core;\n\tdisplay: inline-block;\n\t.element {\n\t\tborder-radius: #{$border-radius};\n\t}\n\n\t&[type=\"link\"] {\n\t\t.element {\n\t\t\tpadding: 0;\n\t\t\ttext-decoration: underline;\n\t\t\tline-height: inherit;\n\t\t\tmin-height: inherit;\n\t\t\t@include hover() {\n\t\t\t\ttext-decoration: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t// STATES\n\t&[loading=\"true\"],\n\t&[loading=\"1\"] {\n\t\t.element {\n\t\t\t> .gov-icon:not(.gov-spin-animation),\n\t\t\t> gov-icon:not(.gov-spin-animation) {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t// VARIANTS\n\t@each $size, $definitions in $button-sizes {\n\t\t// Loading state\n\t\t&:not(&--w-icon)[loading=\"0\"][size=\"#{$size}\"],\n\t\t&:not(&--w-icon)[loading=\"false\"][size=\"#{$size}\"],\n\t\t&:not(&--w-icon)[loading=\"\"][size=\"#{$size}\"]\n\t\t&:not[type=\"link\"] {\n\t\t\t.element {\n\t\t\t\tpadding: get(\"padding-y\", $definitions)\n\t\t\t\t\tcalc(get(\"padding-x\", $definitions) + (get(\"padding-x\", $definitions) / 2) + (get(\"icon-size\", $definitions) / 2));\n\t\t\t}\n\t\t}\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 { ButtonSizesType, NativeTypesType, TypesType, ButtonVariants, ButtonVariantType, ButtonClass, Type, NativeType, ButtonTargetType } from './constants'\nimport { govHost, toBoolAttr, toBoolAttrIfDefined, prepareClasses } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { toBool } from '../../utils/bool.utils'\nimport { Sizes } from '../../core/constants/sizes'\nimport { validateWcagLabel, validateWcagRef } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\n\nenum Tags {\n\tA = 'a',\n\tBUTTON = 'button',\n}\n\n@Component({\n\ttag: 'gov-button',\n\tstyleUrl: 'gov-button.scss',\n})\nexport class GovButton {\n\tprivate h: GovHost\n\tprivate buttonRef?: HTMLButtonElement\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 variant?: ButtonVariantType\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?: TypesType = 'solid'\n\t/**\n\t * Expands the button to fill 100% of the container width\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Determine 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 * 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-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 parametr\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 * Indicates the id of a related component’s visually focused element\n\t */\n\t@Prop({ attribute: 'wcag-active-descendant' }) readonly wcagActiveDescendant: string\n\t/**\n\t * Use this property to add an aria-controls attribute to the button. Use the attribute to point to the unique id of the content that the button manages\n\t */\n\t@Prop({ attribute: 'wcag-controls' }) readonly wcagControls: string\n\t/**\n\t * Indicates the id of a component that describes the button\n\t */\n\t@Prop({ attribute: 'wcag-described-by' }) readonly wcagDescribedBy: string\n\t/**\n\t * Aria description the button\n\t */\n\t@Prop({ attribute: 'wcag-description' }) readonly wcagDescription: string\n\t/**\n\t * Details of the component\n\t */\n\t@Prop({ attribute: 'wcag-details' }) readonly wcagDetails: string\n\t/**\n\t * If a button expands or collapses adjacent content, then use the ariaExpanded prop to add the aria-expanded attribute to the button\n\t * Set the value to convey the current expanded (true) or collapsed (false) state of the content\n\t */\n\t@Prop({ attribute: 'wcag-expanded' }) readonly wcagExpanded: boolean\n\t/**\n\t * Adds accessible label for the button that is only shown for screen readers\n\t * Typically, this label text replaces the visible text on the button for users who use assistive technology\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: 'wcag-labelled-by' }) readonly wcagLabelledBy: string\n\t/**\n\t * Indicates the id of a component owned by the button\n\t */\n\t@Prop({ attribute: 'wcag-owns' }) readonly wcagOwns: string\n\t/**\n\t * \tUse this property to add an aria-haspopup attribute to a button, if you are using it as a menu button\n\t */\n\t@Prop({ attribute: 'wcag-has-popup' }) readonly wcagHasPopup: string\n\t/**\n\t * Tells screen reader the element is pressed\n\t */\n\t@Prop({ attribute: 'wcag-pressed' }) readonly wcagPressed: string\n\t/**\n\t * Indicates the current item within a container or set of related elements\n\t */\n\t@Prop({ attribute: 'wcag-current' }) readonly wcagCurrent: string\n\t/**\n\t * Emitted when the button click\n\t */\n\t@Event({ eventName: 'gov-click' }) govClick: EventEmitter<PointerEvent>\n\t/**\n\t * Emitted when the button has focus\n\t */\n\t@Event({ eventName: 'gov-focus' }) govFocus: EventEmitter<FocusEvent>\n\t/**\n\t * Emitted when the button loses focus\n\t */\n\t@Event({ eventName: 'gov-blur' }) govBlur: EventEmitter<FocusEvent>\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(ButtonVariants, newValue, ButtonClass.root)\n\t}\n\n\t@Watch('type')\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(Type, 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() isPressed = false\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateType(this.type)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateNativeType(this.nativeType)\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\tget classNames(): string {\n\t\tconst { h } = this\n\n\t\treturn prepareClasses([ButtonClass.root, h.hasSlot('left-icon') && ButtonClass.rootWithIcon, h.hasSlot('right-icon') && ButtonClass.rootWithIcon])\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 hoverable={true} size={this.size} variant={this.variant} class={this.h.classes(this.classNames)} type={this.type} inverse={this.inverse}>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\tref={el => (this.buttonRef = el as HTMLButtonElement)}\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\tonMouseDown={() => (this.isPressed = true)}\n\t\t\t\t\tonMouseUp={() => (this.isPressed = false)}\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.focusable ? '0' : '-1'}\n\t\t\t\t\taria-activedescendant={this.wcagActiveDescendant}\n\t\t\t\t\taria-describedby={this.wcagActiveDescendant}\n\t\t\t\t\taria-description={this.wcagDescription}\n\t\t\t\t\taria-controls={this.wcagControls}\n\t\t\t\t\taria-details={this.wcagDetails}\n\t\t\t\t\taria-expanded={toBoolAttrIfDefined(this.wcagExpanded)}\n\t\t\t\t\taria-label={this.wcagLabel}\n\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\taria-owns={this.wcagOwns}\n\t\t\t\t\taria-haspopup={toBoolAttrIfDefined(this.wcagHasPopup)}\n\t\t\t\t\taria-pressed={toBoolAttr(this.isPressed)}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\taria-current={this.wcagCurrent}\n\t\t\t\t>\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot('right-icon') && <gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>}\n\t\t\t\t\t{this.h.hasSlot('left-icon') && <slot name=\"left-icon\"></slot>}\n\t\t\t\t\t<slot />\n\t\t\t\t\t{this.h.hasSlot('right-icon') && <slot name=\"right-icon\"></slot>}\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot('right-icon') && <gov-icon name=\"loader\" class=\"gov-spin-animation\"></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(e)\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit(e)\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit(e)\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.buttonRef.focus()\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\tif (this.focusable) {\n\t\t\tvalidateWcagRef(this.wcagActiveDescendant, 'aria-activedescendant', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagControls, 'aria-controls', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagDetails, 'aria-details', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagOwns, 'aria-owns', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagHasPopup, 'aria-haspopup', ButtonClass.root)\n\t\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, ButtonClass.root)\n\t\t}\n\t}\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,c as i,h as e,H as a,g as r}from"./p-4af5e4f4.js";import{a as t}from"./p-561fa17b.js";import{v as n}from"./p-26acf964.js";import{A as c,b as d,c as s}from"./p-a5d69694.js";import{c as g}from"./p-24636c53.js";import{g as v,b as m,t as l}from"./p-3f37ddb6.js";import"./p-55500e5a.js";import"./p-ff7365ae.js";import"./p-03990da5.js";const h='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-accordion-item{position:relative;display:block;width:100%}.gov-accordion-item__header{display:inline-flex;vertical-align:middle;justify-content:center;align-items:center;border:0;background-color:transparent;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;display:flex;justify-content:space-between;align-items:center;width:100%;border-radius:0;text-align:left;text-transform:none;transition:background-color 150ms ease-in-out}.gov-accordion-item__header:focus{outline:none}.gov-accordion-item__header:focus{outline:none}.gov-accordion-item__header:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0}.gov-accordion-item__header::before{content:"";position:absolute;display:block;right:0;bottom:-1px;left:0;height:1px}.gov-accordion-item__header:focus-visible::before{display:none}.gov-accordion-item__header[aria-expanded=""] .gov-accordion-item__arrow,.gov-accordion-item__header[aria-expanded=true i] .gov-accordion-item__arrow,.gov-accordion-item__header[aria-expanded="1"] .gov-accordion-item__arrow{transform:scale(-1)}.gov-accordion-item__arrow{flex:0 0 auto;align-self:center}.gov-accordion-item__icon{display:inline-flex;vertical-align:middle;flex:0 0 auto}.gov-accordion-item__suffix{display:inline-flex;vertical-align:middle;flex:0 0 auto;align-self:start;margin-left:auto;line-height:initial}.gov-accordion-item__title{margin:0;padding:0;font-family:var(--gov-font-family, "Roboto", sans-serif);font-weight:400;box-sizing:border-box;display:flex;flex:1 1 auto;align-items:flex-start}.gov-accordion-item__name{display:flex;flex-direction:column}.gov-accordion-item__annot{color:var(--gov-color-secondary)}.gov-accordion-item__content>*:last-child{margin-bottom:0}.gov-accordion-item[size=xs] .gov-accordion-item__header{gap:var(--gov-accordion-s-headline-gap, 0.5rem);min-height:var(--gov-accordion-s-min-height, 3rem);padding:var(--gov-accordion-s-padding-y, 0.75rem) var(--gov-accordion-s-padding-x, 0.5rem)}.gov-accordion-item[size=xs] .gov-accordion-item__arrow{width:var(--gov-accordion-s-icon-size, 0.75rem);height:var(--gov-accordion-s-icon-size, 0.75rem)}.gov-accordion-item[size=xs] .gov-accordion-item__icon{width:calc(var(--gov-text-m-font-size) * 1.2);height:calc(var(--gov-text-m-font-size) * 1.2);transform:translateY(var(--gov-accordion-s-icon-position, 0.0625rem))}.gov-accordion-item[size=xs] .gov-accordion-item__title{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);gap:var(--gov-accordion-s-headline-gap, 0.5rem)}.gov-accordion-item[size=xs] .gov-accordion-item__annot{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing)}.gov-accordion-item[size=xs] .gov-accordion-item__content{padding:var(--gov-accordion-s-padding-inner, 1rem 0.5rem)}.gov-accordion-item[size=s] .gov-accordion-item__header{gap:var(--gov-accordion-s-headline-gap, 0.5rem);min-height:var(--gov-accordion-s-min-height, 3rem);padding:var(--gov-accordion-s-padding-y, 1.125rem) var(--gov-accordion-s-padding-x, 0.5rem)}.gov-accordion-item[size=s] .gov-accordion-item__arrow{width:var(--gov-accordion-s-icon-size, 0.75rem);height:var(--gov-accordion-s-icon-size, 0.75rem)}.gov-accordion-item[size=s] .gov-accordion-item__icon{width:calc(var(--gov-text-xl-font-size) * 1.2);height:calc(var(--gov-text-xl-font-size) * 1.2);transform:translateY(var(--gov-accordion-s-icon-position, 0.0625rem))}.gov-accordion-item[size=s] .gov-accordion-item__title{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);gap:var(--gov-accordion-s-headline-gap, 0.5rem)}.gov-accordion-item[size=s] .gov-accordion-item__annot{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-accordion-item[size=s] .gov-accordion-item__content{padding:var(--gov-accordion-s-padding-inner, 1rem 0.5rem)}.gov-accordion-item[size=m] .gov-accordion-item__header{gap:var(--gov-accordion-m-headline-gap, 1rem);min-height:var(--gov-accordion-m-min-height, 4.5rem);padding:var(--gov-accordion-m-padding-y, 1.25rem) var(--gov-accordion-m-padding-x, 0.5rem)}.gov-accordion-item[size=m] .gov-accordion-item__arrow{width:var(--gov-accordion-m-icon-size, 1rem);height:var(--gov-accordion-m-icon-size, 1rem)}.gov-accordion-item[size=m] .gov-accordion-item__icon{width:calc(var(--gov-text-2xl-font-size) * 1.2);height:calc(var(--gov-text-2xl-font-size) * 1.2);transform:translateY(var(--gov-accordion-m-icon-position, 0.125rem))}.gov-accordion-item[size=m] .gov-accordion-item__title{font-weight:var(--gov-text-2xl-font-weight);font-size:var(--gov-text-2xl-font-size);line-height:var(--gov-text-2xl-line-height);letter-spacing:var(--gov-text-2xl-letter-spacing);gap:var(--gov-accordion-m-headline-gap, 1rem)}.gov-accordion-item[size=m] .gov-accordion-item__annot{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-accordion-item[size=m] .gov-accordion-item__content{padding:var(--gov-accordion-m-padding-inner, 1.25rem 0.5rem)}.gov-accordion-item[size=l] .gov-accordion-item__header{gap:var(--gov-accordion-l-headline-gap, 1rem);min-height:var(--gov-accordion-l-min-height, 5.5rem);padding:var(--gov-accordion-l-padding-y, 1.375rem) var(--gov-accordion-l-padding-x, 0.5rem)}.gov-accordion-item[size=l] .gov-accordion-item__arrow{width:var(--gov-accordion-l-icon-size, 1.25rem);height:var(--gov-accordion-l-icon-size, 1.25rem)}.gov-accordion-item[size=l] .gov-accordion-item__icon{width:calc(var(--gov-text-3xl-font-size) * 1.2);height:calc(var(--gov-text-3xl-font-size) * 1.2);transform:translateY(var(--gov-accordion-l-icon-position, 0.125rem))}.gov-accordion-item[size=l] .gov-accordion-item__title{font-weight:var(--gov-text-3xl-font-weight);font-size:var(--gov-text-3xl-font-size);line-height:var(--gov-text-3xl-line-height);letter-spacing:var(--gov-text-3xl-letter-spacing);gap:var(--gov-accordion-l-headline-gap, 1rem)}.gov-accordion-item[size=l] .gov-accordion-item__annot{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-accordion-item[size=l] .gov-accordion-item__content{padding:var(--gov-accordion-l-padding-inner, 1.25rem 0.5rem)}.gov-accordion-item[variant=primary] .gov-accordion-item__header{background-color:var(--gov-accordion-primary-background, transparent);color:var(--gov-accordion-primary-color, var(--gov-color-primary))}.gov-accordion-item[variant=primary] .gov-accordion-item__header::before{background-color:var(--gov-accordion-primary-separator, var(--gov-color-secondary-500))}@media not all and (pointer: coarse){.gov-accordion-item[variant=primary] .gov-accordion-item__header:hover{background-color:var(--gov-accordion-primary-background-hover, var(--gov-color-primary-200))}}.gov-accordion-item[variant=primary][disabled=""] .gov-accordion-item__header,.gov-accordion-item[variant=primary][disabled=true i] .gov-accordion-item__header,.gov-accordion-item[variant=primary][disabled="1"] .gov-accordion-item__header{color:var(--gov-accordion-primary-disabled-color, var(--gov-color-primary-400))}@media not all and (pointer: coarse){.gov-accordion-item[variant=primary][disabled=""] .gov-accordion-item__header:hover,.gov-accordion-item[variant=primary][disabled=true i] .gov-accordion-item__header:hover,.gov-accordion-item[variant=primary][disabled="1"] .gov-accordion-item__header:hover{background:transparent;cursor:not-allowed}}.gov-accordion-item[variant=secondary] .gov-accordion-item__header{background-color:var(--gov-accordion-secondary-background, transparent);color:var(--gov-accordion-secondary-color, var(--gov-color-secondary))}.gov-accordion-item[variant=secondary] .gov-accordion-item__header::before{background-color:var(--gov-accordion-secondary-separator, var(--gov-color-secondary-500))}@media not all and (pointer: coarse){.gov-accordion-item[variant=secondary] .gov-accordion-item__header:hover{background-color:var(--gov-accordion-secondary-background-hover, var(--gov-color-secondary-200))}}.gov-accordion-item[variant=secondary][disabled=""] .gov-accordion-item__header,.gov-accordion-item[variant=secondary][disabled=true i] .gov-accordion-item__header,.gov-accordion-item[variant=secondary][disabled="1"] .gov-accordion-item__header{color:var(--gov-accordion-secondary-disabled-color, var(--gov-color-secondary-600))}@media not all and (pointer: coarse){.gov-accordion-item[variant=secondary][disabled=""] .gov-accordion-item__header:hover,.gov-accordion-item[variant=secondary][disabled=true i] .gov-accordion-item__header:hover,.gov-accordion-item[variant=secondary][disabled="1"] .gov-accordion-item__header:hover{background:transparent;cursor:not-allowed}}@media (max-width: 47.99em){.gov-accordion-item__title{flex-wrap:wrap}.gov-accordion-item__label{flex:0 0 auto}}';const p=class{constructor(e){o(this,e);this.govChange=i(this,"gov-change",7);this.isExpandedState=undefined;this.variant="primary";this.identifier=undefined;this.size=undefined;this.label=undefined;this.annotation=undefined;this.disabled=false;this.isExpanded=false;this.triggerTag="h3";this.noBorder=false;this.h=v(this.host);this.triggerId=g("GovAccordionItem");this.contentId=g("GovAccordionContent")}validateLabel(o){if(!o){t(`[${c.root}]: Parameter label is required.`)}}validateTriggerTag(o){const i=["h1","h2","h3","h4","h5","h6","span"];if(o){if(!i.includes(o)){t(`[${c.root}]: Tag ${o} is not allowed.`)}}}validateSize(o){n(d,o,c.root)}validateVariant(o){n(s,o,c.root)}emmitChange(){this.govChange.emit({open:this.isExpandedState,element:this.host})}componentWillLoad(){this.isExpandedState=this.isExpanded;this.validateSize(this.size);this.validateLabel(this.label);this.validateVariant(this.variant);this.validateTriggerTag(this.triggerTag)}render(){const o=this.identifier||this.triggerId;const i=this.contentId;const{isExpandedState:r,label:t}=this;const n=this.triggerTag;return e(a,{class:this.h.classes(c.root),"no-border":this.noBorder,role:"listitem"},e("button",{id:o,class:c.header,"aria-expanded":m(r),"aria-controls":i,disabled:this.disabled,"aria-disabled":l(this.disabled),onClick:o=>{o.stopPropagation();this.toggle().finally()}},e(n,{class:c.title},this.h.hasSlot("icon")&&e("span",{class:c.icon},e("slot",{name:"icon"})),e("span",{class:c.name},e("span",{class:c.label},t),this.annotation&&e("span",{class:c.annot},this.annotation)),this.h.hasSlot("suffix")&&e("span",{class:c.suffix},e("slot",{name:"suffix"}))),e("gov-icon",{class:c.arrow,name:"chevron-down"})),e("div",{class:c.content,id:i,"aria-hidden":m(!r),hidden:!r,"aria-labelledby":o},e("slot",null)))}async open(){this.isExpandedState=true;this.emmitChange()}async close(){this.isExpandedState=false;this.emmitChange()}async toggle(){this.isExpandedState=!this.isExpandedState;this.emmitChange()}async currentState(){return this.isExpandedState}get host(){return r(this)}static get watchers(){return{label:["validateLabel"],triggerTag:["validateTriggerTag"],size:["validateSize"],variant:["validateVariant"]}}};p.style=h;export{p as gov_accordion_item};
|
|
2
|
+
//# sourceMappingURL=p-c91928ed.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/core/src/components/gov-accordion/gov-accordion-item.scss?tag=gov-accordion-item","../../../packages/core/src/components/gov-accordion/gov-accordion-item.tsx"],"names":["govAccordionItemCss","GovAccordionItem","[object Object]","hostRef","this","h","govHost","host","triggerId","createID","contentId","newValue","govErrorLog","AccordionItemClass","root","validTags","includes","validateProp","AccordionSizes","AccordionVariants","govChange","emit","open","isExpandedState","element","isExpanded","validateSize","size","validateLabel","label","validateVariant","variant","validateTriggerTag","triggerTag","identifier","TriggerTag","Host","class","classes","no-border","noBorder","role","id","header","aria-expanded","booleanString","aria-controls","disabled","aria-disabled","toBoolAttrIfDefined","onClick","e","stopPropagation","toggle","finally","title","hasSlot","icon","name","annotation","annot","suffix","arrow","content","aria-hidden","hidden","aria-labelledby","emmitChange"],"mappings":"wVAAA,MAAMA,EAAsB,yhTCoBfC,EAAgB,MAK5BC,YAAAC,+FAYkD,qHAqBb,sBAI8B,sBAID,mBAIH,MA5C9DC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,UAAYC,EAAS,oBAC1BL,KAAKM,UAAYD,EAAS,uBAiD3BP,cAAcS,GACb,IAAKA,EAAU,CACdC,EAAY,IAAIC,EAAmBC,wCAKrCZ,mBAAmBS,GAClB,MAAMI,EAAY,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,QACvD,GAAIJ,EAAU,CACb,IAAKI,EAAUC,SAASL,GAAW,CAClCC,EAAY,IAAIC,EAAmBC,cAAcH,uBAMpDT,aAAaS,GACZM,EAAaC,EAAgBP,EAAUE,EAAmBC,MAI3DZ,gBAAgBS,GACfM,EAAaE,EAAmBR,EAAUE,EAAmBC,MAGtDZ,cACPE,KAAKgB,UAAUC,KAAK,CAAEC,KAAMlB,KAAKmB,gBAAiBC,QAASpB,KAAKG,OAGjEL,oBACCE,KAAKmB,gBAAkBnB,KAAKqB,WAC5BrB,KAAKsB,aAAatB,KAAKuB,MACvBvB,KAAKwB,cAAcxB,KAAKyB,OACxBzB,KAAK0B,gBAAgB1B,KAAK2B,SAC1B3B,KAAK4B,mBAAmB5B,KAAK6B,YAG9B/B,SACC,MAAMM,EAAYJ,KAAK8B,YAAc9B,KAAKI,UAC1C,MAAME,EAAYN,KAAKM,UACvB,MAAMa,gBAAEA,EAAeM,MAAEA,GAAUzB,KACnC,MAAM+B,EAAa/B,KAAK6B,WAExB,OACC5B,EAAC+B,EAAI,CAACC,MAAOjC,KAAKC,EAAEiC,QAAQzB,EAAmBC,MAAKyB,YAAanC,KAAKoC,SAAUC,KAAK,YACpFpC,EAAA,SAAA,CACCqC,GAAIlC,EACJ6B,MAAOxB,EAAmB8B,OAAMC,gBACjBC,EAActB,GAAgBuB,gBAC9BpC,EACfqC,SAAU3C,KAAK2C,SAAQC,gBACRC,EAAoB7C,KAAK2C,UACxCG,QAAUC,IACTA,EAAEC,kBACFhD,KAAKiD,SAASC,YAEfjD,EAAC8B,EAAU,CAACE,MAAOxB,EAAmB0C,OACpCnD,KAAKC,EAAEmD,QAAQ,SACfnD,EAAA,OAAA,CAAMgC,MAAOxB,EAAmB4C,MAC/BpD,EAAA,OAAA,CAAMqD,KAAK,UAIbrD,EAAA,OAAA,CAAMgC,MAAOxB,EAAmB6C,MAC/BrD,EAAA,OAAA,CAAMgC,MAAOxB,EAAmBgB,OAAQA,GACvCzB,KAAKuD,YAActD,EAAA,OAAA,CAAMgC,MAAOxB,EAAmB+C,OAAQxD,KAAKuD,aAGjEvD,KAAKC,EAAEmD,QAAQ,WACfnD,EAAA,OAAA,CAAMgC,MAAOxB,EAAmBgD,QAC/BxD,EAAA,OAAA,CAAMqD,KAAK,aAKdrD,EAAA,WAAA,CAAUgC,MAAOxB,EAAmBiD,MAAOJ,KAAK,kBAEjDrD,EAAA,MAAA,CACCgC,MAAOxB,EAAmBkD,QAC1BrB,GAAIhC,EAASsD,cACAnB,GAAetB,GAC5B0C,QAAS1C,EAAe2C,kBACP1D,GACjBH,EAAA,OAAA,QAUJH,aACCE,KAAKmB,gBAAkB,KACvBnB,KAAK+D,cAONjE,cACCE,KAAKmB,gBAAkB,MACvBnB,KAAK+D,cAONjE,eACCE,KAAKmB,iBAAmBnB,KAAKmB,gBAC7BnB,KAAK+D,cAONjE,qBACC,OAAOE,KAAKmB","sourcesContent":["/*\n * Accordion - Item\n */\n\n$class: \".gov-accordion-item\";\n\n#{$class} {\n\t@include base();\n\t&__header {\n\t\t@include button-core();\n\t\t@include focus-outline();\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\tborder-radius: 0;\n\t\ttext-align: left;\n\t\ttext-transform: none;\n\t\ttransition: background-color $t ease-in-out;\n\t\t&::before {\n\t\t\t@include pseudo();\n\t\t\tright: 0;\n\t\t\tbottom: -1px;\n\t\t\tleft: 0;\n\t\t\theight: 1px;\n\t\t}\n\n\t\t// STATES\n\t\t&:focus-visible {\n\t\t\t&::before {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t\t@include parameter(\"aria-expanded\") {\n\t\t\t#{$class} {\n\t\t\t\t&__arrow {\n\t\t\t\t\ttransform: scale(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t&__arrow {\n\t\tflex: 0 0 auto;\n\t\talign-self: center;\n\t}\n\t&__icon {\n\t\tdisplay: inline-flex;\n\t\tvertical-align: middle;\n\t\tflex: 0 0 auto;\n\t}\n\t&__suffix {\n\t\tdisplay: inline-flex;\n\t\tvertical-align: middle;\n\t\tflex: 0 0 auto;\n\t\talign-self: start;\n\t\tmargin-left: auto;\n\t\tline-height: initial;\n\t}\n\t&__title {\n\t\t@include general;\n\t\tdisplay: flex;\n\t\tflex: 1 1 auto;\n\t\talign-items: flex-start;\n\t}\n\t&__name {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t}\n\t&__annot {\n\t\tcolor: color(\"secondary\");\n\t}\n\t&__content {\n\t\t@include reset-last-margin();\n\t}\n\n\t// VARIANTS\n\t@each $size, $definitions in $accordion-sizes {\n\t\t&[size=\"#{$size}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__header {\n\t\t\t\t\tgap: get(\"headline-gap\", $definitions);\n\t\t\t\t\tmin-height: get(\"min-height\", $definitions);\n\t\t\t\t\tpadding: get(\"padding-y\", $definitions) get(\"padding-x\", $definitions);\n\t\t\t\t}\n\t\t\t\t&__arrow {\n\t\t\t\t\twidth: get(\"icon-size\", $definitions);\n\t\t\t\t\theight: get(\"icon-size\", $definitions);\n\t\t\t\t}\n\t\t\t\t&__icon {\n\t\t\t\t\twidth: calc(get-font-size(get(\"font\", $definitions)) * 1.2);\n\t\t\t\t\theight: calc(get-font-size(get(\"font\", $definitions)) * 1.2);\n\t\t\t\t\ttransform: translateY(get(\"icon-position\", $definitions));\n\t\t\t\t}\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(get(\"font\", $definitions));\n\t\t\t\t\tgap: get(\"headline-gap\", $definitions);\n\t\t\t\t}\n\t\t\t\t&__annot {\n\t\t\t\t\t@include typography(get(\"font-annot\", $definitions));\n\t\t\t\t}\n\t\t\t\t&__content {\n\t\t\t\t\tpadding: get(\"padding-inner\", $definitions);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t@each $variant, $definitions in $accordion-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__header {\n\t\t\t\t\tbackground-color: get(\"background\", $definitions);\n\t\t\t\t\tcolor: get(\"color\", $definitions);\n\t\t\t\t\t&::before {\n\t\t\t\t\t\tbackground-color: get(\"separator\", $definitions);\n\t\t\t\t\t}\n\t\t\t\t\t@include hover() {\n\t\t\t\t\t\tbackground-color: get(\"background-hover\", $definitions);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// STATES\n\t\t\t@include parameter(\"disabled\") {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__header {\n\t\t\t\t\t\tcolor: get(\"disabled-color\", $definitions);\n\t\t\t\t\t\t@include hover() {\n\t\t\t\t\t\t\tbackground: transparent;\n\t\t\t\t\t\t\tcursor: not-allowed;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($until: md) {\n\t\t&__title {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\t\t&__label {\n\t\t\tflex: 0 0 auto;\n\t\t\t// max-width: calc(100% - 50px);\n\t\t}\n\t}\n}\n","import { Component, Element, h, Prop, State, Watch, Host, Method, Event, EventEmitter } from \"@stencil/core\"\nimport { govErrorLog } from \"../../helpers/Log/gov.log\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport {\n\tAccordionSizeType,\n\tAccordionSizes,\n\tAccordionItemClass,\n\tAccordionVariantType,\n\tAccordionVariants,\n} from \"./constants\"\nimport { createID } from \"../../utils/string.utils\"\nimport { booleanString, toBoolAttrIfDefined } from \"../../helpers/Dom/template\"\nimport { GovAccordionItemChangeEvent } from \"./gov-accordion-item.d\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\n\n@Component({\n\ttag: \"gov-accordion-item\",\n\tstyleUrl: \"gov-accordion-item.scss\",\n})\nexport class GovAccordionItem {\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.triggerId = createID(\"GovAccordionItem\")\n\t\tthis.contentId = createID(\"GovAccordionContent\")\n\t}\n\n\t@Element() readonly host: HTMLGovAccordionItemElement\n\t@State() isExpandedState: boolean\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant?: AccordionVariantType = \"primary\"\n\t/**\n\t * Custom accordion item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Accordion’s size.\n\t */\n\t@Prop() readonly size?: AccordionSizeType\n\t/**\n\t * Item name of the accordion\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Item annotation of the accordion\n\t */\n\t@Prop() readonly annotation: 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 * Defines whether the accordion is open or closed by default\n\t */\n\t@Prop({ attribute: \"is-expanded\" }) readonly isExpanded: boolean = false\n\t/**\n\t * Used to change the HTML tag in the accordion trigger for correct semantic structure\n\t */\n\t@Prop({ attribute: \"trigger-tag\" }) readonly triggerTag: string = \"h3\"\n\t/**\n\t * To remove the main underline of an item\n\t */\n\t@Prop({ attribute: \"no-border\" }) readonly noBorder: boolean = false\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<GovAccordionItemChangeEvent>\n\n\t@Watch(\"label\")\n\tvalidateLabel(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${AccordionItemClass.root}]: Parameter label is required.`)\n\t\t}\n\t}\n\n\t@Watch(\"triggerTag\")\n\tvalidateTriggerTag(newValue: string): void {\n\t\tconst validTags = [\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"span\"]\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${AccordionItemClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(AccordionSizes, newValue, AccordionItemClass.root)\n\t}\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(AccordionVariants, newValue, AccordionItemClass.root)\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.validateSize(this.size)\n\t\tthis.validateLabel(this.label)\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateTriggerTag(this.triggerTag)\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst contentId = this.contentId\n\t\tconst { isExpandedState, label } = this\n\t\tconst TriggerTag = this.triggerTag\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AccordionItemClass.root)} no-border={this.noBorder} role=\"listitem\">\n\t\t\t\t<button\n\t\t\t\t\tid={triggerId}\n\t\t\t\t\tclass={AccordionItemClass.header}\n\t\t\t\t\taria-expanded={booleanString(isExpandedState)}\n\t\t\t\t\taria-controls={contentId}\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\tonClick={(e: Event) => {\n\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\tthis.toggle().finally()\n\t\t\t\t\t}}>\n\t\t\t\t\t<TriggerTag class={AccordionItemClass.title}>\n\t\t\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t\t\t<span class={AccordionItemClass.icon}>\n\t\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t<span class={AccordionItemClass.name}>\n\t\t\t\t\t\t\t<span class={AccordionItemClass.label}>{label}</span>\n\t\t\t\t\t\t\t{this.annotation && <span class={AccordionItemClass.annot}>{this.annotation}</span>}\n\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t{this.h.hasSlot(\"suffix\") && (\n\t\t\t\t\t\t\t<span class={AccordionItemClass.suffix}>\n\t\t\t\t\t\t\t\t<slot name=\"suffix\" />\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</TriggerTag>\n\n\t\t\t\t\t<gov-icon class={AccordionItemClass.arrow} name=\"chevron-down\"></gov-icon>\n\t\t\t\t</button>\n\t\t\t\t<div\n\t\t\t\t\tclass={AccordionItemClass.content}\n\t\t\t\t\tid={contentId}\n\t\t\t\t\taria-hidden={booleanString(!isExpandedState)}\n\t\t\t\t\thidden={!isExpandedState}\n\t\t\t\t\taria-labelledby={triggerId}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Opening the accordion\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 accordion\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 * Accordion 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"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,c as r,h as e,H as i,g as a}from"./p-4af5e4f4.js";import{c as t}from"./p-24636c53.js";import{v as s}from"./p-26acf964.js";import{g as c,c as n,d as v}from"./p-9cd80b05.js";import{g as d,t as m}from"./p-3f37ddb6.js";import{a as l,b as g}from"./p-364b4792.js";import{c as f}from"./p-c20102ff.js";import{d as h}from"./p-03990da5.js";import{F as p}from"./p-1c1d0bbe.js";import"./p-561fa17b.js";import"./p-55500e5a.js";import"./p-ff7365ae.js";import"./p-ef79904e.js";import"./p-6278531b.js";import"./p-f687452c.js";import"./p-3464136c.js";const b='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-form-radio{cursor:pointer}.gov-form-radio input{position:absolute;top:0;left:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.gov-form-radio input+span{position:relative;display:block}.gov-form-radio input+span::before{content:"";position:absolute;display:block;top:0;left:0;border:var(--gov-form-checkbox-border-size, 0.125rem solid var(--gov-color-primary));transition:150ms linear border-color, 150ms linear background-color, 150ms linear outline-color}.gov-form-radio .gov-form-label__label{position:relative;z-index:1;width:100%}.gov-form-radio input:focus-visible+span::before{outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base)}[invalid=""].gov-form-radio .gov-form-label__label,[invalid=true i].gov-form-radio .gov-form-label__label,[invalid="1"].gov-form-radio .gov-form-label__label{color:var(--gov-form-state-color-error, var(--gov-color-error))}[invalid=""].gov-form-radio input+span::before,[invalid=true i].gov-form-radio input+span::before,[invalid="1"].gov-form-radio input+span::before{border-color:var(--gov-form-state-color-error, var(--gov-color-error))}[disabled=""].gov-form-radio,[disabled=true i].gov-form-radio,[disabled="1"].gov-form-radio{pointer-events:none}[disabled=""].gov-form-radio .gov-form-label__label,[disabled=true i].gov-form-radio .gov-form-label__label,[disabled="1"].gov-form-radio .gov-form-label__label{color:var(--gov-form-state-color-disabled, var(--gov-color-secondary-600))}[disabled=""].gov-form-radio input+span::before,[disabled=true i].gov-form-radio input+span::before,[disabled="1"].gov-form-radio input+span::before{border-color:var(--gov-form-input-disabled-bg, var(--gov-color-primary-400))}[size=xs].gov-form-radio{font-weight:var(--gov-text-xs-font-weight);font-size:var(--gov-text-xs-font-size);line-height:var(--gov-text-xs-line-height);letter-spacing:var(--gov-text-xs-letter-spacing);display:block;min-width:var(--gov-form-checkbox-core-xs-indicator-size, 1.25rem);min-height:var(--gov-form-checkbox-core-xs-indicator-size, 1.25rem)}[size=xs].gov-form-radio .gov-form-label__label{padding-top:calc((var(--gov-form-checkbox-core-xs-indicator-size, 1.25rem) - var(--gov-text-xs-font-size) * 1.5) / 2);padding-left:calc(var(--gov-form-checkbox-core-xs-indicator-size, 1.25rem) + var(--gov-form-checkbox-core-xs-gap, 0.75rem))}[size=xs].gov-form-radio input+span::before{width:var(--gov-form-checkbox-core-xs-indicator-size, 1.25rem);height:var(--gov-form-checkbox-core-xs-indicator-size, 1.25rem)}[size=s].gov-form-radio{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);display:block;min-width:var(--gov-form-checkbox-core-s-indicator-size, 1.375rem);min-height:var(--gov-form-checkbox-core-s-indicator-size, 1.375rem)}[size=s].gov-form-radio .gov-form-label__label{padding-top:calc((var(--gov-form-checkbox-core-s-indicator-size, 1.375rem) - var(--gov-text-s-font-size) * 1.5) / 2);padding-left:calc(var(--gov-form-checkbox-core-s-indicator-size, 1.375rem) + var(--gov-form-checkbox-core-s-gap, 0.75rem))}[size=s].gov-form-radio input+span::before{width:var(--gov-form-checkbox-core-s-indicator-size, 1.375rem);height:var(--gov-form-checkbox-core-s-indicator-size, 1.375rem)}[size=m].gov-form-radio{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);display:block;min-width:var(--gov-form-checkbox-core-m-indicator-size, 1.5rem);min-height:var(--gov-form-checkbox-core-m-indicator-size, 1.5rem)}[size=m].gov-form-radio .gov-form-label__label{padding-top:calc((var(--gov-form-checkbox-core-m-indicator-size, 1.5rem) - var(--gov-text-m-font-size) * 1.5) / 2);padding-left:calc(var(--gov-form-checkbox-core-m-indicator-size, 1.5rem) + var(--gov-form-checkbox-core-m-gap, 1rem))}[size=m].gov-form-radio input+span::before{width:var(--gov-form-checkbox-core-m-indicator-size, 1.5rem);height:var(--gov-form-checkbox-core-m-indicator-size, 1.5rem)}[size=l].gov-form-radio{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing);display:block;min-width:var(--gov-form-checkbox-core-l-indicator-size, 2rem);min-height:var(--gov-form-checkbox-core-l-indicator-size, 2rem)}[size=l].gov-form-radio .gov-form-label__label{padding-top:calc((var(--gov-form-checkbox-core-l-indicator-size, 2rem) - var(--gov-text-l-font-size) * 1.5) / 2);padding-left:calc(var(--gov-form-checkbox-core-l-indicator-size, 2rem) + var(--gov-form-checkbox-core-l-gap, 1rem))}[size=l].gov-form-radio input+span::before{width:var(--gov-form-checkbox-core-l-indicator-size, 2rem);height:var(--gov-form-checkbox-core-l-indicator-size, 2rem)}.gov-form-radio input+span::before{border-radius:50%}.gov-form-radio input+span::after{content:"";position:absolute;display:block;border-radius:50%;background:var(--gov-form-radio-indicator-bg, var(--gov-color-primary));opacity:0;transition:150ms linear opacity}.gov-form-radio input:checked+span::after{opacity:1}.gov-form-radio[invalid=""] input+span::after,.gov-form-radio[invalid=true i] input+span::after,.gov-form-radio[invalid="1"] input+span::after{background:var(--gov-form-state-color-error, var(--gov-color-error))}.gov-form-radio[disabled=""] input:checked+span::after,.gov-form-radio[disabled=true i] input:checked+span::after,.gov-form-radio[disabled="1"] input:checked+span::after{background-color:var(--gov-form-input-disabled-bg, var(--gov-color-primary-400))}.gov-form-radio[size=xs] input+span::after{top:calc((var(--gov-form-checkbox-core-xs-indicator-size, 1.25rem) - var(--gov-form-checkbox-core-xs-dot-size, 0.625rem)) / 2);left:calc((var(--gov-form-checkbox-core-xs-indicator-size, 1.25rem) - var(--gov-form-checkbox-core-xs-dot-size, 0.625rem)) / 2);width:var(--gov-form-checkbox-core-xs-dot-size, 0.625rem);height:var(--gov-form-checkbox-core-xs-dot-size, 0.625rem)}.gov-form-radio[size=s] input+span::after{top:calc((var(--gov-form-checkbox-core-s-indicator-size, 1.375rem) - var(--gov-form-checkbox-core-s-dot-size, 0.6875rem)) / 2);left:calc((var(--gov-form-checkbox-core-s-indicator-size, 1.375rem) - var(--gov-form-checkbox-core-s-dot-size, 0.6875rem)) / 2);width:var(--gov-form-checkbox-core-s-dot-size, 0.6875rem);height:var(--gov-form-checkbox-core-s-dot-size, 0.6875rem)}.gov-form-radio[size=m] input+span::after{top:calc((var(--gov-form-checkbox-core-m-indicator-size, 1.5rem) - var(--gov-form-checkbox-core-m-dot-size, 0.75rem)) / 2);left:calc((var(--gov-form-checkbox-core-m-indicator-size, 1.5rem) - var(--gov-form-checkbox-core-m-dot-size, 0.75rem)) / 2);width:var(--gov-form-checkbox-core-m-dot-size, 0.75rem);height:var(--gov-form-checkbox-core-m-dot-size, 0.75rem)}.gov-form-radio[size=l] input+span::after{top:calc((var(--gov-form-checkbox-core-l-indicator-size, 2rem) - var(--gov-form-checkbox-core-l-dot-size, 1rem)) / 2);left:calc((var(--gov-form-checkbox-core-l-indicator-size, 2rem) - var(--gov-form-checkbox-core-l-dot-size, 1rem)) / 2);width:var(--gov-form-checkbox-core-l-dot-size, 1rem);height:var(--gov-form-checkbox-core-l-dot-size, 1rem)}';const x=class{constructor(e){o(this,e);this.govFocus=r(this,"gov-focus",7);this.govBlur=r(this,"gov-blur",7);this.govChange=r(this,"gov-change",7);this.value=undefined;this.noLabel=false;this.checked=false;this.required=false;this.disabled=undefined;this.name=undefined;this.size="m";this.identifier=undefined;this.invalid=undefined;this.wcagDescribedBy=undefined;this.wcagLabelledBy=undefined;this.isChecked=undefined;this.radioId=t("GovRadio");this.h=d(this.host);this.f=c(this.h)}updateCheckedState(o){this.isChecked=o;this.govChange.emit({checked:this.isChecked,value:this.value})}validateSize(o){s(v,o,n.root)}componentWillLoad(){this.isChecked=this.checked;this.f.passAttrToControl("type","radio")}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.radioId);this.f.passAttrToLabel("required",String(this.required));if(f()){await h(500);await this.validateWcag()}}render(){const{isChecked:o}=this;const r=o=>{if(this.noLabel){return e("label",null,o)}return o};return e(i,{class:n.root,"is-checked":o,size:this.size,invalid:m(this.invalid)},e("div",{class:n.holder},r(e(p,null,e("input",{class:n.input,id:this.identifier||this.radioId,type:"radio",value:this.value,name:this.name,checked:this.isChecked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,"aria-checked":this.isChecked,"aria-required":m(this.required),"aria-invalid":m(this.invalid),"aria-describedby":this.wcagDescribedBy,"aria-labelledby":this.wcagLabelledBy,"aria-disabled":m(this.disabled)}),e("span",null,e("slot",{name:"label"}))))))}onClickHandler(o){o.stopPropagation()}onFocusHandler(o){o.stopPropagation();this.govFocus.emit(o)}onBlurHandler(o){o.stopPropagation();this.govBlur.emit(o)}onChangeHandler(o){this.isChecked=o.target.checked;o.stopPropagation();this.govChange.emit({checked:this.isChecked,value:this.value})}async validateWcag(){l(this.wcagDescribedBy,"wcag-described-by",n.root);l(this.wcagLabelledBy,"wcag-labelled-by",n.root);g(this.identifier||this.radioId,this.wcagLabelledBy,n.root)}get host(){return a(this)}static get watchers(){return{checked:["updateCheckedState"],size:["validateSize"]}}};x.style=b;export{x as gov_form_radio};
|
|
2
|
+
//# sourceMappingURL=p-d2f6053f.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/core/src/components/gov-form/radio/gov-form-radio.scss?tag=gov-form-radio","../../../packages/core/src/components/gov-form/radio/gov-form-radio.tsx"],"names":["govFormRadioCss","GovFormRadio","[object Object]","hostRef","this","radioId","createID","h","govHost","host","f","govForm","newValue","isChecked","govChange","emit","checked","value","validateProp","FormRadioSizes","FormRadioClass","root","passAttrToControl","passAttrToLabel","identifier","String","required","canValidateWcagOnRender","delay","validateWcag","wrapCheckbox","children","noLabel","Host","class","is-checked","size","invalid","toBoolAttrIfDefined","holder","Fragment","input","id","type","name","onClick","onClickHandler","bind","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","aria-checked","aria-required","aria-invalid","aria-describedby","wcagDescribedBy","aria-labelledby","wcagLabelledBy","aria-disabled","disabled","e","stopPropagation","govFocus","govBlur","target","validateWcagRef","validateWcagLabelFor"],"mappings":"oiBAAA,MAAMA,EAAkB,q7OCmBXC,EAAY,MAMxBC,YAAAC,2JAe6D,mBAIR,oBAKhB,4DAaQ,2IApC5CC,KAAKC,QAAUC,EAAS,YAExBF,KAAKG,EAAIC,EAAQJ,KAAKK,MACtBL,KAAKM,EAAIC,EAAQP,KAAKG,GAkEvBL,mBAAmBU,GAClBR,KAAKS,UAAYD,EACjBR,KAAKU,UAAUC,KAAK,CACnBC,QAASZ,KAAKS,UACdI,MAAOb,KAAKa,QAKdf,aAAaU,GACZM,EAAaC,EAAgBP,EAAUQ,EAAeC,MAGvDnB,oBACCE,KAAKS,UAAYT,KAAKY,QAEtBZ,KAAKM,EAAEY,kBAAkB,OAAQ,SAGlCpB,2BACCE,KAAKM,EAAEa,gBAAgB,aAAcnB,KAAKoB,YAAcpB,KAAKC,SAC7DD,KAAKM,EAAEa,gBAAgB,WAAYE,OAAOrB,KAAKsB,WAC/C,GAAIC,IAA2B,OACxBC,EAAM,WACNxB,KAAKyB,gBAIb3B,SACC,MAAMW,UAAEA,GAAcT,KACtB,MAAM0B,EAAgBC,IACrB,GAAI3B,KAAK4B,QAAS,CACjB,OACCzB,EAAA,QAAA,KACEwB,GAIJ,OAAOA,GAGR,OACCxB,EAAC0B,EAAI,CAACC,MAAOd,EAAeC,KAAIc,aAActB,EAAWuB,KAAMhC,KAAKgC,KAAMC,QAASC,EAAoBlC,KAAKiC,UAC3G9B,EAAA,MAAA,CAAK2B,MAAOd,EAAemB,QACzBT,EACAvB,EAACiC,EAAQ,KACRjC,EAAA,QAAA,CACC2B,MAAOd,EAAeqB,MACtBC,GAAItC,KAAKoB,YAAcpB,KAAKC,QAC5BsC,KAAK,QACL1B,MAAOb,KAAKa,MACZ2B,KAAMxC,KAAKwC,KACX5B,QAASZ,KAAKS,UACdgC,QAASzC,KAAK0C,eAAeC,KAAK3C,MAClC4C,SAAU5C,KAAK6C,gBAAgBF,KAAK3C,MACpC8C,QAAS9C,KAAK+C,eAAeJ,KAAK3C,MAClCgD,OAAQhD,KAAKiD,cAAcN,KAAK3C,MAChCsB,SAAUtB,KAAKsB,SAAQ4B,eACTlD,KAAKS,UAAS0C,gBACbjB,EAAoBlC,KAAKsB,UAAS8B,eACnClB,EAAoBlC,KAAKiC,SAAQoB,mBAC7BrD,KAAKsD,gBAAeC,kBACrBvD,KAAKwD,eAAcC,gBACrBvB,EAAoBlC,KAAK0D,YAEzCvD,EAAA,OAAA,KACCA,EAAA,OAAA,CAAMqC,KAAK,eASV1C,eAAe6D,GACtBA,EAAEC,kBAGK9D,eAAe6D,GACtBA,EAAEC,kBACF5D,KAAK6D,SAASlD,KAAKgD,GAGZ7D,cAAc6D,GACrBA,EAAEC,kBACF5D,KAAK8D,QAAQnD,KAAKgD,GAGX7D,gBAAgB6D,GACvB3D,KAAKS,UAAakD,EAAEI,OAA4BnD,QAChD+C,EAAEC,kBACF5D,KAAKU,UAAUC,KAAK,CACnBC,QAASZ,KAAKS,UACdI,MAAOb,KAAKa,QAQdf,qBACCkE,EAAgBhE,KAAKsD,gBAAiB,oBAAqBtC,EAAeC,MAC1E+C,EAAgBhE,KAAKwD,eAAgB,mBAAoBxC,EAAeC,MACxEgD,EAAqBjE,KAAKoB,YAAcpB,KAAKC,QAASD,KAAKwD,eAAgBxC,EAAeC","sourcesContent":["/*\n * Radio\n */\n\n@import \"../checkbox/gov-form-checkbox-core.scss\";\n$class: \".gov-form-radio\";\n\n#{$class} {\n\t@extend %form-checkbox-core;\n\tinput + span {\n\t\t&::before {\n\t\t\tborder-radius: 50%;\n\t\t}\n\t\t&::after {\n\t\t\t@include pseudo();\n\t\t\tborder-radius: 50%;\n\t\t\tbackground: $form-radio-indicator-bg;\n\t\t\topacity: 0;\n\t\t\ttransition: $t linear opacity;\n\t\t}\n\t}\n\n\t// STATES\n\tinput:checked + span::after {\n\t\topacity: 1;\n\t}\n\t@include parameter(\"invalid\") {\n\t\tinput + span::after {\n\t\t\tbackground: $form-state-color-error;\n\t\t}\n\t}\n\t@include parameter(\"disabled\") {\n\t\tinput:checked + span::after {\n\t\t\tbackground-color: $form-state-bg-disabled;\n\t\t}\n\t}\n\n\t// VARIANTS\n\t@each $size, $definitions in $form-checkbox-core-sizes {\n\t\t&[size=\"#{$size}\"] {\n\t\t\tinput + span::after {\n\t\t\t\ttop: calc((get(\"indicator-size\", $definitions) - get(\"dot-size\", $definitions)) / 2);\n\t\t\t\tleft: calc((get(\"indicator-size\", $definitions) - get(\"dot-size\", $definitions)) / 2);\n\t\t\t\twidth: get(\"dot-size\", $definitions);\n\t\t\t\theight: get(\"dot-size\", $definitions);\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Host, h, Prop, State, Event, EventEmitter, Element, Watch, Method } from '@stencil/core'\nimport { createID } from '../../../utils/string.utils'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { FormRadioClass, FormRadioSizes, FormRadioSizesType } from './constants'\nimport { toBoolAttrIfDefined } from '../../../helpers/Dom/template'\nimport { validateWcagLabelFor, validateWcagRef } from '../../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../../helpers/Dom/win'\nimport { delay } from '../../../utils/utils'\nimport { GovForm } from '../../../helpers/Dom/form.types'\nimport { govHost } from '../../../helpers/Dom/template'\nimport { GovHost } from '../../../helpers/Dom/template.types'\nimport { govForm } from '../../../helpers/Dom/form'\nimport { GovFormRadioChangeEvent } from './interfaces'\nimport Fragment from \"../../../helpers/Fragment\"\n\n@Component({\n\ttag: 'gov-form-radio',\n\tstyleUrl: 'gov-form-radio.scss',\n})\nexport class GovFormRadio {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\n\tprivate readonly radioId: string\n\n\tconstructor() {\n\t\tthis.radioId = createID('GovRadio')\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormRadioElement\n\t/**\n\t * Value of radio\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({ attribute: \"no-label\" }) readonly noLabel: boolean = false\n\t/**\n\t * Radio default state\n\t */\n\t@Prop({ reflect: true }) readonly checked: boolean = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the radio component disabled.\n\t * This prevents users from being able to interact with the radio, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean\n\t/**\n\t * Name of the radio.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Radio's size.\n\t */\n\t@Prop() readonly size?: FormRadioSizesType = 'm'\n\t/**\n\t * Custom radio identifier.\n\t */\n\t@Prop({ attribute: 'identifier' }) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Indicates the id of a component that describes the input.\n\t */\n\t@Prop({ attribute: 'wcag-described-by' }) readonly wcagDescribedBy: string\n\t/**\n\t * Indicates the id of a component that labels the input.\n\t */\n\t@Prop({ attribute: 'wcag-labelled-by' }) readonly wcagLabelledBy: string\n\t/**\n\t * Emitted when the radio has focus.\n\t */\n\t@Event({ eventName: 'gov-focus' }) govFocus: EventEmitter<FocusEvent>\n\t/**\n\t * Emitted when the radio loses focus.\n\t */\n\t@Event({ eventName: 'gov-blur' }) govBlur: EventEmitter<FocusEvent>\n\t/**\n\t * Emitted when the radio change value.\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovFormRadioChangeEvent>\n\n\t@State() isChecked: boolean\n\n\t@Watch('checked')\n\tupdateCheckedState(newValue: boolean): void {\n\t\tthis.isChecked = newValue\n\t\tthis.govChange.emit({\n\t\t\tchecked: this.isChecked,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormRadioSizes, newValue, FormRadioClass.root)\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.isChecked = this.checked\n\n\t\tthis.f.passAttrToControl('type', 'radio')\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel('identifier', this.identifier || this.radioId)\n\t\tthis.f.passAttrToLabel('required', String(this.required))\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 { isChecked } = this\n\t\tconst wrapCheckbox = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={FormRadioClass.root} is-checked={isChecked} size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t<div class={FormRadioClass.holder}>\n\t\t\t\t\t{wrapCheckbox(\n\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tclass={FormRadioClass.input}\n\t\t\t\t\t\t\t\tid={this.identifier || this.radioId}\n\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\t\tchecked={this.isChecked}\n\t\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t\taria-checked={this.isChecked}\n\t\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\t\taria-describedby={this.wcagDescribedBy}\n\t\t\t\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\t<slot name=\"label\" />\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit(e)\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit(e)\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.isChecked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tchecked: this.isChecked,\n\t\t\tvalue: this.value,\n\t\t})\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.wcagDescribedBy, 'wcag-described-by', FormRadioClass.root)\n\t\tvalidateWcagRef(this.wcagLabelledBy, 'wcag-labelled-by', FormRadioClass.root)\n\t\tvalidateWcagLabelFor(this.identifier || this.radioId, this.wcagLabelledBy, FormRadioClass.root)\n\t}\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,c as t,h as r,H as o,g as i}from"./p-4af5e4f4.js";import{a}from"./p-561fa17b.js";import{v as s}from"./p-26acf964.js";import{S as g,c as p}from"./p-9144dde1.js";import{c as v}from"./p-24636c53.js";import{g as n,p as c}from"./p-3f37ddb6.js";import"./p-ff7365ae.js";import"./p-55500e5a.js";import"./p-03990da5.js";const m='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-stepper-item{position:relative;display:block;width:100%}.gov-stepper-item__header{position:relative;width:100%}.gov-stepper-item__arrow{flex:0 0 auto;width:0.75rem;height:0.75rem}.gov-stepper-item__title{margin:0;padding:0;font-family:var(--gov-font-family, "Roboto", sans-serif);font-weight:400;box-sizing:border-box;display:flex;gap:1rem;align-items:baseline}.gov-stepper-item__prefix{display:flex;flex:0 0 auto;justify-content:center;align-items:center;border-radius:50%;text-align:center}.gov-stepper-item__prefix .gov-icon{width:45%;height:45%}.gov-stepper-item__name{display:flex;flex-direction:column}.gov-stepper-item__label{display:flex;gap:0.5rem;align-items:center}.gov-stepper-item__annot{color:var(--gov-color-secondary)}.gov-stepper-item__content>*:last-child{margin-bottom:0}.gov-stepper-item[variant=primary] .gov-stepper-item__header{color:var(--gov-wizzard-primary-color, var(--gov-color-primary-800))}.gov-stepper-item[variant=primary] .gov-stepper-item__prefix{background:var(--gov-wizzard-primary-indicator-bg, var(--gov-color-primary-300));color:var(--gov-wizzard-primary-indicator-color, var(--gov-color-primary-800))}.gov-stepper-item[variant=secondary] .gov-stepper-item__header{color:var(--gov-wizzard-secondary-color, var(--gov-color-secondary-700))}.gov-stepper-item[variant=secondary] .gov-stepper-item__prefix{background:var(--gov-wizzard-secondary-indicator-bg, var(--gov-color-secondary-400));color:var(--gov-wizzard-secondary-indicator-color, var(--gov-color-secondary-700))}.gov-stepper-item[variant=success] .gov-stepper-item__header{color:var(--gov-wizzard-success-color, var(--gov-color-success-500))}.gov-stepper-item[variant=success] .gov-stepper-item__prefix{background:var(--gov-wizzard-success-indicator-bg, var(--gov-color-success));color:var(--gov-wizzard-success-indicator-color, var(--gov-color-neutral-white))}.gov-stepper-item[variant=error] .gov-stepper-item__header{color:var(--gov-wizzard-error-color, var(--gov-color-error-500))}.gov-stepper-item[variant=error] .gov-stepper-item__prefix{background:var(--gov-wizzard-error-indicator-bg, var(--gov-color-error));color:var(--gov-wizzard-error-indicator-color, var(--gov-color-neutral-white))}.gov-stepper-item[variant=warning] .gov-stepper-item__header{color:var(--gov-wizzard-warning-color, var(--gov-color-warning-500))}.gov-stepper-item[variant=warning] .gov-stepper-item__prefix{background:var(--gov-wizzard-warning-indicator-bg, var(--gov-color-warning));color:var(--gov-wizzard-warning-indicator-color, var(--gov-color-neutral-white))}.gov-stepper-item::before{content:"";position:absolute;display:block;width:0.125rem}.gov-stepper-item:last-child::before{content:none}.gov-stepper-item[variant=primary]::before{background:var(--gov-wizzard-primary-indicator-bg, var(--gov-color-primary-300))}.gov-stepper-item[variant=secondary]::before{background:var(--gov-wizzard-secondary-indicator-bg, var(--gov-color-secondary-400))}.gov-stepper-item[variant=success]::before{background:var(--gov-wizzard-success-indicator-bg, var(--gov-color-success))}.gov-stepper-item[variant=error]::before{background:var(--gov-wizzard-error-indicator-bg, var(--gov-color-error))}.gov-stepper-item[variant=warning]::before{background:var(--gov-wizzard-warning-indicator-bg, var(--gov-color-warning))}.gov-stepper-item[size=xs]{min-height:calc(var(--gov-stepper-xs-indicator-size, 1.5rem) + 3 * var(--gov-stepper-xs-connect-gap, 0.5rem))}.gov-stepper-item[size=xs]::before{top:calc(var(--gov-stepper-xs-indicator-size, 1.5rem) + var(--gov-stepper-xs-connect-gap, 0.5rem));bottom:var(--gov-stepper-xs-connect-gap, 0.5rem);left:calc((var(--gov-stepper-xs-indicator-size, 1.5rem) - 0.125rem) / 2)}.gov-stepper-item[size=xs]:last-child{min-height:0}.gov-stepper-item[size=xs] .gov-stepper-item__title{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-stepper-item[size=xs] .gov-stepper-item__annot{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing)}.gov-stepper-item[size=xs] .gov-stepper-item__prefix{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);width:var(--gov-stepper-xs-indicator-size, 1.5rem);height:var(--gov-stepper-xs-indicator-size, 1.5rem);box-shadow:0 0 0 var(--gov-stepper-xs-connect-gap, 0.5rem) var(--gov-color-neutral-white)}.gov-stepper-item[size=xs] .gov-stepper-item__content{padding:var(--gov-stepper-xs-content-padding, 1rem 1rem 2rem 2.5rem)}.gov-stepper-item--w-annot[size=xs]{min-height:calc(var(--gov-stepper-xs-indicator-size, 1.5rem) * 1.5 + 3 * var(--gov-stepper-xs-connect-gap, 0.5rem))}.gov-stepper-item[size=s]{min-height:calc(var(--gov-stepper-s-indicator-size, 2rem) + 3 * var(--gov-stepper-s-connect-gap, 1rem))}.gov-stepper-item[size=s]::before{top:calc(var(--gov-stepper-s-indicator-size, 2rem) + var(--gov-stepper-s-connect-gap, 1rem));bottom:var(--gov-stepper-s-connect-gap, 1rem);left:calc((var(--gov-stepper-s-indicator-size, 2rem) - 0.125rem) / 2)}.gov-stepper-item[size=s]:last-child{min-height:0}.gov-stepper-item[size=s] .gov-stepper-item__title{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing)}.gov-stepper-item[size=s] .gov-stepper-item__annot{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-stepper-item[size=s] .gov-stepper-item__prefix{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);width:var(--gov-stepper-s-indicator-size, 2rem);height:var(--gov-stepper-s-indicator-size, 2rem);box-shadow:0 0 0 var(--gov-stepper-s-connect-gap, 1rem) var(--gov-color-neutral-white)}.gov-stepper-item[size=s] .gov-stepper-item__content{padding:var(--gov-stepper-s-content-padding, 1rem 1rem 2rem 3rem)}.gov-stepper-item--w-annot[size=s]{min-height:calc(var(--gov-stepper-s-indicator-size, 2rem) * 1.5 + 3 * var(--gov-stepper-s-connect-gap, 1rem))}.gov-stepper-item[size=m]{min-height:calc(var(--gov-stepper-m-indicator-size, 2.5rem) + 3 * var(--gov-stepper-m-connect-gap, 1rem))}.gov-stepper-item[size=m]::before{top:calc(var(--gov-stepper-m-indicator-size, 2.5rem) + var(--gov-stepper-m-connect-gap, 1rem));bottom:var(--gov-stepper-m-connect-gap, 1rem);left:calc((var(--gov-stepper-m-indicator-size, 2.5rem) - 0.125rem) / 2)}.gov-stepper-item[size=m]:last-child{min-height:0}.gov-stepper-item[size=m] .gov-stepper-item__title{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing)}.gov-stepper-item[size=m] .gov-stepper-item__annot{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-stepper-item[size=m] .gov-stepper-item__prefix{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);width:var(--gov-stepper-m-indicator-size, 2.5rem);height:var(--gov-stepper-m-indicator-size, 2.5rem);box-shadow:0 0 0 var(--gov-stepper-m-connect-gap, 1rem) var(--gov-color-neutral-white)}.gov-stepper-item[size=m] .gov-stepper-item__content{padding:var(--gov-stepper-m-content-padding, 1rem 1rem 2rem 3.5rem)}.gov-stepper-item--w-annot[size=m]{min-height:calc(var(--gov-stepper-m-indicator-size, 2.5rem) * 1.5 + 3 * var(--gov-stepper-m-connect-gap, 1rem))}';const l=class{constructor(r){e(this,r);this.govChange=t(this,"gov-change",7);this.isExpandedState=undefined;this.variant="primary";this.size="m";this.identifier=undefined;this.label=undefined;this.annotation=undefined;this.triggerTag="h3";this.h=n(this.host);this.triggerId=v("GovStepperItem");this.contentId=v("GovStepperContent")}validateLabel(e){if(!e){a(`[${g.root}]: Parameter label is required.`)}}validateTriggerTag(e){const t=["h1","h2","h3","h4","h5","h6","span"];if(e){if(!t.includes(e)){a(`[${g.root}]: Tag ${e} is not allowed.`)}}}validateVariant(e){s(p,e,g.root)}componentWillLoad(){this.validateLabel(this.label);this.validateVariant(this.variant);this.validateTriggerTag(this.triggerTag)}render(){const e=this.identifier||this.triggerId;const t=this.contentId;const{label:i}=this;const a=this.triggerTag;return r(o,{class:c([g.root,this.annotation&&g.rootWithAnnot]),variant:this.variant},r("div",{id:e,class:g.header,role:"listitem"},r(a,{class:g.title},this.h.hasSlot("prefix")&&r("span",{class:g.prefix},r("slot",{name:"prefix"})),r("span",{class:g.name},r("span",{class:g.label},i),this.annotation&&r("span",{class:g.annot},this.annotation)))),this.h.hasSlot("content")&&r("div",{class:g.content,id:t,"aria-labelledby":e,role:"tabpanel"},r("slot",{name:"content"})))}async currentState(){return this.isExpandedState}get host(){return i(this)}static get watchers(){return{label:["validateLabel"],triggerTag:["validateTriggerTag"],variant:["validateVariant"]}}};l.style=m;export{l as gov_stepper_item};
|
|
2
|
+
//# sourceMappingURL=p-d389c001.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/core/src/components/gov-stepper/gov-stepper-item.scss?tag=gov-stepper-item","../../../packages/core/src/components/gov-stepper/gov-stepper-item.tsx"],"names":["govStepperItemCss","GovStepperItem","[object Object]","hostRef","this","h","govHost","host","triggerId","createID","contentId","newValue","govErrorLog","StepperItemClass","root","validTags","includes","validateProp","StepperVariants","validateLabel","label","validateVariant","variant","validateTriggerTag","triggerTag","identifier","TriggerTag","Host","class","prepareClasses","annotation","rootWithAnnot","id","header","role","title","hasSlot","prefix","name","annot","content","aria-labelledby","isExpandedState"],"mappings":"qUAAA,MAAMA,EAAoB,0nQCabC,EAAc,MAK1BC,YAAAC,+FAYgD,oBAIL,6FAgBuB,KA/BjEC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,UAAYC,EAAS,kBAC1BL,KAAKM,UAAYD,EAAS,qBAoC3BP,cAAcS,GACb,IAAKA,EAAU,CACdC,EAAY,IAAIC,EAAiBC,wCAKnCZ,mBAAmBS,GAClB,MAAMI,EAAY,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,QACvD,GAAIJ,EAAU,CACb,IAAKI,EAAUC,SAASL,GAAW,CAClCC,EAAY,IAAIC,EAAiBC,cAAcH,uBAMlDT,gBAAgBS,GACfM,EAAaC,EAAiBP,EAAUE,EAAiBC,MAG1DZ,oBACCE,KAAKe,cAAcf,KAAKgB,OACxBhB,KAAKiB,gBAAgBjB,KAAKkB,SAC1BlB,KAAKmB,mBAAmBnB,KAAKoB,YAG9BtB,SACC,MAAMM,EAAYJ,KAAKqB,YAAcrB,KAAKI,UAC1C,MAAME,EAAYN,KAAKM,UACvB,MAAMU,MAAEA,GAAUhB,KAClB,MAAMsB,EAAatB,KAAKoB,WAExB,OACCnB,EAACsB,EAAI,CAACC,MAAOC,EAAe,CAAChB,EAAiBC,KAAMV,KAAK0B,YAAcjB,EAAiBkB,gBAAiBT,QAASlB,KAAKkB,SACtHjB,EAAA,MAAA,CAAK2B,GAAIxB,EAAWoB,MAAOf,EAAiBoB,OAAQC,KAAK,YACxD7B,EAACqB,EAAU,CAACE,MAAOf,EAAiBsB,OAClC/B,KAAKC,EAAE+B,QAAQ,WACf/B,EAAA,OAAA,CAAMuB,MAAOf,EAAiBwB,QAC7BhC,EAAA,OAAA,CAAMiC,KAAK,YAGbjC,EAAA,OAAA,CAAMuB,MAAOf,EAAiByB,MAC7BjC,EAAA,OAAA,CAAMuB,MAAOf,EAAiBO,OAAQA,GACrChB,KAAK0B,YAAczB,EAAA,OAAA,CAAMuB,MAAOf,EAAiB0B,OAAQnC,KAAK0B,eAKjE1B,KAAKC,EAAE+B,QAAQ,YACf/B,EAAA,MAAA,CAAKuB,MAAOf,EAAiB2B,QAASR,GAAItB,EAAS+B,kBAAmBjC,EAAW0B,KAAK,YACrF7B,EAAA,OAAA,CAAMiC,KAAK,cAWhBpC,qBACC,OAAOE,KAAKsC","sourcesContent":["/*\n * Stepper - Item\n */\n\n@import \"../gov-wizzard/gov-wizzard-item-core.scss\";\n$class: \".gov-stepper-item\";\n\n#{$class} {\n\t@include wizzard-item-core;\n\t&::before {\n\t\t@include pseudo();\n\t\twidth: rem-calc(2);\n\t}\n\t&:last-child::before {\n\t\tcontent: none;\n\t}\n\n\t// VARIANTS\n\t@each $variant, $definitions in $wizzard-core-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t&::before {\n\t\t\t\tbackground: get(\"indicator-bg\", $definitions);\n\t\t\t}\n\t\t}\n\t}\n\t@each $size, $definitions in $stepper-sizes {\n\t\t$connect-gap: get(\"connect-gap\", $definitions);\n\t\t&[size=\"#{$size}\"] {\n\t\t\tmin-height: calc(get(\"indicator-size\", $definitions) + 3 * $connect-gap);\n\t\t\t&::before {\n\t\t\t\ttop: calc(get(\"indicator-size\", $definitions) + $connect-gap);\n\t\t\t\tbottom: $connect-gap;\n\t\t\t\tleft: calc((get(\"indicator-size\", $definitions) - rem-calc(2)) / 2);\n\t\t\t}\n\t\t\t&:last-child {\n\t\t\t\tmin-height: 0;\n\t\t\t}\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(get(\"font-size\", $definitions));\n\t\t\t\t}\n\t\t\t\t&__annot {\n\t\t\t\t\t@include typography(get(\"font-size-annot\", $definitions));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(get(\"font-size-indicator\", $definitions));\n\t\t\t\t\twidth: get(\"indicator-size\", $definitions);\n\t\t\t\t\theight: get(\"indicator-size\", $definitions);\n\t\t\t\t\tbox-shadow: 0 0 0 $connect-gap color(\"neutral.white\");\n\t\t\t\t}\n\t\t\t\t&__content {\n\t\t\t\t\tpadding: get(\"content-padding\", $definitions);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t&--w-annot[size=\"#{$size}\"] {\n\t\t\tmin-height: calc(get(\"indicator-size\", $definitions) * 1.5 + 3 * $connect-gap);\n\t\t}\n\t}\n}\n","import { Component, Element, h, Prop, State, Watch, Host, Method, Event, EventEmitter } from '@stencil/core'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { StepperSizesType, StepperItemClass, StepperVariantType, StepperVariants } from './constants'\nimport { createID } from '../../utils/string.utils'\nimport { govHost, prepareClasses } from '../../helpers/Dom/template'\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-stepper-item',\n\tstyleUrl: 'gov-stepper-item.scss',\n})\nexport class GovStepperItem {\n\tprivate h: GovHost\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.triggerId = createID('GovStepperItem')\n\t\tthis.contentId = createID('GovStepperContent')\n\t}\n\n\t@Element() readonly host: HTMLGovStepperItemElement\n\t@State() isExpandedState: boolean\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant?: StepperVariantType = 'primary'\n\t/**\n\t * Size of stepper\n\t */\n\t@Prop() readonly size?: StepperSizesType = 'm'\n\t/**\n\t * Custom stepper item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Item name of the stepper\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Item annotation of the stepper\n\t */\n\t@Prop() readonly annotation: string\n\t/**\n\t * Used to change the HMTL tag in the stepper trigger for correct semantic structure\n\t */\n\t@Prop({ attribute: 'trigger-tag' }) readonly triggerTag: string = 'h3'\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\n\n\t@Watch('label')\n\tvalidateLabel(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${StepperItemClass.root}]: Parameter label is required.`)\n\t\t}\n\t}\n\n\t@Watch('triggerTag')\n\tvalidateTriggerTag(newValue: string): void {\n\t\tconst validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span']\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${StepperItemClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(StepperVariants, newValue, StepperItemClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateLabel(this.label)\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateTriggerTag(this.triggerTag)\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst contentId = this.contentId\n\t\tconst { label } = this\n\t\tconst TriggerTag = this.triggerTag\n\n\t\treturn (\n\t\t\t<Host class={prepareClasses([StepperItemClass.root, this.annotation && StepperItemClass.rootWithAnnot])} variant={this.variant}>\n\t\t\t\t<div id={triggerId} class={StepperItemClass.header} role=\"listitem\">\n\t\t\t\t\t<TriggerTag class={StepperItemClass.title}>\n\t\t\t\t\t\t{this.h.hasSlot('prefix') && (\n\t\t\t\t\t\t\t<span class={StepperItemClass.prefix}>\n\t\t\t\t\t\t\t\t<slot name=\"prefix\" />\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<span class={StepperItemClass.name}>\n\t\t\t\t\t\t\t<span class={StepperItemClass.label}>{label}</span>\n\t\t\t\t\t\t\t{this.annotation && <span class={StepperItemClass.annot}>{this.annotation}</span>}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</TriggerTag>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot('content') && (\n\t\t\t\t\t<div class={StepperItemClass.content} id={contentId} aria-labelledby={triggerId} role=\"tabpanel\">\n\t\t\t\t\t\t<slot name=\"content\" />\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 * 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"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as e,h as o,H as i}from"./p-4af5e4f4.js";import{F as a}from"./p-3464136c.js";import"./p-03990da5.js";import"./p-55500e5a.js";const l=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-form-label{position:relative;display:flex;width:100%}.gov-form-label__label{display:inline-block;color:var(--gov-form-label-color, #686868);cursor:pointer;box-sizing:border-box}.gov-form-label[size=xs] .gov-form-label__label{font-weight:var(--gov-text-xs-font-weight);font-size:var(--gov-text-xs-font-size);line-height:var(--gov-text-xs-line-height);letter-spacing:var(--gov-text-xs-letter-spacing);margin-bottom:var(--gov-form-label-xs-margin-bottom, 0.25rem)}.gov-form-label[size=s] .gov-form-label__label{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);margin-bottom:var(--gov-form-label-s-margin-bottom, 0.5rem)}.gov-form-label[size=m] .gov-form-label__label{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);margin-bottom:var(--gov-form-label-m-margin-bottom, 0.75rem)}.gov-form-label[size=l] .gov-form-label__label{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing);margin-bottom:var(--gov-form-label-l-margin-bottom, 0.25rem)}.gov-form-label[size=xl] .gov-form-label__label{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);margin-bottom:var(--gov-form-label-xl-margin-bottom, 0.25rem)}";const r=class{constructor(o){t(this,o);this.govClick=e(this,"gov-click",7);this.identifier=undefined;this.size="m";this.required=false;this.legend=false}render(){const t=this.legend?"legend":"label";return o(i,{class:a.root,size:this.size},o(t,{class:a.label,htmlFor:this.identifier,onClick:()=>this.govClick.emit()},o("slot",null),this.required?o("span",{class:"gov-color--danger-500"},"*"):null))}};r.style=l;export{r as gov_form_label};
|
|
2
|
+
//# sourceMappingURL=p-d5c2db32.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/core/src/components/gov-form/label/gov-form-label.scss?tag=gov-form-label","../../../packages/core/src/components/gov-form/label/gov-form-label.tsx"],"names":["govFormLabelCss","GovFormLabel","[object Object]","Tag","this","legend","h","Host","class","FormLabelClass","root","size","label","htmlFor","identifier","onClick","govClick","emit","required"],"mappings":"6IAAA,MAAMA,EAAkB,84DCOXC,EAAY,uGAQsB,kBAIT,kBAKF,MAMnCC,SACC,MAAMC,EAAMC,KAAKC,OAAS,SAAW,QACrC,OACCC,EAACC,EAAI,CAACC,MAAOC,EAAeC,KAAMC,KAAMP,KAAKO,MAC5CL,EAACH,EAAG,CAACK,MAAOC,EAAeG,MAAOC,QAAST,KAAKU,WAAYC,QAAS,IAAMX,KAAKY,SAASC,QACxFX,EAAA,OAAA,MACCF,KAAKc,SAAYZ,EAAA,OAAA,CAAME,MAAM,yBAAuB,KAAa","sourcesContent":["/*\n * Label\n */\n\n$class: \".gov-form-label\";\n\n#{$class} {\n\t@include base(flex);\n\t&__label {\n\t\tdisplay: inline-block;\n\t\tcolor: $form-label-color;\n\t\tcursor: pointer;\n\t\tbox-sizing: border-box;\n\t}\n\n\t// VARIANTS\n\t@each $size, $definitions in $form-label-sizes {\n\t\t&[size=\"#{$size}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__label {\n\t\t\t\t\t@include typography($size);\n\t\t\t\t\tmargin-bottom: get(\"margin-bottom\", $definitions);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Event, EventEmitter, h, Prop, Host } from '@stencil/core'\nimport { FormLabelClass, FormLabelSizesTypes } from \"./constants\"\n\n@Component({\n\ttag: 'gov-form-label',\n\tstyleUrl: 'gov-form-label.scss',\n})\nexport class GovFormLabel {\n\t/**\n\t * Identifier for label.\n\t */\n\t@Prop({ attribute: 'identifier' }) readonly identifier: string\n\t/**\n\t * Label's size.\n\t */\n\t@Prop() readonly size?: FormLabelSizesTypes = 'm'\n\t/**\n\t * Set whether the input is required or not.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Use label as a legend for better accessibility.\n\t * Note: Don't forget to set the fieldset attribute of the gov-form-control component\n\t */\n\t@Prop() readonly legend: boolean = false\n\t/**\n\t * Emitted when the label click.\n\t */\n\t@Event({ eventName: 'gov-click' }) govClick: EventEmitter<PointerEvent>\n\n\trender() {\n\t\tconst Tag = this.legend ? 'legend' : 'label'\n\t\treturn (\n\t\t\t<Host class={FormLabelClass.root} size={this.size}>\n\t\t\t\t<Tag class={FormLabelClass.label} htmlFor={this.identifier} onClick={() => this.govClick.emit()}>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t\t{this.required ? (<span class=\"gov-color--danger-500\">*</span>) : null}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as i,H as e,g as s}from"./p-4af5e4f4.js";import{g as o}from"./p-3f37ddb6.js";import{v as a}from"./p-26acf964.js";import{S as n,b as r}from"./p-1020a160.js";import"./p-561fa17b.js";import"./p-03990da5.js";import"./p-ff7365ae.js";const m=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-statsbar-item{position:relative;display:block;padding:1.25rem}.gov-statsbar-item__icon,.gov-statsbar-item__number{margin-bottom:1rem}.gov-statsbar-item__icon{display:block;width:2rem;height:2rem}.gov-statsbar-item__number{font-weight:var(--gov-text-5xl-font-weight);font-size:var(--gov-text-5xl-font-size);line-height:var(--gov-text-5xl-line-height);letter-spacing:var(--gov-text-5xl-letter-spacing)}.gov-statsbar-item__text{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);letter-spacing:0.0125em}.gov-statsbar-item__text>*:last-child{margin-bottom:0}.gov-statsbar-item[icon-position=left]{padding-left:3rem}.gov-statsbar-item[icon-position=left] .gov-statsbar-item__icon{position:absolute;top:1.5rem;left:0}@media (min-width: 30em){.gov-statsbar-item{flex:1 0 50%;max-width:50%}}@media (min-width: 48em){.gov-statsbar-item{padding:2.5rem}.gov-statsbar-item__icon{width:3rem;height:3rem}.gov-statsbar-item[icon-position=left]{padding-left:4rem}.gov-statsbar-item[icon-position=left] .gov-statsbar-item__icon{top:2.75rem}}@media (min-width: 64em){.gov-statsbar-item{flex-basis:auto;max-width:25%}}";const g=class{constructor(i){t(this,i);this.iconPosition=undefined;this.h=o(this.host)}validateIconPosition(t){a(r,t,n.root)}componentWillLoad(){this.validateIconPosition(this.iconPosition)}render(){return i(e,{class:this.h.classes(n.root)},i("article",null,this.h.hasSlot("icon")&&i("span",{class:n.icon},i("slot",{name:"icon"})),i("p",{class:n.number},i("slot",null)),this.h.hasSlot("text")&&i("div",{class:n.text},i("slot",{name:"text"}))))}get host(){return s(this)}static get watchers(){return{iconPosition:["validateIconPosition"]}}};g.style=m;export{g as gov_statsbar_item};
|
|
2
|
+
//# sourceMappingURL=p-d8def432.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/core/src/components/gov-statsbar/gov-statsbar-item.scss?tag=gov-statsbar-item","../../../packages/core/src/components/gov-statsbar/gov-statsbar-item.tsx"],"names":["govStatsbarItemCss","GovStatsbarItem","[object Object]","hostRef","undefined","this","h","govHost","host","newValue","validateProp","StatsBarIconPosition","StatsBarItemClass","root","validateIconPosition","iconPosition","Host","class","classes","hasSlot","icon","name","number","text"],"mappings":"oPAAA,MAAMA,EAAqB,0iDCUdC,EAAe,MAG3BC,YAAAC,+BAS2DC,UAR1DC,KAAKC,EAAIC,EAAQF,KAAKG,MAWvBN,qBAAqBO,GACpBC,EAAaC,EAAsBF,EAAUG,EAAkBC,MAGhEX,oBACCG,KAAKS,qBAAqBT,KAAKU,cAGhCb,SACC,OACCI,EAACU,EAAI,CAACC,MAAOZ,KAAKC,EAAEY,QAAQN,EAAkBC,OAC7CP,EAAA,UAAA,KACED,KAAKC,EAAEa,QAAQ,SACfb,EAAA,OAAA,CAAMW,MAAOL,EAAkBQ,MAC9Bd,EAAA,OAAA,CAAMe,KAAK,UAIbf,EAAA,IAAA,CAAGW,MAAOL,EAAkBU,QAC3BhB,EAAA,OAAA,OAGAD,KAAKC,EAAEa,QAAQ,SACfb,EAAA,MAAA,CAAKW,MAAOL,EAAkBW,MAC7BjB,EAAA,OAAA,CAAMe,KAAK","sourcesContent":["/*\n * Statsbar - Item\n */\n\n$class: \".gov-statsbar-item\";\n\n#{$class} {\n\tposition: relative;\n\tdisplay: block;\n\tpadding: rem-calc(20);\n\t&__icon,\n\t&__number {\n\t\tmargin-bottom: rem-calc(16);\n\t}\n\t&__icon {\n\t\tdisplay: block;\n\t\twidth: rem-calc(32);\n\t\theight: rem-calc(32);\n\t}\n\t&__number {\n\t\t@include typography($font-size-5xl);\n\t}\n\t&__text {\n\t\t@include typography($font-size-xl);\n\t\t@include reset-last-margin();\n\t\tletter-spacing: em-calc(0.2);\n\t}\n\n\t// VARIANTS\n\t&[icon-position=\"left\"] {\n\t\tpadding-left: rem-calc(48);\n\n\t\t#{$class} {\n\t\t\t&__icon {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: rem-calc(24);\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\tflex: 1 0 50%;\n\t\tmax-width: 50%;\n\t}\n\t@include mq($from: md) {\n\t\tpadding: rem-calc(40);\n\n\t\t&__icon {\n\t\t\twidth: rem-calc(48);\n\t\t\theight: rem-calc(48);\n\t\t}\n\n\t\t// VARIANTS\n\t\t&[icon-position=\"left\"] {\n\t\t\tpadding-left: rem-calc(64);\n\n\t\t\t#{$class} {\n\t\t\t\t&__icon {\n\t\t\t\t\ttop: rem-calc(44);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: lg) {\n\t\tflex-basis: auto;\n\t\tmax-width: 25%;\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch } from '@stencil/core'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { StatsBarItemClass, StatsBarIconPosition, StatsBarIconPositionType } from './constants'\n\n@Component({\n\ttag: 'gov-statsbar-item',\n\tstyleUrl: 'gov-statsbar-item.scss',\n})\nexport class GovStatsbarItem {\n\th: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovStatsbarItemElement\n\n\t/**\n\t * Icon’s position\n\t */\n\t@Prop() readonly iconPosition?: StatsBarIconPositionType = undefined\n\n\t@Watch('iconPosition')\n\tvalidateIconPosition(newValue: string): void {\n\t\tvalidateProp(StatsBarIconPosition, newValue, StatsBarItemClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateIconPosition(this.iconPosition)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(StatsBarItemClass.root)}>\n\t\t\t\t<article>\n\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t<span class={StatsBarItemClass.icon}>\n\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t</span>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<p class={StatsBarItemClass.number}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</p>\n\n\t\t\t\t\t{this.h.hasSlot('text') && (\n\t\t\t\t\t\t<div class={StatsBarItemClass.text}>\n\t\t\t\t\t\t\t<slot name=\"text\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</article>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,h as t,H as i,g as e}from"./p-4af5e4f4.js";import{g as r}from"./p-3f37ddb6.js";const n={root:"gov-empty",icon:"gov-empty__icon",container:"gov-empty__container",content:"gov-empty__content"};const a=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-empty{position:relative;display:block;width:100%}.gov-empty__icon{display:inline-flex;justify-content:center;align-items:center;width:6rem;height:6rem;margin-bottom:2rem;border-radius:50%;background:var(--gov-empty-icon-circle-bg, linear-gradient(to bottom, var(--gov-color-primary-200), var(--gov-color-neutral-white)));color:var(--gov-empty-icon-color, var(--gov-color-primary))}.gov-empty__icon>*{width:3.5rem;height:3.5rem}.gov-empty__content>*:last-child{margin-bottom:0}";const s=class{constructor(t){o(this,t);this.h=r(this.host)}render(){return t(i,{class:this.h.classes(n.root)},this.h.hasSlot("icon")&&t("div",{class:n.icon},t("slot",{name:"icon"})),t("div",{class:n.content},t("slot",null)))}get host(){return e(this)}};s.style=a;export{s as gov_empty};
|
|
2
|
+
//# sourceMappingURL=p-d90a2718.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/core/src/components/gov-empty/constants.ts","../../../packages/core/src/components/gov-empty/gov-empty.scss?tag=gov-empty","../../../packages/core/src/components/gov-empty/gov-empty.tsx"],"names":["EmptyClass","root","icon","container","content","govEmptyCss","GovEmpty","[object Object]","hostRef","this","h","govHost","host","Host","class","classes","hasSlot","name"],"mappings":"6FAAO,MAAMA,EAAa,CACzBC,KAAM,YACNC,KAAM,kBACNC,UAAW,uBACXC,QAAS,sBCJV,MAAMC,EAAc,g0BCSPC,EAAQ,MAGpBC,YAAAC,aACCC,KAAKC,EAAIC,EAAQF,KAAKG,MAKvBL,SACC,OACCG,EAACG,EAAI,CAACC,MAAOL,KAAKC,EAAEK,QAAQf,EAAWC,OACrCQ,KAAKC,EAAEM,QAAQ,SACfN,EAAA,MAAA,CAAKI,MAAOd,EAAWE,MACtBQ,EAAA,OAAA,CAAMO,KAAK,UAGbP,EAAA,MAAA,CAAKI,MAAOd,EAAWI,SACtBM,EAAA,OAAA","sourcesContent":["export const EmptyClass = {\n\troot: 'gov-empty',\n\ticon: 'gov-empty__icon',\n\tcontainer: 'gov-empty__container',\n\tcontent: 'gov-empty__content',\n}\n","/*\n * Alert\n */\n\n$class: \".gov-empty\";\n\n#{$class} {\n\t@include base();\n\t&__icon {\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: rem-calc(96);\n\t\theight: rem-calc(96);\n\t\tmargin-bottom: calc(rem-calc(96) / 3);\n\t\tborder-radius: 50%;\n\t\tbackground: $empty-icon-circle-bg;\n\t\tcolor: $empty-icon-color;\n\t\t& > * {\n\t\t\twidth: rem-calc(56);\n\t\t\theight: rem-calc(56);\n\t\t}\n\t}\n\t&__content {\n\t\t@include reset-last-margin();\n\t}\n}\n","import { Component, Element, Host, h } from '@stencil/core'\nimport { EmptyClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-empty',\n\tstyleUrl: 'gov-empty.scss',\n})\nexport class GovEmpty {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovEmptyElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(EmptyClass.root)}>\n\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t<div class={EmptyClass.icon}>\n\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t<div class={EmptyClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as i,c as r,h as e,H as a,g as o}from"./p-4af5e4f4.js";import{a as t}from"./p-561fa17b.js";import{v as n}from"./p-26acf964.js";import{W as s,c as v}from"./p-64ced668.js";import{c as z}from"./p-24636c53.js";import{g as d,b as g,t as l}from"./p-3f37ddb6.js";import"./p-ff7365ae.js";import"./p-55500e5a.js";import"./p-03990da5.js";const c='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-wizzard-item{position:relative;display:block;width:100%;margin-bottom:1rem;background:var(--gov-wizzard-bg-color, var(--gov-color-neutral-white))}.gov-wizzard-item__header{position:relative;width:100%}.gov-wizzard-item__arrow{flex:0 0 auto;width:0.75rem;height:0.75rem}.gov-wizzard-item__title{margin:0;padding:0;font-family:var(--gov-font-family, "Roboto", sans-serif);font-weight:400;box-sizing:border-box;display:flex;gap:1rem;align-items:baseline}.gov-wizzard-item__prefix{display:flex;flex:0 0 auto;justify-content:center;align-items:center;border-radius:50%;text-align:center}.gov-wizzard-item__prefix .gov-icon{width:45%;height:45%}.gov-wizzard-item__name{display:flex;flex-direction:column}.gov-wizzard-item__label{display:flex;gap:0.5rem;align-items:center}.gov-wizzard-item__annot{color:var(--gov-color-secondary)}.gov-wizzard-item__content>*:last-child{margin-bottom:0}.gov-wizzard-item[variant=primary] .gov-wizzard-item__header{color:var(--gov-wizzard-primary-color, var(--gov-color-primary-800))}.gov-wizzard-item[variant=primary] .gov-wizzard-item__prefix{background:var(--gov-wizzard-primary-indicator-bg, var(--gov-color-primary-300));color:var(--gov-wizzard-primary-indicator-color, var(--gov-color-primary-800))}.gov-wizzard-item[variant=secondary] .gov-wizzard-item__header{color:var(--gov-wizzard-secondary-color, var(--gov-color-secondary-700))}.gov-wizzard-item[variant=secondary] .gov-wizzard-item__prefix{background:var(--gov-wizzard-secondary-indicator-bg, var(--gov-color-secondary-400));color:var(--gov-wizzard-secondary-indicator-color, var(--gov-color-secondary-700))}.gov-wizzard-item[variant=success] .gov-wizzard-item__header{color:var(--gov-wizzard-success-color, var(--gov-color-success-500))}.gov-wizzard-item[variant=success] .gov-wizzard-item__prefix{background:var(--gov-wizzard-success-indicator-bg, var(--gov-color-success));color:var(--gov-wizzard-success-indicator-color, var(--gov-color-neutral-white))}.gov-wizzard-item[variant=error] .gov-wizzard-item__header{color:var(--gov-wizzard-error-color, var(--gov-color-error-500))}.gov-wizzard-item[variant=error] .gov-wizzard-item__prefix{background:var(--gov-wizzard-error-indicator-bg, var(--gov-color-error));color:var(--gov-wizzard-error-indicator-color, var(--gov-color-neutral-white))}.gov-wizzard-item[variant=warning] .gov-wizzard-item__header{color:var(--gov-wizzard-warning-color, var(--gov-color-warning-500))}.gov-wizzard-item[variant=warning] .gov-wizzard-item__prefix{background:var(--gov-wizzard-warning-indicator-bg, var(--gov-color-warning));color:var(--gov-wizzard-warning-indicator-color, var(--gov-color-neutral-white))}.gov-wizzard-item__header{gap:1rem;padding:1rem;border-radius:0;text-align:left;transition:150ms linear color}.gov-wizzard-item__header:focus{outline:none}.gov-wizzard-item__header:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0}.gov-wizzard-item__header[aria-expanded=true] .gov-wizzard-item__label .gov-icon{transform:scale(-1)}.gov-wizzard-item[size=xs] .gov-wizzard-item__title,.gov-wizzard-item[size=s] .gov-wizzard-item__title,.gov-wizzard-item[size=m] .gov-wizzard-item__title{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-wizzard-item[size=xs] .gov-wizzard-item__annot,.gov-wizzard-item[size=s] .gov-wizzard-item__annot,.gov-wizzard-item[size=m] .gov-wizzard-item__annot{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing)}.gov-wizzard-item[size=xs] .gov-wizzard-item__prefix,.gov-wizzard-item[size=s] .gov-wizzard-item__prefix,.gov-wizzard-item[size=m] .gov-wizzard-item__prefix{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);width:var(--gov-wizzard-xs-indicator-size, 1.5rem);height:var(--gov-wizzard-xs-indicator-size, 1.5rem)}.gov-wizzard-item[size=xs] .gov-wizzard-item__content,.gov-wizzard-item[size=s] .gov-wizzard-item__content,.gov-wizzard-item[size=m] .gov-wizzard-item__content{padding:var(--gov-wizzard-content-padding, 0rem 1rem 1rem 1rem)}@media not all and (pointer: coarse){.gov-wizzard-item[variant=primary][collapsible=""] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=primary][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=primary][collapsible="1"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-primary-hover-color, var(--gov-color-primary-900))}}@media not all and (pointer: coarse){.gov-wizzard-item[variant=secondary][collapsible=""] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=secondary][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=secondary][collapsible="1"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-secondary-hover-color, var(--gov-color-secondary-800))}}@media not all and (pointer: coarse){.gov-wizzard-item[variant=success][collapsible=""] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=success][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=success][collapsible="1"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-success-hover-color, var(--gov-color-success-600))}}@media not all and (pointer: coarse){.gov-wizzard-item[variant=error][collapsible=""] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=error][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=error][collapsible="1"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-error-hover-color, var(--gov-color-error-600))}}@media not all and (pointer: coarse){.gov-wizzard-item[variant=warning][collapsible=""] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=warning][collapsible=true i] .gov-wizzard-item__header:hover,.gov-wizzard-item[variant=warning][collapsible="1"] .gov-wizzard-item__header:hover{color:var(--gov-wizzard-warning-hover-color, var(--gov-color-warning-600))}}button.gov-wizzard-item__header{display:inline-flex;vertical-align:middle;justify-content:center;align-items:center;border:0;background-color:transparent;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;justify-content:flex-start;text-align:left}button.gov-wizzard-item__header:focus{outline:none}@media (min-width: 30em){.gov-wizzard-item[size=s] .gov-wizzard-item__title,.gov-wizzard-item[size=m] .gov-wizzard-item__title{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing)}.gov-wizzard-item[size=s] .gov-wizzard-item__prefix,.gov-wizzard-item[size=m] .gov-wizzard-item__prefix{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);width:var(--gov-wizzard-s-indicator-size, 2rem);height:var(--gov-wizzard-s-indicator-size, 2rem)}}@media (min-width: 48em){.gov-wizzard-item[size=m] .gov-wizzard-item__title{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing)}.gov-wizzard-item[size=m] .gov-wizzard-item__prefix{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);width:var(--gov-wizzard-m-indicator-size, 2.5rem);height:var(--gov-wizzard-m-indicator-size, 2.5rem)}.gov-wizzard-item[size=xs] .gov-wizzard-item__content{padding:var(--gov-wizzard-xs-content-padding, 0rem 1rem 1rem 3.5rem)}.gov-wizzard-item[size=s] .gov-wizzard-item__content{padding:var(--gov-wizzard-s-content-padding, 0rem 1rem 1rem 4rem)}.gov-wizzard-item[size=m] .gov-wizzard-item__content{padding:var(--gov-wizzard-m-content-padding, 0rem 1rem 1rem 4.5rem)}}';var m;(function(i){i["DIV"]="div";i["BUTTON"]="button"})(m||(m={}));const h=class{constructor(e){i(this,e);this.govChange=r(this,"gov-change",7);this.variant="primary";this.size="m";this.identifier=undefined;this.collapsible=false;this.annotation=undefined;this.label=undefined;this.disabled=false;this.isExpanded=false;this.labelTag="h3";this.isExpandedState=undefined;this.h=d(this.host);this.triggerId=z("GovWizzardItem");this.contentId=z("GovWizzardContent")}validateLabel(i){if(!i){t(`[${s.root}]: Parameter label is required.`)}}validateTriggerTag(i){const r=["h1","h2","h3","h4","h5","h6","span"];if(i){if(!r.includes(i)){t(`[${s.root}]: Tag ${i} is not allowed.`)}}}validateVariant(i){n(v,i,s.root)}emmitChange(){this.govChange.emit({open:this.isExpandedState,element:this.host})}componentWillLoad(){this.isExpandedState=this.isExpanded;this.validateLabel(this.label);this.validateVariant(this.variant);this.validateTriggerTag(this.labelTag)}render(){const i=this.identifier||this.triggerId;const r=this.labelTag;const o=this.collapsible?m.BUTTON:m.DIV;const t=e(r,{class:s.title},this.h.hasSlot("prefix")&&e("span",{class:s.prefix},e("slot",{name:"prefix"})),e("span",{class:s.name},e("span",{class:s.label},e("span",null,this.label),this.collapsible&&e("gov-icon",{class:s.arrow,name:"chevron-down"})),this.annotation&&e("span",{class:s.annot},this.annotation)));return e(a,{class:this.h.classes(s.root),variant:this.variant,size:this.size,role:"listitem",collapsible:this.collapsible},this.collapsible?e(o,{id:i,class:s.header,"aria-expanded":g(this.isExpandedState),"aria-controls":this.contentId,disabled:this.disabled,"aria-disabled":l(this.disabled),onClick:()=>this.collapsible?this.toggle():false},t):e("div",{class:s.header},t),this.collapsible?e("div",{class:s.content,id:this.contentId,"aria-hidden":g(!this.isExpandedState),hidden:!this.isExpandedState,"aria-labelledby":i},e("slot",null)):e("div",{class:s.content,"aria-hidden":g(!this.isExpandedState),hidden:!this.isExpandedState},e("slot",null)))}async open(){this.isExpandedState=true;this.emmitChange()}async close(){this.isExpandedState=false;this.emmitChange()}async toggle(){this.isExpandedState=!this.isExpandedState;this.emmitChange()}async currentState(){return this.isExpandedState}get host(){return o(this)}static get watchers(){return{label:["validateLabel"],labelTag:["validateTriggerTag"],variant:["validateVariant"]}}};h.style=c;export{h as gov_wizzard_item};
|
|
2
|
+
//# sourceMappingURL=p-d9b4bc20.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/core/src/components/gov-wizzard/gov-wizzard-item.scss?tag=gov-wizzard-item","../../../packages/core/src/components/gov-wizzard/gov-wizzard-item.tsx"],"names":["govWizzardItemCss","Tags","GovWizzardItem","[object Object]","hostRef","this","h","govHost","host","triggerId","createID","contentId","newValue","govErrorLog","WizzardItemClass","root","validTags","includes","validateProp","WizardVariants","govChange","emit","open","isExpandedState","element","isExpanded","validateLabel","label","validateVariant","variant","validateTriggerTag","labelTag","identifier","LabelTag","Tag","collapsible","BUTTON","DIV","class","title","hasSlot","prefix","name","arrow","annotation","annot","Host","classes","size","role","id","header","aria-expanded","booleanString","aria-controls","disabled","aria-disabled","toBoolAttrIfDefined","onClick","toggle","content","aria-hidden","hidden","aria-labelledby","emmitChange"],"mappings":"iVAAA,MAAMA,EAAoB,m1QCS1B,IAAKC,GAAL,SAAKA,GACJA,EAAA,OAAA,MACAA,EAAA,UAAA,UAFD,CAAKA,IAAAA,EAAI,WASIC,EAAc,MAK1BC,YAAAC,gEAUgD,oBAIN,+CAQF,mEAYH,sBAI8B,oBAIL,oCAzC7DC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,UAAYC,EAAS,kBAC1BL,KAAKM,UAAYD,EAAS,qBAgDnBP,cAAcS,GACrB,IAAKA,EAAU,CACdC,EAAY,IAAIC,EAAiBC,wCAK3BZ,mBAAmBS,GAC1B,MAAMI,EAAY,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,QACvD,GAAIJ,EAAU,CACb,IAAKI,EAAUC,SAASL,GAAW,CAClCC,EAAY,IAAIC,EAAiBC,cAAcH,uBAM1CT,gBAAgBS,GACvBM,EAAaC,EAAgBP,EAAUE,EAAiBC,MAGjDZ,cACPE,KAAKe,UAAUC,KAAK,CAAEC,KAAMjB,KAAKkB,gBAAiBC,QAASnB,KAAKG,OAGjEL,oBACCE,KAAKkB,gBAAkBlB,KAAKoB,WAC5BpB,KAAKqB,cAAcrB,KAAKsB,OACxBtB,KAAKuB,gBAAgBvB,KAAKwB,SAC1BxB,KAAKyB,mBAAmBzB,KAAK0B,UAG9B5B,SACC,MAAMM,EAAYJ,KAAK2B,YAAc3B,KAAKI,UAC1C,MAAMwB,EAAW5B,KAAK0B,SACtB,MAAMG,EAAM7B,KAAK8B,YAAclC,EAAKmC,OAASnC,EAAKoC,IAElD,MAAMV,EACLrB,EAAC2B,EAAQ,CAACK,MAAOxB,EAAiByB,OAChClC,KAAKC,EAAEkC,QAAQ,WACflC,EAAA,OAAA,CAAMgC,MAAOxB,EAAiB2B,QAC7BnC,EAAA,OAAA,CAAMoC,KAAK,YAGbpC,EAAA,OAAA,CAAMgC,MAAOxB,EAAiB4B,MAC7BpC,EAAA,OAAA,CAAMgC,MAAOxB,EAAiBa,OAC7BrB,EAAA,OAAA,KAAOD,KAAKsB,OACXtB,KAAK8B,aAAe7B,EAAA,WAAA,CAAUgC,MAAOxB,EAAiB6B,MAAOD,KAAK,kBAGnErC,KAAKuC,YAActC,EAAA,OAAA,CAAMgC,MAAOxB,EAAiB+B,OAAQxC,KAAKuC,cAKlE,OACCtC,EAACwC,EAAI,CAACR,MAAOjC,KAAKC,EAAEyC,QAAQjC,EAAiBC,MAAOc,QAASxB,KAAKwB,QAASmB,KAAM3C,KAAK2C,KAAMC,KAAK,WAAWd,YAAa9B,KAAK8B,aAC5H9B,KAAK8B,YACL7B,EAAC4B,EAAG,CACHgB,GAAIzC,EACJ6B,MAAOxB,EAAiBqC,OAAMC,gBACfC,EAAchD,KAAKkB,iBAAgB+B,gBACnCjD,KAAKM,UACpB4C,SAAUlD,KAAKkD,SAAQC,gBACRC,EAAoBpD,KAAKkD,UACxCG,QAAS,IAAOrD,KAAK8B,YAAc9B,KAAKsD,SAAW,OAElDhC,GAGFrB,EAAA,MAAA,CAAKgC,MAAOxB,EAAiBqC,QAASxB,GAEtCtB,KAAK8B,YACL7B,EAAA,MAAA,CACCgC,MAAOxB,EAAiB8C,QACxBV,GAAI7C,KAAKM,UAASkD,cACLR,GAAehD,KAAKkB,iBACjCuC,QAASzD,KAAKkB,gBAAewC,kBACZtD,GAEjBH,EAAA,OAAA,OAGDA,EAAA,MAAA,CAAKgC,MAAOxB,EAAiB8C,QAAOC,cAAeR,GAAehD,KAAKkB,iBAAkBuC,QAASzD,KAAKkB,iBACtGjB,EAAA,OAAA,QAWLH,aACCE,KAAKkB,gBAAkB,KACvBlB,KAAK2D,cAOC7D,cACNE,KAAKkB,gBAAkB,MACvBlB,KAAK2D,cAOC7D,eACNE,KAAKkB,iBAAmBlB,KAAKkB,gBAC7BlB,KAAK2D,cAOC7D,qBACN,OAAOE,KAAKkB","sourcesContent":["/*\n * Wizzard - Item\n */\n\n@import \"../gov-wizzard/gov-wizzard-item-core.scss\";\n$class: \".gov-wizzard-item\";\n\n#{$class} {\n\t@include wizzard-item-core;\n\tmargin-bottom: rem-calc(16);\n\tbackground: $wizzard-bg-color;\n\t&__header {\n\t\t@include focus-outline();\n\t\tgap: rem-calc(16);\n\t\tpadding: rem-calc(16);\n\t\tborder-radius: 0;\n\t\ttext-align: left;\n\t\ttransition: $t linear color;\n\t}\n\n\t// STATES\n\t&__header[aria-expanded=\"true\"] {\n\t\t#{$class}__label {\n\t\t\t.gov-icon {\n\t\t\t\ttransform: scale(-1);\n\t\t\t}\n\t\t}\n\t}\n\n\t// VARIANTS\n\t&[size=\"#{$size-xs}\"],\n\t&[size=\"#{$size-s}\"],\n\t&[size=\"#{$size-m}\"] {\n\t\t#{$class} {\n\t\t\t&__title {\n\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-xs, \"font-size\"));\n\t\t\t}\n\t\t\t&__annot {\n\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-xs, \"font-size-annot\"));\n\t\t\t}\n\t\t\t&__prefix {\n\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-xs, \"font-size-indicator\"));\n\t\t\t\twidth: deep-map-get($wizzard-sizes, $size-xs, \"indicator-size\");\n\t\t\t\theight: deep-map-get($wizzard-sizes, $size-xs, \"indicator-size\");\n\t\t\t}\n\t\t\t&__content {\n\t\t\t\tpadding: $wizzard-content-padding;\n\t\t\t}\n\t\t}\n\t}\n\t@each $variant, $definitions in $wizzard-core-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t@include parameter(\"collapsible\") {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__header {\n\t\t\t\t\t\t@include hover() {\n\t\t\t\t\t\t\tcolor: get(\"hover-color\", $definitions);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// HOVERS\n\t@at-root button#{&}__header {\n\t\t@include button-core();\n\t\tjustify-content: flex-start;\n\t\ttext-align: left;\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t&[size=\"#{$size-s}\"],\n\t\t&[size=\"#{$size-m}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-s, \"font-size\"));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-s, \"font-size-indicator\"));\n\t\t\t\t\twidth: deep-map-get($wizzard-sizes, $size-s, \"indicator-size\");\n\t\t\t\t\theight: deep-map-get($wizzard-sizes, $size-s, \"indicator-size\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: md) {\n\t\t&[size=\"#{$size-m}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-m, \"font-size\"));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-m, \"font-size-indicator\"));\n\t\t\t\t\twidth: deep-map-get($wizzard-sizes, $size-m, \"indicator-size\");\n\t\t\t\t\theight: deep-map-get($wizzard-sizes, $size-m, \"indicator-size\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@each $size, $definitions in $wizzard-sizes {\n\t\t\t&[size=\"#{$size}\"] {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__content {\n\t\t\t\t\t\tpadding: get(\"content-padding\", $definitions);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Prop, State, Watch, Host, Method, Event, EventEmitter } from '@stencil/core'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { WizzardItemClass, WizardVariantsType, WizardSizesType, WizardVariants } from './constants'\nimport { createID } from '../../utils/string.utils'\nimport { booleanString, toBoolAttrIfDefined, govHost } from '../../helpers/Dom/template'\nimport { GovWizzardItemChangeEvent } from './gov-wizzard-item.d'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\nenum Tags {\n\tDIV = 'div',\n\tBUTTON = 'button',\n}\n\n@Component({\n\ttag: 'gov-wizzard-item',\n\tstyleUrl: 'gov-wizzard-item.scss',\n})\nexport class GovWizzardItem {\n\tprivate h: GovHost\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.triggerId = createID('GovWizzardItem')\n\t\tthis.contentId = createID('GovWizzardContent')\n\t}\n\n\t@Element() readonly host: HTMLGovWizzardItemElement\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant?: WizardVariantsType = 'primary'\n\t/**\n\t * Size of wizzard\n\t */\n\t@Prop() readonly size?: WizardSizesType = 'm'\n\t/**\n\t * Custom wizzard item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Defines wether the wizzard item can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Item annotation of the wizzard\n\t */\n\t@Prop() readonly annotation: string\n\t/**\n\t * Item label of the wizzard\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Makes the wizzard component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Defines whether the accordion is open or closed by default\n\t */\n\t@Prop({ attribute: 'is-expanded' }) readonly isExpanded: boolean = false\n\t/**\n\t * Used to change the HMTL tag in the accordion trigger for correct semantic structure\n\t */\n\t@Prop({ attribute: 'label-tag' }) readonly labelTag: string = 'h3'\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovWizzardItemChangeEvent>\n\n\t@State() isExpandedState: boolean\n\n\t@Watch('label')\n\tprivate validateLabel(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${WizzardItemClass.root}]: Parameter label is required.`)\n\t\t}\n\t}\n\n\t@Watch('labelTag')\n\tprivate validateTriggerTag(newValue: string): void {\n\t\tconst validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span']\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${WizzardItemClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch('variant')\n\tprivate validateVariant(newValue: string): void {\n\t\tvalidateProp(WizardVariants, newValue, WizzardItemClass.root)\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\tthis.validateVariant(this.variant)\n\t\tthis.validateTriggerTag(this.labelTag)\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst LabelTag = this.labelTag\n\t\tconst Tag = this.collapsible ? Tags.BUTTON : Tags.DIV\n\n\t\tconst label = (\n\t\t\t<LabelTag class={WizzardItemClass.title}>\n\t\t\t\t{this.h.hasSlot('prefix') && (\n\t\t\t\t\t<span class={WizzardItemClass.prefix}>\n\t\t\t\t\t\t<slot name=\"prefix\" />\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t\t<span class={WizzardItemClass.name}>\n\t\t\t\t\t<span class={WizzardItemClass.label}>\n\t\t\t\t\t\t<span>{this.label}</span>\n\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizzardItemClass.arrow} name=\"chevron-down\"></gov-icon>}\n\t\t\t\t\t</span>\n\n\t\t\t\t\t{this.annotation && <span class={WizzardItemClass.annot}>{this.annotation}</span>}\n\t\t\t\t</span>\n\t\t\t</LabelTag>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizzardItemClass.root)} variant={this.variant} size={this.size} role=\"listitem\" collapsible={this.collapsible}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<Tag\n\t\t\t\t\t\tid={triggerId}\n\t\t\t\t\t\tclass={WizzardItemClass.header}\n\t\t\t\t\t\taria-expanded={booleanString(this.isExpandedState)}\n\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\tonClick={() => (this.collapsible ? this.toggle() : false)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</Tag>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={WizzardItemClass.header}>{label}</div>\n\t\t\t\t)}\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={WizzardItemClass.content}\n\t\t\t\t\t\tid={this.contentId}\n\t\t\t\t\t\taria-hidden={booleanString(!this.isExpandedState)}\n\t\t\t\t\t\thidden={!this.isExpandedState}\n\t\t\t\t\t\taria-labelledby={triggerId}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={WizzardItemClass.content} aria-hidden={booleanString(!this.isExpandedState)} hidden={!this.isExpandedState}>\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 Wizzard\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 Wizzard\n\t */\n\t@Method()\n\tpublic async close(): Promise<void> {\n\t\tthis.isExpandedState = false\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Wizzard switch\n\t */\n\t@Method()\n\tpublic async 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\tpublic async currentState(): Promise<boolean> {\n\t\treturn this.isExpandedState\n\t}\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,h as e,H as o,g as a}from"./p-4af5e4f4.js";import{v as s}from"./p-26acf964.js";import{V as g}from"./p-ff7365ae.js";import{p as v}from"./p-03990da5.js";import{g as n}from"./p-3f37ddb6.js";import"./p-561fa17b.js";v(g,["PRIMARY","SECONDARY","WARNING","ERROR","SUCCESS"]);const i={root:"gov-message",icon:"gov-message__icon",content:"gov-message__content",close:"gov-message__close"};const t='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-message{position:relative;display:flex;gap:1rem;flex-direction:column;padding:0.75rem 1rem;border-left:0.25rem solid transparent;background:var(--gov-toast-message-bg, var(--gov-color-neutral-white))}.gov-message__icon{flex:0 0 1.25rem;width:1.25rem;height:1.25rem}.gov-message__content{flex:1 1 auto}.gov-message__content>*:last-child{margin-bottom:0}.gov-message__content p{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}@media (min-width: 30em){.gov-message{flex-direction:row}}.gov-message[shadow=""],.gov-message[shadow=true i],.gov-message[shadow="1"]{box-shadow:var(--gov-message-box-shadow, 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1))}.gov-message[variant=warning]{border-left-color:var(--gov-message-warning-color, var(--gov-color-warning));background:var(--gov-message-warning-bg-color, var(--gov-color-warning-100))}.gov-message[variant=warning] .gov-message__icon{color:var(--gov-message-warning-color, var(--gov-color-warning))}.gov-message[variant=warning][inverse=""],.gov-message[variant=warning][inverse=true i],.gov-message[variant=warning][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=error]{border-left-color:var(--gov-message-error-color, var(--gov-color-error));background:var(--gov-message-error-bg-color, var(--gov-color-error-100))}.gov-message[variant=error] .gov-message__icon{color:var(--gov-message-error-color, var(--gov-color-error))}.gov-message[variant=error][inverse=""],.gov-message[variant=error][inverse=true i],.gov-message[variant=error][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=secondary]{border-left-color:var(--gov-message-secondary-color, var(--gov-color-secondary));background:var(--gov-message-secondary-bg-color, var(--gov-color-secondary-200))}.gov-message[variant=secondary] .gov-message__icon{color:var(--gov-message-secondary-color, var(--gov-color-secondary))}.gov-message[variant=secondary][inverse=""],.gov-message[variant=secondary][inverse=true i],.gov-message[variant=secondary][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=success]{border-left-color:var(--gov-message-success-color, var(--gov-color-success));background:var(--gov-message-success-bg-color, var(--gov-color-success-100))}.gov-message[variant=success] .gov-message__icon{color:var(--gov-message-success-color, var(--gov-color-success))}.gov-message[variant=success][inverse=""],.gov-message[variant=success][inverse=true i],.gov-message[variant=success][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=primary]{border-left-color:var(--gov-message-primary-color, var(--gov-color-primary));background:var(--gov-message-primary-bg-color, var(--gov-color-primary-100))}.gov-message[variant=primary] .gov-message__icon{color:var(--gov-message-primary-color, var(--gov-color-primary))}.gov-message[variant=primary][inverse=""],.gov-message[variant=primary][inverse=true i],.gov-message[variant=primary][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}';const c=class{constructor(e){r(this,e);this.variant=g.PRIMARY;this.h=n(this.host)}validateVariant(r){s(g,r,i.root)}render(){return e(o,{class:this.h.classes(i.root),variant:this.variant,role:"alert"},this.h.hasSlot("icon")&&e("span",{class:i.icon},e("slot",{name:"icon"})),e("div",{class:i.content},e("slot",null)))}get host(){return a(this)}static get watchers(){return{variant:["validateVariant"]}}};c.style=t;export{c as gov_message};
|
|
2
|
+
//# sourceMappingURL=p-dc94a1da.entry.js.map
|