@gov-design-system-ce/components 4.1.1 → 4.1.3-BETA-1
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/core.cjs.js +2 -2
- package/dist/cjs/gov-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +3 -3
- package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gov-button.cjs.entry.js +1 -1
- package/dist/cjs/gov-card.cjs.entry.js +10 -7
- package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-chip.cjs.entry.js +3 -3
- package/dist/cjs/gov-container.cjs.entry.js +2 -2
- package/dist/cjs/gov-control-group.cjs.entry.js +2 -2
- package/dist/cjs/gov-cookiebar.cjs.entry.js +2 -2
- package/dist/cjs/gov-dialog.cjs.entry.js +2 -2
- package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gov-empty.cjs.entry.js +2 -2
- package/dist/cjs/gov-error-code.cjs.entry.js +2 -2
- package/dist/cjs/{gov-flex_4.cjs.entry.js → gov-flex_3.cjs.entry.js} +24 -29
- package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-file.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-group.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-input_2.cjs.entry.js +7 -7
- package/dist/cjs/gov-form-label.cjs.entry.js +27 -0
- package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-radio-group.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-select.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-switch.cjs.entry.js +1 -1
- package/dist/cjs/gov-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/gov-grid.cjs.entry.js +2 -2
- package/dist/cjs/gov-infobar.cjs.entry.js +3 -3
- package/dist/cjs/gov-layout-column.cjs.entry.js +2 -2
- package/dist/cjs/gov-layout.cjs.entry.js +2 -2
- package/dist/cjs/gov-lifecycle.cjs.entry.js +2 -2
- package/dist/cjs/gov-link.cjs.entry.js +2 -2
- package/dist/cjs/gov-loading.cjs.entry.js +2 -2
- package/dist/cjs/gov-message.cjs.entry.js +2 -2
- package/dist/cjs/gov-pagination.cjs.entry.js +1 -1
- package/dist/cjs/gov-spacer.cjs.entry.js +2 -2
- package/dist/cjs/gov-stepper-item.cjs.entry.js +2 -2
- package/dist/cjs/gov-stepper.cjs.entry.js +2 -2
- package/dist/cjs/gov-tabs-item.cjs.entry.js +2 -2
- package/dist/cjs/gov-tabs.cjs.entry.js +2 -2
- package/dist/cjs/gov-tag.cjs.entry.js +3 -2
- package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tile.cjs.entry.js +2 -2
- package/dist/cjs/gov-tiles.cjs.entry.js +2 -2
- package/dist/cjs/gov-toast.cjs.entry.js +2 -2
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +2 -2
- package/dist/cjs/gov-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/gov-wizard-item.cjs.entry.js +3 -3
- package/dist/cjs/gov-wizard.cjs.entry.js +2 -2
- package/dist/cjs/{index-7ff4447c.js → index-67e87c27.js} +14 -3
- package/dist/cjs/index-67e87c27.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/gov-attachments/gov-attachments-item.css +2 -7
- package/dist/collection/components/gov-card/constants.js +7 -4
- package/dist/collection/components/gov-card/constants.js.map +1 -1
- package/dist/collection/components/gov-card/gov-card.js +16 -10
- package/dist/collection/components/gov-card/gov-card.js.map +1 -1
- package/dist/collection/components/gov-chip/gov-chip.js +2 -2
- package/dist/collection/components/gov-container/gov-container.js +1 -1
- package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
- package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
- package/dist/collection/components/gov-empty/gov-empty.js +1 -1
- package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
- package/dist/collection/components/gov-flex/constants.js +2 -0
- package/dist/collection/components/gov-flex/constants.js.map +1 -1
- package/dist/collection/components/gov-flex/gov-flex.js +33 -9
- package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +1 -1
- package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-group.css +3 -8
- package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
- package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
- package/dist/collection/components/gov-form/input/gov-form-input.js +5 -5
- package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
- package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +2 -2
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
- package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.js +2 -2
- package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
- package/dist/collection/components/gov-grid/gov-grid.js +1 -1
- package/dist/collection/components/gov-icon/gov-icon.js +8 -0
- package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
- package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
- package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
- package/dist/collection/components/gov-layout/gov-layout.js +1 -1
- package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
- package/dist/collection/components/gov-link/gov-link.js +1 -1
- package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
- package/dist/collection/components/gov-message/gov-message.js +1 -1
- package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
- package/dist/collection/components/gov-tag/gov-tag.js +20 -1
- package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
- package/dist/collection/components/gov-theme-switch/constants.js +0 -2
- package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +32 -9
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
- package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
- package/dist/collection/components/gov-tile/gov-tile.js +1 -1
- package/dist/collection/components/gov-toast/gov-toast.js +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
- package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
- package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
- package/dist/collection/pages/Card.js +22 -37
- package/dist/collection/pages/Card.js.map +1 -1
- package/dist/collection/pages/Flex.js +62 -0
- package/dist/collection/pages/Flex.js.map +1 -0
- package/dist/collection/pages/Forms.js +5 -5
- package/dist/collection/pages/Forms.js.map +1 -1
- package/dist/collection/pages/Tag.js +30 -23
- package/dist/collection/pages/Tag.js.map +1 -1
- package/dist/collection/utils/icon.utils.js +4 -0
- package/dist/collection/utils/icon.utils.js.map +1 -1
- package/dist/components/gov-accordion-item.js +1 -1
- package/dist/components/gov-accordion.js +1 -1
- package/dist/components/gov-attachments-item.js +1 -1
- package/dist/components/gov-attachments.js +1 -1
- package/dist/components/gov-backdrop.js +1 -1
- package/dist/components/gov-breadcrumbs.js +1 -1
- package/dist/components/gov-button.js +1 -1
- package/dist/components/gov-card.js +1 -1
- package/dist/components/gov-card.js.map +1 -1
- package/dist/components/gov-chip.js +1 -1
- package/dist/components/gov-container.js +1 -1
- package/dist/components/gov-control-group.js +1 -1
- package/dist/components/gov-cookiebar.js +1 -1
- package/dist/components/gov-dialog.js +1 -1
- package/dist/components/gov-dropdown.js +1 -1
- package/dist/components/gov-empty.js +1 -1
- package/dist/components/gov-error-code.js +1 -1
- package/dist/components/gov-flex.js +1 -1
- package/dist/components/gov-flex.js.map +1 -1
- package/dist/components/gov-form-autocomplete.js +1 -1
- package/dist/components/gov-form-checkbox-group.js +1 -1
- package/dist/components/gov-form-checkbox-group.js.map +1 -1
- package/dist/components/gov-form-checkbox.js +1 -1
- package/dist/components/gov-form-control.js +1 -1
- package/dist/components/gov-form-file.js +1 -1
- package/dist/components/gov-form-file.js.map +1 -1
- package/dist/components/gov-form-group.js +1 -1
- package/dist/components/gov-form-input.js +1 -1
- package/dist/components/gov-form-label.js +1 -1
- package/dist/components/gov-form-label.js.map +1 -1
- package/dist/components/gov-form-message.js +1 -1
- package/dist/components/gov-form-multi-select.js +1 -1
- package/dist/components/gov-form-password-power.js +1 -1
- package/dist/components/gov-form-radio-group.js +1 -1
- package/dist/components/gov-form-radio-group.js.map +1 -1
- package/dist/components/gov-form-radio.js +1 -1
- package/dist/components/gov-form-search.js +1 -1
- package/dist/components/gov-form-select.js +1 -1
- package/dist/components/gov-form-switch.js +1 -1
- package/dist/components/gov-grid-item.js +1 -1
- package/dist/components/gov-grid.js +1 -1
- package/dist/components/gov-icon.js +1 -1
- package/dist/components/gov-infobar.js +1 -1
- package/dist/components/gov-layout-column.js +1 -1
- package/dist/components/gov-layout.js +1 -1
- package/dist/components/gov-lifecycle.js +1 -1
- package/dist/components/gov-link.js +1 -1
- package/dist/components/gov-link.js.map +1 -1
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-loading.js.map +1 -1
- package/dist/components/gov-message.js +1 -1
- package/dist/components/gov-pagination.js +1 -1
- package/dist/components/gov-skeleton.js +1 -1
- package/dist/components/gov-spacer.js +1 -1
- package/dist/components/gov-stepper-item.js +1 -1
- package/dist/components/gov-stepper.js +1 -1
- package/dist/components/gov-tabs-item.js +1 -1
- package/dist/components/gov-tabs.js +1 -1
- package/dist/components/gov-tabs.js.map +1 -1
- package/dist/components/gov-tag.js +1 -1
- package/dist/components/gov-tag.js.map +1 -1
- package/dist/components/gov-theme-switch.js +1 -1
- package/dist/components/gov-theme-switch.js.map +1 -1
- package/dist/components/gov-tile.js +1 -1
- package/dist/components/gov-tiles.js +1 -1
- package/dist/components/gov-toast.js +1 -1
- package/dist/components/gov-tooltip-content.js +1 -1
- package/dist/components/gov-tooltip.js +1 -1
- package/dist/components/gov-tooltip.js.map +1 -1
- package/dist/components/gov-wizard-item.js +1 -1
- package/dist/components/gov-wizard.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-73938936.js → p-03ad4e0f.js} +2 -2
- package/dist/components/p-115b9cf3.js +3 -0
- package/dist/components/p-115b9cf3.js.map +1 -0
- package/dist/components/p-2bd9e821.js +2 -0
- package/dist/components/{p-1eb9c053.js.map → p-2bd9e821.js.map} +1 -1
- package/dist/components/p-34c6a704.js +2 -0
- package/dist/components/{p-b95ebe8c.js.map → p-34c6a704.js.map} +1 -1
- package/dist/components/{p-ac359044.js → p-350e060c.js} +2 -2
- package/dist/components/{p-7be2301a.js → p-384c7f2a.js} +2 -2
- package/dist/components/p-50964838.js +2 -0
- package/dist/components/p-50964838.js.map +1 -0
- package/dist/components/{p-318d89bd.js → p-8080982e.js} +2 -2
- package/dist/components/p-8ee6f2f3.js +2 -0
- package/dist/components/{p-a6be4769.js → p-915c4f3a.js} +2 -2
- package/dist/components/p-ae7a283c.js +2 -0
- package/dist/components/{p-283b66c3.js → p-e532e5e5.js} +2 -2
- package/dist/core/core.css +438 -273
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-017ff5a5.entry.js +2 -0
- package/dist/core/{p-2739fa61.entry.js.map → p-017ff5a5.entry.js.map} +1 -1
- package/dist/core/{p-c916d0d2.entry.js → p-032accfb.entry.js} +2 -2
- package/dist/core/p-058e6fe2.entry.js +2 -0
- package/dist/core/{p-3d6edb09.entry.js.map → p-058e6fe2.entry.js.map} +1 -1
- package/dist/core/{p-0be19b89.entry.js → p-063b70a2.entry.js} +2 -2
- package/dist/core/{p-dea64896.entry.js → p-0724cb6a.entry.js} +2 -2
- package/dist/core/p-09c9eba6.entry.js +2 -0
- package/dist/core/p-09ea5c11.entry.js +2 -0
- package/dist/core/p-09ea5c11.entry.js.map +1 -0
- package/dist/core/p-0c076b21.entry.js +2 -0
- package/dist/core/{p-97a9725d.entry.js → p-0f0f7302.entry.js} +2 -2
- package/dist/core/p-10f773c2.entry.js +2 -0
- package/dist/core/p-14d66f26.entry.js +2 -0
- package/dist/core/p-1aa7450e.entry.js +2 -0
- package/dist/core/{p-6bb37fe2.entry.js.map → p-1aa7450e.entry.js.map} +1 -1
- package/dist/core/p-237a5b91.entry.js +2 -0
- package/dist/core/{p-e61aa53b.entry.js.map → p-237a5b91.entry.js.map} +1 -1
- package/dist/core/p-269071f5.entry.js +2 -0
- package/dist/core/{p-da7f1e11.entry.js.map → p-269071f5.entry.js.map} +1 -1
- package/dist/core/p-2ee042d4.js +3 -0
- package/dist/core/p-2ee042d4.js.map +1 -0
- package/dist/core/{p-ed833334.entry.js → p-33310735.entry.js} +2 -2
- package/dist/core/p-347d15d5.entry.js +2 -0
- package/dist/core/{p-019e967c.entry.js.map → p-347d15d5.entry.js.map} +1 -1
- package/dist/core/p-37473c34.entry.js +2 -0
- package/dist/core/p-37473c34.entry.js.map +1 -0
- package/dist/core/{p-432c3875.entry.js → p-3849ca02.entry.js} +2 -2
- package/dist/core/p-3a7381e7.entry.js +2 -0
- package/dist/core/{p-bdc51179.entry.js.map → p-3a7381e7.entry.js.map} +1 -1
- package/dist/core/p-43d3dbc0.entry.js +2 -0
- package/dist/core/p-45b759f4.entry.js +2 -0
- package/dist/core/{p-f4dac942.entry.js.map → p-45b759f4.entry.js.map} +1 -1
- package/dist/core/p-4c60e125.entry.js +2 -0
- package/dist/core/p-4e29744a.entry.js +2 -0
- package/dist/core/{p-41c6b262.entry.js.map → p-4e29744a.entry.js.map} +1 -1
- package/dist/core/p-4fa0320d.entry.js +2 -0
- package/dist/core/p-50af9ae8.entry.js +2 -0
- package/dist/core/{p-ccec8019.entry.js → p-5c3f4cfe.entry.js} +2 -2
- package/dist/core/p-6b7c3a96.entry.js +2 -0
- package/dist/core/{p-4c5f6299.entry.js.map → p-6b7c3a96.entry.js.map} +1 -1
- package/dist/core/p-71f5d4ff.entry.js +2 -0
- package/dist/core/{p-439b66a5.entry.js.map → p-71f5d4ff.entry.js.map} +1 -1
- package/dist/core/{p-9fe35463.entry.js → p-77daba72.entry.js} +2 -2
- package/dist/core/p-7a21fb90.entry.js +2 -0
- package/dist/core/{p-56dc370d.entry.js.map → p-7a21fb90.entry.js.map} +1 -1
- package/dist/core/{p-d65cef62.entry.js → p-7baee44f.entry.js} +2 -2
- package/dist/core/{p-7e04730a.entry.js → p-7dfb7e36.entry.js} +2 -2
- package/dist/core/p-8bb6c816.entry.js +2 -0
- package/dist/core/{p-bc966c46.entry.js.map → p-8bb6c816.entry.js.map} +1 -1
- package/dist/core/p-8cc5ad01.entry.js +2 -0
- package/dist/core/p-8cc5ad01.entry.js.map +1 -0
- package/dist/core/p-906865d0.entry.js +2 -0
- package/dist/core/{p-c054f955.entry.js.map → p-906865d0.entry.js.map} +1 -1
- package/dist/core/{p-b7cfe254.entry.js → p-927c31dd.entry.js} +2 -2
- package/dist/core/p-967a1094.entry.js +2 -0
- package/dist/core/{p-04fa0ab5.entry.js.map → p-967a1094.entry.js.map} +1 -1
- package/dist/core/{p-3cb36bae.entry.js → p-9846fd13.entry.js} +2 -2
- package/dist/core/{p-1200a32d.entry.js → p-994385ca.entry.js} +2 -2
- package/dist/core/{p-d836fcde.entry.js → p-9f8d69a9.entry.js} +2 -2
- package/dist/core/{p-e834ee73.entry.js → p-a6a9de9a.entry.js} +2 -2
- package/dist/core/p-b62e49ee.entry.js +2 -0
- package/dist/core/{p-bcb45a18.entry.js → p-c0800e6d.entry.js} +2 -2
- package/dist/core/p-cecbe73f.entry.js +2 -0
- package/dist/core/{p-5c9e6275.entry.js.map → p-cecbe73f.entry.js.map} +1 -1
- package/dist/core/p-d795a421.entry.js +2 -0
- package/dist/core/{p-0fdd8929.entry.js → p-d9b42773.entry.js} +2 -2
- package/dist/core/{p-561718cd.entry.js → p-e0a199ff.entry.js} +2 -2
- package/dist/core/p-e215f3ee.entry.js +2 -0
- package/dist/core/p-ed02945f.entry.js +2 -0
- package/dist/core/p-ee55932a.entry.js +2 -0
- package/dist/core/{p-f7a4da9d.entry.js → p-f2bb8c29.entry.js} +2 -2
- package/dist/core/{p-72130a8f.entry.js → p-f54edd6c.entry.js} +2 -2
- package/dist/core/p-f7f60f91.entry.js +2 -0
- package/dist/core/{p-b923a8d9.entry.js.map → p-f7f60f91.entry.js.map} +1 -1
- package/dist/core/{p-ed8fc183.entry.js → p-fcac8531.entry.js} +2 -2
- package/dist/esm/core.js +3 -3
- package/dist/esm/gov-accordion-item.entry.js +1 -1
- package/dist/esm/gov-accordion.entry.js +1 -1
- package/dist/esm/gov-attachments_3.entry.js +3 -3
- package/dist/esm/gov-attachments_3.entry.js.map +1 -1
- package/dist/esm/gov-backdrop.entry.js +1 -1
- package/dist/esm/gov-breadcrumbs.entry.js +1 -1
- package/dist/esm/gov-button.entry.js +1 -1
- package/dist/esm/gov-card.entry.js +10 -7
- package/dist/esm/gov-card.entry.js.map +1 -1
- package/dist/esm/gov-chip.entry.js +3 -3
- package/dist/esm/gov-container.entry.js +2 -2
- package/dist/esm/gov-control-group.entry.js +2 -2
- package/dist/esm/gov-cookiebar.entry.js +2 -2
- package/dist/esm/gov-dialog.entry.js +2 -2
- package/dist/esm/gov-dropdown.entry.js +1 -1
- package/dist/esm/gov-empty.entry.js +2 -2
- package/dist/esm/gov-error-code.entry.js +2 -2
- package/dist/esm/{gov-flex_4.entry.js → gov-flex_3.entry.js} +25 -29
- package/dist/esm/gov-flex_3.entry.js.map +1 -0
- package/dist/esm/gov-form-autocomplete.entry.js +2 -2
- package/dist/esm/gov-form-checkbox-group.entry.js +3 -3
- package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
- package/dist/esm/gov-form-checkbox.entry.js +1 -1
- package/dist/esm/gov-form-control.entry.js +2 -2
- package/dist/esm/gov-form-file.entry.js +2 -2
- package/dist/esm/gov-form-group.entry.js +2 -2
- package/dist/esm/gov-form-input_2.entry.js +7 -7
- package/dist/esm/gov-form-label.entry.js +23 -0
- package/dist/esm/gov-form-label.entry.js.map +1 -0
- package/dist/esm/gov-form-multi-select.entry.js +3 -3
- package/dist/esm/gov-form-password-power.entry.js +2 -2
- package/dist/esm/gov-form-radio-group.entry.js +3 -3
- package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
- package/dist/esm/gov-form-radio.entry.js +1 -1
- package/dist/esm/gov-form-search.entry.js +2 -2
- package/dist/esm/gov-form-select.entry.js +3 -3
- package/dist/esm/gov-form-switch.entry.js +1 -1
- package/dist/esm/gov-grid-item.entry.js +2 -2
- package/dist/esm/gov-grid.entry.js +2 -2
- package/dist/esm/gov-infobar.entry.js +3 -3
- package/dist/esm/gov-layout-column.entry.js +2 -2
- package/dist/esm/gov-layout.entry.js +2 -2
- package/dist/esm/gov-lifecycle.entry.js +2 -2
- package/dist/esm/gov-link.entry.js +2 -2
- package/dist/esm/gov-loading.entry.js +2 -2
- package/dist/esm/gov-message.entry.js +2 -2
- package/dist/esm/gov-pagination.entry.js +1 -1
- package/dist/esm/gov-spacer.entry.js +2 -2
- package/dist/esm/gov-stepper-item.entry.js +2 -2
- package/dist/esm/gov-stepper.entry.js +2 -2
- package/dist/esm/gov-tabs-item.entry.js +2 -2
- package/dist/esm/gov-tabs.entry.js +2 -2
- package/dist/esm/gov-tag.entry.js +3 -2
- package/dist/esm/gov-tag.entry.js.map +1 -1
- package/dist/esm/gov-tile.entry.js +2 -2
- package/dist/esm/gov-tiles.entry.js +2 -2
- package/dist/esm/gov-toast.entry.js +2 -2
- package/dist/esm/gov-tooltip-content.entry.js +2 -2
- package/dist/esm/gov-tooltip.entry.js +3 -3
- package/dist/esm/gov-wizard-item.entry.js +3 -3
- package/dist/esm/gov-wizard.entry.js +2 -2
- package/dist/esm/{index-c263e031.js → index-087b155c.js} +14 -4
- package/dist/esm/index-087b155c.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/hydrate/index.js +102 -76
- package/dist/hydrate/index.mjs +102 -76
- package/dist/types/components/gov-card/constants.d.ts +8 -4
- package/dist/types/components/gov-card/gov-card.d.ts +3 -2
- package/dist/types/components/gov-flex/constants.d.ts +4 -0
- package/dist/types/components/gov-flex/gov-flex.d.ts +9 -7
- package/dist/types/components/gov-tag/gov-tag.d.ts +4 -0
- package/dist/types/components/gov-theme-switch/constants.d.ts +0 -2
- package/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +8 -4
- package/dist/types/components.d.ts +50 -22
- package/dist/types/pages/Flex.d.ts +3 -0
- package/package.json +1 -1
- package/dist/cjs/gov-flex_4.cjs.entry.js.map +0 -1
- package/dist/cjs/index-7ff4447c.js.map +0 -1
- package/dist/components/p-1eb9c053.js +0 -2
- package/dist/components/p-3d7a21b5.js +0 -2
- package/dist/components/p-42200001.js +0 -3
- package/dist/components/p-42200001.js.map +0 -1
- package/dist/components/p-46c567fd.js +0 -2
- package/dist/components/p-46c567fd.js.map +0 -1
- package/dist/components/p-68a1aaec.js +0 -2
- package/dist/components/p-68a1aaec.js.map +0 -1
- package/dist/components/p-a6b7a6c2.js +0 -2
- package/dist/components/p-b95ebe8c.js +0 -2
- package/dist/core/p-00d153bf.entry.js +0 -2
- package/dist/core/p-019e967c.entry.js +0 -2
- package/dist/core/p-04fa0ab5.entry.js +0 -2
- package/dist/core/p-22fa411d.entry.js +0 -2
- package/dist/core/p-2739fa61.entry.js +0 -2
- package/dist/core/p-30eaeeec.entry.js +0 -2
- package/dist/core/p-3d6edb09.entry.js +0 -2
- package/dist/core/p-3f6a2d20.entry.js +0 -2
- package/dist/core/p-3f6a2d20.entry.js.map +0 -1
- package/dist/core/p-41c6b262.entry.js +0 -2
- package/dist/core/p-439b66a5.entry.js +0 -2
- package/dist/core/p-4b90fbc4.entry.js +0 -2
- package/dist/core/p-4c5f6299.entry.js +0 -2
- package/dist/core/p-535316b4.entry.js +0 -2
- package/dist/core/p-5396935e.entry.js +0 -2
- package/dist/core/p-56dc370d.entry.js +0 -2
- package/dist/core/p-5b2131c1.entry.js +0 -2
- package/dist/core/p-5c9e6275.entry.js +0 -2
- package/dist/core/p-65e67731.entry.js +0 -2
- package/dist/core/p-6bb37fe2.entry.js +0 -2
- package/dist/core/p-6e457b3d.entry.js +0 -2
- package/dist/core/p-7b7e502b.entry.js +0 -2
- package/dist/core/p-8506b611.js +0 -3
- package/dist/core/p-8506b611.js.map +0 -1
- package/dist/core/p-9c2c5447.entry.js +0 -2
- package/dist/core/p-9c2c5447.entry.js.map +0 -1
- package/dist/core/p-b923a8d9.entry.js +0 -2
- package/dist/core/p-bc966c46.entry.js +0 -2
- package/dist/core/p-bdc51179.entry.js +0 -2
- package/dist/core/p-c054f955.entry.js +0 -2
- package/dist/core/p-cd2d335d.entry.js +0 -2
- package/dist/core/p-da7f1e11.entry.js +0 -2
- package/dist/core/p-e61aa53b.entry.js +0 -2
- package/dist/core/p-ea44d447.entry.js +0 -2
- package/dist/core/p-f4bcf817.entry.js +0 -2
- package/dist/core/p-f4dac942.entry.js +0 -2
- package/dist/esm/gov-flex_4.entry.js.map +0 -1
- package/dist/esm/index-c263e031.js.map +0 -1
- /package/dist/components/{p-73938936.js.map → p-03ad4e0f.js.map} +0 -0
- /package/dist/components/{p-ac359044.js.map → p-350e060c.js.map} +0 -0
- /package/dist/components/{p-7be2301a.js.map → p-384c7f2a.js.map} +0 -0
- /package/dist/components/{p-318d89bd.js.map → p-8080982e.js.map} +0 -0
- /package/dist/components/{p-a6b7a6c2.js.map → p-8ee6f2f3.js.map} +0 -0
- /package/dist/components/{p-a6be4769.js.map → p-915c4f3a.js.map} +0 -0
- /package/dist/components/{p-3d7a21b5.js.map → p-ae7a283c.js.map} +0 -0
- /package/dist/components/{p-283b66c3.js.map → p-e532e5e5.js.map} +0 -0
- /package/dist/core/{p-c916d0d2.entry.js.map → p-032accfb.entry.js.map} +0 -0
- /package/dist/core/{p-0be19b89.entry.js.map → p-063b70a2.entry.js.map} +0 -0
- /package/dist/core/{p-dea64896.entry.js.map → p-0724cb6a.entry.js.map} +0 -0
- /package/dist/core/{p-7b7e502b.entry.js.map → p-09c9eba6.entry.js.map} +0 -0
- /package/dist/core/{p-5b2131c1.entry.js.map → p-0c076b21.entry.js.map} +0 -0
- /package/dist/core/{p-97a9725d.entry.js.map → p-0f0f7302.entry.js.map} +0 -0
- /package/dist/core/{p-65e67731.entry.js.map → p-10f773c2.entry.js.map} +0 -0
- /package/dist/core/{p-cd2d335d.entry.js.map → p-14d66f26.entry.js.map} +0 -0
- /package/dist/core/{p-ed833334.entry.js.map → p-33310735.entry.js.map} +0 -0
- /package/dist/core/{p-432c3875.entry.js.map → p-3849ca02.entry.js.map} +0 -0
- /package/dist/core/{p-22fa411d.entry.js.map → p-43d3dbc0.entry.js.map} +0 -0
- /package/dist/core/{p-30eaeeec.entry.js.map → p-4c60e125.entry.js.map} +0 -0
- /package/dist/core/{p-5396935e.entry.js.map → p-4fa0320d.entry.js.map} +0 -0
- /package/dist/core/{p-6e457b3d.entry.js.map → p-50af9ae8.entry.js.map} +0 -0
- /package/dist/core/{p-ccec8019.entry.js.map → p-5c3f4cfe.entry.js.map} +0 -0
- /package/dist/core/{p-9fe35463.entry.js.map → p-77daba72.entry.js.map} +0 -0
- /package/dist/core/{p-d65cef62.entry.js.map → p-7baee44f.entry.js.map} +0 -0
- /package/dist/core/{p-7e04730a.entry.js.map → p-7dfb7e36.entry.js.map} +0 -0
- /package/dist/core/{p-b7cfe254.entry.js.map → p-927c31dd.entry.js.map} +0 -0
- /package/dist/core/{p-3cb36bae.entry.js.map → p-9846fd13.entry.js.map} +0 -0
- /package/dist/core/{p-1200a32d.entry.js.map → p-994385ca.entry.js.map} +0 -0
- /package/dist/core/{p-d836fcde.entry.js.map → p-9f8d69a9.entry.js.map} +0 -0
- /package/dist/core/{p-e834ee73.entry.js.map → p-a6a9de9a.entry.js.map} +0 -0
- /package/dist/core/{p-ea44d447.entry.js.map → p-b62e49ee.entry.js.map} +0 -0
- /package/dist/core/{p-bcb45a18.entry.js.map → p-c0800e6d.entry.js.map} +0 -0
- /package/dist/core/{p-00d153bf.entry.js.map → p-d795a421.entry.js.map} +0 -0
- /package/dist/core/{p-0fdd8929.entry.js.map → p-d9b42773.entry.js.map} +0 -0
- /package/dist/core/{p-561718cd.entry.js.map → p-e0a199ff.entry.js.map} +0 -0
- /package/dist/core/{p-535316b4.entry.js.map → p-e215f3ee.entry.js.map} +0 -0
- /package/dist/core/{p-4b90fbc4.entry.js.map → p-ed02945f.entry.js.map} +0 -0
- /package/dist/core/{p-f4bcf817.entry.js.map → p-ee55932a.entry.js.map} +0 -0
- /package/dist/core/{p-f7a4da9d.entry.js.map → p-f2bb8c29.entry.js.map} +0 -0
- /package/dist/core/{p-72130a8f.entry.js.map → p-f54edd6c.entry.js.map} +0 -0
- /package/dist/core/{p-ed8fc183.entry.js.map → p-fcac8531.entry.js.map} +0 -0
|
@@ -7,20 +7,27 @@ class TagPage extends HTMLElement {
|
|
|
7
7
|
<gov-tag color="primary" size="xs" type="bold">
|
|
8
8
|
Tag
|
|
9
9
|
</gov-tag>
|
|
10
|
-
<gov-tag color="primary" size="xs" type="bold" icon-start="
|
|
10
|
+
<gov-tag color="primary" size="xs" type="bold" icon-start="components/star-fill">
|
|
11
11
|
Tag
|
|
12
12
|
</gov-tag>
|
|
13
|
-
<gov-tag color="primary" size="xs" type="bold" icon-end="
|
|
13
|
+
<gov-tag color="primary" size="xs" type="bold" icon-end="components/star-fill">
|
|
14
14
|
Tag
|
|
15
15
|
</gov-tag>
|
|
16
|
-
<gov-tag color="primary" size="xs" type="bold" icon-start="
|
|
16
|
+
<gov-tag color="primary" size="xs" type="bold" icon-start="components/star-fill" icon-end="components/star-fill">
|
|
17
17
|
Tag
|
|
18
18
|
</gov-tag>
|
|
19
|
-
<gov-tag color="primary" size="s" type="bold" icon-start="
|
|
19
|
+
<gov-tag color="primary" size="s" type="bold" icon-start="components/star-fill">
|
|
20
20
|
Small Primary
|
|
21
21
|
</gov-tag>
|
|
22
|
-
<gov-tag color="primary" size="m" type="bold"
|
|
22
|
+
<gov-tag color="primary" size="m" type="bold">
|
|
23
|
+
<gov-icon slot="icon-start" type="components" name="star-fill"></gov-icon>
|
|
23
24
|
Normal Primary
|
|
25
|
+
<gov-icon slot="icon-end" type="components" name="star-fill"></gov-icon>
|
|
26
|
+
</gov-tag>
|
|
27
|
+
<gov-tag color="primary" size="m" type="bold" expanded>
|
|
28
|
+
<gov-icon slot="icon-start" type="components" name="star-fill"></gov-icon>
|
|
29
|
+
Expanded
|
|
30
|
+
<gov-icon slot="icon-end" type="components" name="star-fill"></gov-icon>
|
|
24
31
|
</gov-tag>
|
|
25
32
|
</div>
|
|
26
33
|
<h4>Primary - subtle</h4>
|
|
@@ -28,10 +35,10 @@ class TagPage extends HTMLElement {
|
|
|
28
35
|
<gov-tag color="primary" size="xs" type="subtle">
|
|
29
36
|
Tag
|
|
30
37
|
</gov-tag>
|
|
31
|
-
<gov-tag color="primary" size="s" type="subtle" icon-start="
|
|
38
|
+
<gov-tag color="primary" size="s" type="subtle" icon-start="components/star-fill">
|
|
32
39
|
Small Primary
|
|
33
40
|
</gov-tag>
|
|
34
|
-
<gov-tag color="primary" size="m" type="subtle" icon-start="
|
|
41
|
+
<gov-tag color="primary" size="m" type="subtle" icon-start="components/star-fill">
|
|
35
42
|
Normal Primary
|
|
36
43
|
</gov-tag>
|
|
37
44
|
</div>
|
|
@@ -42,10 +49,10 @@ class TagPage extends HTMLElement {
|
|
|
42
49
|
<gov-tag color="secondary" type="bold" size="xs">
|
|
43
50
|
Tag
|
|
44
51
|
</gov-tag>
|
|
45
|
-
<gov-tag color="secondary" type="bold" size="s" icon-start="
|
|
52
|
+
<gov-tag color="secondary" type="bold" size="s" icon-start="components/star-fill">
|
|
46
53
|
Small secondary
|
|
47
54
|
</gov-tag>
|
|
48
|
-
<gov-tag color="secondary" type="bold" size="m" icon-start="
|
|
55
|
+
<gov-tag color="secondary" type="bold" size="m" icon-start="components/star-fill">
|
|
49
56
|
Normal secondary
|
|
50
57
|
</gov-tag>
|
|
51
58
|
</div>
|
|
@@ -54,10 +61,10 @@ class TagPage extends HTMLElement {
|
|
|
54
61
|
<gov-tag color="secondary" type="subtle" size="xs">
|
|
55
62
|
Tag
|
|
56
63
|
</gov-tag>
|
|
57
|
-
<gov-tag color="secondary" type="subtle" size="s" icon-start="
|
|
64
|
+
<gov-tag color="secondary" type="subtle" size="s" icon-start="components/star-fill">
|
|
58
65
|
Small Primary
|
|
59
66
|
</gov-tag>
|
|
60
|
-
<gov-tag color="secondary" type="subtle" size="m" icon-start="
|
|
67
|
+
<gov-tag color="secondary" type="subtle" size="m" icon-start="components/star-fill">
|
|
61
68
|
Normal Primary
|
|
62
69
|
</gov-tag>
|
|
63
70
|
</div>
|
|
@@ -68,10 +75,10 @@ class TagPage extends HTMLElement {
|
|
|
68
75
|
<gov-tag color="success" type="bold" size="xs">
|
|
69
76
|
Tag
|
|
70
77
|
</gov-tag>
|
|
71
|
-
<gov-tag color="success" type="bold" size="s" icon-start="
|
|
78
|
+
<gov-tag color="success" type="bold" size="s" icon-start="components/star-fill">
|
|
72
79
|
Small success
|
|
73
80
|
</gov-tag>
|
|
74
|
-
<gov-tag color="success" type="bold" size="m" icon-start="
|
|
81
|
+
<gov-tag color="success" type="bold" size="m" icon-start="components/star-fill">
|
|
75
82
|
Normal success
|
|
76
83
|
</gov-tag>
|
|
77
84
|
</div>
|
|
@@ -80,10 +87,10 @@ class TagPage extends HTMLElement {
|
|
|
80
87
|
<gov-tag color="success" type="subtle" size="xs">
|
|
81
88
|
Tag
|
|
82
89
|
</gov-tag>
|
|
83
|
-
<gov-tag color="success" type="subtle" size="s" icon-start="
|
|
90
|
+
<gov-tag color="success" type="subtle" size="s" icon-start="components/star-fill">
|
|
84
91
|
Small Primary
|
|
85
92
|
</gov-tag>
|
|
86
|
-
<gov-tag color="success" type="subtle" size="m" icon-start="
|
|
93
|
+
<gov-tag color="success" type="subtle" size="m" icon-start="components/star-fill">
|
|
87
94
|
Normal Primary
|
|
88
95
|
</gov-tag>
|
|
89
96
|
</div>
|
|
@@ -94,10 +101,10 @@ class TagPage extends HTMLElement {
|
|
|
94
101
|
<gov-tag color="warning" type="bold" size="xs">
|
|
95
102
|
Tag
|
|
96
103
|
</gov-tag>
|
|
97
|
-
<gov-tag color="warning" type="bold" size="s" icon-start="
|
|
104
|
+
<gov-tag color="warning" type="bold" size="s" icon-start="components/star-fill">
|
|
98
105
|
Small warning
|
|
99
106
|
</gov-tag>
|
|
100
|
-
<gov-tag color="warning" type="bold" size="m" icon-start="
|
|
107
|
+
<gov-tag color="warning" type="bold" size="m" icon-start="components/star-fill">
|
|
101
108
|
Normal warning
|
|
102
109
|
</gov-tag>
|
|
103
110
|
</div>
|
|
@@ -106,10 +113,10 @@ class TagPage extends HTMLElement {
|
|
|
106
113
|
<gov-tag color="warning" type="subtle" size="xs">
|
|
107
114
|
Tag
|
|
108
115
|
</gov-tag>
|
|
109
|
-
<gov-tag color="warning" type="subtle" size="s" icon-start="
|
|
116
|
+
<gov-tag color="warning" type="subtle" size="s" icon-start="components/star-fill">
|
|
110
117
|
Small Primary
|
|
111
118
|
</gov-tag>
|
|
112
|
-
<gov-tag color="warning" type="subtle" size="m" icon-start="
|
|
119
|
+
<gov-tag color="warning" type="subtle" size="m" icon-start="components/star-fill">
|
|
113
120
|
Normal Primary
|
|
114
121
|
</gov-tag>
|
|
115
122
|
</div>
|
|
@@ -120,10 +127,10 @@ class TagPage extends HTMLElement {
|
|
|
120
127
|
<gov-tag color="error" type="bold" size="xs">
|
|
121
128
|
Tag
|
|
122
129
|
</gov-tag>
|
|
123
|
-
<gov-tag color="error" type="bold" size="s" icon-start="
|
|
130
|
+
<gov-tag color="error" type="bold" size="s" icon-start="components/star-fill">
|
|
124
131
|
Small error
|
|
125
132
|
</gov-tag>
|
|
126
|
-
<gov-tag color="error" type="bold" size="m" icon-start="
|
|
133
|
+
<gov-tag color="error" type="bold" size="m" icon-start="components/star-fill">
|
|
127
134
|
Normal error
|
|
128
135
|
</gov-tag>
|
|
129
136
|
</div>
|
|
@@ -132,10 +139,10 @@ class TagPage extends HTMLElement {
|
|
|
132
139
|
<gov-tag color="error" type="subtle" size="xs">
|
|
133
140
|
Tag
|
|
134
141
|
</gov-tag>
|
|
135
|
-
<gov-tag color="error" type="subtle" size="s" icon-start="
|
|
142
|
+
<gov-tag color="error" type="subtle" size="s" icon-start="components/star-fill">
|
|
136
143
|
Small Primary
|
|
137
144
|
</gov-tag>
|
|
138
|
-
<gov-tag color="error" type="subtle" size="m" icon-start="
|
|
145
|
+
<gov-tag color="error" type="subtle" size="m" icon-start="components/star-fill">
|
|
139
146
|
Normal Primary
|
|
140
147
|
</gov-tag>
|
|
141
148
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../../../src/pages/Tag.ts"],"names":[],"mappings":"AAAA,MAAM,OAAQ,SAAQ,WAAW;IAC7B,iBAAiB;QACb,IAAI,CAAC,SAAS,GAAG
|
|
1
|
+
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../../../src/pages/Tag.ts"],"names":[],"mappings":"AAAA,MAAM,OAAQ,SAAQ,WAAW;IAC7B,iBAAiB;QACb,IAAI,CAAC,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAkJhB,CAAA;IACL,CAAC;CACJ;AAED,IAAI,cAAc,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,SAAS,EAAE,CAAC;IAC/C,cAAc,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;AAC9C,CAAC","sourcesContent":["class TagPage extends HTMLElement {\n connectedCallback() {\n this.innerHTML = `\n <h1>Tags</h1>\n <h4>Primary - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"primary\" size=\"xs\" type=\"bold\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"xs\" type=\"bold\" icon-start=\"components/star-fill\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"xs\" type=\"bold\" icon-end=\"components/star-fill\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"xs\" type=\"bold\" icon-start=\"components/star-fill\" icon-end=\"components/star-fill\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"s\" type=\"bold\" icon-start=\"components/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"primary\" size=\"m\" type=\"bold\">\n \t<gov-icon slot=\"icon-start\" type=\"components\" name=\"star-fill\"></gov-icon>\n Normal Primary\n <gov-icon slot=\"icon-end\" type=\"components\" name=\"star-fill\"></gov-icon>\n </gov-tag>\n <gov-tag color=\"primary\" size=\"m\" type=\"bold\" expanded>\n \t<gov-icon slot=\"icon-start\" type=\"components\" name=\"star-fill\"></gov-icon>\n Expanded\n <gov-icon slot=\"icon-end\" type=\"components\" name=\"star-fill\"></gov-icon>\n </gov-tag>\n </div>\n <h4>Primary - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"primary\" size=\"xs\" type=\"subtle\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"s\" type=\"subtle\" icon-start=\"components/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"primary\" size=\"m\" type=\"subtle\" icon-start=\"components/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n <br>\n\n <h4>Secondary - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"secondary\" type=\"bold\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"secondary\" type=\"bold\" size=\"s\" icon-start=\"components/star-fill\">\n Small secondary\n </gov-tag>\n <gov-tag color=\"secondary\" type=\"bold\" size=\"m\" icon-start=\"components/star-fill\">\n Normal secondary\n </gov-tag>\n </div>\n <h4>Secondary - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"secondary\" type=\"subtle\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"secondary\" type=\"subtle\" size=\"s\" icon-start=\"components/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"secondary\" type=\"subtle\" size=\"m\" icon-start=\"components/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n <br>\n\n <h4>Success - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"success\" type=\"bold\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"success\" type=\"bold\" size=\"s\" icon-start=\"components/star-fill\">\n Small success\n </gov-tag>\n <gov-tag color=\"success\" type=\"bold\" size=\"m\" icon-start=\"components/star-fill\">\n Normal success\n </gov-tag>\n </div>\n <h4>Success - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"success\" type=\"subtle\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"success\" type=\"subtle\" size=\"s\" icon-start=\"components/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"success\" type=\"subtle\" size=\"m\" icon-start=\"components/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n <br>\n\n <h4>Warning - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"warning\" type=\"bold\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"warning\" type=\"bold\" size=\"s\" icon-start=\"components/star-fill\">\n Small warning\n </gov-tag>\n <gov-tag color=\"warning\" type=\"bold\" size=\"m\" icon-start=\"components/star-fill\">\n Normal warning\n </gov-tag>\n </div>\n <h4>Warning - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"warning\" type=\"subtle\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"warning\" type=\"subtle\" size=\"s\" icon-start=\"components/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"warning\" type=\"subtle\" size=\"m\" icon-start=\"components/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n <br>\n\n <h4>Error - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"error\" type=\"bold\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"error\" type=\"bold\" size=\"s\" icon-start=\"components/star-fill\">\n Small error\n </gov-tag>\n <gov-tag color=\"error\" type=\"bold\" size=\"m\" icon-start=\"components/star-fill\">\n Normal error\n </gov-tag>\n </div>\n <h4>Error - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"error\" type=\"subtle\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"error\" type=\"subtle\" size=\"s\" icon-start=\"components/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"error\" type=\"subtle\" size=\"m\" icon-start=\"components/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n `\n }\n}\n\nif (customElements.get('tag-page') === undefined) {\n customElements.define('tag-page', TagPage)\n}\n"]}
|
|
@@ -12,10 +12,14 @@ const iconUrl = (path, name, type) => {
|
|
|
12
12
|
};
|
|
13
13
|
export async function fetchIcon({ name, type }) {
|
|
14
14
|
const cacheKey = type + "-" + name;
|
|
15
|
+
console.log('cacheKey', cacheKey);
|
|
16
|
+
console.log('iconCache[cacheKey]', iconCache, iconCache[cacheKey]);
|
|
15
17
|
if (iconCache[cacheKey]) {
|
|
16
18
|
return iconCache[cacheKey];
|
|
17
19
|
}
|
|
20
|
+
console.log('requestCache[cacheKey]', requestCache, requestCache[cacheKey]);
|
|
18
21
|
if (!requestCache[cacheKey]) {
|
|
22
|
+
console.log('iconUrl(iconsPath(), name, type)', iconUrl(iconsPath(), name, type));
|
|
19
23
|
requestCache[cacheKey] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {
|
|
20
24
|
if (resp.status === 200) {
|
|
21
25
|
return resp.text();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.utils.js","sourceRoot":"","sources":["../../../../../src/utils/icon.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,SAAS,GAA8B,EAAE,CAAA;AAC/C,MAAM,YAAY,GAAuC,EAAE,CAAA;AAE3D,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;AACjG,MAAM,OAAO,GAAG,CAAC,IAAY,EAAE,IAAY,EAAE,IAAY,EAAE,EAAE;IAC5D,IAAI,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC;QACzB,OAAO,GAAG,IAAI,IAAI,IAAI,IAAI,IAAI,UAAU,SAAS,EAAE,EAAE,CAAA;IACtD,CAAC;IACD,OAAO,YAAY,CAAC,GAAG,IAAI,IAAI,IAAI,IAAI,IAAI,MAAM,CAAC,GAAG,MAAM,SAAS,EAAE,EAAE,CAAA;AACzE,CAAC,CAAA;AAED,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAkC;IAC7E,MAAM,QAAQ,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,CAAA;IAClC,IAAI,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzB,OAAO,SAAS,CAAC,QAAQ,CAAC,CAAA;IAC3B,CAAC;IACD,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC7B,YAAY,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YAC5E,IAAI,IAAI,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBACzB,OAAO,IAAI,CAAC,IAAI,EAAE,CAAA;YACnB,CAAC;iBAAM,CAAC;gBACP,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAA;YAC3C,CAAC;QACF,CAAC,CAAC,CAAA;IACH,CAAC;IACD,MAAM,IAAI,GAAG,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAA;IACzC,SAAS,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAA;IAC1B,OAAO,IAAI,CAAA;AACZ,CAAC","sourcesContent":["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\tconst cacheKey = type + \"-\" + name\n\tif (iconCache[cacheKey]) {\n\t\treturn iconCache[cacheKey]\n\t}\n\tif (!requestCache[cacheKey]) {\n\t\trequestCache[cacheKey] = 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[cacheKey]\n\ticonCache[cacheKey] = path\n\treturn path\n}\n"]}
|
|
1
|
+
{"version":3,"file":"icon.utils.js","sourceRoot":"","sources":["../../../../../src/utils/icon.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,SAAS,GAA8B,EAAE,CAAA;AAC/C,MAAM,YAAY,GAAuC,EAAE,CAAA;AAE3D,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;AACjG,MAAM,OAAO,GAAG,CAAC,IAAY,EAAE,IAAY,EAAE,IAAY,EAAE,EAAE;IAC5D,IAAI,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC;QACzB,OAAO,GAAG,IAAI,IAAI,IAAI,IAAI,IAAI,UAAU,SAAS,EAAE,EAAE,CAAA;IACtD,CAAC;IACD,OAAO,YAAY,CAAC,GAAG,IAAI,IAAI,IAAI,IAAI,IAAI,MAAM,CAAC,GAAG,MAAM,SAAS,EAAE,EAAE,CAAA;AACzE,CAAC,CAAA;AAED,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAkC;IAC7E,MAAM,QAAQ,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,CAAA;IAClC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAClC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,SAAS,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnE,IAAI,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzB,OAAO,SAAS,CAAC,QAAQ,CAAC,CAAA;IAC3B,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;IAE5E,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC7B,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;QAClF,YAAY,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YAC5E,IAAI,IAAI,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBACzB,OAAO,IAAI,CAAC,IAAI,EAAE,CAAA;YACnB,CAAC;iBAAM,CAAC;gBACP,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAA;YAC3C,CAAC;QACF,CAAC,CAAC,CAAA;IACH,CAAC;IACD,MAAM,IAAI,GAAG,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAA;IACzC,SAAS,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAA;IAC1B,OAAO,IAAI,CAAA;AACZ,CAAC","sourcesContent":["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\tconst cacheKey = type + \"-\" + name\n\tconsole.log('cacheKey', cacheKey);\n\tconsole.log('iconCache[cacheKey]', iconCache, iconCache[cacheKey]);\n\tif (iconCache[cacheKey]) {\n\t\treturn iconCache[cacheKey]\n\t}\n\tconsole.log('requestCache[cacheKey]', requestCache, requestCache[cacheKey]);\n\t\n\tif (!requestCache[cacheKey]) {\n\t\tconsole.log('iconUrl(iconsPath(), name, type)', iconUrl(iconsPath(), name, type));\n\t\trequestCache[cacheKey] = 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[cacheKey]\n\ticonCache[cacheKey] = path\n\treturn path\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as s,c as t,h as a,d as i}from"./p-
|
|
1
|
+
import{p as e,H as s,c as t,h as a,d as i}from"./p-115b9cf3.js";import{v as c}from"./p-0b3574c2.js";import{A as o,b as n,a as d}from"./p-d4509899.js";import{g as f,t as b,b as r}from"./p-ea7fdd2e.js";import{i as h}from"./p-33d5d1ed.js";import{t as m}from"./p-26618322.js";import{d as l}from"./p-50964838.js";const p=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.inheritedAttributes={};this.openState=undefined;this.identifier=undefined;this.size=undefined;this.disabled=false;this.open=false;this.h=f(this.host)}validateSize(e){c(d,e,n.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=h(this.host)}componentDidRender(){m((()=>this.getPropsFromParents()))}getPropsFromParents(){const e=this.h.getParent(o.root);if(e){this.size=e.getAttribute("size")}}render(){return a(i,{key:"1beb62527ea9274e6280ce0b64c9d52c12e4a993",class:this.h.classes([n.root,this.disabled&&n.disabled]),size:this.size,role:"listitem"},a("details",{key:"53ca7688e8f26e85cd76feb073a26d04c5505d2b",class:n.details,id:this.identifier,"aria-disabled":b(this.disabled),open:this.open},a("summary",Object.assign({key:"19fec49b0066b7a6162a6010e0ee20431c2a578b",onClick:e=>{e.stopPropagation();e.preventDefault();!this.disabled&&this.toggle().finally()},class:n.summary,tabIndex:this.disabled?-1:0,"aria-expanded":r(this.open)},this.inheritedAttributes),this.h.hasSlot("icon")&&a("span",{key:"19254947c22fa2b1a2fa4e26eacb22c0c89b40c9",class:n.icon},a("slot",{key:"262be1640f250fabf9918f4162c071bb68dc4fb3",name:"icon"})),a("span",{key:"ebb5ef762ef51921b68a8063fd09c979d7d0d32d",class:n.title},a("slot",{key:"75783345d2276f06e53c401761cb4e57d241e5e0",name:"label"}),a("slot",{key:"f2d9cdff693edbcae6293921fde7996d1b1251b6",name:"annotation"})),a("span",{key:"f7e28ea54455756c7d146c7b88be7001e80b07a8",class:n.right},a("slot",{key:"e76b31bf1c349a8a86d4b91ec1cfa650a75edf60",name:"suffix"}),a("span",{key:"87ea99c9862deb3ff9820fa383cec52956b4655a",class:n.arrow},a("slot",{key:"c8b64a90455a731f359e12550664ba5aa905abbc",name:"toggle-icon"},a("gov-icon",{key:"867406c5634d6446683529f5f647492b9b289a31",name:"chevron-down",type:"components"}))))),a("div",{key:"2adf7441dd470ae1b32a08fb374cd1d9e2d1f789",class:n.content},a("slot",{key:"8eb27d0b33689933b6e71850324c35c89d71c4c0"}))))}async toggle(){this.open=!this.open;this.govChange.emit({open:this.open,component:n.root,ref:this.host})}async currentState(){return this.open}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-accordion-item",{identifier:[1],size:[1025],disabled:[4],open:[1028],openState:[32],toggle:[64],currentState:[64]},undefined,{size:["validateSize"]}]);function u(){if(typeof customElements==="undefined"){return}const e=["gov-accordion-item","gov-icon"];e.forEach((e=>{switch(e){case"gov-accordion-item":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-icon":if(!customElements.get(e)){l()}break}}))}u();const y=p;const g=u;export{y as GovAccordionItem,g as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-accordion-item.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as s,c as t,h as o,d as i}from"./p-
|
|
1
|
+
import{p as e,H as s,c as t,h as o,d as i}from"./p-115b9cf3.js";import{v as a}from"./p-0b3574c2.js";import{A as c,a as n,b as r}from"./p-d4509899.js";import{g as d}from"./p-ea7fdd2e.js";const h=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.hydrated=false;this.size="m";this.noBorder=false;this.h=d(this.host)}validateSize(e){a(n,e,c.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(r.root).forEach((e=>{e.addEventListener("gov-change",(e=>{e.stopPropagation();this.govChange.emit({component:c.root,open:e.detail.open,ref:e.detail.ref})}))}))}connectedCallback(){this.hydrated=true}render(){return o(i,{key:"98666441f80fcb633f05142c4a695e2478af5383",hydrated:this.hydrated,class:this.h.classes(c.root),size:this.size,role:"list"},o("slot",{key:"db7aa61e809f901019dcb301aa529cdc9bc7530e"}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-accordion",{size:[1],noBorder:[4,"no-border"]},undefined,{size:["validateSize"]}]);function f(){if(typeof customElements==="undefined"){return}const e=["gov-accordion"];e.forEach((e=>{switch(e){case"gov-accordion":if(!customElements.get(e)){customElements.define(e,h)}break}}))}f();const m=h;const l=f;export{m as GovAccordion,l as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-accordion.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-34c6a704.js";const t=o;const a=s;export{t as GovAttachmentsItem,a as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-attachments-item.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-03ad4e0f.js";const t=o;const a=s;export{t as GovAttachments,a as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-attachments.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-384c7f2a.js";const t=o;const a=s;export{t as GovBackdrop,a as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-backdrop.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as s,c as t,h as i,d as a}from"./p-
|
|
1
|
+
import{p as e,H as s,c as t,h as i,d as a}from"./p-115b9cf3.js";import{a as o}from"./p-80dad64b.js";import{c}from"./p-e8ec030e.js";import{g as n}from"./p-ea7fdd2e.js";import{t as l}from"./p-26618322.js";import{d as r}from"./p-8080982e.js";import{d}from"./p-50964838.js";const h={root:"gov-breadcrumbs"};const b=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.inited=false;this.collapsible=false;this.isExpanded=false;this.accessibleLabel=undefined;this.accessibleLabelledBy=undefined;this.accessibleToggleLabel="Zobrazit či skrýt navigaci";this.expanded=false;this.toggleOption=false;this.h=n(this.host)}async componentDidRender(){this.scheduleContentVerification();if(c()){l((()=>this.validateAccessibility()))}}scheduleContentVerification(){if(this.inited)return;this.inited=true;l((()=>{this.calculateWidthOfItems();this.inited=false}))}calculateWidthOfItems(){const e=this.host.getBoundingClientRect().width;let s=0;this.host.querySelectorAll("li").forEach((e=>{s+=e.getBoundingClientRect().width}));this.toggleOption=s>e}render(){return i(a,{key:"81d7a8e273e1ce4740ee35ebe4a570ee8c5e73a4",class:this.h.classes(h.root),expanded:this.expanded},i("nav",{key:"dc37fa314f5d84c6c517f64229ef601b256f3ad5","aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy},i("slot",{key:"4ead548352e642c0994360d74a98123782790a04"})),this.toggleOption?i("gov-button",{size:"xs",color:"primary",type:"base","aria-label":this.accessibleToggleLabel,"aria-pressed":this.expanded,"aria-expanded":this.expanded,"on-gov-click":()=>this.expanded=!this.expanded},i("gov-icon",{name:this.expanded?"chevron-up":"chevron-down",type:"components"})):null)}async validateAccessibility(){o(this.accessibleLabel,this.accessibleLabelledBy,h.root,this.host);o(this.accessibleToggleLabel,undefined,h.root,this.host)}get host(){return this}},[4,"gov-breadcrumbs",{collapsible:[4],isExpanded:[4,"is-expanded"],accessibleLabel:[1,"accessible-label"],accessibleLabelledBy:[1,"accessible-labelledby"],accessibleToggleLabel:[1,"accessible-toggle-label"],expanded:[32],toggleOption:[32],validateAccessibility:[64]}]);function f(){if(typeof customElements==="undefined"){return}const e=["gov-breadcrumbs","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-breadcrumbs":if(!customElements.get(e)){customElements.define(e,b)}break;case"gov-button":if(!customElements.get(e)){r()}break;case"gov-icon":if(!customElements.get(e)){d()}break}}))}f();const m=b;const p=f;export{m as GovBreadcrumbs,p as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-breadcrumbs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-8080982e.js";const t=o;const p=s;export{t as GovButton,p as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-button.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as
|
|
1
|
+
import{p as e,H as i,c as s,h as t,d as a}from"./p-115b9cf3.js";import{g as c,b as o}from"./p-ea7fdd2e.js";import{c as d}from"./p-cd6c2938.js";import{a as n}from"./p-80dad64b.js";import{c as r}from"./p-e8ec030e.js";import{d as f}from"./p-e0e2e9c1.js";import{d as l}from"./p-50964838.js";var h;(function(e){e["HORIZONTAL"]="horizontal";e["VERTICAL"]="vertical"})(h||(h={}));const b={root:"gov-card",header:"gov-card__header",arrow:"gov-card__arrow",inner:"gov-card__inner",img:"gov-card__img",icon:"gov-card__icon",content:"gov-card__content",footer:"gov-card__footer"};const m=e(class e extends i{constructor(){super();this.__registerHost();this.govToggle=s(this,"gov-toggle",7);this.hydrated=false;this.direction="vertical";this.collapsible=false;this.open=true;this.accessibleTriggerLabel=undefined;this.accessibleTriggerLabelledBy=undefined;this.h=c(this.host);this.headlineId=d("GovCardHeadline");this.contentId=d("GovCardContent")}async componentDidRender(){if(r()){await f(500);await this.validateAccessibility()}}connectedCallback(){this.hydrated=true}render(){return t(a,{key:"16ef4ffbb0a84bb231008f4f52a4ffe1f2f809d8",class:this.h.classes(b.root),open:this.open,collapsible:o(this.collapsible),direction:this.direction,hydrated:this.hydrated},this.collapsible?t("button",{id:this.headlineId,class:b.header,"aria-label":this.accessibleTriggerLabel,"aria-labelledby":this.accessibleTriggerLabelledBy,"aria-expanded":o(this.open),"aria-controls":this.contentId,onClick:this.onClickHandler.bind(this)},t("slot",{name:"headline"}),t("gov-icon",{class:b.arrow,name:"chevron-down",type:"components"})):this.h.hasSlot("headline")?t("div",{class:b.header},t("slot",{name:"headline"})):null,t("div",{key:"749f6e4b624f4cdda53d2e3433b451d56c742667",class:b.inner,id:this.contentId,"aria-hidden":this.collapsible?o(!this.open):undefined,hidden:this.collapsible?!this.open:undefined,"aria-labelledby":this.collapsible?this.headlineId:undefined},this.h.hasSlot("img")&&t("div",{key:"f4b953ddf9b4f59bc111b512bb3de3510b28af7f",class:b.img},t("slot",{key:"2867a29e49e67aff041ac0705527c5f76f4a019e",name:"img"})),this.h.hasSlot("icon")&&t("div",{key:"8c8e55d3faff7cfbd6abe698cd8801f7fc41dbad",class:b.icon},t("slot",{key:"4d9eaeb0b3af65e4bf5de75090f9346942069e86",name:"icon"})),t("div",{key:"77a9a065fb2803b5f39f1b5716d9810c04b6971b",class:b.content},t("slot",{key:"acec7d3d4b6ac5533e5df218fe38e26147c440d8"})),this.h.hasSlot("footer")&&t("div",{key:"1e63a0811f487e18cbbef8b045651c0e5b745f37",class:b.footer},t("slot",{key:"4bffc12bffb3e29527aad38b6edbe8c00527a843",name:"footer"}))))}onClickHandler(e){e.stopPropagation();if(this.collapsible){this.open=!this.open;this.govToggle.emit({open:this.open,element:this.host})}}async validateAccessibility(){if(this.collapsible){n(this.accessibleTriggerLabel,this.accessibleTriggerLabelledBy,b.root,this.host)}}get host(){return this}},[4,"gov-card",{direction:[1],collapsible:[4],open:[1540],accessibleTriggerLabel:[1,"accessible-label"],accessibleTriggerLabelledBy:[1,"accessible-labelledby"],validateAccessibility:[64]}]);function v(){if(typeof customElements==="undefined"){return}const e=["gov-card","gov-icon"];e.forEach((e=>{switch(e){case"gov-card":if(!customElements.get(e)){customElements.define(e,m)}break;case"gov-icon":if(!customElements.get(e)){l()}break}}))}v();const g=m;const p=v;export{g as GovCard,p as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CardClass","root","header","
|
|
1
|
+
{"version":3,"names":["CardDirection","CardClass","root","header","arrow","inner","img","icon","content","footer","GovCard","proxyCustomElement","H","constructor","this","hydrated","h","govHost","host","headlineId","createID","contentId","componentDidRender","canValidateWcagOnRender","delay","validateAccessibility","connectedCallback","render","Host","key","class","classes","open","collapsible","booleanString","direction","id","accessibleTriggerLabel","accessibleTriggerLabelledBy","onClick","onClickHandler","bind","name","type","hasSlot","undefined","hidden","e","stopPropagation","govToggle","emit","element","validateAccessibleLabel"],"sources":["../../../packages/core/src/components/gov-card/constants.ts","../../../packages/core/src/components/gov-card/gov-card.tsx"],"sourcesContent":["import {ValueOf} from \"../../types/interfaces\";\n\nexport enum CardDirection {\n\tHORIZONTAL = 'horizontal',\n\tVERTICAL = 'vertical',\n}\nexport type CardDirectionType = `${ValueOf<typeof CardDirection>}`\n\nexport const CardClass = {\n\troot: 'gov-card',\n\theader: 'gov-card__header',\n\tarrow: 'gov-card__arrow',\n\tinner: 'gov-card__inner',\n\timg: 'gov-card__img',\n\ticon: 'gov-card__icon',\n\tcontent: 'gov-card__content',\n\tfooter: 'gov-card__footer',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {CardClass, CardDirectionType} from './constants'\nimport {booleanString, govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {createID} from '../../utils/string.utils'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {GovCardChangeEvent} from './interfaces'\n\n@Component({\n\ttag: 'gov-card',\n})\nexport class GovCard {\n\tprivate h: GovHost\n\tprivate readonly headlineId: string\n\tprivate readonly contentId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.headlineId = createID('GovCardHeadline')\n\t\tthis.contentId = createID('GovCardContent')\n\t}\n\n\t@Element() host: HTMLGovCardElement\n\n\t/**\n\t * Card direction\n\t */\n\t@Prop() readonly direction: CardDirectionType = \"vertical\"\n\t/**\n\t * Defines weather the card can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the card is open or closed\n\t */\n\t@Prop({reflect: true, mutable: true}) open = true\n\t/**\n\t * Adds accessible label for the collapsible button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) accessibleTriggerLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for collapsible card\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) accessibleTriggerLabelledBy: string\n\t/**\n\t * Called when the card toggle state changes\n\t */\n\t@Event({eventName: 'gov-toggle'}) govToggle: EventEmitter<GovCardChangeEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(CardClass.root)} open={this.open}\n\t\t\t\t collapsible={booleanString(this.collapsible)} direction={this.direction} hydrated={this.hydrated}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<button\n\t\t\t\t\t\tid={this.headlineId}\n\t\t\t\t\t\tclass={CardClass.header}\n\t\t\t\t\t\taria-label={this.accessibleTriggerLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleTriggerLabelledBy}\n\t\t\t\t\t\taria-expanded={booleanString(this.open)}\n\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t<gov-icon class={CardClass.arrow} name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t\t</button>\n\t\t\t\t) : this.h.hasSlot(\"headline\") ? (\n\t\t\t\t\t<div class={CardClass.header}>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t<div\n\t\t\t\t\tclass={CardClass.inner}\n\t\t\t\t\tid={this.contentId}\n\t\t\t\t\taria-hidden={this.collapsible ? booleanString(!this.open) : undefined}\n\t\t\t\t\thidden={this.collapsible ? !this.open : undefined}\n\t\t\t\t\taria-labelledby={this.collapsible ? this.headlineId : undefined}\n\t\t\t\t>\n\t\t\t\t\t{this.h.hasSlot('img') && (\n\t\t\t\t\t\t<div class={CardClass.img}>\n\t\t\t\t\t\t\t<slot name=\"img\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t<div class={CardClass.icon}>\n\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div class={CardClass.content}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{this.h.hasSlot('footer') && (\n\t\t\t\t\t\t<div class={CardClass.footer}>\n\t\t\t\t\t\t\t<slot name=\"footer\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e) {\n\t\te.stopPropagation()\n\t\tif (this.collapsible) {\n\t\t\tthis.open = !this.open\n\t\t\tthis.govToggle.emit({open: this.open, element: this.host})\n\t\t}\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tvalidateAccessibleLabel(this.accessibleTriggerLabel, this.accessibleTriggerLabelledBy, CardClass.root, this.host)\n\t\t}\n\t}\n}\n"],"mappings":"+RAEA,IAAYA,GAAZ,SAAYA,GACXA,EAAA,2BACAA,EAAA,sBACA,EAHD,CAAYA,MAAa,KAMlB,MAAMC,EAAY,CACxBC,KAAM,WACNC,OAAQ,mBACRC,MAAO,kBACPC,MAAO,kBACPC,IAAK,gBACLC,KAAM,iBACNC,QAAS,oBACTC,OAAQ,oB,MCHIC,EAAOC,EAAA,MAAAD,UAAAE,EAMnB,WAAAC,G,oEAFQC,KAAAC,SAAW,M,eAa6B,W,iBAIR,M,UAIK,K,iFAlB5CD,KAAKE,EAAIC,EAAQH,KAAKI,MACtBJ,KAAKK,WAAaC,EAAS,mBAC3BN,KAAKO,UAAYD,EAAS,iB,CA8B3B,wBAAME,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNV,KAAKW,uB,EAIb,iBAAAC,GACCZ,KAAKC,SAAW,I,CAGjB,MAAAY,GACC,OACCX,EAACY,EAAI,CAAAC,IAAA,2CAACC,MAAOhB,KAAKE,EAAEe,QAAQ9B,EAAUC,MAAO8B,KAAMlB,KAAKkB,KACrDC,YAAaC,EAAcpB,KAAKmB,aAAcE,UAAWrB,KAAKqB,UAAWpB,SAAUD,KAAKC,UACzFD,KAAKmB,YACLjB,EAAA,UACCoB,GAAItB,KAAKK,WACTW,MAAO7B,EAAUE,OAAM,aACXW,KAAKuB,uBAAsB,kBACtBvB,KAAKwB,4BAA2B,gBAClCJ,EAAcpB,KAAKkB,MAAK,gBACxBlB,KAAKO,UACpBkB,QAASzB,KAAK0B,eAAeC,KAAK3B,OAElCE,EAAA,QAAM0B,KAAK,aACX1B,EAAA,YAAUc,MAAO7B,EAAUG,MAAOsC,KAAK,eAAeC,KAAK,gBAEzD7B,KAAKE,EAAE4B,QAAQ,YAClB5B,EAAA,OAAKc,MAAO7B,EAAUE,QACrBa,EAAA,QAAM0B,KAAK,cAET,KAEJ1B,EAAA,OAAAa,IAAA,2CACCC,MAAO7B,EAAUI,MACjB+B,GAAItB,KAAKO,UAAS,cACLP,KAAKmB,YAAcC,GAAepB,KAAKkB,MAAQa,UAC5DC,OAAQhC,KAAKmB,aAAenB,KAAKkB,KAAOa,UAAS,kBAChC/B,KAAKmB,YAAcnB,KAAKK,WAAa0B,WAErD/B,KAAKE,EAAE4B,QAAQ,QACf5B,EAAA,OAAAa,IAAA,2CAAKC,MAAO7B,EAAUK,KACrBU,EAAA,QAAAa,IAAA,2CAAMa,KAAK,SAIZ5B,KAAKE,EAAE4B,QAAQ,SACf5B,EAAA,OAAAa,IAAA,2CAAKC,MAAO7B,EAAUM,MACrBS,EAAA,QAAAa,IAAA,2CAAMa,KAAK,UAIb1B,EAAA,OAAAa,IAAA,2CAAKC,MAAO7B,EAAUO,SACrBQ,EAAA,QAAAa,IAAA,8CAGAf,KAAKE,EAAE4B,QAAQ,WACf5B,EAAA,OAAAa,IAAA,2CAAKC,MAAO7B,EAAUQ,QACrBO,EAAA,QAAAa,IAAA,2CAAMa,KAAK,a,CAQT,cAAAF,CAAeO,GACtBA,EAAEC,kBACF,GAAIlC,KAAKmB,YAAa,CACrBnB,KAAKkB,MAAQlB,KAAKkB,KAClBlB,KAAKmC,UAAUC,KAAK,CAAClB,KAAMlB,KAAKkB,KAAMmB,QAASrC,KAAKI,M,EAQtD,2BAAMO,GACL,GAAIX,KAAKmB,YAAa,CACrBmB,EAAwBtC,KAAKuB,uBAAwBvB,KAAKwB,4BAA6BrC,EAAUC,KAAMY,KAAKI,K","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-ae7a283c.js";const a=o;const t=s;export{a as GovChip,t as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-chip.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as e,h as s,d as o}from"./p-
|
|
1
|
+
import{p as t,H as e,h as s,d as o}from"./p-115b9cf3.js";import{g as n}from"./p-ea7fdd2e.js";const c={root:"gov-container"};const r=t(class t extends e{constructor(){super();this.__registerHost();this.h=n(this.host)}render(){return s(o,{key:"0844c86e0eacd5f89bcfcad2b60e56da0097b506",class:this.h.classes(c.root)},s("slot",{key:"5cd801a016968be5968a3598d3efa3b222953120"}))}get host(){return this}},[4,"gov-container"]);function a(){if(typeof customElements==="undefined"){return}const t=["gov-container"];t.forEach((t=>{switch(t){case"gov-container":if(!customElements.get(t)){customElements.define(t,r)}break}}))}a();const i=r;const d=a;export{i as GovContainer,d as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-container.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,H as t,h as e,d as r}from"./p-
|
|
1
|
+
import{p as o,H as t,h as e,d as r}from"./p-115b9cf3.js";import{C as s}from"./p-5aad3497.js";import{g as c}from"./p-ea7fdd2e.js";import{v as a}from"./p-0b3574c2.js";import{p as n}from"./p-e0e2e9c1.js";n(s,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);const i={root:"gov-control-group"};const d=o(class o extends t{constructor(){super();this.__registerHost();this.color=s.PRIMARY;this.noBorder=false;this.fitContent=false;this.h=c(this.host)}validateColor(o){a(s,o,i.root)}render(){return e(r,{key:"bee513bb064b3a276eaede7f93ed12b97edb7adb",class:this.h.classes(i.root),color:this.color},e("slot",{key:"adba55ccd38d432ae11fa4967996d8bcaf552427"}))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-control-group",{color:[1],noBorder:[4,"no-border"],fitContent:[4,"fit-content"]},undefined,{color:["validateColor"]}]);function l(){if(typeof customElements==="undefined"){return}const o=["gov-control-group"];o.forEach((o=>{switch(o){case"gov-control-group":if(!customElements.get(o)){customElements.define(o,d)}break}}))}l();const f=d;const p=l;export{f as GovControlGroup,p as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-control-group.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as
|
|
1
|
+
import{p as e,H as a,h as c,d as o}from"./p-115b9cf3.js";import{g as s}from"./p-ea7fdd2e.js";const t={root:"gov-cookiebar",content:"gov-cookiebar__content",actions:"gov-cookiebar__actions",actionsPrimary:"gov-cookiebar__actions--primary",actionsSecondary:"gov-cookiebar__actions--secondary"};const i=e(class e extends a{constructor(){super();this.__registerHost();this.h=s(this.host)}render(){return c(o,{key:"311f0da16d86ab548e90e8f7be69d23d88a71ae4",class:this.h.classes(t.root)},c("div",{key:"f371e0bfa5ad8b2195aec2fd0c02f86fb81d58ff",class:t.content},c("slot",{key:"96433ca7228d4bf61bfc6dc041bc519c83f56109",name:"headline"}),c("slot",{key:"4fa8e397eba029f55329d0ca6d24044ae7c9a513"})),(this.h.hasSlot("actions-primary")||this.h.hasSlot("actions-secondary"))&&c("div",{key:"a1d5e5d03d8d89bceb65f45f75d7dc3d446d1b62",class:t.actions},this.h.hasSlot("actions-primary")&&c("div",{key:"4ee2b3b82b91bdfb3d87a7bc34e9b0d4e2fc4f33",class:t.actionsPrimary},c("slot",{key:"7c0cbf9c5f334cffa4a4eb3f2af9a05bfc8af208",name:"actions-primary"})),this.h.hasSlot("actions-secondary")&&c("div",{key:"e40a9f403e994584f53df9e0d84e27aa08c849e2",class:t.actionsSecondary},c("slot",{key:"5a2bc741413334a0f08bf2d17b94d1c51b5c3f69",name:"actions-secondary"}))))}get host(){return this}},[4,"gov-cookiebar"]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-cookiebar"];e.forEach((e=>{switch(e){case"gov-cookiebar":if(!customElements.get(e)){customElements.define(e,i)}break}}))}d();const n=i;const f=d;export{n as GovCookiebar,f as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-cookiebar.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as s,c as
|
|
1
|
+
import{p as e,H as s,c as a,h as i,d as t}from"./p-115b9cf3.js";import{g as o,a as c,c as l}from"./p-ea7fdd2e.js";import{c as d}from"./p-e8ec030e.js";import{b}from"./p-80dad64b.js";import{c as n}from"./p-cd6c2938.js";import{t as h}from"./p-26618322.js";import{d as r}from"./p-384c7f2a.js";import{d as f}from"./p-8080982e.js";import{d as g}from"./p-50964838.js";const m={root:"gov-dialog",dialog:"gov-dialog__dialog",inner:"gov-dialog__inner",header:"gov-dialog__header",title:"gov-dialog__title",content:"gov-dialog__content",close:"gov-dialog__close",footer:"gov-dialog__footer",bodyFix:"body-fixed"};const p=e(class e extends s{constructor(){super();this.__registerHost();this.govClose=a(this,"gov-close",7);this.hydrated=false;this.open=false;this.blockClose=false;this.blockBackdropClose=false;this.role="dialog";this.labelTag="h2";this.accessibleLabelledBy=undefined;this.accessibleDescribedBy=undefined;this.accessibleCloseLabel="Zavřít okno";this.accessibleCloseLabelledBy=undefined;this.h=o(this.host);this.labelId=n("GovDialogLabel");this.contentId=n("GovDialogContent")}watchOpen(e){this.open=e;this.setFocus().finally()}showDialog(){this.open=true;document.body.classList.add(m.bodyFix)}hideDialog(){this.open=false;document.body.classList.remove(m.bodyFix)}async componentDidRender(){if(d()){h((()=>this.validateAccessibility()))}if(this.open){this.showDialog()}else{this.hideDialog()}}connectedCallback(){this.hydrated=true}disconnectedCallback(){document.body.classList.remove(m.bodyFix)}render(){return i(t,{key:"c3b65521da7837b81972262ecf614d3c12f14bb3",class:this.h.classes(m.root),open:this.open,hydrated:this.hydrated},i("dialog",{key:"98b6d6db6fc9bd35760c03586548cc8a2470752a",class:m.dialog,hidden:!this.open,tabindex:c(this.open),open:this.open,"aria-modal":"true","aria-hidden":l(!this.open),"aria-labelledby":this.accessibleLabelledBy||this.labelId,"aria-describedby":this.accessibleDescribedBy||this.contentId,role:this.role},i("div",{key:"a8517c656ef3d3e3cf17bc9914e268a20b0e0e4b",class:m.inner},i("div",{key:"3ba16e3bafe7936f0c0a999d45d5efdd64291ec3",class:m.header},i("slot",{key:"736a0a11d601e9f522e69369ffa0f276c9673803",name:"icon"}),this.h.hasSlot("title")&&i("span",{key:"5505a53174c82c1faf73ed500c5672f2dc8ea83b",class:m.title,id:this.labelId},i("slot",{key:"391dd6236c23c14e62c8c97a94c5733409939c32",name:"title"})),i("gov-button",{key:"867505a691e69da09808350fc7eefb51974005ba",ref:e=>this.closeCtaRef=e,disabled:this.blockClose,class:m.close,color:"primary","aria-label":this.accessibleCloseLabel,"aria-labelledby":this.accessibleCloseLabelledBy,type:"base","on-gov-click":this.onCloseHandler.bind(this)},i("gov-icon",{key:"6fe742ccf5aca7f27cac627373a338d46bbccfda",slot:"icon-start",name:"x-lg",type:"components"}))),i("div",{key:"9d9d6a45d79215ba5415512405ce7577d6a1dc26",class:m.content,id:this.contentId},i("slot",{key:"f9b32ee565586b3741c166a0aa14ca1d1c55f032"})),this.h.hasSlot("footer")&&i("div",{key:"8628b46f0196f38f7d2f273f0860a7c6cee62655",class:m.footer},i("slot",{key:"0742967012eab82c36f9dfe0f3b43213be8bcd47",name:"footer"})))),this.open?i("gov-backdrop",{disabled:this.blockBackdropClose,"aria-label":this.accessibleCloseLabel,"aria-labelled-by":this.accessibleCloseLabelledBy,"on-gov-click":this.onCloseHandler.bind(this)}):null)}onCloseHandler(e){e.stopPropagation();e.preventDefault();if(this.blockClose===false){this.hideDialog();this.govClose.emit(e)}}async setFocus(){if(this.open&&this.closeCtaRef){this.closeCtaRef.setFocus().catch()}}async validateAccessibility(){b(this.accessibleLabelledBy,"accessible-labelled-by",m.root);b(this.accessibleDescribedBy,"accessible-described-by",m.root)}get host(){return this}static get watchers(){return{open:["watchOpen"]}}},[4,"gov-dialog",{open:[1540],blockClose:[4,"block-close"],blockBackdropClose:[4,"block-backdrop-close"],role:[1],labelTag:[1,"label-tag"],accessibleLabelledBy:[1,"accessible-labelled-by"],accessibleDescribedBy:[1,"accessible-described-by"],accessibleCloseLabel:[1,"accessible-close-label"],accessibleCloseLabelledBy:[1,"accessible-close-labelled-by"],setFocus:[64],validateAccessibility:[64]},undefined,{open:["watchOpen"]}]);function y(){if(typeof customElements==="undefined"){return}const e=["gov-dialog","gov-backdrop","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-dialog":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-backdrop":if(!customElements.get(e)){r()}break;case"gov-button":if(!customElements.get(e)){f()}break;case"gov-icon":if(!customElements.get(e)){g()}break}}))}y();const v=p;const k=y;export{v as GovDialog,k as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-dialog.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,H as e,c as i,h as s,d as o}from"./p-
|
|
1
|
+
import{p as t,H as e,c as i,h as s,d as o}from"./p-115b9cf3.js";import"./p-bfce6f99.js";import{g as n,c as r}from"./p-ea7fdd2e.js";import{c}from"./p-cd6c2938.js";import{B as a}from"./p-44a8a668.js";const h={triggerEvents:"click",exclude:""};function d(t,e,i,s=h){const o=u(s);l(s).forEach((s=>{window.addEventListener(s,(s=>{f(s,t,e,i,o)}),false)}))}function f(t,e,i,s,o){const n=t.target;if(!i.contains(n)&&!p(n,o)){s.call(e)}}function l(t){if(t.triggerEvents){return t.triggerEvents.split(",").map((t=>t.trim()))}return["click"]}function u(t){if(t.exclude){try{return Array.from(document.querySelectorAll(t.exclude))}catch(e){console.warn(`@ClickOutside: Exclude: '${t.exclude}' will not be evaluated. Check your exclude selector syntax.`,e)}}return}function p(t,e){if(t&&e){for(let i of e){if(i.contains(t)){return true}}}return false}var g;(function(t){t["LEFT"]="left";t["RIGHT"]="right"})(g||(g={}));const m={root:"gov-dropdown",list:"gov-dropdown__list"};const v=t(class t extends e{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change",7);this.identifier=undefined;this.open=false;this.position=g.LEFT;this.h=n(this.host);this.listId=c("GovDropdownList");this.controlId=c("GovDropdownControl")}watchOpen(){var t;(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-expanded",r(this.open))}get trigger(){return this.host.querySelector(`* > ${a.root}`)}get list(){return this.h.getSlot("list")}componentWillLoad(){var t;if(!this.trigger)return;this.trigger.setAttribute("aria-controls",this.listId);this.trigger.setAttribute("aria-haspopup",r(!!this.list));this.trigger.setAttribute("aria-expanded",r(this.open));this.trigger.setAttribute("identifier",(t=this.identifier)!==null&&t!==void 0?t:this.controlId);this.trigger.addEventListener("gov-click",(t=>{t.preventDefault();t.stopPropagation();this.open=!this.open;this.govChange.emit({component:m.root,originalEvent:t,open:this.open})}))}render(){return s(o,{key:"43c2a03dcb27ebe54f8dd00ca1120b848cac957c",class:this.h.classes([m.root]),open:this.open,position:this.position},s("slot",{key:"732c956fe37283578a95c843cf94ad590cd16402"}),s("div",{key:"c3934a0f7c8303950a5c7898574fcea2e14e1890",ref:t=>d(this,t,(()=>this.open=false)),class:m.list,id:this.listId,"aria-labelledby":this.controlId,"aria-hidden":r(!this.open),hidden:!this.open},s("slot",{key:"cb685039c57f9d32ae7c238fcb7457fe72b4c9c4",name:"list"})))}async getState(){return this.open}async toggle(){this.open=!this.open}get host(){return this}static get watchers(){return{open:["watchOpen"]}}},[4,"gov-dropdown",{identifier:[1],open:[1028],position:[1],getState:[64],toggle:[64]},undefined,{open:["watchOpen"]}]);function w(){if(typeof customElements==="undefined"){return}const t=["gov-dropdown"];t.forEach((t=>{switch(t){case"gov-dropdown":if(!customElements.get(t)){customElements.define(t,v)}break}}))}w();const b=v;const y=w;export{b as GovDropdown,y as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-dropdown.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as t,h as s,d as a}from"./p-
|
|
1
|
+
import{p as e,H as t,h as s,d as a}from"./p-115b9cf3.js";import{p as o}from"./p-e0e2e9c1.js";import{S as c}from"./p-92f420cb.js";import{g as i}from"./p-ea7fdd2e.js";import{v as n}from"./p-0b3574c2.js";import{A as f,a as r}from"./p-d4509899.js";o(c,["_S","_M","_L"]);const d={root:"gov-empty",content:"gov-empty__content"};const m=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.h=i(this.host)}validateSize(e){n(r,e,f.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(a,{key:"3346bc91e4af67ca885ec89364d3caed0553f87c",class:this.h.classes(d.root),size:this.size},this.h.hasSlot("icon")&&s("slot",{key:"6ae5bf19e792bc94fedaa9fe3a56cafa103356f4",name:"icon"}),s("div",{key:"3cb5595ef6de22c590844902d5fe59a2066b0bf7",class:d.content},s("slot",{key:"dedf42aac4d7a4304a0eeeae7e5a7e1be8e4aac5",name:"headline"}),s("slot",{key:"0d061d5b70d90c3bf6446ff78618e6506446bde2"})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-empty",{size:[1]},undefined,{size:["validateSize"]}]);function p(){if(typeof customElements==="undefined"){return}const e=["gov-empty"];e.forEach((e=>{switch(e){case"gov-empty":if(!customElements.get(e)){customElements.define(e,m)}break}}))}p();const l=m;const b=p;export{l as GovEmpty,b as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-empty.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as o,h as t,d as c}from"./p-
|
|
1
|
+
import{p as e,H as o,h as t,d as c}from"./p-115b9cf3.js";import{g as s}from"./p-ea7fdd2e.js";const r={root:"gov-error-code",content:"gov-error-code__content"};const n=e(class e extends o{constructor(){super();this.__registerHost();this.h=s(this.host)}render(){return t(c,{key:"c47e051194598ee060955a36959d11340b66dadc",class:this.h.classes(r.root),align:"center"},this.h.hasSlot("icon")&&t("slot",{key:"510cdd27231b580403e76154d263af37877bd7b3",name:"icon"}),t("div",{key:"1b65726c29093652b1f2b6470669cedb5b951c7b",class:r.content},t("slot",{key:"d5fb45bfdfd4cc096e9f4ed213f0b50baaf225e6",name:"headline"}),t("slot",{key:"1950c6c8b034319c3d499b3470b4a2e0e1c7855a"})))}get host(){return this}},[4,"gov-error-code"]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-error-code"];e.forEach((e=>{switch(e){case"gov-error-code":if(!customElements.get(e)){customElements.define(e,n)}break}}))}d();const a=n;const b=d;export{a as GovErrorCode,b as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-error-code.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as t,h as n,d as s}from"./p-
|
|
1
|
+
import{p as e,H as t,h as n,d as s}from"./p-115b9cf3.js";import"./p-92f420cb.js";import{g as i}from"./p-ea7fdd2e.js";const o={root:"gov-flex"};const f=e(class e extends t{constructor(){super();this.__registerHost();this.direction="row";this.justifyContent=undefined;this.alignItems=undefined;this.wrap=undefined;this.alignContent=undefined;this.alignSelf=undefined;this.gap=undefined;this.h=i(this.host)}render(){return n(s,{key:"08c1591134f0b5c95a18ac9e1d3723c12d9bc47b",class:this.h.classes(o.root)},n("slot",{key:"b66fb8ffa35b0fb98eed3440a55a92a1bd97eb76"}))}get host(){return this}},[4,"gov-flex",{direction:[1],justifyContent:[513,"justify-content"],alignItems:[513,"align-items"],wrap:[513],alignContent:[513,"align-content"],alignSelf:[513,"align-self"],gap:[513]}]);function c(){if(typeof customElements==="undefined"){return}const e=["gov-flex"];e.forEach((e=>{switch(e){case"gov-flex":if(!customElements.get(e)){customElements.define(e,f)}break}}))}c();const d=f;const a=c;export{d as GovFlex,a as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-flex.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FlexClass","root","GovFlex","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes"],"sources":["../../../packages/core/src/components/gov-flex/constants.ts","../../../packages/core/src/components/gov-flex/gov-flex.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["FlexClass","root","GovFlex","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes"],"sources":["../../../packages/core/src/components/gov-flex/constants.ts","../../../packages/core/src/components/gov-flex/gov-flex.tsx"],"sourcesContent":["import {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const FlexSizes = Sizes\nexport type FlexSizesType = `${ValueOf<typeof FlexSizes>}`\n\nexport const FlexClass = {\n\troot: 'gov-flex',\n}\n\n","import {Component, Element, h, Host, Prop} from '@stencil/core'\nimport {FlexClass, FlexSizesType} from './constants'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-flex',\n})\nexport class GovFlex {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\n\t/**\n\t * Controls the flex direction of the container.\n\t */\n\t@Prop() direction: 'row' | 'row-reverse' | 'column' | 'column-reverse' = 'row';\n\n\t/**\n\t * Defines how the browser distributes space between and around content items along the main axis.\n\t */\n\t@Prop({\n\t\tattribute: 'justify-content',\n\t\treflect: true\n\t}) justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';\n\n\t/**\n\t * Aligns flex items along the cross axis.\n\t */\n\t@Prop({\n\t\tattribute: 'align-items',\n\t\treflect: true\n\t}) alignItems?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';\n\n\t/**\n\t * Controls whether the flex container is a single-line or multi-line flex container.\n\t */\n\t@Prop({reflect: true}) wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';\n\n\t/**\n\t * Aligns the flex container's lines within when there is extra space in the cross-axis.\n\t */\n\t@Prop({\n\t\tattribute: 'align-content',\n\t\treflect: true\n\t}) alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';\n\n\t/**\n\t * Sets the alignment of the flex container’s children along the flex container’s cross axis, overriding the `align-items` property for individual flex items.\n\t */\n\t@Prop({\n\t\tattribute: 'align-self',\n\t\treflect: true\n\t}) alignSelf?: 'auto' | 'normal' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch' | 'anchor-center';\n\n\t/**\n\t * The gap property creates consistent spacing between flex items in the container.\n\t */\n\t@Prop({\n\t\tattribute: 'gap',\n\t\treflect: true\n\t}) gap?: FlexSizesType;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FlexClass.root)}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"qHAMO,MAAMA,EAAY,CACxBC,KAAM,Y,MCCMC,EAAOC,EAAA,MAAAD,UAAAE,EAGnB,WAAAC,G,6CASyE,M,oJARxEC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAuDvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQd,EAAUC,OACrCM,EAAA,QAAAK,IAAA,6C","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{G as o,d as s}from"./p-
|
|
1
|
+
import{G as o,d as s}from"./p-915c4f3a.js";const t=o;const a=s;export{t as GovFormAutocomplete,a as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-form-autocomplete.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,H as r,c as a,h as g,d as e}from"./p-
|
|
1
|
+
import{p as o,H as r,c as a,h as g,d as e}from"./p-115b9cf3.js";import{F as t,a as i,b as p,c as n}from"./p-e44a0fee.js";import{g as m}from"./p-ea7fdd2e.js";import{v as l}from"./p-0b3574c2.js";import{t as s}from"./p-26618322.js";import{p as f}from"./p-ded281e6.js";const v="gov-form-group,.gov-form-group,gov-form-radio-group,.gov-form-radio-group,gov-form-checkbox-group,.gov-form-checkbox-group{margin-top:0;margin-bottom:0;position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,.gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,.gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-checkbox-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],.gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],.gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-checkbox-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,.gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap=xs],.gov-form-group[gap=xs],gov-form-radio-group[gap=xs],.gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-checkbox-group[gap=xs]{gap:var(--gap, var(--spacing-xs-nudge))}gov-form-group[gap=s],.gov-form-group[gap=s],gov-form-radio-group[gap=s],.gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-checkbox-group[gap=s]{gap:var(--gap, var(--spacing-s))}gov-form-group[gap=m],.gov-form-group[gap=m],gov-form-radio-group[gap=m],.gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-checkbox-group[gap=m]{gap:var(--gap, var(--spacing-s-nudge))}gov-form-group[gap=l],.gov-form-group[gap=l],gov-form-radio-group[gap=l],.gov-form-radio-group[gap=l],gov-form-checkbox-group[gap=l],.gov-form-checkbox-group[gap=l]{gap:var(--gap, var(--spacing-m))}gov-form-group[gap=xl],.gov-form-group[gap=xl],gov-form-radio-group[gap=xl],.gov-form-radio-group[gap=xl],gov-form-checkbox-group[gap=xl],.gov-form-checkbox-group[gap=xl]{gap:var(--gap, var(--spacing-m-nudge))}";const c=v;const u=o(class o extends r{constructor(){super();this.__registerHost();this.govChange=a(this,"gov-change",7);this.handleChange=o=>{var r;o.stopPropagation();const a=f(this.value);if(!Array.isArray(a))return;if(o.detail.checked){this.value=[...a,o.detail.value]}else{this.value=(r=a.filter((r=>r!==o.detail.value)))!==null&&r!==void 0?r:[]}this.govChange.emit({value:this.value,component:t.root})};this.gap=undefined;this.orientation="vertical";this.value=undefined;this.h=m(this.host)}validateGap(o){if(o){l(p,o,i.root)}}validateOrientation(o){if(o){l(n,o,i.root)}}componentWillLoad(){this.validateGap(this.gap);this.validateOrientation(this.orientation);this.value=f(this.value)}componentDidRender(){s((()=>this.rerenderComponent()))}rerenderComponent(){this.host.querySelectorAll("gov-form-checkbox").forEach((o=>{if(!o.hasAttribute("listener-attached")){o.addEventListener("gov-change",this.handleChange)}o.setAttribute("listener-attached","true");o.checked=this.value.includes(o.value)}))}render(){return g(e,{key:"7f71876a9b72b688bb354a1477153bd8d1b5ad05",gap:this.gap,class:this.h.classes(i.root),value:this.value},g("slot",{key:"2b3ce2b04ab3a2e55128a6d8c00a1d41217061f6"}))}get host(){return this}static get watchers(){return{gap:["validateGap"],orientation:["validateOrientation"]}}static get style(){return c}},[4,"gov-form-checkbox-group",{gap:[1],orientation:[1],value:[1025]},undefined,{gap:["validateGap"],orientation:["validateOrientation"]}]);function h(){if(typeof customElements==="undefined"){return}const o=["gov-form-checkbox-group"];o.forEach((o=>{switch(o){case"gov-form-checkbox-group":if(!customElements.get(o)){customElements.define(o,u)}break}}))}h();const b=u;const d=h;export{b as GovFormCheckboxGroup,d as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=gov-form-checkbox-group.js.map
|