@gov-design-system-ce/components 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{constants-5c8f444a.js → constants-0c6c8e11.js} +8 -3
- 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-0c6897bc.js → constants-21559414.js} +8 -3
- 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-5f6bbc50.js +36 -0
- package/dist/cjs/constants-5f6bbc50.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-caad94b4.js +16 -0
- package/dist/cjs/constants-caad94b4.js.map +1 -0
- package/dist/cjs/constants-dc2ba6bd.js +26 -0
- package/dist/cjs/constants-dc2ba6bd.js.map +1 -0
- package/dist/cjs/{constants-a44c32bc.js → constants-ded92f8a.js} +1 -3
- package/dist/cjs/constants-ded92f8a.js.map +1 -0
- package/dist/cjs/{constants-477ca85a.js → constants-e175be18.js} +7 -4
- package/dist/cjs/constants-e175be18.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 +1 -1
- package/dist/cjs/{form-d9f0f50c.js → form-49298257.js} +42 -10
- package/dist/cjs/form-49298257.js.map +1 -0
- package/dist/cjs/gov-accordion-item.cjs.entry.js +8 -8
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +10 -10
- package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-alert.cjs.entry.js +6 -4
- package/dist/cjs/gov-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-app.cjs.entry.js +165 -45
- package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +9 -9
- package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-backdrop.cjs.entry.js +4 -4
- package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-badge.cjs.entry.js +11 -10
- package/dist/cjs/gov-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +4 -5
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-button.cjs.entry.js +12 -23
- package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-card.cjs.entry.js +3 -3
- package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +8 -8
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +13 -22
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +30 -29
- package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +8 -8
- package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-input.cjs.entry.js +13 -19
- package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +10 -10
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +12 -12
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +0 -2
- package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +13 -13
- package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +12 -12
- package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-grid-item.cjs.entry.js +2 -3
- package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-grid.cjs.entry.js +1 -2
- package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-icon.cjs.entry.js +10 -5
- package/dist/cjs/gov-icon.cjs.entry.js.map +1 -1
- 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 +12 -3
- package/dist/cjs/gov-layout.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-loading.cjs.entry.js +1 -1
- package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-message.cjs.entry.js +4 -2
- package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-modal.cjs.entry.js +3 -3
- package/dist/cjs/gov-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-nav.cjs.entry.js +3 -3
- package/dist/cjs/gov-pagination.cjs.entry.js +26 -21
- package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-prompt.cjs.entry.js +3 -3
- package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-side-nav-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-side-nav.cjs.entry.js +3 -3
- package/dist/cjs/gov-side-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-spacer.cjs.entry.js +11 -13
- package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-statsbar-item.cjs.entry.js +4 -2
- package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-statsbar.cjs.entry.js +7 -6
- package/dist/cjs/gov-statsbar.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-stepper-item.cjs.entry.js +9 -9
- package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-stepper.cjs.entry.js +9 -8
- package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tabs-item.cjs.entry.js +3 -3
- package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tabs.cjs.entry.js +11 -11
- package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tiles.cjs.entry.js +1 -1
- package/dist/cjs/gov-tiles.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-toast.cjs.entry.js +21 -18
- package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +3 -2
- package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tooltip.cjs.entry.js +15 -14
- package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizzard-item.cjs.entry.js +10 -11
- package/dist/cjs/gov-wizzard-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizzard.cjs.entry.js +9 -9
- package/dist/cjs/gov-wizzard.cjs.entry.js.map +1 -1
- package/dist/cjs/index-356717ae.js +2 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{props-cc21d3d7.js → props-5f82e4c0.js} +4 -4
- package/dist/cjs/props-5f82e4c0.js.map +1 -0
- package/dist/cjs/template-e1c4ff78.js.map +1 -1
- package/dist/cjs/{utils-4ae73637.js → utils-c9b1bba3.js} +3 -1
- package/dist/cjs/utils-c9b1bba3.js.map +1 -0
- package/dist/cjs/{variants-bacf037a.js → variants-f5ffeef3.js} +3 -3
- package/dist/cjs/variants-f5ffeef3.js.map +1 -0
- package/dist/cjs/{wcag-eca97102.js → wcag-6efc0ab7.js} +2 -2
- package/dist/cjs/wcag-6efc0ab7.js.map +1 -0
- package/dist/cjs/{win-ac5c1806.js → win-84bda0aa.js} +3 -3
- package/dist/cjs/win-84bda0aa.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/gov-accordion/constants.js +5 -4
- package/dist/collection/components/gov-accordion/constants.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +17 -20
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion.js +17 -18
- package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
- package/dist/collection/components/gov-alert/constants.js +3 -9
- package/dist/collection/components/gov-alert/constants.js.map +1 -1
- package/dist/collection/components/gov-alert/gov-alert.js +6 -7
- package/dist/collection/components/gov-alert/gov-alert.js.map +1 -1
- package/dist/collection/components/gov-app/gov-app.js +3 -3
- package/dist/collection/components/gov-app/gov-app.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.js +5 -5
- package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments.js +7 -7
- package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -1
- package/dist/collection/components/gov-backdrop/gov-backdrop.js +7 -7
- package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
- package/dist/collection/components/gov-badge/constants.js +1 -2
- package/dist/collection/components/gov-badge/constants.js.map +1 -1
- package/dist/collection/components/gov-badge/gov-badge.js +25 -27
- package/dist/collection/components/gov-badge/gov-badge.js.map +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +1 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +2 -3
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
- package/dist/collection/components/gov-button/constants.js +17 -13
- package/dist/collection/components/gov-button/constants.js.map +1 -1
- package/dist/collection/components/gov-button/gov-button.js +37 -44
- package/dist/collection/components/gov-button/gov-button.js.map +1 -1
- package/dist/collection/components/gov-card/gov-card.js.map +1 -1
- package/dist/collection/components/gov-container/gov-container.js +3 -3
- package/dist/collection/components/gov-container/gov-container.js.map +1 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -1
- package/dist/collection/components/gov-empty/gov-empty.js.map +1 -1
- package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/constants.js +5 -4
- package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +16 -18
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
- 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 +3 -2
- package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +11 -21
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/interfaces.js.map +1 -1
- package/dist/collection/components/gov-form/control/constants.js +3 -2
- package/dist/collection/components/gov-form/control/constants.js.map +1 -1
- package/dist/collection/components/gov-form/control/gov-form-control.js +40 -42
- package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.js +3 -3
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
- 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/input/constants.js +25 -21
- package/dist/collection/components/gov-form/input/constants.js.map +1 -1
- package/dist/collection/components/gov-form/input/gov-form-input.js +24 -32
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
- package/dist/collection/components/gov-form/message/constants.js +3 -2
- package/dist/collection/components/gov-form/message/constants.js.map +1 -1
- package/dist/collection/components/gov-form/message/gov-form-message.js +8 -9
- package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/constants.js +5 -4
- package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +16 -18
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
- package/dist/collection/components/gov-form/radio/constants.js +3 -2
- package/dist/collection/components/gov-form/radio/constants.js.map +1 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +10 -11
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
- package/dist/collection/components/gov-form/radio/interfaces.js.map +1 -1
- package/dist/collection/components/gov-form/search/constants.js +0 -11
- package/dist/collection/components/gov-form/search/constants.js.map +1 -1
- package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
- package/dist/collection/components/gov-form/select/constants.js +5 -4
- package/dist/collection/components/gov-form/select/constants.js.map +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.js +16 -18
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
- package/dist/collection/components/gov-form/switch/constants.js +3 -2
- package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.js +10 -11
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
- package/dist/collection/components/gov-form/switch/interfaces.js.map +1 -1
- package/dist/collection/components/gov-grid/constants.js +0 -12
- package/dist/collection/components/gov-grid/constants.js.map +1 -1
- package/dist/collection/components/gov-grid/gov-grid-item.js +5 -5
- package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
- package/dist/collection/components/gov-grid/gov-grid.js +3 -3
- package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
- package/dist/collection/components/gov-icon/constants.js +6 -1
- package/dist/collection/components/gov-icon/constants.js.map +1 -1
- package/dist/collection/components/gov-icon/gov-icon.js +1 -1
- package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
- package/dist/collection/components/gov-icon/list.js +91 -91
- package/dist/collection/components/gov-icon/list.js.map +1 -1
- package/dist/collection/components/gov-layout/constants.js +13 -7
- package/dist/collection/components/gov-layout/constants.js.map +1 -1
- package/dist/collection/components/gov-layout/{gov-layout-aside.css → gov-layout-column.css} +4 -13
- 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 +35 -0
- package/dist/collection/components/gov-layout/gov-layout.js +80 -4
- package/dist/collection/components/gov-layout/gov-layout.js.map +1 -1
- package/dist/collection/components/gov-loading/gov-loading.js +4 -4
- package/dist/collection/components/gov-loading/gov-loading.js.map +1 -1
- package/dist/collection/components/gov-message/constants.js +3 -9
- package/dist/collection/components/gov-message/constants.js.map +1 -1
- package/dist/collection/components/gov-message/gov-message.js +4 -4
- package/dist/collection/components/gov-message/gov-message.js.map +1 -1
- package/dist/collection/components/gov-modal/gov-modal.js.map +1 -1
- package/dist/collection/components/gov-pagination/constants.js +10 -5
- package/dist/collection/components/gov-pagination/constants.js.map +1 -1
- package/dist/collection/components/gov-pagination/gov-pagination.css +5 -8
- package/dist/collection/components/gov-pagination/gov-pagination.js +42 -44
- package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
- package/dist/collection/components/gov-promp/gov-prompt.js +1 -1
- package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +1 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +1 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav.js.map +1 -1
- package/dist/collection/components/gov-spacer/constants.js +10 -4
- package/dist/collection/components/gov-spacer/constants.js.map +1 -1
- package/dist/collection/components/gov-spacer/gov-spacer.js +9 -11
- package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
- package/dist/collection/components/gov-statsbar/constants.js +7 -2
- package/dist/collection/components/gov-statsbar/constants.js.map +1 -1
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +2 -2
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +1 -1
- package/dist/collection/components/gov-statsbar/gov-statsbar.js +13 -15
- package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +1 -1
- package/dist/collection/components/gov-stepper/constants.js +5 -11
- package/dist/collection/components/gov-stepper/constants.js.map +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper-item.js +17 -20
- package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper.js +14 -15
- package/dist/collection/components/gov-stepper/gov-stepper.js.map +1 -1
- package/dist/collection/components/gov-tabs/constants.js +13 -12
- package/dist/collection/components/gov-tabs/constants.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.css +28 -1
- package/dist/collection/components/gov-tabs/gov-tabs.js +38 -15
- package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
- 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/gov-tile.js.map +1 -1
- package/dist/collection/components/gov-tiles/gov-tiles.js +5 -5
- package/dist/collection/components/gov-tiles/gov-tiles.js.map +1 -1
- package/dist/collection/components/gov-toast/constants.js +10 -20
- package/dist/collection/components/gov-toast/constants.js.map +1 -1
- package/dist/collection/components/gov-toast/gov-toast.js +34 -30
- package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
- package/dist/collection/components/gov-tooltip/constants.js +12 -12
- package/dist/collection/components/gov-tooltip/constants.js.map +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +27 -29
- package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
- package/dist/collection/components/gov-wizzard/constants.js +5 -4
- package/dist/collection/components/gov-wizzard/constants.js.map +1 -1
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.css +8 -17
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.js +16 -20
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +1 -1
- package/dist/collection/components/gov-wizzard/gov-wizzard.js +9 -10
- package/dist/collection/components/gov-wizzard/gov-wizzard.js.map +1 -1
- package/dist/collection/core/constants/tags.js.map +1 -1
- package/dist/collection/helpers/Dom/form.js.map +1 -1
- 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.map +1 -1
- 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 +2 -2
- package/dist/collection/helpers/Dom/win.js.map +1 -1
- package/dist/collection/helpers/Fragment.js.map +1 -1
- package/dist/collection/helpers/StorybookDocsTemplate.js +2 -2
- package/dist/collection/helpers/StorybookDocsTemplate.js.map +1 -1
- package/dist/collection/helpers/Validate/props.js +3 -3
- package/dist/collection/helpers/Validate/props.js.map +1 -1
- package/dist/collection/helpers/Validate/wcag.js +1 -1
- package/dist/collection/helpers/Validate/wcag.js.map +1 -1
- package/dist/collection/pages/Forms.js +1 -1
- package/dist/collection/pages/Forms.js.map +1 -1
- package/dist/collection/pages/Layout.js +65 -35
- package/dist/collection/pages/Layout.js.map +1 -1
- package/dist/collection/pages/Loading.js +3 -3
- package/dist/collection/pages/Loading.js.map +1 -1
- package/dist/collection/pages/Tabs.js +90 -0
- package/dist/collection/pages/Tabs.js.map +1 -1
- package/dist/collection/pages/Wizzard.js +5 -5
- package/dist/collection/pages/Wizzard.js.map +1 -1
- package/dist/collection/types/interfaces.js.map +1 -1
- package/dist/collection/utils/icon.utils.js +3 -4
- package/dist/collection/utils/icon.utils.js.map +1 -1
- package/dist/collection/utils/utils.js +1 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/constants.js +6 -4
- package/dist/components/constants.js.map +1 -1
- package/dist/components/constants11.js +8 -2
- package/dist/components/constants11.js.map +1 -1
- package/dist/components/constants12.js +6 -3
- package/dist/components/constants12.js.map +1 -1
- package/dist/components/constants13.js +14 -4
- package/dist/components/constants13.js.map +1 -1
- package/dist/components/constants14.js +11 -11
- package/dist/components/constants14.js.map +1 -1
- package/dist/components/constants15.js +6 -3
- package/dist/components/constants15.js.map +1 -1
- package/dist/components/constants3.js +18 -13
- package/dist/components/constants3.js.map +1 -1
- package/dist/components/constants5.js +4 -3
- package/dist/components/constants5.js.map +1 -1
- package/dist/components/constants6.js +0 -2
- package/dist/components/constants6.js.map +1 -1
- package/dist/components/constants7.js +14 -8
- package/dist/components/constants7.js.map +1 -1
- package/dist/components/form.js +36 -8
- package/dist/components/form.js.map +1 -1
- package/dist/components/gov-accordion-item.js +8 -9
- package/dist/components/gov-accordion-item.js.map +1 -1
- package/dist/components/gov-accordion.js +9 -8
- package/dist/components/gov-accordion.js.map +1 -1
- package/dist/components/gov-alert.js +6 -3
- package/dist/components/gov-alert.js.map +1 -1
- package/dist/components/gov-app.js +166 -45
- package/dist/components/gov-app.js.map +1 -1
- package/dist/components/gov-attachments-item2.js +3 -1
- package/dist/components/gov-attachments-item2.js.map +1 -1
- package/dist/components/gov-attachments2.js +4 -2
- package/dist/components/gov-attachments2.js.map +1 -1
- package/dist/components/gov-backdrop2.js +4 -2
- package/dist/components/gov-backdrop2.js.map +1 -1
- package/dist/components/gov-badge2.js +12 -13
- package/dist/components/gov-badge2.js.map +1 -1
- package/dist/components/gov-breadcrumbs.js +4 -3
- package/dist/components/gov-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button2.js +14 -23
- package/dist/components/gov-button2.js.map +1 -1
- package/dist/components/gov-card.js +3 -1
- package/dist/components/gov-card.js.map +1 -1
- package/dist/components/gov-container.js +1 -0
- package/dist/components/gov-container.js.map +1 -1
- package/dist/components/gov-cookiebar.js +1 -0
- package/dist/components/gov-cookiebar.js.map +1 -1
- package/dist/components/gov-empty.js +1 -0
- package/dist/components/gov-empty.js.map +1 -1
- package/dist/components/gov-error-code.js +1 -0
- package/dist/components/gov-error-code.js.map +1 -1
- package/dist/components/gov-form-autocomplete2.js +8 -8
- package/dist/components/gov-form-autocomplete2.js.map +1 -1
- package/dist/components/gov-form-checkbox.js +8 -16
- package/dist/components/gov-form-checkbox.js.map +1 -1
- package/dist/components/gov-form-control.js +27 -27
- package/dist/components/gov-form-control.js.map +1 -1
- package/dist/components/gov-form-file.js +3 -1
- package/dist/components/gov-form-file.js.map +1 -1
- package/dist/components/gov-form-group.js +1 -0
- package/dist/components/gov-form-group.js.map +1 -1
- package/dist/components/gov-form-input2.js +11 -16
- package/dist/components/gov-form-input2.js.map +1 -1
- package/dist/components/gov-form-label.js +1 -0
- package/dist/components/gov-form-label.js.map +1 -1
- package/dist/components/gov-form-message2.js +5 -5
- package/dist/components/gov-form-message2.js.map +1 -1
- package/dist/components/gov-form-multi-select.js +9 -8
- package/dist/components/gov-form-multi-select.js.map +1 -1
- package/dist/components/gov-form-radio.js +7 -6
- package/dist/components/gov-form-radio.js.map +1 -1
- package/dist/components/gov-form-search.js +1 -2
- package/dist/components/gov-form-search.js.map +1 -1
- package/dist/components/gov-form-select2.js +9 -8
- package/dist/components/gov-form-select2.js.map +1 -1
- package/dist/components/gov-form-switch.js +7 -6
- package/dist/components/gov-form-switch.js.map +1 -1
- package/dist/components/gov-grid-item.js +2 -1
- package/dist/components/gov-grid-item.js.map +1 -1
- package/dist/components/gov-grid.js +1 -0
- package/dist/components/gov-grid.js.map +1 -1
- package/dist/components/gov-icon2.js +9 -3
- package/dist/components/gov-icon2.js.map +1 -1
- package/dist/components/{gov-layout-aside.d.ts → gov-layout-column.d.ts} +4 -4
- package/dist/components/gov-layout-column.js +39 -0
- package/dist/components/gov-layout-column.js.map +1 -0
- package/dist/components/gov-layout.js +17 -3
- package/dist/components/gov-layout.js.map +1 -1
- package/dist/components/gov-loading.js +2 -1
- package/dist/components/gov-loading.js.map +1 -1
- package/dist/components/gov-message.js +4 -1
- package/dist/components/gov-message.js.map +1 -1
- package/dist/components/gov-modal.js +3 -1
- package/dist/components/gov-modal.js.map +1 -1
- package/dist/components/gov-nav-item.js +1 -0
- package/dist/components/gov-nav-item.js.map +1 -1
- package/dist/components/gov-nav.js +3 -1
- package/dist/components/gov-nav.js.map +1 -1
- package/dist/components/gov-pagination.js +28 -21
- package/dist/components/gov-pagination.js.map +1 -1
- package/dist/components/gov-prompt.js +3 -1
- package/dist/components/gov-prompt.js.map +1 -1
- package/dist/components/gov-side-nav-item.js +2 -1
- package/dist/components/gov-side-nav-item.js.map +1 -1
- package/dist/components/gov-side-nav.js +3 -1
- package/dist/components/gov-side-nav.js.map +1 -1
- package/dist/components/gov-spacer.js +12 -13
- package/dist/components/gov-spacer.js.map +1 -1
- package/dist/components/gov-statsbar-item.js +2 -1
- package/dist/components/gov-statsbar-item.js.map +1 -1
- package/dist/components/gov-statsbar.js +6 -6
- package/dist/components/gov-statsbar.js.map +1 -1
- package/dist/components/gov-stepper-item.js +8 -10
- package/dist/components/gov-stepper-item.js.map +1 -1
- package/dist/components/gov-stepper.js +7 -7
- package/dist/components/gov-stepper.js.map +1 -1
- package/dist/components/gov-tabs-item.js +1 -0
- package/dist/components/gov-tabs-item.js.map +1 -1
- package/dist/components/gov-tabs.js +12 -9
- package/dist/components/gov-tabs.js.map +1 -1
- package/dist/components/gov-tile.js +1 -0
- package/dist/components/gov-tile.js.map +1 -1
- package/dist/components/gov-tiles.js +2 -1
- package/dist/components/gov-tiles.js.map +1 -1
- package/dist/components/gov-toast.js +22 -18
- package/dist/components/gov-toast.js.map +1 -1
- package/dist/components/gov-tooltip-content.js +1 -0
- package/dist/components/gov-tooltip-content.js.map +1 -1
- package/dist/components/gov-tooltip.js +14 -15
- package/dist/components/gov-tooltip.js.map +1 -1
- package/dist/components/gov-wizzard-item.js +8 -11
- package/dist/components/gov-wizzard-item.js.map +1 -1
- package/dist/components/gov-wizzard.js +7 -6
- package/dist/components/gov-wizzard.js.map +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.js +1 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/props.js +3 -3
- package/dist/components/props.js.map +1 -1
- package/dist/components/template.js.map +1 -1
- package/dist/{esm/utils-3a968bb9.js → components/utils.js} +3 -2
- package/dist/components/utils.js.map +1 -0
- package/dist/components/variants.js +1 -1
- package/dist/components/variants.js.map +1 -1
- package/dist/components/wcag.js +1 -1
- package/dist/components/wcag.js.map +1 -1
- package/dist/components/win.js +3 -32
- package/dist/components/win.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-c9f0d988.entry.js → p-00182e76.entry.js} +2 -2
- package/dist/core/{p-c9f0d988.entry.js.map → p-00182e76.entry.js.map} +1 -1
- package/dist/core/{p-bbd48feb.entry.js → p-01bdd4a4.entry.js} +2 -2
- package/dist/core/{p-bbd48feb.entry.js.map → p-01bdd4a4.entry.js.map} +1 -1
- package/dist/core/p-0278fcb3.entry.js +2 -0
- package/dist/core/p-0278fcb3.entry.js.map +1 -0
- package/dist/core/p-0284b5e2.js +2 -0
- package/dist/core/p-0284b5e2.js.map +1 -0
- package/dist/core/{p-58691740.js → p-03990da5.js} +2 -2
- package/dist/core/p-03990da5.js.map +1 -0
- package/dist/core/p-03d40bf4.entry.js +2 -0
- package/dist/core/p-03d40bf4.entry.js.map +1 -0
- package/dist/core/{p-9680b966.entry.js → p-08f14c8b.entry.js} +2 -2
- package/dist/core/p-08f14c8b.entry.js.map +1 -0
- package/dist/core/p-0a152bb7.entry.js +2 -0
- package/dist/core/p-0a152bb7.entry.js.map +1 -0
- package/dist/core/p-14f8f2fb.js +2 -0
- package/dist/core/p-14f8f2fb.js.map +1 -0
- package/dist/core/p-2128abe1.entry.js +2 -0
- package/dist/core/p-2128abe1.entry.js.map +1 -0
- package/dist/core/p-22722ff3.entry.js +2 -0
- package/dist/core/p-22722ff3.entry.js.map +1 -0
- package/dist/core/p-2419f4cd.entry.js +2 -0
- package/dist/core/p-2419f4cd.entry.js.map +1 -0
- package/dist/core/p-24cde59e.entry.js.map +1 -1
- package/dist/core/p-25380da6.entry.js +2 -0
- package/dist/core/p-25380da6.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-34360f92.entry.js +2 -0
- package/dist/core/p-34360f92.entry.js.map +1 -0
- package/dist/core/{p-f58b9eec.js → p-364b4792.js} +2 -2
- package/dist/core/p-364b4792.js.map +1 -0
- package/dist/core/p-38fb2d42.entry.js +2 -0
- package/dist/core/p-38fb2d42.entry.js.map +1 -0
- package/dist/core/p-3e9ba1c1.entry.js +2 -0
- package/dist/core/p-3e9ba1c1.entry.js.map +1 -0
- package/dist/core/p-3f37ddb6.js.map +1 -1
- package/dist/core/p-404f469e.js +2 -0
- package/dist/core/p-404f469e.js.map +1 -0
- package/dist/core/p-4681cb3a.entry.js +2 -0
- package/dist/core/p-4681cb3a.entry.js.map +1 -0
- package/dist/core/p-469273be.entry.js +2 -0
- package/dist/core/p-469273be.entry.js.map +1 -0
- package/dist/core/p-4d73d70e.entry.js +2 -0
- package/dist/core/p-4d73d70e.entry.js.map +1 -0
- package/dist/core/{p-2c25aac5.entry.js → p-5547dbb0.entry.js} +2 -2
- package/dist/core/p-5547dbb0.entry.js.map +1 -0
- package/dist/core/p-5cecdaaf.entry.js +2 -0
- package/dist/core/{p-d9ffb84e.entry.js.map → p-5cecdaaf.entry.js.map} +1 -1
- package/dist/core/p-5defdc5e.js +2 -0
- package/dist/core/p-5defdc5e.js.map +1 -0
- package/dist/core/p-5fa41af9.js +2 -0
- package/dist/core/p-5fa41af9.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-63079b80.entry.js +2 -0
- package/dist/core/p-63079b80.entry.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-68d968ac.entry.js +2 -0
- package/dist/core/p-68d968ac.entry.js.map +1 -0
- package/dist/core/{p-6e1b9f39.entry.js → p-6d40721b.entry.js} +2 -2
- package/dist/core/{p-6e1b9f39.entry.js.map → p-6d40721b.entry.js.map} +1 -1
- package/dist/core/p-733bd593.entry.js.map +1 -1
- package/dist/core/{p-cbf4ad73.entry.js → p-7591ecd4.entry.js} +2 -2
- package/dist/core/{p-cbf4ad73.entry.js.map → p-7591ecd4.entry.js.map} +1 -1
- package/dist/core/p-76542f4f.js +2 -0
- package/dist/core/p-76542f4f.js.map +1 -0
- package/dist/core/p-7be3abb5.entry.js.map +1 -1
- package/dist/core/p-80e30702.js +2 -0
- package/dist/core/p-80e30702.js.map +1 -0
- package/dist/core/p-8965f84a.entry.js +2 -0
- package/dist/core/p-8965f84a.entry.js.map +1 -0
- package/dist/core/p-8a8d846c.entry.js +2 -0
- package/dist/core/{p-8e8340b0.entry.js.map → p-8a8d846c.entry.js.map} +1 -1
- package/dist/core/p-9144dde1.js +2 -0
- package/dist/core/p-9144dde1.js.map +1 -0
- package/dist/core/{p-90f818c0.entry.js → p-93facb4a.entry.js} +2 -2
- package/dist/core/p-93facb4a.entry.js.map +1 -0
- package/dist/core/p-9c844f4d.entry.js +2 -0
- package/dist/core/p-9c844f4d.entry.js.map +1 -0
- package/dist/core/p-9cc6ed83.entry.js +2 -0
- package/dist/core/p-9cc6ed83.entry.js.map +1 -0
- package/dist/core/p-9dd1bbdd.entry.js.map +1 -1
- package/dist/core/p-9e6a41cc.entry.js +2 -0
- package/dist/core/p-9e6a41cc.entry.js.map +1 -0
- package/dist/core/{p-64d3cf79.entry.js → p-a5e34e93.entry.js} +2 -2
- package/dist/core/p-a6c8d474.entry.js.map +1 -1
- package/dist/core/p-ad0cc981.entry.js +2 -0
- package/dist/core/p-ad0cc981.entry.js.map +1 -0
- package/dist/core/p-ae3e2d60.entry.js +2 -0
- package/dist/core/p-ae3e2d60.entry.js.map +1 -0
- package/dist/core/p-b48a3112.entry.js +2 -0
- package/dist/core/p-b48a3112.entry.js.map +1 -0
- package/dist/core/{p-59581b1b.entry.js → p-c0d3d3e0.entry.js} +2 -2
- package/dist/core/{p-59581b1b.entry.js.map → p-c0d3d3e0.entry.js.map} +1 -1
- package/dist/core/{p-2b4acb01.js → p-c20102ff.js} +2 -2
- package/dist/core/p-c20102ff.js.map +1 -0
- package/dist/core/p-cf6576fd.entry.js +2 -0
- package/dist/core/p-cf6576fd.entry.js.map +1 -0
- package/dist/core/p-e52a042f.entry.js.map +1 -1
- package/dist/core/p-e7dd2002.entry.js +2 -0
- package/dist/core/p-e7dd2002.entry.js.map +1 -0
- package/dist/core/p-eb1214ab.entry.js +2 -0
- package/dist/core/p-eb1214ab.entry.js.map +1 -0
- package/dist/core/p-ec617f18.entry.js +2 -0
- package/dist/core/p-ec617f18.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-f1fe9358.entry.js +2 -0
- package/dist/core/p-f1fe9358.entry.js.map +1 -0
- package/dist/core/p-f2dc8ce3.entry.js.map +1 -1
- package/dist/core/p-f531f5c4.entry.js +2 -0
- package/dist/core/p-f531f5c4.entry.js.map +1 -0
- package/dist/core/p-f5ee7634.entry.js +2 -0
- package/dist/core/p-f5ee7634.entry.js.map +1 -0
- package/dist/core/p-f5ffcb3d.entry.js +2 -0
- package/dist/core/p-f5ffcb3d.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-08524615.entry.js → p-fc1581f9.entry.js} +2 -2
- package/dist/core/{p-08524615.entry.js.map → p-fc1581f9.entry.js.map} +1 -1
- package/dist/core/{p-fd62c386.entry.js → p-fc91591d.entry.js} +2 -2
- package/dist/core/{p-fd62c386.entry.js.map → p-fc91591d.entry.js.map} +1 -1
- package/dist/core/p-fc9d66ae.entry.js +2 -0
- package/dist/core/{p-9baa1a0e.entry.js.map → p-fc9d66ae.entry.js.map} +1 -1
- package/dist/core/{p-99cc3dba.js → p-ff7365ae.js} +2 -2
- 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 +4 -10
- package/dist/custom-elements/index.js +1 -1
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/constants-136d4cd3.js +16 -0
- package/dist/esm/constants-136d4cd3.js.map +1 -0
- package/dist/esm/{constants-4d4cc5e1.js → constants-14a7ba8e.js} +7 -5
- package/dist/esm/constants-14a7ba8e.js.map +1 -0
- package/dist/esm/constants-1a2146b2.js +32 -0
- package/dist/esm/constants-1a2146b2.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-2cd89f93.js → constants-2b14bb01.js} +1 -3
- 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-ec176a77.js → constants-78474786.js} +7 -4
- package/dist/esm/constants-78474786.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-d550c816.js +22 -0
- package/dist/esm/constants-d550c816.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 +1 -1
- package/dist/esm/{form-121eab06.js → form-95b9a91b.js} +36 -9
- package/dist/esm/form-95b9a91b.js.map +1 -0
- package/dist/esm/gov-accordion-item.entry.js +8 -8
- package/dist/esm/gov-accordion-item.entry.js.map +1 -1
- package/dist/esm/gov-accordion.entry.js +10 -10
- package/dist/esm/gov-accordion.entry.js.map +1 -1
- package/dist/esm/gov-alert.entry.js +6 -4
- package/dist/esm/gov-alert.entry.js.map +1 -1
- package/dist/esm/gov-app.entry.js +165 -45
- package/dist/esm/gov-app.entry.js.map +1 -1
- package/dist/esm/gov-attachments_3.entry.js +9 -9
- package/dist/esm/gov-attachments_3.entry.js.map +1 -1
- package/dist/esm/gov-backdrop.entry.js +4 -4
- package/dist/esm/gov-backdrop.entry.js.map +1 -1
- package/dist/esm/gov-badge.entry.js +11 -10
- package/dist/esm/gov-badge.entry.js.map +1 -1
- package/dist/esm/gov-breadcrumbs.entry.js +4 -5
- package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
- package/dist/esm/gov-button.entry.js +12 -23
- package/dist/esm/gov-button.entry.js.map +1 -1
- package/dist/esm/gov-card.entry.js +3 -3
- package/dist/esm/gov-card.entry.js.map +1 -1
- package/dist/esm/gov-container.entry.js.map +1 -1
- package/dist/esm/gov-cookiebar.entry.js.map +1 -1
- package/dist/esm/gov-empty.entry.js.map +1 -1
- package/dist/esm/gov-error-code.entry.js.map +1 -1
- package/dist/esm/gov-form-autocomplete.entry.js +8 -8
- package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
- package/dist/esm/gov-form-checkbox.entry.js +13 -22
- package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
- package/dist/esm/gov-form-control.entry.js +30 -29
- package/dist/esm/gov-form-control.entry.js.map +1 -1
- package/dist/esm/gov-form-file.entry.js +8 -8
- package/dist/esm/gov-form-file.entry.js.map +1 -1
- package/dist/esm/gov-form-input.entry.js +13 -19
- package/dist/esm/gov-form-input.entry.js.map +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +10 -10
- package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
- package/dist/esm/gov-form-radio.entry.js +12 -12
- package/dist/esm/gov-form-radio.entry.js.map +1 -1
- package/dist/esm/gov-form-search.entry.js +0 -2
- package/dist/esm/gov-form-search.entry.js.map +1 -1
- package/dist/esm/gov-form-select.entry.js +13 -13
- package/dist/esm/gov-form-select.entry.js.map +1 -1
- package/dist/esm/gov-form-switch.entry.js +12 -12
- package/dist/esm/gov-form-switch.entry.js.map +1 -1
- package/dist/esm/gov-grid-item.entry.js +2 -3
- package/dist/esm/gov-grid-item.entry.js.map +1 -1
- package/dist/esm/gov-grid.entry.js +1 -2
- package/dist/esm/gov-grid.entry.js.map +1 -1
- package/dist/esm/gov-icon.entry.js +10 -5
- package/dist/esm/gov-icon.entry.js.map +1 -1
- 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 +12 -3
- package/dist/esm/gov-layout.entry.js.map +1 -1
- package/dist/esm/gov-loading.entry.js +1 -1
- package/dist/esm/gov-loading.entry.js.map +1 -1
- package/dist/esm/gov-message.entry.js +4 -2
- package/dist/esm/gov-message.entry.js.map +1 -1
- package/dist/esm/gov-modal.entry.js +3 -3
- package/dist/esm/gov-modal.entry.js.map +1 -1
- package/dist/esm/gov-nav.entry.js +3 -3
- package/dist/esm/gov-pagination.entry.js +27 -22
- package/dist/esm/gov-pagination.entry.js.map +1 -1
- package/dist/esm/gov-prompt.entry.js +3 -3
- package/dist/esm/gov-prompt.entry.js.map +1 -1
- package/dist/esm/gov-side-nav-item.entry.js +1 -1
- package/dist/esm/gov-side-nav-item.entry.js.map +1 -1
- package/dist/esm/gov-side-nav.entry.js +3 -3
- package/dist/esm/gov-side-nav.entry.js.map +1 -1
- package/dist/esm/gov-spacer.entry.js +11 -13
- package/dist/esm/gov-spacer.entry.js.map +1 -1
- package/dist/esm/gov-statsbar-item.entry.js +4 -2
- package/dist/esm/gov-statsbar-item.entry.js.map +1 -1
- package/dist/esm/gov-statsbar.entry.js +7 -6
- package/dist/esm/gov-statsbar.entry.js.map +1 -1
- package/dist/esm/gov-stepper-item.entry.js +9 -9
- package/dist/esm/gov-stepper-item.entry.js.map +1 -1
- package/dist/esm/gov-stepper.entry.js +9 -8
- package/dist/esm/gov-stepper.entry.js.map +1 -1
- package/dist/esm/gov-tabs-item.entry.js +3 -3
- package/dist/esm/gov-tabs-item.entry.js.map +1 -1
- package/dist/esm/gov-tabs.entry.js +11 -11
- package/dist/esm/gov-tabs.entry.js.map +1 -1
- package/dist/esm/gov-tile.entry.js.map +1 -1
- package/dist/esm/gov-tiles.entry.js +1 -1
- package/dist/esm/gov-tiles.entry.js.map +1 -1
- package/dist/esm/gov-toast.entry.js +21 -18
- package/dist/esm/gov-toast.entry.js.map +1 -1
- package/dist/esm/gov-tooltip-content.entry.js +3 -2
- package/dist/esm/gov-tooltip-content.entry.js.map +1 -1
- package/dist/esm/gov-tooltip.entry.js +15 -14
- package/dist/esm/gov-tooltip.entry.js.map +1 -1
- package/dist/esm/gov-wizzard-item.entry.js +10 -11
- package/dist/esm/gov-wizzard-item.entry.js.map +1 -1
- package/dist/esm/gov-wizzard.entry.js +9 -9
- package/dist/esm/gov-wizzard.entry.js.map +1 -1
- package/dist/esm/index-00e9a0d5.js +2 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{props-cb992af5.js → props-789f7529.js} +4 -4
- package/dist/esm/props-789f7529.js.map +1 -0
- package/dist/esm/template-10332292.js.map +1 -1
- package/dist/esm/utils-c057a3fa.js +35 -0
- package/dist/esm/utils-c057a3fa.js.map +1 -0
- package/dist/esm/{variants-b5641e3d.js → variants-2b936d58.js} +2 -2
- package/dist/esm/variants-2b936d58.js.map +1 -0
- package/dist/esm/{wcag-af732bfe.js → wcag-3792d4bb.js} +2 -2
- package/dist/esm/wcag-3792d4bb.js.map +1 -0
- package/dist/esm/{win-cb090c11.js → win-9c8460bb.js} +3 -3
- package/dist/esm/win-9c8460bb.js.map +1 -0
- package/dist/hydrate/index.js +532 -390
- package/dist/types/components/gov-accordion/constants.d.ts +7 -6
- package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +3 -3
- package/dist/types/components/gov-accordion/gov-accordion.d.ts +3 -3
- package/dist/types/components/gov-alert/constants.d.ts +4 -3
- package/dist/types/components/gov-app/gov-app.d.ts +1 -1
- package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +1 -1
- package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +1 -1
- package/dist/types/components/gov-badge/constants.d.ts +4 -3
- package/dist/types/components/gov-badge/gov-badge.d.ts +4 -4
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +1 -1
- package/dist/types/components/gov-button/constants.d.ts +20 -10
- package/dist/types/components/gov-button/gov-button.d.ts +6 -8
- package/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +1 -1
- package/dist/types/components/gov-form/autocomplete/constants.d.ts +7 -6
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +3 -3
- 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 +4 -3
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +3 -4
- package/dist/types/components/gov-form/control/constants.d.ts +4 -3
- package/dist/types/components/gov-form/control/gov-form-control.d.ts +3 -3
- package/dist/types/components/gov-form/file/gov-form-file.d.ts +1 -1
- package/dist/types/components/gov-form/file/gov-form-file.types.d.ts +6 -0
- package/dist/types/components/gov-form/input/constants.d.ts +27 -10
- package/dist/types/components/gov-form/input/gov-form-input.d.ts +5 -5
- package/dist/types/components/gov-form/message/constants.d.ts +4 -3
- package/dist/types/components/gov-form/message/gov-form-message.d.ts +3 -3
- package/dist/types/components/gov-form/multiselect/constants.d.ts +7 -6
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +4 -4
- package/dist/types/components/gov-form/radio/constants.d.ts +4 -3
- package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +2 -2
- package/dist/types/components/gov-form/search/constants.d.ts +0 -6
- package/dist/types/components/gov-form/select/constants.d.ts +7 -6
- package/dist/types/components/gov-form/select/gov-form-select.d.ts +3 -3
- package/dist/types/components/gov-form/switch/constants.d.ts +4 -3
- package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +2 -2
- package/dist/types/components/gov-grid/constants.d.ts +0 -3
- package/dist/types/components/gov-icon/constants.d.ts +8 -2
- package/dist/types/components/gov-layout/constants.d.ts +14 -6
- package/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
- package/dist/types/components/gov-layout/gov-layout.d.ts +14 -0
- package/dist/types/components/gov-message/constants.d.ts +4 -3
- package/dist/types/components/gov-message/gov-message.d.ts +2 -2
- package/dist/types/components/gov-pagination/constants.d.ts +12 -8
- package/dist/types/components/gov-pagination/gov-pagination.d.ts +6 -6
- package/dist/types/components/gov-spacer/constants.d.ts +11 -4
- package/dist/types/components/gov-spacer/gov-spacer.d.ts +2 -2
- package/dist/types/components/gov-statsbar/constants.d.ts +8 -4
- package/dist/types/components/gov-statsbar/gov-statsbar-item.d.ts +1 -1
- package/dist/types/components/gov-statsbar/gov-statsbar.d.ts +1 -1
- package/dist/types/components/gov-stepper/constants.d.ts +7 -6
- package/dist/types/components/gov-stepper/gov-stepper-item.d.ts +3 -3
- package/dist/types/components/gov-stepper/gov-stepper.d.ts +4 -4
- package/dist/types/components/gov-tabs/constants.d.ts +14 -8
- package/dist/types/components/gov-tabs/gov-tabs.d.ts +9 -5
- package/dist/types/components/gov-tabs/gov-tabs.types.d.ts +8 -0
- package/dist/types/components/gov-toast/constants.d.ts +6 -5
- package/dist/types/components/gov-toast/gov-toast.d.ts +7 -6
- package/dist/types/components/gov-tooltip/constants.d.ts +9 -9
- package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +4 -4
- package/dist/types/components/gov-wizzard/constants.d.ts +7 -6
- package/dist/types/components/gov-wizzard/gov-wizzard-item.d.ts +3 -3
- package/dist/types/components/gov-wizzard/gov-wizzard.d.ts +2 -2
- package/dist/types/components.d.ts +157 -153
- package/dist/types/helpers/Dom/form.d.ts +2 -2
- package/dist/types/helpers/Dom/form.types.d.ts +9 -0
- package/dist/types/helpers/Dom/template.d.ts +1 -1
- package/dist/types/helpers/Dom/template.types.d.ts +12 -0
- package/dist/types/helpers/Validate/props.d.ts +1 -1
- package/dist/types/types/interfaces.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/constants-0c6897bc.js.map +0 -1
- package/dist/cjs/constants-24f26d54.js +0 -15
- package/dist/cjs/constants-24f26d54.js.map +0 -1
- package/dist/cjs/constants-404ee283.js +0 -21
- package/dist/cjs/constants-404ee283.js.map +0 -1
- package/dist/cjs/constants-477ca85a.js.map +0 -1
- package/dist/cjs/constants-5c8f444a.js.map +0 -1
- package/dist/cjs/constants-5ca7e728.js +0 -18
- package/dist/cjs/constants-5ca7e728.js.map +0 -1
- package/dist/cjs/constants-8c9eeb15.js +0 -20
- package/dist/cjs/constants-8c9eeb15.js.map +0 -1
- package/dist/cjs/constants-a44c32bc.js.map +0 -1
- package/dist/cjs/constants-a92bbccb.js +0 -17
- package/dist/cjs/constants-a92bbccb.js.map +0 -1
- package/dist/cjs/constants-b39578d9.js +0 -29
- package/dist/cjs/constants-b39578d9.js.map +0 -1
- package/dist/cjs/constants-b3c2277b.js +0 -23
- package/dist/cjs/constants-b3c2277b.js.map +0 -1
- package/dist/cjs/constants-b8ec7b03.js +0 -32
- package/dist/cjs/constants-b8ec7b03.js.map +0 -1
- package/dist/cjs/form-d9f0f50c.js.map +0 -1
- package/dist/cjs/gov-layout-aside.cjs.entry.js +0 -26
- package/dist/cjs/gov-layout-aside.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-layout-content.cjs.entry.js +0 -26
- package/dist/cjs/gov-layout-content.cjs.entry.js.map +0 -1
- package/dist/cjs/props-cc21d3d7.js.map +0 -1
- package/dist/cjs/utils-4ae73637.js.map +0 -1
- package/dist/cjs/variants-bacf037a.js.map +0 -1
- package/dist/cjs/wcag-eca97102.js.map +0 -1
- package/dist/cjs/win-ac5c1806.js.map +0 -1
- package/dist/collection/components/gov-layout/gov-layout-aside.js +0 -47
- package/dist/collection/components/gov-layout/gov-layout-aside.js.map +0 -1
- package/dist/collection/components/gov-layout/gov-layout-content.css +0 -227
- package/dist/collection/components/gov-layout/gov-layout-content.js +0 -47
- package/dist/collection/components/gov-layout/gov-layout-content.js.map +0 -1
- package/dist/collection/core/constants/breakpoint.js +0 -9
- package/dist/collection/core/constants/breakpoint.js.map +0 -1
- package/dist/components/gov-layout-aside.js +0 -41
- package/dist/components/gov-layout-aside.js.map +0 -1
- package/dist/components/gov-layout-content.d.ts +0 -11
- package/dist/components/gov-layout-content.js +0 -41
- package/dist/components/gov-layout-content.js.map +0 -1
- package/dist/core/p-097332b9.entry.js +0 -2
- package/dist/core/p-097332b9.entry.js.map +0 -1
- package/dist/core/p-09b38102.entry.js +0 -2
- package/dist/core/p-09b38102.entry.js.map +0 -1
- package/dist/core/p-1525ef03.entry.js +0 -2
- package/dist/core/p-1525ef03.entry.js.map +0 -1
- package/dist/core/p-1ffe4cac.entry.js +0 -2
- package/dist/core/p-1ffe4cac.entry.js.map +0 -1
- package/dist/core/p-22c3946b.entry.js +0 -2
- package/dist/core/p-22c3946b.entry.js.map +0 -1
- package/dist/core/p-28f08f8b.entry.js +0 -2
- package/dist/core/p-28f08f8b.entry.js.map +0 -1
- package/dist/core/p-2b19bea6.entry.js +0 -2
- package/dist/core/p-2b19bea6.entry.js.map +0 -1
- package/dist/core/p-2b4acb01.js.map +0 -1
- package/dist/core/p-2c25aac5.entry.js.map +0 -1
- package/dist/core/p-2c9031ef.entry.js +0 -2
- package/dist/core/p-2c9031ef.entry.js.map +0 -1
- package/dist/core/p-3426a731.entry.js +0 -2
- package/dist/core/p-3426a731.entry.js.map +0 -1
- package/dist/core/p-3b8d7a9a.entry.js +0 -2
- package/dist/core/p-3b8d7a9a.entry.js.map +0 -1
- package/dist/core/p-44f22320.entry.js +0 -2
- package/dist/core/p-44f22320.entry.js.map +0 -1
- package/dist/core/p-468873ec.entry.js +0 -2
- package/dist/core/p-468873ec.entry.js.map +0 -1
- package/dist/core/p-48a7c794.entry.js +0 -2
- package/dist/core/p-48a7c794.entry.js.map +0 -1
- package/dist/core/p-4e21ca0f.entry.js +0 -2
- package/dist/core/p-4e21ca0f.entry.js.map +0 -1
- package/dist/core/p-58691740.js.map +0 -1
- package/dist/core/p-5f7e38b6.entry.js +0 -2
- package/dist/core/p-5f7e38b6.entry.js.map +0 -1
- package/dist/core/p-64445e87.js +0 -2
- package/dist/core/p-64445e87.js.map +0 -1
- package/dist/core/p-68d4837b.entry.js +0 -2
- package/dist/core/p-68d4837b.entry.js.map +0 -1
- package/dist/core/p-6ce1f525.js +0 -2
- package/dist/core/p-6ce1f525.js.map +0 -1
- package/dist/core/p-708963e6.js +0 -2
- package/dist/core/p-708963e6.js.map +0 -1
- package/dist/core/p-71134d97.js +0 -2
- package/dist/core/p-71134d97.js.map +0 -1
- package/dist/core/p-78a4be4b.entry.js +0 -2
- package/dist/core/p-78a4be4b.entry.js.map +0 -1
- package/dist/core/p-803629e9.entry.js +0 -2
- package/dist/core/p-803629e9.entry.js.map +0 -1
- package/dist/core/p-808cd4b7.entry.js +0 -2
- package/dist/core/p-808cd4b7.entry.js.map +0 -1
- package/dist/core/p-8e8340b0.entry.js +0 -2
- package/dist/core/p-8ebc3217.js +0 -2
- package/dist/core/p-8ebc3217.js.map +0 -1
- package/dist/core/p-8eece26f.entry.js +0 -2
- package/dist/core/p-8eece26f.entry.js.map +0 -1
- package/dist/core/p-90f818c0.entry.js.map +0 -1
- package/dist/core/p-951d9c21.js +0 -2
- package/dist/core/p-951d9c21.js.map +0 -1
- package/dist/core/p-9680b966.entry.js.map +0 -1
- package/dist/core/p-9711e4e5.entry.js +0 -2
- package/dist/core/p-9711e4e5.entry.js.map +0 -1
- package/dist/core/p-99cc3dba.js.map +0 -1
- package/dist/core/p-9baa1a0e.entry.js +0 -2
- package/dist/core/p-a2f9daba.js +0 -2
- package/dist/core/p-a2f9daba.js.map +0 -1
- package/dist/core/p-a32723d4.entry.js +0 -2
- package/dist/core/p-a32723d4.entry.js.map +0 -1
- package/dist/core/p-a5b02584.js +0 -2
- package/dist/core/p-a5b02584.js.map +0 -1
- package/dist/core/p-b4581984.js +0 -2
- package/dist/core/p-b4581984.js.map +0 -1
- package/dist/core/p-b5935207.entry.js +0 -2
- package/dist/core/p-b5935207.entry.js.map +0 -1
- package/dist/core/p-ba500f74.entry.js +0 -2
- package/dist/core/p-ba500f74.entry.js.map +0 -1
- package/dist/core/p-c9e7a558.entry.js +0 -2
- package/dist/core/p-c9e7a558.entry.js.map +0 -1
- package/dist/core/p-cbe6523f.entry.js +0 -2
- package/dist/core/p-cbe6523f.entry.js.map +0 -1
- package/dist/core/p-cd4f034f.js +0 -2
- package/dist/core/p-cd4f034f.js.map +0 -1
- package/dist/core/p-d4aaff74.js +0 -2
- package/dist/core/p-d4aaff74.js.map +0 -1
- package/dist/core/p-d65f71e1.js +0 -2
- package/dist/core/p-d65f71e1.js.map +0 -1
- package/dist/core/p-d9ffb84e.entry.js +0 -2
- package/dist/core/p-dc87f017.entry.js +0 -2
- package/dist/core/p-dc87f017.entry.js.map +0 -1
- package/dist/core/p-eadaa1d1.entry.js +0 -2
- package/dist/core/p-eadaa1d1.entry.js.map +0 -1
- package/dist/core/p-ef3e7866.js +0 -2
- package/dist/core/p-ef3e7866.js.map +0 -1
- package/dist/core/p-f1226ef1.entry.js +0 -2
- package/dist/core/p-f1226ef1.entry.js.map +0 -1
- package/dist/core/p-f4030908.entry.js +0 -2
- package/dist/core/p-f4030908.entry.js.map +0 -1
- package/dist/core/p-f58b9eec.js.map +0 -1
- package/dist/core/p-f82535b7.js +0 -2
- package/dist/core/p-f82535b7.js.map +0 -1
- package/dist/core/p-fc3c7246.entry.js +0 -2
- package/dist/core/p-fc3c7246.entry.js.map +0 -1
- package/dist/esm/constants-129909d1.js +0 -14
- package/dist/esm/constants-129909d1.js.map +0 -1
- package/dist/esm/constants-1f1d1d3e.js +0 -16
- package/dist/esm/constants-1f1d1d3e.js.map +0 -1
- package/dist/esm/constants-2cd89f93.js.map +0 -1
- package/dist/esm/constants-3b157470.js +0 -23
- package/dist/esm/constants-3b157470.js.map +0 -1
- package/dist/esm/constants-3de0521d.js +0 -27
- package/dist/esm/constants-3de0521d.js.map +0 -1
- package/dist/esm/constants-4331e6d9.js +0 -12
- package/dist/esm/constants-4331e6d9.js.map +0 -1
- package/dist/esm/constants-4cdfde31.js +0 -14
- package/dist/esm/constants-4cdfde31.js.map +0 -1
- package/dist/esm/constants-4d4cc5e1.js.map +0 -1
- package/dist/esm/constants-8f0bcad2.js +0 -21
- package/dist/esm/constants-8f0bcad2.js.map +0 -1
- package/dist/esm/constants-b49812cd.js +0 -16
- package/dist/esm/constants-b49812cd.js.map +0 -1
- package/dist/esm/constants-c8f57790.js +0 -19
- package/dist/esm/constants-c8f57790.js.map +0 -1
- package/dist/esm/constants-ec176a77.js.map +0 -1
- package/dist/esm/form-121eab06.js.map +0 -1
- package/dist/esm/gov-layout-aside.entry.js +0 -22
- package/dist/esm/gov-layout-aside.entry.js.map +0 -1
- package/dist/esm/gov-layout-content.entry.js +0 -22
- package/dist/esm/gov-layout-content.entry.js.map +0 -1
- package/dist/esm/props-cb992af5.js.map +0 -1
- package/dist/esm/utils-3a968bb9.js.map +0 -1
- package/dist/esm/variants-b5641e3d.js.map +0 -1
- package/dist/esm/wcag-af732bfe.js.map +0 -1
- package/dist/esm/win-cb090c11.js.map +0 -1
- package/dist/types/components/gov-layout/gov-layout-aside.d.ts +0 -10
- package/dist/types/components/gov-layout/gov-layout-content.d.ts +0 -10
- package/dist/types/core/constants/breakpoint.d.ts +0 -8
- /package/dist/core/{p-64d3cf79.entry.js.map → p-a5e34e93.entry.js.map} +0 -0
|
@@ -2,12 +2,18 @@ import { getAssetPath, proxyCustomElement, HTMLElement, Build, h, Host } from '@
|
|
|
2
2
|
import { i as iconsPath } from './win.js';
|
|
3
3
|
import { g as govHost } from './template.js';
|
|
4
4
|
|
|
5
|
+
var Types;
|
|
6
|
+
(function (Types) {
|
|
7
|
+
Types["BASIC"] = "basic";
|
|
8
|
+
Types["COMPLEX"] = "complex";
|
|
9
|
+
Types["COLORED"] = "colored";
|
|
10
|
+
})(Types || (Types = {}));
|
|
5
11
|
const IconClass = {
|
|
6
12
|
root: 'gov-icon',
|
|
7
13
|
holder: 'gov-icon__holder',
|
|
8
14
|
};
|
|
9
15
|
|
|
10
|
-
const version = "0.0.
|
|
16
|
+
const version = "0.0.6";
|
|
11
17
|
|
|
12
18
|
const dsVersion = () => {
|
|
13
19
|
return version;
|
|
@@ -27,8 +33,7 @@ async function fetchIcon({ name, type }) {
|
|
|
27
33
|
return iconCache[name];
|
|
28
34
|
}
|
|
29
35
|
if (!requestCache[name]) {
|
|
30
|
-
requestCache[name] = fetch(iconUrl(iconsPath(), name, type))
|
|
31
|
-
.then(resp => {
|
|
36
|
+
requestCache[name] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {
|
|
32
37
|
if (resp.status === 200) {
|
|
33
38
|
return resp.text();
|
|
34
39
|
}
|
|
@@ -130,6 +135,7 @@ function defineCustomElement() {
|
|
|
130
135
|
break;
|
|
131
136
|
} });
|
|
132
137
|
}
|
|
138
|
+
defineCustomElement();
|
|
133
139
|
|
|
134
140
|
export { GovIcon as G, defineCustomElement as d };
|
|
135
141
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-icon2.js","mappings":";;;;
|
|
1
|
+
{"file":"gov-icon2.js","mappings":"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","names":[],"sources":["../../../packages/core/src/components/gov-icon/constants.ts","../../../packages/core/src/utils/ds.utils.ts","../../../packages/core/src/utils/icon.utils.ts","../../../packages/core/src/components/gov-icon/gov-icon.scss?tag=gov-icon","../../../packages/core/src/components/gov-icon/gov-icon.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\n\nenum Types {\n\tBASIC = 'basic',\n\tCOMPLEX = 'complex',\n\tCOLORED = 'colored',\n}\nexport type Type = `${ValueOf<typeof Types>}`\n\nexport const IconClass = {\n\troot: 'gov-icon',\n\tholder: 'gov-icon__holder',\n}\n","import { version } from '../../package.json'\n\nexport const dsVersion = (): string => {\n\treturn version\n}\n","import { getAssetPath } from '@stencil/core'\nimport { dsVersion } from './ds.utils'\nimport { iconsPath } from '../helpers/Dom/win'\n\nconst iconCache: { [key: string]: string } = {}\nconst requestCache: { [key: string]: Promise<string> } = {}\n\nconst isExternalUrl = (path: string) => path.startsWith('http://') || path.startsWith('https://')\nconst iconUrl = (path: string, name: string, type: string) => {\n\tif (isExternalUrl(path)) {\n\t\treturn `${path}/${type}/${name}.svg?v=${dsVersion()}`\n\t}\n\treturn getAssetPath(`${path}/${type}/${name}.svg`) + `?v=${dsVersion()}`\n}\n\nexport async function fetchIcon({ name, type }: { name: string; type: string }): Promise<string> {\n\tif (iconCache[name]) {\n\t\treturn iconCache[name]\n\t}\n\tif (!requestCache[name]) {\n\t\trequestCache[name] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {\n\t\t\tif (resp.status === 200) {\n\t\t\t\treturn resp.text()\n\t\t\t} else {\n\t\t\t\tthrow new Error(\"Gov Icon doesn't exists\")\n\t\t\t}\n\t\t})\n\t}\n\tconst path = await requestCache[name]\n\ticonCache[name] = path\n\treturn path\n}\n","/*\n * Icon\n */\n\n$class: \".gov-icon\";\n\n#{$class} {\n\tdisplay: inline-flex;\n\t&__holder,\n\tsvg {\n\t\tdisplay: inline-flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n}\n","import { Build, Component, Element, h, Prop, State, Watch, Host } from '@stencil/core'\nimport { IconClass, Type } from './constants'\nimport { fetchIcon } from '../../utils/icon.utils'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\tassetsDirs: ['assets'],\n\tstyleUrl: 'gov-icon.scss',\n\ttag: 'gov-icon',\n})\nexport class GovIcon {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\t@Element() host: HTMLGovIconElement\n\t/**\n\t * Name of icon\n\t */\n\t@Prop() name: string = null\n\t/**\n\t * Type of icon\n\t */\n\t@Prop() type: Type = 'basic'\n\t@State() private iconData: string\n\t@State() private visible = false\n\t@State() private error = false\n\tprivate intersectionObserver: IntersectionObserver\n\n\t@Watch('name')\n\tprivate async loadIconPathData(): Promise<void> {\n\t\tconst { name, visible, type } = this\n\t\tif (!Build.isBrowser || !name || !visible) {\n\t\t\treturn\n\t\t}\n\t\ttry {\n\t\t\tthis.iconData = await fetchIcon({ name, type })\n\t\t} catch (e) {\n\t\t\tthis.error = true\n\t\t}\n\t}\n\n\tconnectedCallback(): void {\n\t\tthis.waitUntilVisible(async () => {\n\t\t\tthis.visible = true\n\t\t\tawait this.loadIconPathData()\n\t\t})\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tif (this.intersectionObserver) {\n\t\t\tthis.intersectionObserver.disconnect()\n\t\t\tthis.intersectionObserver = null\n\t\t}\n\t}\n\n\tasync componentWillLoad(): Promise<void> {\n\t\tawait this.loadIconPathData()\n\t}\n\n\tprivate waitUntilVisible(callback: () => void): void {\n\t\tif (!Build.isBrowser || typeof window === 'undefined' || !(window as any).IntersectionObserver) {\n\t\t\tcallback()\n\t\t\treturn\n\t\t}\n\t\tthis.intersectionObserver = new IntersectionObserver(\n\t\t\tentries => {\n\t\t\t\tentries.forEach(entry => {\n\t\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\t\tthis.intersectionObserver.disconnect()\n\t\t\t\t\t\tthis.intersectionObserver = null\n\t\t\t\t\t\tcallback()\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t{ rootMargin: '50px' }\n\t\t)\n\t\tthis.intersectionObserver.observe(this.host)\n\t}\n\n\trender() {\n\t\tif (this.error) {\n\t\t\treturn null\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(IconClass.root)}>\n\t\t\t\t<span class={IconClass.holder} innerHTML={this.iconData}></span>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Components, JSX } from "../types/components";
|
|
2
2
|
|
|
3
|
-
interface
|
|
4
|
-
export const
|
|
5
|
-
prototype:
|
|
6
|
-
new ():
|
|
3
|
+
interface GovLayoutColumn extends Components.GovLayoutColumn, HTMLElement {}
|
|
4
|
+
export const GovLayoutColumn: {
|
|
5
|
+
prototype: GovLayoutColumn;
|
|
6
|
+
new (): GovLayoutColumn;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { a as LayoutColumnClass } from './constants7.js';
|
|
3
|
+
import { g as govHost } from './template.js';
|
|
4
|
+
|
|
5
|
+
const govLayoutColumnCss = ".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)}}.gov-layout-column{position:relative;display:block}";
|
|
6
|
+
|
|
7
|
+
const GovLayoutColumn$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.h = govHost(this.host);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (h(Host, { class: this.h.classes(LayoutColumnClass.root) }, h("slot", null)));
|
|
15
|
+
}
|
|
16
|
+
get host() { return this; }
|
|
17
|
+
static get style() { return govLayoutColumnCss; }
|
|
18
|
+
}, [4, "gov-layout-column"]);
|
|
19
|
+
function defineCustomElement$1() {
|
|
20
|
+
if (typeof customElements === "undefined") {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const components = ["gov-layout-column"];
|
|
24
|
+
components.forEach(tagName => { switch (tagName) {
|
|
25
|
+
case "gov-layout-column":
|
|
26
|
+
if (!customElements.get(tagName)) {
|
|
27
|
+
customElements.define(tagName, GovLayoutColumn$1);
|
|
28
|
+
}
|
|
29
|
+
break;
|
|
30
|
+
} });
|
|
31
|
+
}
|
|
32
|
+
defineCustomElement$1();
|
|
33
|
+
|
|
34
|
+
const GovLayoutColumn = GovLayoutColumn$1;
|
|
35
|
+
const defineCustomElement = defineCustomElement$1;
|
|
36
|
+
|
|
37
|
+
export { GovLayoutColumn, defineCustomElement };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=gov-layout-column.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"gov-layout-column.js","mappings":";;;;AAAA,MAAM,kBAAkB,GAAG,0OAA0O;;MCSxPA,iBAAe;EAG3B;;;IACC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAID,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAClD,eAAQ,CACF,EACP;GACD;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovLayoutColumn"],"sources":["../../../packages/core/src/components/gov-layout/gov-layout-column.scss?tag=gov-layout-column","../../../packages/core/src/components/gov-layout/gov-layout-column.tsx"],"sourcesContent":["/*\n * Layout column\n */\n\n$class: \".gov-layout-column\";\n\n#{$class} {\n\tposition: relative;\n\tdisplay: block;\n}\n","import { Component, Element, h, Host } from '@stencil/core'\nimport { LayoutColumnClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-layout-column',\n\tstyleUrl: 'gov-layout-column.scss',\n})\nexport class GovLayoutColumn {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovLayoutColumnElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LayoutColumnClass.root)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -2,20 +2,33 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
2
2
|
import { L as LayoutClass } from './constants7.js';
|
|
3
3
|
import { g as govHost } from './template.js';
|
|
4
4
|
|
|
5
|
-
const govLayoutCss = ".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)}}.gov-layout{position:relative;display:block;width:100%}.gov-layout__section{display:flex;gap:var(--gov-layout-gap, 1.375rem);flex-direction:column}@media (min-width: 64em){.gov-layout__section{flex-direction:row}}";
|
|
5
|
+
const govLayoutCss = ".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)}}.gov-layout{position:relative;display:block;width:100%}.gov-layout__section{display:flex;gap:var(--gov-layout-gap, 1.375rem);flex-direction:column}@media (min-width: 64em){.gov-layout__section{flex-direction:row}.gov-layout__section-aside-right .gov-layout-column:first-child,.gov-layout__section-aside .gov-layout-column:first-child{flex:1 1 auto;width:auto}.gov-layout__section-aside-right .gov-layout-column:last-child,.gov-layout__section-aside .gov-layout-column:last-child{flex:0 0 auto;width:calc(var(--gov-container-width, 73.75rem) / 3 - var(--gov-layout-gap, 1.375rem))}.gov-layout__section-aside-left .gov-layout-column:first-child{flex:0 0 auto;width:calc(var(--gov-container-width, 73.75rem) / 3 - var(--gov-layout-gap, 1.375rem))}.gov-layout__section-aside-left .gov-layout-column:last-child{flex:1 1 auto;width:auto}.gov-layout__section-aside-right-inverse .gov-layout-column:first-child{order:1}.gov-layout__section-aside-left-inverse .gov-layout-column:first-child{order:2}.gov-layout__section-text{width:var(--gov-layout-content-width, 48.75rem);margin-right:auto;margin-left:auto}.gov-layout__section-text-left{width:var(--gov-layout-content-width, 48.75rem);margin-right:auto}.gov-layout__section-text-right{width:var(--gov-layout-content-width, 48.75rem);margin-left:auto}}";
|
|
6
6
|
|
|
7
7
|
const GovLayout$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
8
|
constructor() {
|
|
9
9
|
super();
|
|
10
10
|
this.__registerHost();
|
|
11
|
+
this.type = 'stretch';
|
|
12
|
+
this.variant = undefined;
|
|
13
|
+
this.inverse = false;
|
|
11
14
|
this.h = govHost(this.host);
|
|
12
15
|
}
|
|
16
|
+
typeClass(originalClass, type, variant, inverse) {
|
|
17
|
+
const isType = type ? '-' + type : '';
|
|
18
|
+
const isVariant = variant ? '-' + variant : '';
|
|
19
|
+
const isInverse = inverse ? '-inverse' : '';
|
|
20
|
+
return originalClass + ' ' + originalClass + isType + isVariant + isInverse;
|
|
21
|
+
}
|
|
13
22
|
render() {
|
|
14
|
-
return (h(Host, { class: this.h.classes(LayoutClass.root) }, h("section", { class: LayoutClass.section }, h("slot", null))));
|
|
23
|
+
return (h(Host, { type: this.type, class: this.h.classes(LayoutClass.root) }, h("section", { class: this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse) }, h("slot", null))));
|
|
15
24
|
}
|
|
16
25
|
get host() { return this; }
|
|
17
26
|
static get style() { return govLayoutCss; }
|
|
18
|
-
}, [4, "gov-layout"
|
|
27
|
+
}, [4, "gov-layout", {
|
|
28
|
+
"type": [1],
|
|
29
|
+
"variant": [1],
|
|
30
|
+
"inverse": [4]
|
|
31
|
+
}]);
|
|
19
32
|
function defineCustomElement$1() {
|
|
20
33
|
if (typeof customElements === "undefined") {
|
|
21
34
|
return;
|
|
@@ -29,6 +42,7 @@ function defineCustomElement$1() {
|
|
|
29
42
|
break;
|
|
30
43
|
} });
|
|
31
44
|
}
|
|
45
|
+
defineCustomElement$1();
|
|
32
46
|
|
|
33
47
|
const GovLayout = GovLayout$1;
|
|
34
48
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-layout.js","mappings":";;;;AAAA,MAAM,YAAY,GAAG,
|
|
1
|
+
{"file":"gov-layout.js","mappings":";;;;AAAA,MAAM,YAAY,GAAG,q8CAAq8C;;MCS78CA,WAAS;EAGrB;;;gBAQqC,SAAS;;mBAQV,KAAK;IAfxC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAgBO,SAAS,CAAC,aAAqB,EAAE,IAAY,EAAE,OAAe,EAAE,OAAgB;IACvF,MAAM,MAAM,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,EAAE,CAAA;IACrC,MAAM,SAAS,GAAG,OAAO,GAAG,GAAG,GAAG,OAAO,GAAG,EAAE,CAAA;IAC9C,MAAM,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,EAAE,CAAA;IAC3C,OAAO,aAAa,GAAG,GAAG,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;GAC3E;EAED,MAAM;IACL,QACC,EAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,IAC7D,eAAS,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,IACzF,eAAQ,CACC,CACJ,EACP;GACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovLayout"],"sources":["../../../packages/core/src/components/gov-layout/gov-layout.scss?tag=gov-layout","../../../packages/core/src/components/gov-layout/gov-layout.tsx"],"sourcesContent":["/*\n * Layout\n */\n\n$class: \".gov-layout\";\n\n@mixin big() {\n\tflex: 1 1 auto;\n\twidth: auto;\n}\n\n@mixin small() {\n\tflex: 0 0 auto;\n\twidth: calc($container-width / 3 - $layout-gap);\n}\n\n#{$class} {\n\t@include base();\n\t&__section {\n\t\tdisplay: flex;\n\t\tgap: $layout-gap;\n\t\tflex-direction: column;\n\t}\n\n\t// MQ\n\t@include mq($from: lg) {\n\t\t&__section {\n\t\t\tflex-direction: row;\n\n\t\t\t&-aside-right,\n\t\t\t&-aside {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\t@include big;\n\t\t\t\t}\n\n\t\t\t\t#{$class}-column:last-child {\n\t\t\t\t\t@include small;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-aside-left {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\t@include small;\n\t\t\t\t}\n\n\t\t\t\t#{$class}-column:last-child {\n\t\t\t\t\t@include big;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-aside-right-inverse {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\torder: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-aside-left-inverse {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\torder: 2;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-text {\n\t\t\t\twidth: $layout-content-width;\n\t\t\t\tmargin-right: auto;\n\t\t\t\tmargin-left: auto;\n\t\t\t}\n\n\t\t\t&-text-left {\n\t\t\t\twidth: $layout-content-width;\n\t\t\t\tmargin-right: auto;\n\t\t\t}\n\n\t\t\t&-text-right {\n\t\t\t\twidth: $layout-content-width;\n\t\t\t\tmargin-left: auto;\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { LayoutClass, LayoutType, LayoutVariantType } from './constants'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { govHost } from '../../helpers/Dom/template'\n\n@Component({\n\ttag: 'gov-layout',\n\tstyleUrl: 'gov-layout.scss',\n})\nexport class GovLayout {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLayoutElement\n\t/**\n\t * Layout type\n\t */\n\t@Prop() readonly type?: LayoutType = 'stretch'\n\t/**\n\t * Layout align\n\t */\n\t@Prop() readonly variant?: LayoutVariantType\n\t/**\n\t * Determine if component should have inverse column order\n\t */\n\t@Prop() readonly inverse: boolean = false\n\n\tprivate typeClass(originalClass: string, type: string, variant: string, inverse: boolean) {\n\t\tconst isType = type ? '-' + type : ''\n\t\tconst isVariant = variant ? '-' + variant : ''\n\t\tconst isInverse = inverse ? '-inverse' : ''\n\t\treturn originalClass + ' ' + originalClass + isType + isVariant + isInverse\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host type={this.type} class={this.h.classes(LayoutClass.root)}>\n\t\t\t\t<section class={this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse)}>\n\t\t\t\t\t<slot />\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -19,7 +19,7 @@ const GovLoading$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
19
19
|
this.h = govHost(this.host);
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { class: this.h.classes(LoadingClass.root), loading: this.loading }, h("div", { class: LoadingClass.content }, h("gov-icon", { class: prepareClasses([LoadingClass.icon,
|
|
22
|
+
return (h(Host, { class: this.h.classes(LoadingClass.root), loading: this.loading }, h("div", { class: LoadingClass.content }, h("gov-icon", { class: prepareClasses([LoadingClass.icon, 'gov-spin-animation']), name: "loader" }), h("slot", null)), h("gov-backdrop", { visible: this.loading, inverse: true })));
|
|
23
23
|
}
|
|
24
24
|
get host() { return this; }
|
|
25
25
|
static get style() { return govLoadingCss; }
|
|
@@ -49,6 +49,7 @@ function defineCustomElement$1() {
|
|
|
49
49
|
break;
|
|
50
50
|
} });
|
|
51
51
|
}
|
|
52
|
+
defineCustomElement$1();
|
|
52
53
|
|
|
53
54
|
const GovLoading = GovLoading$1;
|
|
54
55
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-loading.js","mappings":";;;;;AAAO,MAAM,YAAY,GAAG;EAC3B,IAAI,EAAE,aAAa;EACnB,OAAO,EAAE,sBAAsB;EAC/B,IAAI,EAAE,mBAAmB;CACzB;;ACJD,MAAM,aAAa,GAAG,+tBAA+tB;;MCSxuBA,YAAU;EAGtB;;;mBAQkB,KAAK;IAPtB,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAQD,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,IACpE,WAAK,KAAK,EAAE,YAAY,CAAC,OAAO,IAC/B,gBAAU,KAAK,EAAE,cAAc,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC,EAAE,IAAI,EAAC,QAAQ,GAAY,EACrG,eAAQ,CACH,EACN,oBAAc,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,GAAI,CAChD,EACP;GACD
|
|
1
|
+
{"file":"gov-loading.js","mappings":";;;;;AAAO,MAAM,YAAY,GAAG;EAC3B,IAAI,EAAE,aAAa;EACnB,OAAO,EAAE,sBAAsB;EAC/B,IAAI,EAAE,mBAAmB;CACzB;;ACJD,MAAM,aAAa,GAAG,+tBAA+tB;;MCSxuBA,YAAU;EAGtB;;;mBAQkB,KAAK;IAPtB,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAQD,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,IACpE,WAAK,KAAK,EAAE,YAAY,CAAC,OAAO,IAC/B,gBAAU,KAAK,EAAE,cAAc,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC,EAAE,IAAI,EAAC,QAAQ,GAAY,EACrG,eAAQ,CACH,EACN,oBAAc,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,GAAI,CAChD,EACP;GACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovLoading"],"sources":["../../../packages/core/src/components/gov-loading/constants.ts","../../../packages/core/src/components/gov-loading/gov-loading.scss?tag=gov-loading","../../../packages/core/src/components/gov-loading/gov-loading.tsx"],"sourcesContent":["export const LoadingClass = {\n\troot: 'gov-loading',\n\tcontent: 'gov-loading__content',\n\ticon: 'gov-loading__icon',\n}\n","/*\n * Loading\n */\n\n$class: \".gov-loading\";\n\n#{$class} {\n\tdisplay: none;\n\t&__content {\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\tgap: rem-calc(16);\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\tmin-width: rem-calc(155);\n\t\tpadding: rem-calc(24);\n\t\tborder-radius: rem-calc(8);\n\t\tbackground: $loading-bg;\n\t\tcolor: $loading-color;\n\t\ttext-align: center;\n\t\ttransform: translate(-50%, -50%);\n\t}\n\t&__icon {\n\t\twidth: rem-calc(64);\n\t\theight: rem-calc(64);\n\t\tline-height: 1;\n\t}\n\n\t// STATES\n\t@include parameter(\"loading\") {\n\t\tdisplay: block;\n\t}\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { LoadingClass } from './constants'\nimport { govHost, prepareClasses } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-loading',\n\tstyleUrl: 'gov-loading.scss',\n})\nexport class GovLoading {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLoadingElement\n\t/**\n\t * Determine if loading is active\n\t */\n\t@Prop() loading = false\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LoadingClass.root)} loading={this.loading}>\n\t\t\t\t<div class={LoadingClass.content}>\n\t\t\t\t\t<gov-icon class={prepareClasses([LoadingClass.icon, 'gov-spin-animation'])} name=\"loader\"></gov-icon>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t\t<gov-backdrop visible={this.loading} inverse={true} />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { v as validateProp } from './props.js';
|
|
3
3
|
import { V as Variants } from './variants.js';
|
|
4
|
+
import { p as pick } from './utils.js';
|
|
4
5
|
import { g as govHost } from './template.js';
|
|
5
6
|
|
|
7
|
+
pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS']);
|
|
6
8
|
const MessageClass = {
|
|
7
9
|
root: 'gov-message',
|
|
8
10
|
icon: 'gov-message__icon',
|
|
@@ -31,7 +33,7 @@ const GovMessage$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
31
33
|
}; }
|
|
32
34
|
static get style() { return govMessageCss; }
|
|
33
35
|
}, [4, "gov-message", {
|
|
34
|
-
"variant": [
|
|
36
|
+
"variant": [1]
|
|
35
37
|
}]);
|
|
36
38
|
function defineCustomElement$1() {
|
|
37
39
|
if (typeof customElements === "undefined") {
|
|
@@ -46,6 +48,7 @@ function defineCustomElement$1() {
|
|
|
46
48
|
break;
|
|
47
49
|
} });
|
|
48
50
|
}
|
|
51
|
+
defineCustomElement$1();
|
|
49
52
|
|
|
50
53
|
const GovMessage = GovMessage$1;
|
|
51
54
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-message.js","mappings":"
|
|
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,05GAA05G;;MCYn6GA,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}
|
|
@@ -2,7 +2,8 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
|
2
2
|
import { c as createID } from './string.utils.js';
|
|
3
3
|
import { a as validateWcagRef } from './wcag.js';
|
|
4
4
|
import { M as ModalClass } from './constants8.js';
|
|
5
|
-
import { c as canValidateWcagOnRender
|
|
5
|
+
import { c as canValidateWcagOnRender } from './win.js';
|
|
6
|
+
import { d as delay } from './utils.js';
|
|
6
7
|
import { g as govHost, a as toBoolAttr } from './template.js';
|
|
7
8
|
import { g as govErrorLog } from './gov.log.js';
|
|
8
9
|
import { d as defineCustomElement$4 } from './gov-backdrop2.js';
|
|
@@ -132,6 +133,7 @@ function defineCustomElement$1() {
|
|
|
132
133
|
break;
|
|
133
134
|
} });
|
|
134
135
|
}
|
|
136
|
+
defineCustomElement$1();
|
|
135
137
|
|
|
136
138
|
const GovModal = GovModal$1;
|
|
137
139
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-modal.js","mappings":"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","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 4 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 36 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(24 48 32);\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 } 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.d'\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@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\tprivate showModal() {\n\t\tthis.open = true\n\t\tdocument.body.classList.add(ModalClass.bodyFix)\n\t}\n\n\tprivate hideModal() {\n\t\tthis.open = false\n\t\tdocument.body.classList.remove(ModalClass.bodyFix)\n\t}\n\n\tasync componentWillRender() {\n\t\tif (this.open) {\n\t\t\tthis.showModal()\n\t\t} else {\n\t\t\tthis.hideModal()\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\tconst LabelTag = this.labelTag\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ModalClass.root)} open={this.open}>\n\t\t\t\t<dialog\n\t\t\t\t\tclass={ModalClass.dialog}\n\t\t\t\t\thidden={!this.open}\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\topen={this.open}\n\t\t\t\t\taria-modal=\"true\"\n\t\t\t\t\taria-hidden={toBoolAttr(!this.open)}\n\t\t\t\t\taria-labelledby={this.wcaglabelledBy || this.labelId}\n\t\t\t\t\taria-describedby={this.wcagDescribedBy || this.contentId}\n\t\t\t\t\trole={this.role}\n\t\t\t\t>\n\t\t\t\t\t<div class={ModalClass.inner}>\n\t\t\t\t\t\t<div class={ModalClass.header}>\n\t\t\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t\t\t<div class={ModalClass.icon}>\n\t\t\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{this.label && (\n\t\t\t\t\t\t\t\t<LabelTag class={ModalClass.title} id={this.labelId}>\n\t\t\t\t\t\t\t\t\t{this.label}\n\t\t\t\t\t\t\t\t</LabelTag>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\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=\"cross\" />\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.open}\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}
|
|
1
|
+
{"file":"gov-modal.js","mappings":"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","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 4 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 36 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(24 48 32);\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 } 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@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\tprivate showModal() {\n\t\tthis.open = true\n\t\tdocument.body.classList.add(ModalClass.bodyFix)\n\t}\n\n\tprivate hideModal() {\n\t\tthis.open = false\n\t\tdocument.body.classList.remove(ModalClass.bodyFix)\n\t}\n\n\tasync componentWillRender() {\n\t\tif (this.open) {\n\t\t\tthis.showModal()\n\t\t} else {\n\t\t\tthis.hideModal()\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\tconst LabelTag = this.labelTag\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ModalClass.root)} open={this.open}>\n\t\t\t\t<dialog\n\t\t\t\t\tclass={ModalClass.dialog}\n\t\t\t\t\thidden={!this.open}\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\topen={this.open}\n\t\t\t\t\taria-modal=\"true\"\n\t\t\t\t\taria-hidden={toBoolAttr(!this.open)}\n\t\t\t\t\taria-labelledby={this.wcaglabelledBy || this.labelId}\n\t\t\t\t\taria-describedby={this.wcagDescribedBy || this.contentId}\n\t\t\t\t\trole={this.role}\n\t\t\t\t>\n\t\t\t\t\t<div class={ModalClass.inner}>\n\t\t\t\t\t\t<div class={ModalClass.header}>\n\t\t\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t\t\t<div class={ModalClass.icon}>\n\t\t\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{this.label && (\n\t\t\t\t\t\t\t\t<LabelTag class={ModalClass.title} id={this.labelId}>\n\t\t\t\t\t\t\t\t\t{this.label}\n\t\t\t\t\t\t\t\t</LabelTag>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\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=\"cross\" />\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.open}\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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-nav-item.js","mappings":";;;;AAAA,MAAM,aAAa,GAAG,y0CAAy0C;;MCQl1CA,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
|
|
1
|
+
{"file":"gov-nav-item.js","mappings":";;;;AAAA,MAAM,aAAa,GAAG,y0CAAy0C;;MCQl1CA,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}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { N as NavClass } from './constants9.js';
|
|
3
3
|
import { v as validateWcagLabel } from './wcag.js';
|
|
4
|
-
import { c as canValidateWcagOnRender
|
|
4
|
+
import { c as canValidateWcagOnRender } from './win.js';
|
|
5
|
+
import { d as delay } from './utils.js';
|
|
5
6
|
|
|
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)}}.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}}";
|
|
7
8
|
|
|
@@ -47,6 +48,7 @@ function defineCustomElement$1() {
|
|
|
47
48
|
break;
|
|
48
49
|
} });
|
|
49
50
|
}
|
|
51
|
+
defineCustomElement$1();
|
|
50
52
|
|
|
51
53
|
const GovNav = GovNav$1;
|
|
52
54
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-nav.js","mappings":"
|
|
1
|
+
{"file":"gov-nav.js","mappings":";;;;;;AAAA,MAAM,SAAS,GAAG,4nBAA4nB;;MCUjoBA,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}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { v as validateProp } from './props.js';
|
|
3
|
-
import { S as Sizes
|
|
3
|
+
import { S as Sizes } from './sizes.js';
|
|
4
4
|
import { V as Variants } from './variants.js';
|
|
5
|
+
import { p as pick, d as delay } from './utils.js';
|
|
5
6
|
import { g as govHost, p as prepareClasses, t as toBoolAttrIfDefined } from './template.js';
|
|
6
7
|
import { c as validateWcagProp, v as validateWcagLabel } from './wcag.js';
|
|
7
|
-
import { c as canValidateWcagOnRender
|
|
8
|
+
import { c as canValidateWcagOnRender } from './win.js';
|
|
8
9
|
import { c as createID } from './string.utils.js';
|
|
9
10
|
import { d as defineCustomElement$4 } from './gov-button2.js';
|
|
10
11
|
import { d as defineCustomElement$3 } from './gov-form-select2.js';
|
|
@@ -12,8 +13,13 @@ import { d as defineCustomElement$2 } from './gov-icon2.js';
|
|
|
12
13
|
|
|
13
14
|
const Fragment = (_, children) => [...children];
|
|
14
15
|
|
|
15
|
-
const
|
|
16
|
-
const
|
|
16
|
+
const PaginationSizes = pick(Sizes, ['_S', '_M']);
|
|
17
|
+
const PaginationVariants = pick(Variants, ['PRIMARY', 'SECONDARY']);
|
|
18
|
+
var PaginationTypes;
|
|
19
|
+
(function (PaginationTypes) {
|
|
20
|
+
PaginationTypes["BUTTON"] = "button";
|
|
21
|
+
PaginationTypes["SELECT"] = "select";
|
|
22
|
+
})(PaginationTypes || (PaginationTypes = {}));
|
|
17
23
|
const PaginationClass = {
|
|
18
24
|
root: 'gov-pagination',
|
|
19
25
|
list: 'gov-pagination__list',
|
|
@@ -80,7 +86,7 @@ function paginate(totalItems, currentPage = 1, pageSize = 10, maxPages = 10) {
|
|
|
80
86
|
};
|
|
81
87
|
}
|
|
82
88
|
|
|
83
|
-
const govPaginationCss = ".gov-pagination__list{margin:0;padding:0}.gov-pagination__list .gov-pagination__item{margin:0;padding:0;background:none}.gov-pagination__list .gov-pagination__item::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-pagination{position:relative;display:block;width:100%}.gov-pagination__list{display:flex;align-items:center;font-weight:bold;text-align:center}.gov-pagination__list .gov-pagination__item{display:flex;justify-content:center;align-items:center;margin:0;border-radius:var(--gov-border-radius, 0.1875rem);overflow:hidden}.gov-pagination__list .gov-pagination__item--arrow{display:flex}.gov-pagination__list .gov-pagination__item--select{z-index:1;display:flex;overflow:visible;padding:0rem 1rem}.gov-pagination__arrow{margin:0}.gov-pagination__item--more .gov-form-select select{border:none;padding-right:0.75rem !important}.gov-pagination__item--more .gov-form-select .gov-icon{display:none}.gov-pagination__inner{display:flex;justify-content:center;align-items:center;align-self:stretch;width:100%;color:var(--gov-pagination-color, var(--gov-color-primary));text-decoration:none}.gov-pagination button.gov-pagination__inner,.gov-pagination a.gov-pagination__inner{display:inline-flex;vertical-align:middle;justify-content:center;align-items:center;border:0;background-color:transparent;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:background-color 150ms, color 150ms}.gov-pagination button.gov-pagination__inner:focus,.gov-pagination a.gov-pagination__inner:focus{outline:none}@media not all and (pointer: coarse){.gov-pagination button.gov-pagination__inner:hover,.gov-pagination a.gov-pagination__inner:hover{background-color:var(--gov-pagination-bg-active, var(--gov-color-primary-100));color:var(--gov-pagination-color-active, var(--gov-color-secondary))}}.gov-pagination[size=s] .gov-pagination__inner{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);font-weight:inherit}
|
|
89
|
+
const govPaginationCss = ".gov-pagination__list{margin:0;padding:0}.gov-pagination__list .gov-pagination__item{margin:0;padding:0;background:none}.gov-pagination__list .gov-pagination__item::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-pagination{position:relative;display:block;width:100%}.gov-pagination__list{display:flex;align-items:center;font-weight:bold;text-align:center}.gov-pagination__list .gov-pagination__item{display:flex;justify-content:center;align-items:center;margin:0;border-radius:var(--gov-border-radius, 0.1875rem);overflow:hidden}.gov-pagination__list .gov-pagination__item--arrow{display:flex}.gov-pagination__list .gov-pagination__item--select{z-index:1;display:flex;overflow:visible;padding:0rem 1rem}.gov-pagination__item .gov-button .element{width:var(--gov-pagination-button-size, 2rem)}.gov-pagination__arrow{margin:0}.gov-pagination__item--more .gov-form-select select{border:none;padding-right:0.75rem !important}.gov-pagination__item--more .gov-form-select .gov-icon{display:none}.gov-pagination__inner{display:flex;justify-content:center;align-items:center;align-self:stretch;width:100%;color:var(--gov-pagination-color, var(--gov-color-primary));text-decoration:none}.gov-pagination button.gov-pagination__inner,.gov-pagination a.gov-pagination__inner{display:inline-flex;vertical-align:middle;justify-content:center;align-items:center;border:0;background-color:transparent;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:background-color 150ms, color 150ms}.gov-pagination button.gov-pagination__inner:focus,.gov-pagination a.gov-pagination__inner:focus{outline:none}@media not all and (pointer: coarse){.gov-pagination button.gov-pagination__inner:hover,.gov-pagination a.gov-pagination__inner:hover{background-color:var(--gov-pagination-bg-active, var(--gov-color-primary-100));color:var(--gov-pagination-color-active, var(--gov-color-secondary))}}.gov-pagination[size=s] .gov-pagination__inner{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);font-weight:inherit}@media (min-width: 48em){.gov-pagination[size=s] .gov-pagination__item .gov-button .element{width:var(--gov-pagination-s-button-size, 2rem)}}.gov-pagination[size=m] .gov-pagination__inner{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);font-weight:inherit}@media (min-width: 48em){.gov-pagination[size=m] .gov-pagination__item .gov-button .element{width:var(--gov-pagination-m-button-size, 2.5rem)}}";
|
|
84
90
|
|
|
85
91
|
const GovPagination$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
86
92
|
constructor() {
|
|
@@ -91,27 +97,27 @@ const GovPagination$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
91
97
|
this.current = 1;
|
|
92
98
|
this.total = undefined;
|
|
93
99
|
this.inverse = undefined;
|
|
94
|
-
this.size =
|
|
95
|
-
this.variant =
|
|
100
|
+
this.size = 'm';
|
|
101
|
+
this.variant = 'primary';
|
|
96
102
|
this.pageSize = 10;
|
|
97
103
|
this.maxPages = 5;
|
|
98
104
|
this.link = undefined;
|
|
99
105
|
this.wcagLabel = undefined;
|
|
100
106
|
this.wcagLabelledBy = undefined;
|
|
101
|
-
this.wcagSelectLabel =
|
|
102
|
-
this.wcagPageLabel =
|
|
107
|
+
this.wcagSelectLabel = 'Vybrat stranu';
|
|
108
|
+
this.wcagPageLabel = 'Strana';
|
|
103
109
|
this.pagination = undefined;
|
|
104
110
|
this.h = govHost(this.host);
|
|
105
|
-
this.pageSelectId = createID(
|
|
111
|
+
this.pageSelectId = createID('GovPageSelect');
|
|
106
112
|
}
|
|
107
113
|
validateType(newValue) {
|
|
108
|
-
validateProp(
|
|
114
|
+
validateProp(PaginationTypes, newValue, PaginationClass.root);
|
|
109
115
|
}
|
|
110
116
|
validateSize(newValue) {
|
|
111
|
-
validateProp(
|
|
117
|
+
validateProp(PaginationSizes, newValue, PaginationClass.root);
|
|
112
118
|
}
|
|
113
119
|
validateVariant(newValue) {
|
|
114
|
-
validateProp(
|
|
120
|
+
validateProp(PaginationVariants, newValue, PaginationClass.root);
|
|
115
121
|
}
|
|
116
122
|
componentWillLoad() {
|
|
117
123
|
this.recalculatePagination(this.current);
|
|
@@ -129,7 +135,7 @@ const GovPagination$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
129
135
|
}
|
|
130
136
|
isActivePageClass(originalClass, page) {
|
|
131
137
|
if (this.pagination.currentPage === page) {
|
|
132
|
-
return originalClass +
|
|
138
|
+
return originalClass + ' is-active';
|
|
133
139
|
}
|
|
134
140
|
else {
|
|
135
141
|
return originalClass;
|
|
@@ -139,8 +145,8 @@ const GovPagination$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
139
145
|
const pageResolver = (page, content) => {
|
|
140
146
|
const isDisabled = page === -1;
|
|
141
147
|
const ariaCurrent = toBoolAttrIfDefined(this.pagination.currentPage === page ? true : undefined);
|
|
142
|
-
const buttonType = this.pagination.currentPage === page ?
|
|
143
|
-
return (h("gov-button", { variant: this.variant, size: this.size, type: buttonType, inverse: this.pagination.currentPage === page ? true : false, disabled: isDisabled, "gov-click": () => this.onClickHandler(page), "wcag-label": this.wcagPageLabel +
|
|
148
|
+
const buttonType = this.pagination.currentPage === page ? 'solid' : 'base';
|
|
149
|
+
return (h("gov-button", { variant: this.variant, size: this.size, type: buttonType, inverse: this.pagination.currentPage === page ? true : false, disabled: isDisabled, "gov-click": () => this.onClickHandler(page), "wcag-label": this.wcagPageLabel + ' ' + page, "wcag-current": ariaCurrent, class: PaginationClass.inner }, content));
|
|
144
150
|
};
|
|
145
151
|
return (h(Host, { class: this.h.classes(PaginationClass.root), type: this.type, variant: this.variant, size: this.size }, h("nav", { "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy }, h("ul", { class: PaginationClass.list }, h("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.startPage < this.pagination.currentPage ? this.pagination.currentPage - 1 : -1, h("gov-icon", { class: PaginationClass.arrow, name: "double-arrow-left" }))), h("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.startPage < this.pagination.currentPage ? this.pagination.currentPage - 1 : -1, h("gov-icon", { class: PaginationClass.arrow, name: "arrow-left" }))), this.type == 'select' ? (h("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemSelect]) }, h("span", { class: PaginationClass.inner }, h("span", { id: this.pageSelectId, hidden: true }, this.wcagSelectLabel), h("gov-form-select", { size: "m", "wcag-labelled-by": this.pageSelectId }, this.pagination.pages.map(page => (h("option", { value: page, selected: this.pagination.currentPage === page }, page))))))) : (h(Fragment, null, this.pagination.pages.map(page => (h("li", { class: this.isActivePageClass(PaginationClass.item, page) }, pageResolver(page, page)))), h("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemMore]) }, h("span", { class: PaginationClass.inner }, h("span", { id: this.pageSelectId, hidden: true }, this.wcagSelectLabel), h("gov-form-select", { size: "m", "wcag-labelled-by": this.pageSelectId }, h("option", { value: "..." }, "..."), this.pagination.pages.map(page => (h("option", { value: page, selected: this.pagination.currentPage === page }, page)))))))), h("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.currentPage + 1 : -1, h("gov-icon", { class: PaginationClass.arrow, name: "arrow-right" }))), h("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.totalPages : -1, h("gov-icon", { class: PaginationClass.arrow, name: "double-arrow-right" })))))));
|
|
146
152
|
}
|
|
@@ -152,8 +158,8 @@ const GovPagination$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
152
158
|
* Validate the WCAG attributes of the component
|
|
153
159
|
*/
|
|
154
160
|
async validateWcag() {
|
|
155
|
-
validateWcagProp(this.wcagPageLabel,
|
|
156
|
-
validateWcagProp(this.wcagSelectLabel,
|
|
161
|
+
validateWcagProp(this.wcagPageLabel, 'wcag-page-label', PaginationClass.root);
|
|
162
|
+
validateWcagProp(this.wcagSelectLabel, 'wcag-select-label', PaginationClass.root);
|
|
157
163
|
validateWcagLabel(this.wcagLabel, this.wcagLabelledBy, PaginationClass.root);
|
|
158
164
|
}
|
|
159
165
|
get host() { return this; }
|
|
@@ -164,12 +170,12 @@ const GovPagination$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
164
170
|
}; }
|
|
165
171
|
static get style() { return govPaginationCss; }
|
|
166
172
|
}, [0, "gov-pagination", {
|
|
167
|
-
"type": [
|
|
173
|
+
"type": [1],
|
|
168
174
|
"current": [2],
|
|
169
175
|
"total": [2],
|
|
170
176
|
"inverse": [4],
|
|
171
|
-
"size": [
|
|
172
|
-
"variant": [
|
|
177
|
+
"size": [1],
|
|
178
|
+
"variant": [1],
|
|
173
179
|
"pageSize": [2, "page-size"],
|
|
174
180
|
"maxPages": [2, "max-pages"],
|
|
175
181
|
"link": [1],
|
|
@@ -208,6 +214,7 @@ function defineCustomElement$1() {
|
|
|
208
214
|
break;
|
|
209
215
|
} });
|
|
210
216
|
}
|
|
217
|
+
defineCustomElement$1();
|
|
211
218
|
|
|
212
219
|
const GovPagination = GovPagination$1;
|
|
213
220
|
const defineCustomElement = defineCustomElement$1;
|