@gov-design-system-ce/components 0.0.23 → 0.0.25
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 +86 -0
- package/dist/cjs/Fragment-52846f79.js +0 -7
- package/dist/cjs/Fragment-52846f79.js.map +0 -1
- package/dist/cjs/constants-0488d137.js +0 -22
- package/dist/cjs/constants-0488d137.js.map +0 -1
- package/dist/cjs/constants-0883e74c.js +0 -30
- package/dist/cjs/constants-0883e74c.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-21559414.js +0 -29
- package/dist/cjs/constants-21559414.js.map +0 -1
- package/dist/cjs/constants-23b7a283.js +0 -33
- package/dist/cjs/constants-23b7a283.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-61f8be34.js +0 -26
- package/dist/cjs/constants-61f8be34.js.map +0 -1
- package/dist/cjs/constants-86fb4eb4.js +0 -19
- package/dist/cjs/constants-86fb4eb4.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-adc8268f.js +0 -37
- package/dist/cjs/constants-adc8268f.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-ded92f8a.js +0 -13
- package/dist/cjs/constants-ded92f8a.js.map +0 -1
- package/dist/cjs/constants-e47694c4.js +0 -19
- package/dist/cjs/constants-e47694c4.js.map +0 -1
- package/dist/cjs/constants-e8760a84.js +0 -20
- package/dist/cjs/constants-e8760a84.js.map +0 -1
- package/dist/cjs/core.cjs.js +0 -21
- package/dist/cjs/core.cjs.js.map +0 -1
- package/dist/cjs/form-9b8b1740.js +0 -150
- package/dist/cjs/form-9b8b1740.js.map +0 -1
- package/dist/cjs/gov-accordion-item.cjs.entry.js +0 -125
- 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-alert.cjs.entry.js +0 -90
- package/dist/cjs/gov-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-app.cjs.entry.js +0 -8366
- 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-badge.cjs.entry.js +0 -84
- package/dist/cjs/gov-badge.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 -169
- 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-container.cjs.entry.js +0 -36
- package/dist/cjs/gov-container.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-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 -196
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +0 -122
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +0 -100
- package/dist/cjs/gov-form-control.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +0 -217
- package/dist/cjs/gov-form-file.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-group.cjs.entry.js +0 -43
- package/dist/cjs/gov-form-group.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-input.cjs.entry.js +0 -167
- 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 -204
- 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 -122
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +0 -28
- package/dist/cjs/gov-form-search.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +0 -136
- package/dist/cjs/gov-form-select.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +0 -122
- 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 -126
- package/dist/cjs/gov-icon.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 -31
- package/dist/cjs/gov-loading.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-message.cjs.entry.js +0 -43
- package/dist/cjs/gov-message.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-modal.cjs.entry.js +0 -103
- package/dist/cjs/gov-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-nav-item.cjs.entry.js +0 -37
- 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 -217
- 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 -85
- 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 -57
- package/dist/cjs/gov-spacer.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-statsbar-item.cjs.entry.js +0 -39
- package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-statsbar.cjs.entry.js +0 -52
- package/dist/cjs/gov-statsbar.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-stepper-item.cjs.entry.js +0 -77
- package/dist/cjs/gov-stepper-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-stepper.cjs.entry.js +0 -50
- 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 -189
- package/dist/cjs/gov-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tile.cjs.entry.js +0 -50
- 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 -103
- package/dist/cjs/gov-toast.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +0 -42
- package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-tooltip.cjs.entry.js +0 -158
- package/dist/cjs/gov-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-wizzard-item.cjs.entry.js +0 -110
- package/dist/cjs/gov-wizzard-item.cjs.entry.js.map +0 -1
- package/dist/cjs/gov-wizzard.cjs.entry.js +0 -67
- package/dist/cjs/gov-wizzard.cjs.entry.js.map +0 -1
- package/dist/cjs/gov.log-0c9dca27.js +0 -20
- package/dist/cjs/gov.log-0c9dca27.js.map +0 -1
- package/dist/cjs/index-29ac07f6.js +0 -2325
- package/dist/cjs/index-29ac07f6.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 -23
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/props-5f82e4c0.js +0 -16
- package/dist/cjs/props-5f82e4c0.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-e1c4ff78.js +0 -121
- package/dist/cjs/template-e1c4ff78.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-6efc0ab7.js +0 -67
- package/dist/cjs/wcag-6efc0ab7.js.map +0 -1
- package/dist/cjs/win-84bda0aa.js +0 -26
- package/dist/cjs/win-84bda0aa.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -69
- 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 -484
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +0 -398
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +0 -1
- package/dist/collection/components/gov-accordion/gov-accordion.css +0 -231
- package/dist/collection/components/gov-accordion/gov-accordion.js +0 -222
- 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-alert/constants.js +0 -12
- package/dist/collection/components/gov-alert/constants.js.map +0 -1
- package/dist/collection/components/gov-alert/gov-alert.css +0 -392
- package/dist/collection/components/gov-alert/gov-alert.js +0 -241
- package/dist/collection/components/gov-alert/gov-alert.js.map +0 -1
- package/dist/collection/components/gov-alert/gov-alert.types.js +0 -2
- package/dist/collection/components/gov-alert/gov-alert.types.js.map +0 -1
- package/dist/collection/components/gov-app/gov-app.css +0 -240
- package/dist/collection/components/gov-app/gov-app.js +0 -95
- 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 -252
- 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 -121
- package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +0 -1
- package/dist/collection/components/gov-attachments/gov-attachments.css +0 -238
- package/dist/collection/components/gov-attachments/gov-attachments.js +0 -99
- 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 -237
- package/dist/collection/components/gov-backdrop/gov-backdrop.js +0 -140
- package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +0 -1
- package/dist/collection/components/gov-badge/constants.js +0 -13
- package/dist/collection/components/gov-badge/constants.js.map +0 -1
- package/dist/collection/components/gov-badge/gov-badge.css +0 -1203
- package/dist/collection/components/gov-badge/gov-badge.js +0 -284
- package/dist/collection/components/gov-badge/gov-badge.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 -270
- 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 -160
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +0 -1
- package/dist/collection/components/gov-button/constants.js +0 -29
- package/dist/collection/components/gov-button/constants.js.map +0 -1
- package/dist/collection/components/gov-button/gov-button.css +0 -1139
- package/dist/collection/components/gov-button/gov-button.js +0 -811
- package/dist/collection/components/gov-button/gov-button.js.map +0 -1
- package/dist/collection/components/gov-button/gov-button.types.js +0 -2
- package/dist/collection/components/gov-button/gov-button.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 -368
- package/dist/collection/components/gov-card/gov-card.js +0 -307
- 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-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 -238
- package/dist/collection/components/gov-container/gov-container.js +0 -58
- package/dist/collection/components/gov-container/gov-container.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 -280
- 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 -246
- 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 -261
- 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 -11
- package/dist/collection/components/gov-form/autocomplete/constants.js.map +0 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +0 -273
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +0 -682
- 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 -8
- package/dist/collection/components/gov-form/checkbox/constants.js.map +0 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +0 -389
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +0 -418
- 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 -282
- package/dist/collection/components/gov-form/control/gov-form-control.js +0 -234
- 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 -285
- package/dist/collection/components/gov-form/file/gov-form-file.js +0 -625
- 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 -7
- package/dist/collection/components/gov-form/group/constants.js.map +0 -1
- package/dist/collection/components/gov-form/group/gov-form-group.css +0 -242
- package/dist/collection/components/gov-form/group/gov-form-group.js +0 -65
- 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 -454
- package/dist/collection/components/gov-form/input/gov-form-input.js +0 -821
- 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 -234
- package/dist/collection/components/gov-form/label/gov-form-label.js +0 -128
- 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 -253
- package/dist/collection/components/gov-form/message/gov-form-message.js +0 -93
- 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 -514
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +0 -557
- 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 -265
- 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 -10
- package/dist/collection/components/gov-form/radio/constants.js.map +0 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.css +0 -388
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +0 -418
- 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 -6
- package/dist/collection/components/gov-form/search/constants.js.map +0 -1
- package/dist/collection/components/gov-form/search/gov-form-search.css +0 -260
- package/dist/collection/components/gov-form/search/gov-form-search.js +0 -20
- 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 -473
- package/dist/collection/components/gov-form/select/gov-form-select.js +0 -516
- 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 -403
- package/dist/collection/components/gov-form/switch/gov-form-switch.js +0 -418
- 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 -472
- 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 -247
- 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 -232
- package/dist/collection/components/gov-icon/gov-icon.js +0 -135
- package/dist/collection/components/gov-icon/gov-icon.js.map +0 -1
- package/dist/collection/components/gov-icon/list.js +0 -241
- package/dist/collection/components/gov-icon/list.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 -228
- 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 -273
- package/dist/collection/components/gov-layout/gov-layout.js +0 -100
- 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 -251
- package/dist/collection/components/gov-loading/loading/gov-loading.js +0 -47
- 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 -290
- package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +0 -267
- 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 -310
- package/dist/collection/components/gov-message/gov-message.js +0 -63
- package/dist/collection/components/gov-message/gov-message.js.map +0 -1
- package/dist/collection/components/gov-modal/constants.js +0 -14
- package/dist/collection/components/gov-modal/constants.js.map +0 -1
- package/dist/collection/components/gov-modal/gov-modal.css +0 -335
- package/dist/collection/components/gov-modal/gov-modal.js +0 -324
- 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 -279
- 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 -245
- package/dist/collection/components/gov-nav/gov-nav.js +0 -97
- 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 -385
- package/dist/collection/components/gov-pagination/gov-pagination.js +0 -439
- 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 -338
- package/dist/collection/components/gov-promp/gov-prompt.js +0 -324
- 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 -375
- 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 -331
- 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 -228
- package/dist/collection/components/gov-side-nav/gov-side-nav.js +0 -169
- 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 -293
- package/dist/collection/components/gov-spacer/gov-spacer.js +0 -95
- 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 -287
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +0 -65
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +0 -1
- package/dist/collection/components/gov-statsbar/gov-statsbar.css +0 -272
- package/dist/collection/components/gov-statsbar/gov-statsbar.js +0 -102
- 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 -450
- 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 -246
- package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +0 -1
- package/dist/collection/components/gov-stepper/gov-stepper.css +0 -228
- package/dist/collection/components/gov-stepper/gov-stepper.js +0 -97
- 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 -229
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +0 -183
- package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +0 -1
- package/dist/collection/components/gov-tabs/gov-tabs.css +0 -381
- package/dist/collection/components/gov-tabs/gov-tabs.js +0 -422
- 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-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 -310
- 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 -326
- package/dist/collection/components/gov-tile/gov-tile.js +0 -99
- 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 -394
- 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 -324
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +0 -63
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +0 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.css +0 -253
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +0 -322
- package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +0 -1
- package/dist/collection/components/gov-wizzard/constants.js +0 -20
- package/dist/collection/components/gov-wizzard/constants.js.map +0 -1
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.css +0 -441
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js +0 -2
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js.map +0 -1
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.js +0 -381
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +0 -1
- package/dist/collection/components/gov-wizzard/gov-wizzard.css +0 -231
- package/dist/collection/components/gov-wizzard/gov-wizzard.js +0 -168
- package/dist/collection/components/gov-wizzard/gov-wizzard.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/variants.js +0 -15
- package/dist/collection/core/constants/variants.js.map +0 -1
- 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 -110
- 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 -18
- 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 -14
- package/dist/collection/helpers/Log/gov.log.js.map +0 -1
- package/dist/collection/helpers/StorybookDocsTemplate.js +0 -9
- package/dist/collection/helpers/StorybookDocsTemplate.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 -349
- package/dist/collection/pages/Accordion.js.map +0 -1
- package/dist/collection/pages/Alert.js +0 -90
- package/dist/collection/pages/Alert.js.map +0 -1
- package/dist/collection/pages/Badge.js +0 -321
- package/dist/collection/pages/Badge.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 -1277
- package/dist/collection/pages/Button.js.map +0 -1
- package/dist/collection/pages/Card.js +0 -102
- package/dist/collection/pages/Card.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/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 -1208
- 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 -9
- package/dist/collection/pages/Home.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 -19
- 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 -85
- 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/Tiles.js +0 -119
- 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 -137
- 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/Wizzard.js +0 -88
- package/dist/collection/pages/Wizzard.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/icon.utils.js +0 -31
- 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/Fragment.js +0 -5
- package/dist/components/Fragment.js.map +0 -1
- package/dist/components/constants.js +0 -25
- package/dist/components/constants.js.map +0 -1
- package/dist/components/constants10.js +0 -19
- package/dist/components/constants10.js.map +0 -1
- package/dist/components/constants11.js +0 -22
- package/dist/components/constants11.js.map +0 -1
- package/dist/components/constants12.js +0 -25
- package/dist/components/constants12.js.map +0 -1
- package/dist/components/constants13.js +0 -29
- package/dist/components/constants13.js.map +0 -1
- package/dist/components/constants14.js +0 -23
- package/dist/components/constants14.js.map +0 -1
- package/dist/components/constants15.js +0 -24
- package/dist/components/constants15.js.map +0 -1
- package/dist/components/constants2.js +0 -15
- package/dist/components/constants2.js.map +0 -1
- package/dist/components/constants3.js +0 -33
- package/dist/components/constants3.js.map +0 -1
- package/dist/components/constants4.js +0 -12
- package/dist/components/constants4.js.map +0 -1
- package/dist/components/constants5.js +0 -13
- package/dist/components/constants5.js.map +0 -1
- package/dist/components/constants6.js +0 -10
- package/dist/components/constants6.js.map +0 -1
- package/dist/components/constants7.js +0 -22
- package/dist/components/constants7.js.map +0 -1
- package/dist/components/constants8.js +0 -17
- package/dist/components/constants8.js.map +0 -1
- package/dist/components/constants9.js +0 -12
- package/dist/components/constants9.js.map +0 -1
- package/dist/components/form.js +0 -150
- package/dist/components/form.js.map +0 -1
- package/dist/components/gov-accordion-item.d.ts +0 -11
- package/dist/components/gov-accordion-item.js +0 -156
- 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 -94
- package/dist/components/gov-accordion.js.map +0 -1
- package/dist/components/gov-alert.d.ts +0 -11
- package/dist/components/gov-alert.js +0 -122
- package/dist/components/gov-alert.js.map +0 -1
- package/dist/components/gov-app.d.ts +0 -11
- package/dist/components/gov-app.js +0 -8379
- 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 -8
- package/dist/components/gov-attachments-item.js.map +0 -1
- package/dist/components/gov-attachments-item2.js +0 -69
- package/dist/components/gov-attachments-item2.js.map +0 -1
- package/dist/components/gov-attachments.d.ts +0 -11
- package/dist/components/gov-attachments.js +0 -8
- package/dist/components/gov-attachments.js.map +0 -1
- package/dist/components/gov-attachments2.js +0 -56
- package/dist/components/gov-attachments2.js.map +0 -1
- package/dist/components/gov-backdrop.d.ts +0 -11
- package/dist/components/gov-backdrop.js +0 -8
- package/dist/components/gov-backdrop.js.map +0 -1
- package/dist/components/gov-backdrop2.js +0 -63
- package/dist/components/gov-backdrop2.js.map +0 -1
- package/dist/components/gov-badge.d.ts +0 -11
- package/dist/components/gov-badge.js +0 -8
- package/dist/components/gov-badge.js.map +0 -1
- package/dist/components/gov-badge2.js +0 -100
- package/dist/components/gov-badge2.js.map +0 -1
- package/dist/components/gov-breadcrumbs.d.ts +0 -11
- package/dist/components/gov-breadcrumbs.js +0 -67
- 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 -8
- package/dist/components/gov-button.js.map +0 -1
- package/dist/components/gov-button2.js +0 -215
- package/dist/components/gov-button2.js.map +0 -1
- package/dist/components/gov-card.d.ts +0 -11
- package/dist/components/gov-card.js +0 -143
- package/dist/components/gov-card.js.map +0 -1
- package/dist/components/gov-container.d.ts +0 -11
- package/dist/components/gov-container.js +0 -51
- package/dist/components/gov-container.js.map +0 -1
- package/dist/components/gov-cookiebar.d.ts +0 -11
- package/dist/components/gov-cookiebar.js +0 -46
- package/dist/components/gov-cookiebar.js.map +0 -1
- package/dist/components/gov-empty.d.ts +0 -11
- package/dist/components/gov-empty.js +0 -44
- 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 -44
- 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 -8
- package/dist/components/gov-form-autocomplete.js.map +0 -1
- package/dist/components/gov-form-autocomplete2.js +0 -241
- package/dist/components/gov-form-autocomplete2.js.map +0 -1
- package/dist/components/gov-form-checkbox.d.ts +0 -11
- package/dist/components/gov-form-checkbox.js +0 -148
- 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 -114
- 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 -274
- 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 -57
- 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 -8
- package/dist/components/gov-form-input.js.map +0 -1
- package/dist/components/gov-form-input2.js +0 -209
- package/dist/components/gov-form-input2.js.map +0 -1
- package/dist/components/gov-form-label.d.ts +0 -11
- package/dist/components/gov-form-label.js +0 -46
- 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 -8
- package/dist/components/gov-form-message.js.map +0 -1
- package/dist/components/gov-form-message2.js +0 -57
- package/dist/components/gov-form-message2.js.map +0 -1
- package/dist/components/gov-form-multi-select.d.ts +0 -11
- package/dist/components/gov-form-multi-select.js +0 -257
- 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 -43
- 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 -142
- 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 -41
- 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 -8
- package/dist/components/gov-form-select.js.map +0 -1
- package/dist/components/gov-form-select2.js +0 -164
- package/dist/components/gov-form-select2.js.map +0 -1
- package/dist/components/gov-form-switch.d.ts +0 -11
- package/dist/components/gov-form-switch.js +0 -142
- 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 -49
- 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 -44
- 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 -8
- package/dist/components/gov-icon.js.map +0 -1
- package/dist/components/gov-icon2.js +0 -141
- package/dist/components/gov-icon2.js.map +0 -1
- package/dist/components/gov-layout-column.d.ts +0 -11
- package/dist/components/gov-layout-column.js +0 -38
- 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 -51
- 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 -58
- 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 -57
- 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 -146
- 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 -53
- 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 -57
- 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 -263
- 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 -146
- 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 -124
- 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 -73
- 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 -137
- 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 -72
- 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 -51
- 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 -65
- 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 -96
- 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 -61
- 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 -73
- 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 -232
- package/dist/components/gov-tabs.js.map +0 -1
- package/dist/components/gov-tile.d.ts +0 -11
- package/dist/components/gov-tile.js +0 -73
- 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 -49
- 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 -136
- 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 -54
- 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 -176
- package/dist/components/gov-tooltip.js.map +0 -1
- package/dist/components/gov-wizzard-item.d.ts +0 -11
- package/dist/components/gov-wizzard-item.js +0 -141
- package/dist/components/gov-wizzard-item.js.map +0 -1
- package/dist/components/gov-wizzard.d.ts +0 -11
- package/dist/components/gov-wizzard.js +0 -81
- package/dist/components/gov-wizzard.js.map +0 -1
- package/dist/components/gov.log.js +0 -17
- package/dist/components/gov.log.js.map +0 -1
- package/dist/components/index.d.ts +0 -79
- package/dist/components/index.js +0 -61
- package/dist/components/index.js.map +0 -1
- package/dist/components/props.js +0 -14
- package/dist/components/props.js.map +0 -1
- package/dist/components/sizes.js +0 -18
- package/dist/components/sizes.js.map +0 -1
- package/dist/components/string.utils.js +0 -20
- package/dist/components/string.utils.js.map +0 -1
- package/dist/components/template.js +0 -113
- package/dist/components/template.js.map +0 -1
- package/dist/components/utils.js +0 -35
- package/dist/components/utils.js.map +0 -1
- package/dist/components/variants.js +0 -18
- package/dist/components/variants.js.map +0 -1
- package/dist/components/wcag.js +0 -62
- package/dist/components/wcag.js.map +0 -1
- package/dist/components/win.js +0 -22
- package/dist/components/win.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/critical.css +0 -295
- package/dist/core/index.esm.js +0 -2
- package/dist/core/index.esm.js.map +0 -1
- package/dist/core/p-034c40ab.entry.js +0 -2
- package/dist/core/p-034c40ab.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-042d5b20.entry.js +0 -2
- package/dist/core/p-042d5b20.entry.js.map +0 -1
- package/dist/core/p-0800095f.entry.js +0 -2
- package/dist/core/p-0800095f.entry.js.map +0 -1
- package/dist/core/p-0874a5ec.entry.js +0 -2
- package/dist/core/p-0874a5ec.entry.js.map +0 -1
- package/dist/core/p-0f0564e8.entry.js +0 -2
- package/dist/core/p-0f0564e8.entry.js.map +0 -1
- package/dist/core/p-1020a160.js +0 -2
- package/dist/core/p-1020a160.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-1def0eb2.entry.js +0 -2
- package/dist/core/p-1def0eb2.entry.js.map +0 -1
- package/dist/core/p-207ba616.entry.js +0 -2
- package/dist/core/p-207ba616.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-26acf964.js +0 -2
- package/dist/core/p-26acf964.js.map +0 -1
- package/dist/core/p-2f88b6d9.entry.js +0 -2
- package/dist/core/p-2f88b6d9.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-354c6a6d.entry.js +0 -2
- package/dist/core/p-354c6a6d.entry.js.map +0 -1
- package/dist/core/p-3699c1b3.entry.js +0 -2
- package/dist/core/p-3699c1b3.entry.js.map +0 -1
- package/dist/core/p-36be8f6e.js +0 -2
- package/dist/core/p-36be8f6e.js.map +0 -1
- package/dist/core/p-3cd5b6cb.entry.js +0 -2
- package/dist/core/p-3cd5b6cb.entry.js.map +0 -1
- package/dist/core/p-3da88ddb.entry.js +0 -2
- package/dist/core/p-3da88ddb.entry.js.map +0 -1
- package/dist/core/p-3e1a1bd4.entry.js +0 -2
- package/dist/core/p-3e1a1bd4.entry.js.map +0 -1
- package/dist/core/p-3f37ddb6.js +0 -2
- package/dist/core/p-3f37ddb6.js.map +0 -1
- package/dist/core/p-404f469e.js +0 -2
- package/dist/core/p-404f469e.js.map +0 -1
- package/dist/core/p-42636ddf.entry.js +0 -2
- package/dist/core/p-42636ddf.entry.js.map +0 -1
- package/dist/core/p-42db4603.entry.js +0 -2
- package/dist/core/p-42db4603.entry.js.map +0 -1
- package/dist/core/p-45485d1c.js +0 -2
- package/dist/core/p-45485d1c.js.map +0 -1
- package/dist/core/p-4af5e4f4.js +0 -3
- package/dist/core/p-4af5e4f4.js.map +0 -1
- package/dist/core/p-4ce15026.entry.js +0 -2
- package/dist/core/p-4ce15026.entry.js.map +0 -1
- package/dist/core/p-50e94566.entry.js +0 -2
- package/dist/core/p-50e94566.entry.js.map +0 -1
- package/dist/core/p-5176fad8.entry.js +0 -2
- package/dist/core/p-5176fad8.entry.js.map +0 -1
- package/dist/core/p-52dc68aa.entry.js +0 -2
- package/dist/core/p-52dc68aa.entry.js.map +0 -1
- package/dist/core/p-54b17f4d.entry.js +0 -2
- package/dist/core/p-54b17f4d.entry.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-561fa17b.js +0 -2
- package/dist/core/p-561fa17b.js.map +0 -1
- package/dist/core/p-5d348765.entry.js +0 -2
- package/dist/core/p-5d348765.entry.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-5e4cf9a2.entry.js +0 -2
- package/dist/core/p-5e4cf9a2.entry.js.map +0 -1
- package/dist/core/p-5e865538.entry.js +0 -2
- package/dist/core/p-5e865538.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-64ced668.js +0 -2
- package/dist/core/p-64ced668.js.map +0 -1
- package/dist/core/p-67006730.entry.js +0 -2
- package/dist/core/p-67006730.entry.js.map +0 -1
- package/dist/core/p-670b4f93.js +0 -2
- package/dist/core/p-670b4f93.js.map +0 -1
- package/dist/core/p-6aa31f02.entry.js +0 -2
- package/dist/core/p-6aa31f02.entry.js.map +0 -1
- package/dist/core/p-732f74fe.entry.js +0 -2
- package/dist/core/p-732f74fe.entry.js.map +0 -1
- package/dist/core/p-742e37e4.entry.js +0 -2
- package/dist/core/p-742e37e4.entry.js.map +0 -1
- package/dist/core/p-75a4c838.entry.js +0 -2
- package/dist/core/p-75a4c838.entry.js.map +0 -1
- package/dist/core/p-76e2aa52.entry.js +0 -2
- package/dist/core/p-76e2aa52.entry.js.map +0 -1
- package/dist/core/p-7b890c55.entry.js +0 -2
- package/dist/core/p-7b890c55.entry.js.map +0 -1
- package/dist/core/p-7c55677b.entry.js +0 -2
- package/dist/core/p-7c55677b.entry.js.map +0 -1
- package/dist/core/p-80e30702.js +0 -2
- package/dist/core/p-80e30702.js.map +0 -1
- package/dist/core/p-8204070b.entry.js +0 -2
- package/dist/core/p-8204070b.entry.js.map +0 -1
- package/dist/core/p-8925ef42.entry.js +0 -2
- package/dist/core/p-8925ef42.entry.js.map +0 -1
- package/dist/core/p-8bebbcc7.entry.js +0 -2
- package/dist/core/p-8bebbcc7.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-96a59983.entry.js +0 -2
- package/dist/core/p-96a59983.entry.js.map +0 -1
- package/dist/core/p-99f198b9.entry.js +0 -2
- package/dist/core/p-99f198b9.entry.js.map +0 -1
- package/dist/core/p-9cd80b05.js +0 -2
- package/dist/core/p-9cd80b05.js.map +0 -1
- package/dist/core/p-a4d23e73.entry.js +0 -2
- package/dist/core/p-a4d23e73.entry.js.map +0 -1
- package/dist/core/p-a5d69694.js +0 -2
- package/dist/core/p-a5d69694.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-a89c27c1.entry.js +0 -2
- package/dist/core/p-a89c27c1.entry.js.map +0 -1
- package/dist/core/p-a8b628ed.entry.js +0 -2
- package/dist/core/p-a8b628ed.entry.js.map +0 -1
- package/dist/core/p-a8ef7292.entry.js +0 -2
- package/dist/core/p-a8ef7292.entry.js.map +0 -1
- package/dist/core/p-a9c57f72.entry.js +0 -2
- package/dist/core/p-a9c57f72.entry.js.map +0 -1
- package/dist/core/p-acfd00a2.entry.js +0 -2
- package/dist/core/p-acfd00a2.entry.js.map +0 -1
- package/dist/core/p-b2275b3d.js +0 -2
- package/dist/core/p-b2275b3d.js.map +0 -1
- package/dist/core/p-bb3afae6.entry.js +0 -2
- package/dist/core/p-bb3afae6.entry.js.map +0 -1
- package/dist/core/p-c20102ff.js +0 -2
- package/dist/core/p-c20102ff.js.map +0 -1
- package/dist/core/p-ccb44728.entry.js +0 -2
- package/dist/core/p-ccb44728.entry.js.map +0 -1
- package/dist/core/p-d389c001.entry.js +0 -2
- package/dist/core/p-d389c001.entry.js.map +0 -1
- package/dist/core/p-d83b4bdc.entry.js +0 -2
- package/dist/core/p-d83b4bdc.entry.js.map +0 -1
- package/dist/core/p-d8def432.entry.js +0 -2
- package/dist/core/p-d8def432.entry.js.map +0 -1
- package/dist/core/p-d90a2718.entry.js +0 -2
- package/dist/core/p-d90a2718.entry.js.map +0 -1
- package/dist/core/p-d9b4bc20.entry.js +0 -2
- package/dist/core/p-d9b4bc20.entry.js.map +0 -1
- package/dist/core/p-dc94a1da.entry.js +0 -2
- package/dist/core/p-dc94a1da.entry.js.map +0 -1
- package/dist/core/p-e1e4c8f8.entry.js +0 -2
- package/dist/core/p-e1e4c8f8.entry.js.map +0 -1
- package/dist/core/p-e4bb6100.entry.js +0 -2
- package/dist/core/p-e4bb6100.entry.js.map +0 -1
- package/dist/core/p-e4bb6114.entry.js +0 -2
- package/dist/core/p-e4bb6114.entry.js.map +0 -1
- package/dist/core/p-ef79904e.js +0 -2
- package/dist/core/p-ef79904e.js.map +0 -1
- package/dist/core/p-f555fce1.entry.js +0 -2
- package/dist/core/p-f555fce1.entry.js.map +0 -1
- package/dist/core/p-f644cad5.entry.js +0 -2
- package/dist/core/p-f644cad5.entry.js.map +0 -1
- package/dist/core/p-f687452c.js +0 -2
- package/dist/core/p-f687452c.js.map +0 -1
- package/dist/core/p-f7275b59.entry.js +0 -2
- package/dist/core/p-f7275b59.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/custom-elements/index.d.ts +0 -387
- package/dist/custom-elements/index.js +0 -2
- package/dist/custom-elements/index.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-037c35bc.js +0 -22
- package/dist/esm/constants-037c35bc.js.map +0 -1
- package/dist/esm/constants-089b3fdd.js +0 -33
- package/dist/esm/constants-089b3fdd.js.map +0 -1
- package/dist/esm/constants-136d4cd3.js +0 -16
- package/dist/esm/constants-136d4cd3.js.map +0 -1
- package/dist/esm/constants-24dad929.js +0 -29
- package/dist/esm/constants-24dad929.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-2e8258cf.js +0 -15
- package/dist/esm/constants-2e8258cf.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-78474786.js +0 -25
- package/dist/esm/constants-78474786.js.map +0 -1
- package/dist/esm/constants-ab132d9c.js +0 -25
- package/dist/esm/constants-ab132d9c.js.map +0 -1
- package/dist/esm/constants-ba13b28f.js +0 -17
- package/dist/esm/constants-ba13b28f.js.map +0 -1
- package/dist/esm/constants-bf5a583f.js +0 -24
- package/dist/esm/constants-bf5a583f.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/constants-f5c21493.js +0 -19
- package/dist/esm/constants-f5c21493.js.map +0 -1
- package/dist/esm/constants-f7b618c2.js +0 -23
- package/dist/esm/constants-f7b618c2.js.map +0 -1
- package/dist/esm/core.js +0 -19
- package/dist/esm/core.js.map +0 -1
- package/dist/esm/form-669a7180.js +0 -135
- package/dist/esm/form-669a7180.js.map +0 -1
- package/dist/esm/gov-accordion-item.entry.js +0 -121
- 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-alert.entry.js +0 -86
- package/dist/esm/gov-alert.entry.js.map +0 -1
- package/dist/esm/gov-app.entry.js +0 -8362
- 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-badge.entry.js +0 -80
- package/dist/esm/gov-badge.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 -165
- 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-container.entry.js +0 -32
- package/dist/esm/gov-container.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-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 -192
- package/dist/esm/gov-form-autocomplete.entry.js.map +0 -1
- package/dist/esm/gov-form-checkbox.entry.js +0 -118
- package/dist/esm/gov-form-checkbox.entry.js.map +0 -1
- package/dist/esm/gov-form-control.entry.js +0 -96
- package/dist/esm/gov-form-control.entry.js.map +0 -1
- package/dist/esm/gov-form-file.entry.js +0 -213
- package/dist/esm/gov-form-file.entry.js.map +0 -1
- package/dist/esm/gov-form-group.entry.js +0 -39
- package/dist/esm/gov-form-group.entry.js.map +0 -1
- package/dist/esm/gov-form-input.entry.js +0 -163
- 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 -200
- 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 -118
- package/dist/esm/gov-form-radio.entry.js.map +0 -1
- package/dist/esm/gov-form-search.entry.js +0 -24
- package/dist/esm/gov-form-search.entry.js.map +0 -1
- package/dist/esm/gov-form-select.entry.js +0 -132
- package/dist/esm/gov-form-select.entry.js.map +0 -1
- package/dist/esm/gov-form-switch.entry.js +0 -118
- 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 -122
- package/dist/esm/gov-icon.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 -27
- package/dist/esm/gov-loading.entry.js.map +0 -1
- package/dist/esm/gov-message.entry.js +0 -39
- package/dist/esm/gov-message.entry.js.map +0 -1
- package/dist/esm/gov-modal.entry.js +0 -99
- package/dist/esm/gov-modal.entry.js.map +0 -1
- package/dist/esm/gov-nav-item.entry.js +0 -33
- 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 -213
- 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 -81
- 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 -53
- package/dist/esm/gov-spacer.entry.js.map +0 -1
- package/dist/esm/gov-statsbar-item.entry.js +0 -35
- package/dist/esm/gov-statsbar-item.entry.js.map +0 -1
- package/dist/esm/gov-statsbar.entry.js +0 -48
- package/dist/esm/gov-statsbar.entry.js.map +0 -1
- package/dist/esm/gov-stepper-item.entry.js +0 -73
- package/dist/esm/gov-stepper-item.entry.js.map +0 -1
- package/dist/esm/gov-stepper.entry.js +0 -46
- 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 -185
- package/dist/esm/gov-tabs.entry.js.map +0 -1
- package/dist/esm/gov-tile.entry.js +0 -46
- 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 -99
- package/dist/esm/gov-toast.entry.js.map +0 -1
- package/dist/esm/gov-tooltip-content.entry.js +0 -38
- package/dist/esm/gov-tooltip-content.entry.js.map +0 -1
- package/dist/esm/gov-tooltip.entry.js +0 -154
- package/dist/esm/gov-tooltip.entry.js.map +0 -1
- package/dist/esm/gov-wizzard-item.entry.js +0 -106
- package/dist/esm/gov-wizzard-item.entry.js.map +0 -1
- package/dist/esm/gov-wizzard.entry.js +0 -63
- package/dist/esm/gov-wizzard.entry.js.map +0 -1
- package/dist/esm/gov.log-af905420.js +0 -17
- package/dist/esm/gov.log-af905420.js.map +0 -1
- package/dist/esm/index-b010bfb4.js +0 -2296
- package/dist/esm/index-b010bfb4.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 -19
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- 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-789f7529.js +0 -14
- package/dist/esm/props-789f7529.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-10332292.js +0 -113
- package/dist/esm/template-10332292.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-d588d144.js +0 -62
- package/dist/esm/wcag-d588d144.js.map +0 -1
- package/dist/esm/win-9c8460bb.js +0 -22
- package/dist/esm/win-9c8460bb.js.map +0 -1
- package/dist/globals.d.ts +0 -2
- package/dist/hydrate/index.d.ts +0 -217
- package/dist/hydrate/index.js +0 -20291
- 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 -68
- 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 -76
- 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-alert/constants.d.ts +0 -12
- package/dist/types/components/gov-alert/gov-alert.d.ts +0 -47
- package/dist/types/components/gov-alert/gov-alert.types.d.ts +0 -4
- package/dist/types/components/gov-app/gov-app.d.ts +0 -38
- 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-badge/constants.d.ts +0 -13
- package/dist/types/components/gov-badge/gov-badge.d.ts +0 -58
- 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/constants.d.ts +0 -30
- package/dist/types/components/gov-button/gov-button.d.ts +0 -168
- package/dist/types/components/gov-button/gov-button.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-container/constants.d.ts +0 -3
- package/dist/types/components/gov-container/gov-container.d.ts +0 -12
- 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 -12
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +0 -132
- 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 -8
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +0 -85
- 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 -122
- 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 -7
- package/dist/types/components/gov-form/group/gov-form-group.d.ts +0 -13
- 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 -166
- 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 -105
- package/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +0 -8
- 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 -10
- package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +0 -85
- 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 -5
- package/dist/types/components/gov-form/search/gov-form-search.d.ts +0 -4
- 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 -102
- package/dist/types/components/gov-form/select/gov-form-select.types.d.ts +0 -4
- 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 -85
- 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 -24
- package/dist/types/components/gov-icon/list.d.ts +0 -3
- 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 -10
- 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 -13
- package/dist/types/components/gov-modal/gov-modal.d.ts +0 -64
- 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 -86
- 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 -64
- 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 -73
- package/dist/types/components/gov-tabs/gov-tabs.types.d.ts +0 -8
- 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 -20
- package/dist/types/components/gov-toast/constants.d.ts +0 -14
- package/dist/types/components/gov-toast/gov-toast.d.ts +0 -55
- package/dist/types/components/gov-tooltip/constants.d.ts +0 -20
- package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +0 -10
- package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +0 -50
- package/dist/types/components/gov-wizzard/constants.d.ts +0 -21
- package/dist/types/components/gov-wizzard/gov-wizzard-item.d.d.ts +0 -4
- package/dist/types/components/gov-wizzard/gov-wizzard-item.d.ts +0 -73
- package/dist/types/components/gov-wizzard/gov-wizzard.d.ts +0 -33
- package/dist/types/components.d.ts +0 -4057
- 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/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 -12
- package/dist/types/helpers/Dom/win.d.ts +0 -9
- package/dist/types/helpers/Fragment.d.ts +0 -2
- package/dist/types/helpers/Log/gov.log.d.ts +0 -8
- package/dist/types/helpers/StorybookDocsTemplate.d.ts +0 -3
- 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/pages/Accordion.d.ts +0 -3
- package/dist/types/pages/Alert.d.ts +0 -3
- package/dist/types/pages/Badge.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/Container.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/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/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/Wizzard.d.ts +0 -3
- package/dist/types/stencil-public-runtime.d.ts +0 -1581
- 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/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 -12
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -11
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-b010bfb4.js';
|
|
2
|
-
import { L as LayoutClass } from './constants-3786b01b.js';
|
|
3
|
-
import { g as govHost } from './template-10332292.js';
|
|
4
|
-
|
|
5
|
-
const govLayoutCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@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}}";
|
|
6
|
-
|
|
7
|
-
const GovLayout = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
this.type = 'stretch';
|
|
11
|
-
this.variant = undefined;
|
|
12
|
-
this.inverse = false;
|
|
13
|
-
this.h = govHost(this.host);
|
|
14
|
-
}
|
|
15
|
-
typeClass(originalClass, type, variant, inverse) {
|
|
16
|
-
const isType = type ? '-' + type : '';
|
|
17
|
-
const isVariant = variant ? '-' + variant : '';
|
|
18
|
-
const isInverse = inverse ? '-inverse' : '';
|
|
19
|
-
return originalClass + ' ' + originalClass + isType + isVariant + isInverse;
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
return (h(Host, { type: this.type, class: this.h.classes(LayoutClass.root) }, h("section", { class: this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse) }, h("slot", null))));
|
|
23
|
-
}
|
|
24
|
-
get host() { return getElement(this); }
|
|
25
|
-
};
|
|
26
|
-
GovLayout.style = govLayoutCss;
|
|
27
|
-
|
|
28
|
-
export { GovLayout as gov_layout };
|
|
29
|
-
|
|
30
|
-
//# sourceMappingURL=gov-layout.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"gov-layout.entry.js","mappings":";;;;AAAA,MAAM,YAAY,GAAG,smDAAsmD;;MCS9mD,SAAS;EAGrB;;gBAQqC,SAAS;;mBAQV,KAAK;IAfxC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAgBO,SAAS,CAAC,aAAqB,EAAE,IAAY,EAAE,OAAe,EAAE,OAAgB;IACvF,MAAM,MAAM,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,EAAE,CAAA;IACrC,MAAM,SAAS,GAAG,OAAO,GAAG,GAAG,GAAG,OAAO,GAAG,EAAE,CAAA;IAC9C,MAAM,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,EAAE,CAAA;IAC3C,OAAO,aAAa,GAAG,GAAG,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;GAC3E;EAED,MAAM;IACL,QACC,EAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,IAC7D,eAAS,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,IACzF,eAAQ,CACC,CACJ,EACP;GACD;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-layout/gov-layout.scss?tag=gov-layout","../../../packages/core/src/components/gov-layout/gov-layout.tsx"],"sourcesContent":["/*\n * Layout\n */\n\n$class: \".gov-layout\";\n\n@mixin big() {\n\tflex: 1 1 auto;\n\twidth: auto;\n}\n\n@mixin small() {\n\tflex: 0 0 auto;\n\twidth: calc($container-width / 3 - $layout-gap);\n}\n\n#{$class} {\n\t@include base();\n\t&__section {\n\t\tdisplay: flex;\n\t\tgap: $layout-gap;\n\t\tflex-direction: column;\n\t}\n\n\t// MQ\n\t@include mq($from: lg) {\n\t\t&__section {\n\t\t\tflex-direction: row;\n\n\t\t\t&-aside-right,\n\t\t\t&-aside {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\t@include big;\n\t\t\t\t}\n\n\t\t\t\t#{$class}-column:last-child {\n\t\t\t\t\t@include small;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-aside-left {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\t@include small;\n\t\t\t\t}\n\n\t\t\t\t#{$class}-column:last-child {\n\t\t\t\t\t@include big;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-aside-right-inverse {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\torder: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-aside-left-inverse {\n\t\t\t\t#{$class}-column:first-child {\n\t\t\t\t\torder: 2;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-text {\n\t\t\t\twidth: $layout-content-width;\n\t\t\t\tmargin-right: auto;\n\t\t\t\tmargin-left: auto;\n\t\t\t}\n\n\t\t\t&-text-left {\n\t\t\t\twidth: $layout-content-width;\n\t\t\t\tmargin-right: auto;\n\t\t\t}\n\n\t\t\t&-text-right {\n\t\t\t\twidth: $layout-content-width;\n\t\t\t\tmargin-left: auto;\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { LayoutClass, LayoutType, LayoutVariantType } from './constants'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { govHost } from '../../helpers/Dom/template'\n\n@Component({\n\ttag: 'gov-layout',\n\tstyleUrl: 'gov-layout.scss',\n})\nexport class GovLayout {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLayoutElement\n\t/**\n\t * Layout type\n\t */\n\t@Prop() readonly type?: LayoutType = 'stretch'\n\t/**\n\t * Layout align\n\t */\n\t@Prop() readonly variant?: LayoutVariantType\n\t/**\n\t * Determine if component should have inverse column order\n\t */\n\t@Prop() readonly inverse: boolean = false\n\n\tprivate typeClass(originalClass: string, type: string, variant: string, inverse: boolean) {\n\t\tconst isType = type ? '-' + type : ''\n\t\tconst isVariant = variant ? '-' + variant : ''\n\t\tconst isInverse = inverse ? '-inverse' : ''\n\t\treturn originalClass + ' ' + originalClass + isType + isVariant + isInverse\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host type={this.type} class={this.h.classes(LayoutClass.root)}>\n\t\t\t\t<section class={this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse)}>\n\t\t\t\t\t<slot />\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-b010bfb4.js';
|
|
2
|
-
import { g as govHost, p as prepareClasses } from './template-10332292.js';
|
|
3
|
-
|
|
4
|
-
const LoadingClass = {
|
|
5
|
-
root: 'gov-loading',
|
|
6
|
-
content: 'gov-loading__content',
|
|
7
|
-
icon: 'gov-loading__icon',
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const govLoadingCss = ".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:none}.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[loading=\"\"],.gov-loading[loading=true i],.gov-loading[loading=\"1\"]{display:block}";
|
|
11
|
-
|
|
12
|
-
const GovLoading = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
registerInstance(this, hostRef);
|
|
15
|
-
this.loading = false;
|
|
16
|
-
this.h = govHost(this.host);
|
|
17
|
-
}
|
|
18
|
-
render() {
|
|
19
|
-
return (h(Host, { class: this.h.classes(LoadingClass.root), loading: this.loading }, h("div", { class: LoadingClass.content }, h("gov-icon", { class: prepareClasses([LoadingClass.icon, 'gov-spin-animation']), name: "loader" }), h("slot", null)), this.loading ? (h("gov-backdrop", { inverse: true })) : null));
|
|
20
|
-
}
|
|
21
|
-
get host() { return getElement(this); }
|
|
22
|
-
};
|
|
23
|
-
GovLoading.style = govLoadingCss;
|
|
24
|
-
|
|
25
|
-
export { GovLoading as gov_loading };
|
|
26
|
-
|
|
27
|
-
//# sourceMappingURL=gov-loading.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"gov-loading.entry.js","mappings":";;;AAAO,MAAM,YAAY,GAAG;EAC3B,IAAI,EAAE,aAAa;EACnB,OAAO,EAAE,sBAAsB;EAC/B,IAAI,EAAE,mBAAmB;CACzB;;ACJD,MAAM,aAAa,GAAG,g4BAAg4B;;MCSz4B,UAAU;EAGtB;;mBAQkB,KAAK;IAPtB,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAQD,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,IACpE,WAAK,KAAK,EAAE,YAAY,CAAC,OAAO,IAC/B,gBAAU,KAAK,EAAE,cAAc,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC,EAAE,IAAI,EAAC,QAAQ,GAAY,EACrG,eAAQ,CACH,EACL,IAAI,CAAC,OAAO,IAAI,oBAAc,OAAO,EAAE,IAAI,GAAI,IAAI,IAAI,CAClD,EACP;GACD;;;;;;;","names":[],"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: none;\n\t&__content {\n\t\t@include z-index(\"modal\", 1);\n\t\tposition: fixed;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\tmin-width: rem-calc(155);\n\t\tpadding: rem-calc(24);\n\t\tborder-radius: rem-calc(8);\n\t\tbackground: $loading-bg;\n\t\tcolor: $loading-color;\n\t\ttext-align: center;\n\t\ttransform: translate(-50%, -50%);\n\t}\n\t&__icon {\n\t\twidth: rem-calc(64);\n\t\theight: rem-calc(64);\n\t\tline-height: 1;\n\t}\n\n\t// STATES\n\t@include parameter(\"loading\") {\n\t\tdisplay: block;\n\t}\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { LoadingClass } from './constants'\nimport { govHost, prepareClasses } from '../../../helpers/Dom/template'\nimport { GovHost } from '../../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-loading',\n\tstyleUrl: 'gov-loading.scss',\n})\nexport class GovLoading {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLoadingElement\n\t/**\n\t * Determine if loading is active\n\t */\n\t@Prop() loading = false\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LoadingClass.root)} loading={this.loading}>\n\t\t\t\t<div class={LoadingClass.content}>\n\t\t\t\t\t<gov-icon class={prepareClasses([LoadingClass.icon, 'gov-spin-animation'])} name=\"loader\"></gov-icon>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t\t{this.loading ? (<gov-backdrop inverse={true} />) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-b010bfb4.js';
|
|
2
|
-
import { v as validateProp } from './props-789f7529.js';
|
|
3
|
-
import { V as Variants } from './variants-2b936d58.js';
|
|
4
|
-
import { p as pick } from './utils-c057a3fa.js';
|
|
5
|
-
import { g as govHost } from './template-10332292.js';
|
|
6
|
-
import './gov.log-af905420.js';
|
|
7
|
-
|
|
8
|
-
pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS']);
|
|
9
|
-
const MessageClass = {
|
|
10
|
-
root: 'gov-message',
|
|
11
|
-
icon: 'gov-message__icon',
|
|
12
|
-
content: 'gov-message__content',
|
|
13
|
-
close: 'gov-message__close',
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const govMessageCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-message{position:relative;display:flex;gap:1rem;flex-direction:column;padding:0.75rem 1rem;border-left:0.25rem solid transparent;background:var(--gov-toast-message-bg, var(--gov-color-neutral-white))}.gov-message__icon{flex:0 0 1.25rem;width:1.25rem;height:1.25rem}.gov-message__content{flex:1 1 auto}.gov-message__content>*:last-child{margin-bottom:0}.gov-message__content p{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing)}@media (min-width: 30em){.gov-message{flex-direction:row}}.gov-message[shadow=\"\"],.gov-message[shadow=true i],.gov-message[shadow=\"1\"]{box-shadow:var(--gov-message-box-shadow, 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1))}.gov-message[variant=warning]{border-left-color:var(--gov-message-warning-color, var(--gov-color-warning));background:var(--gov-message-warning-bg-color, var(--gov-color-warning-100))}.gov-message[variant=warning] .gov-message__icon{color:var(--gov-message-warning-color, var(--gov-color-warning))}.gov-message[variant=warning][inverse=\"\"],.gov-message[variant=warning][inverse=true i],.gov-message[variant=warning][inverse=\"1\"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=error]{border-left-color:var(--gov-message-error-color, var(--gov-color-error));background:var(--gov-message-error-bg-color, var(--gov-color-error-100))}.gov-message[variant=error] .gov-message__icon{color:var(--gov-message-error-color, var(--gov-color-error))}.gov-message[variant=error][inverse=\"\"],.gov-message[variant=error][inverse=true i],.gov-message[variant=error][inverse=\"1\"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=secondary]{border-left-color:var(--gov-message-secondary-color, var(--gov-color-secondary));background:var(--gov-message-secondary-bg-color, var(--gov-color-secondary-200))}.gov-message[variant=secondary] .gov-message__icon{color:var(--gov-message-secondary-color, var(--gov-color-secondary))}.gov-message[variant=secondary][inverse=\"\"],.gov-message[variant=secondary][inverse=true i],.gov-message[variant=secondary][inverse=\"1\"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=success]{border-left-color:var(--gov-message-success-color, var(--gov-color-success));background:var(--gov-message-success-bg-color, var(--gov-color-success-100))}.gov-message[variant=success] .gov-message__icon{color:var(--gov-message-success-color, var(--gov-color-success))}.gov-message[variant=success][inverse=\"\"],.gov-message[variant=success][inverse=true i],.gov-message[variant=success][inverse=\"1\"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}.gov-message[variant=primary]{border-left-color:var(--gov-message-primary-color, var(--gov-color-primary));background:var(--gov-message-primary-bg-color, var(--gov-color-primary-100))}.gov-message[variant=primary] .gov-message__icon{color:var(--gov-message-primary-color, var(--gov-color-primary))}.gov-message[variant=primary][inverse=\"\"],.gov-message[variant=primary][inverse=true i],.gov-message[variant=primary][inverse=\"1\"]{background:var(--gov-message-bg-inverse, var(--gov-color-neutral-white))}";
|
|
17
|
-
|
|
18
|
-
const GovMessage = class {
|
|
19
|
-
constructor(hostRef) {
|
|
20
|
-
registerInstance(this, hostRef);
|
|
21
|
-
this.variant = Variants.PRIMARY;
|
|
22
|
-
this.h = govHost(this.host);
|
|
23
|
-
}
|
|
24
|
-
validateVariant(newValue) {
|
|
25
|
-
validateProp(Variants, newValue, MessageClass.root);
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
return (h(Host, { class: this.h.classes(MessageClass.root), variant: this.variant, role: "alert" }, this.h.hasSlot('icon') && (h("span", { class: MessageClass.icon }, h("slot", { name: "icon" }))), h("div", { class: MessageClass.content }, h("slot", null))));
|
|
29
|
-
}
|
|
30
|
-
get host() { return getElement(this); }
|
|
31
|
-
static get watchers() { return {
|
|
32
|
-
"variant": ["validateVariant"]
|
|
33
|
-
}; }
|
|
34
|
-
};
|
|
35
|
-
GovMessage.style = govMessageCss;
|
|
36
|
-
|
|
37
|
-
export { GovMessage as gov_message };
|
|
38
|
-
|
|
39
|
-
//# sourceMappingURL=gov-message.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"gov-message.entry.js","mappings":";;;;;;;AAI+B,IAAI,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,EAAC;AAG/F,MAAM,YAAY,GAAG;EAC3B,IAAI,EAAE,aAAa;EACnB,IAAI,EAAE,mBAAmB;EACzB,OAAO,EAAE,sBAAsB;EAC/B,KAAK,EAAE,oBAAoB;CAC3B;;ACZD,MAAM,aAAa,GAAG,2jHAA2jH;;MCYpkH,UAAU;EAGtB;;mBAS+C,QAAQ,CAAC,OAAO;IAR9D,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAUD,eAAe,CAAC,QAAgB;IAC/B,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;GACnD;EAED,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAC,OAAO,IACjF,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtB,YAAM,KAAK,EAAE,YAAY,CAAC,IAAI,IAC7B,YAAM,IAAI,EAAC,MAAM,GAAG,CACd,CACP,EAED,WAAK,KAAK,EAAE,YAAY,CAAC,OAAO,IAC/B,eAAQ,CACH,CACA,EACP;GACD;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-message/constants.ts","../../../packages/core/src/components/gov-message/gov-message.scss?tag=gov-message","../../../packages/core/src/components/gov-message/gov-message.tsx"],"sourcesContent":["import { Variants } from '../../core/constants/variants'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const MessageVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'WARNING', 'ERROR', 'SUCCESS'])\nexport type MessageVariantType = `${ValueOf<typeof MessageVariants>}`\n\nexport const MessageClass = {\n\troot: 'gov-message',\n\ticon: 'gov-message__icon',\n\tcontent: 'gov-message__content',\n\tclose: 'gov-message__close',\n}\n","/*\n * Alert\n */\n\n@import \"../gov-toast/gov-toast-message-core.scss\";\n$class: \".gov-message\";\n\n#{$class} {\n\t@include toast-message-core;\n\n\t// VARIANTS\n\t@include parameter(\"shadow\") {\n\t\tbox-shadow: $message-box-shadow;\n\t}\n\t@each $variant, $definitions in $message-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\tborder-left-color: get(\"color\", $definitions);\n\t\t\tbackground: get(\"bg-color\", $definitions);\n\t\t\t#{$class} {\n\t\t\t\t&__icon {\n\t\t\t\t\tcolor: get(\"color\", $definitions);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// STATES\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\tbackground: $message-bg-inverse;\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch } from '@stencil/core'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { MessageClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport { Variants } from '../../core/constants/variants'\nimport { MessageVariantType } from './constants'\n\n@Component({\n\ttag: 'gov-message',\n\tstyleUrl: 'gov-message.scss',\n})\nexport class GovMessage {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovMessageElement\n\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly variant: MessageVariantType = Variants.PRIMARY\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(Variants, newValue, MessageClass.root)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(MessageClass.root)} variant={this.variant} role=\"alert\">\n\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t<span class={MessageClass.icon}>\n\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\n\t\t\t\t<div class={MessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b010bfb4.js';
|
|
2
|
-
import { c as createID } from './string.utils-f268fc6b.js';
|
|
3
|
-
import { b as validateWcagRef } from './wcag-d588d144.js';
|
|
4
|
-
import { M as ModalClass } from './constants-ba13b28f.js';
|
|
5
|
-
import { c as canValidateWcagOnRender } from './win-9c8460bb.js';
|
|
6
|
-
import { d as delay } from './utils-c057a3fa.js';
|
|
7
|
-
import { g as govHost, a as toBoolAttr } from './template-10332292.js';
|
|
8
|
-
import { a as govErrorLog } from './gov.log-af905420.js';
|
|
9
|
-
|
|
10
|
-
const govModalCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-modal{display:none}.gov-modal__dialog{z-index:101;position:fixed;top:50%;left:50%;display:flex;justify-content:center;align-items:center;width:100%;max-width:var(--gov-modal-max-width, 52.5rem);height:100%;padding:0.5rem;border:none;background:transparent;transform:translate(-50%, -50%);pointer-events:none}.gov-modal__inner{position:relative;display:flex;flex-direction:column;width:100%;max-height:100%;border-radius:var(--gov-border-radius, 0.1875rem);background:var(--gov-modal-bg, var(--gov-color-neutral-white));overflow:hidden;pointer-events:auto;box-shadow:0 0 1.5rem rgba(var(--gov-color-secondary-800-rgb), 0.24)}.gov-modal__header{display:flex;gap:1rem;align-items:flex-start;padding:1.5rem 1rem;border-bottom:var(--gov-modal-border-color, 0.0625rem solid var(--gov-color-secondary-500))}.gov-modal__icon{flex:0 0 auto;padding-top:calc((var(--gov-text-3xl-font-size) * 1.5 - 1.5rem) / 2)}.gov-modal__icon>*{width:1.5rem;height:1.5rem}.gov-modal__title{font-weight:var(--gov-text-3xl-font-weight);font-size:var(--gov-text-3xl-font-size);line-height:var(--gov-text-3xl-line-height);letter-spacing:var(--gov-text-3xl-letter-spacing);margin:0}.gov-modal__close{flex:0 0 auto;margin-left:auto;padding-top:calc((var(--gov-text-3xl-font-size) * 1.5 - 2rem) / 2)}.gov-modal__content{height:100%;padding:1.5rem 1rem;color:var(--gov-modal-text-color, var(--gov-color-secondary-700));overflow:auto}.gov-modal__content>*:last-child{margin-bottom:0}.gov-modal__actions{display:flex;gap:0.5rem 1rem;flex-wrap:wrap;justify-content:flex-end;padding:1.5rem 1rem;border-top:var(--gov-modal-border-color, 0.0625rem solid var(--gov-color-secondary-500))}.gov-modal__dialog:focus .gov-modal__inner{outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base)}.gov-modal[open=\"\"],.gov-modal[open=true i],.gov-modal[open=\"1\"]{display:block}@media (min-width: 30em){.gov-modal__dialog{max-width:calc(var(--gov-modal-max-width, 52.5rem) + 3rem);padding:1.5rem}.gov-modal__dialog:focus{outline-offset:-1.5rem}.gov-modal__inner{box-shadow:0 0 2rem rgba(var(--gov-color-secondary-800-rgb), 0.32)}.gov-modal--prompt .gov-modal__dialog{max-width:calc(var(--gov-modal-prompt-max-width, 33.125rem) + 3rem)}}@media (min-width: 48em){.gov-modal__header{gap:1.25rem;padding:2rem 2.5rem 2rem 3rem}.gov-modal__close{padding-top:calc((var(--gov-text-3xl-font-size) * 1.5 - 2.5rem) / 2)}.gov-modal__content{padding:2rem 3rem}.gov-modal--prompt .gov-modal__header,.gov-modal--prompt .gov-modal__content,.gov-modal--prompt .gov-modal__actions{padding:1.5rem}}";
|
|
11
|
-
|
|
12
|
-
const GovModal = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
registerInstance(this, hostRef);
|
|
15
|
-
this.govClose = createEvent(this, "gov-close", 7);
|
|
16
|
-
this.open = false;
|
|
17
|
-
this.label = undefined;
|
|
18
|
-
this.role = "dialog";
|
|
19
|
-
this.labelTag = "h2";
|
|
20
|
-
this.wcagLabelledBy = undefined;
|
|
21
|
-
this.wcagDescribedBy = undefined;
|
|
22
|
-
this.wcagCloseLabel = undefined;
|
|
23
|
-
this.wcagCloseLabelledBy = undefined;
|
|
24
|
-
this.h = govHost(this.host);
|
|
25
|
-
this.labelId = createID("GovModalLabel");
|
|
26
|
-
this.contentId = createID("GovModalContent");
|
|
27
|
-
}
|
|
28
|
-
validateLabelTag(newValue) {
|
|
29
|
-
const validTags = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
30
|
-
if (newValue) {
|
|
31
|
-
if (!validTags.includes(newValue)) {
|
|
32
|
-
govErrorLog(`[${ModalClass.root}]: Tag ${newValue} is not allowed.`);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
watchOpen(newValue) {
|
|
37
|
-
this.open = newValue;
|
|
38
|
-
}
|
|
39
|
-
showModal() {
|
|
40
|
-
this.open = true;
|
|
41
|
-
document.body.classList.add(ModalClass.bodyFix);
|
|
42
|
-
}
|
|
43
|
-
hideModal() {
|
|
44
|
-
this.open = false;
|
|
45
|
-
document.body.classList.remove(ModalClass.bodyFix);
|
|
46
|
-
}
|
|
47
|
-
async componentWillRender() {
|
|
48
|
-
if (this.open) {
|
|
49
|
-
this.showModal();
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
this.hideModal();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
async componentDidRender() {
|
|
56
|
-
if (canValidateWcagOnRender()) {
|
|
57
|
-
await delay(500);
|
|
58
|
-
await this.validateWcag();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
render() {
|
|
62
|
-
const LabelTag = this.labelTag;
|
|
63
|
-
return (h(Host, { class: this.h.classes(ModalClass.root), open: this.open }, h("dialog", { class: ModalClass.dialog, hidden: !this.open, tabindex: "-1", open: this.open, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.open), "aria-labelledby": this.wcagLabelledBy || this.labelId, "aria-describedby": this.wcagDescribedBy || this.contentId, role: this.role }, h("div", { class: ModalClass.inner }, h("div", { class: ModalClass.header }, this.h.hasSlot("icon") && (h("div", { class: ModalClass.icon }, h("slot", { name: "icon" }))), this.label && (h(LabelTag, { class: ModalClass.title, id: this.labelId }, this.label)), h("gov-button", { class: ModalClass.close, variant: "primary", wcagLabel: this.wcagCloseLabel, wcagLabelledBy: this.wcagCloseLabelledBy, type: "base", "on-gov-click": this.onCloseHandler.bind(this) }, h("gov-icon", { name: "x-lg" }))), h("div", { class: ModalClass.content, id: this.contentId }, h("slot", null)))), this.open ? (h("gov-backdrop", { "wcag-label": this.wcagCloseLabel, "wcag-labelled-by": this.wcagCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })) : null));
|
|
64
|
-
}
|
|
65
|
-
onCloseHandler(e) {
|
|
66
|
-
e.stopPropagation();
|
|
67
|
-
this.hideModal();
|
|
68
|
-
this.govClose.emit(e);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Showing the modal
|
|
72
|
-
*/
|
|
73
|
-
async show() {
|
|
74
|
-
this.showModal();
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Hiding the modal
|
|
78
|
-
*/
|
|
79
|
-
async hide() {
|
|
80
|
-
this.hideModal();
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Validate the WCAG attributes of the component
|
|
84
|
-
*/
|
|
85
|
-
async validateWcag() {
|
|
86
|
-
validateWcagRef(this.wcagLabelledBy, "wcag-labelled-by", ModalClass.root);
|
|
87
|
-
validateWcagRef(this.wcagDescribedBy, "wcag-described-by", ModalClass.root);
|
|
88
|
-
}
|
|
89
|
-
get host() { return getElement(this); }
|
|
90
|
-
static get watchers() { return {
|
|
91
|
-
"labelTag": ["validateLabelTag"],
|
|
92
|
-
"open": ["watchOpen"]
|
|
93
|
-
}; }
|
|
94
|
-
};
|
|
95
|
-
GovModal.style = govModalCss;
|
|
96
|
-
|
|
97
|
-
export { GovModal as gov_modal };
|
|
98
|
-
|
|
99
|
-
//# sourceMappingURL=gov-modal.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"gov-modal.entry.js","mappings":";;;;;;;;;AAAA,MAAM,WAAW,GAAG,m1FAAm1F;;MCe11F,QAAQ;EAKpB;;;gBAW8B,KAAK;;gBAQC,QAAQ;oBAIkB,IAAI;;;;;IAtBjE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3B,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAA;IACxC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAA;GAC5C;EA0CD,gBAAgB,CAAC,QAAgB;IAChC,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IACtD,IAAI,QAAQ,EAAE;MACb,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClC,WAAW,CAAC,IAAI,UAAU,CAAC,IAAI,UAAU,QAAQ,kBAAkB,CAAC,CAAA;OACpE;KACD;GACD;EAGD,SAAS,CAAC,QAAiB;IAC1B,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAA;GACpB;EAEO,SAAS;IAChB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IAChB,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;GAC/C;EAEO,SAAS;IAChB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAA;IACjB,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;GAClD;EAED,MAAM,mBAAmB;IACxB,IAAI,IAAI,CAAC,IAAI,EAAE;MACd,IAAI,CAAC,SAAS,EAAE,CAAA;KAChB;SAAM;MACN,IAAI,CAAC,SAAS,EAAE,CAAA;KAChB;GACD;EAED,MAAM,kBAAkB;IACvB,IAAI,uBAAuB,EAAE,EAAE;MAC9B,MAAM,KAAK,CAAC,GAAG,CAAC,CAAA;MAChB,MAAM,IAAI,CAAC,YAAY,EAAE,CAAA;KACzB;GACD;EAED,MAAM;IACL,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;IAC9B,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAC5D,cACC,KAAK,EAAE,UAAU,CAAC,MAAM,EACxB,MAAM,EAAE,CAAC,IAAI,CAAC,IAAI,EAClB,QAAQ,EAAC,IAAI,EACb,IAAI,EAAE,IAAI,CAAC,IAAI,gBACJ,MAAM,iBACJ,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,qBAClB,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,OAAO,sBAClC,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,SAAS,EACxD,IAAI,EAAE,IAAI,CAAC,IAAI,IAEf,WAAK,KAAK,EAAE,UAAU,CAAC,KAAK,IAC3B,WAAK,KAAK,EAAE,UAAU,CAAC,MAAM,IAC3B,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtB,WAAK,KAAK,EAAE,UAAU,CAAC,IAAI,IAC1B,YAAM,IAAI,EAAC,MAAM,GAAG,CACf,CACN,EACA,IAAI,CAAC,KAAK,KACV,EAAC,QAAQ,IAAC,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,IACjD,IAAI,CAAC,KAAK,CACD,CACX,EACD,kBACC,KAAK,EAAE,UAAU,CAAC,KAAK,EACvB,OAAO,EAAC,SAAS,EACjB,SAAS,EAAE,IAAI,CAAC,cAAc,EAC9B,cAAc,EAAE,IAAI,CAAC,mBAAmB,EACxC,IAAI,EAAC,MAAM,kBACG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,IAE5C,gBAAU,IAAI,EAAC,MAAM,GAAG,CACZ,CACR,EACN,WAAK,KAAK,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,IACjD,eAAQ,CACH,CACD,CACE,EAER,IAAI,CAAC,IAAI,IACT,kCACa,IAAI,CAAC,cAAc,sBACb,IAAI,CAAC,mBAAmB,kBAC5B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,GAC3C,IACC,IAAI,CACF,EACP;GACD;EAEO,cAAc,CAAC,CAAe;IACrC,CAAC,CAAC,eAAe,EAAE,CAAA;IACnB,IAAI,CAAC,SAAS,EAAE,CAAA;IAChB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;GACrB;;;;EAMD,MAAM,IAAI;IACT,IAAI,CAAC,SAAS,EAAE,CAAA;GAChB;;;;EAMD,MAAM,IAAI;IACT,IAAI,CAAC,SAAS,EAAE,CAAA;GAChB;;;;EAMD,MAAM,YAAY;IACjB,eAAe,CAAC,IAAI,CAAC,cAAc,EAAE,kBAAkB,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;IACzE,eAAe,CAAC,IAAI,CAAC,eAAe,EAAE,mBAAmB,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;GAC3E;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-modal/gov-modal.scss?tag=gov-modal","../../../packages/core/src/components/gov-modal/gov-modal.tsx"],"sourcesContent":["/*\n * Modal\n */\n\n$class: \".gov-modal\";\n\n#{$class} {\n\tdisplay: none;\n\t&__dialog {\n\t\t@include z-index(\"modal\", 1);\n\t\tposition: fixed;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\tmax-width: $modal-max-width;\n\t\theight: 100%;\n\t\tpadding: rem-calc(8);\n\t\tborder: none;\n\t\tbackground: transparent;\n\t\ttransform: translate(-50%, -50%);\n\t\tpointer-events: none;\n\t}\n\t&__inner {\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t\tmax-height: 100%;\n\t\tborder-radius: $border-radius;\n\t\tbackground: $modal-bg;\n\t\toverflow: hidden;\n\t\tpointer-events: auto;\n\t\tbox-shadow: get($shadow-l, $shadows);\n\t}\n\t&__header {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\talign-items: flex-start;\n\t\tpadding: rem-calc(24 16);\n\t\tborder-bottom: $modal-border;\n\t}\n\t&__icon {\n\t\tflex: 0 0 auto;\n\t\tpadding-top: calc(((var(--gov-text-#{$font-size-3xl}-font-size) * 1.5) - rem-calc(24)) / 2);\n\t\t& > * {\n\t\t\twidth: rem-calc(24);\n\t\t\theight: rem-calc(24);\n\t\t}\n\t}\n\t&__title {\n\t\t@include typography($font-size-3xl);\n\t\tmargin: 0;\n\t}\n\t&__close {\n\t\tflex: 0 0 auto;\n\t\tmargin-left: auto;\n\t\tpadding-top: calc(((var(--gov-text-#{$font-size-3xl}-font-size) * 1.5) - rem-calc(32)) / 2);\n\t}\n\t&__content {\n\t\t@include reset-last-margin();\n\t\theight: 100%;\n\t\tpadding: rem-calc(24 16);\n\t\tcolor: $modal-text-color;\n\t\toverflow: auto;\n\t}\n\t&__actions {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(8 16);\n\t\tflex-wrap: wrap;\n\t\tjustify-content: flex-end;\n\t\tpadding: rem-calc(24 16);\n\t\tborder-top: $modal-border;\n\t}\n\n\t// STATES\n\t&__dialog:focus &__inner {\n\t\toutline: $outline;\n\t}\n\t@include parameter(\"open\") {\n\t\tdisplay: block;\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t&__dialog {\n\t\t\tmax-width: calc($modal-max-width + 2 * rem-calc(24));\n\t\t\tpadding: rem-calc(24);\n\t\t\t&:focus {\n\t\t\t\toutline-offset: rem-calc(-24);\n\t\t\t}\n\t\t}\n\t\t&__inner {\n\t\t\tbox-shadow: get($shadow-xl, $shadows);\n\t\t}\n\n\t\t// VARIANTS\n\t\t&--prompt &__dialog {\n\t\t\tmax-width: calc($modal-prompt-max-width + 2 * rem-calc(24));\n\t\t}\n\t}\n\t@include mq($from: md) {\n\t\t&__header {\n\t\t\tgap: rem-calc(20);\n\t\t\tpadding: rem-calc(32 40 32 48);\n\t\t}\n\t\t&__close {\n\t\t\tpadding-top: calc(((var(--gov-text-#{$font-size-3xl}-font-size) * 1.5) - rem-calc(40)) / 2);\n\t\t}\n\t\t&__content {\n\t\t\tpadding: rem-calc(32 48);\n\t\t}\n\n\t\t// VARIANTS\n\t\t&--prompt {\n\t\t\t#{$class} {\n\t\t\t\t&__header,\n\t\t\t\t&__content,\n\t\t\t\t&__actions {\n\t\t\t\t\tpadding: rem-calc(24);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Event, Element, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { createID } from \"../../utils/string.utils\"\nimport { validateWcagRef } from \"../../helpers/Validate/wcag\"\nimport { ModalClass } from \"./constants\"\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\nimport { delay } from \"../../utils/utils\"\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { govErrorLog } from \"../../helpers/Log/gov.log\"\n\n@Component({\n\ttag: \"gov-modal\",\n\tstyleUrl: \"gov-modal.scss\",\n})\nexport class GovModal {\n\tprivate h: GovHost\n\tprivate readonly labelId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.labelId = createID(\"GovModalLabel\")\n\t\tthis.contentId = createID(\"GovModalContent\")\n\t}\n\n\t@Element() host: HTMLGovModalElement\n\n\t/**\n\t * Attribute for modal window display\n\t */\n\t@Prop({mutable: true}) open = false\n\t/**\n\t * Title of modal window\n\t */\n\t@Prop() label: string\n\t/**\n\t * Role of modal\n\t */\n\t@Prop({ attribute: \"role\" }) role = \"dialog\"\n\t/**\n\t * Used to change the 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\" }) wcagCloseLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for closing the modal window\n\t */\n\t@Prop({ attribute: \"wcag-close-labelled-by\" }) wcagCloseLabelledBy: string\n\t/**\n\t * Emitted when modal window closes.\n\t */\n\t@Event({ eventName: \"gov-close\" }) govClose: EventEmitter<PointerEvent>\n\n\t@Watch(\"labelTag\")\n\tvalidateLabelTag(newValue: string): void {\n\t\tconst validTags = [\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\"]\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${ModalClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\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\tclass={ModalClass.close}\n\t\t\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t\t\twcagLabel={this.wcagCloseLabel}\n\t\t\t\t\t\t\t\twcagLabelledBy={this.wcagCloseLabelledBy}\n\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<gov-icon name=\"x-lg\" />\n\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class={ModalClass.content} id={this.contentId}>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</dialog>\n\n\t\t\t\t{this.open ? (\n\t\t\t\t\t<gov-backdrop\n\t\t\t\t\t\twcag-label={this.wcagCloseLabel}\n\t\t\t\t\t\twcag-labelled-by={this.wcagCloseLabelledBy}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t/>\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\tthis.hideModal()\n\t\tthis.govClose.emit(e)\n\t}\n\n\t/**\n\t * Showing the modal\n\t */\n\t@Method()\n\tasync show(): Promise<void> {\n\t\tthis.showModal()\n\t}\n\n\t/**\n\t * 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"],"version":3}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-b010bfb4.js';
|
|
2
|
-
import { a as govErrorLog } from './gov.log-af905420.js';
|
|
3
|
-
import { a as NavItemClass } from './constants-d71c09e0.js';
|
|
4
|
-
|
|
5
|
-
const govNavItemCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-nav-item{display:block}.gov-nav-item__link{position:relative;display:block;padding:0.9375rem 3rem 0.9375rem 2.25rem;color:var(--gov-nav-color, var(--gov-color-neutral-white));text-decoration:none}.gov-nav-item__link:focus{outline:none}.gov-nav-item__link:focus-visible{border-radius:var(--gov-border-radius, 0.1875rem);outline:var(--gov-outline-width, 0.125rem) solid var(--gov-color-focus-base);outline-offset:0}.gov-nav-item__link:focus{outline-color:var(--gov-nav-color, var(--gov-color-neutral-white))}@media not all and (pointer: coarse){.gov-nav-item__link:hover{color:var(--gov-nav-color, var(--gov-color-neutral-white));text-decoration:underline}}@media (min-width: 48em){.gov-nav-item__link{display:inline-flex;justify-content:center;align-items:center;height:100%;padding:1.375rem 1.25rem 1.3125rem}.gov-nav-item__link::before{content:\"\";position:absolute;display:block;top:0;left:50%;width:0;height:0.125rem;background:var(--gov-nav-color, var(--gov-color-neutral-white));transform:translate(-50%);transition:width 150ms}@media not all and (pointer: coarse){.gov-nav-item__link:hover{text-decoration:none}.gov-nav-item__link:hover::before{width:100%}}}";
|
|
6
|
-
|
|
7
|
-
const GovNavItem = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
this.isExpandedState = undefined;
|
|
11
|
-
this.href = undefined;
|
|
12
|
-
}
|
|
13
|
-
validateHref(newValue) {
|
|
14
|
-
if (!newValue) {
|
|
15
|
-
govErrorLog(`[${NavItemClass.root}]: Parameter href is required.`);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
componentWillLoad() {
|
|
19
|
-
this.validateHref(this.href);
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
return (h(Host, { class: NavItemClass.root, role: "listitem" }, h("a", { href: this.href, class: NavItemClass.link }, h("slot", null))));
|
|
23
|
-
}
|
|
24
|
-
get host() { return getElement(this); }
|
|
25
|
-
static get watchers() { return {
|
|
26
|
-
"href": ["validateHref"]
|
|
27
|
-
}; }
|
|
28
|
-
};
|
|
29
|
-
GovNavItem.style = govNavItemCss;
|
|
30
|
-
|
|
31
|
-
export { GovNavItem as gov_nav_item };
|
|
32
|
-
|
|
33
|
-
//# sourceMappingURL=gov-nav-item.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"gov-nav-item.entry.js","mappings":";;;;AAAA,MAAM,aAAa,GAAG,0+CAA0+C;;MCQn/C,UAAU;;;;;;EAWtB,YAAY,CAAC,QAAgB;IAC5B,IAAI,CAAC,QAAQ,EAAE;MACd,WAAW,CAAC,IAAI,YAAY,CAAC,IAAI,gCAAgC,CAAC,CAAA;KAClE;GACD;EAED,iBAAiB;IAChB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC5B;EAED,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,YAAY,CAAC,IAAI,EAAE,IAAI,EAAC,UAAU,IAC9C,SAAG,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,IAAI,IAC3C,eAAQ,CACL,CACE,EACP;GACD;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-nav/gov-nav-item.scss?tag=gov-nav-item","../../../packages/core/src/components/gov-nav/gov-nav-item.tsx"],"sourcesContent":["/*\n * Nav - Item\n */\n\n$class: \".gov-nav-item\";\n\n#{$class} {\n\tdisplay: block;\n\t&__link {\n\t\t@include focus-outline();\n\t\tposition: relative;\n\t\tdisplay: block;\n\t\tpadding: rem-calc(15 48 15 36);\n\t\tcolor: $nav-color;\n\t\ttext-decoration: none;\n\t\t&:focus {\n\t\t\toutline-color: $nav-color;\n\t\t}\n\t\t@include hover() {\n\t\t\tcolor: $nav-color;\n\t\t\ttext-decoration: underline;\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: md) {\n\t\t&__link {\n\t\t\tdisplay: inline-flex;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\theight: 100%;\n\t\t\tpadding: rem-calc(22 20 21);\n\t\t\t&::before {\n\t\t\t\t@include pseudo();\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 50%;\n\t\t\t\twidth: 0;\n\t\t\t\theight: rem-calc(2);\n\t\t\t\tbackground: $nav-color;\n\t\t\t\ttransform: translate(-50%);\n\t\t\t\ttransition: width $t;\n\t\t\t}\n\t\t\t@include hover() {\n\t\t\t\ttext-decoration: none;\n\t\t\t\t&::before {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Prop, State, Host, Watch } from '@stencil/core'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { NavItemClass } from './constants'\n\n@Component({\n\ttag: 'gov-nav-item',\n\tstyleUrl: 'gov-nav-item.scss',\n})\nexport class GovNavItem {\n\t@Element() readonly host: HTMLGovNavItemElement\n\t@State() isExpandedState: boolean\n\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\n\t@Watch('href')\n\tvalidateHref(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${NavItemClass.root}]: Parameter href is required.`)\n\t\t}\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateHref(this.href)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={NavItemClass.root} role=\"listitem\">\n\t\t\t\t<a href={this.href} class={NavItemClass.link}>\n\t\t\t\t\t<slot />\n\t\t\t\t</a>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-b010bfb4.js';
|
|
2
|
-
import { N as NavClass } from './constants-d71c09e0.js';
|
|
3
|
-
import { v as validateWcagLabel } from './wcag-d588d144.js';
|
|
4
|
-
import { c as canValidateWcagOnRender } from './win-9c8460bb.js';
|
|
5
|
-
import { d as delay } from './utils-c057a3fa.js';
|
|
6
|
-
import './gov.log-af905420.js';
|
|
7
|
-
import './string.utils-f268fc6b.js';
|
|
8
|
-
|
|
9
|
-
const govNavCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-nav{position:relative;display:block;width:100%;font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);background:var(--gov-nav-bg, var(--gov-color-primary));font-weight:bold;letter-spacing:0.0125em;text-transform:uppercase}@media (min-width: 48em){.gov-nav{text-align:center}.gov-nav__nav{display:flex;justify-content:space-between}}";
|
|
10
|
-
|
|
11
|
-
const GovNav = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
registerInstance(this, hostRef);
|
|
14
|
-
this.wcagLabel = undefined;
|
|
15
|
-
this.wcagLabelledBy = undefined;
|
|
16
|
-
}
|
|
17
|
-
async componentDidRender() {
|
|
18
|
-
if (canValidateWcagOnRender()) {
|
|
19
|
-
await delay(500);
|
|
20
|
-
await this.validateWcag();
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
return (h(Host, { class: NavClass.root }, h("nav", { class: NavClass.nav, role: 'list', "arial-label": this.wcagLabel, "arial-labelledby": this.wcagLabelledBy }, h("slot", null))));
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Validate the WCAG attributes of the component
|
|
28
|
-
*/
|
|
29
|
-
async validateWcag() {
|
|
30
|
-
validateWcagLabel(this.wcagLabel, this.wcagLabelledBy, NavClass.root);
|
|
31
|
-
}
|
|
32
|
-
get host() { return getElement(this); }
|
|
33
|
-
};
|
|
34
|
-
GovNav.style = govNavCss;
|
|
35
|
-
|
|
36
|
-
export { GovNav as gov_nav };
|
|
37
|
-
|
|
38
|
-
//# sourceMappingURL=gov-nav.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"gov-nav.entry.js","mappings":";;;;;;;;AAAA,MAAM,SAAS,GAAG,6xBAA6xB;;MCUlyB,MAAM;;;;;;EAYlB,MAAM,kBAAkB;IACvB,IAAI,uBAAuB,EAAE,EAAE;MAC9B,MAAM,KAAK,CAAC,GAAG,CAAC,CAAA;MAChB,MAAM,IAAI,CAAC,YAAY,EAAE,CAAA;KACzB;GACD;EAED,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,IACzB,WAAK,KAAK,EAAE,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,iBAAe,IAAI,CAAC,SAAS,sBAAoB,IAAI,CAAC,cAAc,IACzG,eAAQ,CACH,CACA,EACP;GACD;;;;EAMD,MAAM,YAAY;IACjB,iBAAiB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAA;GACrE;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-nav/gov-nav.scss?tag=gov-nav","../../../packages/core/src/components/gov-nav/gov-nav.tsx"],"sourcesContent":["/*\n * Nav\n */\n\n$class: \".gov-nav\";\n\n#{$class} {\n\t@include base();\n\t@include typography($font-size-s);\n\tbackground: $nav-bg;\n\tfont-weight: bold;\n\tletter-spacing: 0.0125em;\n\ttext-transform: uppercase;\n\n\t// MQ\n\t@include mq($from: md) {\n\t\ttext-align: center;\n\t\t&__nav {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: space-between;\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Method, Prop } from '@stencil/core'\nimport { NavClass } from './constants'\nimport { validateWcagLabel } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\n\n@Component({\n\ttag: 'gov-nav',\n\tstyleUrl: 'gov-nav.scss',\n})\nexport class GovNav {\n\t@Element() readonly host: HTMLGovNavElement\n\n\t/**\n\t * Adds accessible label for the accordion that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: 'wcag-labelled-by' }) readonly wcagLabelledBy: string\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={NavClass.root}>\n\t\t\t\t<nav class={NavClass.nav} role={'list'} arial-label={this.wcagLabel} arial-labelledby={this.wcagLabelledBy}>\n\t\t\t\t\t<slot />\n\t\t\t\t</nav>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, NavClass.root)\n\t}\n}\n"],"version":3}
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b010bfb4.js';
|
|
2
|
-
import { F as Fragment } from './Fragment-8d8d54fb.js';
|
|
3
|
-
import { v as validateProp } from './props-789f7529.js';
|
|
4
|
-
import { S as Sizes } from './sizes-6c5943b4.js';
|
|
5
|
-
import { V as Variants } from './variants-2b936d58.js';
|
|
6
|
-
import { p as pick, d as delay } from './utils-c057a3fa.js';
|
|
7
|
-
import { g as govHost, p as prepareClasses, t as toBoolAttrIfDefined } from './template-10332292.js';
|
|
8
|
-
import { a as validateWcagProp, v as validateWcagLabel } from './wcag-d588d144.js';
|
|
9
|
-
import { c as canValidateWcagOnRender } from './win-9c8460bb.js';
|
|
10
|
-
import { c as createID } from './string.utils-f268fc6b.js';
|
|
11
|
-
import './gov.log-af905420.js';
|
|
12
|
-
|
|
13
|
-
const PaginationSizes = pick(Sizes, ['_S', '_M']);
|
|
14
|
-
const PaginationVariants = pick(Variants, ['PRIMARY', 'SECONDARY']);
|
|
15
|
-
var PaginationTypes;
|
|
16
|
-
(function (PaginationTypes) {
|
|
17
|
-
PaginationTypes["BUTTON"] = "button";
|
|
18
|
-
PaginationTypes["SELECT"] = "select";
|
|
19
|
-
})(PaginationTypes || (PaginationTypes = {}));
|
|
20
|
-
const PaginationClass = {
|
|
21
|
-
root: 'gov-pagination',
|
|
22
|
-
list: 'gov-pagination__list',
|
|
23
|
-
item: 'gov-pagination__item',
|
|
24
|
-
itemArrow: 'gov-pagination__item--arrow',
|
|
25
|
-
itemMore: 'gov-pagination__item--more',
|
|
26
|
-
itemSelect: 'gov-pagination__item--select',
|
|
27
|
-
inner: 'gov-pagination__inner',
|
|
28
|
-
arrow: 'gov-pagination__arrow',
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
function paginate(totalItems, currentPage = 1, pageSize = 10, maxPages = 10) {
|
|
32
|
-
// calculate total pages
|
|
33
|
-
const totalPages = Math.ceil(totalItems / pageSize);
|
|
34
|
-
// ensure current page isn't out of range
|
|
35
|
-
if (currentPage < 1) {
|
|
36
|
-
currentPage = 1;
|
|
37
|
-
}
|
|
38
|
-
else if (currentPage > totalPages) {
|
|
39
|
-
currentPage = totalPages;
|
|
40
|
-
}
|
|
41
|
-
let startPage, endPage;
|
|
42
|
-
if (totalPages <= maxPages) {
|
|
43
|
-
// total pages less than max so show all pages
|
|
44
|
-
startPage = 1;
|
|
45
|
-
endPage = totalPages;
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
// total pages more than max so calculate start and end pages
|
|
49
|
-
const maxPagesBeforeCurrentPage = Math.floor(maxPages / 2);
|
|
50
|
-
const maxPagesAfterCurrentPage = Math.ceil(maxPages / 2) - 1;
|
|
51
|
-
if (currentPage <= maxPagesBeforeCurrentPage) {
|
|
52
|
-
// current page near the start
|
|
53
|
-
startPage = 1;
|
|
54
|
-
endPage = maxPages;
|
|
55
|
-
}
|
|
56
|
-
else if (currentPage + maxPagesAfterCurrentPage >= totalPages) {
|
|
57
|
-
// current page near the end
|
|
58
|
-
startPage = totalPages - maxPages + 1;
|
|
59
|
-
endPage = totalPages;
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
// current page somewhere in the middle
|
|
63
|
-
startPage = currentPage - maxPagesBeforeCurrentPage;
|
|
64
|
-
endPage = currentPage + maxPagesAfterCurrentPage;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
// calculate start and end item indexes
|
|
68
|
-
const startIndex = (currentPage - 1) * pageSize;
|
|
69
|
-
const endIndex = Math.min(startIndex + pageSize - 1, totalItems - 1);
|
|
70
|
-
// create an array of pages to ng-repeat in the pager control
|
|
71
|
-
const pages = Array.from(Array(endPage + 1 - startPage).keys()).map(i => startPage + i);
|
|
72
|
-
// return object with all pager properties required by the view
|
|
73
|
-
return {
|
|
74
|
-
totalItems: totalItems,
|
|
75
|
-
currentPage: currentPage,
|
|
76
|
-
pageSize: pageSize,
|
|
77
|
-
totalPages: totalPages,
|
|
78
|
-
startPage: startPage,
|
|
79
|
-
endPage: endPage,
|
|
80
|
-
startIndex: startIndex,
|
|
81
|
-
endIndex: endIndex,
|
|
82
|
-
pages: pages,
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
const createArrayRange = (from, to) => {
|
|
87
|
-
if (Number.isInteger(from) && Number.isInteger(to)) {
|
|
88
|
-
return [...Array(to + 1).keys()].slice(from);
|
|
89
|
-
}
|
|
90
|
-
return [];
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
const govPaginationCss = ".gov-pagination__list{margin:0;padding:0}.gov-pagination__list .gov-pagination__item{margin:0;padding:0;background:none}.gov-pagination__list .gov-pagination__item::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@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;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)}";
|
|
94
|
-
|
|
95
|
-
const GovPagination = class {
|
|
96
|
-
constructor(hostRef) {
|
|
97
|
-
registerInstance(this, hostRef);
|
|
98
|
-
this.govPage = createEvent(this, "gov-page", 7);
|
|
99
|
-
this.type = "button";
|
|
100
|
-
this.current = 1;
|
|
101
|
-
this.total = undefined;
|
|
102
|
-
this.inverse = undefined;
|
|
103
|
-
this.size = "m";
|
|
104
|
-
this.variant = "primary";
|
|
105
|
-
this.pageSize = 10;
|
|
106
|
-
this.maxPages = 5;
|
|
107
|
-
this.link = undefined;
|
|
108
|
-
this.wcagLabel = undefined;
|
|
109
|
-
this.wcagLabelledBy = undefined;
|
|
110
|
-
this.wcagSelectLabel = "Vybrat stranu";
|
|
111
|
-
this.wcagPageLabel = "Strana";
|
|
112
|
-
this.pagination = undefined;
|
|
113
|
-
this.h = govHost(this.host);
|
|
114
|
-
this.pageSelectId = createID("GovPageSelect");
|
|
115
|
-
}
|
|
116
|
-
validateType(newValue) {
|
|
117
|
-
validateProp(PaginationTypes, newValue, PaginationClass.root);
|
|
118
|
-
}
|
|
119
|
-
validateSize(newValue) {
|
|
120
|
-
validateProp(PaginationSizes, newValue, PaginationClass.root);
|
|
121
|
-
}
|
|
122
|
-
validateVariant(newValue) {
|
|
123
|
-
validateProp(PaginationVariants, newValue, PaginationClass.root);
|
|
124
|
-
}
|
|
125
|
-
componentWillLoad() {
|
|
126
|
-
this.recalculatePagination(this.current);
|
|
127
|
-
this.validateSize(this.size);
|
|
128
|
-
this.validateVariant(this.variant);
|
|
129
|
-
}
|
|
130
|
-
async componentDidRender() {
|
|
131
|
-
if (canValidateWcagOnRender()) {
|
|
132
|
-
await delay(500);
|
|
133
|
-
await this.validateWcag();
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
recalculatePagination(currentPage) {
|
|
137
|
-
this.pagination = paginate(this.total, currentPage, this.pageSize, this.maxPages);
|
|
138
|
-
}
|
|
139
|
-
isActivePageClass(originalClass, page) {
|
|
140
|
-
if (this.pagination.currentPage === page) {
|
|
141
|
-
return originalClass + " is-active";
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
return originalClass;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
prepareLinkUrl(page) {
|
|
148
|
-
if (this.link) {
|
|
149
|
-
return String(this.link).replace("{PAGE}", String(page));
|
|
150
|
-
}
|
|
151
|
-
return undefined;
|
|
152
|
-
}
|
|
153
|
-
resetSelectValue() {
|
|
154
|
-
if (this.spreadSelectRef) {
|
|
155
|
-
this.spreadSelectRef.getRef()
|
|
156
|
-
.then((el) => {
|
|
157
|
-
el.value = '...';
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
render() {
|
|
162
|
-
const pageResolver = (page, content) => {
|
|
163
|
-
const isDisabled = page === -1;
|
|
164
|
-
const ariaCurrent = toBoolAttrIfDefined(this.pagination.currentPage === page ? true : undefined);
|
|
165
|
-
return (h("gov-button", { href: this.prepareLinkUrl(page), variant: this.variant, size: this.size, type: "base", disabled: isDisabled, "on-gov-click": (e) => this.onClickHandler(e, page), "wcag-label": page > -1 ? this.wcagPageLabel + " " + page : undefined, "wcag-current": ariaCurrent, class: PaginationClass.inner }, content));
|
|
166
|
-
};
|
|
167
|
-
return (h(Host, { class: this.h.classes(PaginationClass.root), type: this.type, variant: this.variant, size: this.size }, h("nav", { "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy }, h("ul", { class: PaginationClass.list }, h("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.currentPage > 1 ? 1 : -1, h("gov-icon", { class: PaginationClass.arrow, name: "chevron-double-left" }))), h("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.startPage < this.pagination.currentPage ? this.pagination.currentPage - 1 : -1, h("gov-icon", { class: PaginationClass.arrow, name: "chevron-left" }))), this.type == "select" ? (h("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemSelect]) }, h("span", { class: PaginationClass.inner }, h("span", { id: this.pageSelectId, hidden: true }, this.wcagSelectLabel), h("gov-form-select", { size: "m", variant: this.variant, "wcag-labelled-by": this.pageSelectId, "on-gov-change": this.onSelectHandler.bind(this) }, createArrayRange(1, this.pagination.totalPages).map(page => (h("option", { value: page, selected: this.pagination.currentPage === page }, page))))))) : (h(Fragment, null, this.pagination.pages.map(page => (h("li", { class: this.isActivePageClass(PaginationClass.item, page) }, pageResolver(page, page)))), h("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemMore]) }, h("span", { class: PaginationClass.inner }, h("span", { id: this.pageSelectId, hidden: true }, this.wcagSelectLabel), h("gov-form-select", { size: "m", variant: this.variant, "wcag-labelled-by": this.pageSelectId, ref: el => (this.spreadSelectRef = el), "on-gov-change": this.onSelectHandler.bind(this) }, h("option", { selected: true, hidden: true }, "..."), createArrayRange(1, this.pagination.totalPages).map(page => (h("option", { value: page, selected: false }, page)))))))), h("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.currentPage + 1 : -1, h("gov-icon", { class: PaginationClass.arrow, name: "chevron-right" }))), h("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.totalPages : -1, h("gov-icon", { class: PaginationClass.arrow, name: "chevron-double-right" })))))));
|
|
168
|
-
}
|
|
169
|
-
onClickHandler(e, page) {
|
|
170
|
-
e.stopPropagation();
|
|
171
|
-
this.recalculatePagination(page);
|
|
172
|
-
this.govPage.emit({
|
|
173
|
-
component: PaginationClass.root,
|
|
174
|
-
pagination: this.pagination
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
onSelectHandler(e) {
|
|
178
|
-
e.stopPropagation();
|
|
179
|
-
const value = e.detail.value;
|
|
180
|
-
const page = parseInt(value);
|
|
181
|
-
this.resetSelectValue();
|
|
182
|
-
if (isNaN(page) === false) {
|
|
183
|
-
this.recalculatePagination(page);
|
|
184
|
-
if (this.link) {
|
|
185
|
-
window.location.href = this.prepareLinkUrl(page);
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
this.govPage.emit({
|
|
189
|
-
component: PaginationClass.root,
|
|
190
|
-
pagination: this.pagination
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Validate the WCAG attributes of the component
|
|
197
|
-
*/
|
|
198
|
-
async validateWcag() {
|
|
199
|
-
validateWcagProp(this.wcagPageLabel, "wcag-page-label", PaginationClass.root);
|
|
200
|
-
validateWcagLabel(this.wcagLabel, this.wcagLabelledBy, PaginationClass.root);
|
|
201
|
-
}
|
|
202
|
-
get host() { return getElement(this); }
|
|
203
|
-
static get watchers() { return {
|
|
204
|
-
"type": ["validateType"],
|
|
205
|
-
"size": ["validateSize"],
|
|
206
|
-
"variant": ["validateVariant"]
|
|
207
|
-
}; }
|
|
208
|
-
};
|
|
209
|
-
GovPagination.style = govPaginationCss;
|
|
210
|
-
|
|
211
|
-
export { GovPagination as gov_pagination };
|
|
212
|
-
|
|
213
|
-
//# sourceMappingURL=gov-pagination.entry.js.map
|