@gov-design-system-ce/components 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/constants-0488d137.js +22 -0
- package/dist/cjs/constants-0488d137.js.map +1 -0
- package/dist/cjs/constants-0c6897bc.js +24 -0
- package/dist/cjs/constants-0c6897bc.js.map +1 -0
- package/dist/cjs/{constants-1d5ec4c5.js → constants-24f26d54.js} +2 -2
- package/dist/cjs/constants-24f26d54.js.map +1 -0
- package/dist/cjs/constants-2b1c31b8.js +15 -0
- package/dist/cjs/constants-2b1c31b8.js.map +1 -0
- package/dist/cjs/constants-404ee283.js.map +1 -1
- package/dist/cjs/constants-477ca85a.js +27 -0
- package/dist/cjs/constants-477ca85a.js.map +1 -0
- package/dist/cjs/constants-5c8f444a.js +25 -0
- package/dist/cjs/constants-5c8f444a.js.map +1 -0
- package/dist/cjs/{constants-bd1db896.js → constants-5ca7e728.js} +2 -2
- package/dist/cjs/constants-5ca7e728.js.map +1 -0
- package/dist/cjs/constants-736bf980.js.map +1 -1
- package/dist/cjs/constants-8c9eeb15.js +20 -0
- package/dist/cjs/constants-8c9eeb15.js.map +1 -0
- package/dist/cjs/constants-a44c32bc.js +15 -0
- package/dist/cjs/constants-a44c32bc.js.map +1 -0
- package/dist/cjs/{constants-4a012eff.js → constants-a92bbccb.js} +2 -7
- package/dist/cjs/constants-a92bbccb.js.map +1 -0
- package/dist/cjs/{constants-3248a281.js → constants-b39578d9.js} +2 -2
- package/dist/cjs/constants-b39578d9.js.map +1 -0
- package/dist/cjs/{constants-aba7a597.js → constants-b3c2277b.js} +8 -8
- package/dist/cjs/constants-b3c2277b.js.map +1 -0
- package/dist/cjs/{constants-ed8f3212.js → constants-b8ec7b03.js} +11 -4
- package/dist/cjs/constants-b8ec7b03.js.map +1 -0
- package/dist/cjs/core.cjs.js +2 -2
- package/dist/cjs/{form-9ab2ace1.js → form-d9f0f50c.js} +20 -11
- package/dist/cjs/form-d9f0f50c.js.map +1 -0
- package/dist/cjs/gov-accordion-item.cjs.entry.js +16 -13
- package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +14 -11
- package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-alert.cjs.entry.js +18 -14
- package/dist/cjs/gov-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-app.cjs.entry.js +1517 -1026
- package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +26 -20
- package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-backdrop.cjs.entry.js +14 -8
- package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-badge.cjs.entry.js +12 -12
- package/dist/cjs/gov-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +81 -0
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-button.cjs.entry.js +25 -29
- package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-card.cjs.entry.js +25 -23
- package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-container.cjs.entry.js +10 -4
- package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-cookiebar.cjs.entry.js +4 -4
- package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-empty.cjs.entry.js +7 -7
- package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-error-code.cjs.entry.js +7 -7
- package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +20 -20
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +19 -18
- package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +27 -16
- package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +46 -43
- package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-group.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-input.cjs.entry.js +23 -26
- package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-label.cjs.entry.js +5 -3
- package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +25 -22
- package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +19 -18
- package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +8 -39
- package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +23 -22
- package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +22 -19
- package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-grid-item.cjs.entry.js +31 -0
- package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-grid.cjs.entry.js +10 -16
- package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-icon.cjs.entry.js +26 -16
- package/dist/cjs/gov-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-layout-aside.cjs.entry.js +26 -0
- package/dist/cjs/gov-layout-aside.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-layout-content.cjs.entry.js +26 -0
- package/dist/cjs/gov-layout-content.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-layout.cjs.entry.js +25 -0
- package/dist/cjs/gov-layout.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-loading.cjs.entry.js +31 -0
- package/dist/cjs/gov-loading.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-message.cjs.entry.js +10 -10
- package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-modal.cjs.entry.js +16 -16
- package/dist/cjs/gov-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-nav-item.cjs.entry.js +37 -0
- package/dist/cjs/gov-nav-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-nav.cjs.entry.js +42 -0
- package/dist/cjs/gov-nav.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-pagination.cjs.entry.js +56 -29
- package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-prompt.cjs.entry.js +16 -16
- package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-side-nav-item.cjs.entry.js +7 -16
- package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-side-nav.cjs.entry.js +11 -11
- package/dist/cjs/gov-side-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-spacer.cjs.entry.js +8 -5
- package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-statsbar-item.cjs.entry.js +6 -6
- package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-statsbar.cjs.entry.js +10 -8
- package/dist/cjs/gov-statsbar.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-stepper-item.cjs.entry.js +17 -15
- package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-stepper.cjs.entry.js +11 -9
- package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tabs-item.cjs.entry.js +10 -9
- package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tabs.cjs.entry.js +27 -26
- package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tile.cjs.entry.js +11 -10
- package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tiles.cjs.entry.js +32 -0
- package/dist/cjs/gov-tiles.cjs.entry.js.map +1 -0
- package/dist/cjs/gov-toast.cjs.entry.js +36 -24
- package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +8 -8
- package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-tooltip.cjs.entry.js +33 -33
- package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizzard-item.cjs.entry.js +20 -17
- package/dist/cjs/gov-wizzard-item.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-wizzard.cjs.entry.js +12 -11
- package/dist/cjs/gov-wizzard.cjs.entry.js.map +1 -1
- package/dist/cjs/{gov.log-4527e960.js → gov.log-0c9dca27.js} +2 -9
- package/dist/cjs/gov.log-0c9dca27.js.map +1 -0
- package/dist/cjs/{index-f0dd3088.js → index-356717ae.js} +73 -95
- package/dist/cjs/index-356717ae.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{props-bb89fb59.js → props-cc21d3d7.js} +3 -3
- package/dist/cjs/props-cc21d3d7.js.map +1 -0
- package/dist/cjs/sizes-79872c2a.js.map +1 -1
- package/dist/cjs/{string.utils-f9b3501b.js → string.utils-0f08c48c.js} +4 -4
- package/dist/cjs/{string.utils-f9b3501b.js.map → string.utils-0f08c48c.js.map} +1 -1
- package/dist/cjs/template-e1c4ff78.js +121 -0
- package/dist/cjs/template-e1c4ff78.js.map +1 -0
- package/dist/cjs/utils-4ae73637.js +39 -0
- package/dist/cjs/utils-4ae73637.js.map +1 -0
- package/dist/cjs/{variants-04113a72.js → variants-bacf037a.js} +6 -1
- package/dist/cjs/variants-bacf037a.js.map +1 -0
- package/dist/cjs/{win-aa54b884.js → wcag-eca97102.js} +19 -20
- package/dist/cjs/wcag-eca97102.js.map +1 -0
- package/dist/cjs/win-ac5c1806.js +26 -0
- package/dist/cjs/win-ac5c1806.js.map +1 -0
- package/dist/collection/collection-manifest.json +10 -2
- package/dist/collection/components/gov-accordion/constants.js +10 -5
- package/dist/collection/components/gov-accordion/constants.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.css +109 -61
- package/dist/collection/components/gov-accordion/gov-accordion-item.d.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion-item.js +34 -13
- package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
- package/dist/collection/components/gov-accordion/gov-accordion.css +30 -7
- package/dist/collection/components/gov-accordion/gov-accordion.js +15 -8
- package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
- package/dist/collection/components/gov-alert/constants.js +13 -6
- package/dist/collection/components/gov-alert/constants.js.map +1 -1
- package/dist/collection/components/gov-alert/gov-alert.css +48 -25
- package/dist/collection/components/gov-alert/gov-alert.js +7 -3
- package/dist/collection/components/gov-alert/gov-alert.js.map +1 -1
- package/dist/collection/components/gov-app/gov-app.css +30 -7
- package/dist/collection/components/gov-app/gov-app.js +74 -59
- package/dist/collection/components/gov-app/gov-app.js.map +1 -1
- package/dist/collection/components/gov-attachments/constants.js +5 -2
- package/dist/collection/components/gov-attachments/constants.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.css +39 -11
- package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments-item.js +10 -4
- package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
- package/dist/collection/components/gov-attachments/gov-attachments.css +34 -7
- package/dist/collection/components/gov-attachments/gov-attachments.js +3 -1
- package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -1
- package/dist/collection/components/gov-backdrop/constants.js +1 -0
- package/dist/collection/components/gov-backdrop/constants.js.map +1 -1
- package/dist/collection/components/gov-backdrop/gov-backdrop.css +35 -13
- package/dist/collection/components/gov-backdrop/gov-backdrop.js +24 -2
- package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
- package/dist/collection/components/gov-badge/constants.js +2 -2
- package/dist/collection/components/gov-badge/constants.js.map +1 -1
- package/dist/collection/components/gov-badge/gov-badge.css +309 -229
- package/dist/collection/components/gov-badge/gov-badge.js +12 -12
- package/dist/collection/components/gov-badge/gov-badge.js.map +1 -1
- package/dist/collection/components/gov-breadcrumbs/constants.js +8 -0
- package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +238 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js +2 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +1 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +240 -0
- package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -0
- package/dist/collection/components/gov-button/constants.js +11 -4
- package/dist/collection/components/gov-button/constants.js.map +1 -1
- package/dist/collection/components/gov-button/gov-button.css +273 -223
- package/dist/collection/components/gov-button/gov-button.js +68 -48
- package/dist/collection/components/gov-button/gov-button.js.map +1 -1
- package/dist/collection/components/gov-card/constants.js +11 -10
- package/dist/collection/components/gov-card/constants.js.map +1 -1
- package/dist/collection/components/gov-card/gov-card.css +42 -15
- package/dist/collection/components/gov-card/gov-card.js +22 -17
- package/dist/collection/components/gov-card/gov-card.js.map +1 -1
- package/dist/collection/components/gov-card/interfaces.js +2 -0
- package/dist/collection/components/gov-card/interfaces.js.map +1 -0
- package/dist/collection/components/gov-container/gov-container.css +31 -8
- package/dist/collection/components/gov-container/gov-container.js +17 -6
- package/dist/collection/components/gov-container/gov-container.js.map +1 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +32 -9
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
- package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -1
- package/dist/collection/components/gov-empty/constants.js +4 -4
- package/dist/collection/components/gov-empty/constants.js.map +1 -1
- package/dist/collection/components/gov-empty/gov-empty.css +32 -8
- package/dist/collection/components/gov-empty/gov-empty.js.map +1 -1
- package/dist/collection/components/gov-error-code/constants.js +4 -4
- package/dist/collection/components/gov-error-code/constants.js.map +1 -1
- package/dist/collection/components/gov-error-code/gov-error-code.css +32 -8
- package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/constants.js +2 -2
- package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +31 -8
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +26 -22
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/constants.js +1 -1
- package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +75 -46
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +26 -21
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
- package/dist/collection/components/gov-form/checkbox/interfaces.js +2 -0
- package/dist/collection/components/gov-form/checkbox/interfaces.js.map +1 -0
- package/dist/collection/components/gov-form/control/constants.js +2 -1
- package/dist/collection/components/gov-form/control/constants.js.map +1 -1
- package/dist/collection/components/gov-form/control/gov-form-control.css +57 -32
- package/dist/collection/components/gov-form/control/gov-form-control.js +59 -7
- package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.css +32 -9
- package/dist/collection/components/gov-form/file/gov-form-file.js +38 -39
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
- package/dist/collection/components/gov-form/group/gov-form-group.css +50 -8
- package/dist/collection/components/gov-form/group/gov-form-group.js +2 -2
- package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
- package/dist/collection/components/gov-form/input/constants.js +18 -3
- package/dist/collection/components/gov-form/input/constants.js.map +1 -1
- package/dist/collection/components/gov-form/input/gov-form-input.css +64 -33
- package/dist/collection/components/gov-form/input/gov-form-input.js +28 -28
- package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
- package/dist/collection/components/gov-form/label/constants.js.map +1 -1
- package/dist/collection/components/gov-form/label/gov-form-label.css +37 -12
- package/dist/collection/components/gov-form/label/gov-form-label.js +22 -2
- package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
- package/dist/collection/components/gov-form/message/constants.js +1 -1
- package/dist/collection/components/gov-form/message/constants.js.map +1 -1
- package/dist/collection/components/gov-form/message/gov-form-message.css +37 -14
- package/dist/collection/components/gov-form/message/gov-form-message.js +8 -8
- package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
- package/dist/collection/components/gov-form/multiselect/constants.js +11 -0
- package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -0
- package/dist/collection/components/gov-form/{select → multiselect}/gov-form-multi-select.css +76 -42
- package/dist/collection/components/gov-form/{select → multiselect}/gov-form-multi-select.js +32 -25
- package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -0
- package/dist/collection/components/gov-form/multiselect/interfaces.js +2 -0
- package/dist/collection/components/gov-form/multiselect/interfaces.js.map +1 -0
- package/dist/collection/components/gov-form/radio/constants.js +1 -1
- package/dist/collection/components/gov-form/radio/constants.js.map +1 -1
- package/dist/collection/components/gov-form/radio/gov-form-radio.css +74 -45
- package/dist/collection/components/gov-form/radio/gov-form-radio.js +26 -21
- package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
- package/dist/collection/components/gov-form/radio/interfaces.js +2 -0
- package/dist/collection/components/gov-form/radio/interfaces.js.map +1 -0
- package/dist/collection/components/gov-form/search/constants.js +13 -6
- package/dist/collection/components/gov-form/search/constants.js.map +1 -1
- package/dist/collection/components/gov-form/search/gov-form-search.css +35 -9
- package/dist/collection/components/gov-form/search/gov-form-search.js +2 -90
- package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
- package/dist/collection/components/gov-form/select/constants.js +2 -8
- package/dist/collection/components/gov-form/select/constants.js.map +1 -1
- package/dist/collection/components/gov-form/select/gov-form-select.css +76 -42
- package/dist/collection/components/gov-form/select/gov-form-select.js +17 -17
- package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
- package/dist/collection/components/gov-form/switch/constants.js +1 -1
- package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.css +79 -56
- package/dist/collection/components/gov-form/switch/gov-form-switch.js +28 -21
- package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
- package/dist/collection/components/gov-form/switch/interfaces.js +2 -0
- package/dist/collection/components/gov-form/switch/interfaces.js.map +1 -0
- package/dist/collection/components/gov-grid/constants.js +16 -1
- package/dist/collection/components/gov-grid/constants.js.map +1 -1
- package/dist/collection/components/gov-grid/gov-grid-item.css +450 -0
- package/dist/collection/components/gov-grid/gov-grid-item.js +119 -0
- package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -0
- package/dist/collection/components/gov-grid/gov-grid.css +46 -83
- package/dist/collection/components/gov-grid/gov-grid.js +32 -22
- package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
- package/dist/collection/components/gov-icon/constants.js +2 -2
- package/dist/collection/components/gov-icon/constants.js.map +1 -1
- package/dist/collection/components/gov-icon/gov-icon.css +30 -7
- package/dist/collection/components/gov-icon/gov-icon.js +14 -12
- package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
- package/dist/collection/components/gov-icon/list.js +1 -9
- package/dist/collection/components/gov-icon/list.js.map +1 -1
- package/dist/collection/components/gov-layout/constants.js +13 -0
- package/dist/collection/components/gov-layout/constants.js.map +1 -0
- package/dist/collection/components/gov-layout/gov-layout-aside.css +214 -0
- package/dist/collection/components/gov-layout/gov-layout-aside.js +47 -0
- package/dist/collection/components/gov-layout/gov-layout-aside.js.map +1 -0
- package/dist/collection/components/gov-layout/gov-layout-content.css +227 -0
- package/dist/collection/components/gov-layout/gov-layout-content.js +47 -0
- package/dist/collection/components/gov-layout/gov-layout-content.js.map +1 -0
- package/dist/collection/components/{gov-form/gov-form-dropdown.css → gov-layout/gov-layout.css} +43 -26
- package/dist/collection/components/gov-layout/gov-layout.js +24 -0
- package/dist/collection/components/gov-layout/gov-layout.js.map +1 -0
- package/dist/collection/components/gov-loading/constants.js +6 -0
- package/dist/collection/components/gov-loading/constants.js.map +1 -0
- package/dist/collection/components/gov-loading/gov-loading.css +229 -0
- package/dist/collection/components/gov-loading/gov-loading.js +47 -0
- package/dist/collection/components/gov-loading/gov-loading.js.map +1 -0
- package/dist/collection/components/gov-message/constants.js +12 -5
- package/dist/collection/components/gov-message/constants.js.map +1 -1
- package/dist/collection/components/gov-message/gov-message.css +42 -16
- package/dist/collection/components/gov-message/gov-message.js.map +1 -1
- package/dist/collection/components/gov-modal/gov-modal.css +31 -8
- package/dist/collection/components/gov-modal/gov-modal.js +16 -17
- package/dist/collection/components/gov-modal/gov-modal.js.map +1 -1
- package/dist/collection/components/gov-nav/constants.js +9 -0
- package/dist/collection/components/gov-nav/constants.js.map +1 -0
- package/dist/collection/components/gov-nav/gov-nav-item.css +257 -0
- package/dist/collection/components/gov-nav/gov-nav-item.js +68 -0
- package/dist/collection/components/gov-nav/gov-nav-item.js.map +1 -0
- package/dist/collection/components/gov-nav/gov-nav.css +223 -0
- package/dist/collection/components/gov-nav/gov-nav.js +97 -0
- package/dist/collection/components/gov-nav/gov-nav.js.map +1 -0
- package/dist/collection/components/gov-pagination/constants.js +13 -6
- package/dist/collection/components/gov-pagination/constants.js.map +1 -1
- package/dist/collection/components/gov-pagination/gov-pagination.css +68 -29
- package/dist/collection/components/gov-pagination/gov-pagination.js +126 -12
- package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
- package/dist/collection/components/gov-pagination/pagination.js +6 -6
- package/dist/collection/components/gov-pagination/pagination.js.map +1 -1
- package/dist/collection/components/gov-promp/constants.js +1 -0
- package/dist/collection/components/gov-promp/constants.js.map +1 -1
- package/dist/collection/components/gov-promp/gov-prompt.css +31 -8
- package/dist/collection/components/gov-promp/gov-prompt.js +16 -17
- package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -1
- package/dist/collection/components/gov-side-nav/constants.js +9 -8
- package/dist/collection/components/gov-side-nav/constants.js.map +1 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +43 -18
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js.map +1 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +7 -16
- package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +1 -1
- package/dist/collection/components/gov-side-nav/gov-side-nav.css +30 -7
- package/dist/collection/components/gov-side-nav/gov-side-nav.js +14 -10
- package/dist/collection/components/gov-side-nav/gov-side-nav.js.map +1 -1
- package/dist/collection/components/gov-spacer/constants.js.map +1 -1
- package/dist/collection/components/gov-spacer/gov-spacer.css +31 -7
- package/dist/collection/components/gov-spacer/gov-spacer.js +7 -4
- package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
- package/dist/collection/components/gov-statsbar/constants.js.map +1 -1
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +31 -8
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +2 -2
- package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +1 -1
- package/dist/collection/components/gov-statsbar/gov-statsbar.css +36 -11
- package/dist/collection/components/gov-statsbar/gov-statsbar.js +11 -9
- package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +1 -1
- package/dist/collection/components/gov-stepper/constants.js +20 -9
- package/dist/collection/components/gov-stepper/constants.js.map +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper-item.css +134 -35
- package/dist/collection/components/gov-stepper/gov-stepper-item.d.js.map +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper-item.js +56 -13
- package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -1
- package/dist/collection/components/gov-stepper/gov-stepper.css +30 -7
- package/dist/collection/components/gov-stepper/gov-stepper.js +18 -11
- package/dist/collection/components/gov-stepper/gov-stepper.js.map +1 -1
- package/dist/collection/components/gov-tabs/constants.js +14 -7
- package/dist/collection/components/gov-tabs/constants.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs-item.css +30 -7
- package/dist/collection/components/gov-tabs/gov-tabs-item.js +8 -7
- package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
- package/dist/collection/components/gov-tabs/gov-tabs.css +32 -8
- package/dist/collection/components/gov-tabs/gov-tabs.js +38 -30
- package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
- package/dist/collection/components/gov-tile/constants.js +6 -5
- package/dist/collection/components/gov-tile/constants.js.map +1 -1
- package/dist/collection/components/gov-tile/gov-tile.css +32 -9
- package/dist/collection/components/gov-tile/gov-tile.js +2 -2
- package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
- package/dist/collection/components/gov-tiles/constants.js +4 -0
- package/dist/collection/components/gov-tiles/constants.js.map +1 -0
- package/dist/collection/components/gov-tiles/gov-tiles.css +285 -0
- package/dist/collection/components/gov-tiles/gov-tiles.js +51 -0
- package/dist/collection/components/gov-tiles/gov-tiles.js.map +1 -0
- package/dist/collection/components/gov-toast/constants.js +15 -2
- package/dist/collection/components/gov-toast/constants.js.map +1 -1
- package/dist/collection/components/gov-toast/gov-toast.css +118 -26
- package/dist/collection/components/gov-toast/gov-toast.js +71 -28
- package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
- package/dist/collection/components/gov-tooltip/constants.js +2 -2
- package/dist/collection/components/gov-tooltip/constants.js.map +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +36 -13
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +6 -6
- package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.css +33 -10
- package/dist/collection/components/gov-tooltip/gov-tooltip.js +32 -32
- package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
- package/dist/collection/components/gov-wizzard/constants.js +11 -8
- package/dist/collection/components/gov-wizzard/constants.js.map +1 -1
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.css +140 -66
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js.map +1 -1
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.js +59 -15
- package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +1 -1
- package/dist/collection/components/gov-wizzard/gov-wizzard.css +33 -7
- package/dist/collection/components/gov-wizzard/gov-wizzard.js +13 -8
- package/dist/collection/components/gov-wizzard/gov-wizzard.js.map +1 -1
- package/dist/collection/core/constants/sizes.js.map +1 -1
- package/dist/collection/core/constants/tags.js +14 -0
- package/dist/collection/core/constants/tags.js.map +1 -0
- package/dist/collection/core/constants/variants.js +5 -0
- package/dist/collection/core/constants/variants.js.map +1 -1
- package/dist/collection/helpers/Dom/form.js +12 -11
- package/dist/collection/helpers/Dom/form.js.map +1 -1
- package/dist/collection/helpers/Dom/template.js +35 -32
- package/dist/collection/helpers/Dom/template.js.map +1 -1
- package/dist/collection/helpers/Dom/win.js +16 -3
- package/dist/collection/helpers/Dom/win.js.map +1 -1
- package/dist/collection/helpers/Fragment.js +2 -0
- package/dist/collection/helpers/Fragment.js.map +1 -0
- package/dist/collection/helpers/Log/gov.log.js +1 -8
- package/dist/collection/helpers/Log/gov.log.js.map +1 -1
- package/dist/collection/helpers/StorybookDocsTemplate.js +9 -0
- package/dist/collection/helpers/StorybookDocsTemplate.js.map +1 -0
- package/dist/collection/helpers/Validate/props.js +2 -2
- package/dist/collection/helpers/Validate/props.js.map +1 -1
- package/dist/collection/helpers/Validate/wcag.js +18 -13
- package/dist/collection/helpers/Validate/wcag.js.map +1 -1
- package/dist/collection/pages/Accordion.js +17 -17
- package/dist/collection/pages/Accordion.js.map +1 -1
- package/dist/collection/pages/Alert.js +3 -3
- package/dist/collection/pages/Alert.js.map +1 -1
- package/dist/collection/pages/Badge.js +28 -13
- package/dist/collection/pages/Badge.js.map +1 -1
- package/dist/collection/pages/Breadcrumbs.js +16 -0
- package/dist/collection/pages/Breadcrumbs.js.map +1 -0
- package/dist/collection/pages/Button.js +48 -49
- package/dist/collection/pages/Button.js.map +1 -1
- package/dist/collection/pages/Card.js +6 -6
- package/dist/collection/pages/Card.js.map +1 -1
- package/dist/collection/pages/Container.js +15 -0
- package/dist/collection/pages/Container.js.map +1 -0
- package/dist/collection/pages/Empty.js +2 -2
- package/dist/collection/pages/Empty.js.map +1 -1
- package/dist/collection/pages/Error.js +2 -2
- package/dist/collection/pages/Error.js.map +1 -1
- package/dist/collection/pages/Forms.js +183 -81
- package/dist/collection/pages/Forms.js.map +1 -1
- package/dist/collection/pages/FormsRestructure.js +2 -2
- package/dist/collection/pages/FormsRestructure.js.map +1 -1
- package/dist/collection/pages/Grid.js +92 -0
- package/dist/collection/pages/Grid.js.map +1 -0
- package/dist/collection/pages/Home.js +2 -2
- package/dist/collection/pages/Home.js.map +1 -1
- package/dist/collection/pages/Layout.js +67 -0
- package/dist/collection/pages/Layout.js.map +1 -0
- package/dist/collection/pages/Loading.js +43 -0
- package/dist/collection/pages/Loading.js.map +1 -0
- package/dist/collection/pages/Message.js +4 -4
- package/dist/collection/pages/Message.js.map +1 -1
- package/dist/collection/pages/Modal.js +3 -3
- package/dist/collection/pages/Modal.js.map +1 -1
- package/dist/collection/pages/Nav.js +30 -0
- package/dist/collection/pages/Nav.js.map +1 -0
- package/dist/collection/pages/Pagination.js +10 -6
- package/dist/collection/pages/Pagination.js.map +1 -1
- package/dist/collection/pages/Prompt.js +3 -3
- package/dist/collection/pages/Prompt.js.map +1 -1
- package/dist/collection/pages/SideNav.js +3 -3
- package/dist/collection/pages/SideNav.js.map +1 -1
- package/dist/collection/pages/Stepper.js +36 -6
- package/dist/collection/pages/Stepper.js.map +1 -1
- package/dist/collection/pages/Tabs.js +2 -2
- package/dist/collection/pages/Tabs.js.map +1 -1
- package/dist/collection/pages/{Tile.js → Tiles.js} +8 -8
- package/dist/collection/pages/Tiles.js.map +1 -0
- package/dist/collection/pages/ToastMessage.js +2 -2
- package/dist/collection/pages/ToastMessage.js.map +1 -1
- package/dist/collection/pages/ToastMessageCountdown.js +47 -0
- package/dist/collection/pages/ToastMessageCountdown.js.map +1 -0
- package/dist/collection/pages/Typography.js +3 -3
- package/dist/collection/pages/Typography.js.map +1 -1
- package/dist/collection/pages/Wizzard.js +31 -6
- package/dist/collection/pages/Wizzard.js.map +1 -1
- package/dist/collection/types/interfaces.js +2 -0
- package/dist/collection/types/interfaces.js.map +1 -0
- package/dist/collection/utils/bool.utils.js +4 -4
- package/dist/collection/utils/bool.utils.js.map +1 -1
- package/dist/collection/utils/ds.utils.js +0 -1
- package/dist/collection/utils/ds.utils.js.map +1 -1
- package/dist/collection/utils/file.utils.js +10 -7
- package/dist/collection/utils/file.utils.js.map +1 -1
- package/dist/collection/utils/icon.utils.js +10 -2
- package/dist/collection/utils/icon.utils.js.map +1 -1
- package/dist/collection/utils/number.utils.js.map +1 -1
- package/dist/collection/utils/string.utils.js +3 -3
- package/dist/collection/utils/string.utils.js.map +1 -1
- package/dist/collection/utils/utils.js +21 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/constants.js +10 -5
- package/dist/components/constants.js.map +1 -1
- package/dist/components/constants10.js +14 -14
- package/dist/components/constants10.js.map +1 -1
- package/dist/components/constants11.js +11 -18
- package/dist/components/constants11.js.map +1 -1
- package/dist/components/constants12.js +14 -10
- package/dist/components/constants12.js.map +1 -1
- package/dist/components/constants13.js +19 -0
- package/dist/components/constants13.js.map +1 -0
- package/dist/components/constants14.js +23 -0
- package/dist/components/constants14.js.map +1 -0
- package/dist/components/constants15.js +21 -0
- package/dist/components/constants15.js.map +1 -0
- package/dist/components/constants2.js +5 -2
- package/dist/components/constants2.js.map +1 -1
- package/dist/components/constants3.js +9 -2
- package/dist/components/constants3.js.map +1 -1
- package/dist/components/constants4.js.map +1 -1
- package/dist/components/constants5.js.map +1 -1
- package/dist/components/constants6.js +8 -13
- package/dist/components/constants6.js.map +1 -1
- package/dist/components/constants7.js +11 -13
- package/dist/components/constants7.js.map +1 -1
- package/dist/components/constants8.js +13 -12
- package/dist/components/constants8.js.map +1 -1
- package/dist/components/constants9.js +7 -13
- package/dist/components/constants9.js.map +1 -1
- package/dist/components/form.js +11 -8
- package/dist/components/form.js.map +1 -1
- package/dist/components/gov-accordion-item.js +11 -7
- package/dist/components/gov-accordion-item.js.map +1 -1
- package/dist/components/gov-accordion.js +6 -3
- package/dist/components/gov-accordion.js.map +1 -1
- package/dist/components/gov-alert.js +13 -9
- package/dist/components/gov-alert.js.map +1 -1
- package/dist/components/gov-app.js +1517 -1026
- package/dist/components/gov-app.js.map +1 -1
- package/dist/components/gov-attachments-item2.js +6 -3
- package/dist/components/gov-attachments-item2.js.map +1 -1
- package/dist/components/gov-attachments2.js +6 -3
- package/dist/components/gov-attachments2.js.map +1 -1
- package/dist/components/gov-backdrop2.js +11 -4
- package/dist/components/gov-backdrop2.js.map +1 -1
- package/dist/components/gov-badge2.js +6 -6
- package/dist/components/gov-badge2.js.map +1 -1
- package/dist/components/{gov-form-dropdown.d.ts → gov-breadcrumbs.d.ts} +4 -4
- package/dist/components/gov-breadcrumbs.js +114 -0
- package/dist/components/gov-breadcrumbs.js.map +1 -0
- package/dist/components/gov-button2.js +17 -20
- package/dist/components/gov-button2.js.map +1 -1
- package/dist/components/gov-card.js +19 -17
- package/dist/components/gov-card.js.map +1 -1
- package/dist/components/gov-container.js +9 -3
- package/dist/components/gov-container.js.map +1 -1
- package/dist/components/gov-cookiebar.js +2 -2
- package/dist/components/gov-cookiebar.js.map +1 -1
- package/dist/components/gov-empty.js +5 -5
- package/dist/components/gov-empty.js.map +1 -1
- package/dist/components/gov-error-code.js +5 -5
- package/dist/components/gov-error-code.js.map +1 -1
- package/dist/components/gov-form-autocomplete2.js +15 -15
- package/dist/components/gov-form-autocomplete2.js.map +1 -1
- package/dist/components/gov-form-checkbox.js +8 -7
- package/dist/components/gov-form-checkbox.js.map +1 -1
- package/dist/components/gov-form-control.js +21 -8
- package/dist/components/gov-form-control.js.map +1 -1
- package/dist/components/gov-form-file.js +36 -33
- package/dist/components/gov-form-file.js.map +1 -1
- package/dist/components/gov-form-group.js +1 -1
- package/dist/components/gov-form-group.js.map +1 -1
- package/dist/components/gov-form-input2.js +13 -16
- package/dist/components/gov-form-input2.js.map +1 -1
- package/dist/components/gov-form-label.js +6 -3
- package/dist/components/gov-form-label.js.map +1 -1
- package/dist/components/gov-form-message2.js +3 -3
- package/dist/components/gov-form-message2.js.map +1 -1
- package/dist/components/gov-form-multi-select.js +19 -16
- package/dist/components/gov-form-multi-select.js.map +1 -1
- package/dist/components/gov-form-radio.js +9 -8
- package/dist/components/gov-form-radio.js.map +1 -1
- package/dist/components/gov-form-search.js +9 -54
- package/dist/components/gov-form-search.js.map +1 -1
- package/dist/components/gov-form-select2.js +11 -10
- package/dist/components/gov-form-select2.js.map +1 -1
- package/dist/components/gov-form-switch.js +12 -9
- package/dist/components/gov-form-switch.js.map +1 -1
- package/dist/components/gov-grid-item.d.ts +11 -0
- package/dist/components/gov-grid-item.js +50 -0
- package/dist/components/gov-grid-item.js.map +1 -0
- package/dist/components/gov-grid.js +10 -16
- package/dist/components/gov-grid.js.map +1 -1
- package/dist/components/gov-icon2.js +24 -15
- package/dist/components/gov-icon2.js.map +1 -1
- package/dist/components/gov-layout-aside.d.ts +11 -0
- package/dist/components/gov-layout-aside.js +42 -0
- package/dist/components/gov-layout-aside.js.map +1 -0
- package/dist/components/gov-layout-content.d.ts +11 -0
- package/dist/components/gov-layout-content.js +42 -0
- package/dist/components/gov-layout-content.js.map +1 -0
- package/dist/components/gov-layout.d.ts +11 -0
- package/dist/components/gov-layout.js +39 -0
- package/dist/components/gov-layout.js.map +1 -0
- package/dist/components/gov-loading.d.ts +11 -0
- package/dist/components/gov-loading.js +59 -0
- package/dist/components/gov-loading.js.map +1 -0
- package/dist/components/gov-message.js +5 -5
- package/dist/components/gov-message.js.map +1 -1
- package/dist/components/gov-modal.js +10 -10
- package/dist/components/gov-modal.js.map +1 -1
- package/dist/components/gov-nav-item.d.ts +11 -0
- package/dist/components/gov-nav-item.js +54 -0
- package/dist/components/gov-nav-item.js.map +1 -0
- package/dist/components/gov-nav.d.ts +11 -0
- package/dist/components/gov-nav.js +57 -0
- package/dist/components/gov-nav.js.map +1 -0
- package/dist/components/gov-pagination.js +61 -24
- package/dist/components/gov-pagination.js.map +1 -1
- package/dist/components/gov-prompt.js +24 -12
- package/dist/components/gov-prompt.js.map +1 -1
- package/dist/components/gov-side-nav-item.js +4 -13
- package/dist/components/gov-side-nav-item.js.map +1 -1
- package/dist/components/gov-side-nav.js +5 -5
- package/dist/components/gov-side-nav.js.map +1 -1
- package/dist/components/gov-spacer.js +5 -2
- package/dist/components/gov-spacer.js.map +1 -1
- package/dist/components/gov-statsbar-item.js +3 -3
- package/dist/components/gov-statsbar-item.js.map +1 -1
- package/dist/components/gov-statsbar.js +7 -5
- package/dist/components/gov-statsbar.js.map +1 -1
- package/dist/components/gov-stepper-item.js +14 -9
- package/dist/components/gov-stepper-item.js.map +1 -1
- package/dist/components/gov-stepper.js +7 -5
- package/dist/components/gov-stepper.js.map +1 -1
- package/dist/components/gov-tabs-item.js +7 -6
- package/dist/components/gov-tabs-item.js.map +1 -1
- package/dist/components/gov-tabs.js +21 -20
- package/dist/components/gov-tabs.js.map +1 -1
- package/dist/components/gov-tile.js +8 -7
- package/dist/components/gov-tile.js.map +1 -1
- package/dist/components/gov-tiles.d.ts +11 -0
- package/dist/components/gov-tiles.js +48 -0
- package/dist/components/gov-tiles.js.map +1 -0
- package/dist/components/gov-toast.js +32 -18
- package/dist/components/gov-toast.js.map +1 -1
- package/dist/components/gov-tooltip-content.js +5 -5
- package/dist/components/gov-tooltip-content.js.map +1 -1
- package/dist/components/gov-tooltip.js +27 -27
- package/dist/components/gov-tooltip.js.map +1 -1
- package/dist/components/gov-wizzard-item.js +16 -10
- package/dist/components/gov-wizzard-item.js.map +1 -1
- package/dist/components/gov-wizzard.js +4 -3
- package/dist/components/gov-wizzard.js.map +1 -1
- package/dist/components/gov.log.js +1 -8
- package/dist/components/gov.log.js.map +1 -1
- package/dist/components/index.d.ts +10 -2
- package/dist/components/index.js +9 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/props.js +1 -1
- package/dist/components/props.js.map +1 -1
- package/dist/components/sizes.js.map +1 -1
- package/dist/components/string.utils.js +3 -3
- package/dist/components/string.utils.js.map +1 -1
- package/dist/components/template.js +35 -32
- package/dist/components/template.js.map +1 -1
- package/dist/components/variants.js +5 -0
- package/dist/components/variants.js.map +1 -1
- package/dist/components/{utils.js → wcag.js} +18 -29
- package/dist/components/wcag.js.map +1 -0
- package/dist/components/win.js +51 -0
- package/dist/components/win.js.map +1 -0
- package/dist/core/core.css +1 -2
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-08524615.entry.js +2 -0
- package/dist/core/p-08524615.entry.js.map +1 -0
- package/dist/core/p-097332b9.entry.js +2 -0
- package/dist/core/p-097332b9.entry.js.map +1 -0
- package/dist/core/p-09b38102.entry.js +2 -0
- package/dist/core/p-09b38102.entry.js.map +1 -0
- package/dist/core/p-1525ef03.entry.js +2 -0
- package/dist/core/p-1525ef03.entry.js.map +1 -0
- package/dist/core/p-1924ac2a.entry.js +2 -0
- package/dist/core/p-1924ac2a.entry.js.map +1 -0
- package/dist/core/p-1ffe4cac.entry.js +2 -0
- package/dist/core/p-1ffe4cac.entry.js.map +1 -0
- package/dist/core/p-22c3946b.entry.js +2 -0
- package/dist/core/p-22c3946b.entry.js.map +1 -0
- package/dist/core/{p-a24dc455.js → p-24636c53.js} +1 -1
- package/dist/core/{p-a24dc455.js.map → p-24636c53.js.map} +1 -1
- package/dist/core/p-24cde59e.entry.js +2 -0
- package/dist/core/p-24cde59e.entry.js.map +1 -0
- package/dist/core/p-27977727.js.map +1 -1
- package/dist/core/p-28f08f8b.entry.js +2 -0
- package/dist/core/p-28f08f8b.entry.js.map +1 -0
- package/dist/core/p-2b19bea6.entry.js +2 -0
- package/dist/core/p-2b19bea6.entry.js.map +1 -0
- package/dist/core/p-2b4acb01.js +2 -0
- package/dist/core/p-2b4acb01.js.map +1 -0
- package/dist/core/p-2c25aac5.entry.js +2 -0
- package/dist/core/p-2c25aac5.entry.js.map +1 -0
- package/dist/core/p-2c9031ef.entry.js +2 -0
- package/dist/core/p-2c9031ef.entry.js.map +1 -0
- package/dist/core/p-3426a731.entry.js +2 -0
- package/dist/core/p-3426a731.entry.js.map +1 -0
- package/dist/core/p-36be8f6e.js +2 -0
- package/dist/core/p-36be8f6e.js.map +1 -0
- package/dist/core/p-3f37ddb6.js +2 -0
- package/dist/core/p-3f37ddb6.js.map +1 -0
- package/dist/core/p-44f22320.entry.js +2 -0
- package/dist/core/p-44f22320.entry.js.map +1 -0
- package/dist/core/p-468873ec.entry.js +2 -0
- package/dist/core/p-468873ec.entry.js.map +1 -0
- package/dist/core/p-48a7c794.entry.js +2 -0
- package/dist/core/p-48a7c794.entry.js.map +1 -0
- package/dist/core/p-49853c5a.entry.js +2 -0
- package/dist/core/p-49853c5a.entry.js.map +1 -0
- package/dist/core/p-4e21ca0f.entry.js +2 -0
- package/dist/core/p-4e21ca0f.entry.js.map +1 -0
- package/dist/core/p-55500e5a.js.map +1 -1
- package/dist/core/{p-b4a749e8.js → p-561fa17b.js} +1 -1
- package/dist/core/p-561fa17b.js.map +1 -0
- package/dist/core/p-58691740.js +2 -0
- package/dist/core/p-58691740.js.map +1 -0
- package/dist/core/p-59581b1b.entry.js +2 -0
- package/dist/core/p-59581b1b.entry.js.map +1 -0
- package/dist/core/p-64445e87.js +2 -0
- package/dist/core/p-64445e87.js.map +1 -0
- package/dist/core/p-64d3cf79.entry.js +2 -0
- package/dist/core/p-64d3cf79.entry.js.map +1 -0
- package/dist/core/p-682c7cc6.js +3 -0
- package/dist/core/p-682c7cc6.js.map +1 -0
- package/dist/core/p-68d4837b.entry.js +2 -0
- package/dist/core/p-68d4837b.entry.js.map +1 -0
- package/dist/core/{p-e29a195b.js → p-6ce1f525.js} +2 -2
- package/dist/core/p-6ce1f525.js.map +1 -0
- package/dist/core/p-6e1b9f39.entry.js +2 -0
- package/dist/core/p-6e1b9f39.entry.js.map +1 -0
- package/dist/core/p-708963e6.js +2 -0
- package/dist/core/p-708963e6.js.map +1 -0
- package/dist/core/p-71134d97.js +2 -0
- package/dist/core/p-71134d97.js.map +1 -0
- package/dist/core/p-733bd593.entry.js +2 -0
- package/dist/core/p-733bd593.entry.js.map +1 -0
- package/dist/core/p-78a4be4b.entry.js +2 -0
- package/dist/core/p-78a4be4b.entry.js.map +1 -0
- package/dist/core/p-7be3abb5.entry.js +2 -0
- package/dist/core/p-7be3abb5.entry.js.map +1 -0
- package/dist/core/p-7ea6be98.entry.js +2 -0
- package/dist/core/p-7ea6be98.entry.js.map +1 -0
- package/dist/core/p-803629e9.entry.js +2 -0
- package/dist/core/p-803629e9.entry.js.map +1 -0
- package/dist/core/p-808cd4b7.entry.js +2 -0
- package/dist/core/p-808cd4b7.entry.js.map +1 -0
- package/dist/core/p-8e8340b0.entry.js +2 -0
- package/dist/core/p-8e8340b0.entry.js.map +1 -0
- package/dist/core/p-8ebc3217.js +2 -0
- package/dist/core/p-8ebc3217.js.map +1 -0
- package/dist/core/p-8eece26f.entry.js +2 -0
- package/dist/core/p-8eece26f.entry.js.map +1 -0
- package/dist/core/p-90f818c0.entry.js +2 -0
- package/dist/core/p-90f818c0.entry.js.map +1 -0
- package/dist/core/p-951d9c21.js +2 -0
- package/dist/core/p-951d9c21.js.map +1 -0
- package/dist/core/p-9680b966.entry.js +2 -0
- package/dist/core/p-9680b966.entry.js.map +1 -0
- package/dist/core/p-9711e4e5.entry.js +2 -0
- package/dist/core/p-9711e4e5.entry.js.map +1 -0
- package/dist/core/p-99cc3dba.js +2 -0
- package/dist/core/p-99cc3dba.js.map +1 -0
- package/dist/core/p-9baa1a0e.entry.js +2 -0
- package/dist/core/p-9baa1a0e.entry.js.map +1 -0
- package/dist/core/p-9dd1bbdd.entry.js +2 -0
- package/dist/core/p-9dd1bbdd.entry.js.map +1 -0
- package/dist/core/p-a2d0ff57.entry.js +2 -0
- package/dist/core/p-a2d0ff57.entry.js.map +1 -0
- package/dist/core/p-a2f9daba.js +2 -0
- package/dist/core/{p-15591728.js.map → p-a2f9daba.js.map} +1 -1
- package/dist/core/p-a32723d4.entry.js +2 -0
- package/dist/core/p-a32723d4.entry.js.map +1 -0
- package/dist/core/p-a5b02584.js +2 -0
- package/dist/core/p-a5b02584.js.map +1 -0
- package/dist/core/p-a6c8d474.entry.js +2 -0
- package/dist/core/p-a6c8d474.entry.js.map +1 -0
- package/dist/core/p-a6d14a47.js +2 -0
- package/dist/core/p-a6d14a47.js.map +1 -0
- package/dist/core/p-b4581984.js +2 -0
- package/dist/core/p-b4581984.js.map +1 -0
- package/dist/core/p-ba500f74.entry.js +2 -0
- package/dist/core/p-ba500f74.entry.js.map +1 -0
- package/dist/core/p-bbd48feb.entry.js +2 -0
- package/dist/core/p-bbd48feb.entry.js.map +1 -0
- package/dist/core/p-bfcce1b3.entry.js +2 -0
- package/dist/core/p-bfcce1b3.entry.js.map +1 -0
- package/dist/core/p-c830bf4f.entry.js +2 -0
- package/dist/core/p-c830bf4f.entry.js.map +1 -0
- package/dist/core/p-c9e7a558.entry.js +2 -0
- package/dist/core/p-c9e7a558.entry.js.map +1 -0
- package/dist/core/p-c9f0d988.entry.js +2 -0
- package/dist/core/p-c9f0d988.entry.js.map +1 -0
- package/dist/core/p-cbf4ad73.entry.js +2 -0
- package/dist/core/p-cbf4ad73.entry.js.map +1 -0
- package/dist/core/p-cd4f034f.js +2 -0
- package/dist/core/p-cd4f034f.js.map +1 -0
- package/dist/core/p-ce78b591.entry.js +2 -0
- package/dist/core/p-ce78b591.entry.js.map +1 -0
- package/dist/core/p-d4aaff74.js.map +1 -1
- package/dist/core/{p-9db35e06.js → p-d65f71e1.js} +2 -2
- package/dist/core/p-d65f71e1.js.map +1 -0
- package/dist/core/p-d9ffb84e.entry.js +2 -0
- package/dist/core/p-d9ffb84e.entry.js.map +1 -0
- package/dist/core/p-dc87f017.entry.js +2 -0
- package/dist/core/p-dc87f017.entry.js.map +1 -0
- package/dist/core/p-e52a042f.entry.js +2 -0
- package/dist/core/p-e52a042f.entry.js.map +1 -0
- package/dist/core/p-eadaa1d1.entry.js +2 -0
- package/dist/core/p-eadaa1d1.entry.js.map +1 -0
- package/dist/core/p-ef3e7866.js +2 -0
- package/dist/core/p-ef3e7866.js.map +1 -0
- package/dist/core/p-f1226ef1.entry.js +2 -0
- package/dist/core/p-f1226ef1.entry.js.map +1 -0
- package/dist/core/p-f2dc8ce3.entry.js +2 -0
- package/dist/core/p-f2dc8ce3.entry.js.map +1 -0
- package/dist/core/p-f4030908.entry.js +2 -0
- package/dist/core/p-f4030908.entry.js.map +1 -0
- package/dist/core/p-f58b9eec.js +2 -0
- package/dist/core/p-f58b9eec.js.map +1 -0
- package/dist/core/{p-089c220d.js → p-f82535b7.js} +2 -2
- package/dist/core/p-f82535b7.js.map +1 -0
- package/dist/core/p-fc3c7246.entry.js +2 -0
- package/dist/core/p-fc3c7246.entry.js.map +1 -0
- package/dist/core/p-fd62c386.entry.js +2 -0
- package/dist/core/p-fd62c386.entry.js.map +1 -0
- package/dist/custom-elements/index.d.ts +54 -6
- package/dist/custom-elements/index.js +1 -1
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{constants-050bd135.js → constants-129909d1.js} +2 -2
- package/dist/esm/constants-129909d1.js.map +1 -0
- package/dist/esm/constants-1f1d1d3e.js.map +1 -1
- package/dist/esm/constants-2cd89f93.js +12 -0
- package/dist/esm/constants-2cd89f93.js.map +1 -0
- package/dist/esm/{constants-0ba692b3.js → constants-3b157470.js} +2 -2
- package/dist/esm/constants-3b157470.js.map +1 -0
- package/dist/esm/{constants-7a8adcd1.js → constants-3de0521d.js} +11 -4
- package/dist/esm/constants-3de0521d.js.map +1 -0
- package/dist/esm/{constants-9aaa1aa0.js → constants-4331e6d9.js} +2 -2
- package/dist/esm/constants-4331e6d9.js.map +1 -0
- package/dist/esm/{constants-49dc75e2.js → constants-4cdfde31.js} +3 -7
- package/dist/esm/constants-4cdfde31.js.map +1 -0
- package/dist/esm/constants-4d4cc5e1.js +23 -0
- package/dist/esm/constants-4d4cc5e1.js.map +1 -0
- package/dist/esm/constants-5c1382a4.js.map +1 -1
- package/dist/esm/constants-8f0bcad2.js +21 -0
- package/dist/esm/constants-8f0bcad2.js.map +1 -0
- package/dist/esm/constants-b49812cd.js +16 -0
- package/dist/esm/constants-b49812cd.js.map +1 -0
- package/dist/esm/constants-c8f57790.js +19 -0
- package/dist/esm/constants-c8f57790.js.map +1 -0
- package/dist/esm/constants-d71c09e0.js +12 -0
- package/dist/esm/constants-d71c09e0.js.map +1 -0
- package/dist/esm/constants-ec176a77.js +22 -0
- package/dist/esm/constants-ec176a77.js.map +1 -0
- package/dist/esm/constants-f5c21493.js +19 -0
- package/dist/esm/constants-f5c21493.js.map +1 -0
- package/dist/esm/core.js +2 -2
- package/dist/esm/{form-16cd7ae0.js → form-121eab06.js} +17 -10
- package/dist/esm/form-121eab06.js.map +1 -0
- package/dist/esm/gov-accordion-item.entry.js +16 -13
- package/dist/esm/gov-accordion-item.entry.js.map +1 -1
- package/dist/esm/gov-accordion.entry.js +13 -10
- package/dist/esm/gov-accordion.entry.js.map +1 -1
- package/dist/esm/gov-alert.entry.js +18 -14
- package/dist/esm/gov-alert.entry.js.map +1 -1
- package/dist/esm/gov-app.entry.js +1517 -1026
- package/dist/esm/gov-app.entry.js.map +1 -1
- package/dist/esm/gov-attachments_3.entry.js +24 -18
- package/dist/esm/gov-attachments_3.entry.js.map +1 -1
- package/dist/esm/gov-backdrop.entry.js +13 -7
- package/dist/esm/gov-backdrop.entry.js.map +1 -1
- package/dist/esm/gov-badge.entry.js +12 -12
- package/dist/esm/gov-badge.entry.js.map +1 -1
- package/dist/esm/gov-breadcrumbs.entry.js +77 -0
- package/dist/esm/gov-breadcrumbs.entry.js.map +1 -0
- package/dist/esm/gov-button.entry.js +24 -28
- package/dist/esm/gov-button.entry.js.map +1 -1
- package/dist/esm/gov-card.entry.js +24 -22
- package/dist/esm/gov-card.entry.js.map +1 -1
- package/dist/esm/gov-container.entry.js +10 -4
- package/dist/esm/gov-container.entry.js.map +1 -1
- package/dist/esm/gov-cookiebar.entry.js +4 -4
- package/dist/esm/gov-cookiebar.entry.js.map +1 -1
- package/dist/esm/gov-empty.entry.js +7 -7
- package/dist/esm/gov-empty.entry.js.map +1 -1
- package/dist/esm/gov-error-code.entry.js +7 -7
- package/dist/esm/gov-error-code.entry.js.map +1 -1
- package/dist/esm/gov-form-autocomplete.entry.js +20 -20
- package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
- package/dist/esm/gov-form-checkbox.entry.js +18 -17
- package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
- package/dist/esm/gov-form-control.entry.js +27 -16
- package/dist/esm/gov-form-control.entry.js.map +1 -1
- package/dist/esm/gov-form-file.entry.js +45 -42
- package/dist/esm/gov-form-file.entry.js.map +1 -1
- package/dist/esm/gov-form-group.entry.js +2 -2
- package/dist/esm/gov-form-group.entry.js.map +1 -1
- package/dist/esm/gov-form-input.entry.js +22 -25
- package/dist/esm/gov-form-input.entry.js.map +1 -1
- package/dist/esm/gov-form-label.entry.js +5 -3
- package/dist/esm/gov-form-label.entry.js.map +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +25 -22
- package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
- package/dist/esm/gov-form-radio.entry.js +18 -17
- package/dist/esm/gov-form-radio.entry.js.map +1 -1
- package/dist/esm/gov-form-search.entry.js +8 -39
- package/dist/esm/gov-form-search.entry.js.map +1 -1
- package/dist/esm/gov-form-select.entry.js +20 -19
- package/dist/esm/gov-form-select.entry.js.map +1 -1
- package/dist/esm/gov-form-switch.entry.js +21 -18
- package/dist/esm/gov-form-switch.entry.js.map +1 -1
- package/dist/esm/gov-grid-item.entry.js +27 -0
- package/dist/esm/gov-grid-item.entry.js.map +1 -0
- package/dist/esm/gov-grid.entry.js +10 -16
- package/dist/esm/gov-grid.entry.js.map +1 -1
- package/dist/esm/gov-icon.entry.js +26 -16
- package/dist/esm/gov-icon.entry.js.map +1 -1
- package/dist/esm/gov-layout-aside.entry.js +22 -0
- package/dist/esm/gov-layout-aside.entry.js.map +1 -0
- package/dist/esm/gov-layout-content.entry.js +22 -0
- package/dist/esm/gov-layout-content.entry.js.map +1 -0
- package/dist/esm/gov-layout.entry.js +21 -0
- package/dist/esm/gov-layout.entry.js.map +1 -0
- package/dist/esm/gov-loading.entry.js +27 -0
- package/dist/esm/gov-loading.entry.js.map +1 -0
- package/dist/esm/gov-message.entry.js +10 -10
- package/dist/esm/gov-message.entry.js.map +1 -1
- package/dist/esm/gov-modal.entry.js +14 -14
- package/dist/esm/gov-modal.entry.js.map +1 -1
- package/dist/esm/gov-nav-item.entry.js +33 -0
- package/dist/esm/gov-nav-item.entry.js.map +1 -0
- package/dist/esm/gov-nav.entry.js +38 -0
- package/dist/esm/gov-nav.entry.js.map +1 -0
- package/dist/esm/gov-pagination.entry.js +53 -26
- package/dist/esm/gov-pagination.entry.js.map +1 -1
- package/dist/esm/gov-prompt.entry.js +14 -14
- package/dist/esm/gov-prompt.entry.js.map +1 -1
- package/dist/esm/gov-side-nav-item.entry.js +7 -16
- package/dist/esm/gov-side-nav-item.entry.js.map +1 -1
- package/dist/esm/gov-side-nav.entry.js +10 -10
- package/dist/esm/gov-side-nav.entry.js.map +1 -1
- package/dist/esm/gov-spacer.entry.js +8 -5
- package/dist/esm/gov-spacer.entry.js.map +1 -1
- package/dist/esm/gov-statsbar-item.entry.js +6 -6
- package/dist/esm/gov-statsbar-item.entry.js.map +1 -1
- package/dist/esm/gov-statsbar.entry.js +10 -8
- package/dist/esm/gov-statsbar.entry.js.map +1 -1
- package/dist/esm/gov-stepper-item.entry.js +17 -15
- package/dist/esm/gov-stepper-item.entry.js.map +1 -1
- package/dist/esm/gov-stepper.entry.js +11 -9
- package/dist/esm/gov-stepper.entry.js.map +1 -1
- package/dist/esm/gov-tabs-item.entry.js +10 -9
- package/dist/esm/gov-tabs-item.entry.js.map +1 -1
- package/dist/esm/gov-tabs.entry.js +26 -25
- package/dist/esm/gov-tabs.entry.js.map +1 -1
- package/dist/esm/gov-tile.entry.js +11 -10
- package/dist/esm/gov-tile.entry.js.map +1 -1
- package/dist/esm/gov-tiles.entry.js +28 -0
- package/dist/esm/gov-tiles.entry.js.map +1 -0
- package/dist/esm/gov-toast.entry.js +36 -24
- package/dist/esm/gov-toast.entry.js.map +1 -1
- package/dist/esm/gov-tooltip-content.entry.js +8 -8
- package/dist/esm/gov-tooltip-content.entry.js.map +1 -1
- package/dist/esm/gov-tooltip.entry.js +33 -33
- package/dist/esm/gov-tooltip.entry.js.map +1 -1
- package/dist/esm/gov-wizzard-item.entry.js +20 -17
- package/dist/esm/gov-wizzard-item.entry.js.map +1 -1
- package/dist/esm/gov-wizzard.entry.js +11 -10
- package/dist/esm/gov-wizzard.entry.js.map +1 -1
- package/dist/esm/{gov.log-3b6eb67c.js → gov.log-af905420.js} +2 -9
- package/dist/esm/gov.log-af905420.js.map +1 -0
- package/dist/esm/{index-e498b7fa.js → index-00e9a0d5.js} +73 -95
- package/dist/esm/index-00e9a0d5.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{props-5a1380a0.js → props-cb992af5.js} +3 -3
- package/dist/esm/props-cb992af5.js.map +1 -0
- package/dist/esm/sizes-6c5943b4.js.map +1 -1
- package/dist/esm/{string.utils-858e1565.js → string.utils-f268fc6b.js} +4 -4
- package/dist/esm/{string.utils-858e1565.js.map → string.utils-f268fc6b.js.map} +1 -1
- package/dist/esm/template-10332292.js +113 -0
- package/dist/esm/template-10332292.js.map +1 -0
- package/dist/esm/utils-3a968bb9.js +34 -0
- package/dist/esm/utils-3a968bb9.js.map +1 -0
- package/dist/esm/{variants-3bade035.js → variants-b5641e3d.js} +6 -1
- package/dist/esm/variants-b5641e3d.js.map +1 -0
- package/dist/esm/{win-fe20a39d.js → wcag-af732bfe.js} +20 -20
- package/dist/esm/wcag-af732bfe.js.map +1 -0
- package/dist/esm/win-cb090c11.js +22 -0
- package/dist/esm/win-cb090c11.js.map +1 -0
- package/dist/globals.d.ts +2 -0
- package/dist/hydrate/index.js +2331 -1397
- package/dist/stencil.config.js +3 -1
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/components/gov-accordion/constants.d.ts +7 -2
- package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +8 -3
- package/dist/types/components/gov-accordion/gov-accordion.d.ts +5 -2
- package/dist/types/components/gov-alert/constants.d.ts +1 -1
- package/dist/types/components/gov-app/gov-app.d.ts +35 -28
- package/dist/types/components/gov-attachments/constants.d.ts +3 -0
- package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +3 -1
- package/dist/types/components/gov-attachments/gov-attachments.d.ts +2 -0
- package/dist/types/components/gov-backdrop/constants.d.ts +1 -0
- package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +7 -0
- package/dist/types/components/gov-badge/constants.d.ts +1 -1
- package/dist/types/components/gov-badge/gov-badge.d.ts +3 -3
- package/dist/types/components/gov-breadcrumbs/constants.d.ts +7 -0
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +4 -0
- package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +47 -0
- package/dist/types/components/gov-button/constants.d.ts +6 -6
- package/dist/types/components/gov-button/gov-button.d.ts +28 -24
- package/dist/types/components/gov-card/constants.d.ts +1 -0
- package/dist/types/components/gov-card/gov-card.d.ts +3 -2
- package/dist/types/components/gov-container/gov-container.d.ts +8 -1
- package/dist/types/components/gov-form/autocomplete/constants.d.ts +4 -4
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +4 -4
- package/dist/types/components/gov-form/checkbox/constants.d.ts +2 -2
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +4 -3
- package/dist/types/components/gov-form/checkbox/interfaces.d.ts +4 -0
- package/dist/types/components/gov-form/control/constants.d.ts +3 -2
- package/dist/types/components/gov-form/control/gov-form-control.d.ts +9 -0
- package/dist/types/components/gov-form/file/gov-form-file.d.ts +2 -2
- package/dist/types/components/gov-form/input/constants.d.ts +6 -6
- package/dist/types/components/gov-form/input/gov-form-input.d.ts +4 -4
- package/dist/types/components/gov-form/label/gov-form-label.d.ts +6 -1
- package/dist/types/components/gov-form/message/constants.d.ts +2 -2
- package/dist/types/components/gov-form/message/gov-form-message.d.ts +2 -2
- package/dist/types/components/gov-form/multiselect/constants.d.ts +12 -0
- package/dist/types/components/gov-form/{select → multiselect}/gov-form-multi-select.d.ts +4 -4
- package/dist/types/components/gov-form/multiselect/interfaces.d.ts +4 -0
- package/dist/types/components/gov-form/radio/constants.d.ts +2 -2
- package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +4 -3
- package/dist/types/components/gov-form/radio/interfaces.d.ts +4 -0
- package/dist/types/components/gov-form/search/constants.d.ts +4 -4
- package/dist/types/components/gov-form/search/gov-form-search.d.ts +0 -12
- package/dist/types/components/gov-form/select/constants.d.ts +4 -10
- package/dist/types/components/gov-form/select/gov-form-select.d.ts +2 -2
- package/dist/types/components/gov-form/switch/constants.d.ts +2 -2
- package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +5 -3
- package/dist/types/components/gov-form/switch/interfaces.d.ts +4 -0
- package/dist/types/components/gov-grid/constants.d.ts +6 -0
- package/dist/types/components/gov-grid/gov-grid-item.d.ts +26 -0
- package/dist/types/components/gov-grid/gov-grid.d.ts +8 -4
- package/dist/types/components/gov-icon/constants.d.ts +1 -1
- package/dist/types/components/gov-icon/gov-icon.d.ts +4 -2
- package/dist/types/components/gov-layout/constants.d.ts +12 -0
- package/dist/types/components/gov-layout/gov-layout-aside.d.ts +10 -0
- package/dist/types/components/gov-layout/gov-layout-content.d.ts +10 -0
- package/dist/types/components/gov-layout/gov-layout.d.ts +6 -0
- package/dist/types/components/gov-loading/constants.d.ts +5 -0
- package/dist/types/components/gov-loading/gov-loading.d.ts +10 -0
- package/dist/types/components/gov-message/constants.d.ts +1 -1
- package/dist/types/components/gov-modal/gov-modal.d.ts +1 -1
- package/dist/types/components/gov-nav/constants.d.ts +8 -0
- package/dist/types/components/gov-nav/gov-nav-item.d.ts +12 -0
- package/dist/types/components/gov-nav/gov-nav.d.ts +17 -0
- package/dist/types/components/gov-pagination/constants.d.ts +10 -0
- package/dist/types/components/gov-pagination/gov-pagination.d.ts +25 -1
- package/dist/types/components/gov-promp/constants.d.ts +1 -0
- package/dist/types/components/gov-promp/gov-prompt.d.ts +1 -1
- package/dist/types/components/gov-side-nav/constants.d.ts +1 -0
- package/dist/types/components/gov-side-nav/gov-side-nav-item.d.ts +2 -2
- package/dist/types/components/gov-side-nav/gov-side-nav.d.ts +3 -2
- package/dist/types/components/gov-spacer/constants.d.ts +2 -2
- package/dist/types/components/gov-spacer/gov-spacer.d.ts +9 -0
- package/dist/types/components/gov-statsbar/constants.d.ts +2 -2
- package/dist/types/components/gov-statsbar/gov-statsbar-item.d.ts +3 -0
- package/dist/types/components/gov-statsbar/gov-statsbar.d.ts +9 -1
- package/dist/types/components/gov-stepper/constants.d.ts +8 -4
- package/dist/types/components/gov-stepper/gov-stepper-item.d.ts +11 -3
- package/dist/types/components/gov-stepper/gov-stepper.d.ts +7 -4
- package/dist/types/components/gov-tabs/constants.d.ts +3 -3
- package/dist/types/components/gov-tabs/gov-tabs-item.d.ts +2 -1
- package/dist/types/components/gov-tabs/gov-tabs.d.ts +8 -6
- package/dist/types/components/gov-tile/constants.d.ts +1 -0
- package/dist/types/components/gov-tile/gov-tile.d.ts +1 -1
- package/dist/types/components/gov-tiles/constants.d.ts +3 -0
- package/dist/types/components/gov-tiles/gov-tiles.d.ts +11 -0
- package/dist/types/components/gov-toast/constants.d.ts +5 -2
- package/dist/types/components/gov-toast/gov-toast.d.ts +22 -2
- package/dist/types/components/gov-tooltip/constants.d.ts +5 -5
- package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +1 -1
- package/dist/types/components/gov-wizzard/constants.d.ts +7 -4
- package/dist/types/components/gov-wizzard/gov-wizzard-item.d.ts +15 -7
- package/dist/types/components/gov-wizzard/gov-wizzard.d.ts +4 -3
- package/dist/types/components.d.ts +559 -111
- package/dist/types/core/constants/tags.d.ts +12 -0
- package/dist/types/core/constants/variants.d.ts +4 -0
- package/dist/types/helpers/Dom/form.d.ts +2 -2
- package/dist/types/helpers/Dom/template.d.ts +3 -3
- package/dist/types/helpers/Dom/win.d.ts +9 -1
- package/dist/types/helpers/Fragment.d.ts +2 -0
- package/dist/types/helpers/StorybookDocsTemplate.d.ts +3 -0
- package/dist/types/pages/Breadcrumbs.d.ts +3 -0
- package/dist/types/pages/Container.d.ts +3 -0
- package/dist/types/pages/Forms.d.ts +5 -0
- package/dist/types/pages/Grid.d.ts +3 -0
- package/dist/types/pages/Layout.d.ts +3 -0
- package/dist/types/pages/Loading.d.ts +3 -0
- package/dist/types/pages/Nav.d.ts +3 -0
- package/dist/types/pages/Tiles.d.ts +3 -0
- package/dist/types/pages/ToastMessageCountdown.d.ts +3 -0
- package/dist/types/types/interfaces.d.ts +1 -0
- package/dist/types/types/typings.d.ts +6 -0
- package/dist/types/utils/utils.d.ts +16 -0
- package/package.json +1 -1
- package/dist/cjs/constants-02ecd1c7.js +0 -21
- package/dist/cjs/constants-02ecd1c7.js.map +0 -1
- package/dist/cjs/constants-1d5ec4c5.js.map +0 -1
- package/dist/cjs/constants-3248a281.js.map +0 -1
- package/dist/cjs/constants-4a012eff.js.map +0 -1
- package/dist/cjs/constants-57e09cb3.js +0 -21
- package/dist/cjs/constants-57e09cb3.js.map +0 -1
- package/dist/cjs/constants-aba7a597.js.map +0 -1
- package/dist/cjs/constants-bd1db896.js.map +0 -1
- package/dist/cjs/constants-c3c9f325.js +0 -21
- package/dist/cjs/constants-c3c9f325.js.map +0 -1
- package/dist/cjs/constants-e0d4a186.js +0 -22
- package/dist/cjs/constants-e0d4a186.js.map +0 -1
- package/dist/cjs/constants-ed8f3212.js.map +0 -1
- package/dist/cjs/form-9ab2ace1.js.map +0 -1
- package/dist/cjs/gov-form-dropdown.cjs.entry.js +0 -21
- package/dist/cjs/gov-form-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/gov.log-4527e960.js.map +0 -1
- package/dist/cjs/index-f0dd3088.js.map +0 -1
- package/dist/cjs/props-bb89fb59.js.map +0 -1
- package/dist/cjs/template-26608353.js +0 -118
- package/dist/cjs/template-26608353.js.map +0 -1
- package/dist/cjs/utils-a51135ab.js +0 -17
- package/dist/cjs/utils-a51135ab.js.map +0 -1
- package/dist/cjs/variants-04113a72.js.map +0 -1
- package/dist/cjs/win-aa54b884.js.map +0 -1
- package/dist/collection/components/gov-accordion/gov-accordion.stories.js +0 -74
- package/dist/collection/components/gov-accordion/gov-accordion.stories.js.map +0 -1
- package/dist/collection/components/gov-alert/gov-alert.stories.js +0 -78
- package/dist/collection/components/gov-alert/gov-alert.stories.js.map +0 -1
- package/dist/collection/components/gov-badge/gov-badge.stories.js +0 -75
- package/dist/collection/components/gov-badge/gov-badge.stories.js.map +0 -1
- package/dist/collection/components/gov-button/gov-button.stories.js +0 -108
- package/dist/collection/components/gov-button/gov-button.stories.js.map +0 -1
- package/dist/collection/components/gov-card/gov-card.d.js +0 -2
- package/dist/collection/components/gov-card/gov-card.d.js.map +0 -1
- package/dist/collection/components/gov-card/gov-card.stories.js +0 -109
- package/dist/collection/components/gov-card/gov-card.stories.js.map +0 -1
- package/dist/collection/components/gov-container/gov-container.stories.js +0 -8
- package/dist/collection/components/gov-container/gov-container.stories.js.map +0 -1
- package/dist/collection/components/gov-empty/gov-empty.stories.js +0 -53
- package/dist/collection/components/gov-empty/gov-empty.stories.js.map +0 -1
- package/dist/collection/components/gov-error-code/gov-error-code.stories.js +0 -49
- package/dist/collection/components/gov-error-code/gov-error-code.stories.js.map +0 -1
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.stories.js +0 -131
- package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.stories.js.map +0 -1
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.stories.js +0 -78
- package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.stories.js.map +0 -1
- package/dist/collection/components/gov-form/gov-form-dropdown.js +0 -19
- package/dist/collection/components/gov-form/gov-form-dropdown.js.map +0 -1
- package/dist/collection/components/gov-form/input/gov-form-input.stories.js +0 -101
- package/dist/collection/components/gov-form/input/gov-form-input.stories.js.map +0 -1
- package/dist/collection/components/gov-form/message/gov-form-message.stories.js +0 -48
- package/dist/collection/components/gov-form/message/gov-form-message.stories.js.map +0 -1
- package/dist/collection/components/gov-form/select/gov-form-multi-select.js.map +0 -1
- package/dist/collection/components/gov-form/select/gov-form-multi-select.stories.js +0 -90
- package/dist/collection/components/gov-form/select/gov-form-multi-select.stories.js.map +0 -1
- package/dist/collection/components/gov-form/select/gov-form-select.stories.js +0 -90
- package/dist/collection/components/gov-form/select/gov-form-select.stories.js.map +0 -1
- package/dist/collection/components/gov-form/switch/gov-form-switch.stories.js +0 -78
- package/dist/collection/components/gov-form/switch/gov-form-switch.stories.js.map +0 -1
- package/dist/collection/components/gov-message/gov-message.stories.js +0 -70
- package/dist/collection/components/gov-message/gov-message.stories.js.map +0 -1
- package/dist/collection/components/gov-modal/gov-modal.stories.js +0 -55
- package/dist/collection/components/gov-modal/gov-modal.stories.js.map +0 -1
- package/dist/collection/components/gov-spacer/gov-spacer.stories.js +0 -19
- package/dist/collection/components/gov-spacer/gov-spacer.stories.js.map +0 -1
- package/dist/collection/components/gov-statsbar/gov-statsbar.stories.js +0 -71
- package/dist/collection/components/gov-statsbar/gov-statsbar.stories.js.map +0 -1
- package/dist/collection/components/gov-tabs/gov-tabs.stories.js +0 -29
- package/dist/collection/components/gov-tabs/gov-tabs.stories.js.map +0 -1
- package/dist/collection/components/gov-toast/gov-toast.stories.js +0 -83
- package/dist/collection/components/gov-toast/gov-toast.stories.js.map +0 -1
- package/dist/collection/components/gov-tooltip/gov-tooltip.stories.js +0 -54
- package/dist/collection/components/gov-tooltip/gov-tooltip.stories.js.map +0 -1
- package/dist/collection/components/gov-wizzard/gov-wizzard.stories.js +0 -109
- package/dist/collection/components/gov-wizzard/gov-wizzard.stories.js.map +0 -1
- package/dist/collection/pages/Tile.js.map +0 -1
- package/dist/components/gov-form-dropdown.js +0 -36
- package/dist/components/gov-form-dropdown.js.map +0 -1
- package/dist/components/utils.js.map +0 -1
- package/dist/core/p-04354bad.entry.js +0 -2
- package/dist/core/p-04354bad.entry.js.map +0 -1
- package/dist/core/p-089c220d.js.map +0 -1
- package/dist/core/p-0956d80f.js +0 -2
- package/dist/core/p-0956d80f.js.map +0 -1
- package/dist/core/p-15591728.js +0 -2
- package/dist/core/p-1613841c.entry.js +0 -2
- package/dist/core/p-1613841c.entry.js.map +0 -1
- package/dist/core/p-176a5828.js +0 -2
- package/dist/core/p-176a5828.js.map +0 -1
- package/dist/core/p-1e70ab4e.js +0 -2
- package/dist/core/p-1e70ab4e.js.map +0 -1
- package/dist/core/p-203f5b10.js +0 -2
- package/dist/core/p-203f5b10.js.map +0 -1
- package/dist/core/p-21d55718.entry.js +0 -2
- package/dist/core/p-21d55718.entry.js.map +0 -1
- package/dist/core/p-2474a77a.js +0 -2
- package/dist/core/p-2474a77a.js.map +0 -1
- package/dist/core/p-2a3b91e8.entry.js +0 -2
- package/dist/core/p-2a3b91e8.entry.js.map +0 -1
- package/dist/core/p-300a45d2.entry.js +0 -2
- package/dist/core/p-300a45d2.entry.js.map +0 -1
- package/dist/core/p-32dc0fab.entry.js +0 -2
- package/dist/core/p-32dc0fab.entry.js.map +0 -1
- package/dist/core/p-3a72b75e.entry.js +0 -2
- package/dist/core/p-3a72b75e.entry.js.map +0 -1
- package/dist/core/p-3b39c3f4.entry.js +0 -2
- package/dist/core/p-3b39c3f4.entry.js.map +0 -1
- package/dist/core/p-3ef69b36.entry.js +0 -2
- package/dist/core/p-3ef69b36.entry.js.map +0 -1
- package/dist/core/p-42367e53.js +0 -2
- package/dist/core/p-42367e53.js.map +0 -1
- package/dist/core/p-468af26f.entry.js +0 -2
- package/dist/core/p-468af26f.entry.js.map +0 -1
- package/dist/core/p-487665c0.entry.js +0 -2
- package/dist/core/p-487665c0.entry.js.map +0 -1
- package/dist/core/p-4a7fff28.entry.js +0 -2
- package/dist/core/p-4a7fff28.entry.js.map +0 -1
- package/dist/core/p-5548d2ac.entry.js +0 -2
- package/dist/core/p-5548d2ac.entry.js.map +0 -1
- package/dist/core/p-55f49f1d.js +0 -2
- package/dist/core/p-55f49f1d.js.map +0 -1
- package/dist/core/p-5fbc2292.entry.js +0 -2
- package/dist/core/p-5fbc2292.entry.js.map +0 -1
- package/dist/core/p-6797db03.entry.js +0 -2
- package/dist/core/p-6797db03.entry.js.map +0 -1
- package/dist/core/p-732167df.entry.js +0 -2
- package/dist/core/p-732167df.entry.js.map +0 -1
- package/dist/core/p-75c62141.js +0 -3
- package/dist/core/p-75c62141.js.map +0 -1
- package/dist/core/p-805fd311.entry.js +0 -2
- package/dist/core/p-805fd311.entry.js.map +0 -1
- package/dist/core/p-81584adc.entry.js +0 -2
- package/dist/core/p-81584adc.entry.js.map +0 -1
- package/dist/core/p-84ec0533.entry.js +0 -2
- package/dist/core/p-84ec0533.entry.js.map +0 -1
- package/dist/core/p-899eff0b.entry.js +0 -2
- package/dist/core/p-899eff0b.entry.js.map +0 -1
- package/dist/core/p-8ffd33d7.entry.js +0 -2
- package/dist/core/p-8ffd33d7.entry.js.map +0 -1
- package/dist/core/p-9077d6f6.js +0 -2
- package/dist/core/p-9077d6f6.js.map +0 -1
- package/dist/core/p-930e20e9.entry.js +0 -2
- package/dist/core/p-930e20e9.entry.js.map +0 -1
- package/dist/core/p-97b6e139.entry.js +0 -2
- package/dist/core/p-97b6e139.entry.js.map +0 -1
- package/dist/core/p-98d0c03d.entry.js +0 -2
- package/dist/core/p-98d0c03d.entry.js.map +0 -1
- package/dist/core/p-9db35e06.js.map +0 -1
- package/dist/core/p-a5dd376d.entry.js +0 -2
- package/dist/core/p-a5dd376d.entry.js.map +0 -1
- package/dist/core/p-a8320dd3.entry.js +0 -2
- package/dist/core/p-a8320dd3.entry.js.map +0 -1
- package/dist/core/p-a870e7db.entry.js +0 -2
- package/dist/core/p-a870e7db.entry.js.map +0 -1
- package/dist/core/p-aa54d288.entry.js +0 -2
- package/dist/core/p-aa54d288.entry.js.map +0 -1
- package/dist/core/p-ab33947a.entry.js +0 -2
- package/dist/core/p-ab33947a.entry.js.map +0 -1
- package/dist/core/p-b4a749e8.js.map +0 -1
- package/dist/core/p-bc13b48c.entry.js +0 -2
- package/dist/core/p-bc13b48c.entry.js.map +0 -1
- package/dist/core/p-bed96a18.entry.js +0 -2
- package/dist/core/p-bed96a18.entry.js.map +0 -1
- package/dist/core/p-c2bb9d74.entry.js +0 -2
- package/dist/core/p-c2bb9d74.entry.js.map +0 -1
- package/dist/core/p-c351eeab.entry.js +0 -2
- package/dist/core/p-c351eeab.entry.js.map +0 -1
- package/dist/core/p-c7723675.entry.js +0 -2
- package/dist/core/p-c7723675.entry.js.map +0 -1
- package/dist/core/p-d3714547.js +0 -2
- package/dist/core/p-d3714547.js.map +0 -1
- package/dist/core/p-d622559e.entry.js +0 -2
- package/dist/core/p-d622559e.entry.js.map +0 -1
- package/dist/core/p-daa82340.entry.js +0 -2
- package/dist/core/p-daa82340.entry.js.map +0 -1
- package/dist/core/p-e1b02f22.entry.js +0 -2
- package/dist/core/p-e1b02f22.entry.js.map +0 -1
- package/dist/core/p-e29a195b.js.map +0 -1
- package/dist/core/p-e454c6a2.entry.js +0 -2
- package/dist/core/p-e454c6a2.entry.js.map +0 -1
- package/dist/core/p-e875b974.entry.js +0 -2
- package/dist/core/p-e875b974.entry.js.map +0 -1
- package/dist/core/p-ebd98b2d.entry.js +0 -2
- package/dist/core/p-ebd98b2d.entry.js.map +0 -1
- package/dist/core/p-ecf9700e.entry.js +0 -2
- package/dist/core/p-ecf9700e.entry.js.map +0 -1
- package/dist/core/p-ee0bfc25.js +0 -2
- package/dist/core/p-ee0bfc25.js.map +0 -1
- package/dist/core/p-f1ccdb26.entry.js +0 -2
- package/dist/core/p-f1ccdb26.entry.js.map +0 -1
- package/dist/core/p-f2debcea.entry.js +0 -2
- package/dist/core/p-f2debcea.entry.js.map +0 -1
- package/dist/core/p-f5aabaaf.entry.js +0 -2
- package/dist/core/p-f5aabaaf.entry.js.map +0 -1
- package/dist/core/p-f6f34f80.js +0 -2
- package/dist/core/p-f6f34f80.js.map +0 -1
- package/dist/core/p-f7283930.entry.js +0 -2
- package/dist/core/p-f7283930.entry.js.map +0 -1
- package/dist/core/p-f9320f1e.js +0 -2
- package/dist/core/p-f9320f1e.js.map +0 -1
- package/dist/core/p-fc243d75.entry.js +0 -2
- package/dist/core/p-fc243d75.entry.js.map +0 -1
- package/dist/core/p-feba699a.entry.js +0 -2
- package/dist/core/p-feba699a.entry.js.map +0 -1
- package/dist/esm/constants-0072cbed.js +0 -18
- package/dist/esm/constants-0072cbed.js.map +0 -1
- package/dist/esm/constants-050bd135.js.map +0 -1
- package/dist/esm/constants-0ba692b3.js.map +0 -1
- package/dist/esm/constants-3ca24227.js +0 -18
- package/dist/esm/constants-3ca24227.js.map +0 -1
- package/dist/esm/constants-49dc75e2.js.map +0 -1
- package/dist/esm/constants-7a8adcd1.js.map +0 -1
- package/dist/esm/constants-8729f0c0.js +0 -18
- package/dist/esm/constants-8729f0c0.js.map +0 -1
- package/dist/esm/constants-9aaa1aa0.js.map +0 -1
- package/dist/esm/constants-b5974ead.js +0 -18
- package/dist/esm/constants-b5974ead.js.map +0 -1
- package/dist/esm/constants-fcd1143c.js +0 -19
- package/dist/esm/constants-fcd1143c.js.map +0 -1
- package/dist/esm/form-16cd7ae0.js.map +0 -1
- package/dist/esm/gov-form-dropdown.entry.js +0 -17
- package/dist/esm/gov-form-dropdown.entry.js.map +0 -1
- package/dist/esm/gov.log-3b6eb67c.js.map +0 -1
- package/dist/esm/index-e498b7fa.js.map +0 -1
- package/dist/esm/props-5a1380a0.js.map +0 -1
- package/dist/esm/template-c616c14f.js +0 -110
- package/dist/esm/template-c616c14f.js.map +0 -1
- package/dist/esm/utils-43789c71.js +0 -14
- package/dist/esm/utils-43789c71.js.map +0 -1
- package/dist/esm/variants-3bade035.js.map +0 -1
- package/dist/esm/win-fe20a39d.js.map +0 -1
- package/dist/types/components/gov-accordion/gov-accordion.stories.d.ts +0 -43
- package/dist/types/components/gov-alert/gov-alert.stories.d.ts +0 -38
- package/dist/types/components/gov-badge/gov-badge.stories.d.ts +0 -48
- package/dist/types/components/gov-button/gov-button.stories.d.ts +0 -65
- package/dist/types/components/gov-card/gov-card.stories.d.ts +0 -45
- package/dist/types/components/gov-container/gov-container.stories.d.ts +0 -5
- package/dist/types/components/gov-empty/gov-empty.stories.d.ts +0 -26
- package/dist/types/components/gov-error-code/gov-error-code.stories.d.ts +0 -21
- package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.stories.d.ts +0 -37
- package/dist/types/components/gov-form/checkbox/gov-form-checkbox.stories.d.ts +0 -29
- package/dist/types/components/gov-form/gov-form-dropdown.d.ts +0 -3
- package/dist/types/components/gov-form/input/gov-form-input.stories.d.ts +0 -42
- package/dist/types/components/gov-form/message/gov-form-message.stories.d.ts +0 -24
- package/dist/types/components/gov-form/select/gov-form-multi-select.stories.d.ts +0 -31
- package/dist/types/components/gov-form/select/gov-form-select.stories.d.ts +0 -31
- package/dist/types/components/gov-form/switch/gov-form-switch.stories.d.ts +0 -29
- package/dist/types/components/gov-message/gov-message.stories.d.ts +0 -33
- package/dist/types/components/gov-modal/gov-modal.stories.d.ts +0 -25
- package/dist/types/components/gov-spacer/gov-spacer.stories.d.ts +0 -15
- package/dist/types/components/gov-statsbar/gov-statsbar.stories.d.ts +0 -31
- package/dist/types/components/gov-tabs/gov-tabs.stories.d.ts +0 -10
- package/dist/types/components/gov-toast/gov-toast.stories.d.ts +0 -47
- package/dist/types/components/gov-tooltip/gov-tooltip.stories.d.ts +0 -38
- package/dist/types/components/gov-wizzard/gov-wizzard.stories.d.ts +0 -52
- package/dist/types/pages/Tile.d.ts +0 -3
- /package/dist/types/components/gov-card/{gov-card.d.d.ts → interfaces.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-button2.js","mappings":";;;;;;;;SAAgB,MAAM,CAAC,KAAU;EAChC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;IAC9B,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA;GAC1D;OAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;IACrC,OAAO,KAAK,GAAG,CAAC,CAAA;GAChB;OAAM,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE;IACtC,OAAO,KAAK,CAAA;GACZ;OAAM;IACN,OAAO,KAAK,GAAG,IAAI,GAAG,KAAK,CAAA;GAC3B;AACF;;ACVA,MAAM,YAAY,GAAG,iu4DAAiu4D;;ACqBtv4D,IAAK,IAGJ;AAHD,WAAK,IAAI;EACR,eAAO,CAAA;EACP,yBAAiB,CAAA;AAClB,CAAC,EAHI,IAAI,KAAJ,IAAI,QAGR;MAMY,SAAS;EAIrB;;;;;;mBASwC,SAAS;gBAId,KAAK,CAAC,EAAE;gBAIb,OAAO;oBAIA,KAAK;mBAIN,KAAK;;oBASJ,KAAK;sBAKK,UAAU,CAAC,MAAM;;;;;;;;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MACnB,eAAe,CAAC,IAAI,CAAC,oBAAoB,EAAE,uBAAuB,EAAE,WAAW,CAAC,IAAI,CAAC,CAAA;MACrF,eAAe,CAAC,IAAI,CAAC,YAAY,EAAE,eAAe,EAAE,WAAW,CAAC,IAAI,CAAC,CAAA;MACrE,eAAe,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,CAAA;MACnE,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,CAAA;MAC7D,eAAe,CAAC,IAAI,CAAC,YAAY,EAAE,eAAe,EAAE,WAAW,CAAC,IAAI,CAAC,CAAA;MACrE,iBAAiB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,CAAA;KACxE;GACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/utils/bool.utils.ts","../../../packages/core/src/components/gov-button/gov-button.scss?tag=gov-button","../../../packages/core/src/components/gov-button/gov-button.tsx"],"sourcesContent":["export function toBool(value: any): boolean {\n\tif (typeof value === \"string\") {\n\t\treturn [\"true\", \"True\", \"TRUE\", \"1\"].indexOf(value) !== -1\n\t} else if (typeof value === \"number\") {\n\t\treturn value > 0\n\t} else if (typeof value === \"boolean\") {\n\t\treturn value\n\t} else {\n\t\treturn value ? true : false\n\t}\n}\n","/*\n * Button\n */\n\n// Shared definitions - BUTTON & badge\n@import \"./gov-button-core.scss\";\n\n.gov-button {\n\t@extend %button-core;\n\tdisplay: inline-block;\n\n\t.element {\n\t\tborder-radius: #{$border-radius};\n\t}\n\n\t// STATES\n\t// loading\n\t&[loading=\"true\"],\n\t&[loading=\"1\"] {\n\t\t.element {\n\t\t\t> .gov-icon:not(.gov-spin-animation),\n\t\t\t> gov-icon:not(.gov-spin-animation) {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t// VARIANTS\n\t@each $size, $definitions in $button-sizes {\n\t\t// Loading state\n\t\t&:not(&--w-icon)[loading=\"0\"][size=\"#{$size}\"],\n\t\t&:not(&--w-icon)[loading=\"false\"][size=\"#{$size}\"],\n\t\t&:not(&--w-icon)[loading=\"\"][size=\"#{$size}\"] {\n\t\t\t.element {\n\t\t\t\tpadding: get(\"padding-y\", $definitions)\n\t\t\t\t\tcalc(get(\"padding-x\", $definitions) + (get(\"padding-x\", $definitions) / 2) + (get(\"icon-size\", $definitions) / 2));\n\t\t\t}\n\t\t}\n\t}\n\t// loading icon color\n\t@each $variant, $types in $button-variants {\n\t\t&[type=\"outlined\"][variant=\"#{$variant}\"],\n\t\t&[type=\"base\"][variant=\"#{$variant}\"] {\n\t\t\t.gov-spin-animation {\n\t\t\t\tcolor: deep-map-get($button-variants, $variant, \"outlined\", \"color\");\n\t\t\t}\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\t.gov-spin-animation {\n\t\t\t\t\tcolor: inherit;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport {\n\tSizesType,\n\tNativeType,\n\tNativeTypes,\n\tNativeTypesType,\n\tType,\n\tTypes,\n\tVariants,\n\tVariantType,\n\tButtonClass,\n} from \"./constants\"\nimport { govHost, toBoolAttr, toBoolAttrIfDefined, prepareClasses } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.d\"\nimport { toBool } from \"../../utils/bool.utils\"\nimport { Sizes } from \"../../core/constants/sizes\"\nimport { validateWcagLabel, validateWcagRef } from \"../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\nimport { delay } from \"../../utils/utils\"\n\nenum Tags {\n\tA = \"a\",\n\tBUTTON = \"button\"\n}\n\n@Component({\n\ttag: \"gov-button\",\n\tstyleUrl: \"gov-button.scss\",\n})\nexport class GovButton {\n\tprivate h: GovHost\n\tprivate buttonRef?: HTMLButtonElement\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovButtonElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant: VariantType = undefined\n\t/**\n\t * Button’s size.\n\t */\n\t@Prop() readonly size: SizesType = Sizes._M\n\t/**\n\t * Button's type\n\t */\n\t@Prop() readonly type: Type = \"solid\"\n\t/**\n\t * Expands the button to fill 100% of the container width.\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Determide if component should have inversed colors to be used on dark background\n\t */\n\t@Prop() readonly inverse: boolean = false\n\t/**\n\t * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Makes the button component disabled.\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\n\t */\n\t@Prop() readonly nativeType: NativeTypesType = NativeType.BUTTON\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\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\n\t */\n\t@Prop() readonly download: boolean\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang\n\t */\n\t@Prop() readonly hreflang: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-referrerpolicy\n\t */\n\t@Prop() readonly referrerpolicy: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel\n\t */\n\t@Prop() readonly rel: string\n\t/**\n\t * Indicates whether an asynchronous process is running\n\t */\n\t@Prop() readonly loading: string\n\t/**\n\t * Same as original parametr\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom button identifier.\n\t */\n\t@Prop({ attribute: \"identifier\" }) readonly identifier: string\n\t/**\n\t * Indicates the id of a related component’s visually focused element.\n\t */\n\t@Prop({ attribute: \"wcag-active-descendant\" }) readonly wcagActiveDescendant: string\n\t/**\n\t * Use this property to add an aria-controls attribute to the button. Use the attribute to point to the unique id of the content that the button manages.\n\t */\n\t@Prop({ attribute: \"wcag-controls\" }) readonly wcagControls: string\n\t/**\n\t * Indicates the id of a component that describes the button.\n\t */\n\t@Prop({ attribute: \"wcag-described-by\" }) readonly wcagDescribedBy: string\n\t/**\n\t * Aria description the button\n\t */\n\t@Prop({ attribute: \"wcag-description\" }) readonly wcagDescription: string\n\t/**\n\t * Details of the component\n\t */\n\t@Prop({ attribute: \"wcag-details\" }) readonly wcagDetails: string\n\t/**\n\t * If a button expands or collapses adjacent content, then use the ariaExpanded prop to add the aria-expanded attribute to the button.\n\t * Set the value to convey the current expanded (true) or collapsed (false) state of the content.\n\t */\n\t@Prop({ attribute: \"wcag-expanded\" }) readonly wcagExpanded: boolean\n\t/**\n\t * Adds accessible label for the button that is only shown for screen readers.\n\t * Typically, this label text replaces the visible text on the button for users who use assistive technology.\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\t/**\n\t * Indicates the id of a component owned by the button.\n\t */\n\t@Prop({ attribute: \"wcag-owns\" }) readonly wcagOwns: string\n\t/**\n\t * \tUse this property to add an aria-haspopup attribute to a button, if you are using it as a menu button.\n\t */\n\t@Prop({ attribute: \"wcag-has-popup\" }) readonly wcagHasPopup: string\n\t/**\n\t * Tells screen reader the element is pressed.\n\t */\n\t@Prop({ attribute: \"wcag-pressed\" }) readonly wcagPressed: string\n\t/**\n\t * Emitted when the button click.\n\t */\n\t@Event({ eventName: \"gov-click\" }) govClick: EventEmitter<PointerEvent>\n\t/**\n\t * Emitted when the button has focus.\n\t */\n\t@Event({ eventName: \"gov-focus\" }) govFocus: EventEmitter\n\t/**\n\t * Emitted when the button loses focus.\n\t */\n\t@Event({ eventName: \"gov-blur\" }) govBlur: EventEmitter\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(Variants, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(Types, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, ButtonClass.root)\n\t}\n\n\t@Watch(\"nativeType\")\n\tvalidateNativeType(newValue: string): void {\n\t\tvalidateProp(NativeTypes, newValue, ButtonClass.root)\n\t}\n\n\t@State() isPressed: boolean = false\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateType(this.type)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateNativeType(this.nativeType)\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\tget classNames(): string {\n\t\tconst { h } = this\n\n\t\treturn prepareClasses([\n\t\t\tButtonClass.root,\n\t\t\th.hasSlot(\"left-icon\") && ButtonClass.rootWithIcon,\n\t\t\th.hasSlot(\"right-icon\") && ButtonClass.rootWithIcon,\n\t\t])\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? Tags.A : Tags.BUTTON\n\t\tconst nativeType = Tag === Tags.A ? undefined : this.nativeType\n\n\t\treturn (\n\t\t\t<Host hoverable={true} size={this.size} variant={this.variant} class={this.classNames} type={this.type} inverse={this.inverse}>\n\t\t\t\t<Tag class=\"element\"\n\t\t\t\t ref={el => this.buttonRef = el as HTMLButtonElement}\n\t\t\t\t onClick={this.onClickHandler.bind(this)}\n\t\t\t\t onFocus={() => this.govFocus.emit()}\n\t\t\t\t onBlur={() => this.govBlur.emit()}\n\t\t\t\t onMouseDown={() => this.isPressed = true}\n\t\t\t\t onMouseUp={() => this.isPressed = false}\n\t\t\t\t disabled={this.disabled}\n\t\t\t\t id={this.identifier}\n\t\t\t\t href={this.href}\n\t\t\t\t target={this.target}\n\t\t\t\t download={this.download}\n\t\t\t\t hreflang={this.hreflang}\n\t\t\t\t rel={this.rel}\n\t\t\t\t name={this.name}\n\t\t\t\t type={nativeType}\n\t\t\t\t tabindex={this.focusable ? '0' : '-1'}\n\t\t\t\t aria-activedescendant={this.wcagActiveDescendant}\n\t\t\t\t aria-describedby={this.wcagActiveDescendant}\n\t\t\t\t aria-description={this.wcagDescription}\n\t\t\t\t aria-controls={this.wcagControls}\n\t\t\t\t aria-details={this.wcagDetails}\n\t\t\t\t aria-expanded={toBoolAttrIfDefined(this.wcagExpanded)}\n\t\t\t\t aria-label={this.wcagLabel}\n\t\t\t\t aria-labelledby={this.wcagLabelledBy}\n\t\t\t\t aria-owns={this.wcagOwns}\n\t\t\t\t aria-haspopup={toBoolAttrIfDefined(this.wcagHasPopup)}\n\t\t\t\t aria-pressed={toBoolAttr(this.isPressed)}\n\t\t\t\t aria-disabled={toBoolAttrIfDefined(this.disabled)}>\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot(\"right-icon\") &&\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>}\n\t\t\t\t\t{this.h.hasSlot(\"left-icon\") && <slot name=\"left-icon\"></slot>}\n\t\t\t\t\t<slot />\n\t\t\t\t\t{this.h.hasSlot(\"right-icon\") && <slot name=\"right-icon\"></slot>}\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot(\"right-icon\") &&\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false) {\n\t\t\tthis.govClick.emit(e)\n\t\t}\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.buttonRef.focus()\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tif (this.focusable) {\n\t\t\tvalidateWcagRef(this.wcagActiveDescendant, \"aria-activedescendant\", ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagControls, \"aria-controls\", ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagDetails, \"aria-details\", ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagOwns, \"aria-owns\", ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagHasPopup, \"aria-haspopup\", ButtonClass.root)\n\t\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, ButtonClass.root)\n\t\t}\n\t}\n}\n"],"version":3}
|
|
1
|
+
{"file":"gov-button2.js","mappings":";;;;;;;;;SAAgB,MAAM,CAAC,KAAU;EAChC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;IAC9B,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA;GAC1D;OAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;IACrC,OAA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components/gov-button/gov-button.scss?tag=gov-button","../../../packages/core/src/components/gov-button/gov-button.tsx"],"sourcesContent":["export function toBool(value: any): boolean {\n\tif (typeof value === 'string') {\n\t\treturn ['true', 'True', 'TRUE', '1'].indexOf(value) !== -1\n\t} else if (typeof value === 'number') {\n\t\treturn value > 0\n\t} else if (typeof value === 'boolean') {\n\t\treturn value\n\t} else {\n\t\treturn value ? true : false\n\t}\n}\n","/*\n * Button\n */\n\n// Shared definitions - BUTTON & badge\n@import \"./gov-button-core.scss\";\n\n.gov-button {\n\t@extend %button-core;\n\tdisplay: inline-block;\n\t.element {\n\t\tborder-radius: #{$border-radius};\n\t}\n\n\t// STATES\n\t&[loading=\"true\"],\n\t&[loading=\"1\"] {\n\t\t.element {\n\t\t\t> .gov-icon:not(.gov-spin-animation),\n\t\t\t> gov-icon:not(.gov-spin-animation) {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t// VARIANTS\n\t@each $size, $definitions in $button-sizes {\n\t\t// Loading state\n\t\t&:not(&--w-icon)[loading=\"0\"][size=\"#{$size}\"],\n\t\t&:not(&--w-icon)[loading=\"false\"][size=\"#{$size}\"],\n\t\t&:not(&--w-icon)[loading=\"\"][size=\"#{$size}\"] {\n\t\t\t.element {\n\t\t\t\tpadding: get(\"padding-y\", $definitions)\n\t\t\t\t\tcalc(get(\"padding-x\", $definitions) + (get(\"padding-x\", $definitions) / 2) + (get(\"icon-size\", $definitions) / 2));\n\t\t\t}\n\t\t}\n\t}\n\t// Loading icon color\n\t@each $variant, $types in $button-variants {\n\t\t&[type=\"outlined\"][variant=\"#{$variant}\"],\n\t\t&[type=\"base\"][variant=\"#{$variant}\"] {\n\t\t\t.gov-spin-animation {\n\t\t\t\tcolor: deep-map-get($button-variants, $variant, \"outlined\", \"color\");\n\t\t\t}\n\t\t\t@include parameter(\"inverse\") {\n\t\t\t\t.gov-spin-animation {\n\t\t\t\t\tcolor: inherit;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { SizesType, NativeType, NativeTypes, NativeTypesType, Type, Types, Variants, VariantType, ButtonClass } from './constants'\nimport { govHost, toBoolAttr, toBoolAttrIfDefined, prepareClasses } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.d'\nimport { toBool } from '../../utils/bool.utils'\nimport { Sizes } from '../../core/constants/sizes'\nimport { validateWcagLabel, validateWcagRef } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\n\nenum Tags {\n\tA = 'a',\n\tBUTTON = 'button',\n}\n\n@Component({\n\ttag: 'gov-button',\n\tstyleUrl: 'gov-button.scss',\n})\nexport class GovButton {\n\tprivate h: GovHost\n\tprivate buttonRef?: HTMLButtonElement\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovButtonElement\n\n\t/**\n\t * Style variation of the button\n\t */\n\t@Prop() readonly variant: VariantType = undefined\n\t/**\n\t * Button’s size\n\t */\n\t@Prop() readonly size: SizesType = Sizes._M\n\t/**\n\t * Button's type\n\t */\n\t@Prop() readonly type: Type = 'solid'\n\t/**\n\t * Expands the button to fill 100% of the container width\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Determine if component should have inversed colors to be used on dark background\n\t */\n\t@Prop() readonly inverse: boolean = false\n\t/**\n\t * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Makes the button component disabled.\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Same as original parameter\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\n\t */\n\t@Prop() readonly nativeType: NativeTypesType = NativeType.BUTTON\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\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\n\t */\n\t@Prop() readonly download: boolean\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang\n\t */\n\t@Prop() readonly hreflang: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-referrerpolicy\n\t */\n\t@Prop() readonly referrerpolicy: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel\n\t */\n\t@Prop() readonly rel: string\n\t/**\n\t * Indicates whether an asynchronous process is running\n\t */\n\t@Prop() readonly loading: string\n\t/**\n\t * Same as original parametr\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\n\t */\n\t@Prop() readonly focusable: boolean = true\n\t/**\n\t * Custom button identifier\n\t */\n\t@Prop({ attribute: 'identifier' }) readonly identifier: string\n\t/**\n\t * Indicates the id of a related component’s visually focused element\n\t */\n\t@Prop({ attribute: 'wcag-active-descendant' }) readonly wcagActiveDescendant: string\n\t/**\n\t * Use this property to add an aria-controls attribute to the button. Use the attribute to point to the unique id of the content that the button manages\n\t */\n\t@Prop({ attribute: 'wcag-controls' }) readonly wcagControls: string\n\t/**\n\t * Indicates the id of a component that describes the button\n\t */\n\t@Prop({ attribute: 'wcag-described-by' }) readonly wcagDescribedBy: string\n\t/**\n\t * Aria description the button\n\t */\n\t@Prop({ attribute: 'wcag-description' }) readonly wcagDescription: string\n\t/**\n\t * Details of the component\n\t */\n\t@Prop({ attribute: 'wcag-details' }) readonly wcagDetails: string\n\t/**\n\t * If a button expands or collapses adjacent content, then use the ariaExpanded prop to add the aria-expanded attribute to the button\n\t * Set the value to convey the current expanded (true) or collapsed (false) state of the content\n\t */\n\t@Prop({ attribute: 'wcag-expanded' }) readonly wcagExpanded: boolean\n\t/**\n\t * Adds accessible label for the button that is only shown for screen readers\n\t * Typically, this label text replaces the visible text on the button for users who use assistive technology\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\t/**\n\t * Indicates the id of a component owned by the button\n\t */\n\t@Prop({ attribute: 'wcag-owns' }) readonly wcagOwns: string\n\t/**\n\t * \tUse this property to add an aria-haspopup attribute to a button, if you are using it as a menu button\n\t */\n\t@Prop({ attribute: 'wcag-has-popup' }) readonly wcagHasPopup: string\n\t/**\n\t * Tells screen reader the element is pressed\n\t */\n\t@Prop({ attribute: 'wcag-pressed' }) readonly wcagPressed: string\n\t/**\n\t * Indicates the current item within a container or set of related elements\n\t */\n\t@Prop({ attribute: 'wcag-current' }) readonly wcagCurrent: string\n\t/**\n\t * Emitted when the button click\n\t */\n\t@Event({ eventName: 'gov-click' }) govClick: EventEmitter<PointerEvent>\n\t/**\n\t * Emitted when the button has focus\n\t */\n\t@Event({ eventName: 'gov-focus' }) govFocus: EventEmitter<FocusEvent>\n\t/**\n\t * Emitted when the button loses focus\n\t */\n\t@Event({ eventName: 'gov-blur' }) govBlur: EventEmitter<FocusEvent>\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(Variants, newValue, ButtonClass.root)\n\t}\n\n\t@Watch('type')\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(Types, newValue, ButtonClass.root)\n\t}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, ButtonClass.root)\n\t}\n\n\t@Watch('nativeType')\n\tvalidateNativeType(newValue: string): void {\n\t\tvalidateProp(NativeTypes, newValue, ButtonClass.root)\n\t}\n\n\t@State() isPressed = false\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateType(this.type)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateNativeType(this.nativeType)\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\tget classNames(): string {\n\t\tconst { h } = this\n\n\t\treturn prepareClasses([ButtonClass.root, h.hasSlot('left-icon') && ButtonClass.rootWithIcon, h.hasSlot('right-icon') && ButtonClass.rootWithIcon])\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? Tags.A : Tags.BUTTON\n\t\tconst nativeType = Tag === Tags.A ? undefined : this.nativeType\n\n\t\treturn (\n\t\t\t<Host hoverable={true} size={this.size} variant={this.variant} class={this.h.classes(this.classNames)} type={this.type} inverse={this.inverse}>\n\t\t\t\t<Tag\n\t\t\t\t\tclass=\"element\"\n\t\t\t\t\tref={el => (this.buttonRef = el as HTMLButtonElement)}\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\tonFocus={() => this.govFocus.emit()}\n\t\t\t\t\tonBlur={() => this.govBlur.emit()}\n\t\t\t\t\tonMouseDown={() => (this.isPressed = true)}\n\t\t\t\t\tonMouseUp={() => (this.isPressed = false)}\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\tid={this.identifier}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tdownload={this.download}\n\t\t\t\t\threflang={this.hreflang}\n\t\t\t\t\trel={this.rel}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\ttype={nativeType}\n\t\t\t\t\ttabindex={this.focusable ? '0' : '-1'}\n\t\t\t\t\taria-activedescendant={this.wcagActiveDescendant}\n\t\t\t\t\taria-describedby={this.wcagActiveDescendant}\n\t\t\t\t\taria-description={this.wcagDescription}\n\t\t\t\t\taria-controls={this.wcagControls}\n\t\t\t\t\taria-details={this.wcagDetails}\n\t\t\t\t\taria-expanded={toBoolAttrIfDefined(this.wcagExpanded)}\n\t\t\t\t\taria-label={this.wcagLabel}\n\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\taria-owns={this.wcagOwns}\n\t\t\t\t\taria-haspopup={toBoolAttrIfDefined(this.wcagHasPopup)}\n\t\t\t\t\taria-pressed={toBoolAttr(this.isPressed)}\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\taria-current={this.wcagCurrent}\n\t\t\t\t>\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot('right-icon') && <gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>}\n\t\t\t\t\t{this.h.hasSlot('left-icon') && <slot name=\"left-icon\"></slot>}\n\t\t\t\t\t<slot />\n\t\t\t\t\t{this.h.hasSlot('right-icon') && <slot name=\"right-icon\"></slot>}\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot('right-icon') && <gov-icon name=\"loader\" class=\"gov-spin-animation\"></gov-icon>}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent): void {\n\t\te.stopPropagation()\n\t\tif (this.disabled === false) {\n\t\t\tthis.govClick.emit(e)\n\t\t}\n\t}\n\n\t/**\n\t * Focus button element\n\t */\n\t@Method()\n\tasync setFocus(): Promise<void> {\n\t\tthis.buttonRef.focus()\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tif (this.focusable) {\n\t\t\tvalidateWcagRef(this.wcagActiveDescendant, 'aria-activedescendant', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagControls, 'aria-controls', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagDetails, 'aria-details', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagOwns, 'aria-owns', ButtonClass.root)\n\t\t\tvalidateWcagRef(this.wcagHasPopup, 'aria-haspopup', ButtonClass.root)\n\t\t\tvalidateWcagLabel(this.wcagLabel, this.wcagLabelledBy, ButtonClass.root)\n\t\t}\n\t}\n}\n"],"version":3}
|
|
@@ -2,23 +2,25 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
|
2
2
|
import { g as govHost, b as booleanString } from './template.js';
|
|
3
3
|
import { c as createID } from './string.utils.js';
|
|
4
4
|
import { g as govErrorLog } from './gov.log.js';
|
|
5
|
-
import {
|
|
5
|
+
import { v as validateWcagLabel } from './wcag.js';
|
|
6
|
+
import { c as canValidateWcagOnRender, d as delay } from './win.js';
|
|
6
7
|
import { d as defineCustomElement$2 } from './gov-icon2.js';
|
|
7
8
|
|
|
8
9
|
const CardClass = {
|
|
9
|
-
root:
|
|
10
|
-
header:
|
|
11
|
-
title:
|
|
12
|
-
inner:
|
|
13
|
-
img:
|
|
14
|
-
main:
|
|
15
|
-
content:
|
|
16
|
-
icon:
|
|
17
|
-
btns:
|
|
18
|
-
footer:
|
|
10
|
+
root: 'gov-card',
|
|
11
|
+
header: 'gov-card__header',
|
|
12
|
+
title: 'gov-card__title',
|
|
13
|
+
inner: 'gov-card__inner',
|
|
14
|
+
img: 'gov-card__img',
|
|
15
|
+
main: 'gov-card__main',
|
|
16
|
+
content: 'gov-card__content',
|
|
17
|
+
icon: 'gov-card__icon',
|
|
18
|
+
btns: 'gov-card__btns',
|
|
19
|
+
footer: 'gov-card__footer',
|
|
20
|
+
arrow: 'gov-card__arrow',
|
|
19
21
|
};
|
|
20
22
|
|
|
21
|
-
const govCardCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}.gov-card{display:flex;flex-direction:column;
|
|
23
|
+
const govCardCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-card{position:relative;display:flex;width:100%;flex-direction:column;border:var(--gov-card-border-width, 0.0625rem solid var(--gov-color-secondary-500));border-radius:var(--gov-border-radius, 0.1875rem);background:var(--gov-card-bg, var(--gov-color-neutral-white));overflow:hidden}.gov-card__header{gap:1.75rem;width:100%;padding:1.5rem;border-bottom:var(--gov-card-border-width, 0.0625rem solid var(--gov-color-secondary-500));border-radius:0;text-align:left;text-transform:none;transition:background-color 150ms ease-in-out}.gov-card__arrow{flex:0 0 auto;width:1rem;height:1rem;color:var(--gov-card-arrow-color, var(--gov-color-primary))}.gov-card__title{margin:0;padding:0;font-family:var(--gov-font-family, \"Roboto\", sans-serif);font-weight:400;box-sizing:border-box;font-weight:var(--gov-text-xl-font-weight);font-size:var(--gov-text-xl-font-size);line-height:var(--gov-text-xl-line-height);letter-spacing:var(--gov-text-xl-letter-spacing);color:var(--gov-card-title-color, var(--gov-color-secondary-800));font-weight:700}.gov-card__img{width:100%;margin:0;line-height:1}.gov-card__img img{width:100%;height:auto}.gov-card__inner{display:flex;flex:1 1 auto;flex-direction:column}.gov-card__inner[aria-hidden=\"\"],.gov-card__inner[aria-hidden=true i],.gov-card__inner[aria-hidden=\"1\"]{display:none}.gov-card__main{display:flex;gap:16px 24px;flex:1 1 auto;flex-direction:column;padding:1.5rem}.gov-card__icon{flex:0 0 auto;width:2.5rem;height:2.5rem;color:var(--gov-card-icon-color, var(--gov-color-primary))}.gov-card__btns{display:flex;gap:1rem;flex:0 0 auto;flex-wrap:wrap}.gov-card__content>*:last-child{margin-bottom:0}.gov-card__footer{padding:1rem 1.5rem;background:var(--gov-card-footer-bg, var(--gov-color-primary-100))}.gov-card__footer>*:last-child{margin-bottom:0}.gov-card__footer p{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)}.gov-card[is-expanded=\"\"],.gov-card[is-expanded=true i],.gov-card[is-expanded=\"1\"]{height:100%}.gov-card[collapsible=\"\"] .gov-card__header,.gov-card[collapsible=true i] .gov-card__header,.gov-card[collapsible=\"1\"] .gov-card__header{display:inline-flex;vertical-align:middle;justify-content:center;align-items:center;border:0;background-color:transparent;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;justify-content:space-between;text-align:left}.gov-card[collapsible=\"\"] .gov-card__header:focus,.gov-card[collapsible=true i] .gov-card__header:focus,.gov-card[collapsible=\"1\"] .gov-card__header:focus{outline:none}.gov-card[collapsible=\"\"] .gov-card__header:focus,.gov-card[collapsible=true i] .gov-card__header:focus,.gov-card[collapsible=\"1\"] .gov-card__header:focus{outline:none}.gov-card[collapsible=\"\"] .gov-card__header:focus-visible,.gov-card[collapsible=true i] .gov-card__header:focus-visible,.gov-card[collapsible=\"1\"] .gov-card__header: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.125rem}@media not all and (pointer: coarse){.gov-card[collapsible=\"\"] .gov-card__header:hover,.gov-card[collapsible=true i] .gov-card__header:hover,.gov-card[collapsible=\"1\"] .gov-card__header:hover{background:var(--gov-card-header-hover-bg, var(--gov-color-primary-100))}}.gov-card[collapsible=\"\"][is-expanded=\"\"] .gov-card__header,.gov-card[collapsible=\"\"][is-expanded=true i] .gov-card__header,.gov-card[collapsible=\"\"][is-expanded=\"1\"] .gov-card__header,.gov-card[collapsible=true i][is-expanded=\"\"] .gov-card__header,.gov-card[collapsible=true i][is-expanded=true i] .gov-card__header,.gov-card[collapsible=true i][is-expanded=\"1\"] .gov-card__header,.gov-card[collapsible=\"1\"][is-expanded=\"\"] .gov-card__header,.gov-card[collapsible=\"1\"][is-expanded=true i] .gov-card__header,.gov-card[collapsible=\"1\"][is-expanded=\"1\"] .gov-card__header{border-bottom:var(--gov-card-border-width, 0.0625rem solid var(--gov-color-secondary-500))}.gov-card[collapsible=\"\"][is-expanded=\"\"] .gov-card__arrow,.gov-card[collapsible=\"\"][is-expanded=true i] .gov-card__arrow,.gov-card[collapsible=\"\"][is-expanded=\"1\"] .gov-card__arrow,.gov-card[collapsible=true i][is-expanded=\"\"] .gov-card__arrow,.gov-card[collapsible=true i][is-expanded=true i] .gov-card__arrow,.gov-card[collapsible=true i][is-expanded=\"1\"] .gov-card__arrow,.gov-card[collapsible=\"1\"][is-expanded=\"\"] .gov-card__arrow,.gov-card[collapsible=\"1\"][is-expanded=true i] .gov-card__arrow,.gov-card[collapsible=\"1\"][is-expanded=\"1\"] .gov-card__arrow{transform:scale(-1)}@media (min-width: 30em){.gov-card[promotion=\"\"] .gov-card__main,.gov-card[promotion=true i] .gov-card__main,.gov-card[promotion=\"1\"] .gov-card__main{flex-direction:row;padding:2rem}.gov-card[promotion=\"\"] .gov-card__icon,.gov-card[promotion=true i] .gov-card__icon,.gov-card[promotion=\"1\"] .gov-card__icon{width:3rem;height:3rem}.gov-card[promotion=\"\"] .gov-card__btns,.gov-card[promotion=true i] .gov-card__btns,.gov-card[promotion=\"1\"] .gov-card__btns{flex-direction:column}}";
|
|
22
24
|
|
|
23
25
|
const GovCard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
24
26
|
constructor() {
|
|
@@ -29,16 +31,16 @@ const GovCard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
29
31
|
this.label = undefined;
|
|
30
32
|
this.collapsible = false;
|
|
31
33
|
this.expanded = false;
|
|
32
|
-
this.headlineTag =
|
|
34
|
+
this.headlineTag = 'h3';
|
|
33
35
|
this.wcagTriggerLabel = undefined;
|
|
34
36
|
this.wcagTriggerLabelledBy = undefined;
|
|
35
37
|
this.isExpanded = undefined;
|
|
36
38
|
this.h = govHost(this.host);
|
|
37
|
-
this.headlineId = createID(
|
|
38
|
-
this.contentId = createID(
|
|
39
|
+
this.headlineId = createID('GovCardHeadline');
|
|
40
|
+
this.contentId = createID('GovCardContent');
|
|
39
41
|
}
|
|
40
42
|
validateHeadlineTag(newValue) {
|
|
41
|
-
const validTags = [
|
|
43
|
+
const validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span'];
|
|
42
44
|
if (newValue) {
|
|
43
45
|
if (!validTags.includes(newValue)) {
|
|
44
46
|
govErrorLog(`[${CardClass.root}]: Tag ${newValue} is not allowed.`);
|
|
@@ -60,7 +62,7 @@ const GovCard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
60
62
|
}
|
|
61
63
|
render() {
|
|
62
64
|
const HeadlineTag = this.headlineTag;
|
|
63
|
-
return (h(Host, { class: this.h.classes(CardClass.root), "is-expanded": this.isExpanded, collapsible: booleanString(this.collapsible), promotion: this.promotion }, this.label && this.collapsible ? (h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.wcagTriggerLabel, "aria-labelledby": this.wcagTriggerLabelledBy, "aria-expanded": booleanString(this.isExpanded), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, h(HeadlineTag, { class: CardClass.title }, this.label), h("gov-icon", { name: "arrow-down" }))) : null, this.label && !this.collapsible ? (h("div", { class: CardClass.header }, h(HeadlineTag, { class: CardClass.title }, this.label))) : null, h("div", { class: CardClass.inner, id: this.contentId, "aria-hidden": this.collapsible ? booleanString(!this.isExpanded) : undefined, hidden: this.collapsible ? !this.isExpanded : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined }, this.h.hasSlot(
|
|
65
|
+
return (h(Host, { class: this.h.classes(CardClass.root), "is-expanded": this.isExpanded, collapsible: booleanString(this.collapsible), promotion: this.promotion }, this.label && this.collapsible ? (h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.wcagTriggerLabel, "aria-labelledby": this.wcagTriggerLabelledBy, "aria-expanded": booleanString(this.isExpanded), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, h(HeadlineTag, { class: CardClass.title }, this.label), h("gov-icon", { class: CardClass.arrow, name: "arrow-down" }))) : null, this.label && !this.collapsible ? (h("div", { class: CardClass.header }, h(HeadlineTag, { class: CardClass.title }, this.label))) : null, h("div", { class: CardClass.inner, id: this.contentId, "aria-hidden": this.collapsible ? booleanString(!this.isExpanded) : undefined, hidden: this.collapsible ? !this.isExpanded : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined }, this.h.hasSlot('img') && (h("p", { class: CardClass.img }, h("slot", { name: "img" }))), h("div", { class: CardClass.main }, this.h.hasSlot('icon') && this.promotion && (h("div", { class: CardClass.icon }, h("slot", { name: "icon" }))), h("div", { class: CardClass.content }, h("slot", null)), this.h.hasSlot('btn') && this.promotion && (h("div", { class: CardClass.btns }, h("slot", { name: "btn" })))), this.h.hasSlot('footer') && (h("div", { class: CardClass.footer }, h("slot", { name: "footer" }))))));
|
|
64
66
|
}
|
|
65
67
|
onClickHandler(e) {
|
|
66
68
|
e.stopPropagation();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-card.js","mappings":";;;;;;;AAAO,MAAM,SAAS,GAAG;EACxB,IAAI,EAAE,UAAU;EAChB,MAAM,EAAE,kBAAkB;EAC1B,KAAK,EAAE,iBAAiB;EACxB,KAAK,EAAE,iBAAiB;EACxB,GAAG,EAAE,eAAe;EACpB,IAAI,EAAE,gBAAgB;EACtB,OAAO,EAAE,mBAAmB;EAC5B,IAAI,EAAE,gBAAgB;EACtB,IAAI,EAAE,gBAAgB;EACtB,MAAM,EAAE,kBAAkB;CAC1B;;ACXD,MAAM,UAAU,GAAG,6yKAA6yK;;MCcnzKA,SAAO;EAKnB;;;;qBAWsC,KAAK;;uBAQH,KAAK;oBAIR,KAAK;uBAI0B,IAAI;;;;IA1BvE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3B,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAA;IAC7C,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AAK,KAAK,EAAE,SAAS,CAAC,OAAO,IAC5B,eAAQ,CACH,EAEL,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,SAAS,KACvC,WAAK,KAAK,EAAE,SAAS,CAAC,IAAI,IACzB,YAAM,IAAI,EAAC,KAAK,GAAG,CACd,CACN,CACI,EAEL,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,KACxB,WAAK,KAAK,EAAE,SAAS,CAAC,MAAM,IAC3B,YAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,CACN,CACI,CACA,EACP;GAED;EAEO,cAAc,CAAC,CAAC;IACvB,CAAC,CAAC,eAAe,EAAE,CAAA;IACnB,IAAI,IAAI,CAAC,WAAW,EAAE;MACrB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAA;MAClC,IAAI,CAAC,WAAW,EAAE,CAAA;KAClB;GACD;;;;EAMD,MAAM,IAAI;IACT,IAAI,IAAI,CAAC,WAAW,EAAE;MACrB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;MACtB,IAAI,CAAC,WAAW,EAAE,CAAA;KAClB;GACD;;;;EAMD,MAAM,KAAK;IACV,IAAI,IAAI,CAAC,WAAW,EAAE;MACrB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAA;MACvB,IAAI,CAAC,WAAW,EAAE,CAAA;KAClB;GACD;;;;EAMD,MAAM,YAAY;IACjB,IAAI,IAAI,CAAC,WAAW,EAAE;MACrB,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;KACpF;GACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovCard"],"sources":["../../../packages/core/src/components/gov-card/constants.ts","../../../packages/core/src/components/gov-card/gov-card.scss?tag=gov-card","../../../packages/core/src/components/gov-card/gov-card.tsx"],"sourcesContent":["export const CardClass = {\n\troot: \"gov-card\",\n\theader: \"gov-card__header\",\n\ttitle: \"gov-card__title\",\n\tinner: \"gov-card__inner\",\n\timg: \"gov-card__img\",\n\tmain: \"gov-card__main\",\n\tcontent: \"gov-card__content\",\n\ticon: \"gov-card__icon\",\n\tbtns: \"gov-card__btns\",\n\tfooter: \"gov-card__footer\",\n}\n","/*\n * Alert\n */\n\n$class: \".gov-card\";\n\n#{$class} {\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\tborder: $card-border;\n\tborder-radius: $border-radius;\n\tbackground: $card-bg;\n\toverflow: hidden;\n\t&__header {\n\t\tgap: rem-calc(28);\n\t\twidth: 100%;\n\t\tpadding: rem-calc(24);\n\t\tborder-bottom: $card-border;\n\t\tborder-radius: 0;\n\t\ttext-align: left;\n\t\ttext-transform: none;\n\t\ttransition: background-color $t ease-in-out;\n\t\t.gov-icon {\n\t\t\tflex: 0 0 auto;\n\t\t\twidth: rem-calc(16);\n\t\t\theight: rem-calc(16);\n\t\t\tcolor: $card-arrow-color;\n\t\t}\n\t}\n\t&__title {\n\t\t@include general;\n\t\t@include typography($font-size-xl);\n\t\tcolor: $card-title-color;\n\t\tfont-weight: 700;\n\t}\n\t&__img {\n\t\twidth: 100%;\n\t\tmargin: 0;\n\t\tline-height: 1;\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t}\n\t}\n\t&__inner {\n\t\tdisplay: flex;\n\t\tflex: 1 1 auto;\n\t\tflex-direction: column;\n\t\t@include parameter(\"aria-hidden\") {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\t&__main {\n\t\tdisplay: flex;\n\t\tgap: 16px 24px;\n\t\tflex: 1 1 auto;\n\t\tflex-direction: column;\n\t\tpadding: rem-calc(24);\n\t}\n\t&__icon {\n\t\tflex: 0 0 auto;\n\t\twidth: rem-calc(40);\n\t\theight: rem-calc(40);\n\t\tcolor: $card-icon-color;\n\t}\n\t&__btns {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\tflex: 0 0 auto;\n\t\tflex-wrap: wrap;\n\t}\n\t&__footer {\n\t\tpadding: rem-calc(16 24);\n\t\tbackground: $card-footer-bg;\n\t\tp {\n\t\t\t@include typography($font-size-s);\n\t\t}\n\t}\n\t&__content > *:last-child,\n\t&__footer > *:last-child {\n\t\tmargin-bottom: 0;\n\t}\n\n\t// STATES\n\t@include parameter(\"is-expanded\") {\n\t\theight: 100%;\n\t}\n\t@include parameter(\"collapsible\") {\n\t\t#{$class} {\n\t\t\t&__header {\n\t\t\t\t@include button-core();\n\t\t\t\t@include focus-outline($border-radius, rem-calc(-2));\n\t\t\t\tjustify-content: space-between;\n\t\t\t\ttext-align: left;\n\t\t\t\t@include hover() {\n\t\t\t\t\tbackground: $card-header-hover-bg;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@include parameter(\"is-expanded\") {\n\t\t\t#{$class} {\n\t\t\t\t&__header {\n\t\t\t\t\tborder-bottom: $card-border;\n\t\t\t\t\t.gov-icon {\n\t\t\t\t\t\ttransform: scale(-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t// VARIANTS\n\t\t@include parameter(\"promotion\") {\n\t\t\t#{$class} {\n\t\t\t\t&__main {\n\t\t\t\t\tflex-direction: row;\n\t\t\t\t\tpadding: rem-calc(32);\n\t\t\t\t}\n\t\t\t\t&__icon {\n\t\t\t\t\twidth: rem-calc(48);\n\t\t\t\t\theight: rem-calc(48);\n\t\t\t\t}\n\t\t\t\t&__btns {\n\t\t\t\t\tflex-direction: column;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch, State, Method, Event, EventEmitter } from \"@stencil/core\"\nimport { CardClass } from \"./constants\"\nimport { govHost, booleanString } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.d\"\nimport { createID } from \"../../utils/string.utils\"\nimport { govErrorLog } from \"../../helpers/Log/gov.log\"\nimport { validateWcagLabel } from \"../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\nimport { delay } from \"../../utils/utils\"\n\n@Component({\n\ttag: \"gov-card\",\n\tstyleUrl: \"gov-card.scss\",\n})\nexport class GovCard {\n\tprivate h: GovHost\n\tprivate readonly headlineId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.headlineId = createID(\"GovCardHeadline\")\n\t\tthis.contentId = createID(\"GovCardContent\")\n\t}\n\n\t@Element() host: HTMLGovCardElement\n\n\t/**\n\t * Style variation of the card.\n\t */\n\t@Prop() readonly promotion: boolean = false\n\t/**\n\t * Item label of the card\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Defines wether the card can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the card is open or closed by default\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Used to change the HMTL tag in the card headline for correct semantic structure\n\t */\n\t@Prop({ attribute: \"headline-tag\" }) readonly headlineTag: string = \"h3\"\n\t/**\n\t * Adds accessible label for the collapsible button that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: \"wcag-trigger-label\" }) wcagTriggerLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for collapsible card\n\t */\n\t@Prop({ attribute: \"wcag-trigger-labelled-by\" }) wcagTriggerLabelledBy: string\n\t/**\n\t * Called when the card toggle state changes\n\t */\n\t@Event({ eventName: \"gov-toggle\" }) govToggle: EventEmitter\n\t@State() isExpanded: boolean\n\n\t@Watch(\"headlineTag\")\n\tvalidateHeadlineTag(newValue: string): void {\n\t\tconst validTags = [\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"span\"]\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${CardClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.isExpanded = this.label ? this.expanded : true\n\t\tthis.validateHeadlineTag(this.headlineTag)\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\tprivate emmitChange(): void {\n\t\tthis.govToggle.emit({ open: this.isExpanded, element: this.host })\n\t}\n\n\n\trender() {\n\t\tconst HeadlineTag = this.headlineTag\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(CardClass.root)}\n\t\t\t is-expanded={this.isExpanded}\n\t\t\t collapsible={booleanString(this.collapsible)}\n\t\t\t promotion={this.promotion}>\n\n\t\t\t\t{this.label && this.collapsible ? (\n\t\t\t\t\t<button\n\t\t\t\t\t\tid={this.headlineId}\n\t\t\t\t\t\tclass={CardClass.header}\n\t\t\t\t\t\taria-label={this.wcagTriggerLabel}\n\t\t\t\t\t\taria-labelledby={this.wcagTriggerLabelledBy}\n\t\t\t\t\t\taria-expanded={booleanString(this.isExpanded)}\n\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}>\n\t\t\t\t\t\t<HeadlineTag class={CardClass.title}>\n\t\t\t\t\t\t\t{this.label}\n\t\t\t\t\t\t</HeadlineTag>\n\t\t\t\t\t\t<gov-icon name=\"arrow-down\"></gov-icon>\n\t\t\t\t\t</button>) : null}\n\n\t\t\t\t{this.label && !this.collapsible ? (\n\t\t\t\t\t<div class={CardClass.header}>\n\t\t\t\t\t\t<HeadlineTag class={CardClass.title}>\n\t\t\t\t\t\t\t{this.label}\n\t\t\t\t\t\t</HeadlineTag>\n\t\t\t\t\t</div>) : null}\n\n\t\t\t\t<div class={CardClass.inner}\n\t\t\t\t id={this.contentId}\n\t\t\t\t aria-hidden={this.collapsible ? booleanString(!this.isExpanded) : undefined}\n\t\t\t\t hidden={this.collapsible ? !this.isExpanded : undefined}\n\t\t\t\t aria-labelledby={this.collapsible ? this.headlineId : undefined}>\n\t\t\t\t\t{this.h.hasSlot(\"img\") && (\n\t\t\t\t\t\t<p class={CardClass.img}>\n\t\t\t\t\t\t\t<slot name=\"img\" />\n\t\t\t\t\t\t</p>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div class={CardClass.main}>\n\t\t\t\t\t\t{this.h.hasSlot(\"icon\") && this.promotion && (\n\t\t\t\t\t\t\t<div class={CardClass.icon}>\n\t\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t<div class={CardClass.content}>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t{this.h.hasSlot(\"btn\") && this.promotion && (\n\t\t\t\t\t\t\t<div class={CardClass.btns}>\n\t\t\t\t\t\t\t\t<slot name=\"btn\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{this.h.hasSlot(\"footer\") && (\n\t\t\t\t\t\t<div class={CardClass.footer}>\n\t\t\t\t\t\t\t<slot name=\"footer\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\n\t}\n\n\tprivate onClickHandler(e) {\n\t\te.stopPropagation()\n\t\tif (this.collapsible) {\n\t\t\tthis.isExpanded = !this.isExpanded\n\t\t\tthis.emmitChange()\n\t\t}\n\t}\n\n\t/**\n\t * Open the card if it is collapsible\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tthis.isExpanded = true\n\t\t\tthis.emmitChange()\n\t\t}\n\t}\n\n\t/**\n\t * Close the card if it is collapsible\n\t */\n\t@Method()\n\tasync close(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tthis.isExpanded = false\n\t\t\tthis.emmitChange()\n\t\t}\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tvalidateWcagLabel(this.wcagTriggerLabel, this.wcagTriggerLabelledBy, CardClass.root)\n\t\t}\n\t}\n}\n"],"version":3}
|
|
1
|
+
{"file":"gov-card.js","mappings":";;;;;;;;AAAO,MAAM,SAAS,GAAG;EACxB,IAAI,EAAE,UAAU;EAChB,MAAM,EAAE,kBAAkB;EAC1B,KAAK,EAAE,iBAAiB;EACxB,KAAK,EAAE,iBAAiB;EACxB,GAAG,EAAE,eAAe;EACpB,IAAI,EAAE,gBAAgB;EACtB,OAAO,EAAE,mBAAmB;EAC5B,IAAI,EAAE,gBAAgB;EACtB,IAAI,EAAE,gBAAgB;EACtB,MAAM,EAAE,kBAAkB;EAC1B,KAAK,EAAE,iBAAiB;CACxB;;ACZD,MAAM,UAAU,GAAG,syKAAsyK;;MCe5yKA,SAAO;EAKnB;;;;qBAWsC,KAAK;;uBAQH,KAAK;oBAIR,KAAK;uBAI0B,IAAI;;;;IA1BvE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3B,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAA;IAC7C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAA;GAC3C;EAuCD,mBAAmB,CAAC,QAAgB;IACnC,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;IAC9D,IAAI,QAAQ,EAAE;MACb,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClC,WAAW,CAAC,IAAI,SAAS,CAAC,IAAI,UAAU,QAAQ,kBAAkB,CAAC,CAAA;OACnE;KACD;GACD;EAED,i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B,CACN,CACI,CACA,EACP;GACD;EAEO,cAAc,CAAC,CAAC;IACvB,CAAC,CAAC,eAAe,EAAE,CAAA;IACnB,IAAI,IAAI,CAAC,WAAW,EAAE;MACrB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAA;MAClC,IAAI,CAAC,WAAW,EAAE,CAAA;KAClB;GACD;;;;EAMD,MAAM,IAAI;IACT,IAAI,IAAI,CAAC,WAAW,EAAE;MACrB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;MACtB,IAAI,CAAC,WAAW,EAAE,CAAA;KAClB;GACD;;;;EAMD,MAAM,KAAK;IACV,IAAI,IAAI,CAAC,WAAW,EAAE;MACrB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAA;MACvB,IAAI,CAAC,WAAW,EAAE,CAAA;KAClB;GACD;;;;EAMD,MAAM,YAAY;IACjB,IAAI,IAAI,CAAC,WAAW,EAAE;MACrB,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;KACpF;GACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovCard"],"sources":["../../../packages/core/src/components/gov-card/constants.ts","../../../packages/core/src/components/gov-card/gov-card.scss?tag=gov-card","../../../packages/core/src/components/gov-card/gov-card.tsx"],"sourcesContent":["export const CardClass = {\n\troot: 'gov-card',\n\theader: 'gov-card__header',\n\ttitle: 'gov-card__title',\n\tinner: 'gov-card__inner',\n\timg: 'gov-card__img',\n\tmain: 'gov-card__main',\n\tcontent: 'gov-card__content',\n\ticon: 'gov-card__icon',\n\tbtns: 'gov-card__btns',\n\tfooter: 'gov-card__footer',\n\tarrow: 'gov-card__arrow',\n}\n","/*\n * Alert\n */\n\n$class: \".gov-card\";\n\n#{$class} {\n\t@include base(flex);\n\tflex-direction: column;\n\tborder: $card-border;\n\tborder-radius: $border-radius;\n\tbackground: $card-bg;\n\toverflow: hidden;\n\t&__header {\n\t\tgap: rem-calc(28);\n\t\twidth: 100%;\n\t\tpadding: rem-calc(24);\n\t\tborder-bottom: $card-border;\n\t\tborder-radius: 0;\n\t\ttext-align: left;\n\t\ttext-transform: none;\n\t\ttransition: background-color $t ease-in-out;\n\t}\n\t&__arrow {\n\t\tflex: 0 0 auto;\n\t\twidth: rem-calc(16);\n\t\theight: rem-calc(16);\n\t\tcolor: $card-arrow-color;\n\t}\n\t&__title {\n\t\t@include general;\n\t\t@include typography($font-size-xl);\n\t\tcolor: $card-title-color;\n\t\tfont-weight: 700;\n\t}\n\t&__img {\n\t\twidth: 100%;\n\t\tmargin: 0;\n\t\tline-height: 1;\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: auto;\n\t\t}\n\t}\n\t&__inner {\n\t\tdisplay: flex;\n\t\tflex: 1 1 auto;\n\t\tflex-direction: column;\n\t\t@include parameter(\"aria-hidden\") {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\t&__main {\n\t\tdisplay: flex;\n\t\tgap: 16px 24px;\n\t\tflex: 1 1 auto;\n\t\tflex-direction: column;\n\t\tpadding: rem-calc(24);\n\t}\n\t&__icon {\n\t\tflex: 0 0 auto;\n\t\twidth: rem-calc(40);\n\t\theight: rem-calc(40);\n\t\tcolor: $card-icon-color;\n\t}\n\t&__btns {\n\t\tdisplay: flex;\n\t\tgap: rem-calc(16);\n\t\tflex: 0 0 auto;\n\t\tflex-wrap: wrap;\n\t}\n\t&__content {\n\t\t@include reset-last-margin();\n\t}\n\t&__footer {\n\t\t@include reset-last-margin();\n\t\tpadding: rem-calc(16 24);\n\t\tbackground: $card-footer-bg;\n\t\tp {\n\t\t\t@include typography($font-size-s);\n\t\t}\n\t}\n\n\t// STATES\n\t@include parameter(\"is-expanded\") {\n\t\theight: 100%;\n\t}\n\n\t// VARIANTS\n\t@include parameter(\"collapsible\") {\n\t\t#{$class} {\n\t\t\t&__header {\n\t\t\t\t@include button-core();\n\t\t\t\t@include focus-outline($border-radius, rem-calc(-2));\n\t\t\t\tjustify-content: space-between;\n\t\t\t\ttext-align: left;\n\t\t\t\t@include hover() {\n\t\t\t\t\tbackground: $card-header-hover-bg;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// STATES\n\t\t@include parameter(\"is-expanded\") {\n\t\t\t#{$class} {\n\t\t\t\t&__header {\n\t\t\t\t\tborder-bottom: $card-border;\n\t\t\t\t}\n\t\t\t\t&__arrow {\n\t\t\t\t\ttransform: scale(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t// VARIANTS\n\t\t@include parameter(\"promotion\") {\n\t\t\t#{$class} {\n\t\t\t\t&__main {\n\t\t\t\t\tflex-direction: row;\n\t\t\t\t\tpadding: rem-calc(32);\n\t\t\t\t}\n\t\t\t\t&__icon {\n\t\t\t\t\twidth: rem-calc(48);\n\t\t\t\t\theight: rem-calc(48);\n\t\t\t\t}\n\t\t\t\t&__btns {\n\t\t\t\t\tflex-direction: column;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop, Watch, State, Method, Event, EventEmitter } from '@stencil/core'\nimport { CardClass } from './constants'\nimport { govHost, booleanString } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.d'\nimport { createID } from '../../utils/string.utils'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { validateWcagLabel } from '../../helpers/Validate/wcag'\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\nimport { delay } from '../../utils/utils'\nimport { GovCardChangeEvent } from './interfaces';\n\n@Component({\n\ttag: 'gov-card',\n\tstyleUrl: 'gov-card.scss',\n})\nexport class GovCard {\n\tprivate h: GovHost\n\tprivate readonly headlineId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.headlineId = createID('GovCardHeadline')\n\t\tthis.contentId = createID('GovCardContent')\n\t}\n\n\t@Element() host: HTMLGovCardElement\n\n\t/**\n\t * Style variation of the card.\n\t */\n\t@Prop() readonly promotion: boolean = false\n\t/**\n\t * Item label of the card\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Defines wether the card can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the card is open or closed by default\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Used to change the HMTL tag in the card headline for correct semantic structure\n\t */\n\t@Prop({ attribute: 'headline-tag' }) readonly headlineTag: string = 'h3'\n\t/**\n\t * Adds accessible label for the collapsible button that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-trigger-label' }) wcagTriggerLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for collapsible card\n\t */\n\t@Prop({ attribute: 'wcag-trigger-labelled-by' }) wcagTriggerLabelledBy: string\n\t/**\n\t * Called when the card toggle state changes\n\t */\n\t@Event({ eventName: 'gov-toggle' }) govToggle: EventEmitter<GovCardChangeEvent>\n\t@State() isExpanded: boolean\n\n\t@Watch('headlineTag')\n\tvalidateHeadlineTag(newValue: string): void {\n\t\tconst validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span']\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${CardClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.isExpanded = this.label ? this.expanded : true\n\t\tthis.validateHeadlineTag(this.headlineTag)\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\tprivate emmitChange(): void {\n\t\tthis.govToggle.emit({ open: this.isExpanded, element: this.host })\n\t}\n\n\trender() {\n\t\tconst HeadlineTag = this.headlineTag\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(CardClass.root)} is-expanded={this.isExpanded} collapsible={booleanString(this.collapsible)} promotion={this.promotion}>\n\t\t\t\t{this.label && this.collapsible ? (\n\t\t\t\t\t<button\n\t\t\t\t\t\tid={this.headlineId}\n\t\t\t\t\t\tclass={CardClass.header}\n\t\t\t\t\t\taria-label={this.wcagTriggerLabel}\n\t\t\t\t\t\taria-labelledby={this.wcagTriggerLabelledBy}\n\t\t\t\t\t\taria-expanded={booleanString(this.isExpanded)}\n\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<HeadlineTag class={CardClass.title}>{this.label}</HeadlineTag>\n\t\t\t\t\t\t<gov-icon class={CardClass.arrow} name=\"arrow-down\"></gov-icon>\n\t\t\t\t\t</button>\n\t\t\t\t) : null}\n\n\t\t\t\t{this.label && !this.collapsible ? (\n\t\t\t\t\t<div class={CardClass.header}>\n\t\t\t\t\t\t<HeadlineTag class={CardClass.title}>{this.label}</HeadlineTag>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t<div\n\t\t\t\t\tclass={CardClass.inner}\n\t\t\t\t\tid={this.contentId}\n\t\t\t\t\taria-hidden={this.collapsible ? booleanString(!this.isExpanded) : undefined}\n\t\t\t\t\thidden={this.collapsible ? !this.isExpanded : undefined}\n\t\t\t\t\taria-labelledby={this.collapsible ? this.headlineId : undefined}\n\t\t\t\t>\n\t\t\t\t\t{this.h.hasSlot('img') && (\n\t\t\t\t\t\t<p class={CardClass.img}>\n\t\t\t\t\t\t\t<slot name=\"img\" />\n\t\t\t\t\t\t</p>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div class={CardClass.main}>\n\t\t\t\t\t\t{this.h.hasSlot('icon') && this.promotion && (\n\t\t\t\t\t\t\t<div class={CardClass.icon}>\n\t\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t<div class={CardClass.content}>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t{this.h.hasSlot('btn') && this.promotion && (\n\t\t\t\t\t\t\t<div class={CardClass.btns}>\n\t\t\t\t\t\t\t\t<slot name=\"btn\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{this.h.hasSlot('footer') && (\n\t\t\t\t\t\t<div class={CardClass.footer}>\n\t\t\t\t\t\t\t<slot name=\"footer\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e) {\n\t\te.stopPropagation()\n\t\tif (this.collapsible) {\n\t\t\tthis.isExpanded = !this.isExpanded\n\t\t\tthis.emmitChange()\n\t\t}\n\t}\n\n\t/**\n\t * Open the card if it is collapsible\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tthis.isExpanded = true\n\t\t\tthis.emmitChange()\n\t\t}\n\t}\n\n\t/**\n\t * Close the card if it is collapsible\n\t */\n\t@Method()\n\tasync close(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tthis.isExpanded = false\n\t\t\tthis.emmitChange()\n\t\t}\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tvalidateWcagLabel(this.wcagTriggerLabel, this.wcagTriggerLabelledBy, CardClass.root)\n\t\t}\n\t}\n}\n"],"version":3}
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { s as slottedChildren } from './template.js';
|
|
2
|
+
import { g as govHost, s as slottedChildren } from './template.js';
|
|
3
3
|
|
|
4
4
|
const ContainerClass = {
|
|
5
5
|
root: 'gov-container',
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
const govContainerCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}.gov-container{display:block;width:100%;max-width:var(--gov-container-width, 75rem);margin-right:auto;margin-left:auto;padding-right:var(--gov-container-padding-mobile, 1.25rem);padding-left:var(--gov-container-padding-mobile, 1.25rem)}@media (min-width: 48em){.gov-container{padding-right:var(--gov-container-padding, 2.5rem);padding-left:var(--gov-container-padding, 2.5rem)}}";
|
|
8
|
+
const govContainerCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-container{display:block;width:100%;max-width:calc(var(--gov-container-width, 73.75rem) + 2 * var(--gov-container-padding, 2.5rem));margin-right:auto;margin-left:auto;padding-right:var(--gov-container-padding-mobile, 1.25rem);padding-left:var(--gov-container-padding-mobile, 1.25rem)}@media (min-width: 48em){.gov-container{padding-right:var(--gov-container-padding, 2.5rem);padding-left:var(--gov-container-padding, 2.5rem)}}";
|
|
9
9
|
|
|
10
10
|
const GovContainer$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super();
|
|
13
13
|
this.__registerHost();
|
|
14
|
+
this.h = govHost(this.host);
|
|
14
15
|
}
|
|
15
16
|
render() {
|
|
16
|
-
return (h(Host, { class: ContainerClass.root }, h("slot", null)));
|
|
17
|
+
return (h(Host, { class: this.h.classes(ContainerClass.root) }, h("slot", null)));
|
|
17
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns slotted children
|
|
21
|
+
*
|
|
22
|
+
* @return {Promise<Node[]>}
|
|
23
|
+
*/
|
|
18
24
|
async slottedChildren() {
|
|
19
25
|
return Promise.resolve(slottedChildren(this.host));
|
|
20
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-container.js","mappings":";;;AAAO,MAAM,cAAc,GAAG;EAC7B,IAAI,EAAE,eAAe;CACrB;;ACFD,MAAM,eAAe,GAAG,
|
|
1
|
+
{"file":"gov-container.js","mappings":";;;AAAO,MAAM,cAAc,GAAG;EAC7B,IAAI,EAAE,eAAe;CACrB;;ACFD,MAAM,eAAe,GAAG,qmBAAqmB;;MCShnBA,cAAY;EAGxB;;;IACC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAID,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,IAC/C,eAAQ,CACF,EACP;GACD;;;;;;EAQD,MAAM,eAAe;IACpB,OAAO,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;GAClD;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovContainer"],"sources":["../../../packages/core/src/components/gov-container/constants.tsx","../../../packages/core/src/components/gov-container/gov-container.scss?tag=gov-container","../../../packages/core/src/components/gov-container/gov-container.tsx"],"sourcesContent":["export const ContainerClass = {\n\troot: 'gov-container',\n}\n","/*\n * Container\n */\n\n$class: \".gov-container\";\n\n#{$class} {\n\t@include container();\n}\n","import { Component, Element, h, Host, Method } from \"@stencil/core\"\nimport { govHost, slottedChildren } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.d\"\nimport { ContainerClass } from \"./constants\"\n\n@Component({\n\ttag: \"gov-container\",\n\tstyleUrl: \"gov-container.scss\",\n})\nexport class GovContainer {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovContainerElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ContainerClass.root)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns slotted children\n\t *\n\t * @return {Promise<Node[]>}\n\t */\n\t@Method()\n\tasync slottedChildren(): Promise<Node[]> {\n\t\treturn Promise.resolve(slottedChildren(this.host))\n\t}\n}\n"],"version":3}
|
|
@@ -10,7 +10,7 @@ const CookiebarClass = {
|
|
|
10
10
|
actionsSecondary: 'gov-cookiebar__actions-secondary',
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
const govCookiebarCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}.gov-cookiebar{z-index:51;position:fixed;right:0;bottom:0;left:0;background-color:var(--gov-cookiebar-bg, var(--gov-color-
|
|
13
|
+
const govCookiebarCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-cookiebar{z-index:51;position:fixed;right:0;bottom:0;left:0;background-color:var(--gov-cookiebar-bg, var(--gov-color-neutral-white));box-shadow:var(--gov-cookiebar-box-shadow, 0 0.0625rem 2.5rem rgba(var(--gov-color-secondary-800-rgb), 0.45))}.gov-cookiebar__holder{display:block;width:100%;max-width:calc(var(--gov-container-width, 73.75rem) + 2 * var(--gov-container-padding, 2.5rem));margin-right:auto;margin-left:auto;padding-right:var(--gov-container-padding-mobile, 1.25rem);padding-left:var(--gov-container-padding-mobile, 1.25rem);padding-top:1.25rem;padding-bottom:1.25rem}@media (min-width: 48em){.gov-cookiebar__holder{padding-right:var(--gov-container-padding, 2.5rem);padding-left:var(--gov-container-padding, 2.5rem)}}.gov-cookiebar__holder>*{margin-bottom:0}.gov-cookiebar__holder>*+*{margin-top:2rem}.gov-cookiebar__content>*{margin-bottom:0}.gov-cookiebar__content>*+*{margin-top:0.75rem}.gov-cookiebar__content p{color:var(--gov-cookiebar-color, var(--gov-color-secondary-700));letter-spacing:0.0125em}.gov-cookiebar__actions,.gov-cookiebar__actions-primary,.gov-cookiebar__actions-secondary{display:flex;gap:0.625rem;flex-wrap:wrap;justify-content:space-between}@media (min-width: 48em){.gov-cookiebar__holder{padding-top:2rem;padding-bottom:2rem}.gov-cookiebar__actions,.gov-cookiebar__actions-primary,.gov-cookiebar__actions-secondary{gap:1rem}}";
|
|
14
14
|
|
|
15
15
|
const GovCookiebar$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
16
16
|
constructor() {
|
|
@@ -19,7 +19,7 @@ const GovCookiebar$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
19
19
|
this.h = govHost(this.host);
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { class: CookiebarClass.root }, h("div", { class: CookiebarClass.holder }, h("div", { class: CookiebarClass.content }, h("slot", null)), (this.h.hasSlot('actions-primary') || this.h.hasSlot('actions-secondary')) && (h("div", { class: CookiebarClass.actions }, this.h.hasSlot('actions-primary') && (h("div", { class: CookiebarClass.actionsPrimary }, h("slot", { name: "actions-primary" }))), this.h.hasSlot('actions-secondary') && (h("div", { class: CookiebarClass.actionsSecondary }, h("slot", { name: "actions-secondary" }))))))));
|
|
22
|
+
return (h(Host, { class: this.h.classes(CookiebarClass.root) }, h("div", { class: CookiebarClass.holder }, h("div", { class: CookiebarClass.content }, h("slot", null)), (this.h.hasSlot('actions-primary') || this.h.hasSlot('actions-secondary')) && (h("div", { class: CookiebarClass.actions }, this.h.hasSlot('actions-primary') && (h("div", { class: CookiebarClass.actionsPrimary }, h("slot", { name: "actions-primary" }))), this.h.hasSlot('actions-secondary') && (h("div", { class: CookiebarClass.actionsSecondary }, h("slot", { name: "actions-secondary" }))))))));
|
|
23
23
|
}
|
|
24
24
|
get host() { return this; }
|
|
25
25
|
static get style() { return govCookiebarCss; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-cookiebar.js","mappings":";;;AAAO,MAAM,cAAc,GAAG;EAC7B,IAAI,EAAE,eAAe;EACr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EACP;GACD;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovCookiebar"],"sources":["../../../packages/core/src/components/gov-cookiebar/constants.tsx","../../../packages/core/src/components/gov-cookiebar/gov-cookiebar.scss?tag=gov-cookiebar","../../../packages/core/src/components/gov-cookiebar/gov-cookiebar.tsx"],"sourcesContent":["export const CookiebarClass = {\n\troot: 'gov-cookiebar',\n\tholder: 'gov-cookiebar__holder',\n\tcontent: 'gov-cookiebar__content',\n\tactions: 'gov-cookiebar__actions',\n\tactionsPrimary: 'gov-cookiebar__actions-primary',\n\tactionsSecondary: 'gov-cookiebar__actions-secondary',\n}\n","/*\n * Cookiebar\n */\n\n$class: \".gov-cookiebar\";\n\n#{$class} {\n\t@include z-index(\"bar\", 1);\n\tposition: fixed;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\tbackground-color: $cookiebar-bg;\n\tbox-shadow: $cookiebar-box-shadow;\n\t&__holder {\n\t\t@include container();\n\t\t@include space(32);\n\t\tpadding-top: rem-calc(20);\n\t\tpadding-bottom: rem-calc(20);\n\t}\n\t&__content {\n\t\t@include space(12);\n\t\tp {\n\t\t\tcolor: $cookiebar-color;\n\t\t\tletter-spacing: em-calc(0.2);\n\t\t}\n\t}\n\t&__actions {\n\t\t&,\n\t\t&-primary,\n\t\t&-secondary {\n\t\t\tdisplay: flex;\n\t\t\tgap: rem-calc(10);\n\t\t\tflex-wrap: wrap;\n\t\t\tjustify-content: space-between;\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: md) {\n\t\t&__holder {\n\t\t\tpadding-top: rem-calc(32);\n\t\t\tpadding-bottom: rem-calc(32);\n\t\t}\n\t\t&__actions {\n\t\t\t&,\n\t\t\t&-primary,\n\t\t\t&-secondary {\n\t\t\t\tgap: rem-calc(16);\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host } from '@stencil/core'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.d'\nimport { CookiebarClass } from './constants'\n\n@Component({\n\ttag: 'gov-cookiebar',\n\tstyleUrl: 'gov-cookiebar.scss',\n})\nexport class GovCookiebar {\n\th: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovCookiebarElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(CookiebarClass.root)}>\n\t\t\t\t<div class={CookiebarClass.holder}>\n\t\t\t\t\t<div class={CookiebarClass.content}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{(this.h.hasSlot('actions-primary') || this.h.hasSlot('actions-secondary')) && (\n\t\t\t\t\t\t<div class={CookiebarClass.actions}>\n\t\t\t\t\t\t\t{this.h.hasSlot('actions-primary') && (\n\t\t\t\t\t\t\t\t<div class={CookiebarClass.actionsPrimary}>\n\t\t\t\t\t\t\t\t\t<slot name=\"actions-primary\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t{this.h.hasSlot('actions-secondary') && (\n\t\t\t\t\t\t\t\t<div class={CookiebarClass.actionsSecondary}>\n\t\t\t\t\t\t\t\t\t<slot name=\"actions-secondary\" />\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</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -2,13 +2,13 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
2
2
|
import { g as govHost } from './template.js';
|
|
3
3
|
|
|
4
4
|
const EmptyClass = {
|
|
5
|
-
root:
|
|
6
|
-
icon:
|
|
7
|
-
container:
|
|
8
|
-
content:
|
|
5
|
+
root: 'gov-empty',
|
|
6
|
+
icon: 'gov-empty__icon',
|
|
7
|
+
container: 'gov-empty__container',
|
|
8
|
+
content: 'gov-empty__content',
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
const govEmptyCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}.gov-empty{display:block;width:100%}.gov-empty__icon{display:inline-flex;justify-content:center;align-items:center;width:6rem;height:6rem;margin-bottom:2rem;border-radius:50%;background:linear-gradient(to bottom, var(--gov-color-primary-200), var(--gov-color-
|
|
11
|
+
const govEmptyCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-empty{position:relative;display:block;width:100%}.gov-empty__icon{display:inline-flex;justify-content:center;align-items:center;width:6rem;height:6rem;margin-bottom:2rem;border-radius:50%;background:var(--gov-empty-icon-circle-bg, linear-gradient(to bottom, var(--gov-color-primary-200), var(--gov-color-neutral-white)));color:var(--gov-empty-icon-color, var(--gov-color-primary))}.gov-empty__icon>*{width:3.5rem;height:3.5rem}.gov-empty__content>*:last-child{margin-bottom:0}";
|
|
12
12
|
|
|
13
13
|
const GovEmpty$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
14
14
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-empty.js","mappings":";;;AAAO,MAAM,UAAU,GAAG;EACzB,IAAI,EAAE,WAAW;EACjB,IAAI,EAAE,iBAAiB;EACvB,SAAS,EAAE,sBAAsB;EACjC,OAAO,EAAE,oBAAoB;CAC7B;;ACLD,MAAM,WAAW,GAAG,
|
|
1
|
+
{"file":"gov-empty.js","mappings":";;;AAAO,MAAM,UAAU,GAAG;EACzB,IAAI,EAAE,WAAW;EACjB,IAAI,EAAE,iBAAiB;EACvB,SAAS,EAAE,sBAAsB;EACjC,OAAO,EAAE,oBAAoB;CAC7B;;ACLD,MAAM,WAAW,GAAG,wpBAAwpB;;MCS/pBA,UAAQ;EAGpB;;;IACC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAID,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAC1C,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtB,WAAK,KAAK,EAAE,UAAU,CAAC,IAAI,IAC1B,YAAM,IAAI,EAAC,MAAM,GAAG,CACf,CACN,EACD,WAAK,KAAK,EAAE,UAAU,CAAC,OAAO,IAC7B,eAAQ,CACH,CACA,EACP;GACD;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovEmpty"],"sources":["../../../packages/core/src/components/gov-empty/constants.ts","../../../packages/core/src/components/gov-empty/gov-empty.scss?tag=gov-empty","../../../packages/core/src/components/gov-empty/gov-empty.tsx"],"sourcesContent":["export const EmptyClass = {\n\troot: 'gov-empty',\n\ticon: 'gov-empty__icon',\n\tcontainer: 'gov-empty__container',\n\tcontent: 'gov-empty__content',\n}\n","/*\n * Alert\n */\n\n$class: \".gov-empty\";\n\n#{$class} {\n\t@include base();\n\t&__icon {\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: rem-calc(96);\n\t\theight: rem-calc(96);\n\t\tmargin-bottom: calc(rem-calc(96) / 3);\n\t\tborder-radius: 50%;\n\t\tbackground: $empty-icon-circle-bg;\n\t\tcolor: $empty-icon-color;\n\t\t& > * {\n\t\t\twidth: rem-calc(56);\n\t\t\theight: rem-calc(56);\n\t\t}\n\t}\n\t&__content {\n\t\t@include reset-last-margin();\n\t}\n}\n","import { Component, Element, Host, h } from '@stencil/core'\nimport { EmptyClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.d'\n\n@Component({\n\ttag: 'gov-empty',\n\tstyleUrl: 'gov-empty.scss',\n})\nexport class GovEmpty {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovEmptyElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(EmptyClass.root)}>\n\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t<div class={EmptyClass.icon}>\n\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t<div class={EmptyClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -2,13 +2,13 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
2
2
|
import { g as govHost } from './template.js';
|
|
3
3
|
|
|
4
4
|
const ErrorCodeClass = {
|
|
5
|
-
root:
|
|
6
|
-
icon:
|
|
7
|
-
holder:
|
|
8
|
-
content:
|
|
5
|
+
root: 'gov-error-code',
|
|
6
|
+
icon: 'gov-error-code__icon',
|
|
7
|
+
holder: 'gov-error-code__holder',
|
|
8
|
+
content: 'gov-error-code__content',
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
const govErrorCodeCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}.gov-error-code{display:block;width:100%}.gov-error-code__holder{margin:0 auto;text-align:center}.gov-error-code__content>*:last-child{margin-bottom:0}.gov-error-code__icon{display:flex;justify-content:center;align-items:center;width:9.375rem;height:9.375rem;margin:0 auto 1.5rem;border-radius:50%;background:var(--gov-error-icon-circle-bg, linear-gradient(to bottom, var(--gov-color-primary-200), var(--gov-color-
|
|
11
|
+
const govErrorCodeCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-error-code{position:relative;display:block;width:100%}.gov-error-code__holder{margin:0 auto;text-align:center}.gov-error-code__content>*:last-child{margin-bottom:0}.gov-error-code__icon{display:flex;justify-content:center;align-items:center;width:9.375rem;height:9.375rem;margin:0 auto 1.5rem;border-radius:50%;background:var(--gov-error-icon-circle-bg, linear-gradient(to bottom, var(--gov-color-primary-200), var(--gov-color-neutral-white)));color:var(--gov-error-icon-color, var(--gov-color-primary))}.gov-error-code__icon>*{width:7.125rem;height:7.125rem}@media (min-width: 48em){.gov-error-code__icon{width:12.5rem;height:12.5rem;margin:0 auto 2rem}.gov-error-code__icon>*{width:9.5rem;height:9.5rem}}";
|
|
12
12
|
|
|
13
13
|
const GovErrorCode$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
14
14
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gov-error-code.js","mappings":";;;AAAO,MAAM,cAAc,GAAG;EAC7B,IAAI,EAAE,gBAAgB;EACtB,IAAI,EAAE,sBAAsB;EAC5B,MAAM,EAAE,wBAAwB;EAChC,OAAO,EAAE,yBAAyB;CAClC;;ACLD,MAAM,eAAe,GAAG
|
|
1
|
+
{"file":"gov-error-code.js","mappings":";;;AAAO,MAAM,cAAc,GAAG;EAC7B,IAAI,EAAE,gBAAgB;EACtB,IAAI,EAAE,sBAAsB;EAC5B,MAAM,EAAE,wBAAwB;EAChC,OAAO,EAAE,yBAAyB;CAClC;;ACLD,MAAM,eAAe,GAAG,83BAA83B;;MCSz4BA,cAAY;EAGxB;;;IACC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GAC3B;EAID,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,IAC/C,WAAK,KAAK,EAAE,cAAc,CAAC,MAAM,IAC/B,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KACtB,WAAK,KAAK,EAAE,cAAc,CAAC,IAAI,IAC9B,YAAM,IAAI,EAAC,MAAM,GAAG,CACf,CACN,EACD,WAAK,KAAK,EAAE,cAAc,CAAC,OAAO,IACjC,eAAQ,CACH,CACD,CACA,EACP;GACD;;;;;;;;;;;;;;;;;;;;;;;;","names":["GovErrorCode"],"sources":["../../../packages/core/src/components/gov-error-code/constants.ts","../../../packages/core/src/components/gov-error-code/gov-error-code.scss?tag=gov-error-code","../../../packages/core/src/components/gov-error-code/gov-error-code.tsx"],"sourcesContent":["export const ErrorCodeClass = {\n\troot: 'gov-error-code',\n\ticon: 'gov-error-code__icon',\n\tholder: 'gov-error-code__holder',\n\tcontent: 'gov-error-code__content',\n}\n","/*\n * Alert\n */\n\n$class: \".gov-error-code\";\n\n#{$class} {\n\t@include base();\n\t&__holder {\n\t\tmargin: 0 auto;\n\t\ttext-align: center;\n\t}\n\t&__content {\n\t\t@include reset-last-margin();\n\t}\n\t&__icon {\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: rem-calc(150);\n\t\theight: rem-calc(150);\n\t\tmargin: 0 auto rem-calc(24);\n\t\tborder-radius: 50%;\n\t\tbackground: $error-icon-circle-bg;\n\t\tcolor: $error-icon-color;\n\t\t& > * {\n\t\t\twidth: rem-calc(114);\n\t\t\theight: rem-calc(114);\n\t\t}\n\t}\n\n\t// MQ\n\t@include mq($from: md) {\n\t\t&__icon {\n\t\t\twidth: rem-calc(200);\n\t\t\theight: rem-calc(200);\n\t\t\tmargin: 0 auto rem-calc(32);\n\t\t\t& > * {\n\t\t\t\twidth: rem-calc(152);\n\t\t\t\theight: rem-calc(152);\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host } from '@stencil/core'\nimport { ErrorCodeClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.d'\n\n@Component({\n\ttag: 'gov-error-code',\n\tstyleUrl: 'gov-error-code.scss',\n})\nexport class GovErrorCode {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovErrorCodeElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(ErrorCodeClass.root)}>\n\t\t\t\t<div class={ErrorCodeClass.holder}>\n\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t<div class={ErrorCodeClass.icon}>\n\t\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t<div class={ErrorCodeClass.content}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as createID } from './string.utils.js';
|
|
3
|
-
import {
|
|
3
|
+
import { e as FormAutocompleteClass, f as Variants, S as Sizes$1 } from './form.js';
|
|
4
4
|
import { S as Sizes } from './sizes.js';
|
|
5
5
|
import { v as validateProp } from './props.js';
|
|
6
|
-
import { t as throttle } from './
|
|
6
|
+
import { t as throttle, h as has } from './win.js';
|
|
7
7
|
import { a as toBoolAttr } from './template.js';
|
|
8
8
|
import { d as defineCustomElement$2 } from './gov-form-input2.js';
|
|
9
9
|
import { d as defineCustomElement$1 } from './gov-icon2.js';
|
|
10
10
|
|
|
11
|
-
const govFormAutocompleteCss = ".gov-form-autocomplete__list{margin:0;padding:0}.gov-form-autocomplete__list>.gov-form-autocomplete__item{margin:0;padding:0;background:none}.gov-form-autocomplete__list>.gov-form-autocomplete__item::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}.gov-form-autocomplete{position:relative;display:block;width:100%}.gov-form-autocomplete__list{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);position:absolute;top:100%;right:0;left:0;z-index:5;max-height:14.0625rem;margin-top:0.5rem;border:var(--gov-autocomplete-item-hover, 0.0625rem solid var(--gov-color-secondary-500));border-radius:var(--gov-border-radius, 0.1875rem);background:var(--gov-autocomplete-bg, var(--gov-color-
|
|
11
|
+
const govFormAutocompleteCss = ".gov-form-autocomplete__list{margin:0;padding:0}.gov-form-autocomplete__list>.gov-form-autocomplete__item{margin:0;padding:0;background:none}.gov-form-autocomplete__list>.gov-form-autocomplete__item::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}.gov-form-autocomplete{position:relative;display:block;width:100%}.gov-form-autocomplete__list{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);position:absolute;top:100%;right:0;left:0;z-index:5;max-height:14.0625rem;margin-top:0.5rem;border:var(--gov-autocomplete-item-hover, 0.0625rem solid var(--gov-color-secondary-500));border-radius:var(--gov-border-radius, 0.1875rem);background:var(--gov-autocomplete-bg, var(--gov-color-neutral-white));overflow-x:hidden;overflow-y:auto;overscroll-behavior:none}.gov-form-autocomplete__list>.gov-form-autocomplete__item{padding:0.75rem 0.5rem;cursor:pointer}.gov-form-autocomplete__list:empty{display:none}.gov-form-autocomplete__item[aria-selected=\"\"],.gov-form-autocomplete__item[aria-selected=true i],.gov-form-autocomplete__item[aria-selected=\"1\"]{background:var(--gov-autocomplete-item-select, var(--gov-color-secondary-400))}@media not all and (pointer: coarse){.gov-form-autocomplete__item:hover{background:var(--gov-autocomplete-item-hover, var(--gov-color-primary-100))}}";
|
|
12
12
|
|
|
13
13
|
const GovFormAutocomplete = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
14
14
|
constructor() {
|
|
@@ -18,7 +18,7 @@ const GovFormAutocomplete = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
18
18
|
this.govBlur = createEvent(this, "gov-blur", 7);
|
|
19
19
|
this.govInput = createEvent(this, "gov-input", 7);
|
|
20
20
|
this.govSelect = createEvent(this, "gov-select", 7);
|
|
21
|
-
this.templateResolver =
|
|
21
|
+
this.templateResolver = item => item[this.nameKey];
|
|
22
22
|
this.value = '';
|
|
23
23
|
this.identifier = undefined;
|
|
24
24
|
this.variant = undefined;
|
|
@@ -40,7 +40,7 @@ const GovFormAutocomplete = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
40
40
|
this.processing = false;
|
|
41
41
|
this.arrowCounter = -1;
|
|
42
42
|
this.list = [];
|
|
43
|
-
this.listBoxId = createID(
|
|
43
|
+
this.listBoxId = createID('GovListBox');
|
|
44
44
|
}
|
|
45
45
|
validateVariant(newValue) {
|
|
46
46
|
validateProp(Variants, newValue, FormAutocompleteClass.root);
|
|
@@ -54,12 +54,12 @@ const GovFormAutocomplete = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
onArrowDown() {
|
|
57
|
-
if (this.arrowCounter <
|
|
57
|
+
if (this.arrowCounter < this.list.length - 1) {
|
|
58
58
|
this.arrowCounter = this.arrowCounter + 1;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
doSearch() {
|
|
62
|
-
if (Number.isInteger(this.minlength) &&
|
|
62
|
+
if (Number.isInteger(this.minlength) && String(this.value).length <= this.minlength && this.minlength) {
|
|
63
63
|
this.list = [];
|
|
64
64
|
this.arrowCounter = -1;
|
|
65
65
|
this.processing = false;
|
|
@@ -68,8 +68,8 @@ const GovFormAutocomplete = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
68
68
|
if (this.searchCallback) {
|
|
69
69
|
this.processing = true;
|
|
70
70
|
this.searchCallback(this.value)
|
|
71
|
-
.then(
|
|
72
|
-
.catch(() => this.list = [])
|
|
71
|
+
.then(response => (this.list = response))
|
|
72
|
+
.catch(() => (this.list = []))
|
|
73
73
|
.finally(() => {
|
|
74
74
|
this.arrowCounter = -1;
|
|
75
75
|
this.processing = false;
|
|
@@ -81,9 +81,9 @@ const GovFormAutocomplete = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
81
81
|
this.validateSize(this.size);
|
|
82
82
|
}
|
|
83
83
|
render() {
|
|
84
|
-
return (h(Host, { class: FormAutocompleteClass.root, size: this.size, variant: this.variant }, h("gov-form-input", { placeholder: this.placeholder, name: this.name, disabled: this.disabled, readonly: this.readonly, autocomplete: false, size: this.size, variant: this.variant, required: this.required, invalid: this.invalid, role: 'searchbox', value: this.value, minlength: this.minlength, maxlength: this.maxlength, "on-gov-input": throttle(this.onInputHandler.bind(this), 200), "on-gov-keyup": this.onKeyUpHandler.bind(this), "on-gov-focus": this.onFocusHandler.bind(this), "on-gov-blur": this.onBlurHandler.bind(this), wcagAutocomplete: 'list', wcagDescribedBy: this.wcagDescribedBy, wcagLabelledBy: this.wcagLabelledBy, wcagOwns: [this.listBoxId, this.wcagOwns].join(' '), wcagExpanded: this.list.length && this.focused, ref: el => this.inputRef = el }, h("slot", { slot: "right-icon", name: "right-icon" })), h("ul", { class: FormAutocompleteClass.list, role: 'listbox', id: this.listBoxId }, this.list.map((item, index) => {
|
|
84
|
+
return (h(Host, { class: FormAutocompleteClass.root, size: this.size, variant: this.variant }, h("gov-form-input", { placeholder: this.placeholder, name: this.name, disabled: this.disabled, readonly: this.readonly, autocomplete: false, size: this.size, variant: this.variant, required: this.required, invalid: this.invalid, role: 'searchbox', value: this.value, minlength: this.minlength, maxlength: this.maxlength, "on-gov-input": throttle(this.onInputHandler.bind(this), 200), "on-gov-keyup": this.onKeyUpHandler.bind(this), "on-gov-focus": this.onFocusHandler.bind(this), "on-gov-blur": this.onBlurHandler.bind(this), wcagAutocomplete: 'list', wcagDescribedBy: this.wcagDescribedBy, wcagLabelledBy: this.wcagLabelledBy, wcagOwns: [this.listBoxId, this.wcagOwns].join(' '), wcagExpanded: this.list.length && this.focused, ref: el => (this.inputRef = el) }, h("slot", { slot: "right-icon", name: "right-icon" })), h("ul", { class: FormAutocompleteClass.list, role: 'listbox', id: this.listBoxId }, this.list.map((item, index) => {
|
|
85
85
|
const isSelected = this.arrowCounter === index;
|
|
86
|
-
return h("li", { class: FormAutocompleteClass.item, innerHTML: this.templateResolver(item, isSelected), role: 'option', "aria-posinset": index, tabindex: isSelected ? 0 : -1, "aria-setsize": this.list.length, onClick: () => this.onSelectHandler(index), "aria-selected": toBoolAttr(isSelected) });
|
|
86
|
+
return (h("li", { class: FormAutocompleteClass.item, innerHTML: this.templateResolver(item, isSelected), role: 'option', "aria-posinset": index, tabindex: isSelected ? 0 : -1, "aria-setsize": this.list.length, onClick: () => this.onSelectHandler(index), "aria-selected": toBoolAttr(isSelected) }));
|
|
87
87
|
}))));
|
|
88
88
|
}
|
|
89
89
|
onFocusHandler(e) {
|
|
@@ -97,7 +97,7 @@ const GovFormAutocomplete = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
97
97
|
}
|
|
98
98
|
onBlurHandler(e) {
|
|
99
99
|
this.focused = false;
|
|
100
|
-
setTimeout(() => this.list = [], 200);
|
|
100
|
+
setTimeout(() => (this.list = []), 200);
|
|
101
101
|
this.arrowCounter = -1;
|
|
102
102
|
e.stopPropagation();
|
|
103
103
|
this.govBlur.emit(e);
|
|
@@ -113,13 +113,13 @@ const GovFormAutocomplete = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
113
113
|
if (index > -1) {
|
|
114
114
|
selected = this.list[index];
|
|
115
115
|
}
|
|
116
|
-
else if (this.
|
|
116
|
+
else if (has(this.arrowCounter, this.list)) {
|
|
117
117
|
selected = this.list[this.arrowCounter];
|
|
118
118
|
}
|
|
119
119
|
if (selected) {
|
|
120
120
|
this.govSelect.emit(selected);
|
|
121
121
|
this.list = [];
|
|
122
|
-
if (
|
|
122
|
+
if (has(this.nameKey, selected) && typeof selected[this.nameKey] === 'string') {
|
|
123
123
|
this.value = selected[this.nameKey];
|
|
124
124
|
}
|
|
125
125
|
}
|
|
@@ -183,7 +183,7 @@ const GovFormAutocomplete = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
183
183
|
"minlength": [2],
|
|
184
184
|
"maxlength": [2],
|
|
185
185
|
"wcagDescribedBy": [1, "wcag-described-by"],
|
|
186
|
-
"wcagLabelledBy": [1, "wcag-
|
|
186
|
+
"wcagLabelledBy": [1, "wcag-labelled-by"],
|
|
187
187
|
"wcagOwns": [1, "wcag-owns"],
|
|
188
188
|
"focused": [32],
|
|
189
189
|
"processing": [32],
|