@gov-design-system-ce/components 4.0.5 → 4.0.6
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-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-25f7a6be.js +22 -0
- package/dist/cjs/constants-25f7a6be.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-427a2843.js +33 -0
- package/dist/cjs/constants-427a2843.js.map +1 -0
- package/dist/cjs/constants-440cd5c8.js +29 -0
- package/dist/cjs/constants-440cd5c8.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-66cb0615.js +20 -0
- package/dist/cjs/constants-66cb0615.js.map +1 -0
- package/dist/cjs/constants-6df82618.js +21 -0
- package/dist/cjs/constants-6df82618.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-a31344ad.js +37 -0
- package/dist/cjs/constants-a31344ad.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-dde21dcf.js +30 -0
- package/dist/cjs/constants-dde21dcf.js.map +1 -0
- package/dist/cjs/constants-ded92f8a.js +13 -0
- package/dist/cjs/constants-ded92f8a.js.map +1 -0
- package/dist/cjs/core.cjs.js +48 -0
- package/dist/cjs/core.cjs.js.map +1 -0
- package/dist/cjs/form-74063d50.js +163 -0
- package/dist/cjs/form-74063d50.js.map +1 -0
- package/dist/cjs/gov-accordion-item.cjs.entry.js +102 -0
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-accordion.cjs.entry.js +77 -0
- package/dist/cjs/gov-accordion.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 +50 -0
- package/dist/cjs/gov-backdrop.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 +180 -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-chip.cjs.entry.js +108 -0
- package/dist/cjs/gov-chip.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-control-group.cjs.entry.js +43 -0
- package/dist/cjs/gov-control-group.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-dropdown.cjs.entry.js +135 -0
- package/dist/cjs/gov-dropdown.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 +245 -0
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +131 -0
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-control.cjs.entry.js +107 -0
- package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-file.cjs.entry.js +240 -0
- package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-group.cjs.entry.js +59 -0
- package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-input.cjs.entry.js +190 -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 +304 -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 +131 -0
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-search.cjs.entry.js +32 -0
- package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-select.cjs.entry.js +167 -0
- package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-switch.cjs.entry.js +131 -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 +135 -0
- package/dist/cjs/gov-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-infobar.cjs.entry.js +91 -0
- package/dist/cjs/gov-infobar.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 +30 -0
- package/dist/cjs/gov-loading.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-message.cjs.entry.js +44 -0
- package/dist/cjs/gov-message.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-modal.cjs.entry.js +106 -0
- package/dist/cjs/gov-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-nav-item.cjs.entry.js +39 -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 +224 -0
- package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-prompt.cjs.entry.js +103 -0
- package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-side-nav-item.cjs.entry.js +87 -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 +58 -0
- package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-statsbar-item.cjs.entry.js +40 -0
- package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-statsbar.cjs.entry.js +53 -0
- package/dist/cjs/gov-statsbar.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-stepper-item.cjs.entry.js +78 -0
- package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-stepper.cjs.entry.js +51 -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 +198 -0
- package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tag.cjs.entry.js +57 -0
- package/dist/cjs/gov-tag.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tile.cjs.entry.js +42 -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 +101 -0
- package/dist/cjs/gov-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +54 -0
- package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tooltip.cjs.entry.js +224 -0
- package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-wizard-item.cjs.entry.js +115 -0
- package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-wizard.cjs.entry.js +69 -0
- package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -0
- package/dist/cjs/gov.log-b842920d.js +28 -0
- package/dist/cjs/gov.log-b842920d.js.map +1 -0
- package/dist/cjs/helpers-2c870ff5.js +19 -0
- package/dist/cjs/helpers-2c870ff5.js.map +1 -0
- package/dist/cjs/index-7b6bba34.js +2713 -0
- package/dist/cjs/index-7b6bba34.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 +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/props-d6146e54.js +16 -0
- package/dist/cjs/props-d6146e54.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-4b951d1d.js +128 -0
- package/dist/cjs/template-4b951d1d.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-e6257f27.js +67 -0
- package/dist/cjs/wcag-e6257f27.js.map +1 -0
- package/dist/cjs/win-5521073d.js +39 -0
- package/dist/cjs/win-5521073d.js.map +1 -0
- package/dist/collection/collection-manifest.json +71 -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 +524 -0
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +304 -0
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -0
- package/dist/collection/components/gov-accordion/gov-accordion.css +240 -0
- package/dist/collection/components/gov-accordion/gov-accordion.js +226 -0
- package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -0
- package/dist/collection/components/gov-accordion/gov-accordion.types.js +2 -0
- package/dist/collection/components/gov-accordion/gov-accordion.types.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 +261 -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 +123 -0
- package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -0
- package/dist/collection/components/gov-attachments/gov-attachments.css +247 -0
- package/dist/collection/components/gov-attachments/gov-attachments.js +100 -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 +246 -0
- package/dist/collection/components/gov-backdrop/gov-backdrop.js +142 -0
- package/dist/collection/components/gov-backdrop/gov-backdrop.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 +279 -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 +162 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -0
- package/dist/collection/components/gov-button/button/constants.js +29 -0
- package/dist/collection/components/gov-button/button/constants.js.map +1 -0
- package/dist/collection/components/gov-button/button/gov-button.css +1154 -0
- package/dist/collection/components/gov-button/button/gov-button.js +891 -0
- package/dist/collection/components/gov-button/button/gov-button.js.map +1 -0
- package/dist/collection/components/gov-button/button/gov-button.types.js +2 -0
- package/dist/collection/components/gov-button/button/gov-button.types.js.map +1 -0
- package/dist/collection/components/gov-button/dropdown/constants.js +10 -0
- package/dist/collection/components/gov-button/dropdown/constants.js.map +1 -0
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.css +264 -0
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +177 -0
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -0
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js +2 -0
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.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 +377 -0
- package/dist/collection/components/gov-card/gov-card.js +311 -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-chip/constants.js +13 -0
- package/dist/collection/components/gov-chip/constants.js.map +1 -0
- package/dist/collection/components/gov-chip/gov-chip.css +1255 -0
- package/dist/collection/components/gov-chip/gov-chip.js +462 -0
- package/dist/collection/components/gov-chip/gov-chip.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 +247 -0
- package/dist/collection/components/gov-container/gov-container.js +60 -0
- package/dist/collection/components/gov-container/gov-container.js.map +1 -0
- package/dist/collection/components/gov-control-group/constants.js +7 -0
- package/dist/collection/components/gov-control-group/constants.js.map +1 -0
- package/dist/collection/components/gov-control-group/gov-control-group.css +280 -0
- package/dist/collection/components/gov-control-group/gov-control-group.js +84 -0
- package/dist/collection/components/gov-control-group/gov-control-group.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 +289 -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 +255 -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 +270 -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 +13 -0
- package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +290 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +824 -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 +9 -0
- package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -0
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +402 -0
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +442 -0
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -0
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js +2 -0
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.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 +291 -0
- package/dist/collection/components/gov-form/control/gov-form-control.js +241 -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 +301 -0
- package/dist/collection/components/gov-form/file/gov-form-file.js +702 -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 +12 -0
- package/dist/collection/components/gov-form/group/constants.js.map +1 -0
- package/dist/collection/components/gov-form/group/gov-form-group.css +261 -0
- package/dist/collection/components/gov-form/group/gov-form-group.js +102 -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 +523 -0
- package/dist/collection/components/gov-form/input/gov-form-input.js +930 -0
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -0
- package/dist/collection/components/gov-form/input/gov-form-input.types.js +2 -0
- package/dist/collection/components/gov-form/input/gov-form-input.types.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 +252 -0
- package/dist/collection/components/gov-form/label/gov-form-label.js +130 -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 +262 -0
- package/dist/collection/components/gov-form/message/gov-form-message.js +95 -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 +639 -0
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +936 -0
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -0
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js +2 -0
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.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 +275 -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 +11 -0
- package/dist/collection/components/gov-form/radio/constants.js.map +1 -0
- package/dist/collection/components/gov-form/radio/gov-form-radio.css +401 -0
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +442 -0
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -0
- package/dist/collection/components/gov-form/radio/gov-form-radio.types.js +2 -0
- package/dist/collection/components/gov-form/radio/gov-form-radio.types.js.map +1 -0
- package/dist/collection/components/gov-form/search/constants.js +9 -0
- package/dist/collection/components/gov-form/search/constants.js.map +1 -0
- package/dist/collection/components/gov-form/search/gov-form-search.css +274 -0
- package/dist/collection/components/gov-form/search/gov-form-search.js +51 -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 +598 -0
- package/dist/collection/components/gov-form/select/gov-form-select.js +613 -0
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -0
- package/dist/collection/components/gov-form/select/gov-form-select.types.js +2 -0
- package/dist/collection/components/gov-form/select/gov-form-select.types.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 +440 -0
- package/dist/collection/components/gov-form/switch/gov-form-switch.js +442 -0
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -0
- package/dist/collection/components/gov-form/switch/gov-form-switch.types.js +2 -0
- package/dist/collection/components/gov-form/switch/gov-form-switch.types.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 +437 -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 +256 -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 +250 -0
- package/dist/collection/components/gov-icon/gov-icon.js +139 -0
- package/dist/collection/components/gov-icon/gov-icon.js.map +1 -0
- package/dist/collection/components/gov-icon/helpers.js +14 -0
- package/dist/collection/components/gov-icon/helpers.js.map +1 -0
- package/dist/collection/components/gov-icon/list.js +282 -0
- package/dist/collection/components/gov-icon/list.js.map +1 -0
- package/dist/collection/components/gov-infobar/constants.js +13 -0
- package/dist/collection/components/gov-infobar/constants.js.map +1 -0
- package/dist/collection/components/gov-infobar/gov-infobar.css +388 -0
- package/dist/collection/components/gov-infobar/gov-infobar.js +246 -0
- package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -0
- package/dist/collection/components/gov-infobar/gov-infobar.types.js +2 -0
- package/dist/collection/components/gov-infobar/gov-infobar.types.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 +237 -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 +282 -0
- package/dist/collection/components/gov-layout/gov-layout.js +102 -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 +261 -0
- package/dist/collection/components/gov-loading/loading/gov-loading.js +24 -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 +300 -0
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +271 -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 +319 -0
- package/dist/collection/components/gov-message/gov-message.js +64 -0
- package/dist/collection/components/gov-message/gov-message.js.map +1 -0
- package/dist/collection/components/gov-modal/constants.js +15 -0
- package/dist/collection/components/gov-modal/constants.js.map +1 -0
- package/dist/collection/components/gov-modal/gov-modal.css +345 -0
- package/dist/collection/components/gov-modal/gov-modal.js +355 -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 +288 -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 +254 -0
- package/dist/collection/components/gov-nav/gov-nav.js +98 -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 +394 -0
- package/dist/collection/components/gov-pagination/gov-pagination.js +460 -0
- package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -0
- package/dist/collection/components/gov-pagination/gov-pagination.types.js +2 -0
- package/dist/collection/components/gov-pagination/gov-pagination.types.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 +348 -0
- package/dist/collection/components/gov-promp/gov-prompt.js +334 -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 +384 -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 +336 -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 +237 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav.js +171 -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 +302 -0
- package/dist/collection/components/gov-spacer/gov-spacer.js +97 -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 +296 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +66 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +1 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar.css +281 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar.js +104 -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 +467 -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 +250 -0
- package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -0
- package/dist/collection/components/gov-stepper/gov-stepper.css +237 -0
- package/dist/collection/components/gov-stepper/gov-stepper.js +99 -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 +238 -0
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +186 -0
- package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -0
- package/dist/collection/components/gov-tabs/gov-tabs.css +389 -0
- package/dist/collection/components/gov-tabs/gov-tabs.js +440 -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-tag/constants.js +4 -0
- package/dist/collection/components/gov-tag/constants.js.map +1 -0
- package/dist/collection/components/gov-tag/gov-tag.css +1259 -0
- package/dist/collection/components/gov-tag/gov-tag.js +157 -0
- package/dist/collection/components/gov-tag/gov-tag.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 +319 -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 +316 -0
- package/dist/collection/components/gov-tile/gov-tile.js +108 -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 +403 -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 +347 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +159 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip.css +241 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +397 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -0
- package/dist/collection/components/gov-wizard/constants.js +20 -0
- package/dist/collection/components/gov-wizard/constants.js.map +1 -0
- package/dist/collection/components/gov-wizard/gov-wizard-item.css +474 -0
- package/dist/collection/components/gov-wizard/gov-wizard-item.d.js +2 -0
- package/dist/collection/components/gov-wizard/gov-wizard-item.d.js.map +1 -0
- package/dist/collection/components/gov-wizard/gov-wizard-item.js +387 -0
- package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -0
- package/dist/collection/components/gov-wizard/gov-wizard-item.types.js +2 -0
- package/dist/collection/components/gov-wizard/gov-wizard-item.types.js.map +1 -0
- package/dist/collection/components/gov-wizard/gov-wizard.css +240 -0
- package/dist/collection/components/gov-wizard/gov-wizard.js +173 -0
- package/dist/collection/components/gov-wizard/gov-wizard.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/tokens.js +17 -0
- package/dist/collection/core/constants/tokens.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/data/color-definitions.js +307 -0
- package/dist/collection/data/font-definitions.js +94 -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 +117 -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 +27 -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 +21 -0
- package/dist/collection/helpers/Log/gov.log.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 +239 -0
- package/dist/collection/pages/Accordion.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 +1346 -0
- package/dist/collection/pages/Button.js.map +1 -0
- package/dist/collection/pages/Card.js +104 -0
- package/dist/collection/pages/Card.js.map +1 -0
- package/dist/collection/pages/Chip.js +381 -0
- package/dist/collection/pages/Chip.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/ControlGroup.js +301 -0
- package/dist/collection/pages/ControlGroup.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 +1574 -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 +51 -0
- package/dist/collection/pages/Home.js.map +1 -0
- package/dist/collection/pages/Infobar.js +149 -0
- package/dist/collection/pages/Infobar.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 +25 -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 +88 -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/Tag.js +253 -0
- package/dist/collection/pages/Tag.js.map +1 -0
- package/dist/collection/pages/Tiles.js +125 -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 +161 -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/Wizard.js +88 -0
- package/dist/collection/pages/Wizard.js.map +1 -0
- package/dist/collection/types/event.types.js +2 -0
- package/dist/collection/types/event.types.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 +7 -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/helpers.types.js +54 -0
- package/dist/collection/utils/helpers.types.js.map +1 -0
- package/dist/collection/utils/icon.utils.js +32 -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/gov-accordion-item.d.ts +11 -0
- package/dist/components/gov-accordion-item.js +2 -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 +2 -0
- package/dist/components/gov-accordion.js.map +1 -0
- package/dist/components/gov-attachments-item.d.ts +11 -0
- package/dist/components/gov-attachments-item.js +2 -0
- package/dist/components/gov-attachments-item.js.map +1 -0
- package/dist/components/gov-attachments.d.ts +11 -0
- package/dist/components/gov-attachments.js +2 -0
- package/dist/components/gov-attachments.js.map +1 -0
- package/dist/components/gov-backdrop.d.ts +11 -0
- package/dist/components/gov-backdrop.js +2 -0
- package/dist/components/gov-backdrop.js.map +1 -0
- package/dist/components/gov-breadcrumbs.d.ts +11 -0
- package/dist/components/gov-breadcrumbs.js +2 -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 +2 -0
- package/dist/components/gov-button.js.map +1 -0
- package/dist/components/gov-card.d.ts +11 -0
- package/dist/components/gov-card.js +2 -0
- package/dist/components/gov-card.js.map +1 -0
- package/dist/components/gov-chip.d.ts +11 -0
- package/dist/components/gov-chip.js +2 -0
- package/dist/components/gov-chip.js.map +1 -0
- package/dist/components/gov-container.d.ts +11 -0
- package/dist/components/gov-container.js +2 -0
- package/dist/components/gov-container.js.map +1 -0
- package/dist/components/gov-control-group.d.ts +11 -0
- package/dist/components/gov-control-group.js +2 -0
- package/dist/components/gov-control-group.js.map +1 -0
- package/dist/components/gov-cookiebar.d.ts +11 -0
- package/dist/components/gov-cookiebar.js +2 -0
- package/dist/components/gov-cookiebar.js.map +1 -0
- package/dist/components/gov-dropdown.d.ts +11 -0
- package/dist/components/gov-dropdown.js +2 -0
- package/dist/components/gov-dropdown.js.map +1 -0
- package/dist/components/gov-empty.d.ts +11 -0
- package/dist/components/gov-empty.js +2 -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 +2 -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 +2 -0
- package/dist/components/gov-form-autocomplete.js.map +1 -0
- package/dist/components/gov-form-checkbox.d.ts +11 -0
- package/dist/components/gov-form-checkbox.js +2 -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 +2 -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 +2 -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 +2 -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 +2 -0
- package/dist/components/gov-form-input.js.map +1 -0
- package/dist/components/gov-form-label.d.ts +11 -0
- package/dist/components/gov-form-label.js +2 -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 +2 -0
- package/dist/components/gov-form-message.js.map +1 -0
- package/dist/components/gov-form-multi-select.d.ts +11 -0
- package/dist/components/gov-form-multi-select.js +2 -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 +2 -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 +2 -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 +2 -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 +2 -0
- package/dist/components/gov-form-select.js.map +1 -0
- package/dist/components/gov-form-switch.d.ts +11 -0
- package/dist/components/gov-form-switch.js +2 -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 +2 -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 +2 -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 +2 -0
- package/dist/components/gov-icon.js.map +1 -0
- package/dist/components/gov-infobar.d.ts +11 -0
- package/dist/components/gov-infobar.js +2 -0
- package/dist/components/gov-infobar.js.map +1 -0
- package/dist/components/gov-layout-column.d.ts +11 -0
- package/dist/components/gov-layout-column.js +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -0
- package/dist/components/gov-tabs.js.map +1 -0
- package/dist/components/gov-tag.d.ts +11 -0
- package/dist/components/gov-tag.js +2 -0
- package/dist/components/gov-tag.js.map +1 -0
- package/dist/components/gov-tile.d.ts +11 -0
- package/dist/components/gov-tile.js +2 -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 +2 -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 +2 -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 +2 -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 +2 -0
- package/dist/components/gov-tooltip.js.map +1 -0
- package/dist/components/gov-wizard-item.d.ts +11 -0
- package/dist/components/gov-wizard-item.js +2 -0
- package/dist/components/gov-wizard-item.js.map +1 -0
- package/dist/components/gov-wizard.d.ts +11 -0
- package/dist/components/gov-wizard.js +2 -0
- package/dist/components/gov-wizard.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/p-003e6cca.js +2 -0
- package/dist/components/p-003e6cca.js.map +1 -0
- package/dist/components/p-03990da5.js +2 -0
- package/dist/components/p-03990da5.js.map +1 -0
- package/dist/components/p-17ebfe85.js +2 -0
- package/dist/components/p-17ebfe85.js.map +1 -0
- package/dist/components/p-1c1d0bbe.js +2 -0
- package/dist/components/p-1c1d0bbe.js.map +1 -0
- package/dist/components/p-24636c53.js +2 -0
- package/dist/components/p-24636c53.js.map +1 -0
- package/dist/components/p-28e59384.js +2 -0
- package/dist/components/p-28e59384.js.map +1 -0
- package/dist/components/p-2bf5b814.js +2 -0
- package/dist/components/p-2bf5b814.js.map +1 -0
- package/dist/components/p-2dee9951.js +2 -0
- package/dist/components/p-2dee9951.js.map +1 -0
- package/dist/components/p-3464136c.js +2 -0
- package/dist/components/p-3464136c.js.map +1 -0
- package/dist/components/p-3c71d697.js +2 -0
- package/dist/components/p-3c71d697.js.map +1 -0
- package/dist/components/p-43554d2d.js +2 -0
- package/dist/components/p-43554d2d.js.map +1 -0
- package/dist/components/p-4ff831e3.js +2 -0
- package/dist/components/p-4ff831e3.js.map +1 -0
- package/dist/components/p-53e02bee.js +2 -0
- package/dist/components/p-53e02bee.js.map +1 -0
- package/dist/components/p-55500e5a.js +2 -0
- package/dist/components/p-55500e5a.js.map +1 -0
- package/dist/components/p-570803ab.js +2 -0
- package/dist/components/p-570803ab.js.map +1 -0
- package/dist/components/p-5defdc5e.js +2 -0
- package/dist/components/p-5defdc5e.js.map +1 -0
- package/dist/components/p-62074db5.js +2 -0
- package/dist/components/p-62074db5.js.map +1 -0
- package/dist/components/p-6278531b.js +2 -0
- package/dist/components/p-6278531b.js.map +1 -0
- package/dist/components/p-6834d779.js +2 -0
- package/dist/components/p-6834d779.js.map +1 -0
- package/dist/components/p-6f391c4a.js +2 -0
- package/dist/components/p-6f391c4a.js.map +1 -0
- package/dist/components/p-74b2311a.js +2 -0
- package/dist/components/p-74b2311a.js.map +1 -0
- package/dist/components/p-7f2c9830.js +2 -0
- package/dist/components/p-7f2c9830.js.map +1 -0
- package/dist/components/p-9144dde1.js +2 -0
- package/dist/components/p-9144dde1.js.map +1 -0
- package/dist/components/p-9795ad94.js +2 -0
- package/dist/components/p-9795ad94.js.map +1 -0
- package/dist/components/p-990d2990.js +2 -0
- package/dist/components/p-990d2990.js.map +1 -0
- package/dist/components/p-9a4c910d.js +2 -0
- package/dist/components/p-9a4c910d.js.map +1 -0
- package/dist/components/p-a3d5a7e3.js +2 -0
- package/dist/components/p-a3d5a7e3.js.map +1 -0
- package/dist/components/p-a6d14a47.js +2 -0
- package/dist/components/p-a6d14a47.js.map +1 -0
- package/dist/components/p-b526e440.js +2 -0
- package/dist/components/p-b526e440.js.map +1 -0
- package/dist/components/p-b72a7bed.js +2 -0
- package/dist/components/p-b72a7bed.js.map +1 -0
- package/dist/components/p-be4aab0e.js +2 -0
- package/dist/components/p-be4aab0e.js.map +1 -0
- package/dist/components/p-d29431c0.js +2 -0
- package/dist/components/p-d29431c0.js.map +1 -0
- package/dist/components/p-db1f0452.js +2 -0
- package/dist/components/p-db1f0452.js.map +1 -0
- package/dist/components/p-dcb5fb35.js +2 -0
- package/dist/components/p-dcb5fb35.js.map +1 -0
- package/dist/components/p-ec6c2272.js +2 -0
- package/dist/components/p-ec6c2272.js.map +1 -0
- package/dist/components/p-fa1e4aea.js +2 -0
- package/dist/components/p-fa1e4aea.js.map +1 -0
- package/dist/components/p-ff7365ae.js +2 -0
- package/dist/components/p-ff7365ae.js.map +1 -0
- package/dist/components/p-ffb7495c.js +2 -0
- package/dist/components/p-ffb7495c.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-003e6cca.js +2 -0
- package/dist/core/p-003e6cca.js.map +1 -0
- package/dist/core/p-01d928c5.entry.js +2 -0
- package/dist/core/p-01d928c5.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-044f4c35.entry.js +2 -0
- package/dist/core/p-044f4c35.entry.js.map +1 -0
- package/dist/core/p-09966eaa.entry.js +2 -0
- package/dist/core/p-09966eaa.entry.js.map +1 -0
- package/dist/core/p-0e5fa8bf.js +2 -0
- package/dist/core/p-0e5fa8bf.js.map +1 -0
- package/dist/core/p-1116fec6.entry.js +2 -0
- package/dist/core/p-1116fec6.entry.js.map +1 -0
- package/dist/core/p-141d9af4.entry.js +2 -0
- package/dist/core/p-141d9af4.entry.js.map +1 -0
- package/dist/core/p-17ebfe85.js +2 -0
- package/dist/core/p-17ebfe85.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-1fee1753.entry.js +2 -0
- package/dist/core/p-1fee1753.entry.js.map +1 -0
- package/dist/core/p-22abe742.entry.js +2 -0
- package/dist/core/p-22abe742.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-2712444e.entry.js +2 -0
- package/dist/core/p-2712444e.entry.js.map +1 -0
- package/dist/core/p-28e59384.js +2 -0
- package/dist/core/p-28e59384.js.map +1 -0
- package/dist/core/p-2969eb69.entry.js +2 -0
- package/dist/core/p-2969eb69.entry.js.map +1 -0
- package/dist/core/p-2bf5b814.js +2 -0
- package/dist/core/p-2bf5b814.js.map +1 -0
- package/dist/core/p-2f858bf5.entry.js +2 -0
- package/dist/core/p-2f858bf5.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-3b42950e.entry.js +2 -0
- package/dist/core/p-3b42950e.entry.js.map +1 -0
- package/dist/core/p-3c12c766.entry.js +2 -0
- package/dist/core/p-3c12c766.entry.js.map +1 -0
- package/dist/core/p-41c18f64.entry.js +2 -0
- package/dist/core/p-41c18f64.entry.js.map +1 -0
- package/dist/core/p-497c90ea.entry.js +2 -0
- package/dist/core/p-497c90ea.entry.js.map +1 -0
- package/dist/core/p-4a235ef5.entry.js +2 -0
- package/dist/core/p-4a235ef5.entry.js.map +1 -0
- package/dist/core/p-4c55142b.js +2 -0
- package/dist/core/p-4c55142b.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-5bc604a3.js +3 -0
- package/dist/core/p-5bc604a3.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-60963ed7.entry.js +2 -0
- package/dist/core/p-60963ed7.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-6675a0f0.entry.js +2 -0
- package/dist/core/p-6675a0f0.entry.js.map +1 -0
- package/dist/core/p-67138ae9.entry.js +2 -0
- package/dist/core/p-67138ae9.entry.js.map +1 -0
- package/dist/core/p-6834d779.js +2 -0
- package/dist/core/p-6834d779.js.map +1 -0
- package/dist/core/p-6dc942b8.entry.js +2 -0
- package/dist/core/p-6dc942b8.entry.js.map +1 -0
- package/dist/core/p-705efbf1.entry.js +2 -0
- package/dist/core/p-705efbf1.entry.js.map +1 -0
- package/dist/core/p-73b7585b.entry.js +2 -0
- package/dist/core/p-73b7585b.entry.js.map +1 -0
- package/dist/core/p-74882c70.entry.js +2 -0
- package/dist/core/p-74882c70.entry.js.map +1 -0
- package/dist/core/p-74b2311a.js +2 -0
- package/dist/core/p-74b2311a.js.map +1 -0
- package/dist/core/p-7724b535.js +2 -0
- package/dist/core/p-7724b535.js.map +1 -0
- package/dist/core/p-7757e4a1.entry.js +2 -0
- package/dist/core/p-7757e4a1.entry.js.map +1 -0
- package/dist/core/p-78942f76.entry.js +2 -0
- package/dist/core/p-78942f76.entry.js.map +1 -0
- package/dist/core/p-7f2c9830.js +2 -0
- package/dist/core/p-7f2c9830.js.map +1 -0
- package/dist/core/p-81593c86.entry.js +2 -0
- package/dist/core/p-81593c86.entry.js.map +1 -0
- package/dist/core/p-83e998d8.entry.js +2 -0
- package/dist/core/p-83e998d8.entry.js.map +1 -0
- package/dist/core/p-89b3e4d4.entry.js +2 -0
- package/dist/core/p-89b3e4d4.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-92af05f2.entry.js +2 -0
- package/dist/core/p-92af05f2.entry.js.map +1 -0
- package/dist/core/p-96d141a3.entry.js +2 -0
- package/dist/core/p-96d141a3.entry.js.map +1 -0
- package/dist/core/p-9a4c910d.js +2 -0
- package/dist/core/p-9a4c910d.js.map +1 -0
- package/dist/core/p-9c6699d6.entry.js +2 -0
- package/dist/core/p-9c6699d6.entry.js.map +1 -0
- package/dist/core/p-9dab01be.js +2 -0
- package/dist/core/p-9dab01be.js.map +1 -0
- package/dist/core/p-a63bb91e.entry.js +2 -0
- package/dist/core/p-a63bb91e.entry.js.map +1 -0
- package/dist/core/p-a6b6dc73.entry.js +2 -0
- package/dist/core/p-a6b6dc73.entry.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-ac5e5b2c.entry.js +2 -0
- package/dist/core/p-ac5e5b2c.entry.js.map +1 -0
- package/dist/core/p-b1184db4.entry.js +2 -0
- package/dist/core/p-b1184db4.entry.js.map +1 -0
- package/dist/core/p-b127c8a8.entry.js +2 -0
- package/dist/core/p-b127c8a8.entry.js.map +1 -0
- package/dist/core/p-b49293dc.entry.js +2 -0
- package/dist/core/p-b49293dc.entry.js.map +1 -0
- package/dist/core/p-b4a59c79.entry.js +2 -0
- package/dist/core/p-b4a59c79.entry.js.map +1 -0
- package/dist/core/p-b4ab0d15.entry.js +2 -0
- package/dist/core/p-b4ab0d15.entry.js.map +1 -0
- package/dist/core/p-b580666b.entry.js +2 -0
- package/dist/core/p-b580666b.entry.js.map +1 -0
- package/dist/core/p-b5e1ee46.entry.js +2 -0
- package/dist/core/p-b5e1ee46.entry.js.map +1 -0
- package/dist/core/p-b7d23697.entry.js +2 -0
- package/dist/core/p-b7d23697.entry.js.map +1 -0
- package/dist/core/p-bb7f0a66.entry.js +2 -0
- package/dist/core/p-bb7f0a66.entry.js.map +1 -0
- package/dist/core/p-be4aab0e.js +2 -0
- package/dist/core/p-be4aab0e.js.map +1 -0
- package/dist/core/p-c574ecc8.entry.js +2 -0
- package/dist/core/p-c574ecc8.entry.js.map +1 -0
- package/dist/core/p-ccf73a1a.entry.js +2 -0
- package/dist/core/p-ccf73a1a.entry.js.map +1 -0
- package/dist/core/p-cf86a858.entry.js +2 -0
- package/dist/core/p-cf86a858.entry.js.map +1 -0
- package/dist/core/p-d69599bc.entry.js +2 -0
- package/dist/core/p-d69599bc.entry.js.map +1 -0
- package/dist/core/p-db1f0452.js +2 -0
- package/dist/core/p-db1f0452.js.map +1 -0
- package/dist/core/p-dcb5fb35.js +2 -0
- package/dist/core/p-dcb5fb35.js.map +1 -0
- package/dist/core/p-de3429ab.entry.js +2 -0
- package/dist/core/p-de3429ab.entry.js.map +1 -0
- package/dist/core/p-e24236b0.entry.js +2 -0
- package/dist/core/p-e24236b0.entry.js.map +1 -0
- package/dist/core/p-e5c2f601.entry.js +2 -0
- package/dist/core/p-e5c2f601.entry.js.map +1 -0
- package/dist/core/p-ee4c58e3.entry.js +2 -0
- package/dist/core/p-ee4c58e3.entry.js.map +1 -0
- package/dist/core/p-f1227928.entry.js +2 -0
- package/dist/core/p-f1227928.entry.js.map +1 -0
- package/dist/core/p-f29b0193.entry.js +2 -0
- package/dist/core/p-f29b0193.entry.js.map +1 -0
- package/dist/core/p-f636a1ca.entry.js +2 -0
- package/dist/core/p-f636a1ca.entry.js.map +1 -0
- package/dist/core/p-f76f0a67.entry.js +2 -0
- package/dist/core/p-f76f0a67.entry.js.map +1 -0
- package/dist/core/p-fa1e4aea.js +2 -0
- package/dist/core/p-fa1e4aea.js.map +1 -0
- package/dist/core/p-fb51d693.entry.js +2 -0
- package/dist/core/p-fb51d693.entry.js.map +1 -0
- package/dist/core/p-fc2a1e14.entry.js +2 -0
- package/dist/core/p-fc2a1e14.entry.js.map +1 -0
- package/dist/core/p-fc8a29e9.entry.js +2 -0
- package/dist/core/p-fc8a29e9.entry.js.map +1 -0
- package/dist/core/p-fd4b0f54.entry.js +2 -0
- package/dist/core/p-fd4b0f54.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/esm/Fragment-8d8d54fb.js +5 -0
- package/dist/esm/Fragment-8d8d54fb.js.map +1 -0
- package/dist/esm/constants-09bda759.js +25 -0
- package/dist/esm/constants-09bda759.js.map +1 -0
- package/dist/esm/constants-2499979c.js +24 -0
- package/dist/esm/constants-2499979c.js.map +1 -0
- package/dist/esm/constants-27b48cd1.js +22 -0
- package/dist/esm/constants-27b48cd1.js.map +1 -0
- package/dist/esm/constants-2a283e9a.js +18 -0
- package/dist/esm/constants-2a283e9a.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-34a29ae2.js +33 -0
- package/dist/esm/constants-34a29ae2.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-47d7a8bc.js +17 -0
- package/dist/esm/constants-47d7a8bc.js.map +1 -0
- package/dist/esm/constants-6df4edc4.js +29 -0
- package/dist/esm/constants-6df4edc4.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-867ac6e2.js +19 -0
- package/dist/esm/constants-867ac6e2.js.map +1 -0
- package/dist/esm/constants-887c5391.js +23 -0
- package/dist/esm/constants-887c5391.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/core.js +43 -0
- package/dist/esm/core.js.map +1 -0
- package/dist/esm/form-39dc6896.js +145 -0
- package/dist/esm/form-39dc6896.js.map +1 -0
- package/dist/esm/gov-accordion-item.entry.js +98 -0
- package/dist/esm/gov-accordion-item.entry.js.map +1 -0
- package/dist/esm/gov-accordion.entry.js +73 -0
- package/dist/esm/gov-accordion.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 +46 -0
- package/dist/esm/gov-backdrop.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 +176 -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-chip.entry.js +104 -0
- package/dist/esm/gov-chip.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-control-group.entry.js +39 -0
- package/dist/esm/gov-control-group.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-dropdown.entry.js +131 -0
- package/dist/esm/gov-dropdown.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 +241 -0
- package/dist/esm/gov-form-autocomplete.entry.js.map +1 -0
- package/dist/esm/gov-form-checkbox.entry.js +127 -0
- package/dist/esm/gov-form-checkbox.entry.js.map +1 -0
- package/dist/esm/gov-form-control.entry.js +103 -0
- package/dist/esm/gov-form-control.entry.js.map +1 -0
- package/dist/esm/gov-form-file.entry.js +236 -0
- package/dist/esm/gov-form-file.entry.js.map +1 -0
- package/dist/esm/gov-form-group.entry.js +55 -0
- package/dist/esm/gov-form-group.entry.js.map +1 -0
- package/dist/esm/gov-form-input.entry.js +186 -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 +300 -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 +127 -0
- package/dist/esm/gov-form-radio.entry.js.map +1 -0
- package/dist/esm/gov-form-search.entry.js +28 -0
- package/dist/esm/gov-form-search.entry.js.map +1 -0
- package/dist/esm/gov-form-select.entry.js +163 -0
- package/dist/esm/gov-form-select.entry.js.map +1 -0
- package/dist/esm/gov-form-switch.entry.js +127 -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 +131 -0
- package/dist/esm/gov-icon.entry.js.map +1 -0
- package/dist/esm/gov-infobar.entry.js +87 -0
- package/dist/esm/gov-infobar.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 +26 -0
- package/dist/esm/gov-loading.entry.js.map +1 -0
- package/dist/esm/gov-message.entry.js +40 -0
- package/dist/esm/gov-message.entry.js.map +1 -0
- package/dist/esm/gov-modal.entry.js +102 -0
- package/dist/esm/gov-modal.entry.js.map +1 -0
- package/dist/esm/gov-nav-item.entry.js +35 -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 +220 -0
- package/dist/esm/gov-pagination.entry.js.map +1 -0
- package/dist/esm/gov-prompt.entry.js +99 -0
- package/dist/esm/gov-prompt.entry.js.map +1 -0
- package/dist/esm/gov-side-nav-item.entry.js +83 -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 +54 -0
- package/dist/esm/gov-spacer.entry.js.map +1 -0
- package/dist/esm/gov-statsbar-item.entry.js +36 -0
- package/dist/esm/gov-statsbar-item.entry.js.map +1 -0
- package/dist/esm/gov-statsbar.entry.js +49 -0
- package/dist/esm/gov-statsbar.entry.js.map +1 -0
- package/dist/esm/gov-stepper-item.entry.js +74 -0
- package/dist/esm/gov-stepper-item.entry.js.map +1 -0
- package/dist/esm/gov-stepper.entry.js +47 -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 +194 -0
- package/dist/esm/gov-tabs.entry.js.map +1 -0
- package/dist/esm/gov-tag.entry.js +53 -0
- package/dist/esm/gov-tag.entry.js.map +1 -0
- package/dist/esm/gov-tile.entry.js +38 -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 +97 -0
- package/dist/esm/gov-toast.entry.js.map +1 -0
- package/dist/esm/gov-tooltip-content.entry.js +50 -0
- package/dist/esm/gov-tooltip-content.entry.js.map +1 -0
- package/dist/esm/gov-tooltip.entry.js +220 -0
- package/dist/esm/gov-tooltip.entry.js.map +1 -0
- package/dist/esm/gov-wizard-item.entry.js +111 -0
- package/dist/esm/gov-wizard-item.entry.js.map +1 -0
- package/dist/esm/gov-wizard.entry.js +65 -0
- package/dist/esm/gov-wizard.entry.js.map +1 -0
- package/dist/esm/gov.log-49da0221.js +25 -0
- package/dist/esm/gov.log-49da0221.js.map +1 -0
- package/dist/esm/helpers-bc0fd116.js +17 -0
- package/dist/esm/helpers-bc0fd116.js.map +1 -0
- package/dist/esm/index-eb59f132.js +2682 -0
- package/dist/esm/index-eb59f132.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -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-a85d9c89.js +14 -0
- package/dist/esm/props-a85d9c89.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-df429738.js +120 -0
- package/dist/esm/template-df429738.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-7d25e12b.js +62 -0
- package/dist/esm/wcag-7d25e12b.js.map +1 -0
- package/dist/esm/win-1dbd3f5c.js +31 -0
- package/dist/esm/win-1dbd3f5c.js.map +1 -0
- package/dist/globals.d.ts +2 -0
- package/dist/hydrate/index.d.ts +218 -0
- package/dist/hydrate/index.js +12646 -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 +75 -0
- package/dist/stencil.config.js.map +1 -0
- package/dist/types/Users/leo/Projects/repos/asseco/design-system/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.ts +58 -0
- package/dist/types/components/gov-accordion/gov-accordion.d.ts +42 -0
- package/dist/types/components/gov-accordion/gov-accordion.types.d.ts +9 -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 +28 -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/button/constants.d.ts +30 -0
- package/dist/types/components/gov-button/button/gov-button.d.ts +180 -0
- package/dist/types/components/gov-button/button/gov-button.types.d.ts +4 -0
- package/dist/types/components/gov-button/dropdown/constants.d.ts +10 -0
- package/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +34 -0
- package/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +4 -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-chip/constants.d.ts +13 -0
- package/dist/types/components/gov-chip/gov-chip.d.ts +93 -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-control-group/constants.d.ts +7 -0
- package/dist/types/components/gov-control-group/gov-control-group.d.ts +16 -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 +14 -0
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +151 -0
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +9 -0
- package/dist/types/components/gov-form/checkbox/constants.d.ts +9 -0
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +87 -0
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +5 -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 +133 -0
- package/dist/types/components/gov-form/file/gov-form-file.types.d.ts +11 -0
- package/dist/types/components/gov-form/group/constants.d.ts +12 -0
- package/dist/types/components/gov-form/group/gov-form-group.d.ts +18 -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 +181 -0
- package/dist/types/components/gov-form/input/gov-form-input.types.d.ts +4 -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 +157 -0
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +9 -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 +11 -0
- package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +87 -0
- package/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +5 -0
- package/dist/types/components/gov-form/search/constants.d.ts +9 -0
- package/dist/types/components/gov-form/search/gov-form-search.d.ts +9 -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 +115 -0
- package/dist/types/components/gov-form/select/gov-form-select.types.d.ts +9 -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 +87 -0
- package/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +5 -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 +23 -0
- package/dist/types/components/gov-icon/helpers.d.ts +5 -0
- package/dist/types/components/gov-icon/list.d.ts +3 -0
- package/dist/types/components/gov-infobar/constants.d.ts +13 -0
- package/dist/types/components/gov-infobar/gov-infobar.d.ts +47 -0
- package/dist/types/components/gov-infobar/gov-infobar.types.d.ts +4 -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 +6 -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 +14 -0
- package/dist/types/components/gov-modal/gov-modal.d.ts +69 -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 +87 -0
- package/dist/types/components/gov-pagination/gov-pagination.types.d.ts +5 -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 +72 -0
- package/dist/types/components/gov-tabs/gov-tabs.types.d.ts +8 -0
- package/dist/types/components/gov-tag/constants.d.ts +3 -0
- package/dist/types/components/gov-tag/gov-tag.d.ts +30 -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 +21 -0
- package/dist/types/components/gov-toast/constants.d.ts +14 -0
- package/dist/types/components/gov-toast/gov-toast.d.ts +53 -0
- package/dist/types/components/gov-tooltip/constants.d.ts +20 -0
- package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +28 -0
- package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +54 -0
- package/dist/types/components/gov-wizard/constants.d.ts +21 -0
- package/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +4 -0
- package/dist/types/components/gov-wizard/gov-wizard-item.d.ts +72 -0
- package/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +4 -0
- package/dist/types/components/gov-wizard/gov-wizard.d.ts +33 -0
- package/dist/types/components.d.ts +4448 -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/tokens.d.ts +1 -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 +13 -0
- package/dist/types/helpers/Dom/win.d.ts +18 -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/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/interfaces.d.ts +1 -0
- package/dist/types/pages/Accordion.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/Chip.d.ts +3 -0
- package/dist/types/pages/Container.d.ts +3 -0
- package/dist/types/pages/ControlGroup.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/Infobar.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/Tag.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/Wizard.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +1652 -0
- package/dist/types/types/event.types.d.ts +4 -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/helpers.types.d.ts +49 -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 +21 -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 -8
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,c as o,h as r,a as t,g as n}from"./p-5bc604a3.js";import{v as a}from"./p-dcb5fb35.js";import{B as i,b as v,T as l,N as s}from"./p-4c55142b.js";import{g as b,p as u,t as g,a as c}from"./p-28e59384.js";import{S as d}from"./p-55500e5a.js";import{a as m,v as p}from"./p-7724b535.js";import{c as y}from"./p-003e6cca.js";import{d as h}from"./p-03990da5.js";import{p as k}from"./p-2bf5b814.js";import"./p-7f2c9830.js";import"./p-ff7365ae.js";import"./p-24636c53.js";function w(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 f='.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 .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))}[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))}[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))}[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))}[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))}[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))}[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))}[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-500));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-600))}}[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))}[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))}[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))}[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))}[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))}[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))}[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))}[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))}[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-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-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-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-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-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-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{justify-content:flex-start;align-items:flex-start;text-align:left;min-height:inherit;padding:0 !important;line-height:inherit;text-decoration:underline}@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[loading=true] .element .gov-icon,.gov-button[loading="1"] .element .gov-icon{margin:0}.gov-button[loading="0"][size=xs] .element,.gov-button[loading=false][size=xs] .element,.gov-button[loading=""][size=xs] .element{padding:var(--gov-button-xs-padding-y, 0.125rem) calc((var(--gov-button-xs-padding-x, 0.625rem) * 3 + var(--gov-button-xs-icon-size, 1rem)) / 2)}.gov-button[size=xs] .element{font-weight:var(--gov-button-xs-font-weight, 700)}.gov-button[loading="0"][size=s] .element,.gov-button[loading=false][size=s] .element,.gov-button[loading=""][size=s] .element{padding:var(--gov-button-s-padding-y, 0.25rem) calc((var(--gov-button-s-padding-x, 0.75rem) * 3 + var(--gov-button-s-icon-size, 1rem)) / 2)}.gov-button[size=s] .element{font-weight:var(--gov-button-s-font-weight, 700)}.gov-button[loading="0"][size=m] .element,.gov-button[loading=false][size=m] .element,.gov-button[loading=""][size=m] .element{padding:var(--gov-button-m-padding-y, 0.375rem) calc((var(--gov-button-m-padding-x, 0.75rem) * 3 + var(--gov-button-m-icon-size, 1.25rem)) / 2)}.gov-button[size=m] .element{font-weight:var(--gov-button-m-font-weight, 700)}.gov-button[loading="0"][size=l] .element,.gov-button[loading=false][size=l] .element,.gov-button[loading=""][size=l] .element{padding:var(--gov-button-l-padding-y, 0.5rem) calc((var(--gov-button-l-padding-x, 1rem) * 3 + var(--gov-button-l-icon-size, 1.5rem)) / 2)}.gov-button[size=l] .element{font-weight:var(--gov-button-l-font-weight, 700)}.gov-button[loading="0"][size=xl] .element,.gov-button[loading=false][size=xl] .element,.gov-button[loading=""][size=xl] .element{padding:var(--gov-button-xl-padding-y, 0.75rem) calc((var(--gov-button-xl-padding-x, 1.25rem) * 3 + var(--gov-button-xl-icon-size, 1.75rem)) / 2)}.gov-button[size=xl] .element{font-weight:var(--gov-button-xl-font-weight, 700)}.gov-button[size=s][type=link] .gov-icon{margin-top:4px}.gov-button[size=m][type=link] .gov-icon{margin-top:2px}';var x;(function(e){e["A"]="a";e["BUTTON"]="button"})(x||(x={}));const z=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.iconLeft=undefined;this.iconRight=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(d,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?x.A:x.BUTTON;const o=e===x.A?undefined:this.nativeType;const n=k(this.iconLeft);const a=k(this.iconRight);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.triggerRef=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":c(this.isPressed),"aria-disabled":g(this.disabled),"aria-current":this.wcagCurrent},w(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"}),n&&r("gov-icon",{type:n.type,name:n.name}),r("slot",null),this.h.hasSlot("right-icon")&&r("slot",{name:"right-icon"}),a&&r("gov-icon",{type:a.type,name:a.name}),w(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({component:i.root,originalEvent:e,ref:this.host})}}onFocusHandler(e){e.stopPropagation();this.govFocus.emit({component:i.root,originalEvent:e,ref:this.host})}onBlurHandler(e){e.stopPropagation();this.govBlur.emit({component:i.root,originalEvent:e,ref:this.host})}async setFocus(){this.triggerRef.focus()}async getTriggerRef(){return this.triggerRef}async validateWcag(){if(this.focusable){m(this.wcagActiveDescendant,"aria-activedescendant",i.root);m(this.wcagControls,"aria-controls",i.root);m(this.wcagDetails,"aria-details",i.root);m(this.wcagOwns,"aria-owns",i.root);m(this.wcagHasPopup,"aria-haspopup",i.root);p(this.wcagLabel,this.wcagLabelledBy,i.root)}}get host(){return n(this)}static get watchers(){return{variant:["validateVariant"],type:["validateType"],size:["validateSize"],nativeType:["validateNativeType"]}}};z.style=f;export{z as gov_button};
|
|
2
|
+
//# sourceMappingURL=p-044f4c35.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["toBool","value","indexOf","govButtonCss","Tags","GovButton","constructor","hostRef","this","h","govHost","host","validateVariant","newValue","validateProp","ButtonVariants","ButtonClass","root","validateType","Type","validateSize","Sizes","validateNativeType","NativeType","componentWillLoad","variant","type","size","nativeType","componentDidRender","canValidateWcagOnRender","delay","validateWcag","classNames","prepareClasses","hasSlot","rootWithIcon","render","Tag","href","A","BUTTON","undefined","iconLeft","prepareIconFormat","iconRight","Host","hoverable","class","classes","inverse","ref","el","triggerRef","onClick","onClickHandler","bind","onFocus","onFocusHandler","onBlur","onBlurHandler","onMouseDown","isPressed","onMouseUp","disabled","id","identifier","target","download","hreflang","rel","name","tabindex","focusable","wcagActiveDescendant","wcagDescription","wcagControls","wcagDetails","toBoolAttrIfDefined","wcagExpanded","wcagLabel","wcagLabelledBy","wcagOwns","wcagHasPopup","toBoolAttr","wcagCurrent","loading","e","stopPropagation","govClick","emit","component","originalEvent","govFocus","govBlur","setFocus","focus","getTriggerRef","validateWcagRef","validateWcagLabel"],"sources":["../../../packages/core/src/utils/bool.utils.ts","../../../packages/core/src/components/gov-button/button/gov-button.scss?tag=gov-button","../../../packages/core/src/components/gov-button/button/gov-button.tsx"],"sourcesContent":["export function toBool(value: any): boolean {\n\tif (typeof value === 'string') {\n\t\treturn ['true', 'True', 'TRUE', '1'].indexOf(value) !== -1\n\t} else if (typeof value === 'number') {\n\t\treturn value > 0\n\t} else if (typeof value === 'boolean') {\n\t\treturn value\n\t} else {\n\t\treturn value ? true : false\n\t}\n}\n","/*\n * Button\n */\n\n// Shared definitions - BUTTON & chip\n@import \"gov-button-core\";\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\tjustify-content: flex-start;\n\t\t\talign-items: flex-start;\n\t\t\ttext-align: left;\n\t\t\tmin-height: inherit;\n\t\t\tpadding: 0 !important;\n\t\t\tline-height: inherit;\n\t\t\ttext-decoration: underline;\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\t.gov-icon {\n\t\t\t\tmargin: 0;\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&[loading=\"0\"][size=\"#{$size}\"],\n\t\t&[loading=\"false\"][size=\"#{$size}\"],\n\t\t&[loading=\"\"][size=\"#{$size}\"] {\n\t\t\t.element {\n\t\t\t\tpadding: get(\"padding-y\", $definitions) calc(((get(\"padding-x\", $definitions) * 3) + get(\"icon-size\", $definitions)) / 2);\n\t\t\t}\n\t\t}\n\t\t&[size=\"#{$size}\"] {\n\t\t\t.element {\n\t\t\t\tfont-weight: map-get($definitions, \"font-weight\");\n\t\t\t}\n\t\t}\n\t}\n\t&[size=\"s\"][type=\"link\"] .gov-icon {\n\t\tmargin-top: 4px;\n\t}\n\t&[size=\"m\"][type=\"link\"] .gov-icon {\n\t\tmargin-top: 2px;\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {\n\tButtonClass,\n\tButtonSizesType,\n\tButtonTargetType,\n\tButtonVariants,\n\tButtonVariantType,\n\tNativeType,\n\tNativeTypesType,\n\tType,\n\tTypesType,\n} from \"./constants\"\nimport {govHost, prepareClasses, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {toBool} from \"../../../utils/bool.utils\"\nimport {Sizes} from \"../../../core/constants/sizes\"\nimport {validateWcagLabel, validateWcagRef} from \"../../../helpers/Validate/wcag\"\nimport {canValidateWcagOnRender} from \"../../../helpers/Dom/win\"\nimport {delay} from \"../../../utils/utils\"\nimport {ButtonEvent} from \"./gov-button.types\"\nimport {prepareIconFormat} from \"../../gov-icon/helpers\";\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 triggerRef?: HTMLButtonElement | HTMLLinkElement\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({reflect: true}) 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({reflect: true}) 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 * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-left\"}) readonly iconLeft?: string\n\t/**\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\n\t */\n\t@Prop({attribute: \"icon-right\"}) readonly iconRight?: 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 parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom button identifier\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * 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<ButtonEvent>\n\t/**\n\t * Emitted when the button has focus\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<ButtonEvent>\n\t/**\n\t * Emitted when the button loses focus\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<ButtonEvent>\n\n\t@Watch(\"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\tconst iconLeft = prepareIconFormat(this.iconLeft)\n\t\tconst iconRight = prepareIconFormat(this.iconRight)\n\n\t\treturn (\n\t\t\t<Host hoverable={true}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\t\tclass={this.h.classes(this.classNames)}\n\t\t\t\t\t\ttype={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.triggerRef = el as HTMLButtonElement | HTMLLinkElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\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\") &&\n\t\t\t\t\t\t<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{iconLeft && \t<gov-icon type={iconLeft.type} name={iconLeft.name}></gov-icon>}\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{iconRight && \t<gov-icon type={iconRight.type} name={iconRight.name}></gov-icon>}\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot(\"right-icon\") &&\n\t\t\t\t\t\t<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({\n\t\t\t\tcomponent: ButtonClass.root,\n\t\t\t\toriginalEvent: e,\n\t\t\t\tref: this.host,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: ButtonClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tref: this.host,\n\t\t})\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.triggerRef.focus()\n\t}\n\n\t/**\n\t * Returns a clickable element instance\n\t */\n\t@Method()\n\tasync getTriggerRef() {\n\t\treturn this.triggerRef\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"],"mappings":"keAAgBA,EAAOC,GACtB,UAAWA,IAAU,SAAU,CAC9B,MAAO,CAAC,OAAQ,OAAQ,OAAQ,KAAKC,QAAQD,MAAY,C,MACnD,UAAWA,IAAU,SAAU,CACrC,OAAOA,EAAQ,C,MACT,UAAWA,IAAU,UAAW,CACtC,OAAOA,C,KACD,CACN,OAAOA,EAAQ,KAAO,K,CAExB,CCVA,MAAME,EAAe,61wECuBrB,IAAKC,GAAL,SAAKA,GACJA,EAAA,SACAA,EAAA,kBACA,EAHD,CAAKA,MAAI,K,MASIC,EAAS,MAIrB,WAAAC,CAAAC,G,qJAayD,I,UAIN,Q,cAIC,M,aAID,M,mFAiBC,M,gBAKJ,S,iLAuCV,K,+XAwFjB,MA7KpBC,KAAKC,EAAIC,EAAQF,KAAKG,K,CA0JvB,eAAAC,CAAgBC,GACfC,EAAaC,EAAgBF,EAAUG,EAAYC,K,CAIpD,YAAAC,CAAaL,GACZC,EAAaK,EAAMN,EAAUG,EAAYC,K,CAI1C,YAAAG,CAAaP,GACZC,EAAaO,EAAOR,EAAUG,EAAYC,K,CAI3C,kBAAAK,CAAmBT,GAClBC,EAAaS,EAAYV,EAAUG,EAAYC,K,CAKhD,iBAAAO,GACChB,KAAKI,gBAAgBJ,KAAKiB,SAC1BjB,KAAKU,aAAaV,KAAKkB,MACvBlB,KAAKY,aAAaZ,KAAKmB,MACvBnB,KAAKc,mBAAmBd,KAAKoB,W,CAG9B,wBAAMC,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNvB,KAAKwB,c,EAIb,cAAIC,GACH,MAAMxB,EAACA,GAAKD,KAEZ,OAAO0B,EAAe,CAAClB,EAAYC,KAAMR,EAAE0B,QAAQ,cAAgBnB,EAAYoB,aAAc3B,EAAE0B,QAAQ,eAAiBnB,EAAYoB,c,CAGrI,MAAAC,GACC,MAAMC,EAAM9B,KAAK+B,KAAOnC,EAAKoC,EAAIpC,EAAKqC,OACtC,MAAMb,EAAaU,IAAQlC,EAAKoC,EAAIE,UAAYlC,KAAKoB,WAErD,MAAMe,EAAWC,EAAkBpC,KAAKmC,UACxC,MAAME,EAAYD,EAAkBpC,KAAKqC,WAEzC,OACCpC,EAACqC,EAAI,CAACC,UAAW,KACdpB,KAAMnB,KAAKmB,KACXF,QAASjB,KAAKiB,QACduB,MAAOxC,KAAKC,EAAEwC,QAAQzC,KAAKyB,YAC3BP,KAAMlB,KAAKkB,KAAMwB,QAAS1C,KAAK0C,SACjCzC,EAAC6B,EAAG,CACHU,MAAM,UACNG,IAAKC,GAAO5C,KAAK6C,WAAaD,EAC9BE,QAAS9C,KAAK+C,eAAeC,KAAKhD,MAClCiD,QAASjD,KAAKkD,eAAeF,KAAKhD,MAClCmD,OAAQnD,KAAKoD,cAAcJ,KAAKhD,MAChCqD,YAAa,IAAOrD,KAAKsD,UAAY,KACrCC,UAAW,IAAOvD,KAAKsD,UAAY,MACnCE,SAAUxD,KAAKwD,SACfC,GAAIzD,KAAK0D,WACT3B,KAAM/B,KAAK+B,KACX4B,OAAQ3D,KAAK2D,OACbC,SAAU5D,KAAK4D,SACfC,SAAU7D,KAAK6D,SACfC,IAAK9D,KAAK8D,IACVC,KAAM/D,KAAK+D,KACX7C,KAAME,EACN4C,SAAUhE,KAAKiE,UAAY,IAAM,KAAI,wBACdjE,KAAKkE,qBAAoB,mBAC9BlE,KAAKkE,qBAAoB,mBACzBlE,KAAKmE,gBAAe,gBACvBnE,KAAKoE,aAAY,eAClBpE,KAAKqE,YAAW,gBACfC,EAAoBtE,KAAKuE,cAAa,aACzCvE,KAAKwE,UAAS,kBACTxE,KAAKyE,eAAc,YACzBzE,KAAK0E,SAAQ,gBACTJ,EAAoBtE,KAAK2E,cAAa,eACvCC,EAAW5E,KAAKsD,WAAU,gBACzBgB,EAAoBtE,KAAKwD,UAAS,eACnCxD,KAAK6E,aAElBrF,EAAOQ,KAAK8E,WAAa9E,KAAKC,EAAE0B,QAAQ,eACxC1B,EAAA,YAAU8D,KAAK,SAASvB,MAAM,uBAC9BxC,KAAKC,EAAE0B,QAAQ,cAAgB1B,EAAA,QAAM8D,KAAK,cAC1C5B,GAAalC,EAAA,YAAUiB,KAAMiB,EAASjB,KAAM6C,KAAM5B,EAAS4B,OAC5D9D,EAAA,aACCD,KAAKC,EAAE0B,QAAQ,eAAiB1B,EAAA,QAAM8D,KAAK,eAC3C1B,GAAcpC,EAAA,YAAUiB,KAAMmB,EAAUnB,KAAM6C,KAAM1B,EAAU0B,OAC9DvE,EAAOQ,KAAK8E,UAAY9E,KAAKC,EAAE0B,QAAQ,eACvC1B,EAAA,YAAU8D,KAAK,SAASvB,MAAM,wB,CAM3B,cAAAO,CAAegC,GACtBA,EAAEC,kBACF,GAAIhF,KAAKwD,WAAa,MAAO,CAC5BxD,KAAKiF,SAASC,KAAK,CAClBC,UAAW3E,EAAYC,KACvB2E,cAAeL,EACfpC,IAAK3C,KAAKG,M,EAKL,cAAA+C,CAAe6B,GACtBA,EAAEC,kBACFhF,KAAKqF,SAASH,KAAK,CAClBC,UAAW3E,EAAYC,KACvB2E,cAAeL,EACfpC,IAAK3C,KAAKG,M,CAIJ,aAAAiD,CAAc2B,GACrBA,EAAEC,kBACFhF,KAAKsF,QAAQJ,KAAK,CACjBC,UAAW3E,EAAYC,KACvB2E,cAAeL,EACfpC,IAAK3C,KAAKG,M,CAQZ,cAAMoF,GACLvF,KAAK6C,WAAW2C,O,CAOjB,mBAAMC,GACL,OAAOzF,KAAK6C,U,CAOb,kBAAMrB,GACL,GAAIxB,KAAKiE,UAAW,CACnByB,EAAgB1F,KAAKkE,qBAAsB,wBAAyB1D,EAAYC,MAChFiF,EAAgB1F,KAAKoE,aAAc,gBAAiB5D,EAAYC,MAChEiF,EAAgB1F,KAAKqE,YAAa,eAAgB7D,EAAYC,MAC9DiF,EAAgB1F,KAAK0E,SAAU,YAAalE,EAAYC,MACxDiF,EAAgB1F,KAAK2E,aAAc,gBAAiBnE,EAAYC,MAChEkF,EAAkB3F,KAAKwE,UAAWxE,KAAKyE,eAAgBjE,EAAYC,K"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,h as t,a as i,g as e}from"./p-5bc604a3.js";import{T as r,a as n,b as a}from"./p-9a4c910d.js";import{a as s}from"./p-28e59384.js";import"./p-ff7365ae.js";import"./p-55500e5a.js";import"./p-03990da5.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-tooltip-content{z-index:51;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);position:absolute;display:block;width:-moz-max-content;width:max-content;max-width:var(--gov-tooltip-content-max-width, 21rem);padding:1rem;border-radius:0.1875rem;background-color:var(--gov-tooltip-content-bg-color, var(--gov-color-primary-300));color:var(--gov-tooltip-content-text-color, var(--gov-color-secondary));letter-spacing:0.0125rem;visibility:hidden;opacity:0;transition:opacity 0.2s ease-in}.gov-tooltip-content::before{content:"";position:absolute;display:block;width:0;height:0;border:0.625rem solid transparent}.gov-tooltip-content gov-button{position:absolute;right:0;top:0}.gov-tooltip-content[persist=""],.gov-tooltip-content[persist=true i],.gov-tooltip-content[persist="1"]{padding-right:3.25rem}.gov-tooltip-content[is-visible=""],.gov-tooltip-content[is-visible=true i],.gov-tooltip-content[is-visible="1"]{opacity:1}.gov-tooltip-content[variant=secondary]{--gov-tooltip-content-bg-color:var(--gov-tooltip-secondary-bg-color, var(--gov-color-secondary));--gov-tooltip-content-text-color:var(--gov-tooltip-secondary-text-color, var(--gov-color-neutral-white))}.gov-tooltip-content[variant=secondary][inverse=""],.gov-tooltip-content[variant=secondary][inverse=true i],.gov-tooltip-content[variant=secondary][inverse="1"]{--gov-tooltip-content-bg-color:var(--gov-color-neutral-white);--gov-tooltip-content-text-color:var(--gov-tooltip-secondary-text-color-inverse, var(--gov-color-secondary))}.gov-tooltip-content[variant=primary]{--gov-tooltip-content-bg-color:var(--gov-tooltip-primary-bg-color, var(--gov-color-primary-300));--gov-tooltip-content-text-color:var(--gov-tooltip-primary-text-color, var(--gov-color-secondary))}.gov-tooltip-content[variant=primary][inverse=""],.gov-tooltip-content[variant=primary][inverse=true i],.gov-tooltip-content[variant=primary][inverse="1"]{--gov-tooltip-content-bg-color:var(--gov-color-neutral-white);--gov-tooltip-content-text-color:var(--gov-tooltip-primary-text-color-inverse, var(--gov-color-primary))}.gov-tooltip-content[size=s]{--gov-tooltip-content-padding:var(--gov-tooltip-s-padding, 0.5rem);--gov-tooltip-content-arrow-size:var(--gov-tooltip-s-arrow-size, 0.4375rem);--gov-tooltip-content-letter-spacing:var(--gov-tooltip-s-letter-spacing, 0.0125rem);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-tooltip-content[size=s][persist=true i]{padding-right:var(--gov-tooltip-s-persist-space, 3rem)}.gov-tooltip-content[size=l]{--gov-tooltip-content-padding:var(--gov-tooltip-l-padding, 1rem);--gov-tooltip-content-arrow-size:var(--gov-tooltip-l-arrow-size, 0.875rem);--gov-tooltip-content-letter-spacing:var(--gov-tooltip-l-letter-spacing, 0.002rem);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-tooltip-content[size=l][persist=true i]{padding-right:var(--gov-tooltip-s-persist-space, 4rem)}.gov-tooltip-content[position=top]::before{left:50%;transform:translateX(-50%)}.gov-tooltip-content[position=top]::before{top:100%;border-bottom-width:0;border-top-color:var(--gov-tooltip-content-bg-color, var(--gov-color-primary-300))}.gov-tooltip-content[position=bottom]::before{left:50%;transform:translateX(-50%)}.gov-tooltip-content[position=bottom]::before{bottom:100%;border-top-width:0;border-bottom-color:var(--gov-tooltip-content-bg-color, var(--gov-color-primary-300))}.gov-tooltip-content[position=left]::before{top:50%;transform:translateY(-50%)}.gov-tooltip-content[position=left]::before{left:100%;border-right-width:0;border-left-color:var(--gov-tooltip-content-bg-color, var(--gov-color-primary-300))}.gov-tooltip-content[position=right]::before{top:50%;transform:translateY(-50%)}.gov-tooltip-content[position=right]::before{right:100%;border-left-width:0;border-right-color:var(--gov-tooltip-content-bg-color, var(--gov-color-primary-300))}';const v=class{constructor(t){o(this,t);this.variant=r.PRIMARY;this.size=n._M;this.persist=false;this.isVisible=false;this.parentId=null}visibleContent(o){clearTimeout(this.timeout);if(o===false){this.timeout=setTimeout((()=>{this.host.style.visibility="hidden"}),250)}else{this.host.style.visibility="visible"}}hideContent(){this.isVisible=false;this.persist=false;const o=document.getElementById(this.parentId);if(o){o.hide().catch()}}render(){return t(i,{class:a.root,role:"tooltip",hidden:!this.isVisible,"aria-hidden":!s(this.isVisible),"is-visible":this.isVisible},t("slot",null),this.persist?t("gov-button",{"on-gov-click":this.hideContent.bind(this),variant:this.variant,size:this.size,type:"base",inverse:this.variant===r.SECONDARY},t("gov-icon",{slot:"left-icon",name:"x-lg",type:"basic"})):null)}get host(){return e(this)}static get watchers(){return{isVisible:["visibleContent"]}}};v.style=l;export{v as gov_tooltip_content};
|
|
2
|
+
//# sourceMappingURL=p-09966eaa.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["govTooltipContentCss","GovTooltipContent","TooltipVariant","PRIMARY","TooltipSize","_M","visibleContent","newValue","clearTimeout","this","timeout","setTimeout","host","style","visibility","hideContent","isVisible","persist","parentEl","document","getElementById","parentId","hide","catch","render","h","Host","class","TooltipContentClass","root","role","hidden","toBoolAttr","bind","variant","size","type","inverse","SECONDARY","slot","name"],"sources":["../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.scss?tag=gov-tooltip-content","../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.tsx"],"sourcesContent":["/*\n * Tooltip - Content\n */\n\n$class: \".gov-tooltip-content\";\n\n#{$class} {\n @include z-index(\"bar\", 1);\n @include typography($font-size-m);\n position: absolute;\n display: block;\n width: max-content;\n\n max-width: $tooltip-content-max-width;\n padding: rem-calc(16);\n border-radius: rem-calc(3);\n background-color: $tooltip-content-bg-color;\n color: $tooltip-content-text-color;\n letter-spacing: rem-calc(0.2);\n visibility: hidden;\n opacity: 0;\n transition: opacity 0.2s ease-in;\n\n &::before {\n @include pseudo();\n width: 0;\n height: 0;\n border: rem-calc(10) solid transparent;\n }\n\n & gov-button {\n position: absolute;\n right: 0;\n top: 0;\n }\n\n @include parameter(\"persist\") {\n padding-right: rem-calc(52);\n }\n\n // STATES\n @include parameter(\"is-visible\") {\n opacity: 1;\n }\n\n // VARIANTS\n @each $variant, $definitions in $tooltip-content-variants {\n &[variant=\"#{$variant}\"] {\n --#{$prefix}tooltip-content-bg-color: #{get(\"bg-color\", $definitions)};\n --#{$prefix}tooltip-content-text-color: #{get(\"text-color\", $definitions)};\n\n // STATES\n @include parameter(\"inverse\") {\n --#{$prefix}tooltip-content-bg-color: #{color(\"neutral.white\")};\n --#{$prefix}tooltip-content-text-color: #{get(\"text-color-inverse\", $definitions)};\n }\n }\n }\n @each $size, $definitions in $tooltip-content-sizes {\n &[size=\"#{$size}\"] {\n --#{$prefix}tooltip-content-padding: #{get(\"padding\", $definitions)};\n --#{$prefix}tooltip-content-arrow-size: #{get(\"arrow-size\", $definitions)};\n --#{$prefix}tooltip-content-letter-spacing: #{get(\"letter-spacing\", $definitions)};\n @include typography(get(\"typography\", $definitions));\n\n &[persist=\"true\" i] {\n padding-right: #{get(\"persist-space\", $definitions)};\n }\n }\n }\n @each $position, $definitions in $tooltip-content-positions {\n $oppositeProperty: get(\"oppositeProperty\", $definitions);\n\n &[position=\"#{$position}\"] {\n &::before {\n #{get(\"directionProperty\", $definitions)}: 50%;\n transform: #{get(\"transformFn\", $definitions) }(-50%);\n }\n\n &::before {\n #{$position}: 100%;\n border-#{$oppositeProperty}-width: 0;\n border-#{$position}-color: $tooltip-content-bg-color;\n }\n }\n }\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { TooltipContentClass, TooltipSize, TooltipSizeType, TooltipVariant, TooltipVariantType } from \"./constants\"\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\n\n@Component({\n\ttag: \"gov-tooltip-content\",\n\tstyleUrl: \"gov-tooltip-content.scss\",\n})\nexport class GovTooltipContent {\n\tprivate timeout\n\n\t@Element() host: HTMLGovTooltipContentElement\n\t/**\n\t * Style variation of the tooltip\n\t */\n\t@Prop() readonly variant?: TooltipVariantType = TooltipVariant.PRIMARY\n\t/**\n\t * Tooltip’s size.\n\t */\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\n\t/**\n\t * Tooltip is still visible.\n\t */\n\t@Prop() persist?: boolean = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"is-visible\", mutable: true }) isVisible = false\n\t/**\n\t * Indicates display of tooltip content\n\t */\n\t@Prop({ attribute: \"parent-id\" }) parentId: string = null\n\n\t@Watch(\"isVisible\")\n\tvisibleContent(newValue: boolean): void {\n\t\tclearTimeout(this.timeout)\n\t\tif (newValue === false) {\n\t\t\tthis.timeout = setTimeout(() => {\n\t\t\t\tthis.host.style.visibility = \"hidden\"\n\t\t\t}, 250)\n\t\t} else {\n\t\t\tthis.host.style.visibility = \"visible\"\n\t\t}\n\t}\n\n\thideContent() {\n\t\tthis.isVisible = false\n\t\tthis.persist = false\n\t\tconst parentEl = document.getElementById(this.parentId) as HTMLGovTooltipElement\n\t\tif (parentEl) {\n\t\t\tparentEl.hide().catch()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={TooltipContentClass.root}\n\t\t\t\trole={\"tooltip\"}\n\t\t\t\thidden={!this.isVisible}\n\t\t\t\taria-hidden={!toBoolAttr(this.isVisible)}\n\t\t\t\tis-visible={this.isVisible}>\n\t\t\t\t<slot></slot>\n\t\t\t\t{this.persist ? (\n\t\t\t\t\t<gov-button\n\t\t\t\t\t\ton-gov-click={this.hideContent.bind(this)}\n\t\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\ttype={\"base\"}\n\t\t\t\t\t\tinverse={this.variant === TooltipVariant.SECONDARY}>\n\t\t\t\t\t\t<gov-icon slot={\"left-icon\"} name={\"x-lg\"} type={\"basic\"}></gov-icon>\n\t\t\t\t\t</gov-button>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"uNAAA,MAAMA,EAAuB,i7I,MCQhBC,EAAiB,M,sCAOmBC,EAAeC,Q,UAIrBC,EAAYC,G,aAI1B,M,eAIkC,M,cAIT,I,CAGrD,cAAAC,CAAeC,GACdC,aAAaC,KAAKC,SAClB,GAAIH,IAAa,MAAO,CACvBE,KAAKC,QAAUC,YAAW,KACzBF,KAAKG,KAAKC,MAAMC,WAAa,QAAQ,GACnC,I,KACG,CACNL,KAAKG,KAAKC,MAAMC,WAAa,S,EAI/B,WAAAC,GACCN,KAAKO,UAAY,MACjBP,KAAKQ,QAAU,MACf,MAAMC,EAAWC,SAASC,eAAeX,KAAKY,UAC9C,GAAIH,EAAU,CACbA,EAASI,OAAOC,O,EAIlB,MAAAC,GACC,OACCC,EAACC,EAAI,CACJC,MAAOC,EAAoBC,KAC3BC,KAAM,UACNC,QAAStB,KAAKO,UAAS,eACTgB,EAAWvB,KAAKO,WAAU,aAC5BP,KAAKO,WACjBS,EAAA,aACChB,KAAKQ,QACLQ,EAAA,6BACehB,KAAKM,YAAYkB,KAAKxB,MACpCyB,QAASzB,KAAKyB,QACdC,KAAM1B,KAAK0B,KACXC,KAAM,OACNC,QAAS5B,KAAKyB,UAAYhC,EAAeoC,WACzCb,EAAA,YAAUc,KAAM,YAAaC,KAAM,OAAQJ,KAAM,WAE/C,K"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{S as o}from"./p-55500e5a.js";import{p as t}from"./p-03990da5.js";import{V as r}from"./p-ff7365ae.js";import{F as s}from"./p-6278531b.js";import{F as e}from"./p-9dab01be.js";import{F as i}from"./p-3464136c.js";const n=t(o,["_XS","_S","_M","_L"]);const a={root:"gov-form-checkbox",check:"gov-form-checkbox__check",label:"gov-form-checkbox__label"};t(o,["_M","_L","_XL"]);const c={root:"gov-form-control",holder:"gov-form-control__holder",bottom:"gov-form-control__bottom"};const _=t(o,["_S","_M","_L","_XL"]);const m=t(r,["PRIMARY","SECONDARY"]);var l;(function(o){o["COLOR"]="color";o["DATE"]="date";o["DATETIME_LOCAL"]="datetime-local";o["EMAIL"]="email";o["MONTH"]="month";o["NUMBER"]="number";o["PASSWORD"]="password";o["SEARCH"]="search";o["TEL"]="tel";o["TEXT"]="text";o["TIME"]="time";o["URL"]="url";o["WEEK"]="week"})(l||(l={}));var f;(function(o){o["RESET"]="reset"})(f||(f={}));const h={root:"gov-form-input"};const g=t(o,["_M","_L","_XL"]);const p=t(r,["PRIMARY","SECONDARY"]);const u={root:"gov-form-select",icon:"gov-form-select__icon"};const v=t(o,["_M","_L","_XL"]);const d=t(r,["PRIMARY","SECONDARY"]);const b={root:"gov-form-multi-select",wrap:"gov-form-multi-select__wrap",list:"gov-form-multi-select__list",item:"gov-form-multi-select__item"};const L=t(o,["_XS","_S","_M","_L"]);const S={root:"gov-form-switch",holder:"gov-form-switch__holder",input:"gov-form-switch__input",indicator:"gov-form-switch__indicator"};const A=t(o,["_XS","_S","_M","_L"]);const M={root:"gov-form-radio",holder:"gov-form-radio__holder",input:"gov-form-radio__input",indicator:"gov-form-radio__indicator",label:"gov-form-radio__label"};const R=o=>({get govHost(){return o},passAttrToControl(o,t){if(this.control){this.control.setAttribute(o,t)}},passAttrToLabel(o,t){if(this.label){this.label.setAttribute(o,t)}},get hasGroupChildren(){if(this.control){return this.control.querySelectorAll("gov-form-group > *").length>1}return false},get control(){if(this.govHost.name===c.root){return this.govHost.hostElement}return this.govHost.getParent(c.root)},get label(){const o=this.govHost.hostElement.querySelector(`.${i.root}`);if(o){return o}if(this.control){return this.control.querySelector(`.${i.root}`)}return null},get mainElementsInControl(){const o=[u.root,h.root,S.root,a.root,M.root,b.root,e.root];if(this.control){const t=o.map((o=>`${o}:first-of-type`)).join(", ");return Array.from(this.control.querySelectorAll(t))}return[]},get messageElements(){if(this.control){return Array.from(this.control.querySelectorAll(s.root))}return[]}});export{a as F,n as a,c as b,b as c,d,v as e,M as f,R as g,A as h,S as i,L as j,h as k,m as l,_ as m,u as n,p as o,g as p};
|
|
2
|
+
//# sourceMappingURL=p-0e5fa8bf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["FormCheckboxSizes","pick","Sizes","FormCheckboxClass","root","check","label","FormControlClass","holder","bottom","FormInputSizes","FormInputVariants","Variants","InputTypes","Type","FormInputClass","FormSelectSizes","FormSelectVariants","FormSelectClass","icon","FormMultiselectSizes","FormMultiselectVariants","FormMultiSelectClass","wrap","list","item","FormSwitchSizes","FormSwitchClass","input","indicator","FormRadioSizes","FormRadioClass","govForm","govHost","passAttrToControl","name","value","this","control","setAttribute","passAttrToLabel","hasGroupChildren","querySelectorAll","length","hostElement","getParent","innerLabel","querySelector","FormLabelClass","mainElementsInControl","formElements","FormAutocompleteClass","elements","map","el","join","Array","from","messageElements","FormMessageClass"],"sources":["../../../packages/core/src/components/gov-form/checkbox/constants.ts","../../../packages/core/src/components/gov-form/control/constants.ts","../../../packages/core/src/components/gov-form/input/constants.ts","../../../packages/core/src/components/gov-form/select/constants.ts","../../../packages/core/src/components/gov-form/multiselect/constants.ts","../../../packages/core/src/components/gov-form/switch/constants.ts","../../../packages/core/src/components/gov-form/radio/constants.ts","../../../packages/core/src/helpers/Dom/form.ts"],"sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormCheckboxSizes = pick(Sizes, ['_XS', '_S', '_M', '_L'])\nexport type FormCheckboxSizesType = `${ValueOf<typeof FormCheckboxSizes>}`\n\nexport const FormCheckboxClass = {\n\troot: 'gov-form-checkbox',\n\tcheck: 'gov-form-checkbox__check',\n\tlabel: 'gov-form-checkbox__label',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormControlSizes = pick(Sizes, ['_M', '_L', '_XL'])\nexport type FormControlSizesType = `${ValueOf<typeof FormControlSizes>}`\n\nexport const FormControlClass = {\n\troot: 'gov-form-control',\n\tholder: 'gov-form-control__holder',\n\tbottom: 'gov-form-control__bottom',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { Variants } from '../../../core/constants/variants'\nimport { ValueOf } from '../../../types/interfaces'\nimport { pick } from '../../../utils/utils'\n\nexport const FormInputSizes = pick(Sizes, ['_S', '_M', '_L', '_XL'])\nexport type FormInputSizesType = `${ValueOf<typeof FormInputSizes>}`\n\nexport const FormInputVariants = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type FormInputVariantType = `${ValueOf<typeof FormInputVariants>}`\n\nexport enum InputTypes {\n\tCOLOR = 'color',\n\tDATE = 'date',\n\tDATETIME_LOCAL = 'datetime-local',\n\tEMAIL = 'email',\n\tMONTH = 'month',\n\tNUMBER = 'number',\n\tPASSWORD = 'password',\n\tSEARCH = 'search',\n\tTEL = 'tel',\n\tTEXT = 'text',\n\tTIME = 'time',\n\tURL = 'url',\n\tWEEK = 'week',\n}\n\nexport type InputType = `${ValueOf<typeof InputTypes>}`\n\nexport enum Type {\n\tRESET = 'reset',\n}\n\nexport type TypesType = `${ValueOf<typeof Type>}`\n\nexport const FormInputClass = {\n\troot: 'gov-form-input',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { Variants } from '../../../core/constants/variants'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormSelectSizes = pick(Sizes, ['_M', '_L', '_XL'])\nexport type FormSelectSizesType = `${ValueOf<typeof FormSelectSizes>}`\n\nexport const FormSelectVariants = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type FormSelectVariantType = `${ValueOf<typeof FormSelectVariants>}`\n\nexport const FormSelectClass = {\n\troot: 'gov-form-select',\n\ticon: 'gov-form-select__icon',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { Variants } from '../../../core/constants/variants'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormMultiselectSizes = pick(Sizes, ['_M', '_L', '_XL'])\nexport type FormMultiselectSizesType = `${ValueOf<typeof FormMultiselectSizes>}`\n\nexport const FormMultiselectVariants = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type FormMultiselectVariantType = `${ValueOf<typeof FormMultiselectVariants>}`\n\nexport const FormMultiSelectClass = {\n\troot: 'gov-form-multi-select',\n\twrap: 'gov-form-multi-select__wrap',\n\tlist: 'gov-form-multi-select__list',\n\titem: 'gov-form-multi-select__item',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { ValueOf } from '../../../types/interfaces'\nimport { pick } from '../../../utils/utils'\n\nexport const FormSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L'])\nexport type FormSwitchSizesType = `${ValueOf<typeof FormSwitchSizes>}`\n\nexport const FormSwitchClass = {\n\troot: 'gov-form-switch',\n\tholder: 'gov-form-switch__holder',\n\tinput: 'gov-form-switch__input',\n\tindicator: 'gov-form-switch__indicator',\n}\n","import { Sizes } from '../../../core/constants/sizes'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormRadioSizes = pick(Sizes, ['_XS', '_S', '_M', '_L'])\nexport type FormRadioSizesType = `${ValueOf<typeof FormRadioSizes>}`\n\nexport const FormRadioClass = {\n\troot: 'gov-form-radio',\n\tholder: 'gov-form-radio__holder',\n\tinput: 'gov-form-radio__input',\n\tindicator: 'gov-form-radio__indicator',\n\tlabel: 'gov-form-radio__label',\n}\n","import { GovHost } from './template.types'\nimport { GovForm } from './form.types'\nimport { FormControlClass } from '../../components/gov-form/control/constants'\nimport { FormInputClass } from '../../components/gov-form/input/constants'\nimport { FormSelectClass } from '../../components/gov-form/select/constants'\nimport { FormMultiSelectClass } from '../../components/gov-form/multiselect/constants'\nimport { FormSwitchClass } from '../../components/gov-form/switch/constants'\nimport { FormCheckboxClass } from '../../components/gov-form/checkbox/constants'\nimport { FormRadioClass } from '../../components/gov-form/radio/constants'\nimport { FormMessageClass } from '../../components/gov-form/message/constants'\nimport { FormAutocompleteClass } from '../../components/gov-form/autocomplete/constants'\nimport { Nullable } from '../../types/interfaces'\nimport { FormLabelClass } from \"../../components/gov-form/label/constants\"\n\nexport const govForm = (govHost: GovHost): GovForm => {\n\treturn {\n\t\tget govHost(): GovHost {\n\t\t\treturn govHost\n\t\t},\n\t\tpassAttrToControl(name: string, value: string): void {\n\t\t\tif (this.control) {\n\t\t\t\tthis.control.setAttribute(name, value)\n\t\t\t}\n\t\t},\n\t\tpassAttrToLabel(name: string, value: string): void {\n\t\t\tif (this.label) {\n\t\t\t\tthis.label.setAttribute(name, value)\n\t\t\t}\n\t\t},\n\t\tget hasGroupChildren(): boolean {\n\t\t\tif (this.control) {\n\t\t\t\treturn this.control.querySelectorAll('gov-form-group > *').length > 1\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\t\tget control(): Nullable<HTMLGovFormControlElement> {\n\t\t\tif (this.govHost.name === FormControlClass.root) {\n\t\t\t\treturn this.govHost.hostElement\n\t\t\t}\n\t\t\treturn this.govHost.getParent(FormControlClass.root)\n\t\t},\n\t\tget label(): Nullable<HTMLGovFormLabelElement> {\n\t\t\tconst innerLabel = this.govHost.hostElement.querySelector(`.${FormLabelClass.root}`)\n\t\t\tif(innerLabel) {\n\t\t\t\treturn innerLabel\n\t\t\t}\n\t\t\tif (this.control) {\n\t\t\t\treturn this.control.querySelector(`.${FormLabelClass.root}`)\n\t\t\t}\n\t\t\treturn null\n\t\t},\n\t\tget mainElementsInControl(): Element[] {\n\t\t\tconst formElements = [\n\t\t\t\tFormSelectClass.root,\n\t\t\t\tFormInputClass.root,\n\t\t\t\tFormSwitchClass.root,\n\t\t\t\tFormCheckboxClass.root,\n\t\t\t\tFormRadioClass.root,\n\t\t\t\tFormMultiSelectClass.root,\n\t\t\t\tFormAutocompleteClass.root,\n\t\t\t]\n\t\t\tif (this.control) {\n\t\t\t\tconst elements = formElements.map(el => `${el}:first-of-type`).join(', ')\n\t\t\t\treturn Array.from(this.control.querySelectorAll(elements))\n\t\t\t}\n\t\t\treturn []\n\t\t},\n\t\tget messageElements(): HTMLGovFormMessageElement[] {\n\t\t\tif (this.control) {\n\t\t\t\treturn Array.from(this.control.querySelectorAll(FormMessageClass.root))\n\t\t\t}\n\t\t\treturn []\n\t\t},\n\t}\n}\n"],"mappings":"8NAIaA,EAAoBC,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,O,MAGpDC,EAAoB,CAChCC,KAAM,oBACNC,MAAO,2BACPC,MAAO,4BCNwBL,EAAKC,EAAO,CAAC,KAAM,KAAM,Q,MAG5CK,EAAmB,CAC/BH,KAAM,mBACNI,OAAQ,2BACRC,OAAQ,4B,MCLIC,EAAiBT,EAAKC,EAAO,CAAC,KAAM,KAAM,KAAM,Q,MAGhDS,EAAoBV,EAAKW,EAAU,CAAC,UAAW,cAG5D,IAAYC,GAAZ,SAAYA,GACXA,EAAA,iBACAA,EAAA,eACAA,EAAA,mCACAA,EAAA,iBACAA,EAAA,iBACAA,EAAA,mBACAA,EAAA,uBACAA,EAAA,mBACAA,EAAA,aACAA,EAAA,eACAA,EAAA,eACAA,EAAA,aACAA,EAAA,cACA,EAdD,CAAYA,MAAU,KAkBtB,IAAYC,GAAZ,SAAYA,GACXA,EAAA,gBACA,EAFD,CAAYA,MAAI,K,MAMHC,EAAiB,CAC7BX,KAAM,kB,MC/BMY,EAAkBf,EAAKC,EAAO,CAAC,KAAM,KAAM,Q,MAG3Ce,EAAqBhB,EAAKW,EAAU,CAAC,UAAW,c,MAGhDM,EAAkB,CAC9Bd,KAAM,kBACNe,KAAM,yB,MCRMC,EAAuBnB,EAAKC,EAAO,CAAC,KAAM,KAAM,Q,MAGhDmB,EAA0BpB,EAAKW,EAAU,CAAC,UAAW,c,MAGrDU,EAAuB,CACnClB,KAAM,wBACNmB,KAAM,8BACNC,KAAM,8BACNC,KAAM,+B,MCXMC,EAAkBzB,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,O,MAGlDyB,EAAkB,CAC9BvB,KAAM,kBACNI,OAAQ,0BACRoB,MAAO,yBACPC,UAAW,8B,MCPCC,EAAiB7B,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,O,MAGjD6B,EAAiB,CAC7B3B,KAAM,iBACNI,OAAQ,yBACRoB,MAAO,wBACPC,UAAW,4BACXvB,MAAO,yB,MCEK0B,EAAWC,IAChB,CACN,WAAIA,GACH,OAAOA,C,EAER,iBAAAC,CAAkBC,EAAcC,GAC/B,GAAIC,KAAKC,QAAS,CACjBD,KAAKC,QAAQC,aAAaJ,EAAMC,E,GAGlC,eAAAI,CAAgBL,EAAcC,GAC7B,GAAIC,KAAK/B,MAAO,CACf+B,KAAK/B,MAAMiC,aAAaJ,EAAMC,E,GAGhC,oBAAIK,GACH,GAAIJ,KAAKC,QAAS,CACjB,OAAOD,KAAKC,QAAQI,iBAAiB,sBAAsBC,OAAS,C,CAErE,OAAO,K,EAER,WAAIL,GACH,GAAID,KAAKJ,QAAQE,OAAS5B,EAAiBH,KAAM,CAChD,OAAOiC,KAAKJ,QAAQW,W,CAErB,OAAOP,KAAKJ,QAAQY,UAAUtC,EAAiBH,K,EAEhD,SAAIE,GACH,MAAMwC,EAAaT,KAAKJ,QAAQW,YAAYG,cAAc,IAAIC,EAAe5C,QAC7E,GAAG0C,EAAY,CACd,OAAOA,C,CAER,GAAIT,KAAKC,QAAS,CACjB,OAAOD,KAAKC,QAAQS,cAAc,IAAIC,EAAe5C,O,CAEtD,OAAO,I,EAER,yBAAI6C,GACH,MAAMC,EAAe,CACpBhC,EAAgBd,KAChBW,EAAeX,KACfuB,EAAgBvB,KAChBD,EAAkBC,KAClB2B,EAAe3B,KACfkB,EAAqBlB,KACrB+C,EAAsB/C,MAEvB,GAAIiC,KAAKC,QAAS,CACjB,MAAMc,EAAWF,EAAaG,KAAIC,GAAM,GAAGA,oBAAoBC,KAAK,MACpE,OAAOC,MAAMC,KAAKpB,KAAKC,QAAQI,iBAAiBU,G,CAEjD,MAAO,E,EAER,mBAAIM,GACH,GAAIrB,KAAKC,QAAS,CACjB,OAAOkB,MAAMC,KAAKpB,KAAKC,QAAQI,iBAAiBiB,EAAiBvD,M,CAElE,MAAO,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as i,h as t,a as e,g as d}from"./p-5bc604a3.js";import{a as g}from"./p-ffb7495c.js";import{g as s}from"./p-28e59384.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-grid-item{border:0 solid transparent;-o-border-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\'%3E%3C/svg%3E");border-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\'%3E%3C/svg%3E")}.gov-grid-item[size="1/12"]{width:8.3333333333%}.gov-grid-item[size="2/12"]{width:16.6666666667%}.gov-grid-item[size="3/12"]{width:25%}.gov-grid-item[size="4/12"]{width:33.3333333333%}.gov-grid-item[size="5/12"]{width:41.6666666667%}.gov-grid-item[size="6/12"]{width:50%}.gov-grid-item[size="7/12"]{width:58.3333333333%}.gov-grid-item[size="8/12"]{width:66.6666666667%}.gov-grid-item[size="9/12"]{width:75%}.gov-grid-item[size="10/12"]{width:83.3333333333%}.gov-grid-item[size="11/12"]{width:91.6666666667%}.gov-grid-item[size="12/12"]{width:100%}@media (min-width: 30em){.gov-grid-item[size-sm="1/12"]{width:8.3333333333%}.gov-grid-item[size-sm="2/12"]{width:16.6666666667%}.gov-grid-item[size-sm="3/12"]{width:25%}.gov-grid-item[size-sm="4/12"]{width:33.3333333333%}.gov-grid-item[size-sm="5/12"]{width:41.6666666667%}.gov-grid-item[size-sm="6/12"]{width:50%}.gov-grid-item[size-sm="7/12"]{width:58.3333333333%}.gov-grid-item[size-sm="8/12"]{width:66.6666666667%}.gov-grid-item[size-sm="9/12"]{width:75%}.gov-grid-item[size-sm="10/12"]{width:83.3333333333%}.gov-grid-item[size-sm="11/12"]{width:91.6666666667%}.gov-grid-item[size-sm="12/12"]{width:100%}}@media (min-width: 48em){.gov-grid-item[size-md="1/12"]{width:8.3333333333%}.gov-grid-item[size-md="2/12"]{width:16.6666666667%}.gov-grid-item[size-md="3/12"]{width:25%}.gov-grid-item[size-md="4/12"]{width:33.3333333333%}.gov-grid-item[size-md="5/12"]{width:41.6666666667%}.gov-grid-item[size-md="6/12"]{width:50%}.gov-grid-item[size-md="7/12"]{width:58.3333333333%}.gov-grid-item[size-md="8/12"]{width:66.6666666667%}.gov-grid-item[size-md="9/12"]{width:75%}.gov-grid-item[size-md="10/12"]{width:83.3333333333%}.gov-grid-item[size-md="11/12"]{width:91.6666666667%}.gov-grid-item[size-md="12/12"]{width:100%}}@media (min-width: 64em){.gov-grid-item[size-lg="1/12"]{width:8.3333333333%}.gov-grid-item[size-lg="2/12"]{width:16.6666666667%}.gov-grid-item[size-lg="3/12"]{width:25%}.gov-grid-item[size-lg="4/12"]{width:33.3333333333%}.gov-grid-item[size-lg="5/12"]{width:41.6666666667%}.gov-grid-item[size-lg="6/12"]{width:50%}.gov-grid-item[size-lg="7/12"]{width:58.3333333333%}.gov-grid-item[size-lg="8/12"]{width:66.6666666667%}.gov-grid-item[size-lg="9/12"]{width:75%}.gov-grid-item[size-lg="10/12"]{width:83.3333333333%}.gov-grid-item[size-lg="11/12"]{width:91.6666666667%}.gov-grid-item[size-lg="12/12"]{width:100%}}@media (min-width: 75em){.gov-grid-item[size-xl="1/12"]{width:8.3333333333%}.gov-grid-item[size-xl="2/12"]{width:16.6666666667%}.gov-grid-item[size-xl="3/12"]{width:25%}.gov-grid-item[size-xl="4/12"]{width:33.3333333333%}.gov-grid-item[size-xl="5/12"]{width:41.6666666667%}.gov-grid-item[size-xl="6/12"]{width:50%}.gov-grid-item[size-xl="7/12"]{width:58.3333333333%}.gov-grid-item[size-xl="8/12"]{width:66.6666666667%}.gov-grid-item[size-xl="9/12"]{width:75%}.gov-grid-item[size-xl="10/12"]{width:83.3333333333%}.gov-grid-item[size-xl="11/12"]{width:91.6666666667%}.gov-grid-item[size-xl="12/12"]{width:100%}}';const o=class{constructor(t){i(this,t);this.size="12/12";this.sizeSm=undefined;this.sizeMd=undefined;this.sizeLg=undefined;this.sizeXl=undefined;this.h=s(this.host)}render(){return t(e,{class:this.h.classes(g.root),role:"listitem",size:this.size,"size-sm":this.sizeSm,"size-md":this.sizeMd,"size-lg":this.sizeLg,"size-xl":this.sizeXl},t("slot",null))}get host(){return d(this)}};o.style=m;export{o as gov_grid_item};
|
|
2
|
+
//# sourceMappingURL=p-1116fec6.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["govGridItemCss","GovGridItem","constructor","hostRef","this","h","govHost","host","render","Host","class","classes","GridItemClass","root","role","size","sizeSm","sizeMd","sizeLg","sizeXl"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid-item.scss?tag=gov-grid-item","../../../packages/core/src/components/gov-grid/gov-grid-item.tsx"],"sourcesContent":["/*\n * Grid Cell\n */\n\n$class: \".gov-grid-item\";\n\n#{$class} {\n\t@include generateGridSize();\n\tborder: 0 solid transparent;\n\n\t// hide the border in MS high contrast mode\n\tborder-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3C/svg%3E\");\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridItemClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid-item',\n\tstyleUrl: 'gov-grid-item.scss',\n})\nexport class GovGridItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovGridItemElement\n\t/**\n\t * Cell size as a fraction of 1/12 of the grid size\n\t */\n\t@Prop() readonly size: string = '12/12'\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-sm' }) readonly sizeSm: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-md' }) readonly sizeMd: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-lg' }) readonly sizeLg: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-xl' }) readonly sizeXl: string\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(GridItemClass.root)}\n\t\t\t\trole=\"listitem\"\n\t\t\t\tsize={this.size}\n\t\t\t\tsize-sm={this.sizeSm}\n\t\t\t\tsize-md={this.sizeMd}\n\t\t\t\tsize-lg={this.sizeLg}\n\t\t\t\tsize-xl={this.sizeXl}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"iIAAA,MAAMA,EAAiB,6+G,MCSVC,EAAW,MAGvB,WAAAC,CAAAC,G,oBAQgC,Q,wFAP/BC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAyBvB,MAAAC,GACC,OACCH,EAACI,EAAI,CACJC,MAAON,KAAKC,EAAEM,QAAQC,EAAcC,MACpCC,KAAK,WACLC,KAAMX,KAAKW,KAAI,UACNX,KAAKY,OAAM,UACXZ,KAAKa,OAAM,UACXb,KAAKc,OAAM,UACXd,KAAKe,QAEdd,EAAA,a"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,h as a,a as r,g as i}from"./p-5bc604a3.js";import{g as e}from"./p-28e59384.js";const t={root:"gov-cookiebar",holder:"gov-cookiebar__holder",content:"gov-cookiebar__content",actions:"gov-cookiebar__actions",actionsPrimary:"gov-cookiebar__actions-primary",actionsSecondary:"gov-cookiebar__actions-secondary"};const n=".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-cookiebar{z-index:51;position:fixed;right:0;bottom:0;left:0;background-color:var(--gov-cookiebar-bg, var(--gov-color-neutral-white));box-shadow:var(--gov-cookiebar-box-shadow, 0 0.0625rem 2.5rem rgba(var(--gov-color-secondary-800-rgb), 0.45))}.gov-cookiebar__holder{display:block;width:100%;max-width:calc(var(--gov-container-width, 73.75rem) + 2 * var(--gov-container-padding, 2.5rem));margin-right:auto;margin-left:auto;padding-right:var(--gov-container-padding-mobile, 1.25rem);padding-left:var(--gov-container-padding-mobile, 1.25rem);padding-top:1.25rem;padding-bottom:1.25rem}@media (min-width: 48em){.gov-cookiebar__holder{padding-right:var(--gov-container-padding, 2.5rem);padding-left:var(--gov-container-padding, 2.5rem)}}.gov-cookiebar__holder>*{margin-bottom:0}.gov-cookiebar__holder>*+*{margin-top:2rem}.gov-cookiebar__content>*{margin-bottom:0}.gov-cookiebar__content>*+*{margin-top:0.75rem}.gov-cookiebar__content p{color:var(--gov-cookiebar-color, var(--gov-color-secondary-700));letter-spacing:0.0125em}.gov-cookiebar__actions,.gov-cookiebar__actions-primary,.gov-cookiebar__actions-secondary{display:flex;gap:0.625rem;flex-wrap:wrap;justify-content:space-between}@media (min-width: 48em){.gov-cookiebar__holder{padding-top:2rem;padding-bottom:2rem}.gov-cookiebar__actions,.gov-cookiebar__actions-primary,.gov-cookiebar__actions-secondary{gap:1rem}}";const c=class{constructor(a){o(this,a);this.h=e(this.host)}render(){return a(r,{class:this.h.classes(t.root)},a("div",{class:t.holder},a("div",{class:t.content},a("slot",null)),(this.h.hasSlot("actions-primary")||this.h.hasSlot("actions-secondary"))&&a("div",{class:t.actions},this.h.hasSlot("actions-primary")&&a("div",{class:t.actionsPrimary},a("slot",{name:"actions-primary"})),this.h.hasSlot("actions-secondary")&&a("div",{class:t.actionsSecondary},a("slot",{name:"actions-secondary"})))))}get host(){return i(this)}};c.style=n;export{c as gov_cookiebar};
|
|
2
|
+
//# sourceMappingURL=p-141d9af4.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CookiebarClass","root","holder","content","actions","actionsPrimary","actionsSecondary","govCookiebarCss","GovCookiebar","constructor","hostRef","this","h","govHost","host","render","Host","class","classes","hasSlot","name"],"sources":["../../../packages/core/src/components/gov-cookiebar/constants.tsx","../../../packages/core/src/components/gov-cookiebar/gov-cookiebar.scss?tag=gov-cookiebar","../../../packages/core/src/components/gov-cookiebar/gov-cookiebar.tsx"],"sourcesContent":["export const CookiebarClass = {\n\troot: 'gov-cookiebar',\n\tholder: 'gov-cookiebar__holder',\n\tcontent: 'gov-cookiebar__content',\n\tactions: 'gov-cookiebar__actions',\n\tactionsPrimary: 'gov-cookiebar__actions-primary',\n\tactionsSecondary: 'gov-cookiebar__actions-secondary',\n}\n","/*\n * Cookiebar\n */\n\n$class: \".gov-cookiebar\";\n\n#{$class} {\n\t@include z-index(\"bar\", 1);\n\tposition: fixed;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\tbackground-color: $cookiebar-bg;\n\tbox-shadow: $cookiebar-box-shadow;\n\t&__holder {\n\t\t@include container();\n\t\t@include space(32);\n\t\tpadding-top: rem-calc(20);\n\t\tpadding-bottom: rem-calc(20);\n\t}\n\t&__content {\n\t\t@include space(12);\n\t\tp {\n\t\t\tcolor: $cookiebar-color;\n\t\t\tletter-spacing: em-calc(0.2);\n\t\t}\n\t}\n\t&__actions {\n\t\t&,\n\t\t&-primary,\n\t\t&-secondary {\n\t\t\tdisplay: flex;\n\t\t\tgap: rem-calc(10);\n\t\t\tflex-wrap: wrap;\n\t\t\tjustify-content: space-between;\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: md) {\n\t\t&__holder {\n\t\t\tpadding-top: rem-calc(32);\n\t\t\tpadding-bottom: rem-calc(32);\n\t\t}\n\t\t&__actions {\n\t\t\t&,\n\t\t\t&-primary,\n\t\t\t&-secondary {\n\t\t\t\tgap: rem-calc(16);\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host } from '@stencil/core'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { CookiebarClass } from './constants'\n\n@Component({\n\ttag: 'gov-cookiebar',\n\tstyleUrl: 'gov-cookiebar.scss',\n})\nexport class GovCookiebar {\n\th: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovCookiebarElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(CookiebarClass.root)}>\n\t\t\t\t<div class={CookiebarClass.holder}>\n\t\t\t\t\t<div class={CookiebarClass.content}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{(this.h.hasSlot('actions-primary') || this.h.hasSlot('actions-secondary')) && (\n\t\t\t\t\t\t<div class={CookiebarClass.actions}>\n\t\t\t\t\t\t\t{this.h.hasSlot('actions-primary') && (\n\t\t\t\t\t\t\t\t<div class={CookiebarClass.actionsPrimary}>\n\t\t\t\t\t\t\t\t\t<slot name=\"actions-primary\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t{this.h.hasSlot('actions-secondary') && (\n\t\t\t\t\t\t\t\t<div class={CookiebarClass.actionsSecondary}>\n\t\t\t\t\t\t\t\t\t<slot name=\"actions-secondary\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"6FAAO,MAAMA,EAAiB,CAC7BC,KAAM,gBACNC,OAAQ,wBACRC,QAAS,yBACTC,QAAS,yBACTC,eAAgB,iCAChBC,iBAAkB,oCCNnB,MAAMC,EAAkB,orD,MCSXC,EAAY,MAGxB,WAAAC,CAAAC,G,UACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAKvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAACC,MAAON,KAAKC,EAAEM,QAAQlB,EAAeC,OAC1CW,EAAA,OAAKK,MAAOjB,EAAeE,QAC1BU,EAAA,OAAKK,MAAOjB,EAAeG,SAC1BS,EAAA,eAGCD,KAAKC,EAAEO,QAAQ,oBAAsBR,KAAKC,EAAEO,QAAQ,uBACrDP,EAAA,OAAKK,MAAOjB,EAAeI,SACzBO,KAAKC,EAAEO,QAAQ,oBACfP,EAAA,OAAKK,MAAOjB,EAAeK,gBAC1BO,EAAA,QAAMQ,KAAK,qBAIZT,KAAKC,EAAEO,QAAQ,sBACfP,EAAA,OAAKK,MAAOjB,EAAeM,kBAC1BM,EAAA,QAAMQ,KAAK,yB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{p as t}from"./p-03990da5.js";import{V as s}from"./p-ff7365ae.js";var o;(function(t){t["LEFT"]="left"})(o||(o={}));const a=t(s,["PRIMARY","SECONDARY"]);const r={root:"gov-statsbar",section:"gov-statsbar__section"};const e={root:"gov-statsbar-item",icon:"gov-statsbar-item__icon",number:"gov-statsbar-item__number",text:"gov-statsbar-item__text"};export{a as S,e as a,r as b,o as c};
|
|
2
|
+
//# sourceMappingURL=p-17ebfe85.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StatsBarIconPosition","StatsBarVariants","pick","Variants","StatsBarClass","root","section","StatsBarItemClass","icon","number","text"],"sources":["../../../packages/core/src/components/gov-statsbar/constants.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils'\nimport { Variants } from '../../core/constants/variants'\n\nexport enum StatsBarIconPosition {\n\tLEFT = 'left',\n}\nexport type StatsBarIconPositionType = `${ValueOf<typeof StatsBarIconPosition>}`\n\nexport const StatsBarVariants = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type StatsBarVariantType = `${ValueOf<typeof StatsBarVariants>}`\n\nexport const StatsBarClass = {\n\troot: 'gov-statsbar',\n\tsection: 'gov-statsbar__section',\n}\n\nexport const StatsBarItemClass = {\n\troot: 'gov-statsbar-item',\n\ticon: 'gov-statsbar-item__icon',\n\tnumber: 'gov-statsbar-item__number',\n\ttext: 'gov-statsbar-item__text',\n}\n"],"mappings":"4EAIYA,GAAZ,SAAYA,GACXA,EAAA,cACA,EAFD,CAAYA,MAAoB,K,MAKnBC,EAAmBC,EAAKC,EAAU,CAAC,UAAW,c,MAG9CC,EAAgB,CAC5BC,KAAM,eACNC,QAAS,yB,MAGGC,EAAoB,CAChCF,KAAM,oBACNG,KAAM,0BACNC,OAAQ,4BACRC,KAAM,kC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Fragment","_","children"],"sources":["../../../packages/core/src/helpers/Fragment.tsx"],"sourcesContent":["export default (_, children) => [...children]\n"],"mappings":"AAAA,MAAAA,EAAe,CAACC,EAAGC,IAAa,IAAIA,U"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as a,a as e,g as s}from"./p-5bc604a3.js";import{N as i}from"./p-a6d14a47.js";import{v as o}from"./p-7724b535.js";import{c as n}from"./p-003e6cca.js";import{d as r}from"./p-03990da5.js";import"./p-7f2c9830.js";import"./p-24636c53.js";const p=".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-nav{position:relative;display:block;width:100%;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);background:var(--gov-nav-bg, var(--gov-color-primary));font-weight:bold;letter-spacing:0.0125em;text-transform:uppercase}@media (min-width: 48em){.gov-nav{text-align:center}.gov-nav__nav{display:flex;justify-content:space-between}}";const c=class{constructor(a){t(this,a);this.wcagLabel=undefined;this.wcagLabelledBy=undefined}async componentDidRender(){if(n()){await r(500);await this.validateWcag()}}render(){return a(e,{class:i.root},a("nav",{class:i.nav,role:"list","arial-label":this.wcagLabel,"arial-labelledby":this.wcagLabelledBy},a("slot",null)))}async validateWcag(){o(this.wcagLabel,this.wcagLabelledBy,i.root)}get host(){return s(this)}};c.style=p;export{c as gov_nav};
|
|
2
|
+
//# sourceMappingURL=p-1fee1753.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["govNavCss","GovNav","componentDidRender","canValidateWcagOnRender","delay","this","validateWcag","render","h","Host","class","NavClass","root","nav","role","wcagLabel","wcagLabelledBy","validateWcagLabel"],"sources":["../../../packages/core/src/components/gov-nav/gov-nav.scss?tag=gov-nav","../../../packages/core/src/components/gov-nav/gov-nav.tsx"],"sourcesContent":["/*\n * Nav\n */\n\n$class: \".gov-nav\";\n\n#{$class} {\n\t@include base();\n\t@include typography($font-size-s);\n\tbackground: $nav-bg;\n\tfont-weight: bold;\n\tletter-spacing: 0.0125em;\n\ttext-transform: uppercase;\n\n\t// MQ\n\t@include mq($from: md) {\n\t\ttext-align: center;\n\t\t&__nav {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: space-between;\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Method, Prop } from '@stencil/core'\nimport { NavClass } from './constants'\nimport { validateWcagLabel } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\n\n@Component({\n\ttag: 'gov-nav',\n\tstyleUrl: 'gov-nav.scss',\n})\nexport class GovNav {\n\t@Element() readonly host: HTMLGovNavElement\n\n\t/**\n\t * Adds accessible label for the accordion that is only shown for screen readers.\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\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={NavClass.root}>\n\t\t\t\t<nav class={NavClass.nav} role={'list'} arial-label={this.wcagLabel} arial-labelledby={this.wcagLabelledBy}>\n\t\t\t\t\t<slot />\n\t\t\t\t</nav>\n\t\t\t</Host>\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\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, NavClass.root)\n\t}\n}\n"],"mappings":"yPAAA,MAAMA,EAAY,8xB,MCULC,EAAM,M,gFAYlB,wBAAMC,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNC,KAAKC,c,EAIb,MAAAC,GACC,OACCC,EAACC,EAAI,CAACC,MAAOC,EAASC,MACrBJ,EAAA,OAAKE,MAAOC,EAASE,IAAKC,KAAM,OAAM,cAAeT,KAAKU,UAAS,mBAAoBV,KAAKW,gBAC3FR,EAAA,c,CAUJ,kBAAMF,GACLW,EAAkBZ,KAAKU,UAAWV,KAAKW,eAAgBL,EAASC,K"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as a,h as i,a as n,g as o}from"./p-5bc604a3.js";import{g as r,s as t}from"./p-28e59384.js";const e={root:"gov-container"};const s=".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-container{display:block;width:100%;max-width:calc(var(--gov-container-width, 73.75rem) + 2 * var(--gov-container-padding, 2.5rem));margin-right:auto;margin-left:auto;padding-right:var(--gov-container-padding-mobile, 1.25rem);padding-left:var(--gov-container-padding-mobile, 1.25rem)}@media (min-width: 48em){.gov-container{padding-right:var(--gov-container-padding, 2.5rem);padding-left:var(--gov-container-padding, 2.5rem)}}";const g=class{constructor(i){a(this,i);this.h=r(this.host)}render(){return i(n,{class:this.h.classes(e.root)},i("slot",null))}async slottedChildren(){return Promise.resolve(t(this.host))}get host(){return o(this)}};g.style=s;export{g as gov_container};
|
|
2
|
+
//# sourceMappingURL=p-22abe742.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ContainerClass","root","govContainerCss","GovContainer","constructor","hostRef","this","h","govHost","host","render","Host","class","classes","slottedChildren","Promise","resolve"],"sources":["../../../packages/core/src/components/gov-container/constants.tsx","../../../packages/core/src/components/gov-container/gov-container.scss?tag=gov-container","../../../packages/core/src/components/gov-container/gov-container.tsx"],"sourcesContent":["export const ContainerClass = {\n\troot: 'gov-container',\n}\n","/*\n * Container\n */\n\n$class: \".gov-container\";\n\n#{$class} {\n\t@include container();\n}\n","import { Component, Element, h, Host, Method } from '@stencil/core'\nimport { govHost, slottedChildren } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { ContainerClass } from './constants'\n\n@Component({\n\ttag: 'gov-container',\n\tstyleUrl: 'gov-container.scss',\n})\nexport class GovContainer {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovContainerElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ContainerClass.root)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns slotted children\n\t *\n\t * @return {Promise<Node[]>}\n\t */\n\t@Method()\n\tasync slottedChildren(): Promise<Node[]> {\n\t\treturn Promise.resolve(slottedChildren(this.host))\n\t}\n}\n"],"mappings":"oGAAO,MAAMA,EAAiB,CAC7BC,KAAM,iBCDP,MAAMC,EAAkB,uwB,MCSXC,EAAY,MAGxB,WAAAC,CAAAC,G,UACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAKvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAACC,MAAON,KAAKC,EAAEM,QAAQb,EAAeC,OAC1CM,EAAA,a,CAWH,qBAAMO,GACL,OAAOC,QAAQC,QAAQF,EAAgBR,KAAKG,M"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function n(){return Math.random().toString(16).slice(-4)}function r(r){return`${r}-${n()}${n()}-${n()}-${n()}-${n()}-${n()}${n()}${n()}`}function t(n){if(typeof n!=="string")return n;return n.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function u(n){if(typeof n!=="string")return n;return n.split(/(\s+)/)}export{r as c,t as r,u as s};
|
|
2
|
+
//# sourceMappingURL=p-24636c53.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["chr4","Math","random","toString","slice","createID","prefix","removeDiacritics","string","normalize","replace","splitByWhitespace","split"],"sources":["../../../packages/core/src/utils/string.utils.ts"],"sourcesContent":["function chr4(): string {\n\treturn Math.random().toString(16).slice(-4)\n}\n\nexport function createID(prefix: string): string {\n\treturn `${prefix}-${chr4()}${chr4()}-${chr4()}-${chr4()}-${chr4()}-${chr4()}${chr4()}${chr4()}`\n}\n\nexport function removeDiacritics(string: any): string | any {\n\tif (typeof string !== 'string') return string\n\treturn string.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '')\n}\n\nexport function splitByWhitespace(string: any): string | any {\n\tif (typeof string !== 'string') return string\n\treturn string.split(/(\\s+)/)\n}\n"],"mappings":"AAAA,SAASA,IACR,OAAOC,KAAKC,SAASC,SAAS,IAAIC,OAAO,EAC1C,C,SAEgBC,EAASC,GACxB,MAAO,GAAGA,KAAUN,MAASA,OAAUA,OAAUA,OAAUA,OAAUA,MAASA,MAASA,KACxF,C,SAEgBO,EAAiBC,GAChC,UAAWA,IAAW,SAAU,OAAOA,EACvC,OAAOA,EAAOC,UAAU,OAAOC,QAAQ,mBAAoB,GAC5D,C,SAEgBC,EAAkBH,GACjC,UAAWA,IAAW,SAAU,OAAOA,EACvC,OAAOA,EAAOI,MAAM,QACrB,Q"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,c as r,h as t,a as e,g as n}from"./p-5bc604a3.js";import{F as a}from"./p-1c1d0bbe.js";import{v as i}from"./p-dcb5fb35.js";import{S as s}from"./p-55500e5a.js";import{V as g}from"./p-ff7365ae.js";import{p as c,d as v}from"./p-03990da5.js";import{g as l,p as u,t as p}from"./p-28e59384.js";import{c as h,v as d}from"./p-7724b535.js";import{c as b}from"./p-003e6cca.js";import{c as m}from"./p-24636c53.js";import"./p-7f2c9830.js";const _=c(s,["_S","_M"]);const y=c(g,["PRIMARY","SECONDARY"]);var f;(function(o){o["BUTTON"]="button";o["SELECT"]="select"})(f||(f={}));const w={root:"gov-pagination",list:"gov-pagination__list",item:"gov-pagination__item",itemArrow:"gov-pagination__item--arrow",itemMore:"gov-pagination__item--more",itemSelect:"gov-pagination__item--select",inner:"gov-pagination__inner",arrow:"gov-pagination__arrow"};function k(o,r=1,t=10,e=10){const n=Math.ceil(o/t);if(r<1){r=1}else if(r>n){r=n}let a,i;if(n<=e){a=1;i=n}else{const o=Math.floor(e/2);const t=Math.ceil(e/2)-1;if(r<=o){a=1;i=e}else if(r+t>=n){a=n-e+1;i=n}else{a=r-o;i=r+t}}const s=(r-1)*t;const g=Math.min(s+t-1,o-1);const c=Array.from(Array(i+1-a).keys()).map((o=>a+o));return{totalItems:o,currentPage:r,pageSize:t,totalPages:n,startPage:a,endPage:i,startIndex:s,endIndex:g,pages:c}}const x=(o,r)=>{if(Number.isInteger(o)&&Number.isInteger(r)){return[...Array(r+1).keys()].slice(o)}return[]};const z=".gov-pagination__list{margin:0;padding:0}.gov-pagination__list .gov-pagination__item{margin:0;padding:0;background:none}.gov-pagination__list .gov-pagination__item::before{display:none}.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-pagination{position:relative;display:block;width:100%}.gov-pagination__list{display:flex;align-items:center;flex-wrap:wrap;font-weight:bold;text-align:center}.gov-pagination__list .gov-pagination__item{display:flex;justify-content:center;align-items:center;margin:0;padding:0.125rem;border-radius:var(--gov-border-radius, 0.1875rem);overflow:hidden}.gov-pagination__list .gov-pagination__item--arrow{display:flex}.gov-pagination__list .gov-pagination__item--select{z-index:1;display:flex;overflow:visible;padding:0rem 1rem}.gov-pagination__arrow{margin:0}.gov-pagination__item--more .gov-form-select select{border:none !important;padding-right:0.75rem !important}.gov-pagination__item--more .gov-form-select .gov-icon{display:none}.gov-pagination__inner{display:flex;justify-content:center;align-items:center;align-self:stretch;width:100%;text-decoration:none}.gov-pagination__inner[wcag-current=true][type=solid][variant=primary] .element{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))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=primary] .element{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))}.gov-pagination__inner[wcag-current=true][type=base][variant=primary] .element{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))}.gov-pagination__inner[wcag-current=true][type=link][variant=primary] .element{background-color:var(--gov-button-primary-link-hover-bg, transparent);color:var(--gov-button-primary-link-hover-color, var(--gov-color-primary))}.gov-pagination__inner[wcag-current=true][type=solid][variant=secondary] .element{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))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=secondary] .element{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))}.gov-pagination__inner[wcag-current=true][type=base][variant=secondary] .element{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))}.gov-pagination__inner[wcag-current=true][type=link][variant=secondary] .element{background-color:var(--gov-button-secondary-link-hover-bg, transparent);color:var(--gov-button-secondary-link-hover-color, var(--gov-color-secondary))}.gov-pagination__inner[wcag-current=true][type=solid][variant=error] .element{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))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=error] .element{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))}.gov-pagination__inner[wcag-current=true][type=base][variant=error] .element{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))}.gov-pagination__inner[wcag-current=true][type=link][variant=error] .element{background-color:var(--gov-button-error-link-hover-bg, transparent);color:var(--gov-button-error-link-hover-color, var(--gov-color-error))}.gov-pagination__inner[wcag-current=true][type=solid][variant=success] .element{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))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=success] .element{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))}.gov-pagination__inner[wcag-current=true][type=base][variant=success] .element{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))}.gov-pagination__inner[wcag-current=true][type=link][variant=success] .element{background-color:var(--gov-button-success-link-hover-bg, transparent);color:var(--gov-button-success-link-hover-color, var(--gov-color-success-500))}.gov-pagination__inner[wcag-current=true][type=solid][variant=warning] .element{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))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=warning] .element{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))}.gov-pagination__inner[wcag-current=true][type=base][variant=warning] .element{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))}.gov-pagination__inner[wcag-current=true][type=link][variant=warning] .element{background-color:var(--gov-button-warning-link-hover-bg, transparent);color:var(--gov-button-warning-link-hover-color, var(--gov-color-warning-500))}.gov-pagination[size=s] .gov-pagination__inner{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);font-weight:inherit}.gov-pagination[size=s] .gov-pagination__inner .element{min-width:var(--gov-pagination-s-button-size, 2rem)}.gov-pagination[size=m] .gov-pagination__inner{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);font-weight:inherit}.gov-pagination[size=m] .gov-pagination__inner .element{min-width:var(--gov-pagination-m-button-size, 2.5rem)}";const S=class{constructor(t){o(this,t);this.govPage=r(this,"gov-page",7);this.type="button";this.current=1;this.total=0;this.inverse=undefined;this.size="m";this.variant="primary";this.pageSize=10;this.maxPages=5;this.link=undefined;this.wcagLabel=undefined;this.wcagLabelledBy=undefined;this.wcagSelectLabel="Vybrat stranu";this.wcagPageLabel="Strana";this.pagination=undefined;this.h=l(this.host);this.pageSelectId=m("GovPageSelect")}validateType(o){i(f,o,w.root)}validateSize(o){i(_,o,w.root)}validateVariant(o){i(y,o,w.root)}recalculate(){this.recalculatePagination(this.current)}componentWillLoad(){this.recalculatePagination(this.current);this.validateSize(this.size);this.validateVariant(this.variant)}async componentDidRender(){if(b()){await v(500);await this.validateWcag()}}recalculatePagination(o){this.pagination=k(this.total,o,this.pageSize,this.maxPages)}isActivePageClass(o,r){if(this.pagination.currentPage===r){return o+" is-active"}else{return o}}prepareLinkUrl(o){if(this.link){return String(this.link).replace("{PAGE}",String(o))}return undefined}resetSelectValue(){if(this.spreadSelectRef){this.spreadSelectRef.getRef().then((o=>{o.value="..."}))}}render(){const o=(o,r)=>{const e=o===-1;const n=p(this.pagination.currentPage===o?true:undefined);return t("gov-button",{href:this.prepareLinkUrl(o),variant:this.variant,size:this.size,type:"base",disabled:e,"on-gov-click":r=>this.onClickHandler(r,o),"wcag-label":o>-1?this.wcagPageLabel+" "+o:undefined,"wcag-current":n,class:w.inner},r)};return t(e,{class:this.h.classes(w.root),type:this.type,variant:this.variant,size:this.size},t("nav",{"aria-label":this.wcagLabel,"aria-labelledby":this.wcagLabelledBy},t("ul",{class:w.list},t("li",{class:u([w.item,w.itemArrow])},o(this.pagination.currentPage>1?1:-1,t("gov-icon",{class:w.arrow,name:"chevron-double-left"}))),t("li",{class:u([w.item,w.itemArrow])},o(this.pagination.startPage<this.pagination.currentPage?this.pagination.currentPage-1:-1,t("gov-icon",{class:w.arrow,name:"chevron-left"}))),this.type=="select"?t("li",{class:u([w.item,w.itemSelect])},t("span",{class:w.inner},t("span",{id:this.pageSelectId,hidden:true},this.wcagSelectLabel),t("gov-form-select",{size:"m",variant:this.variant,"wcag-labelled-by":this.pageSelectId,"on-gov-change":this.onSelectHandler.bind(this)},x(1,this.pagination.totalPages).map((o=>t("option",{value:o,selected:this.pagination.currentPage===o},o)))))):t(a,null,this.pagination.pages.map((r=>t("li",{class:this.isActivePageClass(w.item,r)},o(r,r)))),this.pagination.totalPages?t("li",{class:u([w.item,w.itemMore])},t("span",{class:w.inner},t("span",{id:this.pageSelectId,hidden:true},this.wcagSelectLabel),t("gov-form-select",{size:"m",variant:this.variant,"wcag-labelled-by":this.pageSelectId,ref:o=>this.spreadSelectRef=o,"on-gov-change":this.onSelectHandler.bind(this)},t("option",{selected:true,hidden:true},"..."),x(1,this.pagination.totalPages).map((o=>t("option",{value:o,selected:false},o)))))):null),t("li",{class:u([w.item,w.itemArrow])},o(this.pagination.totalPages>this.pagination.currentPage?this.pagination.currentPage+1:-1,t("gov-icon",{class:w.arrow,name:"chevron-right"}))),t("li",{class:u([w.item,w.itemArrow])},o(this.pagination.totalPages>this.pagination.currentPage?this.pagination.totalPages:-1,t("gov-icon",{class:w.arrow,name:"chevron-double-right"}))))))}onClickHandler(o,r){o.stopPropagation();this.recalculatePagination(r);this.govPage.emit({component:w.root,pagination:this.pagination})}onSelectHandler(o){o.stopPropagation();const r=o.detail.value;const t=parseInt(r);this.resetSelectValue();if(isNaN(t)===false){this.recalculatePagination(t);if(this.link){window.location.href=this.prepareLinkUrl(t)}else{this.govPage.emit({component:w.root,pagination:this.pagination})}}}async validateWcag(){h(this.wcagPageLabel,"wcag-page-label",w.root);d(this.wcagLabel,this.wcagLabelledBy,w.root)}get host(){return n(this)}static get watchers(){return{type:["validateType"],size:["validateSize"],variant:["validateVariant"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}}};S.style=z;export{S as gov_pagination};
|
|
2
|
+
//# sourceMappingURL=p-2712444e.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PaginationSizes","pick","Sizes","PaginationVariants","Variants","PaginationTypes","PaginationClass","root","list","item","itemArrow","itemMore","itemSelect","inner","arrow","paginate","totalItems","currentPage","pageSize","maxPages","totalPages","Math","ceil","startPage","endPage","maxPagesBeforeCurrentPage","floor","maxPagesAfterCurrentPage","startIndex","endIndex","min","pages","Array","from","keys","map","i","createArrayRange","to","Number","isInteger","slice","govPaginationCss","GovPagination","constructor","hostRef","this","h","govHost","host","pageSelectId","createID","validateType","newValue","validateProp","validateSize","validateVariant","recalculate","recalculatePagination","current","componentWillLoad","size","variant","componentDidRender","canValidateWcagOnRender","delay","validateWcag","pagination","total","isActivePageClass","originalClass","page","prepareLinkUrl","link","String","replace","undefined","resetSelectValue","spreadSelectRef","getRef","then","el","value","render","pageResolver","content","isDisabled","ariaCurrent","toBoolAttrIfDefined","href","type","disabled","e","onClickHandler","wcagPageLabel","class","Host","classes","wcagLabel","wcagLabelledBy","prepareClasses","name","id","hidden","wcagSelectLabel","onSelectHandler","bind","selected","Fragment","ref","stopPropagation","govPage","emit","component","detail","parseInt","isNaN","window","location","validateWcagProp","validateWcagLabel"],"sources":["../../../packages/core/src/components/gov-pagination/constants.ts","../../../packages/core/src/components/gov-pagination/pagination.ts","../../../packages/core/src/utils/array.utils.ts","../../../packages/core/src/components/gov-pagination/gov-pagination.scss?tag=gov-pagination","../../../packages/core/src/components/gov-pagination/gov-pagination.tsx"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\nimport { Variants } from '../../core/constants/variants'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const PaginationSizes = pick(Sizes, ['_S', '_M'])\nexport type PaginationSizeType = `${ValueOf<typeof PaginationSizes>}`\n\nexport const PaginationVariants = pick(Variants, ['PRIMARY', 'SECONDARY'])\nexport type PaginationVariantType = `${ValueOf<typeof PaginationVariants>}`\n\nexport enum PaginationTypes {\n\tBUTTON = 'button',\n\tSELECT = 'select',\n}\nexport type PaginationType = `${ValueOf<typeof PaginationTypes>}`\n\nexport const PaginationClass = {\n\troot: 'gov-pagination',\n\tlist: 'gov-pagination__list',\n\titem: 'gov-pagination__item',\n\titemArrow: 'gov-pagination__item--arrow',\n\titemMore: 'gov-pagination__item--more',\n\titemSelect: 'gov-pagination__item--select',\n\tinner: 'gov-pagination__inner',\n\tarrow: 'gov-pagination__arrow',\n}\n","export interface Pagination {\n\ttotalItems: number\n\tcurrentPage: number\n\tpageSize: number\n\ttotalPages: number\n\tstartPage: number\n\tendPage: number\n\tstartIndex: number\n\tendIndex: number\n\tpages: number[]\n}\n\nexport function paginate(totalItems: number, currentPage = 1, pageSize = 10, maxPages = 10): Pagination {\n\t// calculate total pages\n\tconst totalPages = Math.ceil(totalItems / pageSize)\n\n\t// ensure current page isn't out of range\n\tif (currentPage < 1) {\n\t\tcurrentPage = 1\n\t} else if (currentPage > totalPages) {\n\t\tcurrentPage = totalPages\n\t}\n\n\tlet startPage: number, endPage: number\n\tif (totalPages <= maxPages) {\n\t\t// total pages less than max so show all pages\n\t\tstartPage = 1\n\t\tendPage = totalPages\n\t} else {\n\t\t// total pages more than max so calculate start and end pages\n\t\tconst maxPagesBeforeCurrentPage = Math.floor(maxPages / 2)\n\t\tconst maxPagesAfterCurrentPage = Math.ceil(maxPages / 2) - 1\n\t\tif (currentPage <= maxPagesBeforeCurrentPage) {\n\t\t\t// current page near the start\n\t\t\tstartPage = 1\n\t\t\tendPage = maxPages\n\t\t} else if (currentPage + maxPagesAfterCurrentPage >= totalPages) {\n\t\t\t// current page near the end\n\t\t\tstartPage = totalPages - maxPages + 1\n\t\t\tendPage = totalPages\n\t\t} else {\n\t\t\t// current page somewhere in the middle\n\t\t\tstartPage = currentPage - maxPagesBeforeCurrentPage\n\t\t\tendPage = currentPage + maxPagesAfterCurrentPage\n\t\t}\n\t}\n\n\t// calculate start and end item indexes\n\tconst startIndex = (currentPage - 1) * pageSize\n\tconst endIndex = Math.min(startIndex + pageSize - 1, totalItems - 1)\n\n\t// create an array of pages to ng-repeat in the pager control\n\tconst pages = Array.from(Array(endPage + 1 - startPage).keys()).map(i => startPage + i)\n\n\t// return object with all pager properties required by the view\n\treturn {\n\t\ttotalItems: totalItems,\n\t\tcurrentPage: currentPage,\n\t\tpageSize: pageSize,\n\t\ttotalPages: totalPages,\n\t\tstartPage: startPage,\n\t\tendPage: endPage,\n\t\tstartIndex: startIndex,\n\t\tendIndex: endIndex,\n\t\tpages: pages,\n\t}\n}\n","export const createArrayRange = (from: number, to: number): number[] => {\n\tif (Number.isInteger(from) && Number.isInteger(to)) {\n\t\treturn [...Array(to + 1).keys()].slice(from)\n\t}\n\treturn []\n}\n","/*\n * Pagination\n */\n\n$class: \".gov-pagination\";\n\n#{$class} {\n\t@include base();\n\t&__list {\n\t\t@extend %reset-ul;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tflex-wrap: wrap;\n\t\tfont-weight: bold;\n\t\ttext-align: center;\n\t}\n\t&__list &__item {\n\t\t@extend %reset-ul-li;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tmargin: 0;\n\t\tpadding: rem-calc(2);\n\t\tborder-radius: $border-radius;\n\t\toverflow: hidden;\n\t\t&--arrow {\n\t\t\tdisplay: flex;\n\t\t}\n\t\t&--select {\n\t\t\tz-index: 1;\n\t\t\tdisplay: flex;\n\t\t\toverflow: visible;\n\t\t\tpadding: rem-calc(0 16);\n\t\t}\n\t}\n\t&__arrow {\n\t\tmargin: 0;\n\t}\n\t&__item--more {\n\t\t.gov-form-select {\n\t\t\tselect {\n\t\t\t\tborder: none !important;\n\t\t\t\tpadding-right: rem-calc(12) !important;\n\t\t\t}\n\t\t\t.gov-icon {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\t&__inner {\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\talign-self: stretch;\n\t\twidth: 100%;\n\t\ttext-decoration: none;\n\t\t// Use hover styles from gov-button to active page button\n\t\t&[wcag-current=\"true\"] {\n\t\t\t@each $variant, $types in $button-variants {\n\t\t\t\t@each $type, $definitions in $types {\n\t\t\t\t\t&[type=\"#{$type}\"][variant=\"#{$variant}\"] {\n\t\t\t\t\t\t.element {\n\t\t\t\t\t\t\tbackground-color: deep-map-get($button-variants, $variant, $type, \"hover-bg\");\n\t\t\t\t\t\t\tcolor: deep-map-get($button-variants, $variant, $type, \"hover-color\");\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// VARIANTS\n\t@each $size, $definitions in $pagination-sizes {\n\t\t&[size=\"#{$size}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__inner {\n\t\t\t\t\t@include typography(get(\"font\", $definitions));\n\t\t\t\t\tfont-weight: inherit;\n\t\t\t\t\t.element {\n\t\t\t\t\t\tmin-width: get(\"button-size\", $definitions);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import Fragment from \"../../helpers/Fragment\"\nimport { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport {\n\tPaginationClass,\n\tPaginationSizeType,\n\tPaginationSizes,\n\tPaginationVariantType,\n\tPaginationType,\n\tPaginationTypes,\n\tPaginationVariants,\n} from \"./constants\"\nimport { govHost, prepareClasses } from \"../../helpers/Dom/template\"\nimport { paginate, Pagination } from \"./pagination\"\nimport { toBoolAttrIfDefined } from \"../../helpers/Dom/template\"\nimport { validateWcagLabel, validateWcagProp } from \"../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\nimport { delay } from \"../../utils/utils\"\nimport { createID } from \"../../utils/string.utils\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport {createArrayRange } from \"../../utils/array.utils\"\nimport { FormSelectEvent } from \"../gov-form/select/gov-form-select.types\"\nimport { PaginationEvent } from \"./gov-pagination.types\"\n\n@Component({\n\ttag: \"gov-pagination\",\n\tstyleUrl: \"gov-pagination.scss\",\n})\nexport class GovPagination {\n\tprivate h: GovHost\n\tprivate readonly pageSelectId: string\n\n\tprivate spreadSelectRef?: HTMLGovFormSelectElement\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.pageSelectId = createID(\"GovPageSelect\")\n\t}\n\n\t@Element() readonly host: HTMLGovPaginationElement\n\t/**\n\t * Pagination type\n\t */\n\t@Prop() readonly type: PaginationType = \"button\"\n\t/**\n\t * Currently displayed page\n\t */\n\t@Prop() readonly current: number = 1\n\t/**\n\t * Total count of entries\n\t */\n\t@Prop() readonly total: number = 0\n\t/**\n\t * Set on active page\n\t */\n\t@Prop() readonly inverse: boolean\n\t/**\n\t * Pagination's size\n\t */\n\t@Prop() readonly size?: PaginationSizeType = \"m\"\n\t/**\n\t * Style variation of the pagination.\n\t */\n\t@Prop() readonly variant?: PaginationVariantType = \"primary\"\n\t/**\n\t * Maximum number of entries per page\n\t */\n\t@Prop({ attribute: \"page-size\" }) readonly pageSize: number = 10\n\t/**\n\t * Maximum pages displayed for selection\n\t */\n\t@Prop({ attribute: \"max-pages\" }) readonly maxPages: number = 5\n\t/**\n\t * Setting a link to redirect to a given page.\n\t * The {PAGE} wildcard can be used in the link to replace the page number.\n\t * Note that in the case of paging through a link, it is always necessary to send to the component the current page where the user is.\n\t */\n\t@Prop() readonly link: string\n\t/**\n\t * Adds accessible label for the pagination that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: \"wcag-label\" }) readonly wcagLabel: string\n\t/**\n\t * Indicates the id of a component that labels the pagination.\n\t */\n\t@Prop({ attribute: \"wcag-labelled-by\" }) readonly wcagLabelledBy: string\n\t/**\n\t * Adds accessible label for the page select\n\t */\n\t@Prop({ attribute: \"wcag-select-label\" }) readonly wcagSelectLabel: string = \"Vybrat stranu\"\n\t/**\n\t * Adds accessible label for the page item\n\t */\n\t@Prop({ attribute: \"wcag-page-label\" }) readonly wcagPageLabel: string = \"Strana\"\n\t/**\n\t * Event called when changing the page with the current setting of the whole paging\n\t */\n\t@Event({ eventName: \"gov-page\" }) govPage: EventEmitter<PaginationEvent>\n\n\t@State() pagination: Pagination\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(PaginationTypes, newValue, PaginationClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(PaginationSizes, newValue, PaginationClass.root)\n\t}\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(PaginationVariants, newValue, PaginationClass.root)\n\t}\n\n\t@Watch(\"current\")\n\t@Watch(\"total\")\n\t@Watch(\"pageSize\")\n\t@Watch(\"maxPages\")\n\trecalculate(): void {\n\t\tthis.recalculatePagination(this.current)\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.recalculatePagination(this.current)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateVariant(this.variant)\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\tprivate recalculatePagination(currentPage: number) {\n\t\tthis.pagination = paginate(this.total, currentPage, this.pageSize, this.maxPages)\n\t}\n\n\tprivate isActivePageClass(originalClass: string, page: number) {\n\t\tif (this.pagination.currentPage === page) {\n\t\t\treturn originalClass + \" is-active\"\n\t\t} else {\n\t\t\treturn originalClass\n\t\t}\n\t}\n\n\tprivate prepareLinkUrl(page: number) {\n\t\tif (this.link) {\n\t\t\treturn String(this.link).replace(\"{PAGE}\", String(page))\n\t\t}\n\t\treturn undefined\n\t}\n\n\tprivate resetSelectValue() {\n\t\tif (this.spreadSelectRef) {\n\t\t\tthis.spreadSelectRef.getRef()\n\t\t\t\t.then((el: HTMLSelectElement) => {\n\t\t\t\t\tel.value = '...'\n\t\t\t\t})\n\t\t}\n\t}\n\n\trender() {\n\t\tconst pageResolver = (page: number, content: any) => {\n\t\t\tconst isDisabled = page === -1\n\t\t\tconst ariaCurrent = toBoolAttrIfDefined(this.pagination.currentPage === page ? true : undefined)\n\t\t\treturn (\n\t\t\t\t<gov-button\n\t\t\t\t\thref={this.prepareLinkUrl(page)}\n\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\tsize={this.size}\n\t\t\t\t\ttype=\"base\"\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t\ton-gov-click={(e) => this.onClickHandler(e, page)}\n\t\t\t\t\twcag-label={page > -1 ? this.wcagPageLabel + \" \" + page : undefined}\n\t\t\t\t\twcag-current={ariaCurrent}\n\t\t\t\t\tclass={PaginationClass.inner}>\n\t\t\t\t\t{content}\n\t\t\t\t</gov-button>\n\t\t\t)\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(PaginationClass.root)} type={this.type} variant={this.variant} size={this.size}>\n\t\t\t\t<nav aria-label={this.wcagLabel} aria-labelledby={this.wcagLabelledBy}>\n\t\t\t\t\t<ul class={PaginationClass.list}>\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\n\t\t\t\t\t\t\t{pageResolver(\n\t\t\t\t\t\t\t\tthis.pagination.currentPage > 1 ? 1 : -1,\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-double-left\"></gov-icon>,\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</li>\n\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\n\t\t\t\t\t\t\t{pageResolver(\n\t\t\t\t\t\t\t\tthis.pagination.startPage < this.pagination.currentPage ? this.pagination.currentPage - 1 : -1,\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-left\"></gov-icon>,\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</li>\n\n\t\t\t\t\t\t{this.type == \"select\" ? (\n\t\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemSelect])}>\n\t\t\t\t\t\t\t\t<span class={PaginationClass.inner}>\n\t\t\t\t\t\t\t\t\t<span id={this.pageSelectId} hidden>\n\t\t\t\t\t\t\t\t\t\t{this.wcagSelectLabel}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<gov-form-select\n\t\t\t\t\t\t\t\t\t\tsize=\"m\"\n\t\t\t\t\t\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\t\t\t\t\t\twcag-labelled-by={this.pageSelectId}\n\t\t\t\t\t\t\t\t\t\ton-gov-change={this.onSelectHandler.bind(this)}>\n\t\t\t\t\t\t\t\t\t\t{createArrayRange(1, this.pagination.totalPages).map(page => (\n\t\t\t\t\t\t\t\t\t\t\t<option value={page} selected={this.pagination.currentPage === page}>\n\t\t\t\t\t\t\t\t\t\t\t\t{page}\n\t\t\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t</gov-form-select>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t{this.pagination.pages.map(page => (\n\t\t\t\t\t\t\t\t\t<li class={this.isActivePageClass(PaginationClass.item, page)}>{pageResolver(page, page)}</li>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t{this.pagination.totalPages ? (\n\t\t\t\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemMore])}>\n\t\t\t\t\t\t\t\t\t<span class={PaginationClass.inner}>\n\t\t\t\t\t\t\t\t\t\t<span id={this.pageSelectId} hidden>\n\t\t\t\t\t\t\t\t\t\t\t{this.wcagSelectLabel}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<gov-form-select\n\t\t\t\t\t\t\t\t\t\t\tsize=\"m\"\n\t\t\t\t\t\t\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\t\t\t\t\t\t\twcag-labelled-by={this.pageSelectId}\n\t\t\t\t\t\t\t\t\t\t\tref={el => (this.spreadSelectRef = el as HTMLGovFormSelectElement)}\n\t\t\t\t\t\t\t\t\t\t\ton-gov-change={this.onSelectHandler.bind(this)}>\n\t\t\t\t\t\t\t\t\t\t\t<option selected hidden>...</option>\n\t\t\t\t\t\t\t\t\t\t\t{createArrayRange(1, this.pagination.totalPages).map(page => (\n\t\t\t\t\t\t\t\t\t\t\t\t<option value={page} selected={false}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{page}\n\t\t\t\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t\t</gov-form-select>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\n\t\t\t\t\t\t\t{pageResolver(\n\t\t\t\t\t\t\t\tthis.pagination.totalPages > this.pagination.currentPage ? this.pagination.currentPage + 1 : -1,\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-right\"></gov-icon>,\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</li>\n\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\n\t\t\t\t\t\t\t{pageResolver(\n\t\t\t\t\t\t\t\tthis.pagination.totalPages > this.pagination.currentPage ? this.pagination.totalPages : -1,\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-double-right\"></gov-icon>,\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</nav>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: CustomEvent, page: number): void {\n\t\te.stopPropagation()\n\t\tthis.recalculatePagination(page)\n\t\tthis.govPage.emit({\n\t\t\tcomponent: PaginationClass.root,\n\t\t\tpagination: this.pagination\n\t\t})\n\t}\n\n\tprivate onSelectHandler(e: CustomEvent<FormSelectEvent>): void {\n\t\te.stopPropagation()\n\t\tconst value = e.detail.value\n\t\tconst page = parseInt(value)\n\t\tthis.resetSelectValue()\n\t\tif (isNaN(page) === false) {\n\t\t\tthis.recalculatePagination(page)\n\t\t\tif (this.link) {\n\t\t\t\twindow.location.href = this.prepareLinkUrl(page)\n\t\t\t} else {\n\t\t\t\tthis.govPage.emit({\n\t\t\t\t\tcomponent: PaginationClass.root,\n\t\t\t\t\tpagination: this.pagination\n\t\t\t\t})\n\t\t\t}\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\tvalidateWcagProp(this.wcagPageLabel, \"wcag-page-label\", PaginationClass.root)\n\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, PaginationClass.root)\n\t}\n}\n"],"mappings":"wbAKO,MAAMA,EAAkBC,EAAKC,EAAO,CAAC,KAAM,OAG3C,MAAMC,EAAqBF,EAAKG,EAAU,CAAC,UAAW,cAG7D,IAAYC,GAAZ,SAAYA,GACXA,EAAA,mBACAA,EAAA,kBACA,EAHD,CAAYA,MAAe,KAMpB,MAAMC,EAAkB,CAC9BC,KAAM,iBACNC,KAAM,uBACNC,KAAM,uBACNC,UAAW,8BACXC,SAAU,6BACVC,WAAY,+BACZC,MAAO,wBACPC,MAAO,yB,SCbQC,EAASC,EAAoBC,EAAc,EAAGC,EAAW,GAAIC,EAAW,IAEvF,MAAMC,EAAaC,KAAKC,KAAKN,EAAaE,GAG1C,GAAID,EAAc,EAAG,CACpBA,EAAc,C,MACR,GAAIA,EAAcG,EAAY,CACpCH,EAAcG,C,CAGf,IAAIG,EAAmBC,EACvB,GAAIJ,GAAcD,EAAU,CAE3BI,EAAY,EACZC,EAAUJ,C,KACJ,CAEN,MAAMK,EAA4BJ,KAAKK,MAAMP,EAAW,GACxD,MAAMQ,EAA2BN,KAAKC,KAAKH,EAAW,GAAK,EAC3D,GAAIF,GAAeQ,EAA2B,CAE7CF,EAAY,EACZC,EAAUL,C,MACJ,GAAIF,EAAcU,GAA4BP,EAAY,CAEhEG,EAAYH,EAAaD,EAAW,EACpCK,EAAUJ,C,KACJ,CAENG,EAAYN,EAAcQ,EAC1BD,EAAUP,EAAcU,C,EAK1B,MAAMC,GAAcX,EAAc,GAAKC,EACvC,MAAMW,EAAWR,KAAKS,IAAIF,EAAaV,EAAW,EAAGF,EAAa,GAGlE,MAAMe,EAAQC,MAAMC,KAAKD,MAAMR,EAAU,EAAID,GAAWW,QAAQC,KAAIC,GAAKb,EAAYa,IAGrF,MAAO,CACNpB,WAAYA,EACZC,YAAaA,EACbC,SAAUA,EACVE,WAAYA,EACZG,UAAWA,EACXC,QAASA,EACTI,WAAYA,EACZC,SAAUA,EACVE,MAAOA,EAET,CClEO,MAAMM,EAAmB,CAACJ,EAAcK,KAC9C,GAAIC,OAAOC,UAAUP,IAASM,OAAOC,UAAUF,GAAK,CACnD,MAAO,IAAIN,MAAMM,EAAK,GAAGJ,QAAQO,MAAMR,E,CAExC,MAAO,EAAE,ECJV,MAAMS,EAAmB,uyN,MC4BZC,EAAa,MAMzB,WAAAC,CAAAC,G,sDASwC,S,aAIL,E,WAIF,E,iCAQY,I,aAIM,U,cAIW,G,cAIA,E,gGAkBe,gB,mBAIJ,S,0BA1DxEC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,aAAeC,EAAS,gB,CAkE9B,YAAAC,CAAaC,GACZC,EAAajD,EAAiBgD,EAAU/C,EAAgBC,K,CAIzD,YAAAgD,CAAaF,GACZC,EAAatD,EAAiBqD,EAAU/C,EAAgBC,K,CAIzD,eAAAiD,CAAgBH,GACfC,EAAanD,EAAoBkD,EAAU/C,EAAgBC,K,CAO5D,WAAAkD,GACCX,KAAKY,sBAAsBZ,KAAKa,Q,CAGjC,iBAAAC,GACCd,KAAKY,sBAAsBZ,KAAKa,SAChCb,KAAKS,aAAaT,KAAKe,MACvBf,KAAKU,gBAAgBV,KAAKgB,Q,CAG3B,wBAAMC,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNnB,KAAKoB,c,EAIL,qBAAAR,CAAsBzC,GAC7B6B,KAAKqB,WAAapD,EAAS+B,KAAKsB,MAAOnD,EAAa6B,KAAK5B,SAAU4B,KAAK3B,S,CAGjE,iBAAAkD,CAAkBC,EAAuBC,GAChD,GAAIzB,KAAKqB,WAAWlD,cAAgBsD,EAAM,CACzC,OAAOD,EAAgB,Y,KACjB,CACN,OAAOA,C,EAID,cAAAE,CAAeD,GACtB,GAAIzB,KAAK2B,KAAM,CACd,OAAOC,OAAO5B,KAAK2B,MAAME,QAAQ,SAAUD,OAAOH,G,CAEnD,OAAOK,S,CAGA,gBAAAC,GACP,GAAI/B,KAAKgC,gBAAiB,CACzBhC,KAAKgC,gBAAgBC,SACnBC,MAAMC,IACNA,EAAGC,MAAQ,KAAK,G,EAKpB,MAAAC,GACC,MAAMC,EAAe,CAACb,EAAcc,KACnC,MAAMC,EAAaf,KAAU,EAC7B,MAAMgB,EAAcC,EAAoB1C,KAAKqB,WAAWlD,cAAgBsD,EAAO,KAAOK,WACtF,OACC7B,EAAA,cACC0C,KAAM3C,KAAK0B,eAAeD,GAC1BT,QAAShB,KAAKgB,QACdD,KAAMf,KAAKe,KACX6B,KAAK,OACLC,SAAUL,EAAU,eACLM,GAAM9C,KAAK+C,eAAeD,EAAGrB,GAAK,aACrCA,GAAQ,EAAIzB,KAAKgD,cAAgB,IAAMvB,EAAOK,UAAS,eACrDW,EACdQ,MAAOzF,EAAgBO,OACtBwE,EACW,EAGf,OACCtC,EAACiD,EAAI,CAACD,MAAOjD,KAAKC,EAAEkD,QAAQ3F,EAAgBC,MAAOmF,KAAM5C,KAAK4C,KAAM5B,QAAShB,KAAKgB,QAASD,KAAMf,KAAKe,MACrGd,EAAA,oBAAiBD,KAAKoD,UAAS,kBAAmBpD,KAAKqD,gBACtDpD,EAAA,MAAIgD,MAAOzF,EAAgBE,MAC1BuC,EAAA,MAAIgD,MAAOK,EAAe,CAAC9F,EAAgBG,KAAMH,EAAgBI,aAC/D0E,EACAtC,KAAKqB,WAAWlD,YAAc,EAAI,GAAK,EACvC8B,EAAA,YAAUgD,MAAOzF,EAAgBQ,MAAOuF,KAAK,0BAI/CtD,EAAA,MAAIgD,MAAOK,EAAe,CAAC9F,EAAgBG,KAAMH,EAAgBI,aAC/D0E,EACAtC,KAAKqB,WAAW5C,UAAYuB,KAAKqB,WAAWlD,YAAc6B,KAAKqB,WAAWlD,YAAc,GAAK,EAC7F8B,EAAA,YAAUgD,MAAOzF,EAAgBQ,MAAOuF,KAAK,mBAI9CvD,KAAK4C,MAAQ,SACb3C,EAAA,MAAIgD,MAAOK,EAAe,CAAC9F,EAAgBG,KAAMH,EAAgBM,cAChEmC,EAAA,QAAMgD,MAAOzF,EAAgBO,OAC5BkC,EAAA,QAAMuD,GAAIxD,KAAKI,aAAcqD,OAAM,MACjCzD,KAAK0D,iBAEPzD,EAAA,mBACCc,KAAK,IACLC,QAAShB,KAAKgB,QAAO,mBACHhB,KAAKI,aAAY,gBACpBJ,KAAK2D,gBAAgBC,KAAK5D,OACxCT,EAAiB,EAAGS,KAAKqB,WAAW/C,YAAYe,KAAIoC,GACpDxB,EAAA,UAAQmC,MAAOX,EAAMoC,SAAU7D,KAAKqB,WAAWlD,cAAgBsD,GAC7DA,QAONxB,EAAC6D,EAAQ,KACP9D,KAAKqB,WAAWpC,MAAMI,KAAIoC,GAC1BxB,EAAA,MAAIgD,MAAOjD,KAAKuB,kBAAkB/D,EAAgBG,KAAM8D,IAAQa,EAAab,EAAMA,MAEnFzB,KAAKqB,WAAW/C,WAChB2B,EAAA,MAAIgD,MAAOK,EAAe,CAAC9F,EAAgBG,KAAMH,EAAgBK,YACjEoC,EAAA,QAAMgD,MAAOzF,EAAgBO,OAC5BkC,EAAA,QAAMuD,GAAIxD,KAAKI,aAAcqD,OAAM,MACjCzD,KAAK0D,iBAEPzD,EAAA,mBACCc,KAAK,IACLC,QAAShB,KAAKgB,QAAO,mBACHhB,KAAKI,aACvB2D,IAAK5B,GAAOnC,KAAKgC,gBAAkBG,EAA+B,gBACnDnC,KAAK2D,gBAAgBC,KAAK5D,OACzCC,EAAA,UAAQ4D,SAAQ,KAACJ,OAAM,aACtBlE,EAAiB,EAAGS,KAAKqB,WAAW/C,YAAYe,KAAIoC,GACpDxB,EAAA,UAAQmC,MAAOX,EAAMoC,SAAU,OAC7BpC,QAMF,MAINxB,EAAA,MAAIgD,MAAOK,EAAe,CAAC9F,EAAgBG,KAAMH,EAAgBI,aAC/D0E,EACAtC,KAAKqB,WAAW/C,WAAa0B,KAAKqB,WAAWlD,YAAc6B,KAAKqB,WAAWlD,YAAc,GAAK,EAC9F8B,EAAA,YAAUgD,MAAOzF,EAAgBQ,MAAOuF,KAAK,oBAI/CtD,EAAA,MAAIgD,MAAOK,EAAe,CAAC9F,EAAgBG,KAAMH,EAAgBI,aAC/D0E,EACAtC,KAAKqB,WAAW/C,WAAa0B,KAAKqB,WAAWlD,YAAc6B,KAAKqB,WAAW/C,YAAc,EACzF2B,EAAA,YAAUgD,MAAOzF,EAAgBQ,MAAOuF,KAAK,6B,CAS5C,cAAAR,CAAeD,EAAgBrB,GACtCqB,EAAEkB,kBACFhE,KAAKY,sBAAsBa,GAC3BzB,KAAKiE,QAAQC,KAAK,CACjBC,UAAW3G,EAAgBC,KAC3B4D,WAAYrB,KAAKqB,Y,CAIX,eAAAsC,CAAgBb,GACvBA,EAAEkB,kBACF,MAAM5B,EAAQU,EAAEsB,OAAOhC,MACvB,MAAMX,EAAO4C,SAASjC,GACtBpC,KAAK+B,mBACL,GAAIuC,MAAM7C,KAAU,MAAO,CAC1BzB,KAAKY,sBAAsBa,GAC3B,GAAIzB,KAAK2B,KAAM,CACd4C,OAAOC,SAAS7B,KAAO3C,KAAK0B,eAAeD,E,KACrC,CACNzB,KAAKiE,QAAQC,KAAK,CACjBC,UAAW3G,EAAgBC,KAC3B4D,WAAYrB,KAAKqB,Y,GAUrB,kBAAMD,GACLqD,EAAiBzE,KAAKgD,cAAe,kBAAmBxF,EAAgBC,MACxEiH,EAAkB1E,KAAKoD,UAAWpD,KAAKqD,eAAgB7F,EAAgBC,K"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=e=>{if(Array.isArray(e)===false)return;return e.filter((e=>!!e)).join(" ").trim()};const t=e=>{const t=e.querySelector("slot");if(t){return t.assignedNodes().filter((e=>e.nodeName!=="#text"))}return[]};const r=e=>e?"true":"false";const s=e=>({get hostElement(){return e},get name(){return this.hostElement.nodeName.toLowerCase()},hasSlot(e){return!!this.getSlot(e)},isSlotEmpty(e){const t=this.getSlot(e);if(t){return t.childNodes.length===0}return false},getSlot(e){return this.hostElement.querySelector('[slot="'+e+'"]')},getParent(e){return this.hostElement.closest(e)},passChildAttr(e,t,r){if(Array.isArray(e)){e.forEach((e=>{this.hostElement.querySelectorAll(e).forEach((e=>e.setAttribute(t,r)))}))}else{this.hostElement.querySelectorAll(e).forEach((e=>e.setAttribute(t,r)))}},removeChildAttr(e,t){if(Array.isArray(e)){e.forEach((e=>{this.hostElement.querySelectorAll(e).forEach((e=>e.removeAttribute(t)))}))}else{this.hostElement.querySelectorAll(e).forEach((e=>e.removeAttribute(t)))}},get slottedChildren(){const e=this.hostElement.shadowRoot.querySelector("slot");if(e){return e.assignedNodes().filter((e=>e.nodeName!=="#text"))}return[]},classes(e){const t=Array.isArray(e)?e.join(" "):e;if(this.hostElement){return this.hostElement.classList.toString()+" "+t}return t}});const n=e=>{if(typeof e==="string"){return["true","True","TRUE","1"].indexOf(e)!==-1?"true":"false"}else if(typeof e==="number"){return e>0?"true":"false"}else if(typeof e==="boolean"){return e?"true":"false"}else{return e?"true":"false"}};const o=e=>{if(typeof e==="string"){return["true","True","TRUE","1","On","on","ON"].indexOf(e)!==-1?"on":"off"}else if(typeof e==="number"){return e>0?"on":"off"}else if(typeof e==="boolean"){return e?"on":"off"}else{return e?"on":"off"}};const f=e=>typeof e==="undefined"?undefined:n(e);const u=e=>typeof e==="undefined"?undefined:o(e);export{n as a,r as b,u as c,s as g,e as p,t as s,f as t};
|
|
2
|
+
//# sourceMappingURL=p-28e59384.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["prepareClasses","classes","Array","isArray","filter","classname","join","trim","slottedChildren","host","slotted","querySelector","assignedNodes","node","nodeName","booleanString","value","govHost","hostElement","name","this","toLowerCase","hasSlot","getSlot","isSlotEmpty","slot","childNodes","length","getParent","element","closest","passChildAttr","selector","forEach","querySelectorAll","child","setAttribute","removeChildAttr","removeAttribute","shadowRoot","clearClasses","classList","toString","toBoolAttr","indexOf","toOnOffAttr","toBoolAttrIfDefined","undefined","toOnOffAttrIfDefined"],"sources":["../../../packages/core/src/helpers/Dom/template.ts"],"sourcesContent":["import {HTMLStencilElement} from '@stencil/core/internal'\nimport {GovHost} from './template.types'\nimport {Nullable} from '../../types/interfaces'\n\nexport const prepareClasses = (classes: string[]): string => {\n\tif (Array.isArray(classes) === false) return\n\treturn classes\n\t\t.filter(classname => !!classname)\n\t\t.join(' ')\n\t\t.trim()\n}\n\nexport const slottedChildren = (host: HTMLStencilElement): Node[] => {\n\tconst slotted = host.querySelector('slot') as HTMLSlotElement\n\tif (slotted) {\n\t\treturn slotted.assignedNodes().filter(node => {\n\t\t\treturn node.nodeName !== '#text'\n\t\t})\n\t}\n\treturn []\n}\n\nexport const booleanString = (value: boolean): string => {\n\treturn value ? 'true' : 'false'\n}\n\nexport const govHost = (host: HTMLStencilElement): GovHost => {\n\treturn {\n\t\tget hostElement(): HTMLStencilElement {\n\t\t\treturn host\n\t\t},\n\t\tget name(): string {\n\t\t\treturn this.hostElement.nodeName.toLowerCase()\n\t\t},\n\t\thasSlot(name: string): boolean {\n\t\t\treturn !!this.getSlot(name)\n\t\t},\n\t\tisSlotEmpty(name: string): boolean {\n\t\t\tconst slot = this.getSlot(name)\n\t\t\tif (slot) {\n\t\t\t\treturn slot.childNodes.length === 0\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\t\tgetSlot(name: string): HTMLElement {\n\t\t\treturn this.hostElement.querySelector('[slot=\"' + name + '\"]')\n\t\t},\n\t\tgetParent(element): Nullable<HTMLElement> {\n\t\t\treturn this.hostElement.closest(element)\n\t\t},\n\t\tpassChildAttr(selector: string | string[], name: string, value: any): void {\n\t\t\tif (Array.isArray(selector)) {\n\t\t\t\tselector.forEach(selector => {\n\t\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.setAttribute(name, value))\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.setAttribute(name, value))\n\t\t\t}\n\t\t},\n\t\tremoveChildAttr(selector: string | string[], name: string): void {\n\t\t\tif (Array.isArray(selector)) {\n\t\t\t\tselector.forEach(selector => {\n\t\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.removeAttribute(name))\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.removeAttribute(name))\n\t\t\t}\n\t\t},\n\t\tget slottedChildren(): Node[] {\n\t\t\tconst slotted = this.hostElement.shadowRoot.querySelector('slot') as HTMLSlotElement\n\t\t\tif (slotted) {\n\t\t\t\treturn slotted.assignedNodes().filter(node => {\n\t\t\t\t\treturn node.nodeName !== '#text'\n\t\t\t\t})\n\t\t\t}\n\t\t\treturn []\n\t\t},\n\t\tclasses(classes: string | string[]): string {\n\t\t\tconst clearClasses = Array.isArray(classes) ? classes.join(' ') : classes\n\t\t\tif (this.hostElement) {\n\t\t\t\treturn this.hostElement.classList.toString() + ' ' + clearClasses\n\t\t\t}\n\t\t\treturn clearClasses\n\t\t},\n\t}\n}\n\nexport const toBoolAttr = (value: boolean | string | number): string => {\n\tif (typeof value === 'string') {\n\t\treturn ['true', 'True', 'TRUE', '1'].indexOf(value) !== -1 ? 'true' : 'false'\n\t} else if (typeof value === 'number') {\n\t\treturn value > 0 ? 'true' : 'false'\n\t} else if (typeof value === 'boolean') {\n\t\treturn value ? 'true' : 'false'\n\t} else {\n\t\treturn value ? 'true' : 'false'\n\t}\n}\n\nexport const toOnOffAttr = (value: boolean | string | number): string => {\n\tif (typeof value === 'string') {\n\t\treturn ['true', 'True', 'TRUE', '1', 'On', 'on', 'ON'].indexOf(value) !== -1 ? 'on' : 'off'\n\t} else if (typeof value === 'number') {\n\t\treturn value > 0 ? 'on' : 'off'\n\t} else if (typeof value === 'boolean') {\n\t\treturn value ? 'on' : 'off'\n\t} else {\n\t\treturn value ? 'on' : 'off'\n\t}\n}\n\nexport const toBoolAttrIfDefined = (value: boolean | string | number | undefined | null): undefined | string => {\n\treturn typeof value === 'undefined' ? undefined : toBoolAttr(value)\n}\n\nexport const toOnOffAttrIfDefined = (value: boolean | string | number | undefined | null): undefined | string => {\n\treturn typeof value === 'undefined' ? undefined : toOnOffAttr(value)\n}\n"],"mappings":"MAIaA,EAAkBC,IAC9B,GAAIC,MAAMC,QAAQF,KAAa,MAAO,OACtC,OAAOA,EACLG,QAAOC,KAAeA,IACtBC,KAAK,KACLC,MAAM,E,MAGIC,EAAmBC,IAC/B,MAAMC,EAAUD,EAAKE,cAAc,QACnC,GAAID,EAAS,CACZ,OAAOA,EAAQE,gBAAgBR,QAAOS,GAC9BA,EAAKC,WAAa,S,CAG3B,MAAO,EAAE,E,MAGGC,EAAiBC,GACtBA,EAAQ,OAAS,Q,MAGZC,EAAWR,IAChB,CACN,eAAIS,GACH,OAAOT,C,EAER,QAAIU,GACH,OAAOC,KAAKF,YAAYJ,SAASO,a,EAElC,OAAAC,CAAQH,GACP,QAASC,KAAKG,QAAQJ,E,EAEvB,WAAAK,CAAYL,GACX,MAAMM,EAAOL,KAAKG,QAAQJ,GAC1B,GAAIM,EAAM,CACT,OAAOA,EAAKC,WAAWC,SAAW,C,CAEnC,OAAO,K,EAER,OAAAJ,CAAQJ,GACP,OAAOC,KAAKF,YAAYP,cAAc,UAAYQ,EAAO,K,EAE1D,SAAAS,CAAUC,GACT,OAAOT,KAAKF,YAAYY,QAAQD,E,EAEjC,aAAAE,CAAcC,EAA6Bb,EAAcH,GACxD,GAAId,MAAMC,QAAQ6B,GAAW,CAC5BA,EAASC,SAAQD,IAChBZ,KAAKF,YAAYgB,iBAAiBF,GAAUC,SAAQE,GAASA,EAAMC,aAAajB,EAAMH,IAAO,G,KAExF,CACNI,KAAKF,YAAYgB,iBAAiBF,GAAUC,SAAQE,GAASA,EAAMC,aAAajB,EAAMH,I,GAGxF,eAAAqB,CAAgBL,EAA6Bb,GAC5C,GAAIjB,MAAMC,QAAQ6B,GAAW,CAC5BA,EAASC,SAAQD,IAChBZ,KAAKF,YAAYgB,iBAAiBF,GAAUC,SAAQE,GAASA,EAAMG,gBAAgBnB,IAAM,G,KAEpF,CACNC,KAAKF,YAAYgB,iBAAiBF,GAAUC,SAAQE,GAASA,EAAMG,gBAAgBnB,I,GAGrF,mBAAIX,GACH,MAAME,EAAUU,KAAKF,YAAYqB,WAAW5B,cAAc,QAC1D,GAAID,EAAS,CACZ,OAAOA,EAAQE,gBAAgBR,QAAOS,GAC9BA,EAAKC,WAAa,S,CAG3B,MAAO,E,EAER,OAAAb,CAAQA,GACP,MAAMuC,EAAetC,MAAMC,QAAQF,GAAWA,EAAQK,KAAK,KAAOL,EAClE,GAAImB,KAAKF,YAAa,CACrB,OAAOE,KAAKF,YAAYuB,UAAUC,WAAa,IAAMF,C,CAEtD,OAAOA,C,UAKGG,EAAc3B,IAC1B,UAAWA,IAAU,SAAU,CAC9B,MAAO,CAAC,OAAQ,OAAQ,OAAQ,KAAK4B,QAAQ5B,MAAY,EAAI,OAAS,O,MAChE,UAAWA,IAAU,SAAU,CACrC,OAAOA,EAAQ,EAAI,OAAS,O,MACtB,UAAWA,IAAU,UAAW,CACtC,OAAOA,EAAQ,OAAS,O,KAClB,CACN,OAAOA,EAAQ,OAAS,O,GAInB,MAAM6B,EAAe7B,IAC3B,UAAWA,IAAU,SAAU,CAC9B,MAAO,CAAC,OAAQ,OAAQ,OAAQ,IAAK,KAAM,KAAM,MAAM4B,QAAQ5B,MAAY,EAAI,KAAO,K,MAChF,UAAWA,IAAU,SAAU,CACrC,OAAOA,EAAQ,EAAI,KAAO,K,MACpB,UAAWA,IAAU,UAAW,CACtC,OAAOA,EAAQ,KAAO,K,KAChB,CACN,OAAOA,EAAQ,KAAO,K,SAIX8B,EAAuB9B,UACrBA,IAAU,YAAc+B,UAAYJ,EAAW3B,G,MAGjDgC,EAAwBhC,UACtBA,IAAU,YAAc+B,UAAYF,EAAY7B,U"}
|