@gov-design-system-ce/components 4.1.3-BETA-6 → 4.1.3-BETA-8
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 +3 -3
- package/dist/cjs/gov-accordion.cjs.entry.js +3 -3
- package/dist/cjs/gov-attachments_3.cjs.entry.js +4 -4
- package/dist/cjs/gov-backdrop.cjs.entry.js +3 -3
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +3 -3
- package/dist/cjs/gov-button.cjs.entry.js +4 -4
- package/dist/cjs/gov-card.cjs.entry.js +3 -3
- package/dist/cjs/gov-chip.cjs.entry.js +3 -3
- package/dist/cjs/gov-container.cjs.entry.js +1 -1
- package/dist/cjs/gov-control-group.cjs.entry.js +3 -3
- package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/gov-dialog.cjs.entry.js +3 -3
- package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gov-empty.cjs.entry.js +3 -3
- package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
- package/dist/cjs/gov-flex_3.cjs.entry.js +204 -24
- package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-group.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-input_2.cjs.entry.js +4 -4
- package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-radio-group.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-radio.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +3 -3
- package/dist/cjs/gov-form-switch.cjs.entry.js +3 -3
- package/dist/cjs/gov-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-grid.cjs.entry.js +1 -1
- package/dist/cjs/gov-infobar.cjs.entry.js +5 -5
- 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 +4 -4
- package/dist/cjs/gov-loading.cjs.entry.js +4 -4
- package/dist/cjs/gov-message.cjs.entry.js +4 -4
- package/dist/cjs/gov-pagination.cjs.entry.js +3 -3
- package/dist/cjs/gov-spacer.cjs.entry.js +4 -4
- package/dist/cjs/gov-stepper-item.cjs.entry.js +4 -4
- package/dist/cjs/gov-stepper.cjs.entry.js +4 -4
- package/dist/cjs/gov-tabs-item.cjs.entry.js +2 -2
- package/dist/cjs/gov-tabs.cjs.entry.js +4 -4
- package/dist/cjs/gov-tag.cjs.entry.js +4 -4
- 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 +4 -4
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +2 -2
- package/dist/cjs/gov-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/gov-wizard-item.cjs.entry.js +5 -5
- package/dist/cjs/gov-wizard.cjs.entry.js +5 -5
- package/dist/cjs/{gov.log-21ea2c96.js → gov.log-bfea3151.js} +5 -1
- package/dist/cjs/gov.log-bfea3151.js.map +1 -0
- package/dist/cjs/{index-0e4f24f9.js → index-67e87c27.js} +15 -1
- package/dist/cjs/index-67e87c27.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{props-b079c32b.js → props-d189860c.js} +2 -2
- package/dist/cjs/{props-b079c32b.js.map → props-d189860c.js.map} +1 -1
- package/dist/cjs/{wcag-efe9bf16.js → wcag-2927ff73.js} +2 -2
- package/dist/cjs/{wcag-efe9bf16.js.map → wcag-2927ff73.js.map} +1 -1
- package/dist/collection/components/gov-icon/gov-icon.js +208 -2
- 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 +1 -1
- package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +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/utils/icon.utils.js +2 -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-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button.js +1 -1
- package/dist/components/gov-card.js +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-dropdown.js.map +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-form-autocomplete.js +1 -1
- package/dist/components/gov-form-checkbox-group.js +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-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-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.js +1 -1
- package/dist/components/gov-form-radio.js.map +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-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-tag.js +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-tile.js.map +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-wizard-item.js +1 -1
- package/dist/components/gov-wizard.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-56399a9b.js → p-03ad4e0f.js} +2 -2
- package/dist/components/{p-52fcba77.js → p-0679f3d6.js} +2 -2
- package/dist/components/p-0b3574c2.js +2 -0
- package/dist/components/p-115b9cf3.js +3 -0
- package/dist/components/p-115b9cf3.js.map +1 -0
- package/dist/components/{p-495b793e.js → p-350e060c.js} +2 -2
- package/dist/components/{p-de0a517f.js → p-384c7f2a.js} +2 -2
- package/dist/components/{p-d7d988d7.js → p-51693b62.js} +2 -2
- package/dist/components/p-7f0c6ba3.js +2 -0
- package/dist/components/p-7f0c6ba3.js.map +1 -0
- package/dist/components/{p-454ce5f2.js → p-80dad64b.js} +2 -2
- package/dist/components/{p-a63665c2.js → p-884d8f16.js} +2 -2
- package/dist/components/{p-ab3a34b0.js → p-887df980.js} +2 -2
- package/dist/components/{p-080d5d41.js → p-8ee6f2f3.js} +2 -2
- package/dist/components/{p-ff5e9e32.js → p-8f40dfec.js} +2 -2
- package/dist/components/{p-6a473654.js → p-9b0f446d.js} +2 -2
- package/dist/components/p-bfce6f99.js +2 -0
- package/dist/components/p-bfce6f99.js.map +1 -0
- package/dist/components/p-e8ec030e.js +2 -0
- package/dist/components/{p-ceafa242.js.map → p-e8ec030e.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-017ff5a5.entry.js +2 -0
- package/dist/core/{p-9ee41510.entry.js.map → p-017ff5a5.entry.js.map} +1 -1
- package/dist/core/{p-b2c00946.entry.js → p-032accfb.entry.js} +2 -2
- package/dist/core/{p-5802e37e.entry.js → p-058e6fe2.entry.js} +2 -2
- package/dist/core/{p-b36f84d2.entry.js → p-063b70a2.entry.js} +2 -2
- package/dist/core/{p-38287e92.entry.js → p-0724cb6a.entry.js} +2 -2
- package/dist/core/p-09c9eba6.entry.js +2 -0
- package/dist/core/p-0b3574c2.js +2 -0
- package/dist/core/{p-b404f53c.entry.js → p-0c076b21.entry.js} +2 -2
- package/dist/core/p-0f0f7302.entry.js +2 -0
- package/dist/core/{p-df338d69.entry.js.map → p-0f0f7302.entry.js.map} +1 -1
- package/dist/core/p-10f773c2.entry.js +2 -0
- package/dist/core/p-14d66f26.entry.js +2 -0
- package/dist/core/{p-54d924fc.entry.js.map → p-14d66f26.entry.js.map} +1 -1
- package/dist/core/{p-3abf57dc.entry.js → p-1aa7450e.entry.js} +2 -2
- package/dist/core/p-237a5b91.entry.js +2 -0
- package/dist/core/{p-e6b08d9b.entry.js.map → p-237a5b91.entry.js.map} +1 -1
- package/dist/core/p-2642cc66.entry.js +2 -0
- package/dist/core/p-2642cc66.entry.js.map +1 -0
- package/dist/core/p-269071f5.entry.js +2 -0
- package/dist/core/{p-2f3228e4.js → p-29ac15d2.js} +2 -2
- package/dist/core/p-2ee042d4.js +3 -0
- package/dist/core/p-2ee042d4.js.map +1 -0
- package/dist/core/{p-8a063925.entry.js → p-33310735.entry.js} +2 -2
- package/dist/core/p-347d15d5.entry.js +2 -0
- package/dist/core/{p-07b1fa1c.entry.js.map → p-347d15d5.entry.js.map} +1 -1
- package/dist/core/{p-8e5f45d0.entry.js → p-37473c34.entry.js} +2 -2
- package/dist/core/{p-9514520c.entry.js → p-3849ca02.entry.js} +2 -2
- package/dist/core/p-3a7381e7.entry.js +2 -0
- package/dist/core/{p-e078dab3.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-123d26eb.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-402f36af.entry.js.map → p-4e29744a.entry.js.map} +1 -1
- package/dist/core/{p-3b8b331f.entry.js → p-4fa0320d.entry.js} +2 -2
- package/dist/core/p-50af9ae8.entry.js +2 -0
- package/dist/core/{p-4ea79bda.entry.js → p-5c3f4cfe.entry.js} +2 -2
- package/dist/core/{p-75ff8ad0.entry.js → p-6b7c3a96.entry.js} +2 -2
- package/dist/core/p-71f5d4ff.entry.js +2 -0
- package/dist/core/{p-0a49e852.entry.js → p-77daba72.entry.js} +2 -2
- package/dist/core/{p-cb76cda0.entry.js → p-7a21fb90.entry.js} +2 -2
- package/dist/core/{p-c723877b.entry.js → p-7baee44f.entry.js} +2 -2
- package/dist/core/{p-7f7c31e2.entry.js → p-7dfb7e36.entry.js} +2 -2
- package/dist/core/{p-9897ac81.entry.js → p-8bb6c816.entry.js} +2 -2
- package/dist/core/p-8cc5ad01.entry.js +2 -0
- package/dist/core/{p-9410ca28.entry.js.map → p-8cc5ad01.entry.js.map} +1 -1
- package/dist/core/p-906865d0.entry.js +2 -0
- package/dist/core/{p-9096ac3f.entry.js.map → p-906865d0.entry.js.map} +1 -1
- package/dist/core/p-927c31dd.entry.js +2 -0
- package/dist/core/{p-2800bec9.entry.js → p-967a1094.entry.js} +2 -2
- package/dist/core/{p-1399f929.entry.js → p-9846fd13.entry.js} +2 -2
- package/dist/core/{p-87e5b1d0.entry.js → p-994385ca.entry.js} +2 -2
- package/dist/core/{p-f35f3261.entry.js → p-9f8d69a9.entry.js} +2 -2
- package/dist/core/{p-47d27845.entry.js → p-a6a9de9a.entry.js} +2 -2
- package/dist/core/p-b62e49ee.entry.js +2 -0
- package/dist/core/p-c0800e6d.entry.js +2 -0
- package/dist/core/p-cecbe73f.entry.js +2 -0
- package/dist/core/{p-0087a816.entry.js.map → p-cecbe73f.entry.js.map} +1 -1
- package/dist/core/p-d795a421.entry.js +2 -0
- package/dist/core/{p-80c7db1f.entry.js.map → p-d795a421.entry.js.map} +1 -1
- package/dist/core/{p-bf0712e0.entry.js → p-d9b42773.entry.js} +2 -2
- package/dist/core/{p-6cf9500c.entry.js → p-e0a199ff.entry.js} +2 -2
- package/dist/core/{p-c34dad75.entry.js → p-e215f3ee.entry.js} +2 -2
- package/dist/core/p-e8ec030e.js +2 -0
- package/dist/core/{p-ceafa242.js.map → p-e8ec030e.js.map} +1 -1
- package/dist/core/{p-368aa2f4.entry.js → p-ed02945f.entry.js} +2 -2
- package/dist/core/p-ee55932a.entry.js +2 -0
- package/dist/core/{p-f9474bb3.entry.js → p-f2bb8c29.entry.js} +2 -2
- package/dist/core/{p-16a3deca.entry.js → p-f54edd6c.entry.js} +2 -2
- package/dist/core/p-f7f60f91.entry.js +2 -0
- package/dist/core/{p-1043fe0d.entry.js.map → p-f7f60f91.entry.js.map} +1 -1
- package/dist/core/{p-fc795b0e.entry.js → p-fcac8531.entry.js} +2 -2
- package/dist/esm/core.js +3 -3
- package/dist/esm/gov-accordion-item.entry.js +3 -3
- package/dist/esm/gov-accordion.entry.js +3 -3
- package/dist/esm/gov-attachments_3.entry.js +4 -4
- package/dist/esm/gov-backdrop.entry.js +3 -3
- package/dist/esm/gov-breadcrumbs.entry.js +3 -3
- package/dist/esm/gov-button.entry.js +4 -4
- package/dist/esm/gov-card.entry.js +3 -3
- package/dist/esm/gov-chip.entry.js +3 -3
- package/dist/esm/gov-container.entry.js +1 -1
- package/dist/esm/gov-control-group.entry.js +3 -3
- package/dist/esm/gov-cookiebar.entry.js +1 -1
- package/dist/esm/gov-dialog.entry.js +3 -3
- package/dist/esm/gov-dropdown.entry.js +1 -1
- package/dist/esm/gov-empty.entry.js +3 -3
- package/dist/esm/gov-error-code.entry.js +1 -1
- package/dist/esm/gov-flex_3.entry.js +204 -24
- package/dist/esm/gov-flex_3.entry.js.map +1 -1
- package/dist/esm/gov-form-autocomplete.entry.js +3 -3
- package/dist/esm/gov-form-checkbox-group.entry.js +3 -3
- package/dist/esm/gov-form-checkbox.entry.js +3 -3
- package/dist/esm/gov-form-control.entry.js +1 -1
- package/dist/esm/gov-form-file.entry.js +1 -1
- package/dist/esm/gov-form-group.entry.js +3 -3
- package/dist/esm/gov-form-input_2.entry.js +4 -4
- package/dist/esm/gov-form-label.entry.js +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +3 -3
- package/dist/esm/gov-form-password-power.entry.js +1 -1
- package/dist/esm/gov-form-radio-group.entry.js +3 -3
- package/dist/esm/gov-form-radio.entry.js +3 -3
- package/dist/esm/gov-form-search.entry.js +1 -1
- package/dist/esm/gov-form-select.entry.js +3 -3
- package/dist/esm/gov-form-switch.entry.js +3 -3
- package/dist/esm/gov-grid-item.entry.js +1 -1
- package/dist/esm/gov-grid.entry.js +1 -1
- package/dist/esm/gov-infobar.entry.js +5 -5
- 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 +4 -4
- package/dist/esm/gov-loading.entry.js +4 -4
- package/dist/esm/gov-message.entry.js +4 -4
- package/dist/esm/gov-pagination.entry.js +3 -3
- package/dist/esm/gov-spacer.entry.js +4 -4
- package/dist/esm/gov-stepper-item.entry.js +4 -4
- package/dist/esm/gov-stepper.entry.js +4 -4
- package/dist/esm/gov-tabs-item.entry.js +2 -2
- package/dist/esm/gov-tabs.entry.js +4 -4
- package/dist/esm/gov-tag.entry.js +4 -4
- 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 +4 -4
- package/dist/esm/gov-tooltip-content.entry.js +2 -2
- package/dist/esm/gov-tooltip.entry.js +5 -5
- package/dist/esm/gov-wizard-item.entry.js +5 -5
- package/dist/esm/gov-wizard.entry.js +5 -5
- package/dist/esm/{gov.log-55c240b2.js → gov.log-6b64cda6.js} +4 -2
- package/dist/esm/gov.log-6b64cda6.js.map +1 -0
- package/dist/esm/{index-bf8a6f64.js → index-087b155c.js} +14 -2
- package/dist/esm/index-087b155c.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{props-c54f7897.js → props-9d3c7ac1.js} +2 -2
- package/dist/esm/{props-c54f7897.js.map → props-9d3c7ac1.js.map} +1 -1
- package/dist/esm/{wcag-1a5ae5e3.js → wcag-253a4421.js} +2 -2
- package/dist/esm/{wcag-1a5ae5e3.js.map → wcag-253a4421.js.map} +1 -1
- package/dist/hydrate/index.js +242 -55
- package/dist/hydrate/index.mjs +242 -55
- package/dist/types/components/gov-icon/gov-icon.d.ts +32 -0
- package/dist/types/components.d.ts +34 -0
- package/package.json +1 -1
- package/dist/cjs/gov.log-21ea2c96.js.map +0 -1
- package/dist/cjs/index-0e4f24f9.js.map +0 -1
- package/dist/components/p-16e68a91.js +0 -2
- package/dist/components/p-16e68a91.js.map +0 -1
- package/dist/components/p-42200001.js +0 -3
- package/dist/components/p-42200001.js.map +0 -1
- package/dist/components/p-ceafa242.js +0 -2
- package/dist/components/p-d8135701.js +0 -2
- package/dist/core/p-0087a816.entry.js +0 -2
- package/dist/core/p-07b1fa1c.entry.js +0 -2
- package/dist/core/p-1043fe0d.entry.js +0 -2
- package/dist/core/p-123d26eb.entry.js +0 -2
- package/dist/core/p-1d5cc2b1.entry.js +0 -2
- package/dist/core/p-200a0be4.entry.js +0 -2
- package/dist/core/p-26726401.entry.js +0 -2
- package/dist/core/p-2b62c4ee.entry.js +0 -2
- package/dist/core/p-2f693f59.entry.js +0 -2
- package/dist/core/p-402f36af.entry.js +0 -2
- package/dist/core/p-54d924fc.entry.js +0 -2
- package/dist/core/p-80c7db1f.entry.js +0 -2
- package/dist/core/p-8f21a858.entry.js +0 -2
- package/dist/core/p-9096ac3f.entry.js +0 -2
- package/dist/core/p-93b747c1.entry.js +0 -2
- package/dist/core/p-9410ca28.entry.js +0 -2
- package/dist/core/p-9dea2efa.js +0 -3
- package/dist/core/p-9dea2efa.js.map +0 -1
- package/dist/core/p-9ee41510.entry.js +0 -2
- package/dist/core/p-b480cda1.entry.js +0 -2
- package/dist/core/p-c742b08e.entry.js +0 -2
- package/dist/core/p-ceafa242.js +0 -2
- package/dist/core/p-d8135701.js +0 -2
- package/dist/core/p-df338d69.entry.js +0 -2
- package/dist/core/p-e078dab3.entry.js +0 -2
- package/dist/core/p-e6b08d9b.entry.js +0 -2
- package/dist/core/p-fe5030a6.entry.js +0 -2
- package/dist/core/p-fe9ca9e6.entry.js +0 -2
- package/dist/core/p-ff03dcd3.entry.js +0 -2
- package/dist/core/p-ff03dcd3.entry.js.map +0 -1
- package/dist/esm/gov.log-55c240b2.js.map +0 -1
- package/dist/esm/index-bf8a6f64.js.map +0 -1
- /package/dist/components/{p-56399a9b.js.map → p-03ad4e0f.js.map} +0 -0
- /package/dist/components/{p-52fcba77.js.map → p-0679f3d6.js.map} +0 -0
- /package/dist/components/{p-d8135701.js.map → p-0b3574c2.js.map} +0 -0
- /package/dist/components/{p-495b793e.js.map → p-350e060c.js.map} +0 -0
- /package/dist/components/{p-de0a517f.js.map → p-384c7f2a.js.map} +0 -0
- /package/dist/components/{p-d7d988d7.js.map → p-51693b62.js.map} +0 -0
- /package/dist/components/{p-454ce5f2.js.map → p-80dad64b.js.map} +0 -0
- /package/dist/components/{p-a63665c2.js.map → p-884d8f16.js.map} +0 -0
- /package/dist/components/{p-ab3a34b0.js.map → p-887df980.js.map} +0 -0
- /package/dist/components/{p-080d5d41.js.map → p-8ee6f2f3.js.map} +0 -0
- /package/dist/components/{p-ff5e9e32.js.map → p-8f40dfec.js.map} +0 -0
- /package/dist/components/{p-6a473654.js.map → p-9b0f446d.js.map} +0 -0
- /package/dist/core/{p-b2c00946.entry.js.map → p-032accfb.entry.js.map} +0 -0
- /package/dist/core/{p-5802e37e.entry.js.map → p-058e6fe2.entry.js.map} +0 -0
- /package/dist/core/{p-b36f84d2.entry.js.map → p-063b70a2.entry.js.map} +0 -0
- /package/dist/core/{p-38287e92.entry.js.map → p-0724cb6a.entry.js.map} +0 -0
- /package/dist/core/{p-2b62c4ee.entry.js.map → p-09c9eba6.entry.js.map} +0 -0
- /package/dist/core/{p-d8135701.js.map → p-0b3574c2.js.map} +0 -0
- /package/dist/core/{p-b404f53c.entry.js.map → p-0c076b21.entry.js.map} +0 -0
- /package/dist/core/{p-1d5cc2b1.entry.js.map → p-10f773c2.entry.js.map} +0 -0
- /package/dist/core/{p-3abf57dc.entry.js.map → p-1aa7450e.entry.js.map} +0 -0
- /package/dist/core/{p-26726401.entry.js.map → p-269071f5.entry.js.map} +0 -0
- /package/dist/core/{p-2f3228e4.js.map → p-29ac15d2.js.map} +0 -0
- /package/dist/core/{p-8a063925.entry.js.map → p-33310735.entry.js.map} +0 -0
- /package/dist/core/{p-8e5f45d0.entry.js.map → p-37473c34.entry.js.map} +0 -0
- /package/dist/core/{p-9514520c.entry.js.map → p-3849ca02.entry.js.map} +0 -0
- /package/dist/core/{p-93b747c1.entry.js.map → p-43d3dbc0.entry.js.map} +0 -0
- /package/dist/core/{p-fe9ca9e6.entry.js.map → p-4c60e125.entry.js.map} +0 -0
- /package/dist/core/{p-3b8b331f.entry.js.map → p-4fa0320d.entry.js.map} +0 -0
- /package/dist/core/{p-200a0be4.entry.js.map → p-50af9ae8.entry.js.map} +0 -0
- /package/dist/core/{p-4ea79bda.entry.js.map → p-5c3f4cfe.entry.js.map} +0 -0
- /package/dist/core/{p-75ff8ad0.entry.js.map → p-6b7c3a96.entry.js.map} +0 -0
- /package/dist/core/{p-8f21a858.entry.js.map → p-71f5d4ff.entry.js.map} +0 -0
- /package/dist/core/{p-0a49e852.entry.js.map → p-77daba72.entry.js.map} +0 -0
- /package/dist/core/{p-cb76cda0.entry.js.map → p-7a21fb90.entry.js.map} +0 -0
- /package/dist/core/{p-c723877b.entry.js.map → p-7baee44f.entry.js.map} +0 -0
- /package/dist/core/{p-7f7c31e2.entry.js.map → p-7dfb7e36.entry.js.map} +0 -0
- /package/dist/core/{p-9897ac81.entry.js.map → p-8bb6c816.entry.js.map} +0 -0
- /package/dist/core/{p-fe5030a6.entry.js.map → p-927c31dd.entry.js.map} +0 -0
- /package/dist/core/{p-2800bec9.entry.js.map → p-967a1094.entry.js.map} +0 -0
- /package/dist/core/{p-1399f929.entry.js.map → p-9846fd13.entry.js.map} +0 -0
- /package/dist/core/{p-87e5b1d0.entry.js.map → p-994385ca.entry.js.map} +0 -0
- /package/dist/core/{p-f35f3261.entry.js.map → p-9f8d69a9.entry.js.map} +0 -0
- /package/dist/core/{p-47d27845.entry.js.map → p-a6a9de9a.entry.js.map} +0 -0
- /package/dist/core/{p-c742b08e.entry.js.map → p-b62e49ee.entry.js.map} +0 -0
- /package/dist/core/{p-2f693f59.entry.js.map → p-c0800e6d.entry.js.map} +0 -0
- /package/dist/core/{p-bf0712e0.entry.js.map → p-d9b42773.entry.js.map} +0 -0
- /package/dist/core/{p-6cf9500c.entry.js.map → p-e0a199ff.entry.js.map} +0 -0
- /package/dist/core/{p-c34dad75.entry.js.map → p-e215f3ee.entry.js.map} +0 -0
- /package/dist/core/{p-368aa2f4.entry.js.map → p-ed02945f.entry.js.map} +0 -0
- /package/dist/core/{p-b480cda1.entry.js.map → p-ee55932a.entry.js.map} +0 -0
- /package/dist/core/{p-f9474bb3.entry.js.map → p-f2bb8c29.entry.js.map} +0 -0
- /package/dist/core/{p-16a3deca.entry.js.map → p-f54edd6c.entry.js.map} +0 -0
- /package/dist/core/{p-fc795b0e.entry.js.map → p-fcac8531.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
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govHost","h","Host","pick","Sizes","isWindow","validateProp"],"sources":["../../../packages/core/src/components/gov-flex/constants.ts","../../../packages/core/src/components/gov-flex/gov-flex.tsx","../../../packages/core/src/components/gov-icon/gov-icon.tsx","../../../packages/core/src/components/gov-theme-switch/constants.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.types.ts","../../../packages/core/src/helpers/Dom/document.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.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","import {Component, h, Host} from \"@stencil/core\"\n\n@Component({\n tag: \"gov-icon\",\n})\nexport class GovIcon {\n render() {\n return (\n <Host>\n HELLO\n </Host>\n )\n }\n}\n","import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const ThemeSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type ThemeSwitchSizesType = `${ValueOf<typeof ThemeSwitchSizes>}`\n\nexport const ThemeSwitchClass = {\n\troot: 'gov-theme-switch',\n\tindicator: 'gov-theme-switch__indicator',\n\ticonLight: 'gov-theme-switch__icon-light',\n\ticonDark: 'gov-theme-switch__icon-dark',\n}\n\nexport const ATTRIBUTE_THEME_NAME = 'data-theme'\n","import {GovBaseEvent} from \"../../types/event.types\";\n\nexport enum ThemeList {\n\tauto = 'auto',\n\tlight = 'light',\n\tdark = 'dark'\n}\n\nexport interface ThemeSwitchEvent extends GovBaseEvent {\n\tref: HTMLGovThemeSwitchElement;\n\tstate: ThemeList\n}\n\n","import {Nullable} from \"../../utils/helpers.types\";\nimport {isWindow} from \"./win\";\n\nexport const setCookie = (name: string, value: string, days?: number) => {\n\tif (!isWindow) {\n\t\treturn\n\t}\n\tlet expires = \"\";\n\tif (days) {\n\t\tconst date = new Date();\n\t\tdate.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));\n\t\texpires = \"; expires=\" + date.toUTCString();\n\t}\n\tdocument.cookie = `${name}=${encodeURIComponent(value)}${expires}; path=/`;\n}\n\nexport const getCookie = (name: string): Nullable<string> => {\n\tif (!isWindow) {\n\t\treturn null\n\t}\n\tconst nameEQ = name + \"=\";\n\tconst cookies = document.cookie.split(';');\n\tfor (let i = 0; i < cookies.length; i++) {\n\t\tlet cookie = cookies[i].trim();\n\t\tif (cookie.startsWith(nameEQ)) {\n\t\t\treturn decodeURIComponent(cookie.substring(nameEQ.length));\n\t\t}\n\t}\n\treturn null;\n}\n\nexport const isValidSVG = (svgContent: string): boolean => {\n\ttry {\n\t\tconst parser = new DOMParser();\n\t\tconst doc = parser.parseFromString(svgContent, \"image/svg+xml\");\n\t\tconst parseError = doc.querySelector(\"parsererror\");\n\t\tif (parseError) {\n\t\t\treturn false;\n\t\t}\n\t\tconst svgElement = doc.documentElement;\n\t\tif (svgElement.tagName.toLowerCase() !== \"svg\") {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t} catch (error) {\n\t\treturn false;\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {GovHost} from \"../../helpers/Dom/template.types\";\nimport {govHost} from \"../../helpers/Dom/template\";\nimport {ATTRIBUTE_THEME_NAME, ThemeSwitchClass, ThemeSwitchSizes, ThemeSwitchSizesType} from \"./constants\";\nimport {isWindow} from \"../../helpers/Dom/win\";\nimport {ThemeList, ThemeSwitchEvent} from \"./gov-theme-switch.types\";\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {getCookie, setCookie} from \"../../helpers/Dom/document\";\n\n@Component({\n\ttag: \"gov-theme-switch\",\n})\nexport class GovThemeSwitch {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovThemeSwitchElement\n\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop() readonly size?: ThemeSwitchSizesType = \"m\"\n\t/**\n\t * Display switch label\n\t */\n\t@Prop({attribute: \"display-label\"}) readonly displayLabel? = false\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"aria-label-light\"}) readonly ariaLabelLight? = \"Přenout na tmavý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"aria-label-dark\"}) readonly ariaLabelDark? = \"Přepnout na světlý mód\"\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"label-light\"}) readonly labelLight? = \"Světlý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"label-dark\"}) readonly labelDark? = \"Tmavý mód\"\n\t/**\n\t * Called when the theme is changed by the user\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<ThemeSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ThemeSwitchSizes, newValue, ThemeSwitchClass.root)\n\t}\n\n\t@Watch(\"theme\")\n\twatchTheme(newValue: ThemeList): void {\n\t\tthis.htmlElement.setAttribute(ATTRIBUTE_THEME_NAME, newValue);\n\t\tthis.htmlElement.classList.remove(...Object.keys(ThemeList));\n\t\tthis.htmlElement.classList.add(newValue);\n\t\tsetCookie(ATTRIBUTE_THEME_NAME, newValue);\n\t}\n\n\t@State() theme: ThemeList = ThemeList.auto\n\n\tprivate get storageValue() {\n\t\treturn getCookie(ATTRIBUTE_THEME_NAME)\n\t}\n\n\tprivate get htmlElement(): HTMLElement {\n\t\treturn document.documentElement\n\t}\n\n\tprivate get isSystemPrefersColorDark(): boolean {\n\t\treturn isWindow && window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.initDefaultState()\n\t\tthis.validateSize(this.size)\n\t}\n\n\tprivate initDefaultState() {\n\t\tconst options = Object.keys(ThemeList);\n\t\tlet currentState = this.storageValue;\n\t\tconst htmlState = this.htmlElement.getAttribute(ATTRIBUTE_THEME_NAME)\n\n\t\tif (currentState && options.includes(currentState)) {\n\t\t\tthis.theme = currentState as ThemeList;\n\t\t} else if (htmlState && options.includes(htmlState)) {\n\t\t\tthis.theme = htmlState as ThemeList;\n\t\t} else {\n\t\t\tthis.theme = ThemeList.auto;\n\t\t}\n\t}\n\n\tprivate setThemeState = (state: ThemeList) => {\n\t\tthis.theme = state;\n\n\t\tthis.govChange.emit({\n\t\t\tcomponent: ThemeSwitchClass.root,\n\t\t\tstate: this.theme,\n\t\t\tref: this.host\n\t\t})\n\t}\n\n\trender() {\n\t\tlet isDark = this.theme === ThemeList.dark;\n\t\tif (this.theme === ThemeList.auto) {\n\t\t\tisDark = this.isSystemPrefersColorDark;\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ThemeSwitchClass.root)}\n\t\t\t\t theme={isDark ? ThemeList.dark : ThemeList.light}\n\t\t\t\t size={this.size}>\n\t\t\t\t<button onClick={() => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark)}\n\t\t\t\t\t\taria-current={this.theme}\n\t\t\t\t\t\taria-label={isDark ? this.ariaLabelDark : this.ariaLabelLight}>\n\t\t\t\t\t<span>\n\t\t\t\t\t\t<span class={ThemeSwitchClass.indicator}>\n\t\t\t\t\t\t\t{ThemeList.light && <gov-icon name=\"sun\" class={ThemeSwitchClass.iconLight} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t{ThemeList.dark && <gov-icon name=\"moon\" class={ThemeSwitchClass.iconDark} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t{this.displayLabel && (isDark ? this.labelDark : this.labelLight)}\n\t\t\t\t\t</span>\n\t\t\t\t</button>\n\t\t\t</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["../../../packages/core/src/components/gov-flex/constants.ts","../../../packages/core/src/components/gov-flex/gov-flex.tsx","../../../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/helpers/Dom/document.ts","../../../packages/core/src/components/gov-icon/gov-icon.tsx","../../../packages/core/src/components/gov-theme-switch/constants.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.types.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.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","import { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils';\nimport { Colors } from '../../core/constants/colors';\nimport {Sizes} from \"../../core/constants/sizes\";\n\nexport const IconSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL', '_5XL'])\nexport type IconSizesType = `${ValueOf<typeof IconSizes>}`\n\nexport const IconColors = pick(Colors, [\n\t'DEFAULT',\n\t'PRIMARY',\n\t'SECONDARY',\n\t'NEUTRAL',\n\t'ERROR',\n\t'SUCCESS',\n\t'WARNING',\n\t'DISABLED',\n\t'WHITE',\n\t'BLACK',\n])\nexport type IconColorType = `${ValueOf<typeof IconColors>}`\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\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\n\tif (!requestCache[cacheKey]) {\n\t\tconsole.log('iconsPath()', iconsPath());\n\t\tconsole.log('name, type', name, type);\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","import {Nullable} from \"../../utils/helpers.types\";\nimport {isWindow} from \"./win\";\n\nexport const setCookie = (name: string, value: string, days?: number) => {\n\tif (!isWindow) {\n\t\treturn\n\t}\n\tlet expires = \"\";\n\tif (days) {\n\t\tconst date = new Date();\n\t\tdate.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));\n\t\texpires = \"; expires=\" + date.toUTCString();\n\t}\n\tdocument.cookie = `${name}=${encodeURIComponent(value)}${expires}; path=/`;\n}\n\nexport const getCookie = (name: string): Nullable<string> => {\n\tif (!isWindow) {\n\t\treturn null\n\t}\n\tconst nameEQ = name + \"=\";\n\tconst cookies = document.cookie.split(';');\n\tfor (let i = 0; i < cookies.length; i++) {\n\t\tlet cookie = cookies[i].trim();\n\t\tif (cookie.startsWith(nameEQ)) {\n\t\t\treturn decodeURIComponent(cookie.substring(nameEQ.length));\n\t\t}\n\t}\n\treturn null;\n}\n\nexport const isValidSVG = (svgContent: string): boolean => {\n\ttry {\n\t\tconst parser = new DOMParser();\n\t\tconst doc = parser.parseFromString(svgContent, \"image/svg+xml\");\n\t\tconst parseError = doc.querySelector(\"parsererror\");\n\t\tif (parseError) {\n\t\t\treturn false;\n\t\t}\n\t\tconst svgElement = doc.documentElement;\n\t\tif (svgElement.tagName.toLowerCase() !== \"svg\") {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t} catch (error) {\n\t\treturn false;\n\t}\n}\n","import {Build, Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {IconClass, IconColors, type IconColorType, IconSizesType} from \"./constants\"\nimport {fetchIcon} from \"../../utils/icon.utils\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {iconsLazyLoad} from \"../../helpers/Dom/win\"\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {isValidSVG} from \"../../helpers/Dom/document\";\n\n@Component({\n\tassetsDirs: [\"assets\"],\n\ttag: \"gov-icon\",\n})\nexport class GovIcon {\n\tprivate h: GovHost\n\tprivate intersectionObserver: IntersectionObserver\n\n\tconstructor() {\n\t\tconsole.log('GovIcon');\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovIconElement\n\t/**\n\t * Icon size\n\t */\n\t@Prop({reflect: true}) readonly size?: IconSizesType\n\t/**\n\t * Icon color\n\t */\n\t@Prop({reflect: true}) readonly color?: IconColorType\n\t/**\n\t * Name of icon in folder\n\t */\n\t@Prop({reflect: true}) name: string = null\n\t/**\n\t * Type (folder) of icon\n\t */\n\t@Prop({reflect: true}) type = \"components\"\n\n\t@State() private visible = false\n\t@State() private error = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(IconColors, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"error\")\n\twatchError(newValue: string): void {\n\t\tconsole.log('error', newValue);\n\t}\n\n\t@Watch(\"name\")\n\tprivate async loadIconPathData(): Promise<void> {\n\t\tconst {name, visible} = this\n\t\tconsole.log('name, visible', name, visible);\n\t\tconsole.log('Build.isBrowser', Build.isBrowser);\n\t\tif (!Build.isBrowser || !name || !visible) {\n\t\t\tconsole.log('return');\n\t\t\treturn\n\t\t}\n\t\tawait this.loadIcon()\n\t}\n\n\tconnectedCallback(): void {\n\t\tconsole.log('connectedCallback icon', this.name);\n\t\tconsole.log('iconsLazyLoad()', iconsLazyLoad());\n\t\tif (iconsLazyLoad()) {\n\t\t\tthis.visible = true\n\t\t\tthis.loadIconPathData().finally()\n\t\t} else {\n\t\t\tthis.waitUntilVisible(async () => {\n\t\t\t\tthis.visible = true\n\t\t\t\tawait this.loadIconPathData()\n\t\t\t})\n\t\t}\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tconsole.log('disconnectedCallback');\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\tconsole.log('componentWillLoad');\n\t\tthis.validateSize(this.size)\n\t\tthis.validateColor(this.color)\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\tif (this.intersectionObserver) {\n\t\t\t\t\t\t\tthis.intersectionObserver.disconnect()\n\t\t\t\t\t\t\tthis.intersectionObserver = null\n\t\t\t\t\t\t}\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\tprivate async loadIcon() {\n\t\ttry {\n\t\t\tconst {name, type} = this\n\t\t\tconsole.log('loadIcon -> name, type', name, type);\n\t\t\tconst data = await fetchIcon({name, type})\n\t\t\tconst isValid = isValidSVG(data)\n\t\t\tthis.host.innerHTML = isValid ? data : null;\n\t\t} catch (e) {\n\t\t\tthis.host.innerHTML = ''\n\t\t\tthis.error = true\n\t\t}\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)} size={this.size} color={this.color}/>\n\t\t)\n\t}\n}\n","import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const ThemeSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type ThemeSwitchSizesType = `${ValueOf<typeof ThemeSwitchSizes>}`\n\nexport const ThemeSwitchClass = {\n\troot: 'gov-theme-switch',\n\tindicator: 'gov-theme-switch__indicator',\n\ticonLight: 'gov-theme-switch__icon-light',\n\ticonDark: 'gov-theme-switch__icon-dark',\n}\n\nexport const ATTRIBUTE_THEME_NAME = 'data-theme'\n","import {GovBaseEvent} from \"../../types/event.types\";\n\nexport enum ThemeList {\n\tauto = 'auto',\n\tlight = 'light',\n\tdark = 'dark'\n}\n\nexport interface ThemeSwitchEvent extends GovBaseEvent {\n\tref: HTMLGovThemeSwitchElement;\n\tstate: ThemeList\n}\n\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {GovHost} from \"../../helpers/Dom/template.types\";\nimport {govHost} from \"../../helpers/Dom/template\";\nimport {ATTRIBUTE_THEME_NAME, ThemeSwitchClass, ThemeSwitchSizes, ThemeSwitchSizesType} from \"./constants\";\nimport {isWindow} from \"../../helpers/Dom/win\";\nimport {ThemeList, ThemeSwitchEvent} from \"./gov-theme-switch.types\";\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {getCookie, setCookie} from \"../../helpers/Dom/document\";\n\n@Component({\n\ttag: \"gov-theme-switch\",\n})\nexport class GovThemeSwitch {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovThemeSwitchElement\n\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop() readonly size?: ThemeSwitchSizesType = \"m\"\n\t/**\n\t * Display switch label\n\t */\n\t@Prop({attribute: \"display-label\"}) readonly displayLabel? = false\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"aria-label-light\"}) readonly ariaLabelLight? = \"Přenout na tmavý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"aria-label-dark\"}) readonly ariaLabelDark? = \"Přepnout na světlý mód\"\n\t/**\n\t * Label in light mode\n\t */\n\t@Prop({attribute: \"label-light\"}) readonly labelLight? = \"Světlý mód\"\n\t/**\n\t * Label in dark mode\n\t */\n\t@Prop({attribute: \"label-dark\"}) readonly labelDark? = \"Tmavý mód\"\n\t/**\n\t * Called when the theme is changed by the user\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<ThemeSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(ThemeSwitchSizes, newValue, ThemeSwitchClass.root)\n\t}\n\n\t@Watch(\"theme\")\n\twatchTheme(newValue: ThemeList): void {\n\t\tthis.htmlElement.setAttribute(ATTRIBUTE_THEME_NAME, newValue);\n\t\tthis.htmlElement.classList.remove(...Object.keys(ThemeList));\n\t\tthis.htmlElement.classList.add(newValue);\n\t\tsetCookie(ATTRIBUTE_THEME_NAME, newValue);\n\t}\n\n\t@State() theme: ThemeList = ThemeList.auto\n\n\tprivate get storageValue() {\n\t\treturn getCookie(ATTRIBUTE_THEME_NAME)\n\t}\n\n\tprivate get htmlElement(): HTMLElement {\n\t\treturn document.documentElement\n\t}\n\n\tprivate get isSystemPrefersColorDark(): boolean {\n\t\treturn isWindow && window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.initDefaultState()\n\t\tthis.validateSize(this.size)\n\t}\n\n\tprivate initDefaultState() {\n\t\tconst options = Object.keys(ThemeList);\n\t\tlet currentState = this.storageValue;\n\t\tconst htmlState = this.htmlElement.getAttribute(ATTRIBUTE_THEME_NAME)\n\n\t\tif (currentState && options.includes(currentState)) {\n\t\t\tthis.theme = currentState as ThemeList;\n\t\t} else if (htmlState && options.includes(htmlState)) {\n\t\t\tthis.theme = htmlState as ThemeList;\n\t\t} else {\n\t\t\tthis.theme = ThemeList.auto;\n\t\t}\n\t}\n\n\tprivate setThemeState = (state: ThemeList) => {\n\t\tthis.theme = state;\n\n\t\tthis.govChange.emit({\n\t\t\tcomponent: ThemeSwitchClass.root,\n\t\t\tstate: this.theme,\n\t\t\tref: this.host\n\t\t})\n\t}\n\n\trender() {\n\t\tlet isDark = this.theme === ThemeList.dark;\n\t\tif (this.theme === ThemeList.auto) {\n\t\t\tisDark = this.isSystemPrefersColorDark;\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ThemeSwitchClass.root)}\n\t\t\t\t theme={isDark ? ThemeList.dark : ThemeList.light}\n\t\t\t\t size={this.size}>\n\t\t\t\t<button onClick={() => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark)}\n\t\t\t\t\t\taria-current={this.theme}\n\t\t\t\t\t\taria-label={isDark ? this.ariaLabelDark : this.ariaLabelLight}>\n\t\t\t\t\t<span>\n\t\t\t\t\t\t<span class={ThemeSwitchClass.indicator}>\n\t\t\t\t\t\t\t{ThemeList.light && <gov-icon name=\"sun\" class={ThemeSwitchClass.iconLight} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t{ThemeList.dark && <gov-icon name=\"moon\" class={ThemeSwitchClass.iconDark} type=\"components\"></gov-icon>}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t{this.displayLabel && (isDark ? this.labelDark : this.labelLight)}\n\t\t\t\t\t</span>\n\t\t\t\t</button>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const template = require('./template-39939fd6.js');
|
|
7
|
-
const props = require('./props-
|
|
7
|
+
const props = require('./props-d189860c.js');
|
|
8
8
|
const string_utils = require('./string.utils-b84c81cf.js');
|
|
9
9
|
const utils = require('./utils-d263c5c6.js');
|
|
10
10
|
const constants = require('./constants-47ba678b.js');
|
|
11
11
|
const array_utils = require('./array.utils-96eadde3.js');
|
|
12
12
|
const attribute = require('./attribute-06dc5228.js');
|
|
13
13
|
const accessibility = require('./accessibility-c475826b.js');
|
|
14
|
-
require('./gov.log-
|
|
14
|
+
require('./gov.log-bfea3151.js');
|
|
15
15
|
require('./sizes-89f8d3b2.js');
|
|
16
16
|
require('./helpers.types-ff60c9bd.js');
|
|
17
17
|
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const constants = require('./constants-02aec493.js');
|
|
7
7
|
const template = require('./template-39939fd6.js');
|
|
8
|
-
const props = require('./props-
|
|
8
|
+
const props = require('./props-d189860c.js');
|
|
9
9
|
const stencil_utils = require('./stencil.utils-182382ee.js');
|
|
10
10
|
const array_utils = require('./array.utils-96eadde3.js');
|
|
11
11
|
require('./utils-d263c5c6.js');
|
|
12
12
|
require('./sizes-89f8d3b2.js');
|
|
13
|
-
require('./gov.log-
|
|
13
|
+
require('./gov.log-bfea3151.js');
|
|
14
14
|
require('./helpers.types-ff60c9bd.js');
|
|
15
15
|
|
|
16
16
|
const govFormGroupCss = "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))}";
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const string_utils = require('./string.utils-b84c81cf.js');
|
|
7
|
-
const props = require('./props-
|
|
7
|
+
const props = require('./props-d189860c.js');
|
|
8
8
|
const form = require('./form-4e66039a.js');
|
|
9
9
|
const template = require('./template-39939fd6.js');
|
|
10
10
|
const Fragment = require('./Fragment-52846f79.js');
|
|
11
11
|
const attribute = require('./attribute-06dc5228.js');
|
|
12
12
|
const accessibility = require('./accessibility-c475826b.js');
|
|
13
|
-
require('./gov.log-
|
|
13
|
+
require('./gov.log-bfea3151.js');
|
|
14
14
|
require('./utils-d263c5c6.js');
|
|
15
15
|
require('./sizes-89f8d3b2.js');
|
|
16
16
|
require('./constants-b9fece07.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const form = require('./form-4e66039a.js');
|
|
7
7
|
const template = require('./template-39939fd6.js');
|
|
8
8
|
const string_utils = require('./string.utils-b84c81cf.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const string_utils = require('./string.utils-b84c81cf.js');
|
|
7
7
|
const template = require('./template-39939fd6.js');
|
|
8
8
|
const form = require('./form-4e66039a.js');
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const constants = require('./constants-02aec493.js');
|
|
7
7
|
const template = require('./template-39939fd6.js');
|
|
8
|
-
const props = require('./props-
|
|
8
|
+
const props = require('./props-d189860c.js');
|
|
9
9
|
require('./utils-d263c5c6.js');
|
|
10
10
|
require('./sizes-89f8d3b2.js');
|
|
11
|
-
require('./gov.log-
|
|
11
|
+
require('./gov.log-bfea3151.js');
|
|
12
12
|
|
|
13
13
|
const GovFormGroup = class {
|
|
14
14
|
constructor(hostRef) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const form = require('./form-4e66039a.js');
|
|
7
7
|
const template = require('./template-39939fd6.js');
|
|
8
|
-
const props = require('./props-
|
|
8
|
+
const props = require('./props-d189860c.js');
|
|
9
9
|
const string_utils = require('./string.utils-b84c81cf.js');
|
|
10
10
|
const attribute = require('./attribute-06dc5228.js');
|
|
11
11
|
const accessibility = require('./accessibility-c475826b.js');
|
|
@@ -15,7 +15,7 @@ const colors = require('./colors-f7c8eadd.js');
|
|
|
15
15
|
require('./constants-b9fece07.js');
|
|
16
16
|
require('./constants-47ba678b.js');
|
|
17
17
|
require('./constants-87bab1ed.js');
|
|
18
|
-
require('./gov.log-
|
|
18
|
+
require('./gov.log-bfea3151.js');
|
|
19
19
|
|
|
20
20
|
var Tags;
|
|
21
21
|
(function (Tags) {
|
|
@@ -263,7 +263,7 @@ const GovSkeleton = class {
|
|
|
263
263
|
return Object.assign({}, dimenssionsStyles);
|
|
264
264
|
}
|
|
265
265
|
render() {
|
|
266
|
-
return (index.h(index.Host, Object.assign({ key: '
|
|
266
|
+
return (index.h(index.Host, Object.assign({ key: '175dad78f57ee2e44fe3097e0595f59254e1003b', size: this.size, color: this.color, class: {
|
|
267
267
|
[SkeletonClass.root]: true,
|
|
268
268
|
circle: this.shape === "circle",
|
|
269
269
|
line: this.shape === "line",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const constants = require('./constants-87bab1ed.js');
|
|
7
7
|
require('./utils-d263c5c6.js');
|
|
8
8
|
require('./sizes-89f8d3b2.js');
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const form = require('./form-4e66039a.js');
|
|
7
7
|
const template = require('./template-39939fd6.js');
|
|
8
|
-
const props = require('./props-
|
|
8
|
+
const props = require('./props-d189860c.js');
|
|
9
9
|
const string_utils = require('./string.utils-b84c81cf.js');
|
|
10
10
|
const array_utils = require('./array.utils-96eadde3.js');
|
|
11
11
|
const stencil_utils = require('./stencil.utils-182382ee.js');
|
|
@@ -16,7 +16,7 @@ require('./constants-b9fece07.js');
|
|
|
16
16
|
require('./colors-f7c8eadd.js');
|
|
17
17
|
require('./constants-47ba678b.js');
|
|
18
18
|
require('./constants-87bab1ed.js');
|
|
19
|
-
require('./gov.log-
|
|
19
|
+
require('./gov.log-bfea3151.js');
|
|
20
20
|
require('./helpers.types-ff60c9bd.js');
|
|
21
21
|
|
|
22
22
|
const GovFormMultiSelect = class {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const constants = require('./constants-02aec493.js');
|
|
7
7
|
const template = require('./template-39939fd6.js');
|
|
8
|
-
const props = require('./props-
|
|
8
|
+
const props = require('./props-d189860c.js');
|
|
9
9
|
const stencil_utils = require('./stencil.utils-182382ee.js');
|
|
10
10
|
require('./utils-d263c5c6.js');
|
|
11
11
|
require('./sizes-89f8d3b2.js');
|
|
12
|
-
require('./gov.log-
|
|
12
|
+
require('./gov.log-bfea3151.js');
|
|
13
13
|
|
|
14
14
|
const govFormGroupCss = "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))}";
|
|
15
15
|
const GovFormRadioGroupStyle0 = govFormGroupCss;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const string_utils = require('./string.utils-b84c81cf.js');
|
|
7
|
-
const props = require('./props-
|
|
7
|
+
const props = require('./props-d189860c.js');
|
|
8
8
|
const form = require('./form-4e66039a.js');
|
|
9
9
|
const template = require('./template-39939fd6.js');
|
|
10
10
|
const Fragment = require('./Fragment-52846f79.js');
|
|
11
11
|
const attribute = require('./attribute-06dc5228.js');
|
|
12
12
|
const accessibility = require('./accessibility-c475826b.js');
|
|
13
|
-
require('./gov.log-
|
|
13
|
+
require('./gov.log-bfea3151.js');
|
|
14
14
|
require('./utils-d263c5c6.js');
|
|
15
15
|
require('./sizes-89f8d3b2.js');
|
|
16
16
|
require('./constants-b9fece07.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const colors = require('./colors-f7c8eadd.js');
|
|
7
7
|
const utils = require('./utils-d263c5c6.js');
|
|
8
8
|
const sizes = require('./sizes-89f8d3b2.js');
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const form = require('./form-4e66039a.js');
|
|
7
7
|
const template = require('./template-39939fd6.js');
|
|
8
|
-
const props = require('./props-
|
|
8
|
+
const props = require('./props-d189860c.js');
|
|
9
9
|
const string_utils = require('./string.utils-b84c81cf.js');
|
|
10
10
|
const array_utils = require('./array.utils-96eadde3.js');
|
|
11
11
|
const stencil_utils = require('./stencil.utils-182382ee.js');
|
|
@@ -17,7 +17,7 @@ require('./constants-b9fece07.js');
|
|
|
17
17
|
require('./colors-f7c8eadd.js');
|
|
18
18
|
require('./constants-47ba678b.js');
|
|
19
19
|
require('./constants-87bab1ed.js');
|
|
20
|
-
require('./gov.log-
|
|
20
|
+
require('./gov.log-bfea3151.js');
|
|
21
21
|
require('./helpers.types-ff60c9bd.js');
|
|
22
22
|
|
|
23
23
|
const GovFormSelect = class {
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const string_utils = require('./string.utils-b84c81cf.js');
|
|
7
|
-
const props = require('./props-
|
|
7
|
+
const props = require('./props-d189860c.js');
|
|
8
8
|
const form = require('./form-4e66039a.js');
|
|
9
9
|
const template = require('./template-39939fd6.js');
|
|
10
10
|
const Fragment = require('./Fragment-52846f79.js');
|
|
11
11
|
const attribute = require('./attribute-06dc5228.js');
|
|
12
12
|
const accessibility = require('./accessibility-c475826b.js');
|
|
13
|
-
require('./gov.log-
|
|
13
|
+
require('./gov.log-bfea3151.js');
|
|
14
14
|
require('./utils-d263c5c6.js');
|
|
15
15
|
require('./sizes-89f8d3b2.js');
|
|
16
16
|
require('./constants-b9fece07.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const constants = require('./constants-52053f2d.js');
|
|
7
7
|
const template = require('./template-39939fd6.js');
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const constants = require('./constants-52053f2d.js');
|
|
7
7
|
const template = require('./template-39939fd6.js');
|
|
8
8
|
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const template = require('./template-39939fd6.js');
|
|
7
7
|
const Fragment = require('./Fragment-52846f79.js');
|
|
8
|
-
const props = require('./props-
|
|
8
|
+
const props = require('./props-d189860c.js');
|
|
9
9
|
const colors = require('./colors-f7c8eadd.js');
|
|
10
10
|
const utils = require('./utils-d263c5c6.js');
|
|
11
11
|
const attribute = require('./attribute-06dc5228.js');
|
|
12
12
|
const accessibility = require('./accessibility-c475826b.js');
|
|
13
|
-
require('./gov.log-
|
|
13
|
+
require('./gov.log-bfea3151.js');
|
|
14
14
|
|
|
15
15
|
const InfobarColors = utils.pick(colors.Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING']);
|
|
16
16
|
var InfobarType;
|
|
@@ -61,8 +61,8 @@ const GovInfobar = class {
|
|
|
61
61
|
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
const closeButton = (index.h("gov-button", { key: '
|
|
65
|
-
return (index.h(index.Host, { key: '
|
|
64
|
+
const closeButton = (index.h("gov-button", { key: '2d0597a56f6edb97e7feff654ba98885fa48033a', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, index.h("gov-icon", { key: 'c17ba542b02a4910a136eec6cb4556d1857dffb2', name: "x-lg", type: "components" })));
|
|
65
|
+
return (index.h(index.Host, { key: 'd71d1b8ffe158de90f3fb520bd996a8246988d3d', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, index.h("section", Object.assign({ key: '12cce82faa13fa39135fe92b0ab61bc2b01fa083', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), index.h("slot", { key: 'bc48d4e5dfad03cd9c54054225a4c3db0ec09cd9', name: "icon" }), index.h("div", { key: '70422e59cb69504d1aca5d45b9f9700b35b344f0', class: InfobarClass.content }, this.h.hasSlot('headline') ? (index.h(Fragment.Fragment, null, index.h("div", { class: InfobarClass.headline }, index.h("slot", { name: "headline" }), index.h("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, index.h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down', type: "components" }))), index.h("div", { hidden: !this.toggleContent, "aria-hidden": template.toBoolAttr(this.toggleContent) }, index.h("slot", null)))) : (index.h("slot", null))), this.closable && closeButton)));
|
|
66
66
|
}
|
|
67
67
|
onCloseHandler(e) {
|
|
68
68
|
this.govClose.emit({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const constants = require('./constants-a33f6e99.js');
|
|
7
7
|
const template = require('./template-39939fd6.js');
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ const GovLayoutColumn = class {
|
|
|
12
12
|
this.h = template.govHost(this.host);
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (index.h(index.Host, { key: '
|
|
15
|
+
return (index.h(index.Host, { key: 'ebef4ca76b1308a566c862b5a49eecf1eb3fce99', class: this.h.classes(constants.LayoutColumnClass.root) }, index.h("slot", { key: 'aaeefeb1a56b294d91b1327fd52eb16486cfb918' })));
|
|
16
16
|
}
|
|
17
17
|
get host() { return index.getElement(this); }
|
|
18
18
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const constants = require('./constants-a33f6e99.js');
|
|
7
7
|
const template = require('./template-39939fd6.js');
|
|
8
8
|
|
|
@@ -21,7 +21,7 @@ const GovLayout = class {
|
|
|
21
21
|
return originalClass + ' ' + originalClass + isType + isVariant + isInverse;
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (index.h(index.Host, { key: '
|
|
24
|
+
return (index.h(index.Host, { key: 'c35fc39e07229363bdf36be5856165e7e8eb7985', type: this.type, class: this.h.classes(constants.LayoutClass.root) }, index.h("section", { key: 'dc50cf9cba8bd4e879291fddfbd41955f2d10330', class: this.typeClass(constants.LayoutClass.section, this.type, this.variant, this.inverse) }, index.h("slot", { key: '017a329c119529d3893e187b6a8bbccfbbc76679' }))));
|
|
25
25
|
}
|
|
26
26
|
get host() { return index.getElement(this); }
|
|
27
27
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const string_utils = require('./string.utils-b84c81cf.js');
|
|
7
7
|
|
|
8
8
|
const GovLifecycle = class {
|
|
@@ -38,7 +38,7 @@ const GovLifecycle = class {
|
|
|
38
38
|
console.log('componentDidUpdate', this.uniqueId);
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (index.h(index.Host, { key: '
|
|
41
|
+
return (index.h(index.Host, { key: '506eabaae01ae888fa838c10572e55bbe6fb7015', identifier: this.uniqueId }, index.h("span", { key: '7604a29214fdffb1a470d83d7db37a583e5072ed' }, "lifecycle ", this.uniqueId)));
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const utils = require('./utils-d263c5c6.js');
|
|
7
7
|
const sizes = require('./sizes-89f8d3b2.js');
|
|
8
8
|
const template = require('./template-39939fd6.js');
|
|
9
|
-
const props = require('./props-
|
|
9
|
+
const props = require('./props-d189860c.js');
|
|
10
10
|
const accessibility = require('./accessibility-c475826b.js');
|
|
11
|
-
require('./gov.log-
|
|
11
|
+
require('./gov.log-bfea3151.js');
|
|
12
12
|
require('./attribute-06dc5228.js');
|
|
13
13
|
|
|
14
14
|
const LinkSizes = utils.pick(sizes.Sizes, ['_S', '_M', '_L']);
|
|
@@ -38,7 +38,7 @@ const GovLink = class {
|
|
|
38
38
|
this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (index.h(index.Host, { key: '
|
|
41
|
+
return (index.h(index.Host, { key: '233af48c179501fe03ee2e5931806e1955913b59', class: this.h.classes(LinkClass.root), size: this.size, href: this.href, external: this.external }, index.h("a", Object.assign({ key: '679067805205d76500979620b1ef4405139bb339', class: "element", href: this.href, target: this.target }, this.inheritedAttributes), index.h("slot", { key: 'd24c4ab99451f317a453c8131bd0506606322553', name: "icon-start" }), index.h("slot", { key: '276923f48cdc13985115e8d4e8860a2fb0c692e2' }), this.external ? index.h("gov-icon", { name: "box-arrow-up-right", type: "components" }) : index.h("slot", { name: "icon-end" }))));
|
|
42
42
|
}
|
|
43
43
|
get host() { return index.getElement(this); }
|
|
44
44
|
static get watchers() { return {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const utils = require('./utils-d263c5c6.js');
|
|
7
7
|
const sizes = require('./sizes-89f8d3b2.js');
|
|
8
8
|
const template = require('./template-39939fd6.js');
|
|
9
|
-
const props = require('./props-
|
|
10
|
-
require('./gov.log-
|
|
9
|
+
const props = require('./props-d189860c.js');
|
|
10
|
+
require('./gov.log-bfea3151.js');
|
|
11
11
|
|
|
12
12
|
const LoadingSizes = utils.pick(sizes.Sizes, ['_S', '_M', '_L']);
|
|
13
13
|
const LoadingClass = {
|
|
@@ -29,7 +29,7 @@ const GovLoading = class {
|
|
|
29
29
|
this.validateSize(this.size);
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (index.h(index.Host, { key: '
|
|
32
|
+
return (index.h(index.Host, { key: '4c33339523674f2f2415dfb326131858de9eecf9', class: this.h.classes(LoadingClass.root), size: this.size }, index.h("div", { key: '8c25628dd3072fd89665ccfedb9596383181b13d', class: LoadingClass.content }, index.h("gov-icon", { key: 'a9969874350b5316c61a94b12d41a0130eeded0f', class: template.prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader", type: "components" }), index.h("slot", { key: '14c716ecc352a0d947a6e3d932d2ab9075dedb97' })), index.h("gov-backdrop", { key: '507610e5a61b34be2166fb4a30539a134dc1b262', inverse: true })));
|
|
33
33
|
}
|
|
34
34
|
get host() { return index.getElement(this); }
|
|
35
35
|
static get watchers() { return {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const props = require('./props-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
|
+
const props = require('./props-d189860c.js');
|
|
7
7
|
const colors = require('./colors-f7c8eadd.js');
|
|
8
8
|
const utils = require('./utils-d263c5c6.js');
|
|
9
9
|
const template = require('./template-39939fd6.js');
|
|
10
|
-
require('./gov.log-
|
|
10
|
+
require('./gov.log-bfea3151.js');
|
|
11
11
|
|
|
12
12
|
utils.pick(colors.Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING']);
|
|
13
13
|
var MessageType;
|
|
@@ -31,7 +31,7 @@ const GovMessage = class {
|
|
|
31
31
|
props.validateProp(colors.Colors, newValue, MessageClass.root);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (index.h(index.Host, { key: '
|
|
34
|
+
return (index.h(index.Host, { key: 'b9e06c8f94940edf9d2c60119c35ec32baa23fc9', class: this.h.classes(MessageClass.root), color: this.color, type: this.type, role: "status" }, this.h.hasSlot("icon") && (index.h("slot", { key: 'd478f414de8eaa276cc867ae5bb325c1090b08ac', name: "icon" })), index.h("div", { key: 'd5a113ca4061b445c583fb1b4f22fff594570b1e', class: MessageClass.content }, index.h("slot", { key: 'e9be2f4ff3603c5f77d46e042455174e6ccfb7be' }))));
|
|
35
35
|
}
|
|
36
36
|
get host() { return index.getElement(this); }
|
|
37
37
|
static get watchers() { return {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-67e87c27.js');
|
|
6
6
|
const Fragment = require('./Fragment-52846f79.js');
|
|
7
|
-
const props = require('./props-
|
|
7
|
+
const props = require('./props-d189860c.js');
|
|
8
8
|
const sizes = require('./sizes-89f8d3b2.js');
|
|
9
9
|
const colors = require('./colors-f7c8eadd.js');
|
|
10
10
|
const utils = require('./utils-d263c5c6.js');
|
|
@@ -13,7 +13,7 @@ const string_utils = require('./string.utils-b84c81cf.js');
|
|
|
13
13
|
const array_utils = require('./array.utils-96eadde3.js');
|
|
14
14
|
const attribute = require('./attribute-06dc5228.js');
|
|
15
15
|
const accessibility = require('./accessibility-c475826b.js');
|
|
16
|
-
require('./gov.log-
|
|
16
|
+
require('./gov.log-bfea3151.js');
|
|
17
17
|
require('./helpers.types-ff60c9bd.js');
|
|
18
18
|
|
|
19
19
|
const PaginationSizes = utils.pick(sizes.Sizes, ['_S', '_M']);
|