@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,99 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-eb59f132.js';
|
|
2
|
+
import { g as govHost, a as toBoolAttr } from './template-df429738.js';
|
|
3
|
+
import { c as canValidateWcagOnRender } from './win-1dbd3f5c.js';
|
|
4
|
+
import { a as govErrorLog } from './gov.log-49da0221.js';
|
|
5
|
+
import { a as validateWcagRef } from './wcag-7d25e12b.js';
|
|
6
|
+
import { c as createID } from './string.utils-f268fc6b.js';
|
|
7
|
+
import { d as delay } from './utils-c057a3fa.js';
|
|
8
|
+
import { M as ModalClass } from './constants-2a283e9a.js';
|
|
9
|
+
|
|
10
|
+
const govPromptCss = ".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-modal{display:none}.gov-modal__dialog{z-index:101;position:fixed;top:50%;left:50%;display:flex;justify-content:center;align-items:center;width:100%;max-width:var(--gov-modal-max-width, 52.5rem);height:100%;padding:0.5rem;border:none;background:transparent;transform:translate(-50%, -50%);pointer-events:none}.gov-modal__inner{position:relative;display:flex;flex-direction:column;width:100%;max-height:100%;border-radius:var(--gov-border-radius, 0.1875rem);background:var(--gov-modal-bg, var(--gov-color-neutral-white));overflow:hidden;pointer-events:auto;box-shadow:0 0 1.5rem rgba(var(--gov-color-secondary-800-rgb), 0.24)}.gov-modal__header{display:flex;gap:1rem;align-items:flex-start;padding:1.5rem 1rem;border-bottom:var(--gov-modal-border-color, 0.0625rem solid var(--gov-color-secondary-500))}.gov-modal__icon{flex:0 0 auto;padding-top:calc((var(--gov-text-3xl-font-size) * 1.5 - 1.5rem) / 2)}.gov-modal__icon>*{width:1.5rem;height:1.5rem}.gov-modal__title{font-weight:var(--gov-text-3xl-font-weight);font-size:var(--gov-text-3xl-font-size);line-height:var(--gov-text-3xl-line-height);letter-spacing:var(--gov-text-3xl-letter-spacing);margin:0}.gov-modal__close{flex:0 0 auto;margin-left:auto}.gov-modal__content{height:100%;padding:1.5rem 1rem;color:var(--gov-modal-text-color, var(--gov-color-secondary-700));overflow:auto}.gov-modal__content>*:last-child{margin-bottom:0}.gov-modal__footer,.gov-modal__actions{padding:1.5rem 1rem;border-top:var(--gov-modal-border-color, 0.0625rem solid var(--gov-color-secondary-500))}.gov-modal__actions{display:flex;gap:0.5rem 1rem;flex-wrap:wrap;justify-content:flex-end}.gov-modal__dialog:focus .gov-modal__inner{outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base)}.gov-modal[open=\"\"],.gov-modal[open=true i],.gov-modal[open=\"1\"]{display:block}@media (min-width: 30em){.gov-modal__dialog{max-width:calc(var(--gov-modal-max-width, 52.5rem) + 3rem);padding:1.5rem}.gov-modal__dialog:focus{outline-offset:-1.5rem}.gov-modal__inner{box-shadow:0 0 2rem rgba(var(--gov-color-secondary-800-rgb), 0.32)}.gov-modal--prompt .gov-modal__dialog{max-width:calc(var(--gov-modal-prompt-max-width, 33.125rem) + 3rem)}}@media (min-width: 48em){.gov-modal__header{gap:1.25rem;padding:2rem 2.5rem 2rem 3rem}.gov-modal__content{padding:2rem 3rem}.gov-modal__footer{padding:1rem 3rem}.gov-modal--prompt .gov-modal__header,.gov-modal--prompt .gov-modal__content,.gov-modal--prompt .gov-modal__footer,.gov-modal--prompt .gov-modal__actions{padding:1.5rem}}";
|
|
11
|
+
|
|
12
|
+
const GovPrompt = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
registerInstance(this, hostRef);
|
|
15
|
+
this.govClose = createEvent(this, "gov-close", 7);
|
|
16
|
+
this.open = false;
|
|
17
|
+
this.label = undefined;
|
|
18
|
+
this.role = 'dialog';
|
|
19
|
+
this.labelTag = 'h2';
|
|
20
|
+
this.wcagLabelledBy = undefined;
|
|
21
|
+
this.wcagDescribedBy = undefined;
|
|
22
|
+
this.wcagCloseLabel = 'Zavřít okno';
|
|
23
|
+
this.wcagCloseLabelledBy = undefined;
|
|
24
|
+
this.h = govHost(this.host);
|
|
25
|
+
this.labelId = createID('GovPromptLabel');
|
|
26
|
+
this.contentId = createID('GovPromptContent');
|
|
27
|
+
}
|
|
28
|
+
validateLabelTag(newValue) {
|
|
29
|
+
const validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
30
|
+
if (newValue) {
|
|
31
|
+
if (!validTags.includes(newValue)) {
|
|
32
|
+
govErrorLog(`[${ModalClass.root}]: Tag ${newValue} is not allowed.`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
watchOpen(newValue) {
|
|
37
|
+
this.open = newValue;
|
|
38
|
+
}
|
|
39
|
+
showModal() {
|
|
40
|
+
this.open = true;
|
|
41
|
+
document.body.classList.add(ModalClass.bodyFix);
|
|
42
|
+
}
|
|
43
|
+
hideModal() {
|
|
44
|
+
this.open = false;
|
|
45
|
+
document.body.classList.remove(ModalClass.bodyFix);
|
|
46
|
+
}
|
|
47
|
+
async componentWillRender() {
|
|
48
|
+
if (this.open) {
|
|
49
|
+
this.showModal();
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
this.hideModal();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
async componentDidRender() {
|
|
56
|
+
if (canValidateWcagOnRender()) {
|
|
57
|
+
await delay(500);
|
|
58
|
+
await this.validateWcag();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
const LabelTag = this.labelTag;
|
|
63
|
+
return (h(Host, { class: this.h.classes(ModalClass.rootPrompt), open: this.open }, h("dialog", { class: ModalClass.dialog, hidden: !this.open, tabindex: "-1", open: this.open, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.open), "aria-labelledby": this.wcagLabelledBy || this.labelId, "aria-describedby": this.wcagDescribedBy || this.contentId, role: this.role }, h("div", { class: ModalClass.inner }, h("div", { class: ModalClass.header }, this.h.hasSlot('icon') && (h("div", { class: ModalClass.icon }, h("slot", { name: "icon" }))), this.label && (h(LabelTag, { class: ModalClass.title, id: this.labelId }, this.label)), h("gov-button", { class: ModalClass.close, variant: "primary", wcagLabel: this.wcagCloseLabel, wcagLabelledBy: this.wcagCloseLabelledBy, type: "base", "on-gov-click": this.onCloseHandler.bind(this) }, h("gov-icon", { name: "x-lg" }))), h("div", { class: ModalClass.content, id: this.contentId }, h("slot", null)), h("div", { class: ModalClass.actions }, h("slot", { name: "actions" })))), this.open ? (h("gov-backdrop", { "wcag-label": this.wcagCloseLabel, "wcag-labelled-by": this.wcagCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })) : null));
|
|
64
|
+
}
|
|
65
|
+
onCloseHandler(e) {
|
|
66
|
+
e.stopPropagation();
|
|
67
|
+
this.hideModal();
|
|
68
|
+
this.govClose.emit(e);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Showing the modal
|
|
72
|
+
*/
|
|
73
|
+
async show() {
|
|
74
|
+
this.showModal();
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Hiding the modal
|
|
78
|
+
*/
|
|
79
|
+
async hide() {
|
|
80
|
+
this.hideModal();
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Validate the WCAG attributes of the component
|
|
84
|
+
*/
|
|
85
|
+
async validateWcag() {
|
|
86
|
+
validateWcagRef(this.wcagLabelledBy, 'wcag-labelled-by', ModalClass.root);
|
|
87
|
+
validateWcagRef(this.wcagDescribedBy, 'wcag-described-by', ModalClass.root);
|
|
88
|
+
}
|
|
89
|
+
get host() { return getElement(this); }
|
|
90
|
+
static get watchers() { return {
|
|
91
|
+
"labelTag": ["validateLabelTag"],
|
|
92
|
+
"open": ["watchOpen"]
|
|
93
|
+
}; }
|
|
94
|
+
};
|
|
95
|
+
GovPrompt.style = govPromptCss;
|
|
96
|
+
|
|
97
|
+
export { GovPrompt as gov_prompt };
|
|
98
|
+
|
|
99
|
+
//# sourceMappingURL=gov-prompt.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"gov-prompt.entry.js","mappings":"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","names":[],"sources":["../../../packages/core/src/components/gov-promp/gov-prompt.scss?tag=gov-prompt","../../../packages/core/src/components/gov-promp/gov-prompt.tsx"],"sourcesContent":["/*\n * Prompt\n */\n\n// $class: \".gov-prompt\";\n@import \"../gov-modal/gov-modal.scss\";\n\n// #{$class} {\n// \t//\n// }\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from '@stencil/core'\nimport { govHost, toBoolAttr } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { validateWcagRef } from '../../helpers/Validate/wcag'\nimport { Nullable } from '../../types/interfaces'\nimport { createID } from '../../utils/string.utils'\nimport { delay } from '../../utils/utils'\nimport { ModalClass } from '../gov-modal/constants'\n\n@Component({\n\ttag: 'gov-prompt',\n\tstyleUrl: 'gov-prompt.scss',\n})\nexport class GovPrompt {\n\tprivate h: GovHost\n\tprivate readonly labelId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.labelId = createID('GovPromptLabel')\n\t\tthis.contentId = createID('GovPromptContent')\n\t}\n\n\t@Element() host: HTMLGovPromptElement\n\t/**\n\t * Attribute for modal window display\n\t */\n\t@Prop({ mutable: true }) open = false\n\t/**\n\t * Title of modal window\n\t */\n\t@Prop() label: string\n\t/**\n\t * Role of modal\n\t */\n\t@Prop({ attribute: 'role' }) role: Nullable<string> = 'dialog'\n\t/**\n\t * Used to change the HTML tag in the modal label for correct semantic structure\n\t */\n\t@Prop({ attribute: 'label-tag' }) readonly labelTag: string = 'h2'\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: 'wcag-labelled-by' }) wcagLabelledBy: string\n\t/**\n\t * Indicates the id of a component that describes the modal.\n\t */\n\t@Prop({ attribute: 'wcag-described-by' }) wcagDescribedBy: string\n\t/**\n\t * Adds accessible label for the modal close button that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-close-label' }) readonly wcagCloseLabel: string = 'Zavřít okno'\n\t/**\n\t * A string of identifiers that indicate alternative label elements for closing the modal window\n\t */\n\t@Prop({ attribute: 'wcag-close-labelled-by' }) wcagCloseLabelledBy: string\n\t/**\n\t * Emitted when modal window closes.\n\t */\n\t@Event({ eventName: 'gov-close' }) govClose: EventEmitter<PointerEvent>\n\n\t@Watch('labelTag')\n\tvalidateLabelTag(newValue: string): void {\n\t\tconst validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${ModalClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch('open')\n\twatchOpen(newValue: boolean): void {\n\t\tthis.open = newValue\n\t}\n\n\tprivate showModal() {\n\t\tthis.open = true\n\t\tdocument.body.classList.add(ModalClass.bodyFix)\n\t}\n\n\tprivate hideModal() {\n\t\tthis.open = false\n\t\tdocument.body.classList.remove(ModalClass.bodyFix)\n\t}\n\n\tasync componentWillRender() {\n\t\tif (this.open) {\n\t\t\tthis.showModal()\n\t\t} else {\n\t\t\tthis.hideModal()\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\tconst LabelTag = this.labelTag\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ModalClass.rootPrompt)} open={this.open}>\n\t\t\t\t<dialog\n\t\t\t\t\tclass={ModalClass.dialog}\n\t\t\t\t\thidden={!this.open}\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\topen={this.open}\n\t\t\t\t\taria-modal=\"true\"\n\t\t\t\t\taria-hidden={toBoolAttr(!this.open)}\n\t\t\t\t\taria-labelledby={this.wcagLabelledBy || this.labelId}\n\t\t\t\t\taria-describedby={this.wcagDescribedBy || this.contentId}\n\t\t\t\t\trole={this.role}\n\t\t\t\t>\n\t\t\t\t\t<div class={ModalClass.inner}>\n\t\t\t\t\t\t<div class={ModalClass.header}>\n\t\t\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t\t\t<div class={ModalClass.icon}>\n\t\t\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{this.label && (\n\t\t\t\t\t\t\t\t<LabelTag class={ModalClass.title} id={this.labelId}>\n\t\t\t\t\t\t\t\t\t{this.label}\n\t\t\t\t\t\t\t\t</LabelTag>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\tclass={ModalClass.close}\n\t\t\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t\t\twcagLabel={this.wcagCloseLabel}\n\t\t\t\t\t\t\t\twcagLabelledBy={this.wcagCloseLabelledBy}\n\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<gov-icon name=\"x-lg\" />\n\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class={ModalClass.content} id={this.contentId}>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class={ModalClass.actions}>\n\t\t\t\t\t\t\t<slot name=\"actions\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</dialog>\n\n\t\t\t\t{this.open ? (\n\t\t\t\t\t<gov-backdrop wcag-label={this.wcagCloseLabel} wcag-labelled-by={this.wcagCloseLabelledBy} on-gov-click={this.onCloseHandler.bind(this)} />\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onCloseHandler(e: PointerEvent) {\n\t\te.stopPropagation()\n\t\tthis.hideModal()\n\t\tthis.govClose.emit(e)\n\t}\n\n\t/**\n\t * Showing the modal\n\t */\n\t@Method()\n\tasync show(): Promise<void> {\n\t\tthis.showModal()\n\t}\n\n\t/**\n\t * Hiding the modal\n\t */\n\t@Method()\n\tasync hide(): Promise<void> {\n\t\tthis.hideModal()\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagRef(this.wcagLabelledBy, 'wcag-labelled-by', ModalClass.root)\n\t\tvalidateWcagRef(this.wcagDescribedBy, 'wcag-described-by', ModalClass.root)\n\t}\n}\n"],"version":3}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-eb59f132.js';
|
|
2
|
+
import { a as govErrorLog } from './gov.log-49da0221.js';
|
|
3
|
+
import { S as SideNavItemClass } from './constants-867ac6e2.js';
|
|
4
|
+
import { g as govHost, p as prepareClasses, b as booleanString } from './template-df429738.js';
|
|
5
|
+
import './win-1dbd3f5c.js';
|
|
6
|
+
import './utils-c057a3fa.js';
|
|
7
|
+
|
|
8
|
+
const govSideNavItemCss = ".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-side-nav-item{position:relative;display:block;width:100%}.gov-side-nav-item__header{display:flex;align-items:center;border-bottom:var(--gov-side-nav-border, 0.0625rem solid var(--gov-color-secondary-500))}.gov-side-nav-item__name{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;font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);display:flex;gap:1rem;flex:1 1 auto;justify-content:flex-start;padding:0.75rem 1rem 0.75rem 0.5rem;color:var(--gov-side-nav-color, var(--gov-color-secondary));text-align:left;transition:background-color 150ms}.gov-side-nav-item__name:focus{outline:none}.gov-side-nav-item__name:focus{outline:none}.gov-side-nav-item__name: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}button.gov-side-nav-item__name{padding-right:0 !important}@media not all and (pointer: coarse){.gov-side-nav-item__name:hover{background:var(--gov-side-nav-hover-bg, var(--gov-color-primary-200))}}.gov-side-nav-item__icon{display:flex;flex:0 0 auto;width:1rem;height:1rem}.gov-side-nav-item__icon .gov-icon{margin:0;color:var(--gov-side-nav-color, var(--gov-color-secondary))}.gov-side-nav-item__label{color:inherit}.gov-side-nav-item__chip{display:flex;flex:0 0 auto}.gov-side-nav-item__arrow{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;flex:0 0 auto;align-self:stretch;width:3rem;margin-left:auto;color:var(--gov-side-nav-arrow-color, var(--gov-color-primary));transition:background-color 150ms}.gov-side-nav-item__arrow:focus{outline:none}.gov-side-nav-item__arrow:focus{outline:none}.gov-side-nav-item__arrow:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0}.gov-side-nav-item__arrow .gov-icon{width:0.75rem;height:0.75rem}@media not all and (pointer: coarse){.gov-side-nav-item__arrow:hover{background:var(--gov-side-nav-hover-bg, var(--gov-color-primary-200))}}.gov-side-nav-item__content{display:none}.gov-side-nav-item--w-icon .gov-side-nav-item__label{margin-left:2rem}.gov-side-nav-item--w-icon .gov-side-nav-item__icon+.gov-side-nav-item__label{margin-left:0}.gov-side-nav-item .gov-side-nav-item .gov-side-nav-item__header{border:none !important}.gov-side-nav-item .gov-side-nav-item .gov-side-nav-item__name{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);padding:0.625rem 0.5rem;font-weight:bold}.gov-side-nav-item .gov-side-nav-item[aria-expanded=\"\"],.gov-side-nav-item .gov-side-nav-item[aria-expanded=true i],.gov-side-nav-item .gov-side-nav-item[aria-expanded=\"1\"]{background:var(--gov-side-nav-bg-level-2, var(--gov-color-secondary-300))}.gov-side-nav-item .gov-side-nav-item[aria-expanded=\"\"][inverse=\"\"],.gov-side-nav-item .gov-side-nav-item[aria-expanded=\"\"][inverse=true i],.gov-side-nav-item .gov-side-nav-item[aria-expanded=\"\"][inverse=\"1\"],.gov-side-nav-item .gov-side-nav-item[aria-expanded=true i][inverse=\"\"],.gov-side-nav-item .gov-side-nav-item[aria-expanded=true i][inverse=true i],.gov-side-nav-item .gov-side-nav-item[aria-expanded=true i][inverse=\"1\"],.gov-side-nav-item .gov-side-nav-item[aria-expanded=\"1\"][inverse=\"\"],.gov-side-nav-item .gov-side-nav-item[aria-expanded=\"1\"][inverse=true i],.gov-side-nav-item .gov-side-nav-item[aria-expanded=\"1\"][inverse=\"1\"]{background:var(--gov-side-nav-bg-level-2, var(--gov-color-neutral-white))}.gov-side-nav-item .gov-side-nav-item .gov-side-nav-item .gov-side-nav-item__name{gap:0.75rem;font-weight:inherit}.gov-side-nav-item[compact=\"\"] .gov-side-nav-item__header,.gov-side-nav-item[compact=true i] .gov-side-nav-item__header,.gov-side-nav-item[compact=\"1\"] .gov-side-nav-item__header{border-bottom:none}.gov-side-nav-item[aria-expanded=\"\"]>.gov-side-nav-item__header .gov-side-nav-item__arrow .gov-icon,.gov-side-nav-item[aria-expanded=true i]>.gov-side-nav-item__header .gov-side-nav-item__arrow .gov-icon,.gov-side-nav-item[aria-expanded=\"1\"]>.gov-side-nav-item__header .gov-side-nav-item__arrow .gov-icon{transform:scale(-1)}.gov-side-nav-item[aria-expanded=\"\"]>.gov-side-nav-item__content,.gov-side-nav-item[aria-expanded=true i]>.gov-side-nav-item__content,.gov-side-nav-item[aria-expanded=\"1\"]>.gov-side-nav-item__content{display:block}";
|
|
9
|
+
|
|
10
|
+
const GovSideNavItem = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
registerInstance(this, hostRef);
|
|
13
|
+
this.govChange = createEvent(this, "gov-change", 7);
|
|
14
|
+
this.isExpandedState = undefined;
|
|
15
|
+
this.inverse = false;
|
|
16
|
+
this.compact = false;
|
|
17
|
+
this.identifier = undefined;
|
|
18
|
+
this.count = false;
|
|
19
|
+
this.label = undefined;
|
|
20
|
+
this.disabled = false;
|
|
21
|
+
this.href = undefined;
|
|
22
|
+
this.isExpanded = false;
|
|
23
|
+
this.h = govHost(this.host);
|
|
24
|
+
}
|
|
25
|
+
validateLabel(newValue) {
|
|
26
|
+
if (!newValue) {
|
|
27
|
+
govErrorLog(`[${SideNavItemClass.root}]: Parameter label is required.`);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
emmitChange() {
|
|
31
|
+
this.govChange.emit({ open: this.isExpandedState, element: this.host });
|
|
32
|
+
}
|
|
33
|
+
componentWillLoad() {
|
|
34
|
+
this.isExpandedState = this.isExpanded;
|
|
35
|
+
this.validateLabel(this.label);
|
|
36
|
+
}
|
|
37
|
+
get classNames() {
|
|
38
|
+
const { h } = this;
|
|
39
|
+
return prepareClasses([SideNavItemClass.root, h.hasSlot('icon') && SideNavItemClass.rootWithIcon]);
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
const { isExpandedState, label } = this;
|
|
43
|
+
// TODO: správný počet zanořených childů
|
|
44
|
+
const hasChilds = this.host.children.length > 1;
|
|
45
|
+
return (h(Host, { class: this.classNames, role: "listitem", inverse: this.inverse, "aria-expanded": booleanString(isExpandedState) }, this.href ? (h("div", { class: SideNavItemClass.header }, h("a", { class: SideNavItemClass.name, href: this.href }, this.h.hasSlot('icon') && (h("span", { class: SideNavItemClass.icon }, h("slot", { name: "icon" }))), h("span", { class: SideNavItemClass.label }, label), this.count && (h("span", { class: SideNavItemClass.chip }, h("gov-chip", { variant: "secondary", size: "s", inverse: this.inverse }, "3")))), hasChilds && (h("button", { type: "button", class: SideNavItemClass.arrow, onClick: () => this.toggle() }, h("gov-icon", { name: "chevron-down" }))))) : (h("div", { class: SideNavItemClass.header }, h("button", { class: SideNavItemClass.name, type: "button", onClick: () => this.toggle() }, this.h.hasSlot('icon') && (h("span", { class: SideNavItemClass.icon }, h("slot", { name: "icon" }))), h("span", { class: SideNavItemClass.label }, label), hasChilds && (h("span", { class: SideNavItemClass.arrow }, h("gov-icon", { name: "chevron-down" })))))), hasChilds && (h("div", { class: SideNavItemClass.content }, h("slot", null)))));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Opening the sidenav
|
|
49
|
+
*/
|
|
50
|
+
async open() {
|
|
51
|
+
this.isExpandedState = true;
|
|
52
|
+
this.emmitChange();
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Closing the sidenav
|
|
56
|
+
*/
|
|
57
|
+
async close() {
|
|
58
|
+
this.isExpandedState = false;
|
|
59
|
+
this.emmitChange();
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* sidenav switch
|
|
63
|
+
*/
|
|
64
|
+
async toggle() {
|
|
65
|
+
this.isExpandedState = !this.isExpandedState;
|
|
66
|
+
this.emmitChange();
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Returns the current state of the component
|
|
70
|
+
*/
|
|
71
|
+
async currentState() {
|
|
72
|
+
return this.isExpandedState;
|
|
73
|
+
}
|
|
74
|
+
get host() { return getElement(this); }
|
|
75
|
+
static get watchers() { return {
|
|
76
|
+
"label": ["validateLabel"]
|
|
77
|
+
}; }
|
|
78
|
+
};
|
|
79
|
+
GovSideNavItem.style = govSideNavItemCss;
|
|
80
|
+
|
|
81
|
+
export { GovSideNavItem as gov_side_nav_item };
|
|
82
|
+
|
|
83
|
+
//# sourceMappingURL=gov-side-nav-item.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"gov-side-nav-item.entry.js","mappings":";;;;;;;AAAA,MAAM,iBAAiB,GAAG,soKAAsoK;;MCYnpK,cAAc;EAG1B;;;;mBAUoC,KAAK;mBAIL,KAAK;;iBAQP,KAAK;;oBASF,KAAK;;sBASyB,KAAK;IAvCvE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EA6CD,aAAa,CAAC,QAAgB;IAC7B,IAAI,CAAC,QAAQ,EAAE;MACd,WAAW,CAAC,IAAI,gBAAgB,CAAC,IAAI,iCAAiC,CAAC,CAAA;KACvE;GACD;EAEO,WAAW;IAClB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;GACvE;EAED,iBAAiB;IAChB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,UAAU,CAAA;IACtC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;GAC9B;EAED,IAAI,UAAU;IACb,MAAM,EAAE,CAAC,EAAE,GAAG,IAAI,CAAA;IAElB,OAAO,cAAc,CAAC,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAA;GAClG;EAED,MAAM;IACL,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;;IAEvC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAA;IAE/C,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,EAAC,UAAU,EAAC,OAAO,EAAE,IAAI,CAAC,OAAO,mBAAiB,aAAa,CAAC,eAAe,CAAC,IAChH,IAAI,CAAC,IAAI,IACT,WAAK,KAAK,EAAE,gBAAgB,CAAC,MAAM,IAClC,SAAG,KAAK,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAC9C,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtB,YAAM,KAAK,EAAE,gBAAgB,CAAC,IAAI,IACjC,YAAM,IAAI,EAAC,MAAM,GAAG,CACd,CACP,EACD,YAAM,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAG,KAAK,CAAQ,EAElD,IAAI,CAAC,KAAK,KACV,YAAM,KAAK,EAAE,gBAAgB,CAAC,IAAI,IACjC,gBAAU,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,IAAI,CAAC,OAAO,QAEjD,CACL,CACP,CACE,EAEH,SAAS,KACT,cAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,gBAAgB,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,MAAM,EAAE,IAChF,gBAAU,IAAI,EAAC,cAAc,GAAY,CACjC,CACT,CACI,KAEN,WAAK,KAAK,EAAE,gBAAgB,CAAC,MAAM,IAClC,cAAQ,KAAK,EAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,MAAM,EAAE,IAC9E,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtB,YAAM,KAAK,EAAE,gBAAgB,CAAC,IAAI,IACjC,YAAM,IAAI,EAAC,MAAM,GAAG,CACd,CACP,EACD,YAAM,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAG,KAAK,CAAQ,EAElD,SAAS,KACT,YAAM,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAClC,gBAAU,IAAI,EAAC,cAAc,GAAY,CACnC,CACP,CACO,CACJ,CACN,EAEA,SAAS,KACT,WAAK,KAAK,EAAE,gBAAgB,CAAC,OAAO,IACnC,eAAQ,CACH,CACN,CACK,EACP;GACD;;;;EAMD,MAAM,IAAI;IACT,IAAI,CAAC,eAAe,GAAG,IAAI,CAAA;IAC3B,IAAI,CAAC,WAAW,EAAE,CAAA;GAClB;;;;EAMD,MAAM,KAAK;IACV,IAAI,CAAC,eAAe,GAAG,KAAK,CAAA;IAC5B,IAAI,CAAC,WAAW,EAAE,CAAA;GAClB;;;;EAMD,MAAM,MAAM;IACX,IAAI,CAAC,eAAe,GAAG,CAAC,IAAI,CAAC,eAAe,CAAA;IAC5C,IAAI,CAAC,WAAW,EAAE,CAAA;GAClB;;;;EAMD,MAAM,YAAY;IACjB,OAAO,IAAI,CAAC,eAAe,CAAA;GAC3B;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-side-nav/gov-side-nav-item.scss?tag=gov-side-nav-item","../../../packages/core/src/components/gov-side-nav/gov-side-nav-item.tsx"],"sourcesContent":["/*\n * Side nav - Item\n */\n\n$class: \".gov-side-nav-item\";\n\n#{$class} {\n\t@include base();\n\t&__header {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tborder-bottom: $side-nav-border;\n\t}\n\t&__name {\n\t\t@include button-core();\n\t\t@include typography($font-size-m);\n\t\t@include focus-outline();\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\tflex: 1 1 auto;\n\t\tjustify-content: flex-start;\n\t\tpadding: rem-calc(12 16 12 8);\n\t\tcolor: $side-nav-color;\n\t\ttext-align: left;\n\t\ttransition: background-color $t;\n\t\t@at-root button#{&} {\n\t\t\tpadding-right: 0 !important;\n\t\t}\n\n\t\t// HOVERS\n\t\t@include hover() {\n\t\t\tbackground: $side-nav-hover-bg;\n\t\t}\n\t}\n\t&__icon {\n\t\tdisplay: flex;\n\t\tflex: 0 0 auto;\n\t\twidth: rem-calc(16);\n\t\theight: rem-calc(16);\n\t\t.gov-icon {\n\t\t\tmargin: 0;\n\t\t\tcolor: $side-nav-color;\n\t\t}\n\t}\n\t&__label {\n\t\tcolor: inherit;\n\t}\n\t&__chip {\n\t\tdisplay: flex;\n\t\tflex: 0 0 auto;\n\t}\n\t&__arrow {\n\t\t@include button-core();\n\t\t@include focus-outline();\n\t\tflex: 0 0 auto;\n\t\talign-self: stretch;\n\t\twidth: rem-calc(48);\n\t\tmargin-left: auto;\n\t\tcolor: $side-nav-arrow-color;\n\t\ttransition: background-color $t;\n\t\t.gov-icon {\n\t\t\twidth: rem-calc(12);\n\t\t\theight: rem-calc(12);\n\t\t}\n\t\t@include hover() {\n\t\t\tbackground: $side-nav-hover-bg;\n\t\t}\n\t}\n\t&__content {\n\t\tdisplay: none;\n\t}\n\n\t// VARIANTS\n\t&--w-icon &__label {\n\t\tmargin-left: rem-calc(32);\n\t}\n\t&--w-icon &__icon + &__label {\n\t\tmargin-left: 0;\n\t}\n\t// nested styles\n\t& & {\n\t\t#{$class} {\n\t\t\t&__header {\n\t\t\t\tborder: none !important;\n\t\t\t}\n\t\t\t&__name {\n\t\t\t\t@include typography($font-size-s);\n\t\t\t\tpadding: rem-calc(10 8);\n\t\t\t\tfont-weight: bold;\n\t\t\t}\n\t\t}\n\t\t@include parameter(\"aria-expanded\") {\n\t\t\tbackground: $side-nav-bg-level-2;\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\tbackground: $side-nav-bg-level-2-inverse;\n\t\t\t}\n\t\t}\n\t}\n\t& & & {\n\t\t#{$class} {\n\t\t\t&__name {\n\t\t\t\tgap: rem-calc(12);\n\t\t\t\tfont-weight: inherit;\n\t\t\t}\n\t\t}\n\t}\n\t@include parameter(\"compact\") {\n\t\t#{$class} {\n\t\t\t&__header {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t// STATES\n\t@include parameter(\"aria-expanded\") {\n\t\t& > #{$class}__header #{$class}__arrow .gov-icon {\n\t\t\ttransform: scale(-1);\n\t\t}\n\t\t& > #{$class}__content {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n","import { Component, Element, h, Prop, State, Watch, Host, Method, Event, EventEmitter } from '@stencil/core'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { SideNavItemClass } from './constants'\nimport { booleanString, prepareClasses } from '../../helpers/Dom/template'\nimport { GovSideNavItemChangeEvent } from './gov-side-nav-item.d'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-side-nav-item',\n\tstyleUrl: 'gov-side-nav-item.scss',\n})\nexport class GovSideNavItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovSideNavItemElement\n\t@State() isExpandedState: boolean\n\n\t/**\n\t * Determide if component should have inversed colors to be used on dark background\n\t */\n\t@Prop() readonly inverse: boolean = false\n\t/**\n\t * Determide if component should have compact styles.\n\t */\n\t@Prop() readonly compact: boolean = false\n\t/**\n\t * Custom sidenav item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Defined the count of nested items\n\t */\n\t@Prop() readonly count: boolean = false\n\t/**\n\t * Item name of the sidenav\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Makes the button component disabled.\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Defines whether the sidenav is open or closed by button\n\t */\n\t@Prop({ attribute: 'is-expanded' }) readonly isExpanded: boolean = false\n\t/**\n\t * Called when the sidenav state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovSideNavItemChangeEvent>\n\n\t@Watch('label')\n\tvalidateLabel(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${SideNavItemClass.root}]: Parameter label is required.`)\n\t\t}\n\t}\n\n\tprivate emmitChange(): void {\n\t\tthis.govChange.emit({ open: this.isExpandedState, element: this.host })\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.isExpandedState = this.isExpanded\n\t\tthis.validateLabel(this.label)\n\t}\n\n\tget classNames(): string {\n\t\tconst { h } = this\n\n\t\treturn prepareClasses([SideNavItemClass.root, h.hasSlot('icon') && SideNavItemClass.rootWithIcon])\n\t}\n\n\trender() {\n\t\tconst { isExpandedState, label } = this\n\t\t// TODO: správný počet zanořených childů\n\t\tconst hasChilds = this.host.children.length > 1\n\n\t\treturn (\n\t\t\t<Host class={this.classNames} role=\"listitem\" inverse={this.inverse} aria-expanded={booleanString(isExpandedState)}>\n\t\t\t\t{this.href ? (\n\t\t\t\t\t<div class={SideNavItemClass.header}>\n\t\t\t\t\t\t<a class={SideNavItemClass.name} href={this.href}>\n\t\t\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t\t\t<span class={SideNavItemClass.icon}>\n\t\t\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<span class={SideNavItemClass.label}>{label}</span>\n\n\t\t\t\t\t\t\t{this.count && (\n\t\t\t\t\t\t\t\t<span class={SideNavItemClass.chip}>\n\t\t\t\t\t\t\t\t\t<gov-chip variant=\"secondary\" size=\"s\" inverse={this.inverse}>\n\t\t\t\t\t\t\t\t\t\t{/* // TODO: správný počet zanořených childů */}3\n\t\t\t\t\t\t\t\t\t</gov-chip>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</a>\n\n\t\t\t\t\t\t{hasChilds && (\n\t\t\t\t\t\t\t<button type=\"button\" class={SideNavItemClass.arrow} onClick={() => this.toggle()}>\n\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-down\"></gov-icon>\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={SideNavItemClass.header}>\n\t\t\t\t\t\t<button class={SideNavItemClass.name} type=\"button\" onClick={() => this.toggle()}>\n\t\t\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t\t\t<span class={SideNavItemClass.icon}>\n\t\t\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<span class={SideNavItemClass.label}>{label}</span>\n\n\t\t\t\t\t\t\t{hasChilds && (\n\t\t\t\t\t\t\t\t<span class={SideNavItemClass.arrow}>\n\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-down\"></gov-icon>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\n\t\t\t\t{hasChilds && (\n\t\t\t\t\t<div class={SideNavItemClass.content}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Opening the sidenav\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tthis.isExpandedState = true\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Closing the sidenav\n\t */\n\t@Method()\n\tasync close(): Promise<void> {\n\t\tthis.isExpandedState = false\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * sidenav switch\n\t */\n\t@Method()\n\tasync toggle(): Promise<void> {\n\t\tthis.isExpandedState = !this.isExpandedState\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync currentState(): Promise<boolean> {\n\t\treturn this.isExpandedState\n\t}\n}\n"],"version":3}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-eb59f132.js';
|
|
2
|
+
import { S as SideNavItemClass, a as SideNavClass } from './constants-867ac6e2.js';
|
|
3
|
+
import { v as validateWcagLabel } from './wcag-7d25e12b.js';
|
|
4
|
+
import { c as canValidateWcagOnRender } from './win-1dbd3f5c.js';
|
|
5
|
+
import { d as delay } from './utils-c057a3fa.js';
|
|
6
|
+
import { b as booleanString } from './template-df429738.js';
|
|
7
|
+
import './gov.log-49da0221.js';
|
|
8
|
+
import './string.utils-f268fc6b.js';
|
|
9
|
+
|
|
10
|
+
const govSideNavCss = ".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-side-nav{position:relative;display:block;width:100%}";
|
|
11
|
+
|
|
12
|
+
const GovSideNav = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
registerInstance(this, hostRef);
|
|
15
|
+
this.govChange = createEvent(this, "gov-change", 7);
|
|
16
|
+
this.inverse = false;
|
|
17
|
+
this.compact = false;
|
|
18
|
+
this.wcagLabel = undefined;
|
|
19
|
+
this.wcagLabelledBy = undefined;
|
|
20
|
+
}
|
|
21
|
+
componentDidLoad() {
|
|
22
|
+
this.host.querySelectorAll(SideNavItemClass.root).forEach((child) => {
|
|
23
|
+
child.setAttribute('inverse', booleanString(this.inverse));
|
|
24
|
+
child.setAttribute('compact', booleanString(this.compact));
|
|
25
|
+
child.addEventListener('gov-change', (e) => {
|
|
26
|
+
e.stopPropagation();
|
|
27
|
+
this.govChange.emit(e.detail);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
async componentDidRender() {
|
|
32
|
+
if (canValidateWcagOnRender()) {
|
|
33
|
+
await delay(500);
|
|
34
|
+
await this.validateWcag();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
return (h(Host, { class: SideNavClass.root, compact: this.compact, inverse: this.inverse, "arial-label": this.wcagLabel, "arial-labelledby": this.wcagLabelledBy }, h("aside", { class: SideNavClass.aside, role: 'list' }, h("slot", null))));
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Validate the WCAG attributes of the component
|
|
42
|
+
*/
|
|
43
|
+
async validateWcag() {
|
|
44
|
+
validateWcagLabel(this.wcagLabel, this.wcagLabelledBy, SideNavClass.root);
|
|
45
|
+
}
|
|
46
|
+
get host() { return getElement(this); }
|
|
47
|
+
};
|
|
48
|
+
GovSideNav.style = govSideNavCss;
|
|
49
|
+
|
|
50
|
+
export { GovSideNav as gov_side_nav };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=gov-side-nav.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"gov-side-nav.entry.js","mappings":";;;;;;;;;AAAA,MAAM,aAAa,GAAG,iZAAiZ;;MCa1Z,UAAU;;;;mBAMc,KAAK;mBAIL,KAAK;;;;EAczC,gBAAgB;IACf,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAAgC;MAC1F,KAAK,CAAC,YAAY,CAAC,SAAS,EAAE,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;MAC1D,KAAK,CAAC,YAAY,CAAC,SAAS,EAAE,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;MAC1D,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAuD;QAC5F,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;OAC7B,CAAC,CAAA;KACF,CAAC,CAAA;GACF;EAED,MAAM,kBAAkB;IACvB,IAAI,uBAAuB,EAAE,EAAE;MAC9B,MAAM,KAAK,CAAC,GAAG,CAAC,CAAA;MAChB,MAAM,IAAI,CAAC,YAAY,EAAE,CAAA;KACzB;GACD;EAED,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,iBAAe,IAAI,CAAC,SAAS,sBAAoB,IAAI,CAAC,cAAc,IAC/I,aAAO,KAAK,EAAE,YAAY,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,IAC7C,eAAQ,CACD,CACF,EACP;GACD;;;;EAMD,MAAM,YAAY;IACjB,iBAAiB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;GACzE;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-side-nav/gov-side-nav.scss?tag=gov-side-nav","../../../packages/core/src/components/gov-side-nav/gov-side-nav.tsx"],"sourcesContent":["/*\n * Side nav\n */\n\n$class: \".gov-side-nav\";\n\n#{$class} {\n\t@include base();\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop } from '@stencil/core'\nimport { SideNavClass, SideNavItemClass } from './constants'\nimport { GovSideNavItemCustomEvent } from '../../components'\nimport { GovSideNavItemChangeEvent } from './gov-side-nav-item.d'\nimport { validateWcagLabel } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\nimport { booleanString } from '../../helpers/Dom/template'\n\n@Component({\n\ttag: 'gov-side-nav',\n\tstyleUrl: 'gov-side-nav.scss',\n})\nexport class GovSideNav {\n\t@Element() readonly host: HTMLGovSideNavElement\n\n\t/**\n\t * Determide if component should have inversed colors to be used on dark background.\n\t */\n\t@Prop() readonly inverse: boolean = false\n\t/**\n\t * Determide if component should have compact styles.\n\t */\n\t@Prop() readonly compact: boolean = false\n\t/**\n\t * Adds accessible label for the sidenav 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\t/**\n\t * Called when the sidenav state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovSideNavItemChangeEvent>\n\n\tcomponentDidLoad() {\n\t\tthis.host.querySelectorAll(SideNavItemClass.root).forEach((child: HTMLGovSideNavItemElement) => {\n\t\t\tchild.setAttribute('inverse', booleanString(this.inverse))\n\t\t\tchild.setAttribute('compact', booleanString(this.compact))\n\t\t\tchild.addEventListener('gov-change', (e: GovSideNavItemCustomEvent<GovSideNavItemChangeEvent>) => {\n\t\t\t\te.stopPropagation()\n\t\t\t\tthis.govChange.emit(e.detail)\n\t\t\t})\n\t\t})\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={SideNavClass.root} compact={this.compact} inverse={this.inverse} arial-label={this.wcagLabel} arial-labelledby={this.wcagLabelledBy}>\n\t\t\t\t<aside class={SideNavClass.aside} role={'list'}>\n\t\t\t\t\t<slot />\n\t\t\t\t</aside>\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, SideNavClass.root)\n\t}\n}\n"],"version":3}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { r as registerInstance, h, a as Host, g as getElement } from './index-eb59f132.js';
|
|
2
|
+
import { p as pick, d as delay } from './utils-c057a3fa.js';
|
|
3
|
+
import { V as Variants } from './variants-2b936d58.js';
|
|
4
|
+
import { g as govHost } from './template-df429738.js';
|
|
5
|
+
import { v as validateProp } from './props-a85d9c89.js';
|
|
6
|
+
import { c as canValidateWcagOnRender } from './win-1dbd3f5c.js';
|
|
7
|
+
import { v as validateWcagLabel } from './wcag-7d25e12b.js';
|
|
8
|
+
import './gov.log-49da0221.js';
|
|
9
|
+
import './string.utils-f268fc6b.js';
|
|
10
|
+
|
|
11
|
+
const SkeletonVariants = pick(Variants, ["PRIMARY", "SECONDARY", "SUCCESS", "ERROR", "WARNING"]);
|
|
12
|
+
var SkeletonShapes;
|
|
13
|
+
(function (SkeletonShapes) {
|
|
14
|
+
SkeletonShapes["CIRCLE"] = "circle";
|
|
15
|
+
SkeletonShapes["REACT"] = "rect";
|
|
16
|
+
SkeletonShapes["TEXT"] = "text";
|
|
17
|
+
})(SkeletonShapes || (SkeletonShapes = {}));
|
|
18
|
+
var SkeletonAnimation;
|
|
19
|
+
(function (SkeletonAnimation) {
|
|
20
|
+
SkeletonAnimation["PULSE"] = "pulse";
|
|
21
|
+
SkeletonAnimation["PROGRESS"] = "progress";
|
|
22
|
+
SkeletonAnimation["FALSE"] = "false";
|
|
23
|
+
})(SkeletonAnimation || (SkeletonAnimation = {}));
|
|
24
|
+
const SkeletonClass = {
|
|
25
|
+
root: 'gov-skeleton',
|
|
26
|
+
loader: 'gov-skeleton__loader',
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const govSkeletonCss = ".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-skeleton__loader{position:relative;display:inline-block;width:var(--gov-skeleton-width, 100%);height:var(--gov-skeleton-height, 20px);border-radius:var(--gov-skeleton-border-radius, var(--gov-border-radius, 0.1875rem));outline:none;overflow:hidden;box-sizing:border-box;will-change:transform}.gov-skeleton__loader+.gov-skeleton__loader{margin-top:var(--gov-skeleton-margin-top, 8px)}.gov-skeleton__loader.circle{width:var(--gov-skeleton-circle-size, 60px);height:var(--gov-skeleton-circle-size, 60px);border-radius:var(--gov-skeleton-circle-radius, 50%)}.gov-skeleton__loader.rect{border-radius:var(--gov-skeleton-rect-radius, 0)}.gov-skeleton__loader.progress{background-size:200px 100%;animation:progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite}.gov-skeleton__loader.pulse{animation:pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;animation-delay:0.5s}@media (prefers-reduced-motion: reduce){.gov-skeleton__loader.pulse,.gov-skeleton__loader.progress{background-image:none;animation:none}}.gov-skeleton[variant=warning] .gov-skeleton__loader{background-color:var(--gov-skeleton-warning-background, var(--gov-color-warning-100));background-repeat:no-repeat}.gov-skeleton[variant=warning] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-warning-background, var(--gov-color-warning-100)), var(--gov-skeleton-warning-foreground, var(--gov-color-warning-200)), var(--gov-skeleton-warning-background, var(--gov-color-warning-100)))}.gov-skeleton[variant=error] .gov-skeleton__loader{background-color:var(--gov-skeleton-error-background, var(--gov-color-error-100));background-repeat:no-repeat}.gov-skeleton[variant=error] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-error-background, var(--gov-color-error-100)), var(--gov-skeleton-error-foreground, var(--gov-color-error-200)), var(--gov-skeleton-error-background, var(--gov-color-error-100)))}.gov-skeleton[variant=secondary] .gov-skeleton__loader{background-color:var(--gov-skeleton-secondary-background, var(--gov-color-secondary-300));background-repeat:no-repeat}.gov-skeleton[variant=secondary] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-secondary-background, var(--gov-color-secondary-300)), var(--gov-skeleton-secondary-foreground, var(--gov-color-secondary-100)), var(--gov-skeleton-secondary-background, var(--gov-color-secondary-300)))}.gov-skeleton[variant=success] .gov-skeleton__loader{background-color:var(--gov-skeleton-success-background, var(--gov-color-success-100));background-repeat:no-repeat}.gov-skeleton[variant=success] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-success-background, var(--gov-color-success-100)), var(--gov-skeleton-success-foreground, var(--gov-color-success-200)), var(--gov-skeleton-success-background, var(--gov-color-success-100)))}.gov-skeleton[variant=primary] .gov-skeleton__loader{background-color:var(--gov-skeleton-primary-background, var(--gov-color-primary-100));background-repeat:no-repeat}.gov-skeleton[variant=primary] .gov-skeleton__loader.progress{background-image:linear-gradient(90deg, var(--gov-skeleton-primary-background, var(--gov-color-primary-100)), var(--gov-skeleton-primary-foreground, var(--gov-color-primary-200)), var(--gov-skeleton-primary-background, var(--gov-color-primary-100)))}";
|
|
30
|
+
|
|
31
|
+
const GovSkeleton = class {
|
|
32
|
+
constructor(hostRef) {
|
|
33
|
+
registerInstance(this, hostRef);
|
|
34
|
+
this.items = [];
|
|
35
|
+
this.variant = "secondary";
|
|
36
|
+
this.count = 1;
|
|
37
|
+
this.shape = "text";
|
|
38
|
+
this.width = null;
|
|
39
|
+
this.height = null;
|
|
40
|
+
this.animation = "progress";
|
|
41
|
+
this.wcagLabel = undefined;
|
|
42
|
+
this.h = govHost(this.host);
|
|
43
|
+
}
|
|
44
|
+
validateVariant(newValue) {
|
|
45
|
+
validateProp(SkeletonVariants, newValue, SkeletonClass.root);
|
|
46
|
+
}
|
|
47
|
+
validateShape(newValue) {
|
|
48
|
+
validateProp(SkeletonShapes, newValue, SkeletonClass.root);
|
|
49
|
+
}
|
|
50
|
+
validateAnimation(newValue) {
|
|
51
|
+
validateProp(SkeletonAnimation, newValue, SkeletonClass.root);
|
|
52
|
+
}
|
|
53
|
+
componentWillLoad() {
|
|
54
|
+
this.validateVariant(this.variant);
|
|
55
|
+
this.validateShape(this.shape);
|
|
56
|
+
this.validateAnimation(this.animation);
|
|
57
|
+
this.init();
|
|
58
|
+
}
|
|
59
|
+
componentWillUpdate() {
|
|
60
|
+
this.init();
|
|
61
|
+
}
|
|
62
|
+
async componentDidRender() {
|
|
63
|
+
if (canValidateWcagOnRender()) {
|
|
64
|
+
await delay(500);
|
|
65
|
+
await this.validateWcag();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
init() {
|
|
69
|
+
this.items.length = this.count;
|
|
70
|
+
this.items.fill(1);
|
|
71
|
+
}
|
|
72
|
+
get style() {
|
|
73
|
+
const dimenssionsStyles = {
|
|
74
|
+
width: null,
|
|
75
|
+
height: null,
|
|
76
|
+
};
|
|
77
|
+
if (this.width) {
|
|
78
|
+
dimenssionsStyles.width = this.width;
|
|
79
|
+
}
|
|
80
|
+
if (this.height) {
|
|
81
|
+
dimenssionsStyles.height = this.height;
|
|
82
|
+
}
|
|
83
|
+
return Object.assign({}, dimenssionsStyles);
|
|
84
|
+
}
|
|
85
|
+
render() {
|
|
86
|
+
return (h(Host, { class: this.h.classes(SkeletonClass.root), variant: this.variant }, this.items.map((_, index) => {
|
|
87
|
+
return (h("span", { key: index, class: {
|
|
88
|
+
circle: this.shape === "circle",
|
|
89
|
+
rect: this.shape === "rect",
|
|
90
|
+
progress: this.animation === "progress",
|
|
91
|
+
pulse: this.animation === "pulse",
|
|
92
|
+
[SkeletonClass.loader]: true,
|
|
93
|
+
}, "aria-busy": "true", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuetext": this.wcagLabel, role: "progressbar", tabindex: "0", style: this.style }));
|
|
94
|
+
})));
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Validate the WCAG attributes of the component
|
|
98
|
+
*/
|
|
99
|
+
async validateWcag() {
|
|
100
|
+
validateWcagLabel(this.wcagLabel, undefined, SkeletonClass.root);
|
|
101
|
+
}
|
|
102
|
+
get host() { return getElement(this); }
|
|
103
|
+
static get watchers() { return {
|
|
104
|
+
"variant": ["validateVariant"],
|
|
105
|
+
"shape": ["validateShape"],
|
|
106
|
+
"animation": ["validateAnimation"]
|
|
107
|
+
}; }
|
|
108
|
+
};
|
|
109
|
+
GovSkeleton.style = govSkeletonCss;
|
|
110
|
+
|
|
111
|
+
export { GovSkeleton as gov_skeleton };
|
|
112
|
+
|
|
113
|
+
//# sourceMappingURL=gov-skeleton.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"gov-skeleton.entry.js","mappings":"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","names":[],"sources":["../../../packages/core/src/components/gov-loading/skeleton/constants.ts","../../../packages/core/src/components/gov-loading/skeleton/gov-skeleton.scss?tag=gov-skeleton","../../../packages/core/src/components/gov-loading/skeleton/gov-skeleton.tsx"],"sourcesContent":["import { pick } from \"../../../utils/utils\"\nimport { Variants } from \"../../../core/constants/variants\"\nimport { ValueOf } from \"../../../types/interfaces\"\n\nexport const SkeletonVariants = pick(Variants, [\"PRIMARY\", \"SECONDARY\", \"SUCCESS\", \"ERROR\", \"WARNING\"])\nexport type SkeletonVariantsType = `${ValueOf<typeof SkeletonVariants>}`\n\nexport enum SkeletonShapes {\n\tCIRCLE = 'circle',\n\tREACT = 'rect',\n\tTEXT = 'text'\n}\nexport type SkeletonShapesType = `${ValueOf<typeof SkeletonShapes>}`\n\nexport enum SkeletonAnimation {\n\tPULSE = 'pulse',\n\tPROGRESS = 'progress',\n\tFALSE = 'false'\n}\nexport type SkeletonAnimationType = `${ValueOf<typeof SkeletonAnimation>}`\n\nexport const SkeletonClass = {\n\troot: 'gov-skeleton',\n\tloader: 'gov-skeleton__loader',\n}\n","$class: \".gov-skeleton\";\n\n#{$class} {\n\t&__loader {\n\t\tposition: relative;\n\t\tdisplay: inline-block;\n\t\twidth: $skeleton-width;\n\t\theight: $skeleton-height;\n\t\tborder-radius: $skeleton-border-radius;\n\t\toutline: none;\n\t\toverflow: hidden;\n\t\tbox-sizing: border-box;\n\t\twill-change: transform;\n\n\t\t+ #{$class}__loader {\n\t\t\tmargin-top: $skeleton-margin-top;\n\t\t}\n\n\t\t&.circle {\n\t\t\twidth: $skeleton-circle-size;\n\t\t\theight: $skeleton-circle-size;\n\t\t\tborder-radius: $skeleton-circle-radius;\n\t\t}\n\n\t\t&.rect {\n\t\t\tborder-radius: $skeleton-rect-radius;\n\t\t}\n\n\t\t&.progress {\n\t\t\tbackground-size: 200px 100%;\n\t\t\tanimation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n\t\t}\n\n\t\t&.pulse {\n\t\t\tanimation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n\t\t\tanimation-delay: 0.5s;\n\t\t}\n\n\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\t&.pulse,\n\t\t\t&.progress {\n\t\t\t\tbackground-image: none;\n\t\t\t\tanimation: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t@each $variant, $definitions in $skeleton-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t#{$class}__loader {\n\t\t\t\tbackground-color: get(\"background\", $definitions);\n\t\t\t\tbackground-repeat: no-repeat;\n\n\t\t\t\t&.progress {\n\t\t\t\t\tbackground-image: linear-gradient(90deg, get(\"background\", $definitions), get(\"foreground\", $definitions), get(\"background\", $definitions));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport {\n\tSkeletonAnimation,\n\tSkeletonAnimationType,\n\tSkeletonClass, SkeletonShapes,\n\tSkeletonShapesType, SkeletonVariants,\n\tSkeletonVariantsType,\n} from \"./constants\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport { govHost } from \"../../../helpers/Dom/template\"\nimport { validateProp } from \"../../../helpers/Validate/props\"\nimport { canValidateWcagOnRender } from \"../../../helpers/Dom/win\"\nimport { delay } from \"../../../utils/utils\"\nimport { validateWcagLabel } from \"../../../helpers/Validate/wcag\"\n\n@Component({\n\ttag: \"gov-skeleton\",\n\tstyleUrl: \"gov-skeleton.scss\",\n})\nexport class GovSkeleton {\n\th: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovSkeletonElement\n\t/**\n\t * Style variation of the skeleton.\n\t */\n\t@Prop() readonly variant?: SkeletonVariantsType = \"secondary\"\n\t/**\n\t * Number of rows of current skeleton type\n\t */\n\t@Prop() count = 1\n\t/**\n\t * Shape of the skeleton\n\t */\n\t@Prop() shape?: SkeletonShapesType = \"text\"\n\t/**\n\t * Width of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() width: string = null\n\t/**\n\t * Height of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() height: string = null\n\t/**\n\t * Animation type\n\t */\n\t@Prop() animation?: SkeletonAnimationType = \"progress\"\n\t/**\n\t * Adds accessible label for the skeleton that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\n\titems: number[] = []\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(SkeletonVariants, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('shape')\n\tvalidateShape(newValue: string): void {\n\t\tvalidateProp(SkeletonShapes, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('animation')\n\tvalidateAnimation(newValue: string): void {\n\t\tvalidateProp(SkeletonAnimation, newValue, SkeletonClass.root)\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateShape(this.shape)\n\t\tthis.validateAnimation(this.animation)\n\t\tthis.init()\n\t}\n\n\tcomponentWillUpdate() {\n\t\tthis.init()\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\tinit() {\n\t\tthis.items.length = this.count\n\t\tthis.items.fill(1)\n\t}\n\n\tget style() {\n\t\tconst dimenssionsStyles: {\n\t\t\twidth?: string,\n\t\t\theight?: string,\n\t\t} = {\n\t\t\twidth: null,\n\t\t\theight: null,\n\t\t}\n\t\tif (this.width) {\n\t\t\tdimenssionsStyles.width = this.width\n\t\t}\n\n\t\tif (this.height) {\n\t\t\tdimenssionsStyles.height = this.height\n\t\t}\n\n\t\treturn { ...dimenssionsStyles }\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(SkeletonClass.root)} variant={this.variant}>\n\t\t\t\t{this.items.map((_, index) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<span\n\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\tclass={{\n\t\t\t\t\t\t\t\tcircle: this.shape === \"circle\",\n\t\t\t\t\t\t\t\trect: this.shape === \"rect\",\n\t\t\t\t\t\t\t\tprogress: this.animation === \"progress\",\n\t\t\t\t\t\t\t\tpulse: this.animation === \"pulse\",\n\t\t\t\t\t\t\t\t[SkeletonClass.loader]: true,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taria-busy=\"true\"\n\t\t\t\t\t\t\taria-valuemin=\"0\"\n\t\t\t\t\t\t\taria-valuemax=\"100\"\n\t\t\t\t\t\t\taria-valuetext={this.wcagLabel}\n\t\t\t\t\t\t\trole=\"progressbar\"\n\t\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\t\tstyle={this.style}\n\t\t\t\t\t\t></span>\n\t\t\t\t\t)\n\t\t\t\t})}\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, undefined, SkeletonClass.root)\n\t}\n}\n"],"version":3}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { r as registerInstance, h, a as Host, g as getElement } from './index-eb59f132.js';
|
|
2
|
+
import { v as validateProp } from './props-a85d9c89.js';
|
|
3
|
+
import { S as Sizes } from './sizes-6c5943b4.js';
|
|
4
|
+
import { p as pick } from './utils-c057a3fa.js';
|
|
5
|
+
import { g as govHost } from './template-df429738.js';
|
|
6
|
+
import './gov.log-49da0221.js';
|
|
7
|
+
import './win-1dbd3f5c.js';
|
|
8
|
+
|
|
9
|
+
const SpacerSize = pick(Sizes, ['_2XS', '_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL']);
|
|
10
|
+
var SpacerBreakpoints;
|
|
11
|
+
(function (SpacerBreakpoints) {
|
|
12
|
+
SpacerBreakpoints["NONE"] = "none";
|
|
13
|
+
SpacerBreakpoints["SM"] = "sm";
|
|
14
|
+
SpacerBreakpoints["MD"] = "md";
|
|
15
|
+
SpacerBreakpoints["LG"] = "lg";
|
|
16
|
+
SpacerBreakpoints["XL"] = "xl";
|
|
17
|
+
})(SpacerBreakpoints || (SpacerBreakpoints = {}));
|
|
18
|
+
const SpacerClass = {
|
|
19
|
+
root: 'gov-spacer',
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const govSpacerCss = ".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-spacer{position:relative;display:block;width:100%}.gov-spacer[size=unset]{height:0}.gov-spacer[size=\"2xs\"]{height:0.25rem}.gov-spacer[size=xs]{height:0.5rem}.gov-spacer[size=s]{height:0.75rem}.gov-spacer[size=m]{height:1rem}.gov-spacer[size=l]{height:1.25rem}.gov-spacer[size=xl]{height:1.75rem}.gov-spacer[size=\"2xl\"]{height:2rem}.gov-spacer[size=\"3xl\"]{height:3rem}.gov-spacer[size=\"4xl\"]{height:4.5rem}.gov-spacer[breakpoint=none]{display:none}.gov-spacer[breakpoint=sm]{display:none}@media (min-width: 30em){.gov-spacer[breakpoint=sm]{display:block}}.gov-spacer[breakpoint=md]{display:none}@media (min-width: 48em){.gov-spacer[breakpoint=md]{display:block}}.gov-spacer[breakpoint=lg]{display:none}@media (min-width: 64em){.gov-spacer[breakpoint=lg]{display:block}}.gov-spacer[breakpoint=xl]{display:none}@media (min-width: 75em){.gov-spacer[breakpoint=xl]{display:block}}";
|
|
23
|
+
|
|
24
|
+
const GovSpacer = class {
|
|
25
|
+
constructor(hostRef) {
|
|
26
|
+
registerInstance(this, hostRef);
|
|
27
|
+
this.size = undefined;
|
|
28
|
+
this.breakpoint = undefined;
|
|
29
|
+
this.h = govHost(this.host);
|
|
30
|
+
}
|
|
31
|
+
validateSize(newValue) {
|
|
32
|
+
validateProp(SpacerSize, newValue, SpacerClass.root);
|
|
33
|
+
}
|
|
34
|
+
validateBreakpoint(newValue) {
|
|
35
|
+
validateProp(SpacerBreakpoints, newValue, SpacerClass.root);
|
|
36
|
+
}
|
|
37
|
+
componentWillLoad() {
|
|
38
|
+
this.validateSize(this.size);
|
|
39
|
+
this.validateBreakpoint(this.breakpoint);
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
return h(Host, { class: this.h.classes(SpacerClass.root), size: this.size, breakpoint: this.breakpoint });
|
|
43
|
+
}
|
|
44
|
+
get host() { return getElement(this); }
|
|
45
|
+
static get watchers() { return {
|
|
46
|
+
"size": ["validateSize"],
|
|
47
|
+
"breakpoint": ["validateBreakpoint"]
|
|
48
|
+
}; }
|
|
49
|
+
};
|
|
50
|
+
GovSpacer.style = govSpacerCss;
|
|
51
|
+
|
|
52
|
+
export { GovSpacer as gov_spacer };
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=gov-spacer.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"gov-spacer.entry.js","mappings":";;;;;;;;AAIO,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAGvG,IAAY,iBAMX;AAND,WAAY,iBAAiB;EAC5B,kCAAa,CAAA;EACb,8BAAS,CAAA;EACT,8BAAS,CAAA;EACT,8BAAS,CAAA;EACT,8BAAS,CAAA;AACV,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,QAM5B;AAGM,MAAM,WAAW,GAAG;EAC1B,IAAI,EAAE,YAAY;CAClB;;AClBD,MAAM,YAAY,GAAG,gtCAAgtC;;MCUxtC,SAAS;EAErB;;;sBAWsD,SAAS;IAV9D,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAYD,YAAY,CAAC,QAAgB;IAC5B,YAAY,CAAC,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,CAAA;GACpD;EAGD,kBAAkB,CAAC,QAAgB;IAClC,YAAY,CAAC,iBAAiB,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,CAAA;GAC3D;EAED,iBAAiB;IAChB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC5B,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;GACxC;EAED,MAAM;IACL,OAAO,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,GAAS,CAAA;GAC3G;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-spacer/constants.tsx","../../../packages/core/src/components/gov-spacer/gov-spacer.scss?tag=gov-spacer","../../../packages/core/src/components/gov-spacer/gov-spacer.tsx"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const SpacerSize = pick(Sizes, ['_2XS', '_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL'])\nexport type SpacerSizeType = `${ValueOf<typeof SpacerSize>}`\n\nexport enum SpacerBreakpoints {\n\tNONE = 'none',\n\tSM = 'sm',\n\tMD = 'md',\n\tLG = 'lg',\n\tXL = 'xl',\n}\nexport type SpacerBreakpointsType = `${ValueOf<typeof SpacerBreakpoints>}`\n\nexport const SpacerClass = {\n\troot: 'gov-spacer',\n}\n","/*\n * Spacer\n */\n\n$class: \".gov-spacer\";\n\n#{$class} {\n\t@include base();\n\n\t// VARIANTS\n\t@each $name, $value in $sizes {\n\t\t&[size=\"#{$name}\"] {\n\t\t\theight: #{$value};\n\t\t}\n\t}\n\t@each $name, $value in $mq-breakpoints {\n\t\t&[breakpoint=\"#{$name}\"] {\n\t\t\tdisplay: none;\n\n\t\t\t@if #{$value} != \"0\" {\n\t\t\t\t@include mq($from: #{$name}) {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch } from '@stencil/core'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { SpacerBreakpoints, SpacerBreakpointsType, SpacerClass, SpacerSize, SpacerSizeType } from './constants'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { govHost } from '../../helpers/Dom/template'\n\n@Component({\n\ttag: 'gov-spacer',\n\tstyleUrl: 'gov-spacer.scss',\n})\nexport class GovSpacer {\n\tprivate h: GovHost\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\t@Element() host: HTMLGovSpacerElement\n\t/**\n\t * Spacer’s size\n\t */\n\t@Prop() readonly size?: SpacerSizeType\n\t/**\n\t * Breakpoint\n\t */\n\t@Prop() readonly breakpoint?: SpacerBreakpointsType = undefined\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(SpacerSize, newValue, SpacerClass.root)\n\t}\n\n\t@Watch('breakpoint')\n\tvalidateBreakpoint(newValue: string): void {\n\t\tvalidateProp(SpacerBreakpoints, newValue, SpacerClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateBreakpoint(this.breakpoint)\n\t}\n\n\trender() {\n\t\treturn <Host class={this.h.classes(SpacerClass.root)} size={this.size} breakpoint={this.breakpoint}></Host>\n\t}\n}\n"],"version":3}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { r as registerInstance, h, a as Host, g as getElement } from './index-eb59f132.js';
|
|
2
|
+
import { g as govHost } from './template-df429738.js';
|
|
3
|
+
import { v as validateProp } from './props-a85d9c89.js';
|
|
4
|
+
import { a as StatsBarItemClass, c as StatsBarIconPosition } from './constants-27b48cd1.js';
|
|
5
|
+
import './gov.log-49da0221.js';
|
|
6
|
+
import './win-1dbd3f5c.js';
|
|
7
|
+
import './utils-c057a3fa.js';
|
|
8
|
+
import './variants-2b936d58.js';
|
|
9
|
+
|
|
10
|
+
const govStatsbarItemCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-statsbar-item{position:relative;display:block;padding:1.25rem}.gov-statsbar-item__icon,.gov-statsbar-item__number{margin-bottom:1rem}.gov-statsbar-item__icon,.gov-statsbar-item__icon .gov-icon{display:block;width:2rem;height:2rem}.gov-statsbar-item__number{font-weight:var(--gov-text-5xl-font-weight);font-size:var(--gov-text-5xl-font-size);line-height:var(--gov-text-5xl-line-height);letter-spacing:var(--gov-text-5xl-letter-spacing)}.gov-statsbar-item__text{font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);letter-spacing:0.0125em}.gov-statsbar-item__text>*:last-child{margin-bottom:0}.gov-statsbar-item[icon-position=left]{padding-left:3rem}.gov-statsbar-item[icon-position=left] .gov-statsbar-item__icon{position:absolute;top:1.5rem;left:0}@media (min-width: 30em){.gov-statsbar-item{flex:1 0 50%;max-width:50%}}@media (min-width: 48em){.gov-statsbar-item{padding:2.5rem}.gov-statsbar-item__icon,.gov-statsbar-item__icon .gov-icon{width:3rem;height:3rem}.gov-statsbar-item[icon-position=left]{padding-left:4rem}.gov-statsbar-item[icon-position=left] .gov-statsbar-item__icon{top:2.75rem}}@media (min-width: 64em){.gov-statsbar-item{flex-basis:auto;max-width:25%}}";
|
|
11
|
+
|
|
12
|
+
const GovStatsbarItem = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
registerInstance(this, hostRef);
|
|
15
|
+
this.iconPosition = undefined;
|
|
16
|
+
this.h = govHost(this.host);
|
|
17
|
+
}
|
|
18
|
+
validateIconPosition(newValue) {
|
|
19
|
+
validateProp(StatsBarIconPosition, newValue, StatsBarItemClass.root);
|
|
20
|
+
}
|
|
21
|
+
componentWillLoad() {
|
|
22
|
+
this.validateIconPosition(this.iconPosition);
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return (h(Host, { class: this.h.classes(StatsBarItemClass.root) }, h("article", null, this.h.hasSlot('icon') && (h("span", { class: StatsBarItemClass.icon }, h("slot", { name: "icon" }))), h("p", { class: StatsBarItemClass.number }, h("slot", null)), this.h.hasSlot('text') && (h("div", { class: StatsBarItemClass.text }, h("slot", { name: "text" }))))));
|
|
26
|
+
}
|
|
27
|
+
get host() { return getElement(this); }
|
|
28
|
+
static get watchers() { return {
|
|
29
|
+
"iconPosition": ["validateIconPosition"]
|
|
30
|
+
}; }
|
|
31
|
+
};
|
|
32
|
+
GovStatsbarItem.style = govStatsbarItemCss;
|
|
33
|
+
|
|
34
|
+
export { GovStatsbarItem as gov_statsbar_item };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=gov-statsbar-item.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"gov-statsbar-item.entry.js","mappings":";;;;;;;;;AAAA,MAAM,kBAAkB,GAAG,ymDAAymD;;MCUvnD,eAAe;EAG3B;;wBAS2D,SAAS;IARnE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAUD,oBAAoB,CAAC,QAAgB;IACpC,YAAY,CAAC,oBAAoB,EAAE,QAAQ,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAA;GACpE;EAED,iBAAiB;IAChB,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;GAC5C;EAED,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAClD,mBACE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtB,YAAM,KAAK,EAAE,iBAAiB,CAAC,IAAI,IAClC,YAAM,IAAI,EAAC,MAAM,GAAG,CACd,CACP,EAED,SAAG,KAAK,EAAE,iBAAiB,CAAC,MAAM,IACjC,eAAQ,CACL,EAEH,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtB,WAAK,KAAK,EAAE,iBAAiB,CAAC,IAAI,IACjC,YAAM,IAAI,EAAC,MAAM,GAAG,CACf,CACN,CACQ,CACJ,EACP;GACD;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-statsbar/gov-statsbar-item.scss?tag=gov-statsbar-item","../../../packages/core/src/components/gov-statsbar/gov-statsbar-item.tsx"],"sourcesContent":["/*\n * Statsbar - Item\n */\n\n$class: \".gov-statsbar-item\";\n\n#{$class} {\n\tposition: relative;\n\tdisplay: block;\n\tpadding: rem-calc(20);\n\t&__icon,\n\t&__number {\n\t\tmargin-bottom: rem-calc(16);\n\t}\n\t&__icon,\n\t&__icon .gov-icon {\n\t\tdisplay: block;\n\t\twidth: rem-calc(32);\n\t\theight: rem-calc(32);\n\t}\n\t&__number {\n\t\t@include typography($font-size-5xl);\n\t}\n\t&__text {\n\t\t@include typography($font-size-xl);\n\t\t@include reset-last-margin();\n\t\tletter-spacing: em-calc(0.2);\n\t}\n\n\t// VARIANTS\n\t&[icon-position=\"left\"] {\n\t\tpadding-left: rem-calc(48);\n\n\t\t#{$class} {\n\t\t\t&__icon {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: rem-calc(24);\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\tflex: 1 0 50%;\n\t\tmax-width: 50%;\n\t}\n\t@include mq($from: md) {\n\t\tpadding: rem-calc(40);\n\n\t\t&__icon,\n\t\t&__icon .gov-icon {\n\t\t\twidth: rem-calc(48);\n\t\t\theight: rem-calc(48);\n\t\t}\n\n\t\t// VARIANTS\n\t\t&[icon-position=\"left\"] {\n\t\t\tpadding-left: rem-calc(64);\n\n\t\t\t#{$class} {\n\t\t\t\t&__icon {\n\t\t\t\t\ttop: rem-calc(44);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: lg) {\n\t\tflex-basis: auto;\n\t\tmax-width: 25%;\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch } from '@stencil/core'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { StatsBarItemClass, StatsBarIconPosition, StatsBarIconPositionType } from './constants'\n\n@Component({\n\ttag: 'gov-statsbar-item',\n\tstyleUrl: 'gov-statsbar-item.scss',\n})\nexport class GovStatsbarItem {\n\th: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovStatsbarItemElement\n\n\t/**\n\t * Icon’s position\n\t */\n\t@Prop() readonly iconPosition?: StatsBarIconPositionType = undefined\n\n\t@Watch('iconPosition')\n\tvalidateIconPosition(newValue: string): void {\n\t\tvalidateProp(StatsBarIconPosition, newValue, StatsBarItemClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateIconPosition(this.iconPosition)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(StatsBarItemClass.root)}>\n\t\t\t\t<article>\n\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t<span class={StatsBarItemClass.icon}>\n\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t</span>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<p class={StatsBarItemClass.number}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</p>\n\n\t\t\t\t\t{this.h.hasSlot('text') && (\n\t\t\t\t\t\t<div class={StatsBarItemClass.text}>\n\t\t\t\t\t\t\t<slot name=\"text\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</article>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { r as registerInstance, h, a as Host, g as getElement } from './index-eb59f132.js';
|
|
2
|
+
import { v as validateProp } from './props-a85d9c89.js';
|
|
3
|
+
import { S as StatsBarVariants, a as StatsBarItemClass, b as StatsBarClass, c as StatsBarIconPosition } from './constants-27b48cd1.js';
|
|
4
|
+
import { g as govHost } from './template-df429738.js';
|
|
5
|
+
import './gov.log-49da0221.js';
|
|
6
|
+
import './win-1dbd3f5c.js';
|
|
7
|
+
import './utils-c057a3fa.js';
|
|
8
|
+
import './variants-2b936d58.js';
|
|
9
|
+
|
|
10
|
+
const govStatsbarCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-statsbar{position:relative;display:block;width:100%;padding:1.25rem 0}.gov-statsbar__section{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-statsbar__section{padding-right:var(--gov-container-padding, 2.5rem);padding-left:var(--gov-container-padding, 2.5rem)}}.gov-statsbar[variant=primary]{background-color:var(--gov-statsbar-primary-bg-color, var(--gov-color-primary-200));color:var(--gov-statsbar-primary-text-color, var(--gov-color-primary))}.gov-statsbar[variant=primary][inverse=\"\"],.gov-statsbar[variant=primary][inverse=true i],.gov-statsbar[variant=primary][inverse=\"1\"]{background:var(--gov-color-neutral-white);color:var(--gov-statsbar-primary-text-color-inverse, var(--gov-color-primary))}.gov-statsbar[variant=secondary]{background-color:var(--gov-statsbar-secondary-bg-color, var(--gov-color-secondary));color:var(--gov-statsbar-secondary-text-color, var(--gov-color-neutral-white))}.gov-statsbar[variant=secondary][inverse=\"\"],.gov-statsbar[variant=secondary][inverse=true i],.gov-statsbar[variant=secondary][inverse=\"1\"]{background:var(--gov-color-neutral-white);color:var(--gov-statsbar-secondary-text-color-inverse, var(--gov-color-secondary))}@media (min-width: 30em){.gov-statsbar__section{display:flex;flex-wrap:wrap;justify-content:center}}@media (min-width: 48em){.gov-statsbar{padding:0}}";
|
|
11
|
+
|
|
12
|
+
const GovStatsbar = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
registerInstance(this, hostRef);
|
|
15
|
+
this.iconPosition = undefined;
|
|
16
|
+
this.variant = StatsBarVariants.PRIMARY;
|
|
17
|
+
this.h = govHost(this.host);
|
|
18
|
+
}
|
|
19
|
+
validateIconPosition(newValue) {
|
|
20
|
+
validateProp(StatsBarIconPosition, newValue, StatsBarClass.root);
|
|
21
|
+
}
|
|
22
|
+
validateVariant(newValue) {
|
|
23
|
+
validateProp(StatsBarVariants, newValue, StatsBarClass.root);
|
|
24
|
+
}
|
|
25
|
+
componentWillLoad() {
|
|
26
|
+
this.validateIconPosition(this.iconPosition);
|
|
27
|
+
this.validateVariant(this.variant);
|
|
28
|
+
}
|
|
29
|
+
componentDidLoad() {
|
|
30
|
+
this.host.querySelectorAll(StatsBarItemClass.root).forEach((node) => {
|
|
31
|
+
if (this.iconPosition === "left") {
|
|
32
|
+
node.setAttribute("icon-position", "left");
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return (h(Host, { class: this.h.classes(StatsBarClass.root), variant: this.variant }, h("section", { class: StatsBarClass.section }, h("slot", null))));
|
|
38
|
+
}
|
|
39
|
+
get host() { return getElement(this); }
|
|
40
|
+
static get watchers() { return {
|
|
41
|
+
"iconPosition": ["validateIconPosition"],
|
|
42
|
+
"variant": ["validateVariant"]
|
|
43
|
+
}; }
|
|
44
|
+
};
|
|
45
|
+
GovStatsbar.style = govStatsbarCss;
|
|
46
|
+
|
|
47
|
+
export { GovStatsbar as gov_statsbar };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=gov-statsbar.entry.js.map
|