@gov-design-system-ce/components 0.0.15 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Fragment-52846f79.js +7 -0
- package/dist/cjs/Fragment-52846f79.js.map +1 -0
- package/dist/cjs/constants-0488d137.js +22 -0
- package/dist/cjs/constants-0488d137.js.map +1 -0
- package/dist/cjs/constants-0883e74c.js +30 -0
- package/dist/cjs/constants-0883e74c.js.map +1 -0
- package/dist/cjs/constants-0c6c8e11.js +30 -0
- package/dist/cjs/constants-0c6c8e11.js.map +1 -0
- package/dist/cjs/constants-1490a5eb.js +25 -0
- package/dist/cjs/constants-1490a5eb.js.map +1 -0
- package/dist/cjs/constants-20b3f7ee.js +28 -0
- package/dist/cjs/constants-20b3f7ee.js.map +1 -0
- package/dist/cjs/constants-21559414.js +29 -0
- package/dist/cjs/constants-21559414.js.map +1 -0
- package/dist/cjs/constants-23b7a283.js +33 -0
- package/dist/cjs/constants-23b7a283.js.map +1 -0
- package/dist/cjs/constants-2b1c31b8.js +15 -0
- package/dist/cjs/constants-2b1c31b8.js.map +1 -0
- package/dist/cjs/constants-61f8be34.js +26 -0
- package/dist/cjs/constants-61f8be34.js.map +1 -0
- package/dist/cjs/constants-86fb4eb4.js +19 -0
- package/dist/cjs/constants-86fb4eb4.js.map +1 -0
- package/dist/cjs/constants-97eea364.js +14 -0
- package/dist/cjs/constants-97eea364.js.map +1 -0
- package/dist/cjs/constants-adc8268f.js +37 -0
- package/dist/cjs/constants-adc8268f.js.map +1 -0
- package/dist/cjs/constants-caad94b4.js +16 -0
- package/dist/cjs/constants-caad94b4.js.map +1 -0
- package/dist/cjs/constants-ded92f8a.js +13 -0
- package/dist/cjs/constants-ded92f8a.js.map +1 -0
- package/dist/cjs/constants-e47694c4.js +19 -0
- package/dist/cjs/constants-e47694c4.js.map +1 -0
- package/dist/cjs/constants-e8760a84.js +20 -0
- package/dist/cjs/constants-e8760a84.js.map +1 -0
- package/dist/cjs/core.cjs.js +21 -0
- package/dist/cjs/core.cjs.js.map +1 -0
- package/dist/cjs/form-9b8b1740.js +150 -0
- package/dist/cjs/form-9b8b1740.js.map +1 -0
- package/dist/cjs/gov-accordion-item.cjs.entry.js +113 -0
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-accordion.cjs.entry.js +75 -0
- package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-alert.cjs.entry.js +58 -0
- package/dist/cjs/gov-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-app.cjs.entry.js +8356 -0
- package/dist/cjs/gov-app.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-attachments_3.cjs.entry.js +120 -0
- package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-backdrop.cjs.entry.js +54 -0
- package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-badge.cjs.entry.js +84 -0
- package/dist/cjs/gov-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +50 -0
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-button.cjs.entry.js +155 -0
- package/dist/cjs/gov-button.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-card.cjs.entry.js +112 -0
- package/dist/cjs/gov-card.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-container.cjs.entry.js +36 -0
- package/dist/cjs/gov-container.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-cookiebar.cjs.entry.js +33 -0
- package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-empty.cjs.entry.js +31 -0
- package/dist/cjs/gov-empty.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-error-code.cjs.entry.js +31 -0
- package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +177 -0
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +108 -0
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-control.cjs.entry.js +100 -0
- package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-file.cjs.entry.js +187 -0
- package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-group.cjs.entry.js +43 -0
- package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-input.cjs.entry.js +151 -0
- package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-label.cjs.entry.js +30 -0
- package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +193 -0
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-password-power.cjs.entry.js +28 -0
- package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-radio.cjs.entry.js +108 -0
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-search.cjs.entry.js +28 -0
- package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-select.cjs.entry.js +124 -0
- package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-switch.cjs.entry.js +108 -0
- package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-grid-item.cjs.entry.js +30 -0
- package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-grid.cjs.entry.js +28 -0
- package/dist/cjs/gov-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-icon.cjs.entry.js +126 -0
- package/dist/cjs/gov-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-layout-column.cjs.entry.js +25 -0
- package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-layout.cjs.entry.js +34 -0
- package/dist/cjs/gov-layout.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-loading.cjs.entry.js +31 -0
- package/dist/cjs/gov-loading.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-message.cjs.entry.js +43 -0
- package/dist/cjs/gov-message.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-modal.cjs.entry.js +105 -0
- package/dist/cjs/gov-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-nav-item.cjs.entry.js +37 -0
- package/dist/cjs/gov-nav-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-nav.cjs.entry.js +42 -0
- package/dist/cjs/gov-nav.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-pagination.cjs.entry.js +209 -0
- package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-prompt.cjs.entry.js +105 -0
- package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-side-nav-item.cjs.entry.js +85 -0
- package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-side-nav.cjs.entry.js +56 -0
- package/dist/cjs/gov-side-nav.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-skeleton.cjs.entry.js +117 -0
- package/dist/cjs/gov-skeleton.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-spacer.cjs.entry.js +57 -0
- package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-statsbar-item.cjs.entry.js +39 -0
- package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-statsbar.cjs.entry.js +52 -0
- package/dist/cjs/gov-statsbar.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-stepper-item.cjs.entry.js +77 -0
- package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-stepper.cjs.entry.js +50 -0
- package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tabs-item.cjs.entry.js +53 -0
- package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tabs.cjs.entry.js +189 -0
- package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tile.cjs.entry.js +50 -0
- package/dist/cjs/gov-tile.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tiles.cjs.entry.js +33 -0
- package/dist/cjs/gov-tiles.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-toast.cjs.entry.js +103 -0
- package/dist/cjs/gov-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +42 -0
- package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-tooltip.cjs.entry.js +158 -0
- package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-wizzard-item.cjs.entry.js +110 -0
- package/dist/cjs/gov-wizzard-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-wizzard.cjs.entry.js +67 -0
- package/dist/cjs/gov-wizzard.cjs.entry.js.map +1 -0
- package/dist/cjs/gov.log-0c9dca27.js +20 -0
- package/dist/cjs/gov.log-0c9dca27.js.map +1 -0
- package/dist/cjs/index-29ac07f6.js +2325 -0
- package/dist/cjs/index-29ac07f6.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +23 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/props-5f82e4c0.js +16 -0
- package/dist/cjs/props-5f82e4c0.js.map +1 -0
- package/dist/cjs/sizes-79872c2a.js +18 -0
- package/dist/cjs/sizes-79872c2a.js.map +1 -0
- package/dist/cjs/string.utils-0f08c48c.js +24 -0
- package/dist/cjs/string.utils-0f08c48c.js.map +1 -0
- package/dist/cjs/template-e1c4ff78.js +121 -0
- package/dist/cjs/template-e1c4ff78.js.map +1 -0
- package/dist/cjs/utils-c9b1bba3.js +41 -0
- package/dist/cjs/utils-c9b1bba3.js.map +1 -0
- package/dist/cjs/variants-f5ffeef3.js +18 -0
- package/dist/cjs/variants-f5ffeef3.js.map +1 -0
- package/dist/cjs/wcag-6efc0ab7.js +67 -0
- package/dist/cjs/wcag-6efc0ab7.js.map +1 -0
- package/dist/cjs/win-84bda0aa.js +26 -0
- package/dist/cjs/win-84bda0aa.js.map +1 -0
- package/dist/collection/collection-manifest.json +69 -0
- package/dist/collection/components/gov-accordion/constants.js +21 -0
- package/dist/collection/components/gov-accordion/constants.js.map +1 -0
- package/dist/collection/components/gov-accordion/gov-accordion-item.css +484 -0
- package/dist/collection/components/gov-accordion/gov-accordion-item.d.js +2 -0
- package/dist/collection/components/gov-accordion/gov-accordion-item.d.js.map +1 -0
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +386 -0
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -0
- package/dist/collection/components/gov-accordion/gov-accordion.css +231 -0
- package/dist/collection/components/gov-accordion/gov-accordion.js +220 -0
- package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -0
- package/dist/collection/components/gov-alert/constants.js +11 -0
- package/dist/collection/components/gov-alert/constants.js.map +1 -0
- package/dist/collection/components/gov-alert/gov-alert.css +379 -0
- package/dist/collection/components/gov-alert/gov-alert.js +150 -0
- package/dist/collection/components/gov-alert/gov-alert.js.map +1 -0
- package/dist/collection/components/gov-app/gov-app.css +240 -0
- package/dist/collection/components/gov-app/gov-app.js +95 -0
- package/dist/collection/components/gov-app/gov-app.js.map +1 -0
- package/dist/collection/components/gov-attachments/constants.js +12 -0
- package/dist/collection/components/gov-attachments/constants.js.map +1 -0
- package/dist/collection/components/gov-attachments/gov-attachments-item.css +252 -0
- package/dist/collection/components/gov-attachments/gov-attachments-item.d.js +2 -0
- package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +1 -0
- package/dist/collection/components/gov-attachments/gov-attachments-item.js +121 -0
- package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -0
- package/dist/collection/components/gov-attachments/gov-attachments.css +238 -0
- package/dist/collection/components/gov-attachments/gov-attachments.js +99 -0
- package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -0
- package/dist/collection/components/gov-backdrop/constants.js +5 -0
- package/dist/collection/components/gov-backdrop/constants.js.map +1 -0
- package/dist/collection/components/gov-backdrop/gov-backdrop.css +237 -0
- package/dist/collection/components/gov-backdrop/gov-backdrop.js +162 -0
- package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -0
- package/dist/collection/components/gov-badge/constants.js +13 -0
- package/dist/collection/components/gov-badge/constants.js.map +1 -0
- package/dist/collection/components/gov-badge/gov-badge.css +1203 -0
- package/dist/collection/components/gov-badge/gov-badge.js +284 -0
- package/dist/collection/components/gov-badge/gov-badge.js.map +1 -0
- package/dist/collection/components/gov-breadcrumbs/constants.js +4 -0
- package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +270 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js +2 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +1 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +160 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -0
- package/dist/collection/components/gov-button/constants.js +29 -0
- package/dist/collection/components/gov-button/constants.js.map +1 -0
- package/dist/collection/components/gov-button/gov-button.css +1136 -0
- package/dist/collection/components/gov-button/gov-button.js +794 -0
- package/dist/collection/components/gov-button/gov-button.js.map +1 -0
- package/dist/collection/components/gov-card/constants.js +14 -0
- package/dist/collection/components/gov-card/constants.js.map +1 -0
- package/dist/collection/components/gov-card/gov-card.css +368 -0
- package/dist/collection/components/gov-card/gov-card.js +307 -0
- package/dist/collection/components/gov-card/gov-card.js.map +1 -0
- package/dist/collection/components/gov-card/interfaces.js +2 -0
- package/dist/collection/components/gov-card/interfaces.js.map +1 -0
- package/dist/collection/components/gov-container/constants.js +4 -0
- package/dist/collection/components/gov-container/constants.js.map +1 -0
- package/dist/collection/components/gov-container/gov-container.css +238 -0
- package/dist/collection/components/gov-container/gov-container.js +58 -0
- package/dist/collection/components/gov-container/gov-container.js.map +1 -0
- package/dist/collection/components/gov-cookiebar/constants.js +9 -0
- package/dist/collection/components/gov-cookiebar/constants.js.map +1 -0
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +280 -0
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +24 -0
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -0
- package/dist/collection/components/gov-empty/constants.js +7 -0
- package/dist/collection/components/gov-empty/constants.js.map +1 -0
- package/dist/collection/components/gov-empty/gov-empty.css +246 -0
- package/dist/collection/components/gov-empty/gov-empty.js +24 -0
- package/dist/collection/components/gov-empty/gov-empty.js.map +1 -0
- package/dist/collection/components/gov-error-code/constants.js +7 -0
- package/dist/collection/components/gov-error-code/constants.js.map +1 -0
- package/dist/collection/components/gov-error-code/gov-error-code.css +261 -0
- package/dist/collection/components/gov-error-code/gov-error-code.js +24 -0
- package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -0
- package/dist/collection/components/gov-form/autocomplete/constants.js +11 -0
- package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +273 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +660 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js +2 -0
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +1 -0
- package/dist/collection/components/gov-form/checkbox/constants.js +8 -0
- package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -0
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +388 -0
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +390 -0
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -0
- package/dist/collection/components/gov-form/control/constants.js +9 -0
- package/dist/collection/components/gov-form/control/constants.js.map +1 -0
- package/dist/collection/components/gov-form/control/gov-form-control.css +282 -0
- package/dist/collection/components/gov-form/control/gov-form-control.js +234 -0
- package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -0
- package/dist/collection/components/gov-form/file/constants.js +10 -0
- package/dist/collection/components/gov-form/file/constants.js.map +1 -0
- package/dist/collection/components/gov-form/file/gov-form-file.css +285 -0
- package/dist/collection/components/gov-form/file/gov-form-file.js +555 -0
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -0
- package/dist/collection/components/gov-form/file/gov-form-file.types.js +2 -0
- package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +1 -0
- package/dist/collection/components/gov-form/group/constants.js +7 -0
- package/dist/collection/components/gov-form/group/constants.js.map +1 -0
- package/dist/collection/components/gov-form/group/gov-form-group.css +242 -0
- package/dist/collection/components/gov-form/group/gov-form-group.js +65 -0
- package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -0
- package/dist/collection/components/gov-form/input/constants.js +29 -0
- package/dist/collection/components/gov-form/input/constants.js.map +1 -0
- package/dist/collection/components/gov-form/input/gov-form-input.css +453 -0
- package/dist/collection/components/gov-form/input/gov-form-input.js +801 -0
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -0
- package/dist/collection/components/gov-form/label/constants.js +8 -0
- package/dist/collection/components/gov-form/label/constants.js.map +1 -0
- package/dist/collection/components/gov-form/label/gov-form-label.css +269 -0
- package/dist/collection/components/gov-form/label/gov-form-label.js +128 -0
- package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -0
- package/dist/collection/components/gov-form/message/constants.js +9 -0
- package/dist/collection/components/gov-form/message/constants.js.map +1 -0
- package/dist/collection/components/gov-form/message/gov-form-message.css +253 -0
- package/dist/collection/components/gov-form/message/gov-form-message.js +93 -0
- package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -0
- package/dist/collection/components/gov-form/multiselect/constants.js +12 -0
- package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -0
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +513 -0
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +544 -0
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -0
- package/dist/collection/components/gov-form/multiselect/interfaces.js +2 -0
- package/dist/collection/components/gov-form/multiselect/interfaces.js.map +1 -0
- package/dist/collection/components/gov-form/password-power/constants.js +6 -0
- package/dist/collection/components/gov-form/password-power/constants.js.map +1 -0
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.css +265 -0
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +43 -0
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -0
- package/dist/collection/components/gov-form/radio/constants.js +10 -0
- package/dist/collection/components/gov-form/radio/constants.js.map +1 -0
- package/dist/collection/components/gov-form/radio/gov-form-radio.css +387 -0
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +390 -0
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -0
- package/dist/collection/components/gov-form/search/constants.js +6 -0
- package/dist/collection/components/gov-form/search/constants.js.map +1 -0
- package/dist/collection/components/gov-form/search/gov-form-search.css +260 -0
- package/dist/collection/components/gov-form/search/gov-form-search.js +20 -0
- package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -0
- package/dist/collection/components/gov-form/select/constants.js +10 -0
- package/dist/collection/components/gov-form/select/constants.js.map +1 -0
- package/dist/collection/components/gov-form/select/gov-form-select.css +472 -0
- package/dist/collection/components/gov-form/select/gov-form-select.js +497 -0
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -0
- package/dist/collection/components/gov-form/switch/constants.js +10 -0
- package/dist/collection/components/gov-form/switch/constants.js.map +1 -0
- package/dist/collection/components/gov-form/switch/gov-form-switch.css +403 -0
- package/dist/collection/components/gov-form/switch/gov-form-switch.js +390 -0
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -0
- package/dist/collection/components/gov-grid/constants.js +7 -0
- package/dist/collection/components/gov-grid/constants.js.map +1 -0
- package/dist/collection/components/gov-grid/gov-grid-item.css +472 -0
- package/dist/collection/components/gov-grid/gov-grid-item.js +119 -0
- package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -0
- package/dist/collection/components/gov-grid/gov-grid.css +247 -0
- package/dist/collection/components/gov-grid/gov-grid.js +65 -0
- package/dist/collection/components/gov-grid/gov-grid.js.map +1 -0
- package/dist/collection/components/gov-icon/constants.js +11 -0
- package/dist/collection/components/gov-icon/constants.js.map +1 -0
- package/dist/collection/components/gov-icon/gov-icon.css +232 -0
- package/dist/collection/components/gov-icon/gov-icon.js +135 -0
- package/dist/collection/components/gov-icon/gov-icon.js.map +1 -0
- package/dist/collection/components/gov-icon/list.js +238 -0
- package/dist/collection/components/gov-icon/list.js.map +1 -0
- package/dist/collection/components/gov-layout/constants.js +19 -0
- package/dist/collection/components/gov-layout/constants.js.map +1 -0
- package/dist/collection/components/gov-layout/gov-layout-column.css +227 -0
- package/dist/collection/components/gov-layout/gov-layout-column.js +24 -0
- package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -0
- package/dist/collection/components/gov-layout/gov-layout.css +273 -0
- package/dist/collection/components/gov-layout/gov-layout.js +100 -0
- package/dist/collection/components/gov-layout/gov-layout.js.map +1 -0
- package/dist/collection/components/gov-loading/loading/constants.js +6 -0
- package/dist/collection/components/gov-loading/loading/constants.js.map +1 -0
- package/dist/collection/components/gov-loading/loading/gov-loading.css +251 -0
- package/dist/collection/components/gov-loading/loading/gov-loading.js +47 -0
- package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -0
- package/dist/collection/components/gov-loading/skeleton/constants.js +20 -0
- package/dist/collection/components/gov-loading/skeleton/constants.js.map +1 -0
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.css +290 -0
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +267 -0
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -0
- package/dist/collection/components/gov-message/constants.js +10 -0
- package/dist/collection/components/gov-message/constants.js.map +1 -0
- package/dist/collection/components/gov-message/gov-message.css +310 -0
- package/dist/collection/components/gov-message/gov-message.js +63 -0
- package/dist/collection/components/gov-message/gov-message.js.map +1 -0
- package/dist/collection/components/gov-modal/constants.js +14 -0
- package/dist/collection/components/gov-modal/constants.js.map +1 -0
- package/dist/collection/components/gov-modal/gov-modal.css +335 -0
- package/dist/collection/components/gov-modal/gov-modal.js +331 -0
- package/dist/collection/components/gov-modal/gov-modal.js.map +1 -0
- package/dist/collection/components/gov-nav/constants.js +9 -0
- package/dist/collection/components/gov-nav/constants.js.map +1 -0
- package/dist/collection/components/gov-nav/gov-nav-item.css +279 -0
- package/dist/collection/components/gov-nav/gov-nav-item.js +68 -0
- package/dist/collection/components/gov-nav/gov-nav-item.js.map +1 -0
- package/dist/collection/components/gov-nav/gov-nav.css +245 -0
- package/dist/collection/components/gov-nav/gov-nav.js +97 -0
- package/dist/collection/components/gov-nav/gov-nav.js.map +1 -0
- package/dist/collection/components/gov-pagination/constants.js +21 -0
- package/dist/collection/components/gov-pagination/constants.js.map +1 -0
- package/dist/collection/components/gov-pagination/gov-pagination.css +385 -0
- package/dist/collection/components/gov-pagination/gov-pagination.js +436 -0
- package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -0
- package/dist/collection/components/gov-pagination/pagination.js +55 -0
- package/dist/collection/components/gov-pagination/pagination.js.map +1 -0
- package/dist/collection/components/gov-promp/constants.js +13 -0
- package/dist/collection/components/gov-promp/constants.js.map +1 -0
- package/dist/collection/components/gov-promp/gov-prompt.css +338 -0
- package/dist/collection/components/gov-promp/gov-prompt.js +331 -0
- package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -0
- package/dist/collection/components/gov-side-nav/constants.js +16 -0
- package/dist/collection/components/gov-side-nav/constants.js.map +1 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +375 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js +2 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js.map +1 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +331 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +1 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav.css +228 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav.js +169 -0
- package/dist/collection/components/gov-side-nav/gov-side-nav.js.map +1 -0
- package/dist/collection/components/gov-spacer/constants.js +15 -0
- package/dist/collection/components/gov-spacer/constants.js.map +1 -0
- package/dist/collection/components/gov-spacer/gov-spacer.css +293 -0
- package/dist/collection/components/gov-spacer/gov-spacer.js +95 -0
- package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -0
- package/dist/collection/components/gov-statsbar/constants.js +18 -0
- package/dist/collection/components/gov-statsbar/constants.js.map +1 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +287 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +65 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +1 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar.css +272 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar.js +102 -0
- package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +1 -0
- package/dist/collection/components/gov-stepper/constants.js +21 -0
- package/dist/collection/components/gov-stepper/constants.js.map +1 -0
- package/dist/collection/components/gov-stepper/gov-stepper-item.css +450 -0
- package/dist/collection/components/gov-stepper/gov-stepper-item.d.js +2 -0
- package/dist/collection/components/gov-stepper/gov-stepper-item.d.js.map +1 -0
- package/dist/collection/components/gov-stepper/gov-stepper-item.js +246 -0
- package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -0
- package/dist/collection/components/gov-stepper/gov-stepper.css +228 -0
- package/dist/collection/components/gov-stepper/gov-stepper.js +97 -0
- package/dist/collection/components/gov-stepper/gov-stepper.js.map +1 -0
- package/dist/collection/components/gov-tabs/constants.js +25 -0
- package/dist/collection/components/gov-tabs/constants.js.map +1 -0
- package/dist/collection/components/gov-tabs/gov-tabs-item.css +229 -0
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +183 -0
- package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -0
- package/dist/collection/components/gov-tabs/gov-tabs.css +381 -0
- package/dist/collection/components/gov-tabs/gov-tabs.js +422 -0
- package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -0
- package/dist/collection/components/gov-tabs/gov-tabs.types.js +2 -0
- package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -0
- package/dist/collection/components/gov-tile/constants.js +10 -0
- package/dist/collection/components/gov-tile/constants.js.map +1 -0
- package/dist/collection/components/gov-tile/container/constants.js +4 -0
- package/dist/collection/components/gov-tile/container/constants.js.map +1 -0
- package/dist/collection/components/gov-tile/container/gov-tiles.css +310 -0
- package/dist/collection/components/gov-tile/container/gov-tiles.js +70 -0
- package/dist/collection/components/gov-tile/container/gov-tiles.js.map +1 -0
- package/dist/collection/components/gov-tile/gov-tile.css +326 -0
- package/dist/collection/components/gov-tile/gov-tile.js +99 -0
- package/dist/collection/components/gov-tile/gov-tile.js.map +1 -0
- package/dist/collection/components/gov-toast/constants.js +13 -0
- package/dist/collection/components/gov-toast/constants.js.map +1 -0
- package/dist/collection/components/gov-toast/gov-toast.css +394 -0
- package/dist/collection/components/gov-toast/gov-toast.js +267 -0
- package/dist/collection/components/gov-toast/gov-toast.js.map +1 -0
- package/dist/collection/components/gov-tooltip/constants.js +19 -0
- package/dist/collection/components/gov-tooltip/constants.js.map +1 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +324 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +63 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip.css +253 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +322 -0
- package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -0
- package/dist/collection/components/gov-wizzard/constants.js +20 -0
- package/dist/collection/components/gov-wizzard/constants.js.map +1 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.css +441 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js +2 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js.map +1 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.js +381 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +1 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard.css +231 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard.js +168 -0
- package/dist/collection/components/gov-wizzard/gov-wizzard.js.map +1 -0
- package/dist/collection/core/constants/sizes.js +15 -0
- package/dist/collection/core/constants/sizes.js.map +1 -0
- package/dist/collection/core/constants/tags.js +14 -0
- package/dist/collection/core/constants/tags.js.map +1 -0
- package/dist/collection/core/constants/variants.js +15 -0
- package/dist/collection/core/constants/variants.js.map +1 -0
- package/dist/collection/helpers/Dom/form.js +72 -0
- package/dist/collection/helpers/Dom/form.js.map +1 -0
- package/dist/collection/helpers/Dom/form.types.js +2 -0
- package/dist/collection/helpers/Dom/form.types.js.map +1 -0
- package/dist/collection/helpers/Dom/template.js +110 -0
- package/dist/collection/helpers/Dom/template.js.map +1 -0
- package/dist/collection/helpers/Dom/template.types.js +2 -0
- package/dist/collection/helpers/Dom/template.types.js.map +1 -0
- package/dist/collection/helpers/Dom/win.js +18 -0
- package/dist/collection/helpers/Dom/win.js.map +1 -0
- package/dist/collection/helpers/Fragment.js +2 -0
- package/dist/collection/helpers/Fragment.js.map +1 -0
- package/dist/collection/helpers/Log/gov.log.js +14 -0
- package/dist/collection/helpers/Log/gov.log.js.map +1 -0
- package/dist/collection/helpers/StorybookDocsTemplate.js +9 -0
- package/dist/collection/helpers/StorybookDocsTemplate.js.map +1 -0
- package/dist/collection/helpers/Validate/props.js +10 -0
- package/dist/collection/helpers/Validate/props.js.map +1 -0
- package/dist/collection/helpers/Validate/wcag.js +58 -0
- package/dist/collection/helpers/Validate/wcag.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/pages/Accordion.js +349 -0
- package/dist/collection/pages/Accordion.js.map +1 -0
- package/dist/collection/pages/Alert.js +83 -0
- package/dist/collection/pages/Alert.js.map +1 -0
- package/dist/collection/pages/Badge.js +321 -0
- package/dist/collection/pages/Badge.js.map +1 -0
- package/dist/collection/pages/Breadcrumbs.js +36 -0
- package/dist/collection/pages/Breadcrumbs.js.map +1 -0
- package/dist/collection/pages/Button.js +1277 -0
- package/dist/collection/pages/Button.js.map +1 -0
- package/dist/collection/pages/Card.js +102 -0
- package/dist/collection/pages/Card.js.map +1 -0
- package/dist/collection/pages/Container.js +15 -0
- package/dist/collection/pages/Container.js.map +1 -0
- package/dist/collection/pages/Cookiebar.js +29 -0
- package/dist/collection/pages/Cookiebar.js.map +1 -0
- package/dist/collection/pages/Empty.js +43 -0
- package/dist/collection/pages/Empty.js.map +1 -0
- package/dist/collection/pages/Error.js +16 -0
- package/dist/collection/pages/Error.js.map +1 -0
- package/dist/collection/pages/FormLabel.js +13 -0
- package/dist/collection/pages/FormLabel.js.map +1 -0
- package/dist/collection/pages/FormMessage.js +82 -0
- package/dist/collection/pages/FormMessage.js.map +1 -0
- package/dist/collection/pages/Forms.js +1205 -0
- package/dist/collection/pages/Forms.js.map +1 -0
- package/dist/collection/pages/FormsRestructure.js +13 -0
- package/dist/collection/pages/FormsRestructure.js.map +1 -0
- package/dist/collection/pages/Grid.js +92 -0
- package/dist/collection/pages/Grid.js.map +1 -0
- package/dist/collection/pages/Home.js +9 -0
- package/dist/collection/pages/Home.js.map +1 -0
- package/dist/collection/pages/Layout.js +97 -0
- package/dist/collection/pages/Layout.js.map +1 -0
- package/dist/collection/pages/Loading.js +95 -0
- package/dist/collection/pages/Loading.js.map +1 -0
- package/dist/collection/pages/Message.js +94 -0
- package/dist/collection/pages/Message.js.map +1 -0
- package/dist/collection/pages/Modal.js +57 -0
- package/dist/collection/pages/Modal.js.map +1 -0
- package/dist/collection/pages/Nav.js +30 -0
- package/dist/collection/pages/Nav.js.map +1 -0
- package/dist/collection/pages/Pagination.js +38 -0
- package/dist/collection/pages/Pagination.js.map +1 -0
- package/dist/collection/pages/Prompt.js +48 -0
- package/dist/collection/pages/Prompt.js.map +1 -0
- package/dist/collection/pages/SideNav.js +117 -0
- package/dist/collection/pages/SideNav.js.map +1 -0
- package/dist/collection/pages/Spacer.js +19 -0
- package/dist/collection/pages/Spacer.js.map +1 -0
- package/dist/collection/pages/Statsbar.js +202 -0
- package/dist/collection/pages/Statsbar.js.map +1 -0
- package/dist/collection/pages/Stepper.js +85 -0
- package/dist/collection/pages/Stepper.js.map +1 -0
- package/dist/collection/pages/Tabs.js +323 -0
- package/dist/collection/pages/Tabs.js.map +1 -0
- package/dist/collection/pages/Tiles.js +119 -0
- package/dist/collection/pages/Tiles.js.map +1 -0
- package/dist/collection/pages/ToastMessage.js +47 -0
- package/dist/collection/pages/ToastMessage.js.map +1 -0
- package/dist/collection/pages/ToastMessageCountdown.js +47 -0
- package/dist/collection/pages/ToastMessageCountdown.js.map +1 -0
- package/dist/collection/pages/Tooltip.js +137 -0
- package/dist/collection/pages/Tooltip.js.map +1 -0
- package/dist/collection/pages/Typography.js +75 -0
- package/dist/collection/pages/Typography.js.map +1 -0
- package/dist/collection/pages/Wizzard.js +88 -0
- package/dist/collection/pages/Wizzard.js.map +1 -0
- package/dist/collection/types/interfaces.js +2 -0
- package/dist/collection/types/interfaces.js.map +1 -0
- package/dist/collection/utils/array.utils.js +2 -0
- package/dist/collection/utils/array.utils.js.map +1 -0
- package/dist/collection/utils/bool.utils.js +15 -0
- package/dist/collection/utils/bool.utils.js.map +1 -0
- package/dist/collection/utils/ds.utils.js +5 -0
- package/dist/collection/utils/ds.utils.js.map +1 -0
- package/dist/collection/utils/file.utils.js +26 -0
- package/dist/collection/utils/file.utils.js.map +1 -0
- package/dist/collection/utils/icon.utils.js +31 -0
- package/dist/collection/utils/icon.utils.js.map +1 -0
- package/dist/collection/utils/number.utils.js +4 -0
- package/dist/collection/utils/number.utils.js.map +1 -0
- package/dist/collection/utils/string.utils.js +17 -0
- package/dist/collection/utils/string.utils.js.map +1 -0
- package/dist/collection/utils/utils.js +35 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/Fragment.js +5 -0
- package/dist/components/Fragment.js.map +1 -0
- package/dist/components/constants.js +25 -0
- package/dist/components/constants.js.map +1 -0
- package/dist/components/constants10.js +19 -0
- package/dist/components/constants10.js.map +1 -0
- package/dist/components/constants11.js +22 -0
- package/dist/components/constants11.js.map +1 -0
- package/dist/components/constants12.js +25 -0
- package/dist/components/constants12.js.map +1 -0
- package/dist/components/constants13.js +29 -0
- package/dist/components/constants13.js.map +1 -0
- package/dist/components/constants14.js +23 -0
- package/dist/components/constants14.js.map +1 -0
- package/dist/components/constants15.js +24 -0
- package/dist/components/constants15.js.map +1 -0
- package/dist/components/constants2.js +15 -0
- package/dist/components/constants2.js.map +1 -0
- package/dist/components/constants3.js +33 -0
- package/dist/components/constants3.js.map +1 -0
- package/dist/components/constants4.js +12 -0
- package/dist/components/constants4.js.map +1 -0
- package/dist/components/constants5.js +13 -0
- package/dist/components/constants5.js.map +1 -0
- package/dist/components/constants6.js +10 -0
- package/dist/components/constants6.js.map +1 -0
- package/dist/components/constants7.js +22 -0
- package/dist/components/constants7.js.map +1 -0
- package/dist/components/constants8.js +17 -0
- package/dist/components/constants8.js.map +1 -0
- package/dist/components/constants9.js +12 -0
- package/dist/components/constants9.js.map +1 -0
- package/dist/components/form.js +150 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/gov-accordion-item.d.ts +11 -0
- package/dist/components/gov-accordion-item.js +144 -0
- package/dist/components/gov-accordion-item.js.map +1 -0
- package/dist/components/gov-accordion.d.ts +11 -0
- package/dist/components/gov-accordion.js +92 -0
- package/dist/components/gov-accordion.js.map +1 -0
- package/dist/components/gov-alert.d.ts +11 -0
- package/dist/components/gov-alert.js +87 -0
- package/dist/components/gov-alert.js.map +1 -0
- package/dist/components/gov-app.d.ts +11 -0
- package/dist/components/gov-app.js +8369 -0
- package/dist/components/gov-app.js.map +1 -0
- package/dist/components/gov-attachments-item.d.ts +11 -0
- package/dist/components/gov-attachments-item.js +8 -0
- package/dist/components/gov-attachments-item.js.map +1 -0
- package/dist/components/gov-attachments-item2.js +69 -0
- package/dist/components/gov-attachments-item2.js.map +1 -0
- package/dist/components/gov-attachments.d.ts +11 -0
- package/dist/components/gov-attachments.js +8 -0
- package/dist/components/gov-attachments.js.map +1 -0
- package/dist/components/gov-attachments2.js +56 -0
- package/dist/components/gov-attachments2.js.map +1 -0
- package/dist/components/gov-backdrop.d.ts +11 -0
- package/dist/components/gov-backdrop.js +8 -0
- package/dist/components/gov-backdrop.js.map +1 -0
- package/dist/components/gov-backdrop2.js +68 -0
- package/dist/components/gov-backdrop2.js.map +1 -0
- package/dist/components/gov-badge.d.ts +11 -0
- package/dist/components/gov-badge.js +8 -0
- package/dist/components/gov-badge.js.map +1 -0
- package/dist/components/gov-badge2.js +100 -0
- package/dist/components/gov-badge2.js.map +1 -0
- package/dist/components/gov-breadcrumbs.d.ts +11 -0
- package/dist/components/gov-breadcrumbs.js +67 -0
- package/dist/components/gov-breadcrumbs.js.map +1 -0
- package/dist/components/gov-button.d.ts +11 -0
- package/dist/components/gov-button.js +8 -0
- package/dist/components/gov-button.js.map +1 -0
- package/dist/components/gov-button2.js +201 -0
- package/dist/components/gov-button2.js.map +1 -0
- package/dist/components/gov-card.d.ts +11 -0
- package/dist/components/gov-card.js +143 -0
- package/dist/components/gov-card.js.map +1 -0
- package/dist/components/gov-container.d.ts +11 -0
- package/dist/components/gov-container.js +51 -0
- package/dist/components/gov-container.js.map +1 -0
- package/dist/components/gov-cookiebar.d.ts +11 -0
- package/dist/components/gov-cookiebar.js +46 -0
- package/dist/components/gov-cookiebar.js.map +1 -0
- package/dist/components/gov-empty.d.ts +11 -0
- package/dist/components/gov-empty.js +44 -0
- package/dist/components/gov-empty.js.map +1 -0
- package/dist/components/gov-error-code.d.ts +11 -0
- package/dist/components/gov-error-code.js +44 -0
- package/dist/components/gov-error-code.js.map +1 -0
- package/dist/components/gov-form-autocomplete.d.ts +11 -0
- package/dist/components/gov-form-autocomplete.js +8 -0
- package/dist/components/gov-form-autocomplete.js.map +1 -0
- package/dist/components/gov-form-autocomplete2.js +222 -0
- package/dist/components/gov-form-autocomplete2.js.map +1 -0
- package/dist/components/gov-form-checkbox.d.ts +11 -0
- package/dist/components/gov-form-checkbox.js +134 -0
- package/dist/components/gov-form-checkbox.js.map +1 -0
- package/dist/components/gov-form-control.d.ts +11 -0
- package/dist/components/gov-form-control.js +114 -0
- package/dist/components/gov-form-control.js.map +1 -0
- package/dist/components/gov-form-file.d.ts +11 -0
- package/dist/components/gov-form-file.js +242 -0
- package/dist/components/gov-form-file.js.map +1 -0
- package/dist/components/gov-form-group.d.ts +11 -0
- package/dist/components/gov-form-group.js +57 -0
- package/dist/components/gov-form-group.js.map +1 -0
- package/dist/components/gov-form-input.d.ts +11 -0
- package/dist/components/gov-form-input.js +8 -0
- package/dist/components/gov-form-input.js.map +1 -0
- package/dist/components/gov-form-input2.js +193 -0
- package/dist/components/gov-form-input2.js.map +1 -0
- package/dist/components/gov-form-label.d.ts +11 -0
- package/dist/components/gov-form-label.js +46 -0
- package/dist/components/gov-form-label.js.map +1 -0
- package/dist/components/gov-form-message.d.ts +11 -0
- package/dist/components/gov-form-message.js +8 -0
- package/dist/components/gov-form-message.js.map +1 -0
- package/dist/components/gov-form-message2.js +57 -0
- package/dist/components/gov-form-message2.js.map +1 -0
- package/dist/components/gov-form-multi-select.d.ts +11 -0
- package/dist/components/gov-form-multi-select.js +246 -0
- package/dist/components/gov-form-multi-select.js.map +1 -0
- package/dist/components/gov-form-password-power.d.ts +11 -0
- package/dist/components/gov-form-password-power.js +43 -0
- package/dist/components/gov-form-password-power.js.map +1 -0
- package/dist/components/gov-form-radio.d.ts +11 -0
- package/dist/components/gov-form-radio.js +128 -0
- package/dist/components/gov-form-radio.js.map +1 -0
- package/dist/components/gov-form-search.d.ts +11 -0
- package/dist/components/gov-form-search.js +41 -0
- package/dist/components/gov-form-search.js.map +1 -0
- package/dist/components/gov-form-select.d.ts +11 -0
- package/dist/components/gov-form-select.js +8 -0
- package/dist/components/gov-form-select.js.map +1 -0
- package/dist/components/gov-form-select2.js +152 -0
- package/dist/components/gov-form-select2.js.map +1 -0
- package/dist/components/gov-form-switch.d.ts +11 -0
- package/dist/components/gov-form-switch.js +128 -0
- package/dist/components/gov-form-switch.js.map +1 -0
- package/dist/components/gov-grid-item.d.ts +11 -0
- package/dist/components/gov-grid-item.js +49 -0
- package/dist/components/gov-grid-item.js.map +1 -0
- package/dist/components/gov-grid.d.ts +11 -0
- package/dist/components/gov-grid.js +44 -0
- package/dist/components/gov-grid.js.map +1 -0
- package/dist/components/gov-icon.d.ts +11 -0
- package/dist/components/gov-icon.js +8 -0
- package/dist/components/gov-icon.js.map +1 -0
- package/dist/components/gov-icon2.js +141 -0
- package/dist/components/gov-icon2.js.map +1 -0
- package/dist/components/gov-layout-column.d.ts +11 -0
- package/dist/components/gov-layout-column.js +38 -0
- package/dist/components/gov-layout-column.js.map +1 -0
- package/dist/components/gov-layout.d.ts +11 -0
- package/dist/components/gov-layout.js +51 -0
- package/dist/components/gov-layout.js.map +1 -0
- package/dist/components/gov-loading.d.ts +11 -0
- package/dist/components/gov-loading.js +58 -0
- package/dist/components/gov-loading.js.map +1 -0
- package/dist/components/gov-message.d.ts +11 -0
- package/dist/components/gov-message.js +57 -0
- package/dist/components/gov-message.js.map +1 -0
- package/dist/components/gov-modal.d.ts +11 -0
- package/dist/components/gov-modal.js +149 -0
- package/dist/components/gov-modal.js.map +1 -0
- package/dist/components/gov-nav-item.d.ts +11 -0
- package/dist/components/gov-nav-item.js +53 -0
- package/dist/components/gov-nav-item.js.map +1 -0
- package/dist/components/gov-nav.d.ts +11 -0
- package/dist/components/gov-nav.js +57 -0
- package/dist/components/gov-nav.js.map +1 -0
- package/dist/components/gov-pagination.d.ts +11 -0
- package/dist/components/gov-pagination.js +255 -0
- package/dist/components/gov-pagination.js.map +1 -0
- package/dist/components/gov-prompt.d.ts +11 -0
- package/dist/components/gov-prompt.js +149 -0
- package/dist/components/gov-prompt.js.map +1 -0
- package/dist/components/gov-side-nav-item.d.ts +11 -0
- package/dist/components/gov-side-nav-item.js +124 -0
- package/dist/components/gov-side-nav-item.js.map +1 -0
- package/dist/components/gov-side-nav.d.ts +11 -0
- package/dist/components/gov-side-nav.js +73 -0
- package/dist/components/gov-side-nav.js.map +1 -0
- package/dist/components/gov-skeleton.d.ts +11 -0
- package/dist/components/gov-skeleton.js +137 -0
- package/dist/components/gov-skeleton.js.map +1 -0
- package/dist/components/gov-spacer.d.ts +11 -0
- package/dist/components/gov-spacer.js +72 -0
- package/dist/components/gov-spacer.js.map +1 -0
- package/dist/components/gov-statsbar-item.d.ts +11 -0
- package/dist/components/gov-statsbar-item.js +51 -0
- package/dist/components/gov-statsbar-item.js.map +1 -0
- package/dist/components/gov-statsbar.d.ts +11 -0
- package/dist/components/gov-statsbar.js +65 -0
- package/dist/components/gov-statsbar.js.map +1 -0
- package/dist/components/gov-stepper-item.d.ts +11 -0
- package/dist/components/gov-stepper-item.js +96 -0
- package/dist/components/gov-stepper-item.js.map +1 -0
- package/dist/components/gov-stepper.d.ts +11 -0
- package/dist/components/gov-stepper.js +61 -0
- package/dist/components/gov-stepper.js.map +1 -0
- package/dist/components/gov-tabs-item.d.ts +11 -0
- package/dist/components/gov-tabs-item.js +73 -0
- package/dist/components/gov-tabs-item.js.map +1 -0
- package/dist/components/gov-tabs.d.ts +11 -0
- package/dist/components/gov-tabs.js +232 -0
- package/dist/components/gov-tabs.js.map +1 -0
- package/dist/components/gov-tile.d.ts +11 -0
- package/dist/components/gov-tile.js +73 -0
- package/dist/components/gov-tile.js.map +1 -0
- package/dist/components/gov-tiles.d.ts +11 -0
- package/dist/components/gov-tiles.js +49 -0
- package/dist/components/gov-tiles.js.map +1 -0
- package/dist/components/gov-toast.d.ts +11 -0
- package/dist/components/gov-toast.js +136 -0
- package/dist/components/gov-toast.js.map +1 -0
- package/dist/components/gov-tooltip-content.d.ts +11 -0
- package/dist/components/gov-tooltip-content.js +54 -0
- package/dist/components/gov-tooltip-content.js.map +1 -0
- package/dist/components/gov-tooltip.d.ts +11 -0
- package/dist/components/gov-tooltip.js +176 -0
- package/dist/components/gov-tooltip.js.map +1 -0
- package/dist/components/gov-wizzard-item.d.ts +11 -0
- package/dist/components/gov-wizzard-item.js +141 -0
- package/dist/components/gov-wizzard-item.js.map +1 -0
- package/dist/components/gov-wizzard.d.ts +11 -0
- package/dist/components/gov-wizzard.js +81 -0
- package/dist/components/gov-wizzard.js.map +1 -0
- package/dist/components/gov.log.js +17 -0
- package/dist/components/gov.log.js.map +1 -0
- package/dist/components/index.d.ts +79 -0
- package/dist/components/index.js +61 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/props.js +14 -0
- package/dist/components/props.js.map +1 -0
- package/dist/components/sizes.js +18 -0
- package/dist/components/sizes.js.map +1 -0
- package/dist/components/string.utils.js +20 -0
- package/dist/components/string.utils.js.map +1 -0
- package/dist/components/template.js +113 -0
- package/dist/components/template.js.map +1 -0
- package/dist/components/utils.js +35 -0
- package/dist/components/utils.js.map +1 -0
- package/dist/components/variants.js +18 -0
- package/dist/components/variants.js.map +1 -0
- package/dist/components/wcag.js +62 -0
- package/dist/components/wcag.js.map +1 -0
- package/dist/components/win.js +22 -0
- package/dist/components/win.js.map +1 -0
- package/dist/core/core.css +1 -0
- package/dist/core/core.esm.js +2 -0
- package/dist/core/core.esm.js.map +1 -0
- package/dist/core/index.esm.js +2 -0
- package/dist/core/index.esm.js.map +1 -0
- package/dist/core/p-0272ffa0.entry.js +2 -0
- package/dist/core/p-0272ffa0.entry.js.map +1 -0
- package/dist/core/p-03990da5.js +2 -0
- package/dist/core/p-03990da5.js.map +1 -0
- package/dist/core/p-042d5b20.entry.js +2 -0
- package/dist/core/p-042d5b20.entry.js.map +1 -0
- package/dist/core/p-0874a5ec.entry.js +2 -0
- package/dist/core/p-0874a5ec.entry.js.map +1 -0
- package/dist/core/p-0f0564e8.entry.js +2 -0
- package/dist/core/p-0f0564e8.entry.js.map +1 -0
- package/dist/core/p-1020a160.js +2 -0
- package/dist/core/p-1020a160.js.map +1 -0
- package/dist/core/p-131c50d1.entry.js +2 -0
- package/dist/core/p-131c50d1.entry.js.map +1 -0
- package/dist/core/p-1c1d0bbe.js +2 -0
- package/dist/core/p-1c1d0bbe.js.map +1 -0
- package/dist/core/p-1def0eb2.entry.js +2 -0
- package/dist/core/p-1def0eb2.entry.js.map +1 -0
- package/dist/core/p-2426fa82.entry.js +2 -0
- package/dist/core/p-2426fa82.entry.js.map +1 -0
- package/dist/core/p-24636c53.js +2 -0
- package/dist/core/p-24636c53.js.map +1 -0
- package/dist/core/p-24877419.entry.js +2 -0
- package/dist/core/p-24877419.entry.js.map +1 -0
- package/dist/core/p-26acf964.js +2 -0
- package/dist/core/p-26acf964.js.map +1 -0
- package/dist/core/p-2f88b6d9.entry.js +2 -0
- package/dist/core/p-2f88b6d9.entry.js.map +1 -0
- package/dist/core/p-30b162df.entry.js +2 -0
- package/dist/core/p-30b162df.entry.js.map +1 -0
- package/dist/core/p-337fb136.entry.js +2 -0
- package/dist/core/p-337fb136.entry.js.map +1 -0
- package/dist/core/p-3464136c.js +2 -0
- package/dist/core/p-3464136c.js.map +1 -0
- package/dist/core/p-364b4792.js +2 -0
- package/dist/core/p-364b4792.js.map +1 -0
- package/dist/core/p-36be8f6e.js +2 -0
- package/dist/core/p-36be8f6e.js.map +1 -0
- package/dist/core/p-3f37ddb6.js +2 -0
- package/dist/core/p-3f37ddb6.js.map +1 -0
- package/dist/core/p-3f92f3bf.entry.js +2 -0
- package/dist/core/p-3f92f3bf.entry.js.map +1 -0
- package/dist/core/p-402c2751.entry.js +2 -0
- package/dist/core/p-402c2751.entry.js.map +1 -0
- package/dist/core/p-404f469e.js +2 -0
- package/dist/core/p-404f469e.js.map +1 -0
- package/dist/core/p-405fc50f.entry.js +2 -0
- package/dist/core/p-405fc50f.entry.js.map +1 -0
- package/dist/core/p-42636ddf.entry.js +2 -0
- package/dist/core/p-42636ddf.entry.js.map +1 -0
- package/dist/core/p-429850b9.entry.js +2 -0
- package/dist/core/p-429850b9.entry.js.map +1 -0
- package/dist/core/p-45485d1c.js +2 -0
- package/dist/core/p-45485d1c.js.map +1 -0
- package/dist/core/p-471c0863.entry.js +2 -0
- package/dist/core/p-471c0863.entry.js.map +1 -0
- package/dist/core/p-4af5e4f4.js +3 -0
- package/dist/core/p-4af5e4f4.js.map +1 -0
- package/dist/core/p-52dc68aa.entry.js +2 -0
- package/dist/core/p-52dc68aa.entry.js.map +1 -0
- package/dist/core/p-540e79c4.entry.js +2 -0
- package/dist/core/p-540e79c4.entry.js.map +1 -0
- package/dist/core/p-55500e5a.js +2 -0
- package/dist/core/p-55500e5a.js.map +1 -0
- package/dist/core/p-561fa17b.js +2 -0
- package/dist/core/p-561fa17b.js.map +1 -0
- package/dist/core/p-5a1c8d48.entry.js +2 -0
- package/dist/core/p-5a1c8d48.entry.js.map +1 -0
- package/dist/core/p-5d348765.entry.js +2 -0
- package/dist/core/p-5d348765.entry.js.map +1 -0
- package/dist/core/p-5defdc5e.js +2 -0
- package/dist/core/p-5defdc5e.js.map +1 -0
- package/dist/core/p-5e4cf9a2.entry.js +2 -0
- package/dist/core/p-5e4cf9a2.entry.js.map +1 -0
- package/dist/core/p-61103476.entry.js +2 -0
- package/dist/core/p-61103476.entry.js.map +1 -0
- package/dist/core/p-6278531b.js +2 -0
- package/dist/core/p-6278531b.js.map +1 -0
- package/dist/core/p-64ced668.js +2 -0
- package/dist/core/p-64ced668.js.map +1 -0
- package/dist/core/p-67006730.entry.js +2 -0
- package/dist/core/p-67006730.entry.js.map +1 -0
- package/dist/core/p-6aa31f02.entry.js +2 -0
- package/dist/core/p-6aa31f02.entry.js.map +1 -0
- package/dist/core/p-732f74fe.entry.js +2 -0
- package/dist/core/p-732f74fe.entry.js.map +1 -0
- package/dist/core/p-76e2aa52.entry.js +2 -0
- package/dist/core/p-76e2aa52.entry.js.map +1 -0
- package/dist/core/p-7bfa06b1.entry.js +2 -0
- package/dist/core/p-7bfa06b1.entry.js.map +1 -0
- package/dist/core/p-80e30702.js +2 -0
- package/dist/core/p-80e30702.js.map +1 -0
- package/dist/core/p-81f73a28.entry.js +2 -0
- package/dist/core/p-81f73a28.entry.js.map +1 -0
- package/dist/core/p-8204070b.entry.js +2 -0
- package/dist/core/p-8204070b.entry.js.map +1 -0
- package/dist/core/p-8815fa81.entry.js +2 -0
- package/dist/core/p-8815fa81.entry.js.map +1 -0
- package/dist/core/p-8bebbcc7.entry.js +2 -0
- package/dist/core/p-8bebbcc7.entry.js.map +1 -0
- package/dist/core/p-9144dde1.js +2 -0
- package/dist/core/p-9144dde1.js.map +1 -0
- package/dist/core/p-9bdce72b.entry.js +2 -0
- package/dist/core/p-9bdce72b.entry.js.map +1 -0
- package/dist/core/p-9cd80b05.js +2 -0
- package/dist/core/p-9cd80b05.js.map +1 -0
- package/dist/core/p-a37ef1b2.entry.js +2 -0
- package/dist/core/p-a37ef1b2.entry.js.map +1 -0
- package/dist/core/p-a4d23e73.entry.js +2 -0
- package/dist/core/p-a4d23e73.entry.js.map +1 -0
- package/dist/core/p-a5d69694.js +2 -0
- package/dist/core/p-a5d69694.js.map +1 -0
- package/dist/core/p-a6d14a47.js +2 -0
- package/dist/core/p-a6d14a47.js.map +1 -0
- package/dist/core/p-a89c27c1.entry.js +2 -0
- package/dist/core/p-a89c27c1.entry.js.map +1 -0
- package/dist/core/p-aba39622.entry.js +2 -0
- package/dist/core/p-aba39622.entry.js.map +1 -0
- package/dist/core/p-b2275b3d.js +2 -0
- package/dist/core/p-b2275b3d.js.map +1 -0
- package/dist/core/p-b7587525.entry.js +2 -0
- package/dist/core/p-b7587525.entry.js.map +1 -0
- package/dist/core/p-bce96aac.entry.js +2 -0
- package/dist/core/p-bce96aac.entry.js.map +1 -0
- package/dist/core/p-c20102ff.js +2 -0
- package/dist/core/p-c20102ff.js.map +1 -0
- package/dist/core/p-c91928ed.entry.js +2 -0
- package/dist/core/p-c91928ed.entry.js.map +1 -0
- package/dist/core/p-cfb5cd82.entry.js +2 -0
- package/dist/core/p-cfb5cd82.entry.js.map +1 -0
- package/dist/core/p-d389c001.entry.js +2 -0
- package/dist/core/p-d389c001.entry.js.map +1 -0
- package/dist/core/p-d5c2db32.entry.js +2 -0
- package/dist/core/p-d5c2db32.entry.js.map +1 -0
- package/dist/core/p-d8def432.entry.js +2 -0
- package/dist/core/p-d8def432.entry.js.map +1 -0
- package/dist/core/p-d90a2718.entry.js +2 -0
- package/dist/core/p-d90a2718.entry.js.map +1 -0
- package/dist/core/p-d9b4bc20.entry.js +2 -0
- package/dist/core/p-d9b4bc20.entry.js.map +1 -0
- package/dist/core/p-dc94a1da.entry.js +2 -0
- package/dist/core/p-dc94a1da.entry.js.map +1 -0
- package/dist/core/p-e1e4c8f8.entry.js +2 -0
- package/dist/core/p-e1e4c8f8.entry.js.map +1 -0
- package/dist/core/p-e3141382.entry.js +2 -0
- package/dist/core/p-e3141382.entry.js.map +1 -0
- package/dist/core/p-e38e0ad9.entry.js +2 -0
- package/dist/core/p-e38e0ad9.entry.js.map +1 -0
- package/dist/core/p-e4bb6100.entry.js +2 -0
- package/dist/core/p-e4bb6100.entry.js.map +1 -0
- package/dist/core/p-e4bb6114.entry.js +2 -0
- package/dist/core/p-e4bb6114.entry.js.map +1 -0
- package/dist/core/p-ef393836.entry.js +2 -0
- package/dist/core/p-ef393836.entry.js.map +1 -0
- package/dist/core/p-ef79904e.js +2 -0
- package/dist/core/p-ef79904e.js.map +1 -0
- package/dist/core/p-f0a4439e.entry.js +2 -0
- package/dist/core/p-f0a4439e.entry.js.map +1 -0
- package/dist/core/p-f644cad5.entry.js +2 -0
- package/dist/core/p-f644cad5.entry.js.map +1 -0
- package/dist/core/p-f687452c.js +2 -0
- package/dist/core/p-f687452c.js.map +1 -0
- package/dist/core/p-f6e2f2f0.entry.js +2 -0
- package/dist/core/p-f6e2f2f0.entry.js.map +1 -0
- package/dist/core/p-ff7365ae.js +2 -0
- package/dist/core/p-ff7365ae.js.map +1 -0
- package/dist/core/p-ffb7495c.js +2 -0
- package/dist/core/p-ffb7495c.js.map +1 -0
- package/dist/custom-elements/index.d.ts +387 -0
- package/dist/custom-elements/index.js +2 -0
- package/dist/custom-elements/index.js.map +1 -0
- package/dist/esm/Fragment-8d8d54fb.js +5 -0
- package/dist/esm/Fragment-8d8d54fb.js.map +1 -0
- package/dist/esm/constants-037c35bc.js +22 -0
- package/dist/esm/constants-037c35bc.js.map +1 -0
- package/dist/esm/constants-089b3fdd.js +33 -0
- package/dist/esm/constants-089b3fdd.js.map +1 -0
- package/dist/esm/constants-136d4cd3.js +16 -0
- package/dist/esm/constants-136d4cd3.js.map +1 -0
- package/dist/esm/constants-24dad929.js +29 -0
- package/dist/esm/constants-24dad929.js.map +1 -0
- package/dist/esm/constants-2b14bb01.js +10 -0
- package/dist/esm/constants-2b14bb01.js.map +1 -0
- package/dist/esm/constants-2e8258cf.js +15 -0
- package/dist/esm/constants-2e8258cf.js.map +1 -0
- package/dist/esm/constants-3786b01b.js +22 -0
- package/dist/esm/constants-3786b01b.js.map +1 -0
- package/dist/esm/constants-3df712e2.js +13 -0
- package/dist/esm/constants-3df712e2.js.map +1 -0
- package/dist/esm/constants-78474786.js +25 -0
- package/dist/esm/constants-78474786.js.map +1 -0
- package/dist/esm/constants-ab132d9c.js +25 -0
- package/dist/esm/constants-ab132d9c.js.map +1 -0
- package/dist/esm/constants-ba13b28f.js +17 -0
- package/dist/esm/constants-ba13b28f.js.map +1 -0
- package/dist/esm/constants-bf5a583f.js +24 -0
- package/dist/esm/constants-bf5a583f.js.map +1 -0
- package/dist/esm/constants-d71c09e0.js +12 -0
- package/dist/esm/constants-d71c09e0.js.map +1 -0
- package/dist/esm/constants-ebec7de8.js +12 -0
- package/dist/esm/constants-ebec7de8.js.map +1 -0
- package/dist/esm/constants-f5c21493.js +19 -0
- package/dist/esm/constants-f5c21493.js.map +1 -0
- package/dist/esm/constants-f7b618c2.js +23 -0
- package/dist/esm/constants-f7b618c2.js.map +1 -0
- package/dist/esm/core.js +19 -0
- package/dist/esm/core.js.map +1 -0
- package/dist/esm/form-669a7180.js +135 -0
- package/dist/esm/form-669a7180.js.map +1 -0
- package/dist/esm/gov-accordion-item.entry.js +109 -0
- package/dist/esm/gov-accordion-item.entry.js.map +1 -0
- package/dist/esm/gov-accordion.entry.js +71 -0
- package/dist/esm/gov-accordion.entry.js.map +1 -0
- package/dist/esm/gov-alert.entry.js +54 -0
- package/dist/esm/gov-alert.entry.js.map +1 -0
- package/dist/esm/gov-app.entry.js +8352 -0
- package/dist/esm/gov-app.entry.js.map +1 -0
- package/dist/esm/gov-attachments_3.entry.js +114 -0
- package/dist/esm/gov-attachments_3.entry.js.map +1 -0
- package/dist/esm/gov-backdrop.entry.js +50 -0
- package/dist/esm/gov-backdrop.entry.js.map +1 -0
- package/dist/esm/gov-badge.entry.js +80 -0
- package/dist/esm/gov-badge.entry.js.map +1 -0
- package/dist/esm/gov-breadcrumbs.entry.js +46 -0
- package/dist/esm/gov-breadcrumbs.entry.js.map +1 -0
- package/dist/esm/gov-button.entry.js +151 -0
- package/dist/esm/gov-button.entry.js.map +1 -0
- package/dist/esm/gov-card.entry.js +108 -0
- package/dist/esm/gov-card.entry.js.map +1 -0
- package/dist/esm/gov-container.entry.js +32 -0
- package/dist/esm/gov-container.entry.js.map +1 -0
- package/dist/esm/gov-cookiebar.entry.js +29 -0
- package/dist/esm/gov-cookiebar.entry.js.map +1 -0
- package/dist/esm/gov-empty.entry.js +27 -0
- package/dist/esm/gov-empty.entry.js.map +1 -0
- package/dist/esm/gov-error-code.entry.js +27 -0
- package/dist/esm/gov-error-code.entry.js.map +1 -0
- package/dist/esm/gov-form-autocomplete.entry.js +173 -0
- package/dist/esm/gov-form-autocomplete.entry.js.map +1 -0
- package/dist/esm/gov-form-checkbox.entry.js +104 -0
- package/dist/esm/gov-form-checkbox.entry.js.map +1 -0
- package/dist/esm/gov-form-control.entry.js +96 -0
- package/dist/esm/gov-form-control.entry.js.map +1 -0
- package/dist/esm/gov-form-file.entry.js +183 -0
- package/dist/esm/gov-form-file.entry.js.map +1 -0
- package/dist/esm/gov-form-group.entry.js +39 -0
- package/dist/esm/gov-form-group.entry.js.map +1 -0
- package/dist/esm/gov-form-input.entry.js +147 -0
- package/dist/esm/gov-form-input.entry.js.map +1 -0
- package/dist/esm/gov-form-label.entry.js +26 -0
- package/dist/esm/gov-form-label.entry.js.map +1 -0
- package/dist/esm/gov-form-multi-select.entry.js +189 -0
- package/dist/esm/gov-form-multi-select.entry.js.map +1 -0
- package/dist/esm/gov-form-password-power.entry.js +24 -0
- package/dist/esm/gov-form-password-power.entry.js.map +1 -0
- package/dist/esm/gov-form-radio.entry.js +104 -0
- package/dist/esm/gov-form-radio.entry.js.map +1 -0
- package/dist/esm/gov-form-search.entry.js +24 -0
- package/dist/esm/gov-form-search.entry.js.map +1 -0
- package/dist/esm/gov-form-select.entry.js +120 -0
- package/dist/esm/gov-form-select.entry.js.map +1 -0
- package/dist/esm/gov-form-switch.entry.js +104 -0
- package/dist/esm/gov-form-switch.entry.js.map +1 -0
- package/dist/esm/gov-grid-item.entry.js +26 -0
- package/dist/esm/gov-grid-item.entry.js.map +1 -0
- package/dist/esm/gov-grid.entry.js +24 -0
- package/dist/esm/gov-grid.entry.js.map +1 -0
- package/dist/esm/gov-icon.entry.js +122 -0
- package/dist/esm/gov-icon.entry.js.map +1 -0
- package/dist/esm/gov-layout-column.entry.js +21 -0
- package/dist/esm/gov-layout-column.entry.js.map +1 -0
- package/dist/esm/gov-layout.entry.js +30 -0
- package/dist/esm/gov-layout.entry.js.map +1 -0
- package/dist/esm/gov-loading.entry.js +27 -0
- package/dist/esm/gov-loading.entry.js.map +1 -0
- package/dist/esm/gov-message.entry.js +39 -0
- package/dist/esm/gov-message.entry.js.map +1 -0
- package/dist/esm/gov-modal.entry.js +101 -0
- package/dist/esm/gov-modal.entry.js.map +1 -0
- package/dist/esm/gov-nav-item.entry.js +33 -0
- package/dist/esm/gov-nav-item.entry.js.map +1 -0
- package/dist/esm/gov-nav.entry.js +38 -0
- package/dist/esm/gov-nav.entry.js.map +1 -0
- package/dist/esm/gov-pagination.entry.js +205 -0
- package/dist/esm/gov-pagination.entry.js.map +1 -0
- package/dist/esm/gov-prompt.entry.js +101 -0
- package/dist/esm/gov-prompt.entry.js.map +1 -0
- package/dist/esm/gov-side-nav-item.entry.js +81 -0
- package/dist/esm/gov-side-nav-item.entry.js.map +1 -0
- package/dist/esm/gov-side-nav.entry.js +52 -0
- package/dist/esm/gov-side-nav.entry.js.map +1 -0
- package/dist/esm/gov-skeleton.entry.js +113 -0
- package/dist/esm/gov-skeleton.entry.js.map +1 -0
- package/dist/esm/gov-spacer.entry.js +53 -0
- package/dist/esm/gov-spacer.entry.js.map +1 -0
- package/dist/esm/gov-statsbar-item.entry.js +35 -0
- package/dist/esm/gov-statsbar-item.entry.js.map +1 -0
- package/dist/esm/gov-statsbar.entry.js +48 -0
- package/dist/esm/gov-statsbar.entry.js.map +1 -0
- package/dist/esm/gov-stepper-item.entry.js +73 -0
- package/dist/esm/gov-stepper-item.entry.js.map +1 -0
- package/dist/esm/gov-stepper.entry.js +46 -0
- package/dist/esm/gov-stepper.entry.js.map +1 -0
- package/dist/esm/gov-tabs-item.entry.js +49 -0
- package/dist/esm/gov-tabs-item.entry.js.map +1 -0
- package/dist/esm/gov-tabs.entry.js +185 -0
- package/dist/esm/gov-tabs.entry.js.map +1 -0
- package/dist/esm/gov-tile.entry.js +46 -0
- package/dist/esm/gov-tile.entry.js.map +1 -0
- package/dist/esm/gov-tiles.entry.js +29 -0
- package/dist/esm/gov-tiles.entry.js.map +1 -0
- package/dist/esm/gov-toast.entry.js +99 -0
- package/dist/esm/gov-toast.entry.js.map +1 -0
- package/dist/esm/gov-tooltip-content.entry.js +38 -0
- package/dist/esm/gov-tooltip-content.entry.js.map +1 -0
- package/dist/esm/gov-tooltip.entry.js +154 -0
- package/dist/esm/gov-tooltip.entry.js.map +1 -0
- package/dist/esm/gov-wizzard-item.entry.js +106 -0
- package/dist/esm/gov-wizzard-item.entry.js.map +1 -0
- package/dist/esm/gov-wizzard.entry.js +63 -0
- package/dist/esm/gov-wizzard.entry.js.map +1 -0
- package/dist/esm/gov.log-af905420.js +17 -0
- package/dist/esm/gov.log-af905420.js.map +1 -0
- package/dist/esm/index-b010bfb4.js +2296 -0
- package/dist/esm/index-b010bfb4.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +19 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/props-789f7529.js +14 -0
- package/dist/esm/props-789f7529.js.map +1 -0
- package/dist/esm/sizes-6c5943b4.js +18 -0
- package/dist/esm/sizes-6c5943b4.js.map +1 -0
- package/dist/esm/string.utils-f268fc6b.js +20 -0
- package/dist/esm/string.utils-f268fc6b.js.map +1 -0
- package/dist/esm/template-10332292.js +113 -0
- package/dist/esm/template-10332292.js.map +1 -0
- package/dist/esm/utils-c057a3fa.js +35 -0
- package/dist/esm/utils-c057a3fa.js.map +1 -0
- package/dist/esm/variants-2b936d58.js +18 -0
- package/dist/esm/variants-2b936d58.js.map +1 -0
- package/dist/esm/wcag-3792d4bb.js +62 -0
- package/dist/esm/wcag-3792d4bb.js.map +1 -0
- package/dist/esm/win-9c8460bb.js +22 -0
- package/dist/esm/win-9c8460bb.js.map +1 -0
- package/dist/globals.d.ts +2 -0
- package/dist/hydrate/index.d.ts +217 -0
- package/dist/hydrate/index.js +20092 -0
- package/dist/hydrate/package.json +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.js +77 -0
- package/dist/stencil.config.js.map +1 -0
- package/dist/types/Users/iwory/iWork/asseco/mv/gov-design-system-ce/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
- package/dist/types/components/gov-accordion/constants.d.ts +22 -0
- package/dist/types/components/gov-accordion/gov-accordion-item.d.d.ts +4 -0
- package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +75 -0
- package/dist/types/components/gov-accordion/gov-accordion.d.ts +42 -0
- package/dist/types/components/gov-alert/constants.d.ts +11 -0
- package/dist/types/components/gov-alert/gov-alert.d.ts +30 -0
- package/dist/types/components/gov-app/gov-app.d.ts +38 -0
- package/dist/types/components/gov-attachments/constants.d.ts +11 -0
- package/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
- package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +24 -0
- package/dist/types/components/gov-attachments/gov-attachments.d.ts +19 -0
- package/dist/types/components/gov-backdrop/constants.d.ts +4 -0
- package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +32 -0
- package/dist/types/components/gov-badge/constants.d.ts +13 -0
- package/dist/types/components/gov-badge/gov-badge.d.ts +58 -0
- package/dist/types/components/gov-breadcrumbs/constants.d.ts +3 -0
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +4 -0
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +33 -0
- package/dist/types/components/gov-button/constants.d.ts +30 -0
- package/dist/types/components/gov-button/gov-button.d.ts +167 -0
- package/dist/types/components/gov-card/constants.d.ts +13 -0
- package/dist/types/components/gov-card/gov-card.d.ts +60 -0
- package/dist/types/components/gov-card/interfaces.d.ts +4 -0
- package/dist/types/components/gov-container/constants.d.ts +3 -0
- package/dist/types/components/gov-container/gov-container.d.ts +12 -0
- package/dist/types/components/gov-cookiebar/constants.d.ts +8 -0
- package/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
- package/dist/types/components/gov-empty/constants.d.ts +6 -0
- package/dist/types/components/gov-empty/gov-empty.d.ts +6 -0
- package/dist/types/components/gov-error-code/constants.d.ts +6 -0
- package/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
- package/dist/types/components/gov-form/autocomplete/constants.d.ts +12 -0
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +132 -0
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +3 -0
- package/dist/types/components/gov-form/checkbox/constants.d.ts +8 -0
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +82 -0
- package/dist/types/components/gov-form/control/constants.d.ts +9 -0
- package/dist/types/components/gov-form/control/gov-form-control.d.ts +47 -0
- package/dist/types/components/gov-form/file/constants.d.ts +9 -0
- package/dist/types/components/gov-form/file/gov-form-file.d.ts +114 -0
- package/dist/types/components/gov-form/file/gov-form-file.types.d.ts +6 -0
- package/dist/types/components/gov-form/group/constants.d.ts +7 -0
- package/dist/types/components/gov-form/group/gov-form-group.d.ts +13 -0
- package/dist/types/components/gov-form/input/constants.d.ts +30 -0
- package/dist/types/components/gov-form/input/gov-form-input.d.ts +165 -0
- package/dist/types/components/gov-form/label/constants.d.ts +8 -0
- package/dist/types/components/gov-form/label/gov-form-label.d.ts +26 -0
- package/dist/types/components/gov-form/message/constants.d.ts +9 -0
- package/dist/types/components/gov-form/message/gov-form-message.d.ts +19 -0
- package/dist/types/components/gov-form/multiselect/constants.d.ts +13 -0
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +105 -0
- package/dist/types/components/gov-form/multiselect/interfaces.d.ts +4 -0
- package/dist/types/components/gov-form/password-power/constants.d.ts +5 -0
- package/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +7 -0
- package/dist/types/components/gov-form/radio/constants.d.ts +10 -0
- package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +82 -0
- package/dist/types/components/gov-form/search/constants.d.ts +5 -0
- package/dist/types/components/gov-form/search/gov-form-search.d.ts +4 -0
- package/dist/types/components/gov-form/select/constants.d.ts +11 -0
- package/dist/types/components/gov-form/select/gov-form-select.d.ts +101 -0
- package/dist/types/components/gov-form/switch/constants.d.ts +10 -0
- package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +82 -0
- package/dist/types/components/gov-grid/constants.d.ts +6 -0
- package/dist/types/components/gov-grid/gov-grid-item.d.ts +26 -0
- package/dist/types/components/gov-grid/gov-grid.d.ts +14 -0
- package/dist/types/components/gov-icon/constants.d.ts +12 -0
- package/dist/types/components/gov-icon/gov-icon.d.ts +24 -0
- package/dist/types/components/gov-icon/list.d.ts +3 -0
- package/dist/types/components/gov-layout/constants.d.ts +20 -0
- package/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
- package/dist/types/components/gov-layout/gov-layout.d.ts +20 -0
- package/dist/types/components/gov-loading/loading/constants.d.ts +5 -0
- package/dist/types/components/gov-loading/loading/gov-loading.d.ts +10 -0
- package/dist/types/components/gov-loading/skeleton/constants.d.ts +20 -0
- package/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +52 -0
- package/dist/types/components/gov-message/constants.d.ts +10 -0
- package/dist/types/components/gov-message/gov-message.d.ts +12 -0
- package/dist/types/components/gov-modal/constants.d.ts +13 -0
- package/dist/types/components/gov-modal/gov-modal.d.ts +65 -0
- package/dist/types/components/gov-nav/constants.d.ts +8 -0
- package/dist/types/components/gov-nav/gov-nav-item.d.ts +12 -0
- package/dist/types/components/gov-nav/gov-nav.d.ts +17 -0
- package/dist/types/components/gov-pagination/constants.d.ts +22 -0
- package/dist/types/components/gov-pagination/gov-pagination.d.ts +85 -0
- package/dist/types/components/gov-pagination/pagination.d.ts +12 -0
- package/dist/types/components/gov-promp/constants.d.ts +12 -0
- package/dist/types/components/gov-promp/gov-prompt.d.ts +65 -0
- package/dist/types/components/gov-side-nav/constants.d.ts +15 -0
- package/dist/types/components/gov-side-nav/gov-side-nav-item.d.d.ts +4 -0
- package/dist/types/components/gov-side-nav/gov-side-nav-item.d.ts +67 -0
- package/dist/types/components/gov-side-nav/gov-side-nav.d.ts +32 -0
- package/dist/types/components/gov-spacer/constants.d.ts +15 -0
- package/dist/types/components/gov-spacer/gov-spacer.d.ts +18 -0
- package/dist/types/components/gov-statsbar/constants.d.ts +18 -0
- package/dist/types/components/gov-statsbar/gov-statsbar-item.d.ts +14 -0
- package/dist/types/components/gov-statsbar/gov-statsbar.d.ts +19 -0
- package/dist/types/components/gov-stepper/constants.d.ts +22 -0
- package/dist/types/components/gov-stepper/gov-stepper-item.d.d.ts +4 -0
- package/dist/types/components/gov-stepper/gov-stepper-item.d.ts +48 -0
- package/dist/types/components/gov-stepper/gov-stepper.d.ts +20 -0
- package/dist/types/components/gov-tabs/constants.d.ts +25 -0
- package/dist/types/components/gov-tabs/gov-tabs-item.d.ts +37 -0
- package/dist/types/components/gov-tabs/gov-tabs.d.ts +73 -0
- package/dist/types/components/gov-tabs/gov-tabs.types.d.ts +8 -0
- package/dist/types/components/gov-tile/constants.d.ts +9 -0
- package/dist/types/components/gov-tile/container/constants.d.ts +3 -0
- package/dist/types/components/gov-tile/container/gov-tiles.d.ts +15 -0
- package/dist/types/components/gov-tile/gov-tile.d.ts +20 -0
- package/dist/types/components/gov-toast/constants.d.ts +14 -0
- package/dist/types/components/gov-toast/gov-toast.d.ts +55 -0
- package/dist/types/components/gov-tooltip/constants.d.ts +20 -0
- package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +10 -0
- package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +50 -0
- package/dist/types/components/gov-wizzard/constants.d.ts +21 -0
- package/dist/types/components/gov-wizzard/gov-wizzard-item.d.d.ts +4 -0
- package/dist/types/components/gov-wizzard/gov-wizzard-item.d.ts +73 -0
- package/dist/types/components/gov-wizzard/gov-wizzard.d.ts +33 -0
- package/dist/types/components.d.ts +4019 -0
- package/dist/types/core/constants/sizes.d.ts +13 -0
- package/dist/types/core/constants/tags.d.ts +12 -0
- package/dist/types/core/constants/variants.d.ts +12 -0
- package/dist/types/helpers/Dom/form.d.ts +3 -0
- package/dist/types/helpers/Dom/form.types.d.ts +11 -0
- package/dist/types/helpers/Dom/template.d.ts +10 -0
- package/dist/types/helpers/Dom/template.types.d.ts +12 -0
- package/dist/types/helpers/Dom/win.d.ts +9 -0
- package/dist/types/helpers/Fragment.d.ts +2 -0
- package/dist/types/helpers/Log/gov.log.d.ts +8 -0
- package/dist/types/helpers/StorybookDocsTemplate.d.ts +3 -0
- package/dist/types/helpers/Validate/props.d.ts +1 -0
- package/dist/types/helpers/Validate/wcag.d.ts +4 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/pages/Accordion.d.ts +3 -0
- package/dist/types/pages/Alert.d.ts +3 -0
- package/dist/types/pages/Badge.d.ts +3 -0
- package/dist/types/pages/Breadcrumbs.d.ts +3 -0
- package/dist/types/pages/Button.d.ts +3 -0
- package/dist/types/pages/Card.d.ts +3 -0
- package/dist/types/pages/Container.d.ts +3 -0
- package/dist/types/pages/Cookiebar.d.ts +3 -0
- package/dist/types/pages/Empty.d.ts +3 -0
- package/dist/types/pages/Error.d.ts +3 -0
- package/dist/types/pages/FormLabel.d.ts +3 -0
- package/dist/types/pages/FormMessage.d.ts +3 -0
- package/dist/types/pages/Forms.d.ts +8 -0
- package/dist/types/pages/FormsRestructure.d.ts +3 -0
- package/dist/types/pages/Grid.d.ts +3 -0
- package/dist/types/pages/Home.d.ts +3 -0
- package/dist/types/pages/Layout.d.ts +3 -0
- package/dist/types/pages/Loading.d.ts +3 -0
- package/dist/types/pages/Message.d.ts +3 -0
- package/dist/types/pages/Modal.d.ts +3 -0
- package/dist/types/pages/Nav.d.ts +3 -0
- package/dist/types/pages/Pagination.d.ts +3 -0
- package/dist/types/pages/Prompt.d.ts +3 -0
- package/dist/types/pages/SideNav.d.ts +3 -0
- package/dist/types/pages/Spacer.d.ts +3 -0
- package/dist/types/pages/Statsbar.d.ts +3 -0
- package/dist/types/pages/Stepper.d.ts +3 -0
- package/dist/types/pages/Tabs.d.ts +3 -0
- package/dist/types/pages/Tiles.d.ts +3 -0
- package/dist/types/pages/ToastMessage.d.ts +3 -0
- package/dist/types/pages/ToastMessageCountdown.d.ts +3 -0
- package/dist/types/pages/Tooltip.d.ts +3 -0
- package/dist/types/pages/Typography.d.ts +3 -0
- package/dist/types/pages/Wizzard.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +1581 -0
- package/dist/types/types/interfaces.d.ts +2 -0
- package/dist/types/types/typings.d.ts +6 -0
- package/dist/types/utils/array.utils.d.ts +1 -0
- package/dist/types/utils/bool.utils.d.ts +1 -0
- package/dist/types/utils/ds.utils.d.ts +1 -0
- package/dist/types/utils/file.utils.d.ts +3 -0
- package/dist/types/utils/icon.utils.d.ts +4 -0
- package/dist/types/utils/number.utils.d.ts +1 -0
- package/dist/types/utils/string.utils.d.ts +3 -0
- package/dist/types/utils/utils.d.ts +20 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +1 -1
- package/LICENSE +0 -21
- package/readme.md +0 -86
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { v as validateProp } from './props.js';
|
|
3
|
+
import { V as Variants } from './variants.js';
|
|
4
|
+
import { p as pick } from './utils.js';
|
|
5
|
+
import { g as govHost } from './template.js';
|
|
6
|
+
|
|
7
|
+
pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS']);
|
|
8
|
+
const MessageClass = {
|
|
9
|
+
root: 'gov-message',
|
|
10
|
+
icon: 'gov-message__icon',
|
|
11
|
+
content: 'gov-message__content',
|
|
12
|
+
close: 'gov-message__close',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const govMessageCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-message{position:relative;display:flex;gap:1rem;flex-direction:column;padding:0.75rem 1rem;border-left:0.25rem solid transparent;background:var(--gov-toast-message-bg, var(--gov-color-neutral-white))}.gov-message__icon{flex:0 0 1.25rem;width:1.25rem;height:1.25rem}.gov-message__content{flex:1 1 auto}.gov-message__content>*:last-child{margin-bottom:0}.gov-message__content p{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}@media (min-width: 30em){.gov-message{flex-direction:row}}.gov-message[shadow=\"\"],.gov-message[shadow=true i],.gov-message[shadow=\"1\"]{box-shadow:var(--gov-message-box-shadow, 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1))}.gov-message[variant=warning]{border-left-color:var(--gov-message-warning-color, var(--gov-color-warning));background:var(--gov-message-warning-bg-color, var(--gov-color-warning-100))}.gov-message[variant=warning] .gov-message__icon{color:var(--gov-message-warning-color, var(--gov-color-warning))}.gov-message[variant=warning][inverse=\"\"],.gov-message[variant=warning][inverse=true i],.gov-message[variant=warning][inverse=\"1\"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=error]{border-left-color:var(--gov-message-error-color, var(--gov-color-error));background:var(--gov-message-error-bg-color, var(--gov-color-error-100))}.gov-message[variant=error] .gov-message__icon{color:var(--gov-message-error-color, var(--gov-color-error))}.gov-message[variant=error][inverse=\"\"],.gov-message[variant=error][inverse=true i],.gov-message[variant=error][inverse=\"1\"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=secondary]{border-left-color:var(--gov-message-secondary-color, var(--gov-color-secondary));background:var(--gov-message-secondary-bg-color, var(--gov-color-secondary-200))}.gov-message[variant=secondary] .gov-message__icon{color:var(--gov-message-secondary-color, var(--gov-color-secondary))}.gov-message[variant=secondary][inverse=\"\"],.gov-message[variant=secondary][inverse=true i],.gov-message[variant=secondary][inverse=\"1\"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=success]{border-left-color:var(--gov-message-success-color, var(--gov-color-success));background:var(--gov-message-success-bg-color, var(--gov-color-success-100))}.gov-message[variant=success] .gov-message__icon{color:var(--gov-message-success-color, var(--gov-color-success))}.gov-message[variant=success][inverse=\"\"],.gov-message[variant=success][inverse=true i],.gov-message[variant=success][inverse=\"1\"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=primary]{border-left-color:var(--gov-message-primary-color, var(--gov-color-primary));background:var(--gov-message-primary-bg-color, var(--gov-color-primary-100))}.gov-message[variant=primary] .gov-message__icon{color:var(--gov-message-primary-color, var(--gov-color-primary))}.gov-message[variant=primary][inverse=\"\"],.gov-message[variant=primary][inverse=true i],.gov-message[variant=primary][inverse=\"1\"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}";
|
|
16
|
+
|
|
17
|
+
const GovMessage$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
this.__registerHost();
|
|
21
|
+
this.variant = Variants.PRIMARY;
|
|
22
|
+
this.h = govHost(this.host);
|
|
23
|
+
}
|
|
24
|
+
validateVariant(newValue) {
|
|
25
|
+
validateProp(Variants, newValue, MessageClass.root);
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
return (h(Host, { class: this.h.classes(MessageClass.root), variant: this.variant, role: "alert" }, this.h.hasSlot('icon') && (h("span", { class: MessageClass.icon }, h("slot", { name: "icon" }))), h("div", { class: MessageClass.content }, h("slot", null))));
|
|
29
|
+
}
|
|
30
|
+
get host() { return this; }
|
|
31
|
+
static get watchers() { return {
|
|
32
|
+
"variant": ["validateVariant"]
|
|
33
|
+
}; }
|
|
34
|
+
static get style() { return govMessageCss; }
|
|
35
|
+
}, [4, "gov-message", {
|
|
36
|
+
"variant": [1]
|
|
37
|
+
}]);
|
|
38
|
+
function defineCustomElement$1() {
|
|
39
|
+
if (typeof customElements === "undefined") {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const components = ["gov-message"];
|
|
43
|
+
components.forEach(tagName => { switch (tagName) {
|
|
44
|
+
case "gov-message":
|
|
45
|
+
if (!customElements.get(tagName)) {
|
|
46
|
+
customElements.define(tagName, GovMessage$1);
|
|
47
|
+
}
|
|
48
|
+
break;
|
|
49
|
+
} });
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const GovMessage = GovMessage$1;
|
|
53
|
+
const defineCustomElement = defineCustomElement$1;
|
|
54
|
+
|
|
55
|
+
export { GovMessage, defineCustomElement };
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=gov-message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"gov-message.js","mappings":";;;;;;AAI+B,IAAI,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,EAAC;AAG/F,MAAM,YAAY,GAAG;EAC3B,IAAI,EAAE,aAAa;EACnB,IAAI,EAAE,mBAAmB;EACzB,OAAO,EAAE,sBAAsB;EAC/B,KAAK,EAAE,oBAAoB;CAC3B;;ACZD,MAAM,aAAa,GAAG,2jHAA2jH;;MCYpkHA,YAAU;EAGtB;;;mBAS+C,QAAQ,CAAC,OAAO;IAR9D,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAUD,eAAe,CAAC,QAAgB;IAC/B,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;GACnD;EAED,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAC,OAAO,IACjF,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtB,YAAM,KAAK,EAAE,YAAY,CAAC,IAAI,IAC7B,YAAM,IAAI,EAAC,MAAM,GAAG,CACd,CACP,EAED,WAAK,KAAK,EAAE,YAAY,CAAC,OAAO,IAC/B,eAAQ,CACH,CACA,EACP;GACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovMessage"],"sources":["../../../packages/core/src/components/gov-message/constants.ts","../../../packages/core/src/components/gov-message/gov-message.scss?tag=gov-message","../../../packages/core/src/components/gov-message/gov-message.tsx"],"sourcesContent":["import { Variants } from '../../core/constants/variants'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const MessageVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS'])\nexport type MessageVariantType = `${ValueOf<typeof MessageVariants>}`\n\nexport const MessageClass = {\n\troot: 'gov-message',\n\ticon: 'gov-message__icon',\n\tcontent: 'gov-message__content',\n\tclose: 'gov-message__close',\n}\n","/*\n * Alert\n */\n\n@import \"../gov-toast/gov-toast-message-core.scss\";\n$class: \".gov-message\";\n\n#{$class} {\n\t@include toast-message-core;\n\n\t// VARIANTS\n\t@include parameter(\"shadow\") {\n\t\tbox-shadow: $message-box-shadow;\n\t}\n\t@each $variant, $definitions in $message-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\tborder-left-color: get(\"color\", $definitions);\n\t\t\tbackground: get(\"bg-color\", $definitions);\n\t\t\t#{$class} {\n\t\t\t\t&__icon {\n\t\t\t\t\tcolor: get(\"color\", $definitions);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// STATES\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\tbackground: $message-bg-inverse;\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 { MessageClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { Variants } from '../../core/constants/variants'\nimport { MessageVariantType } from './constants'\n\n@Component({\n\ttag: 'gov-message',\n\tstyleUrl: 'gov-message.scss',\n})\nexport class GovMessage {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovMessageElement\n\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly variant: MessageVariantType = Variants.PRIMARY\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(Variants, newValue, MessageClass.root)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(MessageClass.root)} variant={this.variant} role=\"alert\">\n\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t<span class={MessageClass.icon}>\n\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\n\t\t\t\t<div class={MessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface GovModal extends Components.GovModal, HTMLElement {}
|
|
4
|
+
export const GovModal: {
|
|
5
|
+
prototype: GovModal;
|
|
6
|
+
new (): GovModal;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as createID } from './string.utils.js';
|
|
3
|
+
import { a as validateWcagRef } from './wcag.js';
|
|
4
|
+
import { M as ModalClass } from './constants8.js';
|
|
5
|
+
import { c as canValidateWcagOnRender } from './win.js';
|
|
6
|
+
import { d as delay } from './utils.js';
|
|
7
|
+
import { g as govHost, a as toBoolAttr } from './template.js';
|
|
8
|
+
import { g as govErrorLog } from './gov.log.js';
|
|
9
|
+
import { d as defineCustomElement$4 } from './gov-backdrop2.js';
|
|
10
|
+
import { d as defineCustomElement$3 } from './gov-button2.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './gov-icon2.js';
|
|
12
|
+
|
|
13
|
+
const govModalCss = ".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;padding-top:calc((var(--gov-text-3xl-font-size) * 1.5 - 2rem) / 2)}.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__actions{display:flex;gap:0.5rem 1rem;flex-wrap:wrap;justify-content:flex-end;padding:1.5rem 1rem;border-top:var(--gov-modal-border-color, 0.0625rem solid var(--gov-color-secondary-500))}.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__close{padding-top:calc((var(--gov-text-3xl-font-size) * 1.5 - 2.5rem) / 2)}.gov-modal__content{padding:2rem 3rem}.gov-modal--prompt .gov-modal__header,.gov-modal--prompt .gov-modal__content,.gov-modal--prompt .gov-modal__actions{padding:1.5rem}}";
|
|
14
|
+
|
|
15
|
+
const GovModal$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
this.__registerHost();
|
|
19
|
+
this.govClose = createEvent(this, "gov-close", 7);
|
|
20
|
+
this.open = false;
|
|
21
|
+
this.label = undefined;
|
|
22
|
+
this.role = "dialog";
|
|
23
|
+
this.labelTag = "h2";
|
|
24
|
+
this.wcaglabelledBy = undefined;
|
|
25
|
+
this.wcagDescribedBy = undefined;
|
|
26
|
+
this.wcagCloseLabel = undefined;
|
|
27
|
+
this.wcagCloseLabelledBy = undefined;
|
|
28
|
+
this.modalVisible = false;
|
|
29
|
+
this.h = govHost(this.host);
|
|
30
|
+
this.labelId = createID("GovModalLabel");
|
|
31
|
+
this.contentId = createID("GovModalContent");
|
|
32
|
+
}
|
|
33
|
+
validateLabelTag(newValue) {
|
|
34
|
+
const validTags = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
35
|
+
if (newValue) {
|
|
36
|
+
if (!validTags.includes(newValue)) {
|
|
37
|
+
govErrorLog(`[${ModalClass.root}]: Tag ${newValue} is not allowed.`);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
watchOpen(newValue) {
|
|
42
|
+
this.modalVisible = newValue;
|
|
43
|
+
}
|
|
44
|
+
showModal() {
|
|
45
|
+
this.modalVisible = true;
|
|
46
|
+
document.body.classList.add(ModalClass.bodyFix);
|
|
47
|
+
}
|
|
48
|
+
hideModal() {
|
|
49
|
+
this.modalVisible = false;
|
|
50
|
+
document.body.classList.remove(ModalClass.bodyFix);
|
|
51
|
+
}
|
|
52
|
+
async componentWillRender() {
|
|
53
|
+
if (this.modalVisible) {
|
|
54
|
+
this.showModal();
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.hideModal();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
async componentDidRender() {
|
|
61
|
+
this.modalVisible = this.open;
|
|
62
|
+
if (canValidateWcagOnRender()) {
|
|
63
|
+
await delay(500);
|
|
64
|
+
await this.validateWcag();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
const LabelTag = this.labelTag;
|
|
69
|
+
return (h(Host, { class: this.h.classes(ModalClass.root), open: this.modalVisible }, h("dialog", { class: ModalClass.dialog, hidden: !this.modalVisible, tabindex: "-1", open: this.modalVisible, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.modalVisible), "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("gov-backdrop", { visible: this.modalVisible, "wcag-label": this.wcagCloseLabel, "wcag-labelled-by": this.wcagCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })));
|
|
70
|
+
}
|
|
71
|
+
onCloseHandler(e) {
|
|
72
|
+
e.stopPropagation();
|
|
73
|
+
this.hideModal();
|
|
74
|
+
this.govClose.emit(e);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Showing the modal
|
|
78
|
+
*/
|
|
79
|
+
async show() {
|
|
80
|
+
this.showModal();
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Hidding the modal
|
|
84
|
+
*/
|
|
85
|
+
async hide() {
|
|
86
|
+
this.hideModal();
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Validate the WCAG attributes of the component
|
|
90
|
+
*/
|
|
91
|
+
async validateWcag() {
|
|
92
|
+
validateWcagRef(this.wcaglabelledBy, "aria-labelledby", ModalClass.root);
|
|
93
|
+
validateWcagRef(this.wcagDescribedBy, "aria-describedby", ModalClass.root);
|
|
94
|
+
}
|
|
95
|
+
get host() { return this; }
|
|
96
|
+
static get watchers() { return {
|
|
97
|
+
"labelTag": ["validateLabelTag"],
|
|
98
|
+
"open": ["watchOpen"]
|
|
99
|
+
}; }
|
|
100
|
+
static get style() { return govModalCss; }
|
|
101
|
+
}, [4, "gov-modal", {
|
|
102
|
+
"open": [4],
|
|
103
|
+
"label": [1],
|
|
104
|
+
"role": [1],
|
|
105
|
+
"labelTag": [1, "label-tag"],
|
|
106
|
+
"wcaglabelledBy": [1, "wcag-labelled-by"],
|
|
107
|
+
"wcagDescribedBy": [1, "wcag-described-by"],
|
|
108
|
+
"wcagCloseLabel": [1, "wcag-close-label"],
|
|
109
|
+
"wcagCloseLabelledBy": [1, "wcag-close-labelled-by"],
|
|
110
|
+
"modalVisible": [32],
|
|
111
|
+
"show": [64],
|
|
112
|
+
"hide": [64],
|
|
113
|
+
"validateWcag": [64]
|
|
114
|
+
}]);
|
|
115
|
+
function defineCustomElement$1() {
|
|
116
|
+
if (typeof customElements === "undefined") {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const components = ["gov-modal", "gov-backdrop", "gov-button", "gov-icon"];
|
|
120
|
+
components.forEach(tagName => { switch (tagName) {
|
|
121
|
+
case "gov-modal":
|
|
122
|
+
if (!customElements.get(tagName)) {
|
|
123
|
+
customElements.define(tagName, GovModal$1);
|
|
124
|
+
}
|
|
125
|
+
break;
|
|
126
|
+
case "gov-backdrop":
|
|
127
|
+
if (!customElements.get(tagName)) {
|
|
128
|
+
defineCustomElement$4();
|
|
129
|
+
}
|
|
130
|
+
break;
|
|
131
|
+
case "gov-button":
|
|
132
|
+
if (!customElements.get(tagName)) {
|
|
133
|
+
defineCustomElement$3();
|
|
134
|
+
}
|
|
135
|
+
break;
|
|
136
|
+
case "gov-icon":
|
|
137
|
+
if (!customElements.get(tagName)) {
|
|
138
|
+
defineCustomElement$2();
|
|
139
|
+
}
|
|
140
|
+
break;
|
|
141
|
+
} });
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const GovModal = GovModal$1;
|
|
145
|
+
const defineCustomElement = defineCustomElement$1;
|
|
146
|
+
|
|
147
|
+
export { GovModal, defineCustomElement };
|
|
148
|
+
|
|
149
|
+
//# sourceMappingURL=gov-modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"gov-modal.js","mappings":";;;;;;;;;;;;AAAA,MAAM,WAAW,GAAG,m1FAAm1F;;MCe11FA,UAAQ;EAKpB;;;;gBAWe,KAAK;;gBAQgB,QAAQ;oBAIkB,IAAI;;;;;wBAsB1C,KAAK;IA5C5B,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3B,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAA;IACxC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAA;GAC5C;EA4CD,gBAAgB,CAAC,QAAgB;IAChC,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IACtD,IAAI,QAAQ,EAAE;MACb,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClC,WAAW,CAAC,IAAI,UAAU,CAAC,IAAI,UAAU,QAAQ,kBAAkB,CAAC,CAAA;OACpE;KACD;GACD;EAGD,SAAS,CAAC,QAAiB;IAC1B,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAA;GAC5B;EAEO,SAAS;IAChB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAA;IACxB,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;GAC/C;EAEO,SAAS;IAChB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;GAClD;EAED,MAAM,mBAAmB;IACxB,IAAI,IAAI,CAAC,YAAY,EAAE;MACtB,IAAI,CAAC,SAAS,EAAE,CAAA;KAChB;SAAM;MACN,IAAI,CAAC,SAAS,EAAE,CAAA;KAChB;GACD;EAED,MAAM,kBAAkB;IACvB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,IAAI,CAAA;IAC7B,IAAI,uBAAuB,EAAE,EAAE;MAC9B,MAAM,KAAK,CAAC,GAAG,CAAC,CAAA;MAChB,MAAM,IAAI,CAAC,YAAY,EAAE,CAAA;KACzB;GACD;EAED,MAAM;IACL,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;IAC9B,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,YAAY,IACpE,cACC,KAAK,EAAE,UAAU,CAAC,MAAM,EACxB,MAAM,EAAE,CAAC,IAAI,CAAC,YAAY,EAC1B,QAAQ,EAAC,IAAI,EACb,IAAI,EAAE,IAAI,CAAC,YAAY,gBACZ,MAAM,iBACJ,UAAU,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,qBAC1B,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,OAAO,sBAClC,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,SAAS,EACxD,IAAI,EAAE,IAAI,CAAC,IAAI,IAEf,WAAK,KAAK,EAAE,UAAU,CAAC,KAAK,IAC3B,WAAK,KAAK,EAAE,UAAU,CAAC,MAAM,IAC3B,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtB,WAAK,KAAK,EAAE,UAAU,CAAC,IAAI,IAC1B,YAAM,IAAI,EAAC,MAAM,GAAG,CACf,CACN,EACA,IAAI,CAAC,KAAK,KACV,EAAC,QAAQ,IAAC,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,IACjD,IAAI,CAAC,KAAK,CACD,CACX,EACD,kBACC,KAAK,EAAE,UAAU,CAAC,KAAK,EACvB,OAAO,EAAC,SAAS,EACjB,SAAS,EAAE,IAAI,CAAC,cAAc,EAC9B,cAAc,EAAE,IAAI,CAAC,mBAAmB,EACxC,IAAI,EAAC,MAAM,kBACG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,IAE5C,gBAAU,IAAI,EAAC,MAAM,GAAG,CACZ,CACR,EACN,WAAK,KAAK,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,IACjD,eAAQ,CACH,CACD,CACE,EAET,oBACC,OAAO,EAAE,IAAI,CAAC,YAAY,gBACd,IAAI,CAAC,cAAc,sBACb,IAAI,CAAC,mBAAmB,kBAC5B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,GAC3C,CACI,EACP;GACD;EAEO,cAAc,CAAC,CAAe;IACrC,CAAC,CAAC,eAAe,EAAE,CAAA;IACnB,IAAI,CAAC,SAAS,EAAE,CAAA;IAChB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;GACrB;;;;EAMD,MAAM,IAAI;IACT,IAAI,CAAC,SAAS,EAAE,CAAA;GAChB;;;;EAMD,MAAM,IAAI;IACT,IAAI,CAAC,SAAS,EAAE,CAAA;GAChB;;;;EAMD,MAAM,YAAY;IACjB,eAAe,CAAC,IAAI,CAAC,cAAc,EAAE,iBAAiB,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;IACxE,eAAe,CAAC,IAAI,CAAC,eAAe,EAAE,kBAAkB,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;GAC1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovModal"],"sources":["../../../packages/core/src/components/gov-modal/gov-modal.scss?tag=gov-modal","../../../packages/core/src/components/gov-modal/gov-modal.tsx"],"sourcesContent":["/*\n * Modal\n */\n\n$class: \".gov-modal\";\n\n#{$class} {\n\tdisplay: none;\n\t&__dialog {\n\t\t@include z-index(\"modal\", 1);\n\t\tposition: fixed;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\tmax-width: $modal-max-width;\n\t\theight: 100%;\n\t\tpadding: rem-calc(8);\n\t\tborder: none;\n\t\tbackground: transparent;\n\t\ttransform: translate(-50%, -50%);\n\t\tpointer-events: none;\n\t}\n\t&__inner {\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t\tmax-height: 100%;\n\t\tborder-radius: $border-radius;\n\t\tbackground: $modal-bg;\n\t\toverflow: hidden;\n\t\tpointer-events: auto;\n\t\tbox-shadow: get($shadow-l, $shadows);\n\t}\n\t&__header {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\talign-items: flex-start;\n\t\tpadding: rem-calc(24 16);\n\t\tborder-bottom: $modal-border;\n\t}\n\t&__icon {\n\t\tflex: 0 0 auto;\n\t\tpadding-top: calc(((var(--gov-text-#{$font-size-3xl}-font-size) * 1.5) - rem-calc(24)) / 2);\n\t\t& > * {\n\t\t\twidth: rem-calc(24);\n\t\t\theight: rem-calc(24);\n\t\t}\n\t}\n\t&__title {\n\t\t@include typography($font-size-3xl);\n\t\tmargin: 0;\n\t}\n\t&__close {\n\t\tflex: 0 0 auto;\n\t\tmargin-left: auto;\n\t\tpadding-top: calc(((var(--gov-text-#{$font-size-3xl}-font-size) * 1.5) - rem-calc(32)) / 2);\n\t}\n\t&__content {\n\t\t@include reset-last-margin();\n\t\theight: 100%;\n\t\tpadding: rem-calc(24 16);\n\t\tcolor: $modal-text-color;\n\t\toverflow: auto;\n\t}\n\t&__actions {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(8 16);\n\t\tflex-wrap: wrap;\n\t\tjustify-content: flex-end;\n\t\tpadding: rem-calc(24 16);\n\t\tborder-top: $modal-border;\n\t}\n\n\t// STATES\n\t&__dialog:focus &__inner {\n\t\toutline: $outline;\n\t}\n\t@include parameter(\"open\") {\n\t\tdisplay: block;\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t&__dialog {\n\t\t\tmax-width: calc($modal-max-width + 2 * rem-calc(24));\n\t\t\tpadding: rem-calc(24);\n\t\t\t&:focus {\n\t\t\t\toutline-offset: rem-calc(-24);\n\t\t\t}\n\t\t}\n\t\t&__inner {\n\t\t\tbox-shadow: get($shadow-xl, $shadows);\n\t\t}\n\n\t\t// VARIANTS\n\t\t&--prompt &__dialog {\n\t\t\tmax-width: calc($modal-prompt-max-width + 2 * rem-calc(24));\n\t\t}\n\t}\n\t@include mq($from: md) {\n\t\t&__header {\n\t\t\tgap: rem-calc(20);\n\t\t\tpadding: rem-calc(32 40 32 48);\n\t\t}\n\t\t&__close {\n\t\t\tpadding-top: calc(((var(--gov-text-#{$font-size-3xl}-font-size) * 1.5) - rem-calc(40)) / 2);\n\t\t}\n\t\t&__content {\n\t\t\tpadding: rem-calc(32 48);\n\t\t}\n\n\t\t// VARIANTS\n\t\t&--prompt {\n\t\t\t#{$class} {\n\t\t\t\t&__header,\n\t\t\t\t&__content,\n\t\t\t\t&__actions {\n\t\t\t\t\tpadding: rem-calc(24);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Event, Element, EventEmitter, h, Host, Method, Prop, Watch, State } from \"@stencil/core\"\nimport { createID } from \"../../utils/string.utils\"\nimport { validateWcagRef } from \"../../helpers/Validate/wcag\"\nimport { ModalClass } from \"./constants\"\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\nimport { delay } from \"../../utils/utils\"\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { govErrorLog } from \"../../helpers/Log/gov.log\"\n\n@Component({\n\ttag: \"gov-modal\",\n\tstyleUrl: \"gov-modal.scss\",\n})\nexport class GovModal {\n\tprivate h: GovHost\n\tprivate readonly labelId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.labelId = createID(\"GovModalLabel\")\n\t\tthis.contentId = createID(\"GovModalContent\")\n\t}\n\n\t@Element() host: HTMLGovModalElement\n\n\t/**\n\t * Attribute for modal window display\n\t */\n\t@Prop() 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 = \"dialog\"\n\t/**\n\t * Used to change the HMTL tag in the modal label for correct semantic structure\n\t */\n\t@Prop({ attribute: \"label-tag\" }) readonly labelTag: string = \"h2\"\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: \"wcag-labelled-by\" }) wcaglabelledBy: string\n\t/**\n\t * Indicates the id of a component that describes the modal.\n\t */\n\t@Prop({ attribute: \"wcag-described-by\" }) wcagDescribedBy: string\n\t/**\n\t * Adds accessible label for the modal close button that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: \"wcag-close-label\" }) wcagCloseLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for closing the modal window\n\t */\n\t@Prop({ attribute: \"wcag-close-labelled-by\" }) wcagCloseLabelledBy: string\n\t/**\n\t * Emitted when modal window closes.\n\t */\n\t@Event({ eventName: \"gov-close\" }) govClose: EventEmitter<PointerEvent>\n\n\t@State() modalVisible = false\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.modalVisible = newValue\n\t}\n\n\tprivate showModal() {\n\t\tthis.modalVisible = true\n\t\tdocument.body.classList.add(ModalClass.bodyFix)\n\t}\n\n\tprivate hideModal() {\n\t\tthis.modalVisible = false\n\t\tdocument.body.classList.remove(ModalClass.bodyFix)\n\t}\n\n\tasync componentWillRender() {\n\t\tif (this.modalVisible) {\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\tthis.modalVisible = this.open\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\tconst LabelTag = this.labelTag\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ModalClass.root)} open={this.modalVisible}>\n\t\t\t\t<dialog\n\t\t\t\t\tclass={ModalClass.dialog}\n\t\t\t\t\thidden={!this.modalVisible}\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\topen={this.modalVisible}\n\t\t\t\t\taria-modal=\"true\"\n\t\t\t\t\taria-hidden={toBoolAttr(!this.modalVisible)}\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</div>\n\t\t\t\t</dialog>\n\n\t\t\t\t<gov-backdrop\n\t\t\t\t\tvisible={this.modalVisible}\n\t\t\t\t\twcag-label={this.wcagCloseLabel}\n\t\t\t\t\twcag-labelled-by={this.wcagCloseLabelledBy}\n\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t/>\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 * Hidding 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, \"aria-labelledby\", ModalClass.root)\n\t\tvalidateWcagRef(this.wcagDescribedBy, \"aria-describedby\", ModalClass.root)\n\t}\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface GovNavItem extends Components.GovNavItem, HTMLElement {}
|
|
4
|
+
export const GovNavItem: {
|
|
5
|
+
prototype: GovNavItem;
|
|
6
|
+
new (): GovNavItem;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { g as govErrorLog } from './gov.log.js';
|
|
3
|
+
import { a as NavItemClass } from './constants9.js';
|
|
4
|
+
|
|
5
|
+
const govNavItemCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-nav-item{display:block}.gov-nav-item__link{position:relative;display:block;padding:0.9375rem 3rem 0.9375rem 2.25rem;color:var(--gov-nav-color, var(--gov-color-neutral-white));text-decoration:none}.gov-nav-item__link:focus{outline:none}.gov-nav-item__link: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-nav-item__link:focus{outline-color:var(--gov-nav-color, var(--gov-color-neutral-white))}@media not all and (pointer: coarse){.gov-nav-item__link:hover{color:var(--gov-nav-color, var(--gov-color-neutral-white));text-decoration:underline}}@media (min-width: 48em){.gov-nav-item__link{display:inline-flex;justify-content:center;align-items:center;height:100%;padding:1.375rem 1.25rem 1.3125rem}.gov-nav-item__link::before{content:\"\";position:absolute;display:block;top:0;left:50%;width:0;height:0.125rem;background:var(--gov-nav-color, var(--gov-color-neutral-white));transform:translate(-50%);transition:width 150ms}@media not all and (pointer: coarse){.gov-nav-item__link:hover{text-decoration:none}.gov-nav-item__link:hover::before{width:100%}}}";
|
|
6
|
+
|
|
7
|
+
const GovNavItem$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.isExpandedState = undefined;
|
|
12
|
+
this.href = undefined;
|
|
13
|
+
}
|
|
14
|
+
validateHref(newValue) {
|
|
15
|
+
if (!newValue) {
|
|
16
|
+
govErrorLog(`[${NavItemClass.root}]: Parameter href is required.`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
componentWillLoad() {
|
|
20
|
+
this.validateHref(this.href);
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return (h(Host, { class: NavItemClass.root, role: "listitem" }, h("a", { href: this.href, class: NavItemClass.link }, h("slot", null))));
|
|
24
|
+
}
|
|
25
|
+
get host() { return this; }
|
|
26
|
+
static get watchers() { return {
|
|
27
|
+
"href": ["validateHref"]
|
|
28
|
+
}; }
|
|
29
|
+
static get style() { return govNavItemCss; }
|
|
30
|
+
}, [4, "gov-nav-item", {
|
|
31
|
+
"href": [1],
|
|
32
|
+
"isExpandedState": [32]
|
|
33
|
+
}]);
|
|
34
|
+
function defineCustomElement$1() {
|
|
35
|
+
if (typeof customElements === "undefined") {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const components = ["gov-nav-item"];
|
|
39
|
+
components.forEach(tagName => { switch (tagName) {
|
|
40
|
+
case "gov-nav-item":
|
|
41
|
+
if (!customElements.get(tagName)) {
|
|
42
|
+
customElements.define(tagName, GovNavItem$1);
|
|
43
|
+
}
|
|
44
|
+
break;
|
|
45
|
+
} });
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const GovNavItem = GovNavItem$1;
|
|
49
|
+
const defineCustomElement = defineCustomElement$1;
|
|
50
|
+
|
|
51
|
+
export { GovNavItem, defineCustomElement };
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=gov-nav-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"gov-nav-item.js","mappings":";;;;AAAA,MAAM,aAAa,GAAG,0+CAA0+C;;MCQn/CA,YAAU;;;;;;;EAWtB,YAAY,CAAC,QAAgB;IAC5B,IAAI,CAAC,QAAQ,EAAE;MACd,WAAW,CAAC,IAAI,YAAY,CAAC,IAAI,gCAAgC,CAAC,CAAA;KAClE;GACD;EAED,iBAAiB;IAChB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC5B;EAED,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,YAAY,CAAC,IAAI,EAAE,IAAI,EAAC,UAAU,IAC9C,SAAG,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,IAAI,IAC3C,eAAQ,CACL,CACE,EACP;GACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovNavItem"],"sources":["../../../packages/core/src/components/gov-nav/gov-nav-item.scss?tag=gov-nav-item","../../../packages/core/src/components/gov-nav/gov-nav-item.tsx"],"sourcesContent":["/*\n * Nav - Item\n */\n\n$class: \".gov-nav-item\";\n\n#{$class} {\n\tdisplay: block;\n\t&__link {\n\t\t@include focus-outline();\n\t\tposition: relative;\n\t\tdisplay: block;\n\t\tpadding: rem-calc(15 48 15 36);\n\t\tcolor: $nav-color;\n\t\ttext-decoration: none;\n\t\t&:focus {\n\t\t\toutline-color: $nav-color;\n\t\t}\n\t\t@include hover() {\n\t\t\tcolor: $nav-color;\n\t\t\ttext-decoration: underline;\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: md) {\n\t\t&__link {\n\t\t\tdisplay: inline-flex;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\theight: 100%;\n\t\t\tpadding: rem-calc(22 20 21);\n\t\t\t&::before {\n\t\t\t\t@include pseudo();\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 50%;\n\t\t\t\twidth: 0;\n\t\t\t\theight: rem-calc(2);\n\t\t\t\tbackground: $nav-color;\n\t\t\t\ttransform: translate(-50%);\n\t\t\t\ttransition: width $t;\n\t\t\t}\n\t\t\t@include hover() {\n\t\t\t\ttext-decoration: none;\n\t\t\t\t&::before {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Prop, State, Host, Watch } from '@stencil/core'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { NavItemClass } from './constants'\n\n@Component({\n\ttag: 'gov-nav-item',\n\tstyleUrl: 'gov-nav-item.scss',\n})\nexport class GovNavItem {\n\t@Element() readonly host: HTMLGovNavItemElement\n\t@State() isExpandedState: boolean\n\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\n\t@Watch('href')\n\tvalidateHref(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${NavItemClass.root}]: Parameter href is required.`)\n\t\t}\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateHref(this.href)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={NavItemClass.root} role=\"listitem\">\n\t\t\t\t<a href={this.href} class={NavItemClass.link}>\n\t\t\t\t\t<slot />\n\t\t\t\t</a>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface GovNav extends Components.GovNav, HTMLElement {}
|
|
4
|
+
export const GovNav: {
|
|
5
|
+
prototype: GovNav;
|
|
6
|
+
new (): GovNav;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { N as NavClass } from './constants9.js';
|
|
3
|
+
import { v as validateWcagLabel } from './wcag.js';
|
|
4
|
+
import { c as canValidateWcagOnRender } from './win.js';
|
|
5
|
+
import { d as delay } from './utils.js';
|
|
6
|
+
|
|
7
|
+
const govNavCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-nav{position:relative;display:block;width:100%;font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);background:var(--gov-nav-bg, var(--gov-color-primary));font-weight:bold;letter-spacing:0.0125em;text-transform:uppercase}@media (min-width: 48em){.gov-nav{text-align:center}.gov-nav__nav{display:flex;justify-content:space-between}}";
|
|
8
|
+
|
|
9
|
+
const GovNav$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.__registerHost();
|
|
13
|
+
this.wcagLabel = undefined;
|
|
14
|
+
this.wcagLabelledBy = undefined;
|
|
15
|
+
}
|
|
16
|
+
async componentDidRender() {
|
|
17
|
+
if (canValidateWcagOnRender()) {
|
|
18
|
+
await delay(500);
|
|
19
|
+
await this.validateWcag();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return (h(Host, { class: NavClass.root }, h("nav", { class: NavClass.nav, role: 'list', "arial-label": this.wcagLabel, "arial-labelledby": this.wcagLabelledBy }, h("slot", null))));
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Validate the WCAG attributes of the component
|
|
27
|
+
*/
|
|
28
|
+
async validateWcag() {
|
|
29
|
+
validateWcagLabel(this.wcagLabel, this.wcagLabelledBy, NavClass.root);
|
|
30
|
+
}
|
|
31
|
+
get host() { return this; }
|
|
32
|
+
static get style() { return govNavCss; }
|
|
33
|
+
}, [4, "gov-nav", {
|
|
34
|
+
"wcagLabel": [1, "wcag-label"],
|
|
35
|
+
"wcagLabelledBy": [1, "wcag-labelled-by"],
|
|
36
|
+
"validateWcag": [64]
|
|
37
|
+
}]);
|
|
38
|
+
function defineCustomElement$1() {
|
|
39
|
+
if (typeof customElements === "undefined") {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const components = ["gov-nav"];
|
|
43
|
+
components.forEach(tagName => { switch (tagName) {
|
|
44
|
+
case "gov-nav":
|
|
45
|
+
if (!customElements.get(tagName)) {
|
|
46
|
+
customElements.define(tagName, GovNav$1);
|
|
47
|
+
}
|
|
48
|
+
break;
|
|
49
|
+
} });
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const GovNav = GovNav$1;
|
|
53
|
+
const defineCustomElement = defineCustomElement$1;
|
|
54
|
+
|
|
55
|
+
export { GovNav, defineCustomElement };
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=gov-nav.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"gov-nav.js","mappings":";;;;;;AAAA,MAAM,SAAS,GAAG,6xBAA6xB;;MCUlyBA,QAAM;;;;;;;EAYlB,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,QAAQ,CAAC,IAAI,IACzB,WAAK,KAAK,EAAE,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,iBAAe,IAAI,CAAC,SAAS,sBAAoB,IAAI,CAAC,cAAc,IACzG,eAAQ,CACH,CACA,EACP;GACD;;;;EAMD,MAAM,YAAY;IACjB,iBAAiB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAA;GACrE;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovNav"],"sources":["../../../packages/core/src/components/gov-nav/gov-nav.scss?tag=gov-nav","../../../packages/core/src/components/gov-nav/gov-nav.tsx"],"sourcesContent":["/*\n * Nav\n */\n\n$class: \".gov-nav\";\n\n#{$class} {\n\t@include base();\n\t@include typography($font-size-s);\n\tbackground: $nav-bg;\n\tfont-weight: bold;\n\tletter-spacing: 0.0125em;\n\ttext-transform: uppercase;\n\n\t// MQ\n\t@include mq($from: md) {\n\t\ttext-align: center;\n\t\t&__nav {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: space-between;\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Method, Prop } from '@stencil/core'\nimport { NavClass } from './constants'\nimport { validateWcagLabel } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\n\n@Component({\n\ttag: 'gov-nav',\n\tstyleUrl: 'gov-nav.scss',\n})\nexport class GovNav {\n\t@Element() readonly host: HTMLGovNavElement\n\n\t/**\n\t * Adds accessible label for the accordion that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: 'wcag-labelled-by' }) readonly wcagLabelledBy: string\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={NavClass.root}>\n\t\t\t\t<nav class={NavClass.nav} role={'list'} arial-label={this.wcagLabel} arial-labelledby={this.wcagLabelledBy}>\n\t\t\t\t\t<slot />\n\t\t\t\t</nav>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, NavClass.root)\n\t}\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface GovPagination extends Components.GovPagination, HTMLElement {}
|
|
4
|
+
export const GovPagination: {
|
|
5
|
+
prototype: GovPagination;
|
|
6
|
+
new (): GovPagination;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|