@gov-design-system-ce/components 4.0.4 → 4.0.5
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/LICENSE +21 -0
- package/package.json +1 -1
- package/readme.md +8 -0
- package/dist/cjs/Fragment-52846f79.js +0 -7
- package/dist/cjs/Fragment-52846f79.js.map +0 -1
- package/dist/cjs/constants-0c6c8e11.js +0 -30
- package/dist/cjs/constants-0c6c8e11.js.map +0 -1
- package/dist/cjs/constants-1490a5eb.js +0 -25
- package/dist/cjs/constants-1490a5eb.js.map +0 -1
- package/dist/cjs/constants-20b3f7ee.js +0 -28
- package/dist/cjs/constants-20b3f7ee.js.map +0 -1
- package/dist/cjs/constants-25f7a6be.js +0 -22
- package/dist/cjs/constants-25f7a6be.js.map +0 -1
- package/dist/cjs/constants-2b1c31b8.js +0 -15
- package/dist/cjs/constants-2b1c31b8.js.map +0 -1
- package/dist/cjs/constants-427a2843.js +0 -33
- package/dist/cjs/constants-427a2843.js.map +0 -1
- package/dist/cjs/constants-440cd5c8.js +0 -29
- package/dist/cjs/constants-440cd5c8.js.map +0 -1
- package/dist/cjs/constants-61f8be34.js +0 -26
- package/dist/cjs/constants-61f8be34.js.map +0 -1
- package/dist/cjs/constants-66cb0615.js +0 -20
- package/dist/cjs/constants-66cb0615.js.map +0 -1
- package/dist/cjs/constants-6df82618.js +0 -21
- package/dist/cjs/constants-6df82618.js.map +0 -1
- package/dist/cjs/constants-97eea364.js +0 -14
- package/dist/cjs/constants-97eea364.js.map +0 -1
- package/dist/cjs/constants-a31344ad.js +0 -37
- package/dist/cjs/constants-a31344ad.js.map +0 -1
- package/dist/cjs/constants-caad94b4.js +0 -16
- package/dist/cjs/constants-caad94b4.js.map +0 -1
- package/dist/cjs/constants-dde21dcf.js +0 -30
- package/dist/cjs/constants-dde21dcf.js.map +0 -1
- package/dist/cjs/constants-ded92f8a.js +0 -13
- package/dist/cjs/constants-ded92f8a.js.map +0 -1
- package/dist/cjs/core.cjs.js +0 -48
- package/dist/cjs/core.cjs.js.map +0 -1
- package/dist/cjs/form-74063d50.js +0 -163
- package/dist/cjs/form-74063d50.js.map +0 -1
- package/dist/cjs/gov-accordion-item.cjs.entry.js +0 -102
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +0 -77
- package/dist/cjs/gov-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-app.cjs.entry.js +0 -9449
- package/dist/cjs/gov-app.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +0 -120
- package/dist/cjs/gov-attachments_3.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-backdrop.cjs.entry.js +0 -50
- package/dist/cjs/gov-backdrop.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +0 -50
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-button.cjs.entry.js +0 -180
- package/dist/cjs/gov-button.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-card.cjs.entry.js +0 -112
- package/dist/cjs/gov-card.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-chip.cjs.entry.js +0 -108
- package/dist/cjs/gov-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-container.cjs.entry.js +0 -36
- package/dist/cjs/gov-container.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-control-group.cjs.entry.js +0 -43
- package/dist/cjs/gov-control-group.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-cookiebar.cjs.entry.js +0 -33
- package/dist/cjs/gov-cookiebar.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-dropdown.cjs.entry.js +0 -135
- package/dist/cjs/gov-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-empty.cjs.entry.js +0 -31
- package/dist/cjs/gov-empty.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-error-code.cjs.entry.js +0 -31
- package/dist/cjs/gov-error-code.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +0 -245
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +0 -131
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +0 -107
- package/dist/cjs/gov-form-control.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +0 -240
- package/dist/cjs/gov-form-file.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-group.cjs.entry.js +0 -59
- package/dist/cjs/gov-form-group.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-input.cjs.entry.js +0 -190
- package/dist/cjs/gov-form-input.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-label.cjs.entry.js +0 -30
- package/dist/cjs/gov-form-label.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +0 -304
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-password-power.cjs.entry.js +0 -28
- package/dist/cjs/gov-form-password-power.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +0 -131
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +0 -32
- package/dist/cjs/gov-form-search.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +0 -167
- package/dist/cjs/gov-form-select.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +0 -131
- package/dist/cjs/gov-form-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-grid-item.cjs.entry.js +0 -30
- package/dist/cjs/gov-grid-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-grid.cjs.entry.js +0 -28
- package/dist/cjs/gov-grid.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-icon.cjs.entry.js +0 -135
- package/dist/cjs/gov-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-infobar.cjs.entry.js +0 -91
- package/dist/cjs/gov-infobar.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-layout-column.cjs.entry.js +0 -25
- package/dist/cjs/gov-layout-column.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-layout.cjs.entry.js +0 -34
- package/dist/cjs/gov-layout.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-loading.cjs.entry.js +0 -30
- package/dist/cjs/gov-loading.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-message.cjs.entry.js +0 -44
- package/dist/cjs/gov-message.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-modal.cjs.entry.js +0 -106
- package/dist/cjs/gov-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-nav-item.cjs.entry.js +0 -39
- package/dist/cjs/gov-nav-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-nav.cjs.entry.js +0 -42
- package/dist/cjs/gov-nav.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-pagination.cjs.entry.js +0 -224
- package/dist/cjs/gov-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-prompt.cjs.entry.js +0 -103
- package/dist/cjs/gov-prompt.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-side-nav-item.cjs.entry.js +0 -87
- package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-side-nav.cjs.entry.js +0 -56
- package/dist/cjs/gov-side-nav.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-skeleton.cjs.entry.js +0 -117
- package/dist/cjs/gov-skeleton.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-spacer.cjs.entry.js +0 -58
- package/dist/cjs/gov-spacer.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-statsbar-item.cjs.entry.js +0 -40
- package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-statsbar.cjs.entry.js +0 -53
- package/dist/cjs/gov-statsbar.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-stepper-item.cjs.entry.js +0 -78
- package/dist/cjs/gov-stepper-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-stepper.cjs.entry.js +0 -51
- package/dist/cjs/gov-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tabs-item.cjs.entry.js +0 -53
- package/dist/cjs/gov-tabs-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tabs.cjs.entry.js +0 -198
- package/dist/cjs/gov-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tag.cjs.entry.js +0 -57
- package/dist/cjs/gov-tag.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tile.cjs.entry.js +0 -42
- package/dist/cjs/gov-tile.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tiles.cjs.entry.js +0 -33
- package/dist/cjs/gov-tiles.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-toast.cjs.entry.js +0 -101
- package/dist/cjs/gov-toast.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +0 -54
- package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tooltip.cjs.entry.js +0 -224
- package/dist/cjs/gov-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-wizard-item.cjs.entry.js +0 -115
- package/dist/cjs/gov-wizard-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-wizard.cjs.entry.js +0 -69
- package/dist/cjs/gov-wizard.cjs.entry.js.map +0 -1
- package/dist/cjs/gov.log-b842920d.js +0 -28
- package/dist/cjs/gov.log-b842920d.js.map +0 -1
- package/dist/cjs/helpers-2c870ff5.js +0 -19
- package/dist/cjs/helpers-2c870ff5.js.map +0 -1
- package/dist/cjs/index-7b6bba34.js +0 -2717
- package/dist/cjs/index-7b6bba34.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -4
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -15
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/props-d6146e54.js +0 -16
- package/dist/cjs/props-d6146e54.js.map +0 -1
- package/dist/cjs/sizes-79872c2a.js +0 -18
- package/dist/cjs/sizes-79872c2a.js.map +0 -1
- package/dist/cjs/string.utils-0f08c48c.js +0 -24
- package/dist/cjs/string.utils-0f08c48c.js.map +0 -1
- package/dist/cjs/template-4b951d1d.js +0 -128
- package/dist/cjs/template-4b951d1d.js.map +0 -1
- package/dist/cjs/utils-c9b1bba3.js +0 -41
- package/dist/cjs/utils-c9b1bba3.js.map +0 -1
- package/dist/cjs/variants-f5ffeef3.js +0 -18
- package/dist/cjs/variants-f5ffeef3.js.map +0 -1
- package/dist/cjs/wcag-e6257f27.js +0 -67
- package/dist/cjs/wcag-e6257f27.js.map +0 -1
- package/dist/cjs/win-5521073d.js +0 -39
- package/dist/cjs/win-5521073d.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -72
- package/dist/collection/components/gov-accordion/constants.js +0 -21
- package/dist/collection/components/gov-accordion/constants.js.map +0 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.css +0 -524
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +0 -304
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +0 -1
- package/dist/collection/components/gov-accordion/gov-accordion.css +0 -240
- package/dist/collection/components/gov-accordion/gov-accordion.js +0 -226
- package/dist/collection/components/gov-accordion/gov-accordion.js.map +0 -1
- package/dist/collection/components/gov-accordion/gov-accordion.types.js +0 -2
- package/dist/collection/components/gov-accordion/gov-accordion.types.js.map +0 -1
- package/dist/collection/components/gov-app/gov-app.css +0 -249
- package/dist/collection/components/gov-app/gov-app.js +0 -99
- package/dist/collection/components/gov-app/gov-app.js.map +0 -1
- package/dist/collection/components/gov-attachments/constants.js +0 -12
- package/dist/collection/components/gov-attachments/constants.js.map +0 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.css +0 -261
- package/dist/collection/components/gov-attachments/gov-attachments-item.d.js +0 -2
- package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +0 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.js +0 -123
- package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +0 -1
- package/dist/collection/components/gov-attachments/gov-attachments.css +0 -247
- package/dist/collection/components/gov-attachments/gov-attachments.js +0 -100
- package/dist/collection/components/gov-attachments/gov-attachments.js.map +0 -1
- package/dist/collection/components/gov-backdrop/constants.js +0 -5
- package/dist/collection/components/gov-backdrop/constants.js.map +0 -1
- package/dist/collection/components/gov-backdrop/gov-backdrop.css +0 -246
- package/dist/collection/components/gov-backdrop/gov-backdrop.js +0 -142
- package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +0 -1
- package/dist/collection/components/gov-breadcrumbs/constants.js +0 -4
- package/dist/collection/components/gov-breadcrumbs/constants.js.map +0 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +0 -279
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js +0 -2
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +0 -1
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +0 -162
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +0 -1
- package/dist/collection/components/gov-button/button/constants.js +0 -29
- package/dist/collection/components/gov-button/button/constants.js.map +0 -1
- package/dist/collection/components/gov-button/button/gov-button.css +0 -1154
- package/dist/collection/components/gov-button/button/gov-button.js +0 -891
- package/dist/collection/components/gov-button/button/gov-button.js.map +0 -1
- package/dist/collection/components/gov-button/button/gov-button.types.js +0 -2
- package/dist/collection/components/gov-button/button/gov-button.types.js.map +0 -1
- package/dist/collection/components/gov-button/dropdown/constants.js +0 -10
- package/dist/collection/components/gov-button/dropdown/constants.js.map +0 -1
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.css +0 -264
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +0 -177
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +0 -1
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js +0 -2
- package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js.map +0 -1
- package/dist/collection/components/gov-card/constants.js +0 -14
- package/dist/collection/components/gov-card/constants.js.map +0 -1
- package/dist/collection/components/gov-card/gov-card.css +0 -377
- package/dist/collection/components/gov-card/gov-card.js +0 -311
- package/dist/collection/components/gov-card/gov-card.js.map +0 -1
- package/dist/collection/components/gov-card/interfaces.js +0 -2
- package/dist/collection/components/gov-card/interfaces.js.map +0 -1
- package/dist/collection/components/gov-chip/constants.js +0 -13
- package/dist/collection/components/gov-chip/constants.js.map +0 -1
- package/dist/collection/components/gov-chip/gov-chip.css +0 -1255
- package/dist/collection/components/gov-chip/gov-chip.js +0 -462
- package/dist/collection/components/gov-chip/gov-chip.js.map +0 -1
- package/dist/collection/components/gov-container/constants.js +0 -4
- package/dist/collection/components/gov-container/constants.js.map +0 -1
- package/dist/collection/components/gov-container/gov-container.css +0 -247
- package/dist/collection/components/gov-container/gov-container.js +0 -60
- package/dist/collection/components/gov-container/gov-container.js.map +0 -1
- package/dist/collection/components/gov-control-group/constants.js +0 -7
- package/dist/collection/components/gov-control-group/constants.js.map +0 -1
- package/dist/collection/components/gov-control-group/gov-control-group.css +0 -280
- package/dist/collection/components/gov-control-group/gov-control-group.js +0 -84
- package/dist/collection/components/gov-control-group/gov-control-group.js.map +0 -1
- package/dist/collection/components/gov-cookiebar/constants.js +0 -9
- package/dist/collection/components/gov-cookiebar/constants.js.map +0 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +0 -289
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +0 -24
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +0 -1
- package/dist/collection/components/gov-empty/constants.js +0 -7
- package/dist/collection/components/gov-empty/constants.js.map +0 -1
- package/dist/collection/components/gov-empty/gov-empty.css +0 -255
- package/dist/collection/components/gov-empty/gov-empty.js +0 -24
- package/dist/collection/components/gov-empty/gov-empty.js.map +0 -1
- package/dist/collection/components/gov-error-code/constants.js +0 -7
- package/dist/collection/components/gov-error-code/constants.js.map +0 -1
- package/dist/collection/components/gov-error-code/gov-error-code.css +0 -270
- package/dist/collection/components/gov-error-code/gov-error-code.js +0 -24
- package/dist/collection/components/gov-error-code/gov-error-code.js.map +0 -1
- package/dist/collection/components/gov-form/autocomplete/constants.js +0 -13
- package/dist/collection/components/gov-form/autocomplete/constants.js.map +0 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +0 -289
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +0 -824
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +0 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js +0 -2
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +0 -1
- package/dist/collection/components/gov-form/checkbox/constants.js +0 -9
- package/dist/collection/components/gov-form/checkbox/constants.js.map +0 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +0 -402
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +0 -442
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +0 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js +0 -2
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js.map +0 -1
- package/dist/collection/components/gov-form/control/constants.js +0 -9
- package/dist/collection/components/gov-form/control/constants.js.map +0 -1
- package/dist/collection/components/gov-form/control/gov-form-control.css +0 -291
- package/dist/collection/components/gov-form/control/gov-form-control.js +0 -241
- package/dist/collection/components/gov-form/control/gov-form-control.js.map +0 -1
- package/dist/collection/components/gov-form/file/constants.js +0 -10
- package/dist/collection/components/gov-form/file/constants.js.map +0 -1
- package/dist/collection/components/gov-form/file/gov-form-file.css +0 -301
- package/dist/collection/components/gov-form/file/gov-form-file.js +0 -702
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +0 -1
- package/dist/collection/components/gov-form/file/gov-form-file.types.js +0 -2
- package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +0 -1
- package/dist/collection/components/gov-form/group/constants.js +0 -12
- package/dist/collection/components/gov-form/group/constants.js.map +0 -1
- package/dist/collection/components/gov-form/group/gov-form-group.css +0 -261
- package/dist/collection/components/gov-form/group/gov-form-group.js +0 -102
- package/dist/collection/components/gov-form/group/gov-form-group.js.map +0 -1
- package/dist/collection/components/gov-form/input/constants.js +0 -29
- package/dist/collection/components/gov-form/input/constants.js.map +0 -1
- package/dist/collection/components/gov-form/input/gov-form-input.css +0 -523
- package/dist/collection/components/gov-form/input/gov-form-input.js +0 -930
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +0 -1
- package/dist/collection/components/gov-form/input/gov-form-input.types.js +0 -2
- package/dist/collection/components/gov-form/input/gov-form-input.types.js.map +0 -1
- package/dist/collection/components/gov-form/label/constants.js +0 -8
- package/dist/collection/components/gov-form/label/constants.js.map +0 -1
- package/dist/collection/components/gov-form/label/gov-form-label.css +0 -252
- package/dist/collection/components/gov-form/label/gov-form-label.js +0 -130
- package/dist/collection/components/gov-form/label/gov-form-label.js.map +0 -1
- package/dist/collection/components/gov-form/message/constants.js +0 -9
- package/dist/collection/components/gov-form/message/constants.js.map +0 -1
- package/dist/collection/components/gov-form/message/gov-form-message.css +0 -262
- package/dist/collection/components/gov-form/message/gov-form-message.js +0 -95
- package/dist/collection/components/gov-form/message/gov-form-message.js.map +0 -1
- package/dist/collection/components/gov-form/multiselect/constants.js +0 -12
- package/dist/collection/components/gov-form/multiselect/constants.js.map +0 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +0 -639
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +0 -936
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +0 -1
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js +0 -2
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +0 -1
- package/dist/collection/components/gov-form/password-power/constants.js +0 -6
- package/dist/collection/components/gov-form/password-power/constants.js.map +0 -1
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.css +0 -275
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +0 -43
- package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +0 -1
- package/dist/collection/components/gov-form/radio/constants.js +0 -11
- package/dist/collection/components/gov-form/radio/constants.js.map +0 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.css +0 -401
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +0 -442
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +0 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.types.js +0 -2
- package/dist/collection/components/gov-form/radio/gov-form-radio.types.js.map +0 -1
- package/dist/collection/components/gov-form/search/constants.js +0 -9
- package/dist/collection/components/gov-form/search/constants.js.map +0 -1
- package/dist/collection/components/gov-form/search/gov-form-search.css +0 -274
- package/dist/collection/components/gov-form/search/gov-form-search.js +0 -51
- package/dist/collection/components/gov-form/search/gov-form-search.js.map +0 -1
- package/dist/collection/components/gov-form/select/constants.js +0 -10
- package/dist/collection/components/gov-form/select/constants.js.map +0 -1
- package/dist/collection/components/gov-form/select/gov-form-select.css +0 -598
- package/dist/collection/components/gov-form/select/gov-form-select.js +0 -613
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +0 -1
- package/dist/collection/components/gov-form/select/gov-form-select.types.js +0 -2
- package/dist/collection/components/gov-form/select/gov-form-select.types.js.map +0 -1
- package/dist/collection/components/gov-form/switch/constants.js +0 -10
- package/dist/collection/components/gov-form/switch/constants.js.map +0 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.css +0 -440
- package/dist/collection/components/gov-form/switch/gov-form-switch.js +0 -442
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +0 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.types.js +0 -2
- package/dist/collection/components/gov-form/switch/gov-form-switch.types.js.map +0 -1
- package/dist/collection/components/gov-grid/constants.js +0 -7
- package/dist/collection/components/gov-grid/constants.js.map +0 -1
- package/dist/collection/components/gov-grid/gov-grid-item.css +0 -437
- package/dist/collection/components/gov-grid/gov-grid-item.js +0 -119
- package/dist/collection/components/gov-grid/gov-grid-item.js.map +0 -1
- package/dist/collection/components/gov-grid/gov-grid.css +0 -256
- package/dist/collection/components/gov-grid/gov-grid.js +0 -65
- package/dist/collection/components/gov-grid/gov-grid.js.map +0 -1
- package/dist/collection/components/gov-icon/constants.js +0 -11
- package/dist/collection/components/gov-icon/constants.js.map +0 -1
- package/dist/collection/components/gov-icon/gov-icon.css +0 -250
- package/dist/collection/components/gov-icon/gov-icon.js +0 -139
- package/dist/collection/components/gov-icon/gov-icon.js.map +0 -1
- package/dist/collection/components/gov-icon/helpers.js +0 -14
- package/dist/collection/components/gov-icon/helpers.js.map +0 -1
- package/dist/collection/components/gov-icon/list.js +0 -282
- package/dist/collection/components/gov-icon/list.js.map +0 -1
- package/dist/collection/components/gov-infobar/constants.js +0 -13
- package/dist/collection/components/gov-infobar/constants.js.map +0 -1
- package/dist/collection/components/gov-infobar/gov-infobar.css +0 -388
- package/dist/collection/components/gov-infobar/gov-infobar.js +0 -246
- package/dist/collection/components/gov-infobar/gov-infobar.js.map +0 -1
- package/dist/collection/components/gov-infobar/gov-infobar.types.js +0 -2
- package/dist/collection/components/gov-infobar/gov-infobar.types.js.map +0 -1
- package/dist/collection/components/gov-layout/constants.js +0 -19
- package/dist/collection/components/gov-layout/constants.js.map +0 -1
- package/dist/collection/components/gov-layout/gov-layout-column.css +0 -237
- package/dist/collection/components/gov-layout/gov-layout-column.js +0 -24
- package/dist/collection/components/gov-layout/gov-layout-column.js.map +0 -1
- package/dist/collection/components/gov-layout/gov-layout.css +0 -282
- package/dist/collection/components/gov-layout/gov-layout.js +0 -102
- package/dist/collection/components/gov-layout/gov-layout.js.map +0 -1
- package/dist/collection/components/gov-loading/loading/constants.js +0 -6
- package/dist/collection/components/gov-loading/loading/constants.js.map +0 -1
- package/dist/collection/components/gov-loading/loading/gov-loading.css +0 -261
- package/dist/collection/components/gov-loading/loading/gov-loading.js +0 -24
- package/dist/collection/components/gov-loading/loading/gov-loading.js.map +0 -1
- package/dist/collection/components/gov-loading/skeleton/constants.js +0 -20
- package/dist/collection/components/gov-loading/skeleton/constants.js.map +0 -1
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.css +0 -300
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +0 -271
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +0 -1
- package/dist/collection/components/gov-message/constants.js +0 -10
- package/dist/collection/components/gov-message/constants.js.map +0 -1
- package/dist/collection/components/gov-message/gov-message.css +0 -319
- package/dist/collection/components/gov-message/gov-message.js +0 -64
- package/dist/collection/components/gov-message/gov-message.js.map +0 -1
- package/dist/collection/components/gov-modal/constants.js +0 -15
- package/dist/collection/components/gov-modal/constants.js.map +0 -1
- package/dist/collection/components/gov-modal/gov-modal.css +0 -345
- package/dist/collection/components/gov-modal/gov-modal.js +0 -355
- package/dist/collection/components/gov-modal/gov-modal.js.map +0 -1
- package/dist/collection/components/gov-nav/constants.js +0 -9
- package/dist/collection/components/gov-nav/constants.js.map +0 -1
- package/dist/collection/components/gov-nav/gov-nav-item.css +0 -288
- package/dist/collection/components/gov-nav/gov-nav-item.js +0 -68
- package/dist/collection/components/gov-nav/gov-nav-item.js.map +0 -1
- package/dist/collection/components/gov-nav/gov-nav.css +0 -254
- package/dist/collection/components/gov-nav/gov-nav.js +0 -98
- package/dist/collection/components/gov-nav/gov-nav.js.map +0 -1
- package/dist/collection/components/gov-pagination/constants.js +0 -21
- package/dist/collection/components/gov-pagination/constants.js.map +0 -1
- package/dist/collection/components/gov-pagination/gov-pagination.css +0 -394
- package/dist/collection/components/gov-pagination/gov-pagination.js +0 -460
- package/dist/collection/components/gov-pagination/gov-pagination.js.map +0 -1
- package/dist/collection/components/gov-pagination/gov-pagination.types.js +0 -2
- package/dist/collection/components/gov-pagination/gov-pagination.types.js.map +0 -1
- package/dist/collection/components/gov-pagination/pagination.js +0 -55
- package/dist/collection/components/gov-pagination/pagination.js.map +0 -1
- package/dist/collection/components/gov-promp/constants.js +0 -13
- package/dist/collection/components/gov-promp/constants.js.map +0 -1
- package/dist/collection/components/gov-promp/gov-prompt.css +0 -348
- package/dist/collection/components/gov-promp/gov-prompt.js +0 -334
- package/dist/collection/components/gov-promp/gov-prompt.js.map +0 -1
- package/dist/collection/components/gov-side-nav/constants.js +0 -16
- package/dist/collection/components/gov-side-nav/constants.js.map +0 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +0 -384
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js +0 -2
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js.map +0 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +0 -336
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +0 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav.css +0 -237
- package/dist/collection/components/gov-side-nav/gov-side-nav.js +0 -171
- package/dist/collection/components/gov-side-nav/gov-side-nav.js.map +0 -1
- package/dist/collection/components/gov-spacer/constants.js +0 -15
- package/dist/collection/components/gov-spacer/constants.js.map +0 -1
- package/dist/collection/components/gov-spacer/gov-spacer.css +0 -302
- package/dist/collection/components/gov-spacer/gov-spacer.js +0 -97
- package/dist/collection/components/gov-spacer/gov-spacer.js.map +0 -1
- package/dist/collection/components/gov-statsbar/constants.js +0 -18
- package/dist/collection/components/gov-statsbar/constants.js.map +0 -1
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +0 -296
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +0 -66
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +0 -1
- package/dist/collection/components/gov-statsbar/gov-statsbar.css +0 -281
- package/dist/collection/components/gov-statsbar/gov-statsbar.js +0 -104
- package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +0 -1
- package/dist/collection/components/gov-stepper/constants.js +0 -21
- package/dist/collection/components/gov-stepper/constants.js.map +0 -1
- package/dist/collection/components/gov-stepper/gov-stepper-item.css +0 -467
- package/dist/collection/components/gov-stepper/gov-stepper-item.d.js +0 -2
- package/dist/collection/components/gov-stepper/gov-stepper-item.d.js.map +0 -1
- package/dist/collection/components/gov-stepper/gov-stepper-item.js +0 -250
- package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +0 -1
- package/dist/collection/components/gov-stepper/gov-stepper.css +0 -237
- package/dist/collection/components/gov-stepper/gov-stepper.js +0 -99
- package/dist/collection/components/gov-stepper/gov-stepper.js.map +0 -1
- package/dist/collection/components/gov-tabs/constants.js +0 -25
- package/dist/collection/components/gov-tabs/constants.js.map +0 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.css +0 -238
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +0 -186
- package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +0 -1
- package/dist/collection/components/gov-tabs/gov-tabs.css +0 -389
- package/dist/collection/components/gov-tabs/gov-tabs.js +0 -440
- package/dist/collection/components/gov-tabs/gov-tabs.js.map +0 -1
- package/dist/collection/components/gov-tabs/gov-tabs.types.js +0 -2
- package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +0 -1
- package/dist/collection/components/gov-tag/constants.js +0 -4
- package/dist/collection/components/gov-tag/constants.js.map +0 -1
- package/dist/collection/components/gov-tag/gov-tag.css +0 -1259
- package/dist/collection/components/gov-tag/gov-tag.js +0 -157
- package/dist/collection/components/gov-tag/gov-tag.js.map +0 -1
- package/dist/collection/components/gov-tile/constants.js +0 -10
- package/dist/collection/components/gov-tile/constants.js.map +0 -1
- package/dist/collection/components/gov-tile/container/constants.js +0 -4
- package/dist/collection/components/gov-tile/container/constants.js.map +0 -1
- package/dist/collection/components/gov-tile/container/gov-tiles.css +0 -319
- package/dist/collection/components/gov-tile/container/gov-tiles.js +0 -70
- package/dist/collection/components/gov-tile/container/gov-tiles.js.map +0 -1
- package/dist/collection/components/gov-tile/gov-tile.css +0 -316
- package/dist/collection/components/gov-tile/gov-tile.js +0 -108
- package/dist/collection/components/gov-tile/gov-tile.js.map +0 -1
- package/dist/collection/components/gov-toast/constants.js +0 -13
- package/dist/collection/components/gov-toast/constants.js.map +0 -1
- package/dist/collection/components/gov-toast/gov-toast.css +0 -403
- package/dist/collection/components/gov-toast/gov-toast.js +0 -267
- package/dist/collection/components/gov-toast/gov-toast.js.map +0 -1
- package/dist/collection/components/gov-tooltip/constants.js +0 -19
- package/dist/collection/components/gov-tooltip/constants.js.map +0 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +0 -347
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +0 -159
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +0 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.css +0 -241
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +0 -397
- package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +0 -1
- package/dist/collection/components/gov-wizard/constants.js +0 -20
- package/dist/collection/components/gov-wizard/constants.js.map +0 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.css +0 -474
- package/dist/collection/components/gov-wizard/gov-wizard-item.d.js +0 -2
- package/dist/collection/components/gov-wizard/gov-wizard-item.d.js.map +0 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.js +0 -387
- package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +0 -1
- package/dist/collection/components/gov-wizard/gov-wizard-item.types.js +0 -2
- package/dist/collection/components/gov-wizard/gov-wizard-item.types.js.map +0 -1
- package/dist/collection/components/gov-wizard/gov-wizard.css +0 -240
- package/dist/collection/components/gov-wizard/gov-wizard.js +0 -173
- package/dist/collection/components/gov-wizard/gov-wizard.js.map +0 -1
- package/dist/collection/core/constants/sizes.js +0 -15
- package/dist/collection/core/constants/sizes.js.map +0 -1
- package/dist/collection/core/constants/tags.js +0 -14
- package/dist/collection/core/constants/tags.js.map +0 -1
- package/dist/collection/core/constants/tokens.js +0 -17
- package/dist/collection/core/constants/tokens.js.map +0 -1
- package/dist/collection/core/constants/variants.js +0 -15
- package/dist/collection/core/constants/variants.js.map +0 -1
- package/dist/collection/data/color-definitions.js +0 -307
- package/dist/collection/data/font-definitions.js +0 -94
- package/dist/collection/helpers/Dom/form.js +0 -72
- package/dist/collection/helpers/Dom/form.js.map +0 -1
- package/dist/collection/helpers/Dom/form.types.js +0 -2
- package/dist/collection/helpers/Dom/form.types.js.map +0 -1
- package/dist/collection/helpers/Dom/template.js +0 -117
- package/dist/collection/helpers/Dom/template.js.map +0 -1
- package/dist/collection/helpers/Dom/template.types.js +0 -2
- package/dist/collection/helpers/Dom/template.types.js.map +0 -1
- package/dist/collection/helpers/Dom/win.js +0 -27
- package/dist/collection/helpers/Dom/win.js.map +0 -1
- package/dist/collection/helpers/Fragment.js +0 -2
- package/dist/collection/helpers/Fragment.js.map +0 -1
- package/dist/collection/helpers/Log/gov.log.js +0 -21
- package/dist/collection/helpers/Log/gov.log.js.map +0 -1
- package/dist/collection/helpers/Validate/props.js +0 -10
- package/dist/collection/helpers/Validate/props.js.map +0 -1
- package/dist/collection/helpers/Validate/wcag.js +0 -58
- package/dist/collection/helpers/Validate/wcag.js.map +0 -1
- package/dist/collection/index.js +0 -2
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/pages/Accordion.js +0 -239
- package/dist/collection/pages/Accordion.js.map +0 -1
- package/dist/collection/pages/Breadcrumbs.js +0 -36
- package/dist/collection/pages/Breadcrumbs.js.map +0 -1
- package/dist/collection/pages/Button.js +0 -1346
- package/dist/collection/pages/Button.js.map +0 -1
- package/dist/collection/pages/Card.js +0 -104
- package/dist/collection/pages/Card.js.map +0 -1
- package/dist/collection/pages/Chip.js +0 -381
- package/dist/collection/pages/Chip.js.map +0 -1
- package/dist/collection/pages/Container.js +0 -15
- package/dist/collection/pages/Container.js.map +0 -1
- package/dist/collection/pages/ControlGroup.js +0 -301
- package/dist/collection/pages/ControlGroup.js.map +0 -1
- package/dist/collection/pages/Cookiebar.js +0 -29
- package/dist/collection/pages/Cookiebar.js.map +0 -1
- package/dist/collection/pages/Empty.js +0 -43
- package/dist/collection/pages/Empty.js.map +0 -1
- package/dist/collection/pages/Error.js +0 -16
- package/dist/collection/pages/Error.js.map +0 -1
- package/dist/collection/pages/FormLabel.js +0 -13
- package/dist/collection/pages/FormLabel.js.map +0 -1
- package/dist/collection/pages/FormMessage.js +0 -82
- package/dist/collection/pages/FormMessage.js.map +0 -1
- package/dist/collection/pages/Forms.js +0 -1574
- package/dist/collection/pages/Forms.js.map +0 -1
- package/dist/collection/pages/FormsRestructure.js +0 -13
- package/dist/collection/pages/FormsRestructure.js.map +0 -1
- package/dist/collection/pages/Grid.js +0 -92
- package/dist/collection/pages/Grid.js.map +0 -1
- package/dist/collection/pages/Home.js +0 -51
- package/dist/collection/pages/Home.js.map +0 -1
- package/dist/collection/pages/Infobar.js +0 -149
- package/dist/collection/pages/Infobar.js.map +0 -1
- package/dist/collection/pages/Layout.js +0 -97
- package/dist/collection/pages/Layout.js.map +0 -1
- package/dist/collection/pages/Loading.js +0 -95
- package/dist/collection/pages/Loading.js.map +0 -1
- package/dist/collection/pages/Message.js +0 -94
- package/dist/collection/pages/Message.js.map +0 -1
- package/dist/collection/pages/Modal.js +0 -57
- package/dist/collection/pages/Modal.js.map +0 -1
- package/dist/collection/pages/Nav.js +0 -30
- package/dist/collection/pages/Nav.js.map +0 -1
- package/dist/collection/pages/Pagination.js +0 -38
- package/dist/collection/pages/Pagination.js.map +0 -1
- package/dist/collection/pages/Prompt.js +0 -48
- package/dist/collection/pages/Prompt.js.map +0 -1
- package/dist/collection/pages/SideNav.js +0 -117
- package/dist/collection/pages/SideNav.js.map +0 -1
- package/dist/collection/pages/Spacer.js +0 -25
- package/dist/collection/pages/Spacer.js.map +0 -1
- package/dist/collection/pages/Statsbar.js +0 -202
- package/dist/collection/pages/Statsbar.js.map +0 -1
- package/dist/collection/pages/Stepper.js +0 -88
- package/dist/collection/pages/Stepper.js.map +0 -1
- package/dist/collection/pages/Tabs.js +0 -323
- package/dist/collection/pages/Tabs.js.map +0 -1
- package/dist/collection/pages/Tag.js +0 -253
- package/dist/collection/pages/Tag.js.map +0 -1
- package/dist/collection/pages/Tiles.js +0 -125
- package/dist/collection/pages/Tiles.js.map +0 -1
- package/dist/collection/pages/ToastMessage.js +0 -47
- package/dist/collection/pages/ToastMessage.js.map +0 -1
- package/dist/collection/pages/ToastMessageCountdown.js +0 -47
- package/dist/collection/pages/ToastMessageCountdown.js.map +0 -1
- package/dist/collection/pages/Tooltip.js +0 -161
- package/dist/collection/pages/Tooltip.js.map +0 -1
- package/dist/collection/pages/Typography.js +0 -75
- package/dist/collection/pages/Typography.js.map +0 -1
- package/dist/collection/pages/Wizard.js +0 -88
- package/dist/collection/pages/Wizard.js.map +0 -1
- package/dist/collection/types/event.types.js +0 -2
- package/dist/collection/types/event.types.js.map +0 -1
- package/dist/collection/types/interfaces.js +0 -2
- package/dist/collection/types/interfaces.js.map +0 -1
- package/dist/collection/utils/array.utils.js +0 -7
- package/dist/collection/utils/array.utils.js.map +0 -1
- package/dist/collection/utils/bool.utils.js +0 -15
- package/dist/collection/utils/bool.utils.js.map +0 -1
- package/dist/collection/utils/ds.utils.js +0 -5
- package/dist/collection/utils/ds.utils.js.map +0 -1
- package/dist/collection/utils/file.utils.js +0 -26
- package/dist/collection/utils/file.utils.js.map +0 -1
- package/dist/collection/utils/helpers.types.js +0 -54
- package/dist/collection/utils/helpers.types.js.map +0 -1
- package/dist/collection/utils/icon.utils.js +0 -32
- package/dist/collection/utils/icon.utils.js.map +0 -1
- package/dist/collection/utils/number.utils.js +0 -4
- package/dist/collection/utils/number.utils.js.map +0 -1
- package/dist/collection/utils/string.utils.js +0 -17
- package/dist/collection/utils/string.utils.js.map +0 -1
- package/dist/collection/utils/utils.js +0 -35
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/gov-accordion-item.d.ts +0 -11
- package/dist/components/gov-accordion-item.js +0 -2
- package/dist/components/gov-accordion-item.js.map +0 -1
- package/dist/components/gov-accordion.d.ts +0 -11
- package/dist/components/gov-accordion.js +0 -2
- package/dist/components/gov-accordion.js.map +0 -1
- package/dist/components/gov-app.d.ts +0 -11
- package/dist/components/gov-app.js +0 -2
- package/dist/components/gov-app.js.map +0 -1
- package/dist/components/gov-attachments-item.d.ts +0 -11
- package/dist/components/gov-attachments-item.js +0 -2
- package/dist/components/gov-attachments-item.js.map +0 -1
- package/dist/components/gov-attachments.d.ts +0 -11
- package/dist/components/gov-attachments.js +0 -2
- package/dist/components/gov-attachments.js.map +0 -1
- package/dist/components/gov-backdrop.d.ts +0 -11
- package/dist/components/gov-backdrop.js +0 -2
- package/dist/components/gov-backdrop.js.map +0 -1
- package/dist/components/gov-breadcrumbs.d.ts +0 -11
- package/dist/components/gov-breadcrumbs.js +0 -2
- package/dist/components/gov-breadcrumbs.js.map +0 -1
- package/dist/components/gov-button.d.ts +0 -11
- package/dist/components/gov-button.js +0 -2
- package/dist/components/gov-button.js.map +0 -1
- package/dist/components/gov-card.d.ts +0 -11
- package/dist/components/gov-card.js +0 -2
- package/dist/components/gov-card.js.map +0 -1
- package/dist/components/gov-chip.d.ts +0 -11
- package/dist/components/gov-chip.js +0 -2
- package/dist/components/gov-chip.js.map +0 -1
- package/dist/components/gov-container.d.ts +0 -11
- package/dist/components/gov-container.js +0 -2
- package/dist/components/gov-container.js.map +0 -1
- package/dist/components/gov-control-group.d.ts +0 -11
- package/dist/components/gov-control-group.js +0 -2
- package/dist/components/gov-control-group.js.map +0 -1
- package/dist/components/gov-cookiebar.d.ts +0 -11
- package/dist/components/gov-cookiebar.js +0 -2
- package/dist/components/gov-cookiebar.js.map +0 -1
- package/dist/components/gov-dropdown.d.ts +0 -11
- package/dist/components/gov-dropdown.js +0 -2
- package/dist/components/gov-dropdown.js.map +0 -1
- package/dist/components/gov-empty.d.ts +0 -11
- package/dist/components/gov-empty.js +0 -2
- package/dist/components/gov-empty.js.map +0 -1
- package/dist/components/gov-error-code.d.ts +0 -11
- package/dist/components/gov-error-code.js +0 -2
- package/dist/components/gov-error-code.js.map +0 -1
- package/dist/components/gov-form-autocomplete.d.ts +0 -11
- package/dist/components/gov-form-autocomplete.js +0 -2
- package/dist/components/gov-form-autocomplete.js.map +0 -1
- package/dist/components/gov-form-checkbox.d.ts +0 -11
- package/dist/components/gov-form-checkbox.js +0 -2
- package/dist/components/gov-form-checkbox.js.map +0 -1
- package/dist/components/gov-form-control.d.ts +0 -11
- package/dist/components/gov-form-control.js +0 -2
- package/dist/components/gov-form-control.js.map +0 -1
- package/dist/components/gov-form-file.d.ts +0 -11
- package/dist/components/gov-form-file.js +0 -2
- package/dist/components/gov-form-file.js.map +0 -1
- package/dist/components/gov-form-group.d.ts +0 -11
- package/dist/components/gov-form-group.js +0 -2
- package/dist/components/gov-form-group.js.map +0 -1
- package/dist/components/gov-form-input.d.ts +0 -11
- package/dist/components/gov-form-input.js +0 -2
- package/dist/components/gov-form-input.js.map +0 -1
- package/dist/components/gov-form-label.d.ts +0 -11
- package/dist/components/gov-form-label.js +0 -2
- package/dist/components/gov-form-label.js.map +0 -1
- package/dist/components/gov-form-message.d.ts +0 -11
- package/dist/components/gov-form-message.js +0 -2
- package/dist/components/gov-form-message.js.map +0 -1
- package/dist/components/gov-form-multi-select.d.ts +0 -11
- package/dist/components/gov-form-multi-select.js +0 -2
- package/dist/components/gov-form-multi-select.js.map +0 -1
- package/dist/components/gov-form-password-power.d.ts +0 -11
- package/dist/components/gov-form-password-power.js +0 -2
- package/dist/components/gov-form-password-power.js.map +0 -1
- package/dist/components/gov-form-radio.d.ts +0 -11
- package/dist/components/gov-form-radio.js +0 -2
- package/dist/components/gov-form-radio.js.map +0 -1
- package/dist/components/gov-form-search.d.ts +0 -11
- package/dist/components/gov-form-search.js +0 -2
- package/dist/components/gov-form-search.js.map +0 -1
- package/dist/components/gov-form-select.d.ts +0 -11
- package/dist/components/gov-form-select.js +0 -2
- package/dist/components/gov-form-select.js.map +0 -1
- package/dist/components/gov-form-switch.d.ts +0 -11
- package/dist/components/gov-form-switch.js +0 -2
- package/dist/components/gov-form-switch.js.map +0 -1
- package/dist/components/gov-grid-item.d.ts +0 -11
- package/dist/components/gov-grid-item.js +0 -2
- package/dist/components/gov-grid-item.js.map +0 -1
- package/dist/components/gov-grid.d.ts +0 -11
- package/dist/components/gov-grid.js +0 -2
- package/dist/components/gov-grid.js.map +0 -1
- package/dist/components/gov-icon.d.ts +0 -11
- package/dist/components/gov-icon.js +0 -2
- package/dist/components/gov-icon.js.map +0 -1
- package/dist/components/gov-infobar.d.ts +0 -11
- package/dist/components/gov-infobar.js +0 -2
- package/dist/components/gov-infobar.js.map +0 -1
- package/dist/components/gov-layout-column.d.ts +0 -11
- package/dist/components/gov-layout-column.js +0 -2
- package/dist/components/gov-layout-column.js.map +0 -1
- package/dist/components/gov-layout.d.ts +0 -11
- package/dist/components/gov-layout.js +0 -2
- package/dist/components/gov-layout.js.map +0 -1
- package/dist/components/gov-loading.d.ts +0 -11
- package/dist/components/gov-loading.js +0 -2
- package/dist/components/gov-loading.js.map +0 -1
- package/dist/components/gov-message.d.ts +0 -11
- package/dist/components/gov-message.js +0 -2
- package/dist/components/gov-message.js.map +0 -1
- package/dist/components/gov-modal.d.ts +0 -11
- package/dist/components/gov-modal.js +0 -2
- package/dist/components/gov-modal.js.map +0 -1
- package/dist/components/gov-nav-item.d.ts +0 -11
- package/dist/components/gov-nav-item.js +0 -2
- package/dist/components/gov-nav-item.js.map +0 -1
- package/dist/components/gov-nav.d.ts +0 -11
- package/dist/components/gov-nav.js +0 -2
- package/dist/components/gov-nav.js.map +0 -1
- package/dist/components/gov-pagination.d.ts +0 -11
- package/dist/components/gov-pagination.js +0 -2
- package/dist/components/gov-pagination.js.map +0 -1
- package/dist/components/gov-prompt.d.ts +0 -11
- package/dist/components/gov-prompt.js +0 -2
- package/dist/components/gov-prompt.js.map +0 -1
- package/dist/components/gov-side-nav-item.d.ts +0 -11
- package/dist/components/gov-side-nav-item.js +0 -2
- package/dist/components/gov-side-nav-item.js.map +0 -1
- package/dist/components/gov-side-nav.d.ts +0 -11
- package/dist/components/gov-side-nav.js +0 -2
- package/dist/components/gov-side-nav.js.map +0 -1
- package/dist/components/gov-skeleton.d.ts +0 -11
- package/dist/components/gov-skeleton.js +0 -2
- package/dist/components/gov-skeleton.js.map +0 -1
- package/dist/components/gov-spacer.d.ts +0 -11
- package/dist/components/gov-spacer.js +0 -2
- package/dist/components/gov-spacer.js.map +0 -1
- package/dist/components/gov-statsbar-item.d.ts +0 -11
- package/dist/components/gov-statsbar-item.js +0 -2
- package/dist/components/gov-statsbar-item.js.map +0 -1
- package/dist/components/gov-statsbar.d.ts +0 -11
- package/dist/components/gov-statsbar.js +0 -2
- package/dist/components/gov-statsbar.js.map +0 -1
- package/dist/components/gov-stepper-item.d.ts +0 -11
- package/dist/components/gov-stepper-item.js +0 -2
- package/dist/components/gov-stepper-item.js.map +0 -1
- package/dist/components/gov-stepper.d.ts +0 -11
- package/dist/components/gov-stepper.js +0 -2
- package/dist/components/gov-stepper.js.map +0 -1
- package/dist/components/gov-tabs-item.d.ts +0 -11
- package/dist/components/gov-tabs-item.js +0 -2
- package/dist/components/gov-tabs-item.js.map +0 -1
- package/dist/components/gov-tabs.d.ts +0 -11
- package/dist/components/gov-tabs.js +0 -2
- package/dist/components/gov-tabs.js.map +0 -1
- package/dist/components/gov-tag.d.ts +0 -11
- package/dist/components/gov-tag.js +0 -2
- package/dist/components/gov-tag.js.map +0 -1
- package/dist/components/gov-tile.d.ts +0 -11
- package/dist/components/gov-tile.js +0 -2
- package/dist/components/gov-tile.js.map +0 -1
- package/dist/components/gov-tiles.d.ts +0 -11
- package/dist/components/gov-tiles.js +0 -2
- package/dist/components/gov-tiles.js.map +0 -1
- package/dist/components/gov-toast.d.ts +0 -11
- package/dist/components/gov-toast.js +0 -2
- package/dist/components/gov-toast.js.map +0 -1
- package/dist/components/gov-tooltip-content.d.ts +0 -11
- package/dist/components/gov-tooltip-content.js +0 -2
- package/dist/components/gov-tooltip-content.js.map +0 -1
- package/dist/components/gov-tooltip.d.ts +0 -11
- package/dist/components/gov-tooltip.js +0 -2
- package/dist/components/gov-tooltip.js.map +0 -1
- package/dist/components/gov-wizard-item.d.ts +0 -11
- package/dist/components/gov-wizard-item.js +0 -2
- package/dist/components/gov-wizard-item.js.map +0 -1
- package/dist/components/gov-wizard.d.ts +0 -11
- package/dist/components/gov-wizard.js +0 -2
- package/dist/components/gov-wizard.js.map +0 -1
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -2
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-003e6cca.js +0 -2
- package/dist/components/p-003e6cca.js.map +0 -1
- package/dist/components/p-036e0f9e.js +0 -2
- package/dist/components/p-036e0f9e.js.map +0 -1
- package/dist/components/p-03990da5.js +0 -2
- package/dist/components/p-03990da5.js.map +0 -1
- package/dist/components/p-17ebfe85.js +0 -2
- package/dist/components/p-17ebfe85.js.map +0 -1
- package/dist/components/p-1c1d0bbe.js +0 -2
- package/dist/components/p-1c1d0bbe.js.map +0 -1
- package/dist/components/p-1f84a302.js +0 -2
- package/dist/components/p-1f84a302.js.map +0 -1
- package/dist/components/p-24636c53.js +0 -2
- package/dist/components/p-24636c53.js.map +0 -1
- package/dist/components/p-28e59384.js +0 -2
- package/dist/components/p-28e59384.js.map +0 -1
- package/dist/components/p-2bf5b814.js +0 -2
- package/dist/components/p-2bf5b814.js.map +0 -1
- package/dist/components/p-2dee9951.js +0 -2
- package/dist/components/p-2dee9951.js.map +0 -1
- package/dist/components/p-3464136c.js +0 -2
- package/dist/components/p-3464136c.js.map +0 -1
- package/dist/components/p-3c71d697.js +0 -2
- package/dist/components/p-3c71d697.js.map +0 -1
- package/dist/components/p-4ce7b250.js +0 -2
- package/dist/components/p-4ce7b250.js.map +0 -1
- package/dist/components/p-4ff831e3.js +0 -2
- package/dist/components/p-4ff831e3.js.map +0 -1
- package/dist/components/p-53e02bee.js +0 -2
- package/dist/components/p-53e02bee.js.map +0 -1
- package/dist/components/p-55500e5a.js +0 -2
- package/dist/components/p-55500e5a.js.map +0 -1
- package/dist/components/p-570803ab.js +0 -2
- package/dist/components/p-570803ab.js.map +0 -1
- package/dist/components/p-5defdc5e.js +0 -2
- package/dist/components/p-5defdc5e.js.map +0 -1
- package/dist/components/p-619c90a3.js +0 -2
- package/dist/components/p-619c90a3.js.map +0 -1
- package/dist/components/p-6278531b.js +0 -2
- package/dist/components/p-6278531b.js.map +0 -1
- package/dist/components/p-6834d779.js +0 -2
- package/dist/components/p-6834d779.js.map +0 -1
- package/dist/components/p-700b19da.js +0 -2
- package/dist/components/p-700b19da.js.map +0 -1
- package/dist/components/p-74b2311a.js +0 -2
- package/dist/components/p-74b2311a.js.map +0 -1
- package/dist/components/p-7f2c9830.js +0 -2
- package/dist/components/p-7f2c9830.js.map +0 -1
- package/dist/components/p-9144dde1.js +0 -2
- package/dist/components/p-9144dde1.js.map +0 -1
- package/dist/components/p-9795ad94.js +0 -2
- package/dist/components/p-9795ad94.js.map +0 -1
- package/dist/components/p-9a4c910d.js +0 -2
- package/dist/components/p-9a4c910d.js.map +0 -1
- package/dist/components/p-a6d14a47.js +0 -2
- package/dist/components/p-a6d14a47.js.map +0 -1
- package/dist/components/p-b526e440.js +0 -2
- package/dist/components/p-b526e440.js.map +0 -1
- package/dist/components/p-b72a7bed.js +0 -2
- package/dist/components/p-b72a7bed.js.map +0 -1
- package/dist/components/p-be4aab0e.js +0 -2
- package/dist/components/p-be4aab0e.js.map +0 -1
- package/dist/components/p-d65d26d3.js +0 -2
- package/dist/components/p-d65d26d3.js.map +0 -1
- package/dist/components/p-db1f0452.js +0 -2
- package/dist/components/p-db1f0452.js.map +0 -1
- package/dist/components/p-dcb5fb35.js +0 -2
- package/dist/components/p-dcb5fb35.js.map +0 -1
- package/dist/components/p-e9e8b6ed.js +0 -2
- package/dist/components/p-e9e8b6ed.js.map +0 -1
- package/dist/components/p-fa1e4aea.js +0 -2
- package/dist/components/p-fa1e4aea.js.map +0 -1
- package/dist/components/p-ff7365ae.js +0 -2
- package/dist/components/p-ff7365ae.js.map +0 -1
- package/dist/components/p-ffb7495c.js +0 -2
- package/dist/components/p-ffb7495c.js.map +0 -1
- package/dist/core/core.css +0 -1
- package/dist/core/core.esm.js +0 -2
- package/dist/core/core.esm.js.map +0 -1
- package/dist/core/index.esm.js +0 -2
- package/dist/core/index.esm.js.map +0 -1
- package/dist/core/p-003e6cca.js +0 -2
- package/dist/core/p-003e6cca.js.map +0 -1
- package/dist/core/p-01d928c5.entry.js +0 -2
- package/dist/core/p-01d928c5.entry.js.map +0 -1
- package/dist/core/p-03990da5.js +0 -2
- package/dist/core/p-03990da5.js.map +0 -1
- package/dist/core/p-044f4c35.entry.js +0 -2
- package/dist/core/p-044f4c35.entry.js.map +0 -1
- package/dist/core/p-09966eaa.entry.js +0 -2
- package/dist/core/p-09966eaa.entry.js.map +0 -1
- package/dist/core/p-0e5fa8bf.js +0 -2
- package/dist/core/p-0e5fa8bf.js.map +0 -1
- package/dist/core/p-1116fec6.entry.js +0 -2
- package/dist/core/p-1116fec6.entry.js.map +0 -1
- package/dist/core/p-141d9af4.entry.js +0 -2
- package/dist/core/p-141d9af4.entry.js.map +0 -1
- package/dist/core/p-17ebfe85.js +0 -2
- package/dist/core/p-17ebfe85.js.map +0 -1
- package/dist/core/p-1c1d0bbe.js +0 -2
- package/dist/core/p-1c1d0bbe.js.map +0 -1
- package/dist/core/p-1fee1753.entry.js +0 -2
- package/dist/core/p-1fee1753.entry.js.map +0 -1
- package/dist/core/p-22abe742.entry.js +0 -2
- package/dist/core/p-22abe742.entry.js.map +0 -1
- package/dist/core/p-24636c53.js +0 -2
- package/dist/core/p-24636c53.js.map +0 -1
- package/dist/core/p-2712444e.entry.js +0 -2
- package/dist/core/p-2712444e.entry.js.map +0 -1
- package/dist/core/p-28e59384.js +0 -2
- package/dist/core/p-28e59384.js.map +0 -1
- package/dist/core/p-2969eb69.entry.js +0 -2
- package/dist/core/p-2969eb69.entry.js.map +0 -1
- package/dist/core/p-2bf5b814.js +0 -2
- package/dist/core/p-2bf5b814.js.map +0 -1
- package/dist/core/p-2f858bf5.entry.js +0 -2
- package/dist/core/p-2f858bf5.entry.js.map +0 -1
- package/dist/core/p-3464136c.js +0 -2
- package/dist/core/p-3464136c.js.map +0 -1
- package/dist/core/p-3b42950e.entry.js +0 -2
- package/dist/core/p-3b42950e.entry.js.map +0 -1
- package/dist/core/p-3c12c766.entry.js +0 -2
- package/dist/core/p-3c12c766.entry.js.map +0 -1
- package/dist/core/p-41c18f64.entry.js +0 -2
- package/dist/core/p-41c18f64.entry.js.map +0 -1
- package/dist/core/p-497c90ea.entry.js +0 -2
- package/dist/core/p-497c90ea.entry.js.map +0 -1
- package/dist/core/p-4a235ef5.entry.js +0 -2
- package/dist/core/p-4a235ef5.entry.js.map +0 -1
- package/dist/core/p-4c55142b.js +0 -2
- package/dist/core/p-4c55142b.js.map +0 -1
- package/dist/core/p-55500e5a.js +0 -2
- package/dist/core/p-55500e5a.js.map +0 -1
- package/dist/core/p-5bc604a3.js +0 -3
- package/dist/core/p-5bc604a3.js.map +0 -1
- package/dist/core/p-5defdc5e.js +0 -2
- package/dist/core/p-5defdc5e.js.map +0 -1
- package/dist/core/p-60963ed7.entry.js +0 -2
- package/dist/core/p-60963ed7.entry.js.map +0 -1
- package/dist/core/p-6278531b.js +0 -2
- package/dist/core/p-6278531b.js.map +0 -1
- package/dist/core/p-6675a0f0.entry.js +0 -2
- package/dist/core/p-6675a0f0.entry.js.map +0 -1
- package/dist/core/p-67138ae9.entry.js +0 -2
- package/dist/core/p-67138ae9.entry.js.map +0 -1
- package/dist/core/p-6834d779.js +0 -2
- package/dist/core/p-6834d779.js.map +0 -1
- package/dist/core/p-6dc942b8.entry.js +0 -2
- package/dist/core/p-6dc942b8.entry.js.map +0 -1
- package/dist/core/p-705efbf1.entry.js +0 -2
- package/dist/core/p-705efbf1.entry.js.map +0 -1
- package/dist/core/p-73b7585b.entry.js +0 -2
- package/dist/core/p-73b7585b.entry.js.map +0 -1
- package/dist/core/p-74882c70.entry.js +0 -2
- package/dist/core/p-74882c70.entry.js.map +0 -1
- package/dist/core/p-74b2311a.js +0 -2
- package/dist/core/p-74b2311a.js.map +0 -1
- package/dist/core/p-7724b535.js +0 -2
- package/dist/core/p-7724b535.js.map +0 -1
- package/dist/core/p-7757e4a1.entry.js +0 -2
- package/dist/core/p-7757e4a1.entry.js.map +0 -1
- package/dist/core/p-78942f76.entry.js +0 -2
- package/dist/core/p-78942f76.entry.js.map +0 -1
- package/dist/core/p-7f2c9830.js +0 -2
- package/dist/core/p-7f2c9830.js.map +0 -1
- package/dist/core/p-81593c86.entry.js +0 -2
- package/dist/core/p-81593c86.entry.js.map +0 -1
- package/dist/core/p-83e998d8.entry.js +0 -2
- package/dist/core/p-83e998d8.entry.js.map +0 -1
- package/dist/core/p-861714f2.entry.js +0 -2
- package/dist/core/p-861714f2.entry.js.map +0 -1
- package/dist/core/p-89b3e4d4.entry.js +0 -2
- package/dist/core/p-89b3e4d4.entry.js.map +0 -1
- package/dist/core/p-9144dde1.js +0 -2
- package/dist/core/p-9144dde1.js.map +0 -1
- package/dist/core/p-92af05f2.entry.js +0 -2
- package/dist/core/p-92af05f2.entry.js.map +0 -1
- package/dist/core/p-96d141a3.entry.js +0 -2
- package/dist/core/p-96d141a3.entry.js.map +0 -1
- package/dist/core/p-9a4c910d.js +0 -2
- package/dist/core/p-9a4c910d.js.map +0 -1
- package/dist/core/p-9c6699d6.entry.js +0 -2
- package/dist/core/p-9c6699d6.entry.js.map +0 -1
- package/dist/core/p-9dab01be.js +0 -2
- package/dist/core/p-9dab01be.js.map +0 -1
- package/dist/core/p-a63bb91e.entry.js +0 -2
- package/dist/core/p-a63bb91e.entry.js.map +0 -1
- package/dist/core/p-a6b6dc73.entry.js +0 -2
- package/dist/core/p-a6b6dc73.entry.js.map +0 -1
- package/dist/core/p-a6d14a47.js +0 -2
- package/dist/core/p-a6d14a47.js.map +0 -1
- package/dist/core/p-ac5e5b2c.entry.js +0 -2
- package/dist/core/p-ac5e5b2c.entry.js.map +0 -1
- package/dist/core/p-b1184db4.entry.js +0 -2
- package/dist/core/p-b1184db4.entry.js.map +0 -1
- package/dist/core/p-b127c8a8.entry.js +0 -2
- package/dist/core/p-b127c8a8.entry.js.map +0 -1
- package/dist/core/p-b49293dc.entry.js +0 -2
- package/dist/core/p-b49293dc.entry.js.map +0 -1
- package/dist/core/p-b4a59c79.entry.js +0 -2
- package/dist/core/p-b4a59c79.entry.js.map +0 -1
- package/dist/core/p-b4ab0d15.entry.js +0 -2
- package/dist/core/p-b4ab0d15.entry.js.map +0 -1
- package/dist/core/p-b580666b.entry.js +0 -2
- package/dist/core/p-b580666b.entry.js.map +0 -1
- package/dist/core/p-b5e1ee46.entry.js +0 -2
- package/dist/core/p-b5e1ee46.entry.js.map +0 -1
- package/dist/core/p-b7d23697.entry.js +0 -2
- package/dist/core/p-b7d23697.entry.js.map +0 -1
- package/dist/core/p-bb7f0a66.entry.js +0 -2
- package/dist/core/p-bb7f0a66.entry.js.map +0 -1
- package/dist/core/p-bbc7a0b0.entry.js +0 -2
- package/dist/core/p-bbc7a0b0.entry.js.map +0 -1
- package/dist/core/p-be4aab0e.js +0 -2
- package/dist/core/p-be4aab0e.js.map +0 -1
- package/dist/core/p-c574ecc8.entry.js +0 -2
- package/dist/core/p-c574ecc8.entry.js.map +0 -1
- package/dist/core/p-ccf73a1a.entry.js +0 -2
- package/dist/core/p-ccf73a1a.entry.js.map +0 -1
- package/dist/core/p-d298dd9c.entry.js +0 -2
- package/dist/core/p-d298dd9c.entry.js.map +0 -1
- package/dist/core/p-d69599bc.entry.js +0 -2
- package/dist/core/p-d69599bc.entry.js.map +0 -1
- package/dist/core/p-db1f0452.js +0 -2
- package/dist/core/p-db1f0452.js.map +0 -1
- package/dist/core/p-dcb5fb35.js +0 -2
- package/dist/core/p-dcb5fb35.js.map +0 -1
- package/dist/core/p-de3429ab.entry.js +0 -2
- package/dist/core/p-de3429ab.entry.js.map +0 -1
- package/dist/core/p-e24236b0.entry.js +0 -2
- package/dist/core/p-e24236b0.entry.js.map +0 -1
- package/dist/core/p-e5c2f601.entry.js +0 -2
- package/dist/core/p-e5c2f601.entry.js.map +0 -1
- package/dist/core/p-ee4c58e3.entry.js +0 -2
- package/dist/core/p-ee4c58e3.entry.js.map +0 -1
- package/dist/core/p-f1227928.entry.js +0 -2
- package/dist/core/p-f1227928.entry.js.map +0 -1
- package/dist/core/p-f29b0193.entry.js +0 -2
- package/dist/core/p-f29b0193.entry.js.map +0 -1
- package/dist/core/p-f636a1ca.entry.js +0 -2
- package/dist/core/p-f636a1ca.entry.js.map +0 -1
- package/dist/core/p-fa1e4aea.js +0 -2
- package/dist/core/p-fa1e4aea.js.map +0 -1
- package/dist/core/p-fb51d693.entry.js +0 -2
- package/dist/core/p-fb51d693.entry.js.map +0 -1
- package/dist/core/p-fc2a1e14.entry.js +0 -2
- package/dist/core/p-fc2a1e14.entry.js.map +0 -1
- package/dist/core/p-fc8a29e9.entry.js +0 -2
- package/dist/core/p-fc8a29e9.entry.js.map +0 -1
- package/dist/core/p-fd4b0f54.entry.js +0 -2
- package/dist/core/p-fd4b0f54.entry.js.map +0 -1
- package/dist/core/p-ff7365ae.js +0 -2
- package/dist/core/p-ff7365ae.js.map +0 -1
- package/dist/core/p-ffb7495c.js +0 -2
- package/dist/core/p-ffb7495c.js.map +0 -1
- package/dist/esm/Fragment-8d8d54fb.js +0 -5
- package/dist/esm/Fragment-8d8d54fb.js.map +0 -1
- package/dist/esm/constants-09bda759.js +0 -25
- package/dist/esm/constants-09bda759.js.map +0 -1
- package/dist/esm/constants-2499979c.js +0 -24
- package/dist/esm/constants-2499979c.js.map +0 -1
- package/dist/esm/constants-27b48cd1.js +0 -22
- package/dist/esm/constants-27b48cd1.js.map +0 -1
- package/dist/esm/constants-2a283e9a.js +0 -18
- package/dist/esm/constants-2a283e9a.js.map +0 -1
- package/dist/esm/constants-2b14bb01.js +0 -10
- package/dist/esm/constants-2b14bb01.js.map +0 -1
- package/dist/esm/constants-34a29ae2.js +0 -33
- package/dist/esm/constants-34a29ae2.js.map +0 -1
- package/dist/esm/constants-3786b01b.js +0 -22
- package/dist/esm/constants-3786b01b.js.map +0 -1
- package/dist/esm/constants-3df712e2.js +0 -13
- package/dist/esm/constants-3df712e2.js.map +0 -1
- package/dist/esm/constants-47d7a8bc.js +0 -17
- package/dist/esm/constants-47d7a8bc.js.map +0 -1
- package/dist/esm/constants-6df4edc4.js +0 -29
- package/dist/esm/constants-6df4edc4.js.map +0 -1
- package/dist/esm/constants-78474786.js +0 -25
- package/dist/esm/constants-78474786.js.map +0 -1
- package/dist/esm/constants-867ac6e2.js +0 -19
- package/dist/esm/constants-867ac6e2.js.map +0 -1
- package/dist/esm/constants-887c5391.js +0 -23
- package/dist/esm/constants-887c5391.js.map +0 -1
- package/dist/esm/constants-d71c09e0.js +0 -12
- package/dist/esm/constants-d71c09e0.js.map +0 -1
- package/dist/esm/constants-ebec7de8.js +0 -12
- package/dist/esm/constants-ebec7de8.js.map +0 -1
- package/dist/esm/core.js +0 -43
- package/dist/esm/core.js.map +0 -1
- package/dist/esm/form-39dc6896.js +0 -145
- package/dist/esm/form-39dc6896.js.map +0 -1
- package/dist/esm/gov-accordion-item.entry.js +0 -98
- package/dist/esm/gov-accordion-item.entry.js.map +0 -1
- package/dist/esm/gov-accordion.entry.js +0 -73
- package/dist/esm/gov-accordion.entry.js.map +0 -1
- package/dist/esm/gov-app.entry.js +0 -9445
- package/dist/esm/gov-app.entry.js.map +0 -1
- package/dist/esm/gov-attachments_3.entry.js +0 -114
- package/dist/esm/gov-attachments_3.entry.js.map +0 -1
- package/dist/esm/gov-backdrop.entry.js +0 -46
- package/dist/esm/gov-backdrop.entry.js.map +0 -1
- package/dist/esm/gov-breadcrumbs.entry.js +0 -46
- package/dist/esm/gov-breadcrumbs.entry.js.map +0 -1
- package/dist/esm/gov-button.entry.js +0 -176
- package/dist/esm/gov-button.entry.js.map +0 -1
- package/dist/esm/gov-card.entry.js +0 -108
- package/dist/esm/gov-card.entry.js.map +0 -1
- package/dist/esm/gov-chip.entry.js +0 -104
- package/dist/esm/gov-chip.entry.js.map +0 -1
- package/dist/esm/gov-container.entry.js +0 -32
- package/dist/esm/gov-container.entry.js.map +0 -1
- package/dist/esm/gov-control-group.entry.js +0 -39
- package/dist/esm/gov-control-group.entry.js.map +0 -1
- package/dist/esm/gov-cookiebar.entry.js +0 -29
- package/dist/esm/gov-cookiebar.entry.js.map +0 -1
- package/dist/esm/gov-dropdown.entry.js +0 -131
- package/dist/esm/gov-dropdown.entry.js.map +0 -1
- package/dist/esm/gov-empty.entry.js +0 -27
- package/dist/esm/gov-empty.entry.js.map +0 -1
- package/dist/esm/gov-error-code.entry.js +0 -27
- package/dist/esm/gov-error-code.entry.js.map +0 -1
- package/dist/esm/gov-form-autocomplete.entry.js +0 -241
- package/dist/esm/gov-form-autocomplete.entry.js.map +0 -1
- package/dist/esm/gov-form-checkbox.entry.js +0 -127
- package/dist/esm/gov-form-checkbox.entry.js.map +0 -1
- package/dist/esm/gov-form-control.entry.js +0 -103
- package/dist/esm/gov-form-control.entry.js.map +0 -1
- package/dist/esm/gov-form-file.entry.js +0 -236
- package/dist/esm/gov-form-file.entry.js.map +0 -1
- package/dist/esm/gov-form-group.entry.js +0 -55
- package/dist/esm/gov-form-group.entry.js.map +0 -1
- package/dist/esm/gov-form-input.entry.js +0 -186
- package/dist/esm/gov-form-input.entry.js.map +0 -1
- package/dist/esm/gov-form-label.entry.js +0 -26
- package/dist/esm/gov-form-label.entry.js.map +0 -1
- package/dist/esm/gov-form-multi-select.entry.js +0 -300
- package/dist/esm/gov-form-multi-select.entry.js.map +0 -1
- package/dist/esm/gov-form-password-power.entry.js +0 -24
- package/dist/esm/gov-form-password-power.entry.js.map +0 -1
- package/dist/esm/gov-form-radio.entry.js +0 -127
- package/dist/esm/gov-form-radio.entry.js.map +0 -1
- package/dist/esm/gov-form-search.entry.js +0 -28
- package/dist/esm/gov-form-search.entry.js.map +0 -1
- package/dist/esm/gov-form-select.entry.js +0 -163
- package/dist/esm/gov-form-select.entry.js.map +0 -1
- package/dist/esm/gov-form-switch.entry.js +0 -127
- package/dist/esm/gov-form-switch.entry.js.map +0 -1
- package/dist/esm/gov-grid-item.entry.js +0 -26
- package/dist/esm/gov-grid-item.entry.js.map +0 -1
- package/dist/esm/gov-grid.entry.js +0 -24
- package/dist/esm/gov-grid.entry.js.map +0 -1
- package/dist/esm/gov-icon.entry.js +0 -131
- package/dist/esm/gov-icon.entry.js.map +0 -1
- package/dist/esm/gov-infobar.entry.js +0 -87
- package/dist/esm/gov-infobar.entry.js.map +0 -1
- package/dist/esm/gov-layout-column.entry.js +0 -21
- package/dist/esm/gov-layout-column.entry.js.map +0 -1
- package/dist/esm/gov-layout.entry.js +0 -30
- package/dist/esm/gov-layout.entry.js.map +0 -1
- package/dist/esm/gov-loading.entry.js +0 -26
- package/dist/esm/gov-loading.entry.js.map +0 -1
- package/dist/esm/gov-message.entry.js +0 -40
- package/dist/esm/gov-message.entry.js.map +0 -1
- package/dist/esm/gov-modal.entry.js +0 -102
- package/dist/esm/gov-modal.entry.js.map +0 -1
- package/dist/esm/gov-nav-item.entry.js +0 -35
- package/dist/esm/gov-nav-item.entry.js.map +0 -1
- package/dist/esm/gov-nav.entry.js +0 -38
- package/dist/esm/gov-nav.entry.js.map +0 -1
- package/dist/esm/gov-pagination.entry.js +0 -220
- package/dist/esm/gov-pagination.entry.js.map +0 -1
- package/dist/esm/gov-prompt.entry.js +0 -99
- package/dist/esm/gov-prompt.entry.js.map +0 -1
- package/dist/esm/gov-side-nav-item.entry.js +0 -83
- package/dist/esm/gov-side-nav-item.entry.js.map +0 -1
- package/dist/esm/gov-side-nav.entry.js +0 -52
- package/dist/esm/gov-side-nav.entry.js.map +0 -1
- package/dist/esm/gov-skeleton.entry.js +0 -113
- package/dist/esm/gov-skeleton.entry.js.map +0 -1
- package/dist/esm/gov-spacer.entry.js +0 -54
- package/dist/esm/gov-spacer.entry.js.map +0 -1
- package/dist/esm/gov-statsbar-item.entry.js +0 -36
- package/dist/esm/gov-statsbar-item.entry.js.map +0 -1
- package/dist/esm/gov-statsbar.entry.js +0 -49
- package/dist/esm/gov-statsbar.entry.js.map +0 -1
- package/dist/esm/gov-stepper-item.entry.js +0 -74
- package/dist/esm/gov-stepper-item.entry.js.map +0 -1
- package/dist/esm/gov-stepper.entry.js +0 -47
- package/dist/esm/gov-stepper.entry.js.map +0 -1
- package/dist/esm/gov-tabs-item.entry.js +0 -49
- package/dist/esm/gov-tabs-item.entry.js.map +0 -1
- package/dist/esm/gov-tabs.entry.js +0 -194
- package/dist/esm/gov-tabs.entry.js.map +0 -1
- package/dist/esm/gov-tag.entry.js +0 -53
- package/dist/esm/gov-tag.entry.js.map +0 -1
- package/dist/esm/gov-tile.entry.js +0 -38
- package/dist/esm/gov-tile.entry.js.map +0 -1
- package/dist/esm/gov-tiles.entry.js +0 -29
- package/dist/esm/gov-tiles.entry.js.map +0 -1
- package/dist/esm/gov-toast.entry.js +0 -97
- package/dist/esm/gov-toast.entry.js.map +0 -1
- package/dist/esm/gov-tooltip-content.entry.js +0 -50
- package/dist/esm/gov-tooltip-content.entry.js.map +0 -1
- package/dist/esm/gov-tooltip.entry.js +0 -220
- package/dist/esm/gov-tooltip.entry.js.map +0 -1
- package/dist/esm/gov-wizard-item.entry.js +0 -111
- package/dist/esm/gov-wizard-item.entry.js.map +0 -1
- package/dist/esm/gov-wizard.entry.js +0 -65
- package/dist/esm/gov-wizard.entry.js.map +0 -1
- package/dist/esm/gov.log-49da0221.js +0 -25
- package/dist/esm/gov.log-49da0221.js.map +0 -1
- package/dist/esm/helpers-bc0fd116.js +0 -17
- package/dist/esm/helpers-bc0fd116.js.map +0 -1
- package/dist/esm/index-eb59f132.js +0 -2686
- package/dist/esm/index-eb59f132.js.map +0 -1
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -11
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/props-a85d9c89.js +0 -14
- package/dist/esm/props-a85d9c89.js.map +0 -1
- package/dist/esm/sizes-6c5943b4.js +0 -18
- package/dist/esm/sizes-6c5943b4.js.map +0 -1
- package/dist/esm/string.utils-f268fc6b.js +0 -20
- package/dist/esm/string.utils-f268fc6b.js.map +0 -1
- package/dist/esm/template-df429738.js +0 -120
- package/dist/esm/template-df429738.js.map +0 -1
- package/dist/esm/utils-c057a3fa.js +0 -35
- package/dist/esm/utils-c057a3fa.js.map +0 -1
- package/dist/esm/variants-2b936d58.js +0 -18
- package/dist/esm/variants-2b936d58.js.map +0 -1
- package/dist/esm/wcag-7d25e12b.js +0 -62
- package/dist/esm/wcag-7d25e12b.js.map +0 -1
- package/dist/esm/win-1dbd3f5c.js +0 -31
- package/dist/esm/win-1dbd3f5c.js.map +0 -1
- package/dist/globals.d.ts +0 -2
- package/dist/hydrate/index.d.ts +0 -218
- package/dist/hydrate/index.js +0 -22095
- package/dist/hydrate/package.json +0 -6
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/stencil.config.js +0 -75
- package/dist/stencil.config.js.map +0 -1
- package/dist/types/Users/iwory/iWork/asseco/mv/gov-design-system-ce/packages/core/.stencil/packages/core/stencil.config.d.ts +0 -2
- package/dist/types/components/gov-accordion/constants.d.ts +0 -22
- package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +0 -58
- package/dist/types/components/gov-accordion/gov-accordion.d.ts +0 -42
- package/dist/types/components/gov-accordion/gov-accordion.types.d.ts +0 -9
- package/dist/types/components/gov-app/gov-app.d.ts +0 -40
- package/dist/types/components/gov-attachments/constants.d.ts +0 -11
- package/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +0 -4
- package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +0 -24
- package/dist/types/components/gov-attachments/gov-attachments.d.ts +0 -19
- package/dist/types/components/gov-backdrop/constants.d.ts +0 -4
- package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +0 -28
- package/dist/types/components/gov-breadcrumbs/constants.d.ts +0 -3
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +0 -4
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +0 -33
- package/dist/types/components/gov-button/button/constants.d.ts +0 -30
- package/dist/types/components/gov-button/button/gov-button.d.ts +0 -180
- package/dist/types/components/gov-button/button/gov-button.types.d.ts +0 -4
- package/dist/types/components/gov-button/dropdown/constants.d.ts +0 -10
- package/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +0 -34
- package/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +0 -4
- package/dist/types/components/gov-card/constants.d.ts +0 -13
- package/dist/types/components/gov-card/gov-card.d.ts +0 -60
- package/dist/types/components/gov-card/interfaces.d.ts +0 -4
- package/dist/types/components/gov-chip/constants.d.ts +0 -13
- package/dist/types/components/gov-chip/gov-chip.d.ts +0 -93
- package/dist/types/components/gov-container/constants.d.ts +0 -3
- package/dist/types/components/gov-container/gov-container.d.ts +0 -12
- package/dist/types/components/gov-control-group/constants.d.ts +0 -7
- package/dist/types/components/gov-control-group/gov-control-group.d.ts +0 -16
- package/dist/types/components/gov-cookiebar/constants.d.ts +0 -8
- package/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +0 -7
- package/dist/types/components/gov-empty/constants.d.ts +0 -6
- package/dist/types/components/gov-empty/gov-empty.d.ts +0 -6
- package/dist/types/components/gov-error-code/constants.d.ts +0 -6
- package/dist/types/components/gov-error-code/gov-error-code.d.ts +0 -6
- package/dist/types/components/gov-form/autocomplete/constants.d.ts +0 -14
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +0 -151
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +0 -9
- package/dist/types/components/gov-form/checkbox/constants.d.ts +0 -9
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +0 -87
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +0 -5
- package/dist/types/components/gov-form/control/constants.d.ts +0 -9
- package/dist/types/components/gov-form/control/gov-form-control.d.ts +0 -47
- package/dist/types/components/gov-form/file/constants.d.ts +0 -9
- package/dist/types/components/gov-form/file/gov-form-file.d.ts +0 -133
- package/dist/types/components/gov-form/file/gov-form-file.types.d.ts +0 -11
- package/dist/types/components/gov-form/group/constants.d.ts +0 -12
- package/dist/types/components/gov-form/group/gov-form-group.d.ts +0 -18
- package/dist/types/components/gov-form/input/constants.d.ts +0 -30
- package/dist/types/components/gov-form/input/gov-form-input.d.ts +0 -181
- package/dist/types/components/gov-form/input/gov-form-input.types.d.ts +0 -4
- package/dist/types/components/gov-form/label/constants.d.ts +0 -8
- package/dist/types/components/gov-form/label/gov-form-label.d.ts +0 -26
- package/dist/types/components/gov-form/message/constants.d.ts +0 -9
- package/dist/types/components/gov-form/message/gov-form-message.d.ts +0 -19
- package/dist/types/components/gov-form/multiselect/constants.d.ts +0 -13
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +0 -157
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +0 -9
- package/dist/types/components/gov-form/password-power/constants.d.ts +0 -5
- package/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +0 -7
- package/dist/types/components/gov-form/radio/constants.d.ts +0 -11
- package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +0 -87
- package/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +0 -5
- package/dist/types/components/gov-form/search/constants.d.ts +0 -9
- package/dist/types/components/gov-form/search/gov-form-search.d.ts +0 -9
- package/dist/types/components/gov-form/select/constants.d.ts +0 -11
- package/dist/types/components/gov-form/select/gov-form-select.d.ts +0 -115
- package/dist/types/components/gov-form/select/gov-form-select.types.d.ts +0 -9
- package/dist/types/components/gov-form/switch/constants.d.ts +0 -10
- package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +0 -87
- package/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +0 -5
- package/dist/types/components/gov-grid/constants.d.ts +0 -6
- package/dist/types/components/gov-grid/gov-grid-item.d.ts +0 -26
- package/dist/types/components/gov-grid/gov-grid.d.ts +0 -14
- package/dist/types/components/gov-icon/constants.d.ts +0 -12
- package/dist/types/components/gov-icon/gov-icon.d.ts +0 -23
- package/dist/types/components/gov-icon/helpers.d.ts +0 -5
- package/dist/types/components/gov-icon/list.d.ts +0 -3
- package/dist/types/components/gov-infobar/constants.d.ts +0 -13
- package/dist/types/components/gov-infobar/gov-infobar.d.ts +0 -47
- package/dist/types/components/gov-infobar/gov-infobar.types.d.ts +0 -4
- package/dist/types/components/gov-layout/constants.d.ts +0 -20
- package/dist/types/components/gov-layout/gov-layout-column.d.ts +0 -6
- package/dist/types/components/gov-layout/gov-layout.d.ts +0 -20
- package/dist/types/components/gov-loading/loading/constants.d.ts +0 -5
- package/dist/types/components/gov-loading/loading/gov-loading.d.ts +0 -6
- package/dist/types/components/gov-loading/skeleton/constants.d.ts +0 -20
- package/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +0 -52
- package/dist/types/components/gov-message/constants.d.ts +0 -10
- package/dist/types/components/gov-message/gov-message.d.ts +0 -12
- package/dist/types/components/gov-modal/constants.d.ts +0 -14
- package/dist/types/components/gov-modal/gov-modal.d.ts +0 -69
- package/dist/types/components/gov-nav/constants.d.ts +0 -8
- package/dist/types/components/gov-nav/gov-nav-item.d.ts +0 -12
- package/dist/types/components/gov-nav/gov-nav.d.ts +0 -17
- package/dist/types/components/gov-pagination/constants.d.ts +0 -22
- package/dist/types/components/gov-pagination/gov-pagination.d.ts +0 -87
- package/dist/types/components/gov-pagination/gov-pagination.types.d.ts +0 -5
- package/dist/types/components/gov-pagination/pagination.d.ts +0 -12
- package/dist/types/components/gov-promp/constants.d.ts +0 -12
- package/dist/types/components/gov-promp/gov-prompt.d.ts +0 -65
- package/dist/types/components/gov-side-nav/constants.d.ts +0 -15
- package/dist/types/components/gov-side-nav/gov-side-nav-item.d.d.ts +0 -4
- package/dist/types/components/gov-side-nav/gov-side-nav-item.d.ts +0 -67
- package/dist/types/components/gov-side-nav/gov-side-nav.d.ts +0 -32
- package/dist/types/components/gov-spacer/constants.d.ts +0 -15
- package/dist/types/components/gov-spacer/gov-spacer.d.ts +0 -18
- package/dist/types/components/gov-statsbar/constants.d.ts +0 -18
- package/dist/types/components/gov-statsbar/gov-statsbar-item.d.ts +0 -14
- package/dist/types/components/gov-statsbar/gov-statsbar.d.ts +0 -19
- package/dist/types/components/gov-stepper/constants.d.ts +0 -22
- package/dist/types/components/gov-stepper/gov-stepper-item.d.d.ts +0 -4
- package/dist/types/components/gov-stepper/gov-stepper-item.d.ts +0 -48
- package/dist/types/components/gov-stepper/gov-stepper.d.ts +0 -20
- package/dist/types/components/gov-tabs/constants.d.ts +0 -25
- package/dist/types/components/gov-tabs/gov-tabs-item.d.ts +0 -37
- package/dist/types/components/gov-tabs/gov-tabs.d.ts +0 -72
- package/dist/types/components/gov-tabs/gov-tabs.types.d.ts +0 -8
- package/dist/types/components/gov-tag/constants.d.ts +0 -3
- package/dist/types/components/gov-tag/gov-tag.d.ts +0 -30
- package/dist/types/components/gov-tile/constants.d.ts +0 -9
- package/dist/types/components/gov-tile/container/constants.d.ts +0 -3
- package/dist/types/components/gov-tile/container/gov-tiles.d.ts +0 -15
- package/dist/types/components/gov-tile/gov-tile.d.ts +0 -21
- package/dist/types/components/gov-toast/constants.d.ts +0 -14
- package/dist/types/components/gov-toast/gov-toast.d.ts +0 -53
- package/dist/types/components/gov-tooltip/constants.d.ts +0 -20
- package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +0 -28
- package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +0 -54
- package/dist/types/components/gov-wizard/constants.d.ts +0 -21
- package/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +0 -4
- package/dist/types/components/gov-wizard/gov-wizard-item.d.ts +0 -72
- package/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +0 -4
- package/dist/types/components/gov-wizard/gov-wizard.d.ts +0 -33
- package/dist/types/components.d.ts +0 -4461
- package/dist/types/core/constants/sizes.d.ts +0 -13
- package/dist/types/core/constants/tags.d.ts +0 -12
- package/dist/types/core/constants/tokens.d.ts +0 -1
- package/dist/types/core/constants/variants.d.ts +0 -12
- package/dist/types/helpers/Dom/form.d.ts +0 -3
- package/dist/types/helpers/Dom/form.types.d.ts +0 -11
- package/dist/types/helpers/Dom/template.d.ts +0 -10
- package/dist/types/helpers/Dom/template.types.d.ts +0 -13
- package/dist/types/helpers/Dom/win.d.ts +0 -18
- package/dist/types/helpers/Fragment.d.ts +0 -2
- package/dist/types/helpers/Log/gov.log.d.ts +0 -8
- package/dist/types/helpers/Validate/props.d.ts +0 -1
- package/dist/types/helpers/Validate/wcag.d.ts +0 -4
- package/dist/types/index.d.ts +0 -1
- package/dist/types/interfaces.d.ts +0 -1
- package/dist/types/pages/Accordion.d.ts +0 -3
- package/dist/types/pages/Breadcrumbs.d.ts +0 -3
- package/dist/types/pages/Button.d.ts +0 -3
- package/dist/types/pages/Card.d.ts +0 -3
- package/dist/types/pages/Chip.d.ts +0 -3
- package/dist/types/pages/Container.d.ts +0 -3
- package/dist/types/pages/ControlGroup.d.ts +0 -3
- package/dist/types/pages/Cookiebar.d.ts +0 -3
- package/dist/types/pages/Empty.d.ts +0 -3
- package/dist/types/pages/Error.d.ts +0 -3
- package/dist/types/pages/FormLabel.d.ts +0 -3
- package/dist/types/pages/FormMessage.d.ts +0 -3
- package/dist/types/pages/Forms.d.ts +0 -8
- package/dist/types/pages/FormsRestructure.d.ts +0 -3
- package/dist/types/pages/Grid.d.ts +0 -3
- package/dist/types/pages/Home.d.ts +0 -3
- package/dist/types/pages/Infobar.d.ts +0 -3
- package/dist/types/pages/Layout.d.ts +0 -3
- package/dist/types/pages/Loading.d.ts +0 -3
- package/dist/types/pages/Message.d.ts +0 -3
- package/dist/types/pages/Modal.d.ts +0 -3
- package/dist/types/pages/Nav.d.ts +0 -3
- package/dist/types/pages/Pagination.d.ts +0 -3
- package/dist/types/pages/Prompt.d.ts +0 -3
- package/dist/types/pages/SideNav.d.ts +0 -3
- package/dist/types/pages/Spacer.d.ts +0 -3
- package/dist/types/pages/Statsbar.d.ts +0 -3
- package/dist/types/pages/Stepper.d.ts +0 -3
- package/dist/types/pages/Tabs.d.ts +0 -3
- package/dist/types/pages/Tag.d.ts +0 -3
- package/dist/types/pages/Tiles.d.ts +0 -3
- package/dist/types/pages/ToastMessage.d.ts +0 -3
- package/dist/types/pages/ToastMessageCountdown.d.ts +0 -3
- package/dist/types/pages/Tooltip.d.ts +0 -3
- package/dist/types/pages/Typography.d.ts +0 -3
- package/dist/types/pages/Wizard.d.ts +0 -3
- package/dist/types/stencil-public-runtime.d.ts +0 -1652
- package/dist/types/types/event.types.d.ts +0 -4
- package/dist/types/types/interfaces.d.ts +0 -2
- package/dist/types/types/typings.d.ts +0 -6
- package/dist/types/utils/array.utils.d.ts +0 -1
- package/dist/types/utils/bool.utils.d.ts +0 -1
- package/dist/types/utils/ds.utils.d.ts +0 -1
- package/dist/types/utils/file.utils.d.ts +0 -3
- package/dist/types/utils/helpers.types.d.ts +0 -49
- package/dist/types/utils/icon.utils.d.ts +0 -4
- package/dist/types/utils/number.utils.d.ts +0 -1
- package/dist/types/utils/string.utils.d.ts +0 -3
- package/dist/types/utils/utils.d.ts +0 -20
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -21
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -11
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as o,H as i,c as r,h as t,d as e}from"./p-2dee9951.js";import{c as s}from"./p-24636c53.js";import{v as c}from"./p-dcb5fb35.js";import{g as a,r as h,s as g}from"./p-53e02bee.js";import{g as v,a as m,t as l}from"./p-28e59384.js";import{b as f,c as n}from"./p-4ff831e3.js";import{c as d}from"./p-003e6cca.js";import{d as w}from"./p-03990da5.js";import{F as b}from"./p-1c1d0bbe.js";const _='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-form-switch{position:relative;display:flex}.gov-form-switch__holder{display:inline-flex}.gov-form-switch__input{position:relative;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;flex-shrink:0}.gov-form-switch .gov-form-label__label{position:relative;z-index:1;margin-bottom:0;color:var(--gov-form-switch-color, var(--gov-color-secondary-800))}.gov-form-switch__indicator{position:absolute;top:0;left:0;border:var(--gov-form-switch-indicator-border, 0.0625rem solid var(--gov-color-secondary-500));background-color:var(--gov-form-switch-indicator-bg, var(--gov-color-secondary-300));transition:150ms linear background-color}.gov-form-switch__indicator::before{content:"";position:absolute;display:block;border-radius:50%;background-color:var(--gov-form-switch-indicator-circle-bg, var(--gov-color-neutral-white));transition:150ms linear left;box-shadow:var(--gov-form-switch-indicator-circle-box-shadow, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.35))}.gov-form-switch__input:focus-visible~.gov-form-switch__indicator{outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base)}.gov-form-switch__input:checked+.gov-form-switch__indicator{border-color:var(--gov-form-switch-indicator-bg-checked, var(--gov-color-primary));background-color:var(--gov-form-switch-indicator-bg-checked, var(--gov-color-primary))}.gov-form-switch[disabled=""],.gov-form-switch[disabled=true i],.gov-form-switch[disabled="1"]{pointer-events:none}.gov-form-switch[disabled=""] .gov-form-label__label,.gov-form-switch[disabled=true i] .gov-form-label__label,.gov-form-switch[disabled="1"] .gov-form-label__label{color:var(--gov-form-state-color-disabled, var(--gov-color-secondary-600))}.gov-form-switch[disabled=""] .gov-form-switch__indicator::before,.gov-form-switch[disabled=true i] .gov-form-switch__indicator::before,.gov-form-switch[disabled="1"] .gov-form-switch__indicator::before{background:var(--gov-form-input-disabled-bg, var(--gov-color-secondary-300))}.gov-form-switch[disabled=""] .gov-form-switch__input:checked+.gov-form-switch__indicator,.gov-form-switch[disabled=true i] .gov-form-switch__input:checked+.gov-form-switch__indicator,.gov-form-switch[disabled="1"] .gov-form-switch__input:checked+.gov-form-switch__indicator{border-color:var(--gov-form-input-disabled-bg, var(--gov-color-primary-400));background-color:var(--gov-form-input-disabled-bg, var(--gov-color-primary-400))}.gov-form-switch[invalid=""] .gov-form-label__label,.gov-form-switch[invalid=true i] .gov-form-label__label,.gov-form-switch[invalid="1"] .gov-form-label__label{color:var(--gov-form-state-color-error, var(--gov-color-error))}.gov-form-switch[invalid=""] .gov-form-switch__indicator,.gov-form-switch[invalid=true i] .gov-form-switch__indicator,.gov-form-switch[invalid="1"] .gov-form-switch__indicator{border-color:var(--gov-form-state-color-error, var(--gov-color-error))}.gov-form-switch[invalid=""] .gov-form-switch__input:checked+.gov-form-switch__indicator,.gov-form-switch[invalid=true i] .gov-form-switch__input:checked+.gov-form-switch__indicator,.gov-form-switch[invalid="1"] .gov-form-switch__input:checked+.gov-form-switch__indicator{background-color:var(--gov-form-state-color-error, var(--gov-color-error))}.gov-form-switch[size=xs] .gov-form-label__label{font-weight:var(--gov-text-xs-font-weight);font-size:var(--gov-text-xs-font-size);line-height:var(--gov-text-xs-line-height);letter-spacing:var(--gov-text-xs-letter-spacing);margin-bottom:0}.gov-form-switch[size=xs] .gov-form-switch__holder{gap:var(--gov-form-switch-xs-gap, 0.75rem)}.gov-form-switch[size=xs] .gov-form-switch__input{width:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 1.6666666667);height:var(--gov-form-switch-xs-indicator-height, 1.25rem)}.gov-form-switch[size=xs] .gov-form-switch__indicator{display:block;width:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 1.6666666667);height:var(--gov-form-switch-xs-indicator-height, 1.25rem);border-radius:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 0.5)}.gov-form-switch[size=xs] .gov-form-switch__indicator::before{top:calc(var(--gov-form-switch-xs-toggle-offset, 0.051875rem) - 0.0625rem);left:calc(var(--gov-form-switch-xs-toggle-offset, 0.051875rem) - 0.0625rem);width:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) - 2 * var(--gov-form-switch-xs-toggle-offset, 0.051875rem));height:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) - 2 * var(--gov-form-switch-xs-toggle-offset, 0.051875rem))}.gov-form-switch[size=xs] .gov-form-switch__input[aria-checked]+.gov-form-switch__indicator::before{left:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 1.6666666667 - var(--gov-form-switch-xs-indicator-height, 1.25rem) + var(--gov-form-switch-xs-toggle-offset, 0.051875rem) - 0.0625rem)}.gov-form-switch[size=xs] label{display:inline-flex}.gov-form-switch[size=xs] label .gov-form-switch__input{width:calc(var(--gov-form-switch-xs-indicator-height, 1.25rem) * 1.6666666667)}.gov-form-switch[size=s] .gov-form-label__label{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);margin-bottom:0}.gov-form-switch[size=s] .gov-form-switch__holder{gap:var(--gov-form-switch-s-gap, 0.75rem)}.gov-form-switch[size=s] .gov-form-switch__input{width:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 1.6666666667);height:var(--gov-form-switch-s-indicator-height, 1.375rem)}.gov-form-switch[size=s] .gov-form-switch__indicator{display:block;width:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 1.6666666667);height:var(--gov-form-switch-s-indicator-height, 1.375rem);border-radius:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 0.5)}.gov-form-switch[size=s] .gov-form-switch__indicator::before{top:calc(var(--gov-form-switch-s-toggle-offset, 0.0575rem) - 0.0625rem);left:calc(var(--gov-form-switch-s-toggle-offset, 0.0575rem) - 0.0625rem);width:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) - 2 * var(--gov-form-switch-s-toggle-offset, 0.0575rem));height:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) - 2 * var(--gov-form-switch-s-toggle-offset, 0.0575rem))}.gov-form-switch[size=s] .gov-form-switch__input[aria-checked]+.gov-form-switch__indicator::before{left:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 1.6666666667 - var(--gov-form-switch-s-indicator-height, 1.375rem) + var(--gov-form-switch-s-toggle-offset, 0.0575rem) - 0.0625rem)}.gov-form-switch[size=s] label{display:inline-flex}.gov-form-switch[size=s] label .gov-form-switch__input{width:calc(var(--gov-form-switch-s-indicator-height, 1.375rem) * 1.6666666667)}.gov-form-switch[size=m] .gov-form-label__label{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);margin-bottom:0}.gov-form-switch[size=m] .gov-form-switch__holder{gap:var(--gov-form-switch-m-gap, 1rem)}.gov-form-switch[size=m] .gov-form-switch__input{width:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 1.6666666667);height:var(--gov-form-switch-m-indicator-height, 1.5rem)}.gov-form-switch[size=m] .gov-form-switch__indicator{display:block;width:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 1.6666666667);height:var(--gov-form-switch-m-indicator-height, 1.5rem);border-radius:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 0.5)}.gov-form-switch[size=m] .gov-form-switch__indicator::before{top:calc(var(--gov-form-switch-m-toggle-offset, 0.0625rem) - 0.0625rem);left:calc(var(--gov-form-switch-m-toggle-offset, 0.0625rem) - 0.0625rem);width:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) - 2 * var(--gov-form-switch-m-toggle-offset, 0.0625rem));height:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) - 2 * var(--gov-form-switch-m-toggle-offset, 0.0625rem))}.gov-form-switch[size=m] .gov-form-switch__input[aria-checked]+.gov-form-switch__indicator::before{left:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 1.6666666667 - var(--gov-form-switch-m-indicator-height, 1.5rem) + var(--gov-form-switch-m-toggle-offset, 0.0625rem) - 0.0625rem)}.gov-form-switch[size=m] label{display:inline-flex}.gov-form-switch[size=m] label .gov-form-switch__input{width:calc(var(--gov-form-switch-m-indicator-height, 1.5rem) * 1.6666666667)}.gov-form-switch[size=l] .gov-form-label__label{font-weight:var(--gov-text-l-font-weight);font-size:var(--gov-text-l-font-size);line-height:var(--gov-text-l-line-height);letter-spacing:var(--gov-text-l-letter-spacing);margin-bottom:0}.gov-form-switch[size=l] .gov-form-switch__holder{gap:var(--gov-form-switch-l-gap, 1rem)}.gov-form-switch[size=l] .gov-form-switch__input{width:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 1.6666666667);height:var(--gov-form-switch-l-indicator-height, 2rem)}.gov-form-switch[size=l] .gov-form-switch__indicator{display:block;width:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 1.6666666667);height:var(--gov-form-switch-l-indicator-height, 2rem);border-radius:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 0.5)}.gov-form-switch[size=l] .gov-form-switch__indicator::before{top:calc(var(--gov-form-switch-l-toggle-offset, 0.083125rem) - 0.0625rem);left:calc(var(--gov-form-switch-l-toggle-offset, 0.083125rem) - 0.0625rem);width:calc(var(--gov-form-switch-l-indicator-height, 2rem) - 2 * var(--gov-form-switch-l-toggle-offset, 0.083125rem));height:calc(var(--gov-form-switch-l-indicator-height, 2rem) - 2 * var(--gov-form-switch-l-toggle-offset, 0.083125rem))}.gov-form-switch[size=l] .gov-form-switch__input[aria-checked]+.gov-form-switch__indicator::before{left:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 1.6666666667 - var(--gov-form-switch-l-indicator-height, 2rem) + var(--gov-form-switch-l-toggle-offset, 0.083125rem) - 0.0625rem)}.gov-form-switch[size=l] label{display:inline-flex}.gov-form-switch[size=l] label .gov-form-switch__input{width:calc(var(--gov-form-switch-l-indicator-height, 2rem) * 1.6666666667)}';const p=o(class o extends i{constructor(){super();this.__registerHost();this.govFocus=r(this,"gov-focus",7);this.govBlur=r(this,"gov-blur",7);this.govChange=r(this,"gov-change",7);this.value=undefined;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.name=undefined;this.size="m";this.identifier=undefined;this.invalid=undefined;this.wcagDescribedBy=undefined;this.wcagLabelledBy=undefined;this.checkboxId=s("GovCheckbox");this.h=v(this.host);this.f=a(this.h)}validateSize(o){c(g,o,h.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",m(this.invalid));this.f.passAttrToControl("type","switch")}componentWillLoad(){this.passControlAttrs()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));if(d()){await w(500);await this.validateWcag()}}render(){const o=o=>{if(this.noLabel){return t("label",null,o)}return o};return t(e,{class:this.h.classes(h.root),checked:this.checked,size:this.size,invalid:l(this.invalid)},t("div",{class:h.holder},o(t(b,null,t("input",{class:h.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:o=>this.inputRef=o,required:this.required,"aria-checked":this.checked,"aria-required":l(this.required),"aria-invalid":l(this.invalid),"aria-describedby":this.wcagDescribedBy,"aria-labelledby":this.wcagLabelledBy,"aria-disabled":l(this.disabled)}),t("span",{class:h.indicator}),t("slot",{name:"label"})))))}onClickHandler(o){o.stopPropagation()}onFocusHandler(o){o.stopPropagation();this.govFocus.emit({component:h.root,checked:this.checked,value:this.value,originalEvent:o})}onBlurHandler(o){o.stopPropagation();this.govBlur.emit({component:h.root,checked:this.checked,value:this.value,originalEvent:o})}onChangeHandler(o){this.checked=o.target.checked;o.stopPropagation();this.govChange.emit({component:h.root,checked:this.checked,value:this.value,originalEvent:o})}async getRef(){return this.inputRef}async validateWcag(){f(this.wcagDescribedBy,"wcag-described-by",h.root);f(this.wcagLabelledBy,"wcag-labelled-by",h.root);n(this.identifier||this.checkboxId,this.wcagLabelledBy,h.root)}get host(){return this}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}static get style(){return _}},[4,"gov-form-switch",{value:[1],noLabel:[4,"no-label"],checked:[1540],required:[4],disabled:[4],name:[1],size:[1],identifier:[1],invalid:[4],wcagDescribedBy:[1,"wcag-described-by"],wcagLabelledBy:[1,"wcag-labelled-by"],getRef:[64],validateWcag:[64]}]);function u(){if(typeof customElements==="undefined"){return}const o=["gov-form-switch"];o.forEach((o=>{switch(o){case"gov-form-switch":if(!customElements.get(o)){customElements.define(o,p)}break}}))}u();const x=p;const z=u;export{x as GovFormSwitch,z as defineCustomElement};
|
|
2
|
-
//# sourceMappingURL=gov-form-switch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["govFormSwitchCss","GovFormSwitch","proxyCustomElement","H","constructor","this","checkboxId","createID","h","govHost","host","f","govForm","validateSize","newValue","validateProp","FormSwitchSizes","FormSwitchClass","root","watchDisabled","passControlAttrs","passAttrToControl","size","toBoolAttr","invalid","componentWillLoad","componentDidRender","passAttrToLabel","identifier","String","required","canValidateWcagOnRender","delay","validateWcag","render","wrapCheckbox","children","noLabel","Host","class","classes","checked","toBoolAttrIfDefined","holder","Fragment","input","id","type","value","name","disabled","onClick","onClickHandler","bind","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","ref","el","inputRef","wcagDescribedBy","wcagLabelledBy","indicator","e","stopPropagation","govFocus","emit","component","originalEvent","govBlur","target","govChange","getRef","validateWcagRef","validateWcagLabelFor"],"sources":["../../../packages/core/src/components/gov-form/switch/gov-form-switch.scss?tag=gov-form-switch","../../../packages/core/src/components/gov-form/switch/gov-form-switch.tsx"],"sourcesContent":["/*\n * Switch\n */\n\n$class: \".gov-form-switch\";\n$indicator-ratio: calc(5 / 3);\n\n#{$class} {\n\tposition: relative;\n\tdisplay: flex;\n\t&__holder {\n\t\tdisplay: inline-flex;\n\t}\n\t&__input {\n\t\tposition: relative;\n\t\tz-index: 1;\n\t\tappearance: none;\n\t\tcursor: pointer;\n\t\tflex-shrink: 0;\n\t}\n\t.gov-form-label__label {\n\t\tposition: relative;\n\t\tz-index: 1;\n\t\tmargin-bottom: 0;\n\t\tcolor: $form-switch-color;\n\t}\n\t&__indicator {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tborder: $form-switch-indicator-border;\n\t\tbackground-color: $form-switch-indicator-bg;\n\t\ttransition: $t linear background-color;\n\t\t&::before {\n\t\t\t@include pseudo();\n\t\t\tborder-radius: 50%;\n\t\t\tbackground-color: $form-switch-indicator-circle-bg;\n\t\t\ttransition: $t linear left;\n\t\t\tbox-shadow: $form-switch-indicator-circle-box-shadow;\n\t\t}\n\t}\n\n\t// STATES\n\t// focus\n\t&__input:focus-visible ~ &__indicator {\n\t\toutline: $outline;\n\t}\n\t// checked\n\t&__input:checked + &__indicator {\n\t\tborder-color: $form-switch-indicator-bg-checked;\n\t\tbackground-color: $form-switch-indicator-bg-checked;\n\t}\n\n\t// disabled\n\t@include parameter(\"disabled\") {\n\t\tpointer-events: none;\n\t\t.gov-form-label__label {\n\t\t\tcolor: $form-state-color-disabled;\n\t\t}\n\t\t#{$class} {\n\t\t\t&__indicator {\n\t\t\t\t&::before {\n\t\t\t\t\tbackground: $form-state-bg-input-disabled;\n\t\t\t\t}\n\t\t\t}\n\t\t\t&__input:checked + #{$class}__indicator {\n\t\t\t\tborder-color: $form-state-bg-disabled;\n\t\t\t\tbackground-color: $form-state-bg-disabled;\n\t\t\t}\n\t\t}\n\t}\n\n\t// invalid\n\t@include parameter(\"invalid\") {\n\t\t.gov-form-label__label {\n\t\t\tcolor: $form-state-color-error;\n\t\t}\n\t\t#{$class} {\n\t\t\t&__indicator {\n\t\t\t\tborder-color: $form-state-color-error;\n\t\t\t}\n\t\t\t&__input:checked + #{$class}__indicator {\n\t\t\t\tbackground-color: $form-state-color-error;\n\t\t\t}\n\t\t}\n\t}\n\n\t// sizes\n\t@each $size, $definitions in $form-switch-sizes {\n\t\t$indicator-width: calc(get(\"indicator-height\", $definitions) * $indicator-ratio);\n\t\t$indicator-height: get(\"indicator-height\", $definitions);\n\t\t$border-offset: calc(get(\"toggle-offset\", $definitions) - rem-calc(1));\n\n\t\t&[size=\"#{$size}\"] {\n\t\t\t.gov-form-label__label {\n\t\t\t\t@include typography($size);\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t\t#{$class} {\n\t\t\t\t&__holder {\n\t\t\t\t\tgap: get(\"gap\", $definitions);\n\t\t\t\t}\n\t\t\t\t&__input {\n\t\t\t\t\twidth: $indicator-width;\n\t\t\t\t\theight: $indicator-height;\n\t\t\t\t}\n\t\t\t\t&__indicator {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t\twidth: $indicator-width;\n\t\t\t\t\theight: $indicator-height;\n\t\t\t\t\tborder-radius: calc($indicator-height * 0.5);\n\t\t\t\t\t&::before {\n\t\t\t\t\t\ttop: $border-offset;\n\t\t\t\t\t\tleft: $border-offset;\n\t\t\t\t\t\twidth: calc($indicator-height - (2 * get(\"toggle-offset\", $definitions)));\n\t\t\t\t\t\theight: calc($indicator-height - (2 * get(\"toggle-offset\", $definitions)));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// STATES\n\t\t\t\t&__input[aria-checked] + #{$class}__indicator {\n\t\t\t\t\t&::before {\n\t\t\t\t\t\tleft: calc($indicator-width - $indicator-height + $border-offset);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\t#{$class}__input {\n\t\t\t\t\twidth: $indicator-width;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { createID } from \"../../../utils/string.utils\"\nimport { validateProp } from \"../../../helpers/Validate/props\"\nimport { FormSwitchClass, FormSwitchSizes, FormSwitchSizesType } from \"./constants\"\nimport { govHost, toBoolAttr, toBoolAttrIfDefined } from \"../../../helpers/Dom/template\"\nimport { validateWcagLabelFor, validateWcagRef } from \"../../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../../helpers/Dom/win\"\nimport { delay } from \"../../../utils/utils\"\nimport { GovForm } from \"../../../helpers/Dom/form.types\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport { govForm } from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport { FormSwitchEvent } from \"./gov-form-switch.types\"\n\n@Component({\n\ttag: \"gov-form-switch\",\n\tstyleUrl: \"gov-form-switch.scss\",\n})\nexport class GovFormSwitch {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\n\tprivate readonly checkboxId: string\n\n\tconstructor() {\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSwitchElement\n\t/**\n\t * Value of switch\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({ attribute: \"no-label\" }) readonly noLabel: boolean = false\n\t/**\n\t * Switch button state\n\t */\n\t@Prop({ reflect: true, mutable: true }) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the switch component disabled.\n\t * This prevents users from being able to interact with the switch, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Name of the switch.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop() readonly size?: FormSwitchSizesType = \"m\"\n\t/**\n\t * Custom switch identifier.\n\t */\n\t@Prop({ attribute: \"identifier\" }) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Indicates the id of a component that describes the input.\n\t */\n\t@Prop({ attribute: \"wcag-described-by\" }) readonly wcagDescribedBy: string\n\t/**\n\t * Indicates the id of a component that labels the input.\n\t */\n\t@Prop({ attribute: \"wcag-labelled-by\" }) readonly wcagLabelledBy: string\n\t/**\n\t * Emitted when the switch has focus.\n\t */\n\t@Event({ eventName: \"gov-focus\" }) govFocus: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch loses focus.\n\t */\n\t@Event({ eventName: \"gov-blur\" }) govBlur: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch change value.\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<FormSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"type\", \"switch\")\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.passControlAttrs()\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\tconst wrapCheckbox = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormSwitchClass.root)} checked={this.checked} size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t<div class={FormSwitchClass.holder}>\n\t\t\t\t\t{wrapCheckbox(\n\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tclass={FormSwitchClass.input}\n\t\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\n\t\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\t\taria-describedby={this.wcagDescribedBy}\n\t\t\t\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<span class={FormSwitchClass.indicator}></span>\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\n\t\t\t\t\t\t</Fragment>,\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: Event) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagRef(this.wcagDescribedBy, \"wcag-described-by\", FormSwitchClass.root)\n\t\tvalidateWcagRef(this.wcagLabelledBy, \"wcag-labelled-by\", FormSwitchClass.root)\n\t\tvalidateWcagLabelFor(this.identifier || this.checkboxId, this.wcagLabelledBy, FormSwitchClass.root)\n\t}\n}\n"],"mappings":"mYAAA,MAAMA,EAAmB,stU,MCkBZC,EAAaC,EAAA,MAAAD,UAAAE,EAOzB,WAAAC,G,4KAe6D,M,aAIX,M,cAKb,M,cAKA,M,8BAQS,I,8GApC7CC,KAAKC,WAAaC,EAAS,eAE3BF,KAAKG,EAAIC,EAAQJ,KAAKK,MACtBL,KAAKM,EAAIC,EAAQP,KAAKG,E,CAgEvB,YAAAK,CAAaC,GACZC,EAAaC,EAAiBF,EAAUG,EAAgBC,K,CAMzD,aAAAC,GACCd,KAAKe,kB,CAGE,gBAAAA,GACPf,KAAKM,EAAEU,kBAAkB,OAAQhB,KAAKiB,MACtCjB,KAAKM,EAAEU,kBAAkB,UAAWE,EAAWlB,KAAKmB,UACpDnB,KAAKM,EAAEU,kBAAkB,OAAQ,S,CAGlC,iBAAAI,GACCpB,KAAKe,kB,CAGN,wBAAMM,GACLrB,KAAKM,EAAEgB,gBAAgB,aAActB,KAAKuB,YAAcvB,KAAKC,YAC7DD,KAAKM,EAAEgB,gBAAgB,WAAYE,OAAOxB,KAAKyB,WAC/C,GAAIC,IAA2B,OACxBC,EAAM,WACN3B,KAAK4B,c,EAIb,MAAAC,GACC,MAAMC,EAAgBC,IACrB,GAAI/B,KAAKgC,QAAS,CACjB,OACC7B,EAAA,aACE4B,E,CAIJ,OAAOA,CAAQ,EAGhB,OACC5B,EAAC8B,EAAI,CAACC,MAAOlC,KAAKG,EAAEgC,QAAQvB,EAAgBC,MAAOuB,QAASpC,KAAKoC,QAASnB,KAAMjB,KAAKiB,KAAME,QAASkB,EAAoBrC,KAAKmB,UAC5HhB,EAAA,OAAK+B,MAAOtB,EAAgB0B,QAC1BR,EACA3B,EAACoC,EAAQ,KACRpC,EAAA,SACC+B,MAAOtB,EAAgB4B,MACvBC,GAAIzC,KAAKuB,YAAcvB,KAAKC,WAC5ByC,KAAK,WACLC,MAAO3C,KAAK2C,MACZC,KAAM5C,KAAK4C,KACXC,SAAU7C,KAAK6C,SACfT,QAASpC,KAAKoC,QACdU,QAAS9C,KAAK+C,eAAeC,KAAKhD,MAClCiD,SAAUjD,KAAKkD,gBAAgBF,KAAKhD,MACpCmD,QAASnD,KAAKoD,eAAeJ,KAAKhD,MAClCqD,OAAQrD,KAAKsD,cAAcN,KAAKhD,MAChCuD,IAAKC,GAAOxD,KAAKyD,SAAWD,EAC5B/B,SAAUzB,KAAKyB,SAAQ,eACTzB,KAAKoC,QAAO,gBACXC,EAAoBrC,KAAKyB,UAAS,eACnCY,EAAoBrC,KAAKmB,SAAQ,mBAC7BnB,KAAK0D,gBAAe,kBACrB1D,KAAK2D,eAAc,gBACrBtB,EAAoBrC,KAAK6C,YAEzC1C,EAAA,QAAM+B,MAAOtB,EAAgBgD,YAC7BzD,EAAA,QAAMyC,KAAK,a,CAQT,cAAAG,CAAec,GACtBA,EAAEC,iB,CAGK,cAAAV,CAAeS,GACtBA,EAAEC,kBACF9D,KAAK+D,SAASC,KAAK,CAClBC,UAAWrD,EAAgBC,KAC3BuB,QAASpC,KAAKoC,QACdO,MAAO3C,KAAK2C,MACZuB,cAAeL,G,CAIT,aAAAP,CAAcO,GACrBA,EAAEC,kBACF9D,KAAKmE,QAAQH,KAAK,CACjBC,UAAWrD,EAAgBC,KAC3BuB,QAASpC,KAAKoC,QACdO,MAAO3C,KAAK2C,MACZuB,cAAeL,G,CAIT,eAAAX,CAAgBW,GACvB7D,KAAKoC,QAAWyB,EAAEO,OAA4BhC,QAC9CyB,EAAEC,kBACF9D,KAAKqE,UAAUL,KAAK,CACnBC,UAAWrD,EAAgBC,KAC3BuB,QAASpC,KAAKoC,QACdO,MAAO3C,KAAK2C,MACZuB,cAAeL,G,CAQjB,YAAMS,GACL,OAAOtE,KAAKyD,Q,CAOb,kBAAM7B,GACL2C,EAAgBvE,KAAK0D,gBAAiB,oBAAqB9C,EAAgBC,MAC3E0D,EAAgBvE,KAAK2D,eAAgB,mBAAoB/C,EAAgBC,MACzE2D,EAAqBxE,KAAKuB,YAAcvB,KAAKC,WAAYD,KAAK2D,eAAgB/C,EAAgBC,K"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface GovGridItem extends Components.GovGridItem, HTMLElement {}
|
|
4
|
-
export const GovGridItem: {
|
|
5
|
-
prototype: GovGridItem;
|
|
6
|
-
new (): GovGridItem;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as i,H as e,h as t,d}from"./p-2dee9951.js";import{a as g}from"./p-ffb7495c.js";import{g as s}from"./p-28e59384.js";const m='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-grid-item{border:0 solid transparent;-o-border-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\'%3E%3C/svg%3E");border-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\'%3E%3C/svg%3E")}.gov-grid-item[size="1/12"]{width:8.3333333333%}.gov-grid-item[size="2/12"]{width:16.6666666667%}.gov-grid-item[size="3/12"]{width:25%}.gov-grid-item[size="4/12"]{width:33.3333333333%}.gov-grid-item[size="5/12"]{width:41.6666666667%}.gov-grid-item[size="6/12"]{width:50%}.gov-grid-item[size="7/12"]{width:58.3333333333%}.gov-grid-item[size="8/12"]{width:66.6666666667%}.gov-grid-item[size="9/12"]{width:75%}.gov-grid-item[size="10/12"]{width:83.3333333333%}.gov-grid-item[size="11/12"]{width:91.6666666667%}.gov-grid-item[size="12/12"]{width:100%}@media (min-width: 30em){.gov-grid-item[size-sm="1/12"]{width:8.3333333333%}.gov-grid-item[size-sm="2/12"]{width:16.6666666667%}.gov-grid-item[size-sm="3/12"]{width:25%}.gov-grid-item[size-sm="4/12"]{width:33.3333333333%}.gov-grid-item[size-sm="5/12"]{width:41.6666666667%}.gov-grid-item[size-sm="6/12"]{width:50%}.gov-grid-item[size-sm="7/12"]{width:58.3333333333%}.gov-grid-item[size-sm="8/12"]{width:66.6666666667%}.gov-grid-item[size-sm="9/12"]{width:75%}.gov-grid-item[size-sm="10/12"]{width:83.3333333333%}.gov-grid-item[size-sm="11/12"]{width:91.6666666667%}.gov-grid-item[size-sm="12/12"]{width:100%}}@media (min-width: 48em){.gov-grid-item[size-md="1/12"]{width:8.3333333333%}.gov-grid-item[size-md="2/12"]{width:16.6666666667%}.gov-grid-item[size-md="3/12"]{width:25%}.gov-grid-item[size-md="4/12"]{width:33.3333333333%}.gov-grid-item[size-md="5/12"]{width:41.6666666667%}.gov-grid-item[size-md="6/12"]{width:50%}.gov-grid-item[size-md="7/12"]{width:58.3333333333%}.gov-grid-item[size-md="8/12"]{width:66.6666666667%}.gov-grid-item[size-md="9/12"]{width:75%}.gov-grid-item[size-md="10/12"]{width:83.3333333333%}.gov-grid-item[size-md="11/12"]{width:91.6666666667%}.gov-grid-item[size-md="12/12"]{width:100%}}@media (min-width: 64em){.gov-grid-item[size-lg="1/12"]{width:8.3333333333%}.gov-grid-item[size-lg="2/12"]{width:16.6666666667%}.gov-grid-item[size-lg="3/12"]{width:25%}.gov-grid-item[size-lg="4/12"]{width:33.3333333333%}.gov-grid-item[size-lg="5/12"]{width:41.6666666667%}.gov-grid-item[size-lg="6/12"]{width:50%}.gov-grid-item[size-lg="7/12"]{width:58.3333333333%}.gov-grid-item[size-lg="8/12"]{width:66.6666666667%}.gov-grid-item[size-lg="9/12"]{width:75%}.gov-grid-item[size-lg="10/12"]{width:83.3333333333%}.gov-grid-item[size-lg="11/12"]{width:91.6666666667%}.gov-grid-item[size-lg="12/12"]{width:100%}}@media (min-width: 75em){.gov-grid-item[size-xl="1/12"]{width:8.3333333333%}.gov-grid-item[size-xl="2/12"]{width:16.6666666667%}.gov-grid-item[size-xl="3/12"]{width:25%}.gov-grid-item[size-xl="4/12"]{width:33.3333333333%}.gov-grid-item[size-xl="5/12"]{width:41.6666666667%}.gov-grid-item[size-xl="6/12"]{width:50%}.gov-grid-item[size-xl="7/12"]{width:58.3333333333%}.gov-grid-item[size-xl="8/12"]{width:66.6666666667%}.gov-grid-item[size-xl="9/12"]{width:75%}.gov-grid-item[size-xl="10/12"]{width:83.3333333333%}.gov-grid-item[size-xl="11/12"]{width:91.6666666667%}.gov-grid-item[size-xl="12/12"]{width:100%}}';const o=i(class i extends e{constructor(){super();this.__registerHost();this.size="12/12";this.sizeSm=undefined;this.sizeMd=undefined;this.sizeLg=undefined;this.sizeXl=undefined;this.h=s(this.host)}render(){return t(d,{class:this.h.classes(g.root),role:"listitem",size:this.size,"size-sm":this.sizeSm,"size-md":this.sizeMd,"size-lg":this.sizeLg,"size-xl":this.sizeXl},t("slot",null))}get host(){return this}static get style(){return m}},[4,"gov-grid-item",{size:[1],sizeSm:[1,"size-sm"],sizeMd:[1,"size-md"],sizeLg:[1,"size-lg"],sizeXl:[1,"size-xl"]}]);function r(){if(typeof customElements==="undefined"){return}const i=["gov-grid-item"];i.forEach((i=>{switch(i){case"gov-grid-item":if(!customElements.get(i)){customElements.define(i,o)}break}}))}r();const h=o;const v=r;export{h as GovGridItem,v as defineCustomElement};
|
|
2
|
-
//# sourceMappingURL=gov-grid-item.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["govGridItemCss","GovGridItem","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","class","classes","GridItemClass","root","role","size","sizeSm","sizeMd","sizeLg","sizeXl"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid-item.scss?tag=gov-grid-item","../../../packages/core/src/components/gov-grid/gov-grid-item.tsx"],"sourcesContent":["/*\n * Grid Cell\n */\n\n$class: \".gov-grid-item\";\n\n#{$class} {\n\t@include generateGridSize();\n\tborder: 0 solid transparent;\n\n\t// hide the border in MS high contrast mode\n\tborder-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3C/svg%3E\");\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridItemClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid-item',\n\tstyleUrl: 'gov-grid-item.scss',\n})\nexport class GovGridItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovGridItemElement\n\t/**\n\t * Cell size as a fraction of 1/12 of the grid size\n\t */\n\t@Prop() readonly size: string = '12/12'\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-sm' }) readonly sizeSm: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-md' }) readonly sizeMd: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-lg' }) readonly sizeLg: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-xl' }) readonly sizeXl: string\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(GridItemClass.root)}\n\t\t\t\trole=\"listitem\"\n\t\t\t\tsize={this.size}\n\t\t\t\tsize-sm={this.sizeSm}\n\t\t\t\tsize-md={this.sizeMd}\n\t\t\t\tsize-lg={this.sizeLg}\n\t\t\t\tsize-xl={this.sizeXl}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"4HAAA,MAAMA,EAAiB,6+G,MCSVC,EAAWC,EAAA,MAAAD,UAAAE,EAGvB,WAAAC,G,wCAQgC,Q,wFAP/BC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAyBvB,MAAAC,GACC,OACCH,EAACI,EAAI,CACJC,MAAON,KAAKC,EAAEM,QAAQC,EAAcC,MACpCC,KAAK,WACLC,KAAMX,KAAKW,KAAI,UACNX,KAAKY,OAAM,UACXZ,KAAKa,OAAM,UACXb,KAAKc,OAAM,UACXd,KAAKe,QAEdd,EAAA,a"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface GovGrid extends Components.GovGrid, HTMLElement {}
|
|
4
|
-
export const GovGrid: {
|
|
5
|
-
prototype: GovGrid;
|
|
6
|
-
new (): GovGrid;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as t,H as e,h as i,d as n}from"./p-2dee9951.js";import{G as s}from"./p-ffb7495c.js";import{g as o}from"./p-28e59384.js";const r=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-grid{position:relative;display:flex;width:100%;flex-wrap:wrap}.gov-grid[align-x=middle]{align-items:center}.gov-grid[align-x=bottom]{align-items:flex-end}.gov-grid[align-y=center]{justify-content:center}.gov-grid[align-y=right]{justify-content:flex-end}.gov-grid[align-y=space-between]{justify-content:space-between}.gov-grid[align-y=space-around]{justify-content:space-around}";const a=t(class t extends e{constructor(){super();this.__registerHost();this.alignX=undefined;this.alignY=undefined;this.h=o(this.host)}render(){return i(n,{class:this.h.classes(s.root),"align-x":this.alignX,"align-y":this.alignY,role:"list"},i("slot",null))}get host(){return this}static get style(){return r}},[4,"gov-grid",{alignX:[1,"align-x"],alignY:[1,"align-y"]}]);function g(){if(typeof customElements==="undefined"){return}const t=["gov-grid"];t.forEach((t=>{switch(t){case"gov-grid":if(!customElements.get(t)){customElements.define(t,a)}break}}))}g();const c=a;const l=g;export{c as GovGrid,l as defineCustomElement};
|
|
2
|
-
//# sourceMappingURL=gov-grid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["govGridCss","GovGrid","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","class","classes","GridClass","root","alignX","alignY","role"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid.scss?tag=gov-grid","../../../packages/core/src/components/gov-grid/gov-grid.tsx"],"sourcesContent":["/*\n * Grid\n */\n\n$class: \".gov-grid\";\n\n#{$class} {\n\t@include base(flex);\n\tflex-wrap: wrap;\n\n\t// VARIANTS\n\t&[align-x=\"middle\"] {\n\t\talign-items: center;\n\t}\n\t&[align-x=\"bottom\"] {\n\t\talign-items: flex-end;\n\t}\n\t&[align-y=\"center\"] {\n\t\tjustify-content: center;\n\t}\n\t&[align-y=\"right\"] {\n\t\tjustify-content: flex-end;\n\t}\n\t&[align-y=\"space-between\"] {\n\t\tjustify-content: space-between;\n\t}\n\t&[align-y=\"space-around\"] {\n\t\tjustify-content: space-around;\n\t}\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid',\n\tstyleUrl: 'gov-grid.scss',\n})\nexport class GovGrid {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\t/**\n\t * Horizontal align of cells\n\t */\n\t@Prop({ attribute: 'align-x' }) readonly alignX: string\n\n\t/**\n\t * Vertical align of cells\n\t */\n\t@Prop({ attribute: 'align-y' }) readonly alignY: string\n\n\t// vertical / horizontal align\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(GridClass.root)} align-x={this.alignX} align-y={this.alignY} role=\"list\">\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"iIAAA,MAAMA,EAAa,utB,MCSNC,EAAOC,EAAA,MAAAD,UAAAE,EAGnB,WAAAC,G,0EACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAgBvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAACC,MAAON,KAAKC,EAAEM,QAAQC,EAAUC,MAAK,UAAWT,KAAKU,OAAM,UAAWV,KAAKW,OAAQC,KAAK,QAC7FX,EAAA,a"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface GovIcon extends Components.GovIcon, HTMLElement {}
|
|
4
|
-
export const GovIcon: {
|
|
5
|
-
prototype: GovIcon;
|
|
6
|
-
new (): GovIcon;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface GovInfobar extends Components.GovInfobar, HTMLElement {}
|
|
4
|
-
export const GovInfobar: {
|
|
5
|
-
prototype: GovInfobar;
|
|
6
|
-
new (): GovInfobar;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as o,H as r,c as a,h as n,d as i}from"./p-2dee9951.js";import{g as e,a as v}from"./p-28e59384.js";import{c as t}from"./p-003e6cca.js";import{F as c}from"./p-1c1d0bbe.js";import{v as s}from"./p-dcb5fb35.js";import{a as g}from"./p-4ff831e3.js";import{p as b,d as l}from"./p-03990da5.js";import{V as f}from"./p-ff7365ae.js";import{d as _}from"./p-700b19da.js";import{d}from"./p-1f84a302.js";const m=b(f,["PRIMARY","SECONDARY","WARNING","ERROR","SUCCESS"]);const u={root:"gov-infobar",section:"gov-infobar__section",icon:"gov-infobar__icon",content:"gov-infobar__content",closable:"gov-infobar__content--closable",headline:"gov-infobar__headline",close:"gov-infobar__close"};const h='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-infobar{position:relative;display:block;width:100%}.gov-infobar__section{display:flex;gap:1rem;padding:1rem}.gov-infobar__icon{flex:0 0 auto}.gov-infobar__icon>*{width:1.25rem;height:1.25rem}.gov-infobar__headline{display:flex;gap:1rem}.gov-infobar__headline+div{margin-top:0.5rem}.gov-infobar__headline p{margin-bottom:0}.gov-infobar__headline gov-button{margin-top:-0.25rem}.gov-infobar__content{width:100%}.gov-infobar__content>*:last-child{margin-bottom:0}.gov-infobar__content--closable{padding-right:3.5rem}.gov-infobar__content p{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}.gov-infobar__content a{color:inherit}@media not all and (pointer: coarse){.gov-infobar__content a:hover{color:inherit}}.gov-infobar__content a .gov-icon{color:inherit}.gov-infobar__close{position:absolute;top:0.875rem;right:1rem}.gov-infobar[variant=warning]{background-color:var(--gov-infobar-warning-bg-color, var(--gov-color-warning))}.gov-infobar[variant=warning] .gov-infobar__icon{color:var(--gov-infobar-warning-icon-color, var(--gov-color-secondary))}.gov-infobar[variant=warning] .gov-infobar__content{color:var(--gov-infobar-warning-text-color, var(--gov-color-secondary))}.gov-infobar[variant=warning][inverse=""],.gov-infobar[variant=warning][inverse=true i],.gov-infobar[variant=warning][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=warning][inverse=""] .gov-infobar__icon,.gov-infobar[variant=warning][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=warning][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-warning-bg-color, var(--gov-color-warning))}.gov-infobar[variant=warning][inverse=""] .gov-infobar__content,.gov-infobar[variant=warning][inverse=true i] .gov-infobar__content,.gov-infobar[variant=warning][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}.gov-infobar[variant=error]{background-color:var(--gov-infobar-error-bg-color, var(--gov-color-error))}.gov-infobar[variant=error] .gov-infobar__icon{color:var(--gov-infobar-error-icon-color, var(--gov-color-neutral-white))}.gov-infobar[variant=error] .gov-infobar__content{color:var(--gov-infobar-error-text-color, var(--gov-color-neutral-white))}.gov-infobar[variant=error][inverse=""],.gov-infobar[variant=error][inverse=true i],.gov-infobar[variant=error][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=error][inverse=""] .gov-infobar__icon,.gov-infobar[variant=error][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=error][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-error-bg-color, var(--gov-color-error))}.gov-infobar[variant=error][inverse=""] .gov-infobar__content,.gov-infobar[variant=error][inverse=true i] .gov-infobar__content,.gov-infobar[variant=error][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}.gov-infobar[variant=secondary]{background-color:var(--gov-infobar-secondary-bg-color, var(--gov-color-secondary))}.gov-infobar[variant=secondary] .gov-infobar__icon{color:var(--gov-infobar-secondary-icon-color, var(--gov-color-neutral-white))}.gov-infobar[variant=secondary] .gov-infobar__content{color:var(--gov-infobar-secondary-text-color, var(--gov-color-neutral-white))}.gov-infobar[variant=secondary][inverse=""],.gov-infobar[variant=secondary][inverse=true i],.gov-infobar[variant=secondary][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=secondary][inverse=""] .gov-infobar__icon,.gov-infobar[variant=secondary][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=secondary][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-secondary-bg-color, var(--gov-color-secondary))}.gov-infobar[variant=secondary][inverse=""] .gov-infobar__content,.gov-infobar[variant=secondary][inverse=true i] .gov-infobar__content,.gov-infobar[variant=secondary][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}.gov-infobar[variant=success]{background-color:var(--gov-infobar-success-bg-color, var(--gov-color-success-500))}.gov-infobar[variant=success] .gov-infobar__icon{color:var(--gov-infobar-success-icon-color, var(--gov-color-neutral-white))}.gov-infobar[variant=success] .gov-infobar__content{color:var(--gov-infobar-success-text-color, var(--gov-color-neutral-white))}.gov-infobar[variant=success][inverse=""],.gov-infobar[variant=success][inverse=true i],.gov-infobar[variant=success][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=success][inverse=""] .gov-infobar__icon,.gov-infobar[variant=success][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=success][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-success-bg-color, var(--gov-color-success-500))}.gov-infobar[variant=success][inverse=""] .gov-infobar__content,.gov-infobar[variant=success][inverse=true i] .gov-infobar__content,.gov-infobar[variant=success][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}.gov-infobar[variant=primary]{background-color:var(--gov-infobar-primary-bg-color, var(--gov-color-primary))}.gov-infobar[variant=primary] .gov-infobar__icon{color:var(--gov-infobar-primary-icon-color, var(--gov-color-neutral-white))}.gov-infobar[variant=primary] .gov-infobar__content{color:var(--gov-infobar-primary-text-color, var(--gov-color-neutral-white))}.gov-infobar[variant=primary][inverse=""],.gov-infobar[variant=primary][inverse=true i],.gov-infobar[variant=primary][inverse="1"]{border-bottom:var(--gov-infobar-border, 0.0625rem solid var(--gov-color-secondary-400));background-color:var(--gov-infobar-inverse-bg, var(--gov-color-neutral-white))}.gov-infobar[variant=primary][inverse=""] .gov-infobar__icon,.gov-infobar[variant=primary][inverse=true i] .gov-infobar__icon,.gov-infobar[variant=primary][inverse="1"] .gov-infobar__icon{color:var(--gov-infobar-primary-bg-color, var(--gov-color-primary))}.gov-infobar[variant=primary][inverse=""] .gov-infobar__content,.gov-infobar[variant=primary][inverse=true i] .gov-infobar__content,.gov-infobar[variant=primary][inverse="1"] .gov-infobar__content{color:var(--gov-infobar-inverse-color, var(--gov-color-secondary-800))}';const p=o(class o extends r{constructor(){super();this.__registerHost();this.govClose=a(this,"gov-close",7);this.headline=undefined;this.variant="primary";this.inverse=false;this.wcagCloseLabel="Zavřít informační lištu";this.wcagToggleLabel="Zobrazit více informací";this.closable=false;this.toggleContent=false;this.h=e(this.host)}validateVariant(o){s(m,o,u.root)}componentWillLoad(){this.validateVariant(this.variant)}async componentDidRender(){if(t()){await l(500);await this.validateWcag()}}render(){let o=!this.inverse;let r=this.inverse?"secondary":this.variant;if(this.variant=="warning"){o=false;r="secondary"}const a=n("div",{class:u.close},n("gov-button",{size:"s",wcagLabel:this.wcagCloseLabel,type:"base",variant:r,inverse:o,"on-gov-click":this.onCloseHandler.bind(this)},n("gov-icon",{name:"x-lg"})));return n(i,{class:this.h.classes(u.root),variant:this.variant},n("section",{class:u.section,role:"infobar"},this.h.hasSlot("icon")&&n("div",{class:u.icon},n("slot",{name:"icon"})),n("div",{class:u.content+(this.closable?" "+u.closable:"")},this.headline?n(c,null,n("div",{class:u.headline},n("p",null,this.headline),n("gov-button",{size:"s",wcagLabel:this.wcagToggleLabel,type:"base",variant:r,inverse:o,"on-gov-click":()=>this.toggleContent=!this.toggleContent},n("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down"}))),n("div",{hidden:!this.toggleContent,"aria-hidden":v(this.toggleContent)},n("slot",null))):n("slot",null))),this.closable&&a)}onCloseHandler(o){this.govClose.emit({component:u.root,ref:this.host,originalEvent:o})}async validateWcag(){if(this.closable){g(this.wcagCloseLabel,"wcag-close-label",u.root)}if(this.headline){g(this.wcagToggleLabel,"wcag-toggle-label",u.root)}}get host(){return this}static get watchers(){return{variant:["validateVariant"]}}static get style(){return h}},[4,"gov-infobar",{headline:[1],variant:[1],inverse:[4],wcagCloseLabel:[1,"wcag-close-label"],wcagToggleLabel:[1,"wcag-toggle-label"],closable:[4],toggleContent:[32],validateWcag:[64]}]);function y(){if(typeof customElements==="undefined"){return}const o=["gov-infobar","gov-button","gov-icon"];o.forEach((o=>{switch(o){case"gov-infobar":if(!customElements.get(o)){customElements.define(o,p)}break;case"gov-button":if(!customElements.get(o)){_()}break;case"gov-icon":if(!customElements.get(o)){d()}break}}))}y();const w=p;const k=y;export{w as GovInfobar,k as defineCustomElement};
|
|
2
|
-
//# sourceMappingURL=gov-infobar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["InfobarVariants","pick","Variants","InfobarClass","root","section","icon","content","closable","headline","close","govInfobarCss","GovInfobar","proxyCustomElement","H","constructor","this","h","govHost","host","validateVariant","newValue","validateProp","componentWillLoad","variant","componentDidRender","canValidateWcagOnRender","delay","validateWcag","render","inverse","closeButton","class","size","wcagLabel","wcagCloseLabel","type","onCloseHandler","bind","name","Host","classes","role","hasSlot","Fragment","wcagToggleLabel","toggleContent","hidden","toBoolAttr","e","govClose","emit","component","ref","originalEvent","validateWcagProp"],"sources":["../../../packages/core/src/components/gov-infobar/constants.ts","../../../packages/core/src/components/gov-infobar/gov-infobar.scss?tag=gov-infobar","../../../packages/core/src/components/gov-infobar/gov-infobar.tsx"],"sourcesContent":["import { Variants } from '../../core/constants/variants'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS'])\nexport type VariantType = `${ValueOf<typeof InfobarVariants>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\ticon: 'gov-infobar__icon',\n\tcontent: 'gov-infobar__content',\n\tclosable: 'gov-infobar__content--closable',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","/*\n * Infobar\n */\n\n$class: \".gov-infobar\";\n\n#{$class} {\n\t@include base();\n\n\t&__section {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\tpadding: rem-calc(16);\n\t}\n\n\t&__icon {\n\t\tflex: 0 0 auto;\n\n\t\t& > * {\n\t\t\twidth: rem-calc(20);\n\t\t\theight: rem-calc(20);\n\t\t}\n\t}\n\n\t&__headline {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\n\t\t+ div {\n\t\t\tmargin-top: rem-calc(8);\n\t\t}\n\n\t\tp {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\n\t\tgov-button {\n\t\t\tmargin-top: rem-calc(-4);\n\t\t}\n\t}\n\n\t&__content {\n\t\t@include reset-last-margin();\n\t\twidth: 100%;\n\n\t\t&--closable {\n\t\t\tpadding-right: rem-calc(56);\n\t\t}\n\n\t\tp {\n\t\t\t@include typography($font-size-m);\n\t\t}\n\n\t\ta {\n\t\t\tcolor: inherit;\n\t\t\t@include hover() {\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t\t.gov-icon {\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__close {\n\t\tposition: absolute;\n\t\ttop: rem-calc(14);\n\t\tright: rem-calc(16);\n\t}\n\n\t// VARIANTS\n\t@each $variant, $definitions in $infobar-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\tbackground-color: get(\"bg-color\", $definitions);\n\n\t\t\t#{$class} {\n\t\t\t\t&__icon {\n\t\t\t\t\tcolor: get(\"icon-color\", $definitions);\n\t\t\t\t}\n\n\t\t\t\t&__content {\n\t\t\t\t\tcolor: get(\"text-color\", $definitions);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@if deep-map-check($definitions, \"border\") {\n\t\t\t\tborder-bottom: $infobar-border;\n\t\t\t}\n\n\t\t\t// STATES\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\tborder-bottom: $infobar-border;\n\t\t\t\tbackground-color: $infobar-inverse-bg;\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__icon {\n\t\t\t\t\t\tcolor: get(\"bg-color\", $definitions);\n\t\t\t\t\t}\n\n\t\t\t\t\t&__content {\n\t\t\t\t\t\tcolor: $infobar-inverse-color;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core'\nimport { govHost, toBoolAttr } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport Fragment from '../../helpers/Fragment'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { validateWcagProp } from '../../helpers/Validate/wcag'\nimport { delay } from '../../utils/utils'\nimport { ButtonEvent } from '../gov-button/button/gov-button.types'\nimport { InfobarClass, InfobarVariants, VariantType } from './constants'\nimport { InfobarEvent } from './gov-infobar.types'\n\n@Component({\n\ttag: 'gov-infobar',\n\tstyleUrl: 'gov-infobar.scss',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly headline: string\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant: VariantType = 'primary'\n\t/**\n\t * Determine if component should have inverse colors to be used on dark background\n\t */\n\t@Prop() readonly inverse: boolean = false\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({ attribute: 'wcag-close-label' }) readonly wcagCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({ attribute: 'wcag-toggle-label' }) readonly wcagToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({ eventName: 'gov-close' }) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(InfobarVariants, newValue, InfobarClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateVariant(this.variant)\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\tlet inverse = !this.inverse\n\t\tlet variant = this.inverse ? 'secondary' : this.variant\n\n\t\tif (this.variant == 'warning') {\n\t\t\tinverse = false\n\t\t\tvariant = 'secondary'\n\t\t}\n\n\t\tconst closeButton = (\n\t\t\t<div class={InfobarClass.close}>\n\t\t\t\t<gov-button size=\"s\" wcagLabel={this.wcagCloseLabel} type=\"base\" variant={variant} inverse={inverse} on-gov-click={this.onCloseHandler.bind(this)}>\n\t\t\t\t\t<gov-icon name=\"x-lg\"></gov-icon>\n\t\t\t\t</gov-button>\n\t\t\t</div>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} variant={this.variant}>\n\t\t\t\t<section class={InfobarClass.section} role=\"infobar\">\n\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t<div class={InfobarClass.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\t\t\t\t\t<div class={InfobarClass.content + (this.closable ? ' ' + InfobarClass.closable : '')}>\n\t\t\t\t\t\t{this.headline ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<p>{this.headline}</p>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\twcagLabel={this.wcagToggleLabel}\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tvariant={variant}\n\t\t\t\t\t\t\t\t\t\tinverse={inverse}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'}></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</section>\n\t\t\t\t{this.closable && closeButton}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tif (this.closable) {\n\t\t\tvalidateWcagProp(this.wcagCloseLabel, 'wcag-close-label', InfobarClass.root)\n\t\t}\n\t\tif (this.headline) {\n\t\t\tvalidateWcagProp(this.wcagToggleLabel, 'wcag-toggle-label', InfobarClass.root)\n\t\t}\n\t}\n}\n"],"mappings":"6YAIO,MAAMA,EAAkBC,EAAKC,EAAU,CAAC,UAAW,YAAa,UAAW,QAAS,YAGpF,MAAMC,EAAe,CAC3BC,KAAM,cACNC,QAAS,uBACTC,KAAM,oBACNC,QAAS,uBACTC,SAAU,iCACVC,SAAU,wBACVC,MAAO,sBCdR,MAAMC,EAAgB,uiO,MCgBTC,EAAUC,EAAA,MAAAD,UAAAE,EAGtB,WAAAC,G,uGAawC,U,aAIJ,M,oBAIuC,0B,qBAIE,0B,cAQvC,M,mBAEb,MAlCxBC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAqCvB,eAAAC,CAAgBC,GACfC,EAAatB,EAAiBqB,EAAUlB,EAAaC,K,CAGtD,iBAAAmB,GACCP,KAAKI,gBAAgBJ,KAAKQ,Q,CAG3B,wBAAMC,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNX,KAAKY,c,EAIb,MAAAC,GACC,IAAIC,GAAWd,KAAKc,QACpB,IAAIN,EAAUR,KAAKc,QAAU,YAAcd,KAAKQ,QAEhD,GAAIR,KAAKQ,SAAW,UAAW,CAC9BM,EAAU,MACVN,EAAU,W,CAGX,MAAMO,EACLd,EAAA,OAAKe,MAAO7B,EAAaO,OACxBO,EAAA,cAAYgB,KAAK,IAAIC,UAAWlB,KAAKmB,eAAgBC,KAAK,OAAOZ,QAASA,EAASM,QAASA,EAAO,eAAgBd,KAAKqB,eAAeC,KAAKtB,OAC3IC,EAAA,YAAUsB,KAAK,WAKlB,OACCtB,EAACuB,EAAI,CAACR,MAAOhB,KAAKC,EAAEwB,QAAQtC,EAAaC,MAAOoB,QAASR,KAAKQ,SAC7DP,EAAA,WAASe,MAAO7B,EAAaE,QAASqC,KAAK,WACzC1B,KAAKC,EAAE0B,QAAQ,SACf1B,EAAA,OAAKe,MAAO7B,EAAaG,MACxBW,EAAA,QAAMsB,KAAK,UAGbtB,EAAA,OAAKe,MAAO7B,EAAaI,SAAWS,KAAKR,SAAW,IAAML,EAAaK,SAAW,KAChFQ,KAAKP,SACLQ,EAAC2B,EAAQ,KACR3B,EAAA,OAAKe,MAAO7B,EAAaM,UACxBQ,EAAA,SAAID,KAAKP,UACTQ,EAAA,cACCgB,KAAK,IACLC,UAAWlB,KAAK6B,gBAChBT,KAAK,OACLZ,QAASA,EACTM,QAASA,EAAO,eACF,IAAOd,KAAK8B,eAAiB9B,KAAK8B,eAEhD7B,EAAA,YAAUsB,KAAMvB,KAAK8B,cAAgB,aAAe,mBAGtD7B,EAAA,OAAK8B,QAAS/B,KAAK8B,cAAa,cAAeE,EAAWhC,KAAK8B,gBAC9D7B,EAAA,eAIFA,EAAA,eAIFD,KAAKR,UAAYuB,E,CAKrB,cAAAM,CAAeY,GACdjC,KAAKkC,SAASC,KAAK,CAClBC,UAAWjD,EAAaC,KACxBiD,IAAKrC,KAAKG,KACVmC,cAAeL,G,CAQjB,kBAAMrB,GACL,GAAIZ,KAAKR,SAAU,CAClB+C,EAAiBvC,KAAKmB,eAAgB,mBAAoBhC,EAAaC,K,CAExE,GAAIY,KAAKP,SAAU,CAClB8C,EAAiBvC,KAAK6B,gBAAiB,oBAAqB1C,EAAaC,K"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface GovLayoutColumn extends Components.GovLayoutColumn, HTMLElement {}
|
|
4
|
-
export const GovLayoutColumn: {
|
|
5
|
-
prototype: GovLayoutColumn;
|
|
6
|
-
new (): GovLayoutColumn;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as o,H as t,h as s,d as e}from"./p-2dee9951.js";import{a as n}from"./p-5defdc5e.js";import{g as i}from"./p-28e59384.js";const a=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-layout-column{position:relative;display:block;width:100%}";const r=o(class o extends t{constructor(){super();this.__registerHost();this.h=i(this.host)}render(){return s(e,{class:this.h.classes(n.root)},s("slot",null))}get host(){return this}static get style(){return a}},[4,"gov-layout-column"]);function c(){if(typeof customElements==="undefined"){return}const o=["gov-layout-column"];o.forEach((o=>{switch(o){case"gov-layout-column":if(!customElements.get(o)){customElements.define(o,r)}break}}))}c();const p=r;const m=c;export{p as GovLayoutColumn,m as defineCustomElement};
|
|
2
|
-
//# sourceMappingURL=gov-layout-column.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["govLayoutColumnCss","GovLayoutColumn","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","class","classes","LayoutColumnClass","root"],"sources":["../../../packages/core/src/components/gov-layout/gov-layout-column.scss?tag=gov-layout-column","../../../packages/core/src/components/gov-layout/gov-layout-column.tsx"],"sourcesContent":["/*\n * Layout column\n */\n\n$class: \".gov-layout-column\";\n\n#{$class} {\n\tposition: relative;\n\tdisplay: block;\n\twidth: 100%;\n}\n","import { Component, Element, h, Host } from '@stencil/core'\nimport { LayoutColumnClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-layout-column',\n\tstyleUrl: 'gov-layout-column.scss',\n})\nexport class GovLayoutColumn {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovLayoutColumnElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LayoutColumnClass.root)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"iIAAA,MAAMA,EAAqB,uZ,MCSdC,EAAeC,EAAA,MAAAD,UAAAE,EAG3B,WAAAC,G,8BACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAKvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAACC,MAAON,KAAKC,EAAEM,QAAQC,EAAkBC,OAC7CR,EAAA,a"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface GovLayout extends Components.GovLayout, HTMLElement {}
|
|
4
|
-
export const GovLayout: {
|
|
5
|
-
prototype: GovLayout;
|
|
6
|
-
new (): GovLayout;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as t,H as o,h as e,d as i}from"./p-2dee9951.js";import{L as a}from"./p-5defdc5e.js";import{g as s}from"./p-28e59384.js";const n=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-layout{position:relative;display:block;width:100%}.gov-layout__section{display:flex;gap:var(--gov-layout-gap, 1.375rem);flex-direction:column}@media (min-width: 64em){.gov-layout__section{flex-direction:row}.gov-layout__section-aside-right .gov-layout-column:first-child,.gov-layout__section-aside .gov-layout-column:first-child{flex:1 1 auto;width:auto}.gov-layout__section-aside-right .gov-layout-column:last-child,.gov-layout__section-aside .gov-layout-column:last-child{flex:0 0 auto;width:calc(var(--gov-container-width, 73.75rem) / 3 - var(--gov-layout-gap, 1.375rem))}.gov-layout__section-aside-left .gov-layout-column:first-child{flex:0 0 auto;width:calc(var(--gov-container-width, 73.75rem) / 3 - var(--gov-layout-gap, 1.375rem))}.gov-layout__section-aside-left .gov-layout-column:last-child{flex:1 1 auto;width:auto}.gov-layout__section-aside-right-inverse .gov-layout-column:first-child{order:1}.gov-layout__section-aside-left-inverse .gov-layout-column:first-child{order:2}.gov-layout__section-text{width:var(--gov-layout-content-width, 48.75rem);margin-right:auto;margin-left:auto}.gov-layout__section-text-left{width:var(--gov-layout-content-width, 48.75rem);margin-right:auto}.gov-layout__section-text-right{width:var(--gov-layout-content-width, 48.75rem);margin-left:auto}}";const l=t(class t extends o{constructor(){super();this.__registerHost();this.type="stretch";this.variant=undefined;this.inverse=false;this.h=s(this.host)}typeClass(t,o,e,i){const a=o?"-"+o:"";const s=e?"-"+e:"";const n=i?"-inverse":"";return t+" "+t+a+s+n}render(){return e(i,{type:this.type,class:this.h.classes(a.root)},e("section",{class:this.typeClass(a.section,this.type,this.variant,this.inverse)},e("slot",null)))}get host(){return this}static get style(){return n}},[4,"gov-layout",{type:[1],variant:[1],inverse:[4]}]);function r(){if(typeof customElements==="undefined"){return}const t=["gov-layout"];t.forEach((t=>{switch(t){case"gov-layout":if(!customElements.get(t)){customElements.define(t,l)}break}}))}r();const c=l;const u=r;export{c as GovLayout,u as defineCustomElement};
|
|
2
|
-
//# sourceMappingURL=gov-layout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["govLayoutCss","GovLayout","proxyCustomElement","H","constructor","this","h","govHost","host","typeClass","originalClass","type","variant","inverse","isType","isVariant","isInverse","render","Host","class","classes","LayoutClass","root","section"],"sources":["../../../packages/core/src/components/gov-layout/gov-layout.scss?tag=gov-layout","../../../packages/core/src/components/gov-layout/gov-layout.tsx"],"sourcesContent":["/*\n * Layout\n */\n\n$class: \".gov-layout\";\n\n@mixin big() {\n\tflex: 1 1 auto;\n\twidth: auto;\n}\n\n@mixin small() {\n\tflex: 0 0 auto;\n\twidth: calc($container-width / 3 - $layout-gap);\n}\n\n#{$class} {\n\t@include base();\n\t&__section {\n\t\tdisplay: flex;\n\t\tgap: $layout-gap;\n\t\tflex-direction: column;\n\t}\n\n\t// MQ\n\t@include mq($from: lg) {\n\t\t&__section {\n\t\t\tflex-direction: row;\n\n\t\t\t&-aside-right,\n\t\t\t&-aside {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\t@include big;\n\t\t\t\t}\n\n\t\t\t\t#{$class}-column:last-child {\n\t\t\t\t\t@include small;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-aside-left {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\t@include small;\n\t\t\t\t}\n\n\t\t\t\t#{$class}-column:last-child {\n\t\t\t\t\t@include big;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-aside-right-inverse {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\torder: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-aside-left-inverse {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\torder: 2;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-text {\n\t\t\t\twidth: $layout-content-width;\n\t\t\t\tmargin-right: auto;\n\t\t\t\tmargin-left: auto;\n\t\t\t}\n\n\t\t\t&-text-left {\n\t\t\t\twidth: $layout-content-width;\n\t\t\t\tmargin-right: auto;\n\t\t\t}\n\n\t\t\t&-text-right {\n\t\t\t\twidth: $layout-content-width;\n\t\t\t\tmargin-left: auto;\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { LayoutClass, LayoutType, LayoutVariantType } from './constants'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { govHost } from '../../helpers/Dom/template'\n\n@Component({\n\ttag: 'gov-layout',\n\tstyleUrl: 'gov-layout.scss',\n})\nexport class GovLayout {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLayoutElement\n\t/**\n\t * Layout type\n\t */\n\t@Prop() readonly type?: LayoutType = 'stretch'\n\t/**\n\t * Layout align\n\t */\n\t@Prop() readonly variant?: LayoutVariantType\n\t/**\n\t * Determine if component should have inverse column order\n\t */\n\t@Prop() readonly inverse: boolean = false\n\n\tprivate typeClass(originalClass: string, type: string, variant: string, inverse: boolean) {\n\t\tconst isType = type ? '-' + type : ''\n\t\tconst isVariant = variant ? '-' + variant : ''\n\t\tconst isInverse = inverse ? '-inverse' : ''\n\t\treturn originalClass + ' ' + originalClass + isType + isVariant + isInverse\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host type={this.type} class={this.h.classes(LayoutClass.root)}>\n\t\t\t\t<section class={this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse)}>\n\t\t\t\t\t<slot />\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"iIAAA,MAAMA,EAAe,umD,MCSRC,EAASC,EAAA,MAAAD,UAAAE,EAGrB,WAAAC,G,wCAQqC,U,oCAQD,MAfnCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAiBf,SAAAC,CAAUC,EAAuBC,EAAcC,EAAiBC,GACvE,MAAMC,EAASH,EAAO,IAAMA,EAAO,GACnC,MAAMI,EAAYH,EAAU,IAAMA,EAAU,GAC5C,MAAMI,EAAYH,EAAU,WAAa,GACzC,OAAOH,EAAgB,IAAMA,EAAgBI,EAASC,EAAYC,C,CAGnE,MAAAC,GACC,OACCX,EAACY,EAAI,CAACP,KAAMN,KAAKM,KAAMQ,MAAOd,KAAKC,EAAEc,QAAQC,EAAYC,OACxDhB,EAAA,WAASa,MAAOd,KAAKI,UAAUY,EAAYE,QAASlB,KAAKM,KAAMN,KAAKO,QAASP,KAAKQ,UACjFP,EAAA,c"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface GovLoading extends Components.GovLoading, HTMLElement {}
|
|
4
|
-
export const GovLoading: {
|
|
5
|
-
prototype: GovLoading;
|
|
6
|
-
new (): GovLoading;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as o,H as n,h as e,d as t}from"./p-2dee9951.js";import{g as i,p as s}from"./p-28e59384.js";import{d as a}from"./p-570803ab.js";import{d as r}from"./p-1f84a302.js";const c={root:"gov-loading",content:"gov-loading__content",icon:"gov-loading__icon"};const g=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-loading{display:block}.gov-loading__content{z-index:101;position:fixed;top:50%;left:50%;display:flex;gap:1rem;flex-direction:column;align-items:center;min-width:9.6875rem;padding:1.5rem;border-radius:0.5rem;background:var(--gov-loading-bg, rgba(var(--gov-color-secondary-400-rgb), 0.8));color:var(--gov-loading-color, var(--gov-color-primary));text-align:center;transform:translate(-50%, -50%)}.gov-loading__icon{width:4rem;height:4rem;line-height:1}.gov-loading__icon svg{width:100%;height:100%}";const l=o(class o extends n{constructor(){super();this.__registerHost();this.h=i(this.host)}render(){return e(t,{class:this.h.classes(c.root)},e("div",{class:c.content},e("gov-icon",{class:s([c.icon,"gov-spin-animation"]),name:"loader"}),e("slot",null)),e("gov-backdrop",{inverse:true}))}get host(){return this}static get style(){return g}},[4,"gov-loading"]);function d(){if(typeof customElements==="undefined"){return}const o=["gov-loading","gov-backdrop","gov-icon"];o.forEach((o=>{switch(o){case"gov-loading":if(!customElements.get(o)){customElements.define(o,l)}break;case"gov-backdrop":if(!customElements.get(o)){a()}break;case"gov-icon":if(!customElements.get(o)){r()}break}}))}d();const m=l;const p=d;export{m as GovLoading,p as defineCustomElement};
|
|
2
|
-
//# sourceMappingURL=gov-loading.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["LoadingClass","root","content","icon","govLoadingCss","GovLoading","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","class","classes","prepareClasses","name","inverse"],"sources":["../../../packages/core/src/components/gov-loading/loading/constants.ts","../../../packages/core/src/components/gov-loading/loading/gov-loading.scss?tag=gov-loading","../../../packages/core/src/components/gov-loading/loading/gov-loading.tsx"],"sourcesContent":["export const LoadingClass = {\n\troot: 'gov-loading',\n\tcontent: 'gov-loading__content',\n\ticon: 'gov-loading__icon',\n}\n","/*\n * Loading\n */\n\n$class: \".gov-loading\";\n\n#{$class} {\n\tdisplay: block;\n\t&__content {\n\t\t@include z-index(\"modal\", 1);\n\t\tposition: fixed;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\tmin-width: rem-calc(155);\n\t\tpadding: rem-calc(24);\n\t\tborder-radius: rem-calc(8);\n\t\tbackground: $loading-bg;\n\t\tcolor: $loading-color;\n\t\ttext-align: center;\n\t\ttransform: translate(-50%, -50%);\n\t}\n\t&__icon {\n\t\twidth: rem-calc(64);\n\t\theight: rem-calc(64);\n\t\tline-height: 1;\n\n\t\tsvg {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host } from \"@stencil/core\"\nimport { LoadingClass } from \"./constants\"\nimport { govHost, prepareClasses } from \"../../../helpers/Dom/template\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\n\n@Component({\n\ttag: \"gov-loading\",\n\tstyleUrl: \"gov-loading.scss\",\n})\nexport class GovLoading {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLoadingElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LoadingClass.root)}>\n\t\t\t\t<div class={LoadingClass.content}>\n\t\t\t\t\t<gov-icon class={prepareClasses([LoadingClass.icon, \"gov-spin-animation\"])} name=\"loader\"></gov-icon>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t\t<gov-backdrop inverse={true} />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"4KAAO,MAAMA,EAAe,CAC3BC,KAAM,cACNC,QAAS,uBACTC,KAAM,qBCHP,MAAMC,EAAgB,80B,MCSTC,EAAUC,EAAA,MAAAD,UAAAE,EAGtB,WAAAC,G,8BACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAKvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAACC,MAAON,KAAKC,EAAEM,QAAQhB,EAAaC,OACxCS,EAAA,OAAKK,MAAOf,EAAaE,SACxBQ,EAAA,YAAUK,MAAOE,EAAe,CAACjB,EAAaG,KAAM,uBAAwBe,KAAK,WACjFR,EAAA,cAEDA,EAAA,gBAAcS,QAAS,O"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface GovMessage extends Components.GovMessage, HTMLElement {}
|
|
4
|
-
export const GovMessage: {
|
|
5
|
-
prototype: GovMessage;
|
|
6
|
-
new (): GovMessage;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as e,H as r,h as o,d as a}from"./p-2dee9951.js";import{v as s}from"./p-dcb5fb35.js";import{V as g}from"./p-ff7365ae.js";import{p as v}from"./p-03990da5.js";import{g as n}from"./p-28e59384.js";v(g,["PRIMARY","SECONDARY","WARNING","ERROR","SUCCESS"]);const t={root:"gov-message",icon:"gov-message__icon",content:"gov-message__content",close:"gov-message__close"};const i='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-message{position:relative;display:flex;gap:1rem;flex-direction:column;padding:0.75rem 1rem;border-left:0.25rem solid transparent;background:var(--gov-toast-message-bg, var(--gov-color-neutral-white))}.gov-message__icon{flex:0 0 1.25rem;width:1.25rem;height:1.25rem}.gov-message__content{flex:1 1 auto}.gov-message__content>*:last-child{margin-bottom:0}.gov-message__content p{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}@media (min-width: 30em){.gov-message{flex-direction:row}}.gov-message[shadow=""],.gov-message[shadow=true i],.gov-message[shadow="1"]{box-shadow:var(--gov-message-box-shadow, 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1))}.gov-message[variant=warning]{border-left-color:var(--gov-message-warning-color, var(--gov-color-warning));background:var(--gov-message-warning-bg-color, var(--gov-color-warning-100))}.gov-message[variant=warning] .gov-message__icon{color:var(--gov-message-warning-color, var(--gov-color-warning))}.gov-message[variant=warning][inverse=""],.gov-message[variant=warning][inverse=true i],.gov-message[variant=warning][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=error]{border-left-color:var(--gov-message-error-color, var(--gov-color-error));background:var(--gov-message-error-bg-color, var(--gov-color-error-100))}.gov-message[variant=error] .gov-message__icon{color:var(--gov-message-error-color, var(--gov-color-error))}.gov-message[variant=error][inverse=""],.gov-message[variant=error][inverse=true i],.gov-message[variant=error][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=secondary]{border-left-color:var(--gov-message-secondary-color, var(--gov-color-secondary));background:var(--gov-message-secondary-bg-color, var(--gov-color-secondary-200))}.gov-message[variant=secondary] .gov-message__icon{color:var(--gov-message-secondary-color, var(--gov-color-secondary))}.gov-message[variant=secondary][inverse=""],.gov-message[variant=secondary][inverse=true i],.gov-message[variant=secondary][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=success]{border-left-color:var(--gov-message-success-color, var(--gov-color-success));background:var(--gov-message-success-bg-color, var(--gov-color-success-100))}.gov-message[variant=success] .gov-message__icon{color:var(--gov-message-success-color, var(--gov-color-success))}.gov-message[variant=success][inverse=""],.gov-message[variant=success][inverse=true i],.gov-message[variant=success][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=primary]{border-left-color:var(--gov-message-primary-color, var(--gov-color-primary));background:var(--gov-message-primary-bg-color, var(--gov-color-primary-100))}.gov-message[variant=primary] .gov-message__icon{color:var(--gov-message-primary-color, var(--gov-color-primary))}.gov-message[variant=primary][inverse=""],.gov-message[variant=primary][inverse=true i],.gov-message[variant=primary][inverse="1"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}';const c=e(class e extends r{constructor(){super();this.__registerHost();this.variant=g.PRIMARY;this.h=n(this.host)}validateVariant(e){s(g,e,t.root)}render(){return o(a,{class:this.h.classes(t.root),variant:this.variant,role:"alert"},this.h.hasSlot("icon")&&o("span",{class:t.icon},o("slot",{name:"icon"})),o("div",{class:t.content},o("slot",null)))}get host(){return this}static get watchers(){return{variant:["validateVariant"]}}static get style(){return i}},[4,"gov-message",{variant:[1]}]);function m(){if(typeof customElements==="undefined"){return}const e=["gov-message"];e.forEach((e=>{switch(e){case"gov-message":if(!customElements.get(e)){customElements.define(e,c)}break}}))}m();const l=c;const d=m;export{l as GovMessage,d as defineCustomElement};
|
|
2
|
-
//# sourceMappingURL=gov-message.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["pick","Variants","MessageClass","root","icon","content","close","govMessageCss","GovMessage","proxyCustomElement","H","constructor","PRIMARY","this","h","govHost","host","validateVariant","newValue","validateProp","render","Host","class","classes","variant","role","hasSlot","name"],"sources":["../../../packages/core/src/components/gov-message/constants.ts","../../../packages/core/src/components/gov-message/gov-message.scss?tag=gov-message","../../../packages/core/src/components/gov-message/gov-message.tsx"],"sourcesContent":["import { Variants } from '../../core/constants/variants'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const MessageVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS'])\nexport type MessageVariantType = `${ValueOf<typeof MessageVariants>}`\n\nexport const MessageClass = {\n\troot: 'gov-message',\n\ticon: 'gov-message__icon',\n\tcontent: 'gov-message__content',\n\tclose: 'gov-message__close',\n}\n","/*\n * Alert\n */\n\n@import \"../gov-toast/gov-toast-message-core.scss\";\n$class: \".gov-message\";\n\n#{$class} {\n\t@include toast-message-core;\n\n\t// VARIANTS\n\t@include parameter(\"shadow\") {\n\t\tbox-shadow: $message-box-shadow;\n\t}\n\t@each $variant, $definitions in $message-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\tborder-left-color: get(\"color\", $definitions);\n\t\t\tbackground: get(\"bg-color\", $definitions);\n\t\t\t#{$class} {\n\t\t\t\t&__icon {\n\t\t\t\t\tcolor: get(\"color\", $definitions);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// STATES\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\tbackground: $message-bg-inverse;\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { MessageClass, MessageVariantType } from \"./constants\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { Variants } from \"../../core/constants/variants\"\n\n@Component({\n\ttag: \"gov-message\",\n\tstyleUrl: \"gov-message.scss\",\n})\nexport class GovMessage {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovMessageElement\n\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly variant: MessageVariantType = Variants.PRIMARY\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(Variants, newValue, MessageClass.root)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(MessageClass.root)} variant={this.variant} role=\"alert\">\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t<span class={MessageClass.icon}>\n\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\n\t\t\t\t<div class={MessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"yMAI+BA,EAAKC,EAAU,CAAC,UAAW,YAAa,UAAW,QAAS,YAGpF,MAAMC,EAAe,CAC3BC,KAAM,cACNC,KAAM,oBACNC,QAAS,uBACTC,MAAO,sBCXR,MAAMC,EAAgB,oiH,MCWTC,EAAUC,EAAA,MAAAD,UAAAE,EAGtB,WAAAC,G,2CAS+CV,EAASW,QARvDC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAWvB,eAAAC,CAAgBC,GACfC,EAAalB,EAAUiB,EAAUhB,EAAaC,K,CAG/C,MAAAiB,GACC,OACCN,EAACO,EAAI,CAACC,MAAOT,KAAKC,EAAES,QAAQrB,EAAaC,MAAOqB,QAASX,KAAKW,QAASC,KAAK,SAC1EZ,KAAKC,EAAEY,QAAQ,SACfZ,EAAA,QAAMQ,MAAOpB,EAAaE,MACzBU,EAAA,QAAMa,KAAK,UAIbb,EAAA,OAAKQ,MAAOpB,EAAaG,SACxBS,EAAA,c"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface GovModal extends Components.GovModal, HTMLElement {}
|
|
4
|
-
export const GovModal: {
|
|
5
|
-
prototype: GovModal;
|
|
6
|
-
new (): GovModal;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as o,H as e,c as a,h as t,d as i}from"./p-2dee9951.js";import{g as s,a as r}from"./p-28e59384.js";import{c as l}from"./p-003e6cca.js";import{a as d}from"./p-7f2c9830.js";import{b as n}from"./p-4ff831e3.js";import{c as m}from"./p-24636c53.js";import{d as c}from"./p-03990da5.js";import{M as g}from"./p-be4aab0e.js";import{d as h}from"./p-570803ab.js";import{d as v}from"./p-700b19da.js";import{d as p}from"./p-1f84a302.js";const f='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-modal{display:none}.gov-modal__dialog{z-index:101;position:fixed;top:50%;left:50%;display:flex;justify-content:center;align-items:center;width:100%;max-width:var(--gov-modal-max-width, 52.5rem);height:100%;padding:0.5rem;border:none;background:transparent;transform:translate(-50%, -50%);pointer-events:none}.gov-modal__inner{position:relative;display:flex;flex-direction:column;width:100%;max-height:100%;border-radius:var(--gov-border-radius, 0.1875rem);background:var(--gov-modal-bg, var(--gov-color-neutral-white));overflow:hidden;pointer-events:auto;box-shadow:0 0 1.5rem rgba(var(--gov-color-secondary-800-rgb), 0.24)}.gov-modal__header{display:flex;gap:1rem;align-items:flex-start;padding:1.5rem 1rem;border-bottom:var(--gov-modal-border-color, 0.0625rem solid var(--gov-color-secondary-500))}.gov-modal__icon{flex:0 0 auto;padding-top:calc((var(--gov-text-3xl-font-size) * 1.5 - 1.5rem) / 2)}.gov-modal__icon>*{width:1.5rem;height:1.5rem}.gov-modal__title{font-weight:var(--gov-text-3xl-font-weight);font-size:var(--gov-text-3xl-font-size);line-height:var(--gov-text-3xl-line-height);letter-spacing:var(--gov-text-3xl-letter-spacing);margin:0}.gov-modal__close{flex:0 0 auto;margin-left:auto}.gov-modal__content{height:100%;padding:1.5rem 1rem;color:var(--gov-modal-text-color, var(--gov-color-secondary-700));overflow:auto}.gov-modal__content>*:last-child{margin-bottom:0}.gov-modal__footer,.gov-modal__actions{padding:1.5rem 1rem;border-top:var(--gov-modal-border-color, 0.0625rem solid var(--gov-color-secondary-500))}.gov-modal__actions{display:flex;gap:0.5rem 1rem;flex-wrap:wrap;justify-content:flex-end}.gov-modal__dialog:focus .gov-modal__inner{outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base)}.gov-modal[open=""],.gov-modal[open=true i],.gov-modal[open="1"]{display:block}@media (min-width: 30em){.gov-modal__dialog{max-width:calc(var(--gov-modal-max-width, 52.5rem) + 3rem);padding:1.5rem}.gov-modal__dialog:focus{outline-offset:-1.5rem}.gov-modal__inner{box-shadow:0 0 2rem rgba(var(--gov-color-secondary-800-rgb), 0.32)}.gov-modal--prompt .gov-modal__dialog{max-width:calc(var(--gov-modal-prompt-max-width, 33.125rem) + 3rem)}}@media (min-width: 48em){.gov-modal__header{gap:1.25rem;padding:2rem 2.5rem 2rem 3rem}.gov-modal__content{padding:2rem 3rem}.gov-modal__footer{padding:1rem 3rem}.gov-modal--prompt .gov-modal__header,.gov-modal--prompt .gov-modal__content,.gov-modal--prompt .gov-modal__footer,.gov-modal--prompt .gov-modal__actions{padding:1.5rem}}';const b=o(class o extends e{constructor(){super();this.__registerHost();this.govClose=a(this,"gov-close",7);this.open=false;this.blockClose=false;this.label=undefined;this.role="dialog";this.labelTag="h2";this.wcagLabelledBy=undefined;this.wcagDescribedBy=undefined;this.wcagCloseLabel="Zavřít okno";this.wcagCloseLabelledBy=undefined;this.h=s(this.host);this.labelId=m("GovModalLabel");this.contentId=m("GovModalContent")}validateLabelTag(o){const e=["h1","h2","h3","h4","h5","h6"];if(o){if(!e.includes(o)){d(`[${g.root}]: Tag ${o} is not allowed.`)}}}watchOpen(o){this.open=o}showModal(){this.open=true;document.body.classList.add(g.bodyFix)}hideModal(){this.open=false;document.body.classList.remove(g.bodyFix)}async componentWillRender(){if(this.open){this.showModal()}else{this.hideModal()}}async componentDidRender(){if(l()){await c(500);await this.validateWcag()}}render(){const o=this.labelTag;return t(i,{class:this.h.classes(g.root),open:this.open},t("dialog",{class:g.dialog,hidden:!this.open,tabindex:"-1",open:this.open,"aria-modal":"true","aria-hidden":r(!this.open),"aria-labelledby":this.wcagLabelledBy||this.labelId,"aria-describedby":this.wcagDescribedBy||this.contentId,role:this.role},t("div",{class:g.inner},t("div",{class:g.header},this.h.hasSlot("icon")&&t("div",{class:g.icon},t("slot",{name:"icon"})),this.label&&t(o,{class:g.title,id:this.labelId},this.label),t("gov-button",{disabled:this.blockClose,class:g.close,variant:"primary",wcagLabel:this.wcagCloseLabel,wcagLabelledBy:this.wcagCloseLabelledBy,type:"base","on-gov-click":this.onCloseHandler.bind(this)},t("gov-icon",{name:"x-lg"}))),t("div",{class:g.content,id:this.contentId},t("slot",null)),this.h.hasSlot("footer")&&t("div",{class:g.footer},t("slot",{name:"footer"})))),this.open?t("gov-backdrop",{"wcag-label":this.wcagCloseLabel,"wcag-labelled-by":this.wcagCloseLabelledBy,"on-gov-click":this.onCloseHandler.bind(this)}):null)}onCloseHandler(o){o.stopPropagation();if(this.blockClose===false){this.hideModal();this.govClose.emit(o)}}async show(){this.showModal()}async hide(){this.hideModal()}async validateWcag(){n(this.wcagLabelledBy,"wcag-labelled-by",g.root);n(this.wcagDescribedBy,"wcag-described-by",g.root)}get host(){return this}static get watchers(){return{labelTag:["validateLabelTag"],open:["watchOpen"]}}static get style(){return f}},[4,"gov-modal",{open:[1028],blockClose:[4,"block-close"],label:[1],role:[1],labelTag:[1,"label-tag"],wcagLabelledBy:[1,"wcag-labelled-by"],wcagDescribedBy:[1,"wcag-described-by"],wcagCloseLabel:[1,"wcag-close-label"],wcagCloseLabelledBy:[1,"wcag-close-labelled-by"],show:[64],hide:[64],validateWcag:[64]}]);function u(){if(typeof customElements==="undefined"){return}const o=["gov-modal","gov-backdrop","gov-button","gov-icon"];o.forEach((o=>{switch(o){case"gov-modal":if(!customElements.get(o)){customElements.define(o,b)}break;case"gov-backdrop":if(!customElements.get(o)){h()}break;case"gov-button":if(!customElements.get(o)){v()}break;case"gov-icon":if(!customElements.get(o)){p()}break}}))}u();const _=b;const w=u;export{_ as GovModal,w as defineCustomElement};
|
|
2
|
-
//# sourceMappingURL=gov-modal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["govModalCss","GovModal","proxyCustomElement","H","constructor","this","h","govHost","host","labelId","createID","contentId","validateLabelTag","newValue","validTags","includes","govErrorLog","ModalClass","root","watchOpen","open","showModal","document","body","classList","add","bodyFix","hideModal","remove","componentWillRender","componentDidRender","canValidateWcagOnRender","delay","validateWcag","render","LabelTag","labelTag","Host","class","classes","dialog","hidden","tabindex","toBoolAttr","wcagLabelledBy","wcagDescribedBy","role","inner","header","hasSlot","icon","name","label","title","id","disabled","blockClose","close","variant","wcagLabel","wcagCloseLabel","wcagCloseLabelledBy","type","onCloseHandler","bind","content","footer","e","stopPropagation","govClose","emit","show","hide","validateWcagRef"],"sources":["../../../packages/core/src/components/gov-modal/gov-modal.scss?tag=gov-modal","../../../packages/core/src/components/gov-modal/gov-modal.tsx"],"sourcesContent":["/*\n * Modal\n */\n\n$class: \".gov-modal\";\n\n#{$class} {\n\tdisplay: none;\n\n\t&__dialog {\n\t\t@include z-index(\"modal\", 1);\n\t\tposition: fixed;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\tmax-width: $modal-max-width;\n\t\theight: 100%;\n\t\tpadding: rem-calc(8);\n\t\tborder: none;\n\t\tbackground: transparent;\n\t\ttransform: translate(-50%, -50%);\n\t\tpointer-events: none;\n\t}\n\n\t&__inner {\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t\tmax-height: 100%;\n\t\tborder-radius: $border-radius;\n\t\tbackground: $modal-bg;\n\t\toverflow: hidden;\n\t\tpointer-events: auto;\n\t\tbox-shadow: get($shadow-l, $shadows);\n\t}\n\n\t&__header {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\talign-items: flex-start;\n\t\tpadding: rem-calc(24 16);\n\t\tborder-bottom: $modal-border;\n\t}\n\n\t&__icon {\n\t\tflex: 0 0 auto;\n\t\tpadding-top: calc(((var(--gov-text-#{$font-size-3xl}-font-size) * 1.5) - rem-calc(24)) / 2);\n\n\t\t& > * {\n\t\t\twidth: rem-calc(24);\n\t\t\theight: rem-calc(24);\n\t\t}\n\t}\n\n\t&__title {\n\t\t@include typography($font-size-3xl);\n\t\tmargin: 0;\n\t}\n\n\t&__close {\n\t\tflex: 0 0 auto;\n\t\tmargin-left: auto;\n\t}\n\n\t&__content {\n\t\t@include reset-last-margin();\n\t\theight: 100%;\n\t\tpadding: rem-calc(24 16);\n\t\tcolor: $modal-text-color;\n\t\toverflow: auto;\n\t}\n\n\t&__footer,\n\t&__actions {\n\t\tpadding: rem-calc(24 16);\n\t\tborder-top: $modal-border;\n\t}\n\n\t&__actions {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(8 16);\n\t\tflex-wrap: wrap;\n\t\tjustify-content: flex-end;\n\t}\n\n\t// STATES\n\t&__dialog:focus &__inner {\n\t\toutline: $outline;\n\t}\n\n\t@include parameter(\"open\") {\n\t\tdisplay: block;\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t&__dialog {\n\t\t\tmax-width: calc($modal-max-width + 2 * rem-calc(24));\n\t\t\tpadding: rem-calc(24);\n\n\t\t\t&:focus {\n\t\t\t\toutline-offset: rem-calc(-24);\n\t\t\t}\n\t\t}\n\t\t&__inner {\n\t\t\tbox-shadow: get($shadow-xl, $shadows);\n\t\t}\n\n\t\t// VARIANTS\n\t\t&--prompt &__dialog {\n\t\t\tmax-width: calc($modal-prompt-max-width + 2 * rem-calc(24));\n\t\t}\n\t}\n\t@include mq($from: md) {\n\t\t&__header {\n\t\t\tgap: rem-calc(20);\n\t\t\tpadding: rem-calc(32 40 32 48);\n\t\t}\n\t\t&__content {\n\t\t\tpadding: rem-calc(32 48);\n\t\t}\n\t\t&__footer {\n\t\t\tpadding: rem-calc(16 48);\n\t\t}\n\n\t\t// VARIANTS\n\t\t&--prompt {\n\t\t\t#{$class} {\n\t\t\t\t&__header,\n\t\t\t\t&__content,\n\t\t\t\t&__footer,\n\t\t\t\t&__actions {\n\t\t\t\t\tpadding: rem-calc(24);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, Host, Method, Prop, Watch, h } from '@stencil/core'\nimport { govHost, toBoolAttr } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { validateWcagRef } from '../../helpers/Validate/wcag'\nimport { Nullable } from '../../types/interfaces'\nimport { createID } from '../../utils/string.utils'\nimport { delay } from '../../utils/utils'\nimport { ModalClass } from './constants'\n\n@Component({\n\ttag: 'gov-modal',\n\tstyleUrl: 'gov-modal.scss',\n})\nexport class GovModal {\n\tprivate h: GovHost\n\tprivate readonly labelId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.labelId = createID('GovModalLabel')\n\t\tthis.contentId = createID('GovModalContent')\n\t}\n\n\t@Element() host: HTMLGovModalElement\n\n\t/**\n\t * Attribute for modal window display\n\t */\n\t@Prop({ mutable: true }) open = false\n\t/**\n\t * Attribute allowing blocking the modal closing\n\t */\n\t@Prop() blockClose = false\n\t/**\n\t * Title of modal window\n\t */\n\t@Prop() label: string\n\t/**\n\t * Role of modal\n\t */\n\t@Prop({ attribute: 'role' }) role: Nullable<string> = 'dialog'\n\t/**\n\t * Used to change the HTML tag in the modal label for correct semantic structure\n\t */\n\t@Prop({ attribute: 'label-tag' }) readonly labelTag: string = 'h2'\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: 'wcag-labelled-by' }) wcagLabelledBy: string\n\t/**\n\t * Indicates the id of a component that describes the modal.\n\t */\n\t@Prop({ attribute: 'wcag-described-by' }) wcagDescribedBy: string\n\t/**\n\t * Adds accessible label for the modal close button that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-close-label' }) readonly wcagCloseLabel: string = 'Zavřít okno'\n\t/**\n\t * A string of identifiers that indicate alternative label elements for closing the modal window\n\t */\n\t@Prop({ attribute: 'wcag-close-labelled-by' }) wcagCloseLabelledBy: string\n\t/**\n\t * Emitted when modal window closes.\n\t */\n\t@Event({ eventName: 'gov-close' }) govClose: EventEmitter<PointerEvent>\n\n\t@Watch('labelTag')\n\tvalidateLabelTag(newValue: string): void {\n\t\tconst validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${ModalClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch('open')\n\twatchOpen(newValue: boolean): void {\n\t\tthis.open = newValue\n\t}\n\n\tprivate showModal() {\n\t\tthis.open = true\n\t\tdocument.body.classList.add(ModalClass.bodyFix)\n\t}\n\n\tprivate hideModal() {\n\t\tthis.open = false\n\t\tdocument.body.classList.remove(ModalClass.bodyFix)\n\t}\n\n\tasync componentWillRender() {\n\t\tif (this.open) {\n\t\t\tthis.showModal()\n\t\t} else {\n\t\t\tthis.hideModal()\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\tconst LabelTag = this.labelTag\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ModalClass.root)} open={this.open}>\n\t\t\t\t<dialog\n\t\t\t\t\tclass={ModalClass.dialog}\n\t\t\t\t\thidden={!this.open}\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\topen={this.open}\n\t\t\t\t\taria-modal=\"true\"\n\t\t\t\t\taria-hidden={toBoolAttr(!this.open)}\n\t\t\t\t\taria-labelledby={this.wcagLabelledBy || this.labelId}\n\t\t\t\t\taria-describedby={this.wcagDescribedBy || this.contentId}\n\t\t\t\t\trole={this.role}\n\t\t\t\t>\n\t\t\t\t\t<div class={ModalClass.inner}>\n\t\t\t\t\t\t<div class={ModalClass.header}>\n\t\t\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t\t\t<div class={ModalClass.icon}>\n\t\t\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{this.label && (\n\t\t\t\t\t\t\t\t<LabelTag class={ModalClass.title} id={this.labelId}>\n\t\t\t\t\t\t\t\t\t{this.label}\n\t\t\t\t\t\t\t\t</LabelTag>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\tdisabled={this.blockClose}\n\t\t\t\t\t\t\t\tclass={ModalClass.close}\n\t\t\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t\t\twcagLabel={this.wcagCloseLabel}\n\t\t\t\t\t\t\t\twcagLabelledBy={this.wcagCloseLabelledBy}\n\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<gov-icon name=\"x-lg\" />\n\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class={ModalClass.content} id={this.contentId}>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{this.h.hasSlot('footer') && (\n\t\t\t\t\t\t\t<div class={ModalClass.footer}>\n\t\t\t\t\t\t\t\t<slot name=\"footer\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</dialog>\n\n\t\t\t\t{this.open ? (\n\t\t\t\t\t<gov-backdrop wcag-label={this.wcagCloseLabel} wcag-labelled-by={this.wcagCloseLabelledBy} on-gov-click={this.onCloseHandler.bind(this)} />\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onCloseHandler(e: PointerEvent) {\n\t\te.stopPropagation()\n\t\tif (this.blockClose === false) {\n\t\t\tthis.hideModal()\n\t\t\tthis.govClose.emit(e)\n\t\t}\n\t}\n\n\t/**\n\t * Showing the modal\n\t */\n\t@Method()\n\tasync show(): Promise<void> {\n\t\tthis.showModal()\n\t}\n\n\t/**\n\t * Hiding the modal\n\t */\n\t@Method()\n\tasync hide(): Promise<void> {\n\t\tthis.hideModal()\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagRef(this.wcagLabelledBy, 'wcag-labelled-by', ModalClass.root)\n\t\tvalidateWcagRef(this.wcagDescribedBy, 'wcag-described-by', ModalClass.root)\n\t}\n}\n"],"mappings":"+aAAA,MAAMA,EAAc,wyF,MCePC,EAAQC,EAAA,MAAAD,UAAAE,EAKpB,WAAAC,G,4EAWgC,M,gBAIX,M,+BAQiC,S,cAIQ,K,iFAYa,c,mCAtC1EC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,QAAUC,EAAS,iBACxBL,KAAKM,UAAYD,EAAS,kB,CA+C3B,gBAAAE,CAAiBC,GAChB,MAAMC,EAAY,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,MACjD,GAAID,EAAU,CACb,IAAKC,EAAUC,SAASF,GAAW,CAClCG,EAAY,IAAIC,EAAWC,cAAcL,oB,GAM5C,SAAAM,CAAUN,GACTR,KAAKe,KAAOP,C,CAGL,SAAAQ,GACPhB,KAAKe,KAAO,KACZE,SAASC,KAAKC,UAAUC,IAAIR,EAAWS,Q,CAGhC,SAAAC,GACPtB,KAAKe,KAAO,MACZE,SAASC,KAAKC,UAAUI,OAAOX,EAAWS,Q,CAG3C,yBAAMG,GACL,GAAIxB,KAAKe,KAAM,CACdf,KAAKgB,W,KACC,CACNhB,KAAKsB,W,EAIP,wBAAMG,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACN3B,KAAK4B,c,EAIb,MAAAC,GACC,MAAMC,EAAW9B,KAAK+B,SACtB,OACC9B,EAAC+B,EAAI,CAACC,MAAOjC,KAAKC,EAAEiC,QAAQtB,EAAWC,MAAOE,KAAMf,KAAKe,MACxDd,EAAA,UACCgC,MAAOrB,EAAWuB,OAClBC,QAASpC,KAAKe,KACdsB,SAAS,KACTtB,KAAMf,KAAKe,KAAI,aACJ,OAAM,cACJuB,GAAYtC,KAAKe,MAAK,kBAClBf,KAAKuC,gBAAkBvC,KAAKI,QAAO,mBAClCJ,KAAKwC,iBAAmBxC,KAAKM,UAC/CmC,KAAMzC,KAAKyC,MAEXxC,EAAA,OAAKgC,MAAOrB,EAAW8B,OACtBzC,EAAA,OAAKgC,MAAOrB,EAAW+B,QACrB3C,KAAKC,EAAE2C,QAAQ,SACf3C,EAAA,OAAKgC,MAAOrB,EAAWiC,MACtB5C,EAAA,QAAM6C,KAAK,UAGZ9C,KAAK+C,OACL9C,EAAC6B,EAAQ,CAACG,MAAOrB,EAAWoC,MAAOC,GAAIjD,KAAKI,SAC1CJ,KAAK+C,OAGR9C,EAAA,cACCiD,SAAUlD,KAAKmD,WACflB,MAAOrB,EAAWwC,MAClBC,QAAQ,UACRC,UAAWtD,KAAKuD,eAChBhB,eAAgBvC,KAAKwD,oBACrBC,KAAK,OAAM,eACGzD,KAAK0D,eAAeC,KAAK3D,OAEvCC,EAAA,YAAU6C,KAAK,WAGjB7C,EAAA,OAAKgC,MAAOrB,EAAWgD,QAASX,GAAIjD,KAAKM,WACxCL,EAAA,cAEAD,KAAKC,EAAE2C,QAAQ,WACf3C,EAAA,OAAKgC,MAAOrB,EAAWiD,QACtB5D,EAAA,QAAM6C,KAAK,cAMd9C,KAAKe,KACLd,EAAA,6BAA0BD,KAAKuD,eAAc,mBAAoBvD,KAAKwD,oBAAmB,eAAgBxD,KAAK0D,eAAeC,KAAK3D,QAC/H,K,CAKC,cAAA0D,CAAeI,GACtBA,EAAEC,kBACF,GAAI/D,KAAKmD,aAAe,MAAO,CAC9BnD,KAAKsB,YACLtB,KAAKgE,SAASC,KAAKH,E,EAQrB,UAAMI,GACLlE,KAAKgB,W,CAON,UAAMmD,GACLnE,KAAKsB,W,CAON,kBAAMM,GACLwC,EAAgBpE,KAAKuC,eAAgB,mBAAoB3B,EAAWC,MACpEuD,EAAgBpE,KAAKwC,gBAAiB,oBAAqB5B,EAAWC,K"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface GovNavItem extends Components.GovNavItem, HTMLElement {}
|
|
4
|
-
export const GovNavItem: {
|
|
5
|
-
prototype: GovNavItem;
|
|
6
|
-
new (): GovNavItem;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as e,H as o,h as t,d as i}from"./p-2dee9951.js";import{a as n}from"./p-7f2c9830.js";import{a as r}from"./p-a6d14a47.js";const a='.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-nav-item{display:block}.gov-nav-item__link{position:relative;display:block;padding:0.9375rem 3rem 0.9375rem 2.25rem;color:var(--gov-nav-color, var(--gov-color-neutral-white));text-decoration:none}.gov-nav-item__link:focus{outline:none}.gov-nav-item__link:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0}.gov-nav-item__link:focus{outline-color:var(--gov-nav-color, var(--gov-color-neutral-white))}@media not all and (pointer: coarse){.gov-nav-item__link:hover{color:var(--gov-nav-color, var(--gov-color-neutral-white));text-decoration:underline}}@media (min-width: 48em){.gov-nav-item__link{display:inline-flex;justify-content:center;align-items:center;height:100%;padding:1.375rem 1.25rem 1.3125rem}.gov-nav-item__link::before{content:"";position:absolute;display:block;top:0;left:50%;width:0;height:0.125rem;background:var(--gov-nav-color, var(--gov-color-neutral-white));transform:translate(-50%);transition:width 150ms}@media not all and (pointer: coarse){.gov-nav-item__link:hover{text-decoration:none}.gov-nav-item__link:hover::before{width:100%}}}';const s=e(class e extends o{constructor(){super();this.__registerHost();this.isExpandedState=undefined;this.href=undefined}validateHref(e){if(!e){n(`[${r.root}]: Parameter href is required.`)}}componentWillLoad(){this.validateHref(this.href)}render(){return t(i,{class:r.root,role:"listitem"},t("a",{href:this.href,class:r.link},t("slot",null)))}get host(){return this}static get watchers(){return{href:["validateHref"]}}static get style(){return a}},[4,"gov-nav-item",{href:[1],isExpandedState:[32]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-nav-item"];e.forEach((e=>{switch(e){case"gov-nav-item":if(!customElements.get(e)){customElements.define(e,s)}break}}))}l();const v=s;const c=l;export{v as GovNavItem,c as defineCustomElement};
|
|
2
|
-
//# sourceMappingURL=gov-nav-item.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["govNavItemCss","GovNavItem","proxyCustomElement","H","validateHref","newValue","govErrorLog","NavItemClass","root","componentWillLoad","this","href","render","h","Host","class","role","link"],"sources":["../../../packages/core/src/components/gov-nav/gov-nav-item.scss?tag=gov-nav-item","../../../packages/core/src/components/gov-nav/gov-nav-item.tsx"],"sourcesContent":["/*\n * Nav - Item\n */\n\n$class: \".gov-nav-item\";\n\n#{$class} {\n\tdisplay: block;\n\t&__link {\n\t\t@include focus-outline();\n\t\tposition: relative;\n\t\tdisplay: block;\n\t\tpadding: rem-calc(15 48 15 36);\n\t\tcolor: $nav-color;\n\t\ttext-decoration: none;\n\t\t&:focus {\n\t\t\toutline-color: $nav-color;\n\t\t}\n\t\t@include hover() {\n\t\t\tcolor: $nav-color;\n\t\t\ttext-decoration: underline;\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: md) {\n\t\t&__link {\n\t\t\tdisplay: inline-flex;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\theight: 100%;\n\t\t\tpadding: rem-calc(22 20 21);\n\t\t\t&::before {\n\t\t\t\t@include pseudo();\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 50%;\n\t\t\t\twidth: 0;\n\t\t\t\theight: rem-calc(2);\n\t\t\t\tbackground: $nav-color;\n\t\t\t\ttransform: translate(-50%);\n\t\t\t\ttransition: width $t;\n\t\t\t}\n\t\t\t@include hover() {\n\t\t\t\ttext-decoration: none;\n\t\t\t\t&::before {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Prop, State, Host, Watch } from '@stencil/core'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { NavItemClass } from './constants'\n\n@Component({\n\ttag: 'gov-nav-item',\n\tstyleUrl: 'gov-nav-item.scss',\n})\nexport class GovNavItem {\n\t@Element() readonly host: HTMLGovNavItemElement\n\t@State() isExpandedState: boolean\n\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\n\t@Watch('href')\n\tvalidateHref(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${NavItemClass.root}]: Parameter href is required.`)\n\t\t}\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateHref(this.href)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={NavItemClass.root} role=\"listitem\">\n\t\t\t\t<a href={this.href} class={NavItemClass.link}>\n\t\t\t\t\t<slot />\n\t\t\t\t</a>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"iIAAA,MAAMA,EAAgB,y+C,MCQTC,EAAUC,EAAA,MAAAD,UAAAE,E,+FAWtB,YAAAC,CAAaC,GACZ,IAAKA,EAAU,CACdC,EAAY,IAAIC,EAAaC,qC,EAI/B,iBAAAC,GACCC,KAAKN,aAAaM,KAAKC,K,CAGxB,MAAAC,GACC,OACCC,EAACC,EAAI,CAACC,MAAOR,EAAaC,KAAMQ,KAAK,YACpCH,EAAA,KAAGF,KAAMD,KAAKC,KAAMI,MAAOR,EAAaU,MACvCJ,EAAA,c"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface GovNav extends Components.GovNav, HTMLElement {}
|
|
4
|
-
export const GovNav: {
|
|
5
|
-
prototype: GovNav;
|
|
6
|
-
new (): GovNav;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as t,H as e,h as a,d as s}from"./p-2dee9951.js";import{N as n}from"./p-a6d14a47.js";import{v as o}from"./p-4ff831e3.js";import{c as i}from"./p-003e6cca.js";import{d as r}from"./p-03990da5.js";const c=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-nav{position:relative;display:block;width:100%;font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);background:var(--gov-nav-bg, var(--gov-color-primary));font-weight:bold;letter-spacing:0.0125em;text-transform:uppercase}@media (min-width: 48em){.gov-nav{text-align:center}.gov-nav__nav{display:flex;justify-content:space-between}}";const l=t(class t extends e{constructor(){super();this.__registerHost();this.wcagLabel=undefined;this.wcagLabelledBy=undefined}async componentDidRender(){if(i()){await r(500);await this.validateWcag()}}render(){return a(s,{class:n.root},a("nav",{class:n.nav,role:"list","arial-label":this.wcagLabel,"arial-labelledby":this.wcagLabelledBy},a("slot",null)))}async validateWcag(){o(this.wcagLabel,this.wcagLabelledBy,n.root)}get host(){return this}static get style(){return c}},[4,"gov-nav",{wcagLabel:[1,"wcag-label"],wcagLabelledBy:[1,"wcag-labelled-by"],validateWcag:[64]}]);function p(){if(typeof customElements==="undefined"){return}const t=["gov-nav"];t.forEach((t=>{switch(t){case"gov-nav":if(!customElements.get(t)){customElements.define(t,l)}break}}))}p();const g=l;const v=p;export{g as GovNav,v as defineCustomElement};
|
|
2
|
-
//# sourceMappingURL=gov-nav.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["govNavCss","GovNav","proxyCustomElement","H","componentDidRender","canValidateWcagOnRender","delay","this","validateWcag","render","h","Host","class","NavClass","root","nav","role","wcagLabel","wcagLabelledBy","validateWcagLabel"],"sources":["../../../packages/core/src/components/gov-nav/gov-nav.scss?tag=gov-nav","../../../packages/core/src/components/gov-nav/gov-nav.tsx"],"sourcesContent":["/*\n * Nav\n */\n\n$class: \".gov-nav\";\n\n#{$class} {\n\t@include base();\n\t@include typography($font-size-s);\n\tbackground: $nav-bg;\n\tfont-weight: bold;\n\tletter-spacing: 0.0125em;\n\ttext-transform: uppercase;\n\n\t// MQ\n\t@include mq($from: md) {\n\t\ttext-align: center;\n\t\t&__nav {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: space-between;\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Method, Prop } from '@stencil/core'\nimport { NavClass } from './constants'\nimport { validateWcagLabel } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\n\n@Component({\n\ttag: 'gov-nav',\n\tstyleUrl: 'gov-nav.scss',\n})\nexport class GovNav {\n\t@Element() readonly host: HTMLGovNavElement\n\n\t/**\n\t * Adds accessible label for the accordion that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: 'wcag-labelled-by' }) readonly wcagLabelledBy: string\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={NavClass.root}>\n\t\t\t\t<nav class={NavClass.nav} role={'list'} arial-label={this.wcagLabel} arial-labelledby={this.wcagLabelledBy}>\n\t\t\t\t\t<slot />\n\t\t\t\t</nav>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, NavClass.root)\n\t}\n}\n"],"mappings":"yMAAA,MAAMA,EAAY,8xB,MCULC,EAAMC,EAAA,MAAAD,UAAAE,E,mGAYlB,wBAAMC,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNC,KAAKC,c,EAIb,MAAAC,GACC,OACCC,EAACC,EAAI,CAACC,MAAOC,EAASC,MACrBJ,EAAA,OAAKE,MAAOC,EAASE,IAAKC,KAAM,OAAM,cAAeT,KAAKU,UAAS,mBAAoBV,KAAKW,gBAC3FR,EAAA,c,CAUJ,kBAAMF,GACLW,EAAkBZ,KAAKU,UAAWV,KAAKW,eAAgBL,EAASC,K"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface GovPagination extends Components.GovPagination, HTMLElement {}
|
|
4
|
-
export const GovPagination: {
|
|
5
|
-
prototype: GovPagination;
|
|
6
|
-
new (): GovPagination;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as o,H as r,c as e,h as t,d as a}from"./p-2dee9951.js";import{F as n}from"./p-1c1d0bbe.js";import{v as i}from"./p-dcb5fb35.js";import{S as s}from"./p-55500e5a.js";import{V as g}from"./p-ff7365ae.js";import{p as c,d as l}from"./p-03990da5.js";import{g as v,p as u,t as p}from"./p-28e59384.js";import{a as h,v as d}from"./p-4ff831e3.js";import{c as m}from"./p-003e6cca.js";import{c as b}from"./p-24636c53.js";import{d as _}from"./p-700b19da.js";import{d as f}from"./p-036e0f9e.js";import{d as y}from"./p-1f84a302.js";const w=c(s,["_S","_M"]);const k=c(g,["PRIMARY","SECONDARY"]);var x;(function(o){o["BUTTON"]="button";o["SELECT"]="select"})(x||(x={}));const z={root:"gov-pagination",list:"gov-pagination__list",item:"gov-pagination__item",itemArrow:"gov-pagination__item--arrow",itemMore:"gov-pagination__item--more",itemSelect:"gov-pagination__item--select",inner:"gov-pagination__inner",arrow:"gov-pagination__arrow"};function S(o,r=1,e=10,t=10){const a=Math.ceil(o/e);if(r<1){r=1}else if(r>a){r=a}let n,i;if(a<=t){n=1;i=a}else{const o=Math.floor(t/2);const e=Math.ceil(t/2)-1;if(r<=o){n=1;i=t}else if(r+e>=a){n=a-t+1;i=a}else{n=r-o;i=r+e}}const s=(r-1)*e;const g=Math.min(s+e-1,o-1);const c=Array.from(Array(i+1-n).keys()).map((o=>n+o));return{totalItems:o,currentPage:r,pageSize:e,totalPages:a,startPage:n,endPage:i,startIndex:s,endIndex:g,pages:c}}const j=(o,r)=>{if(Number.isInteger(o)&&Number.isInteger(r)){return[...Array(r+1).keys()].slice(o)}return[]};const P=".gov-pagination__list{margin:0;padding:0}.gov-pagination__list .gov-pagination__item{margin:0;padding:0;background:none}.gov-pagination__list .gov-pagination__item::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-pagination{position:relative;display:block;width:100%}.gov-pagination__list{display:flex;align-items:center;flex-wrap:wrap;font-weight:bold;text-align:center}.gov-pagination__list .gov-pagination__item{display:flex;justify-content:center;align-items:center;margin:0;padding:0.125rem;border-radius:var(--gov-border-radius, 0.1875rem);overflow:hidden}.gov-pagination__list .gov-pagination__item--arrow{display:flex}.gov-pagination__list .gov-pagination__item--select{z-index:1;display:flex;overflow:visible;padding:0rem 1rem}.gov-pagination__arrow{margin:0}.gov-pagination__item--more .gov-form-select select{border:none !important;padding-right:0.75rem !important}.gov-pagination__item--more .gov-form-select .gov-icon{display:none}.gov-pagination__inner{display:flex;justify-content:center;align-items:center;align-self:stretch;width:100%;text-decoration:none}.gov-pagination__inner[wcag-current=true][type=solid][variant=primary] .element{background-color:var(--gov-button-primary-solid-hover-bg, var(--gov-color-primary-700));color:var(--gov-button-primary-solid-hover-color, var(--gov-color-neutral-white))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=primary] .element{background-color:var(--gov-button-primary-outlined-hover-bg, var(--gov-color-primary-100));color:var(--gov-button-primary-outlined-hover-color, var(--gov-color-primary))}.gov-pagination__inner[wcag-current=true][type=base][variant=primary] .element{background-color:var(--gov-button-primary-base-hover-bg, var(--gov-color-primary-100));color:var(--gov-button-primary-base-hover-color, var(--gov-color-primary))}.gov-pagination__inner[wcag-current=true][type=link][variant=primary] .element{background-color:var(--gov-button-primary-link-hover-bg, transparent);color:var(--gov-button-primary-link-hover-color, var(--gov-color-primary))}.gov-pagination__inner[wcag-current=true][type=solid][variant=secondary] .element{background-color:var(--gov-button-secondary-solid-hover-bg, var(--gov-color-secondary-900));color:var(--gov-button-secondary-solid-hover-color, var(--gov-color-neutral-white))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=secondary] .element{background-color:var(--gov-button-secondary-outlined-hover-bg, var(--gov-color-secondary-300));color:var(--gov-button-secondary-outlined-hover-color, var(--gov-color-secondary))}.gov-pagination__inner[wcag-current=true][type=base][variant=secondary] .element{background-color:var(--gov-button-secondary-base-hover-bg, var(--gov-color-secondary-300));color:var(--gov-button-secondary-base-hover-color, var(--gov-color-secondary))}.gov-pagination__inner[wcag-current=true][type=link][variant=secondary] .element{background-color:var(--gov-button-secondary-link-hover-bg, transparent);color:var(--gov-button-secondary-link-hover-color, var(--gov-color-secondary))}.gov-pagination__inner[wcag-current=true][type=solid][variant=error] .element{background-color:var(--gov-button-error-solid-hover-bg, var(--gov-color-error-500));color:var(--gov-button-error-solid-hover-color, var(--gov-color-neutral-white))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=error] .element{background-color:var(--gov-button-error-outlined-hover-bg, var(--gov-color-error-100));color:var(--gov-button-error-outlined-hover-color, var(--gov-color-error))}.gov-pagination__inner[wcag-current=true][type=base][variant=error] .element{background-color:var(--gov-button-error-base-hover-bg, var(--gov-color-error-100));color:var(--gov-button-error-base-hover-color, var(--gov-color-error))}.gov-pagination__inner[wcag-current=true][type=link][variant=error] .element{background-color:var(--gov-button-error-link-hover-bg, transparent);color:var(--gov-button-error-link-hover-color, var(--gov-color-error))}.gov-pagination__inner[wcag-current=true][type=solid][variant=success] .element{background-color:var(--gov-button-success-solid-hover-bg, var(--gov-color-success-600));color:var(--gov-button-success-solid-hover-color, var(--gov-color-neutral-white))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=success] .element{background-color:var(--gov-button-success-outlined-hover-bg, var(--gov-color-success-100));color:var(--gov-button-success-outlined-hover-color, var(--gov-color-success-500))}.gov-pagination__inner[wcag-current=true][type=base][variant=success] .element{background-color:var(--gov-button-success-base-hover-bg, var(--gov-color-success-100));color:var(--gov-button-success-base-hover-color, var(--gov-color-success-500))}.gov-pagination__inner[wcag-current=true][type=link][variant=success] .element{background-color:var(--gov-button-success-link-hover-bg, transparent);color:var(--gov-button-success-link-hover-color, var(--gov-color-success-500))}.gov-pagination__inner[wcag-current=true][type=solid][variant=warning] .element{background-color:var(--gov-button-warning-solid-hover-bg, var(--gov-color-warning-600));color:var(--gov-button-warning-solid-hover-color, var(--gov-color-neutral-white))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=warning] .element{background-color:var(--gov-button-warning-outlined-hover-bg, var(--gov-color-warning-200));color:var(--gov-button-warning-outlined-hover-color, var(--gov-color-warning-500))}.gov-pagination__inner[wcag-current=true][type=base][variant=warning] .element{background-color:var(--gov-button-warning-base-hover-bg, var(--gov-color-warning-200));color:var(--gov-button-warning-base-hover-color, var(--gov-color-warning-500))}.gov-pagination__inner[wcag-current=true][type=link][variant=warning] .element{background-color:var(--gov-button-warning-link-hover-bg, transparent);color:var(--gov-button-warning-link-hover-color, var(--gov-color-warning-500))}.gov-pagination[size=s] .gov-pagination__inner{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);font-weight:inherit}.gov-pagination[size=s] .gov-pagination__inner .element{min-width:var(--gov-pagination-s-button-size, 2rem)}.gov-pagination[size=m] .gov-pagination__inner{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);font-weight:inherit}.gov-pagination[size=m] .gov-pagination__inner .element{min-width:var(--gov-pagination-m-button-size, 2.5rem)}";const A=o(class o extends r{constructor(){super();this.__registerHost();this.govPage=e(this,"gov-page",7);this.type="button";this.current=1;this.total=0;this.inverse=undefined;this.size="m";this.variant="primary";this.pageSize=10;this.maxPages=5;this.link=undefined;this.wcagLabel=undefined;this.wcagLabelledBy=undefined;this.wcagSelectLabel="Vybrat stranu";this.wcagPageLabel="Strana";this.pagination=undefined;this.h=v(this.host);this.pageSelectId=b("GovPageSelect")}validateType(o){i(x,o,z.root)}validateSize(o){i(w,o,z.root)}validateVariant(o){i(k,o,z.root)}recalculate(){this.recalculatePagination(this.current)}componentWillLoad(){this.recalculatePagination(this.current);this.validateSize(this.size);this.validateVariant(this.variant)}async componentDidRender(){if(m()){await l(500);await this.validateWcag()}}recalculatePagination(o){this.pagination=S(this.total,o,this.pageSize,this.maxPages)}isActivePageClass(o,r){if(this.pagination.currentPage===r){return o+" is-active"}else{return o}}prepareLinkUrl(o){if(this.link){return String(this.link).replace("{PAGE}",String(o))}return undefined}resetSelectValue(){if(this.spreadSelectRef){this.spreadSelectRef.getRef().then((o=>{o.value="..."}))}}render(){const o=(o,r)=>{const e=o===-1;const a=p(this.pagination.currentPage===o?true:undefined);return t("gov-button",{href:this.prepareLinkUrl(o),variant:this.variant,size:this.size,type:"base",disabled:e,"on-gov-click":r=>this.onClickHandler(r,o),"wcag-label":o>-1?this.wcagPageLabel+" "+o:undefined,"wcag-current":a,class:z.inner},r)};return t(a,{class:this.h.classes(z.root),type:this.type,variant:this.variant,size:this.size},t("nav",{"aria-label":this.wcagLabel,"aria-labelledby":this.wcagLabelledBy},t("ul",{class:z.list},t("li",{class:u([z.item,z.itemArrow])},o(this.pagination.currentPage>1?1:-1,t("gov-icon",{class:z.arrow,name:"chevron-double-left"}))),t("li",{class:u([z.item,z.itemArrow])},o(this.pagination.startPage<this.pagination.currentPage?this.pagination.currentPage-1:-1,t("gov-icon",{class:z.arrow,name:"chevron-left"}))),this.type=="select"?t("li",{class:u([z.item,z.itemSelect])},t("span",{class:z.inner},t("span",{id:this.pageSelectId,hidden:true},this.wcagSelectLabel),t("gov-form-select",{size:"m",variant:this.variant,"wcag-labelled-by":this.pageSelectId,"on-gov-change":this.onSelectHandler.bind(this)},j(1,this.pagination.totalPages).map((o=>t("option",{value:o,selected:this.pagination.currentPage===o},o)))))):t(n,null,this.pagination.pages.map((r=>t("li",{class:this.isActivePageClass(z.item,r)},o(r,r)))),this.pagination.totalPages?t("li",{class:u([z.item,z.itemMore])},t("span",{class:z.inner},t("span",{id:this.pageSelectId,hidden:true},this.wcagSelectLabel),t("gov-form-select",{size:"m",variant:this.variant,"wcag-labelled-by":this.pageSelectId,ref:o=>this.spreadSelectRef=o,"on-gov-change":this.onSelectHandler.bind(this)},t("option",{selected:true,hidden:true},"..."),j(1,this.pagination.totalPages).map((o=>t("option",{value:o,selected:false},o)))))):null),t("li",{class:u([z.item,z.itemArrow])},o(this.pagination.totalPages>this.pagination.currentPage?this.pagination.currentPage+1:-1,t("gov-icon",{class:z.arrow,name:"chevron-right"}))),t("li",{class:u([z.item,z.itemArrow])},o(this.pagination.totalPages>this.pagination.currentPage?this.pagination.totalPages:-1,t("gov-icon",{class:z.arrow,name:"chevron-double-right"}))))))}onClickHandler(o,r){o.stopPropagation();this.recalculatePagination(r);this.govPage.emit({component:z.root,pagination:this.pagination})}onSelectHandler(o){o.stopPropagation();const r=o.detail.value;const e=parseInt(r);this.resetSelectValue();if(isNaN(e)===false){this.recalculatePagination(e);if(this.link){window.location.href=this.prepareLinkUrl(e)}else{this.govPage.emit({component:z.root,pagination:this.pagination})}}}async validateWcag(){h(this.wcagPageLabel,"wcag-page-label",z.root);d(this.wcagLabel,this.wcagLabelledBy,z.root)}get host(){return this}static get watchers(){return{type:["validateType"],size:["validateSize"],variant:["validateVariant"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}}static get style(){return P}},[0,"gov-pagination",{type:[1],current:[2],total:[2],inverse:[4],size:[1],variant:[1],pageSize:[2,"page-size"],maxPages:[2,"max-pages"],link:[1],wcagLabel:[1,"wcag-label"],wcagLabelledBy:[1,"wcag-labelled-by"],wcagSelectLabel:[1,"wcag-select-label"],wcagPageLabel:[1,"wcag-page-label"],pagination:[32],validateWcag:[64]}]);function E(){if(typeof customElements==="undefined"){return}const o=["gov-pagination","gov-button","gov-form-select","gov-icon"];o.forEach((o=>{switch(o){case"gov-pagination":if(!customElements.get(o)){customElements.define(o,A)}break;case"gov-button":if(!customElements.get(o)){_()}break;case"gov-form-select":if(!customElements.get(o)){f()}break;case"gov-icon":if(!customElements.get(o)){y()}break}}))}E();const M=A;const L=E;export{M as GovPagination,L as defineCustomElement};
|
|
2
|
-
//# sourceMappingURL=gov-pagination.js.map
|