@gov-design-system-ce/components 4.6.4 → 4.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/gov-flex_3.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +35 -11
- package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-form-file.entry.cjs.js.map +1 -1
- package/dist/collection/components/gov-form/file/gov-form-file.js +7 -2
- package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
- package/dist/collection/utils/file.utils.js +28 -9
- package/dist/collection/utils/file.utils.js.map +1 -1
- package/dist/components/gov-accordion-item.js +1 -1
- package/dist/components/gov-attachments-item.js +1 -1
- package/dist/components/gov-blockquote.js +1 -1
- package/dist/components/gov-breadcrumbs.js +1 -1
- package/dist/components/gov-breadcrumbs.js.map +1 -1
- package/dist/components/gov-button.js +1 -1
- package/dist/components/gov-card.js +1 -1
- package/dist/components/gov-chip.js +1 -1
- package/dist/components/gov-collapsible.js +1 -1
- package/dist/components/gov-dialog.js +1 -1
- package/dist/components/gov-form-autocomplete.js +1 -1
- package/dist/components/gov-form-checkbox.js +1 -1
- package/dist/components/gov-form-file.js +1 -1
- package/dist/components/gov-form-file.js.map +1 -1
- package/dist/components/gov-form-input.js +1 -1
- package/dist/components/gov-form-multi-select.js +1 -1
- package/dist/components/gov-form-range.js +1 -1
- package/dist/components/gov-form-select.js +1 -1
- package/dist/components/gov-form-switch.js +1 -1
- package/dist/components/gov-icon.js +1 -1
- package/dist/components/gov-infobar.js +1 -1
- package/dist/components/gov-link.js +1 -1
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-pagination.js +1 -1
- package/dist/components/gov-tabs.js +1 -1
- package/dist/components/gov-tag.js +1 -1
- package/dist/components/gov-theme-switch.js +1 -1
- package/dist/components/gov-tile.js +1 -1
- package/dist/components/gov-toast.js +1 -1
- package/dist/components/gov-tooltip-content.js +1 -1
- package/dist/components/gov-wizard-item.js +1 -1
- package/dist/components/{p-DEthsMuE.js → p-BIB-JMbL.js} +2 -2
- package/dist/components/{p-iTwUkISB.js → p-BVG9PtuQ.js} +2 -2
- package/dist/components/{p-yIpIIG5A.js → p-DV0Pdd1S.js} +2 -2
- package/dist/components/{p-CXPP9vec.js → p-Dj-FiQ37.js} +2 -2
- package/dist/components/{p-pJ_vPAO0.js → p-DlpZtTcv.js} +2 -2
- package/dist/components/{p-DN5pb9xA.js → p-Dw1o8KoZ.js} +2 -2
- package/dist/components/{p-ibUK7mfI.js → p-NU_8kxGz.js} +2 -2
- package/dist/components/{p-C_URF9Su.js → p-o4vVG5sG.js} +2 -2
- package/dist/core/core.esm.js +1 -1
- package/dist/core/gov-form-file.entry.esm.js.map +1 -1
- package/dist/core/{p-bec959c4.entry.js → p-002e72bf.entry.js} +2 -2
- package/dist/core/p-441e67f6.entry.js +2 -0
- package/dist/core/p-441e67f6.entry.js.map +1 -0
- package/dist/dist/components/gov-accordion-item.d.ts +11 -0
- package/dist/dist/components/gov-accordion.d.ts +11 -0
- package/dist/dist/components/gov-attachments-item.d.ts +11 -0
- package/dist/dist/components/gov-attachments.d.ts +11 -0
- package/dist/dist/components/gov-backdrop.d.ts +11 -0
- package/dist/dist/components/gov-banner.d.ts +11 -0
- package/dist/dist/components/gov-blockquote.d.ts +11 -0
- package/dist/dist/components/gov-breadcrumbs.d.ts +11 -0
- package/dist/dist/components/gov-button.d.ts +11 -0
- package/dist/dist/components/gov-card.d.ts +11 -0
- package/dist/dist/components/gov-chip.d.ts +11 -0
- package/dist/dist/components/gov-collapsible.d.ts +11 -0
- package/dist/dist/components/gov-container.d.ts +11 -0
- package/dist/dist/components/gov-control-group.d.ts +11 -0
- package/dist/dist/components/gov-cookiebar.d.ts +11 -0
- package/dist/dist/components/gov-dialog.d.ts +11 -0
- package/dist/dist/components/gov-dropdown.d.ts +11 -0
- package/dist/dist/components/gov-empty.d.ts +11 -0
- package/dist/dist/components/gov-error-code.d.ts +11 -0
- package/dist/dist/components/gov-flex.d.ts +11 -0
- package/dist/dist/components/gov-form-autocomplete.d.ts +11 -0
- package/dist/dist/components/gov-form-checkbox-group.d.ts +11 -0
- package/dist/dist/components/gov-form-checkbox.d.ts +11 -0
- package/dist/dist/components/gov-form-control.d.ts +11 -0
- package/dist/dist/components/gov-form-file.d.ts +11 -0
- package/dist/dist/components/gov-form-group.d.ts +11 -0
- package/dist/dist/components/gov-form-input.d.ts +11 -0
- package/dist/dist/components/gov-form-label.d.ts +11 -0
- package/dist/dist/components/gov-form-message.d.ts +11 -0
- package/dist/dist/components/gov-form-multi-select.d.ts +11 -0
- package/dist/dist/components/gov-form-password-power.d.ts +11 -0
- package/dist/dist/components/gov-form-radio-group.d.ts +11 -0
- package/dist/dist/components/gov-form-radio.d.ts +11 -0
- package/dist/dist/components/gov-form-range.d.ts +11 -0
- package/dist/dist/components/gov-form-search.d.ts +11 -0
- package/dist/dist/components/gov-form-select.d.ts +11 -0
- package/dist/dist/components/gov-form-switch.d.ts +11 -0
- package/dist/dist/components/gov-grid-item.d.ts +11 -0
- package/dist/dist/components/gov-grid.d.ts +11 -0
- package/dist/dist/components/gov-icon.d.ts +11 -0
- package/dist/dist/components/gov-infobar.d.ts +11 -0
- package/dist/dist/components/gov-layout-column.d.ts +11 -0
- package/dist/dist/components/gov-layout.d.ts +11 -0
- package/dist/dist/components/gov-lifecycle.d.ts +11 -0
- package/dist/dist/components/gov-link.d.ts +11 -0
- package/dist/dist/components/gov-loading.d.ts +11 -0
- package/dist/dist/components/gov-message.d.ts +11 -0
- package/dist/dist/components/gov-pagination.d.ts +11 -0
- package/dist/dist/components/gov-skeleton.d.ts +11 -0
- package/dist/dist/components/gov-spacer.d.ts +11 -0
- package/dist/dist/components/gov-stepper-item.d.ts +11 -0
- package/dist/dist/components/gov-stepper.d.ts +11 -0
- package/dist/dist/components/gov-tabs-item.d.ts +11 -0
- package/dist/dist/components/gov-tabs.d.ts +11 -0
- package/dist/dist/components/gov-tag.d.ts +11 -0
- package/dist/dist/components/gov-theme-switch.d.ts +11 -0
- package/dist/dist/components/gov-tile.d.ts +11 -0
- package/dist/dist/components/gov-toast.d.ts +11 -0
- package/dist/dist/components/gov-tooltip-content.d.ts +11 -0
- package/dist/dist/components/gov-tooltip.d.ts +11 -0
- package/dist/dist/components/gov-wizard-item.d.ts +11 -0
- package/dist/dist/components/gov-wizard.d.ts +11 -0
- package/dist/dist/components/index.d.ts +35 -0
- package/dist/dist/dist/components/gov-accordion-item.d.ts +11 -0
- package/dist/dist/dist/components/gov-accordion.d.ts +11 -0
- package/dist/dist/dist/components/gov-app.d.ts +11 -0
- package/dist/dist/dist/components/gov-attachments-item.d.ts +11 -0
- package/dist/dist/dist/components/gov-attachments.d.ts +11 -0
- package/dist/dist/dist/components/gov-backdrop.d.ts +11 -0
- package/dist/dist/dist/components/gov-banner.d.ts +11 -0
- package/dist/dist/dist/components/gov-blockquote.d.ts +11 -0
- package/dist/dist/dist/components/gov-breadcrumbs.d.ts +11 -0
- package/dist/dist/dist/components/gov-button.d.ts +11 -0
- package/dist/dist/dist/components/gov-card.d.ts +11 -0
- package/dist/dist/dist/components/gov-chip.d.ts +11 -0
- package/dist/dist/dist/components/gov-collapsible.d.ts +11 -0
- package/dist/dist/dist/components/gov-container.d.ts +11 -0
- package/dist/dist/dist/components/gov-control-group.d.ts +11 -0
- package/dist/dist/dist/components/gov-cookiebar.d.ts +11 -0
- package/dist/dist/dist/components/gov-dialog.d.ts +11 -0
- package/dist/dist/dist/components/gov-dropdown.d.ts +11 -0
- package/dist/dist/dist/components/gov-empty.d.ts +11 -0
- package/dist/dist/dist/components/gov-error-code.d.ts +11 -0
- package/dist/dist/dist/components/gov-flex.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-autocomplete.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-checkbox-group.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-checkbox.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-control.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-file.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-group.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-input.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-label.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-message.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-multi-select.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-password-power.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-radio-group.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-radio.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-range.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-search.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-select.d.ts +11 -0
- package/dist/dist/dist/components/gov-form-switch.d.ts +11 -0
- package/dist/dist/dist/components/gov-grid-item.d.ts +11 -0
- package/dist/dist/dist/components/gov-grid.d.ts +11 -0
- package/dist/dist/dist/components/gov-icon.d.ts +11 -0
- package/dist/dist/dist/components/gov-infobar.d.ts +11 -0
- package/dist/dist/dist/components/gov-layout-column.d.ts +11 -0
- package/dist/dist/dist/components/gov-layout.d.ts +11 -0
- package/dist/dist/dist/components/gov-lifecycle.d.ts +11 -0
- package/dist/dist/dist/components/gov-link.d.ts +11 -0
- package/dist/dist/dist/components/gov-loading.d.ts +11 -0
- package/dist/dist/dist/components/gov-message.d.ts +11 -0
- package/dist/dist/dist/components/gov-pagination.d.ts +11 -0
- package/dist/dist/dist/components/gov-skeleton.d.ts +11 -0
- package/dist/dist/dist/components/gov-spacer.d.ts +11 -0
- package/dist/dist/dist/components/gov-stepper-item.d.ts +11 -0
- package/dist/dist/dist/components/gov-stepper.d.ts +11 -0
- package/dist/dist/dist/components/gov-tabs-item.d.ts +11 -0
- package/dist/dist/dist/components/gov-tabs.d.ts +11 -0
- package/dist/dist/dist/components/gov-tag.d.ts +11 -0
- package/dist/dist/dist/components/gov-theme-switch.d.ts +11 -0
- package/dist/dist/dist/components/gov-tile.d.ts +11 -0
- package/dist/dist/dist/components/gov-toast.d.ts +11 -0
- package/dist/dist/dist/components/gov-tooltip-content.d.ts +11 -0
- package/dist/dist/dist/components/gov-tooltip.d.ts +11 -0
- package/dist/dist/dist/components/gov-wizard-item.d.ts +11 -0
- package/dist/dist/dist/components/gov-wizard.d.ts +11 -0
- package/dist/dist/dist/components/index.d.ts +35 -0
- package/dist/dist/dist/globals.d.ts +2 -0
- package/dist/dist/dist/hydrate/index.d.ts +287 -0
- package/dist/dist/dist/types/components/gov-accordion/constants.d.ts +19 -0
- package/dist/dist/dist/types/components/gov-accordion/gov-accordion-item.d.ts +43 -0
- package/dist/dist/dist/types/components/gov-accordion/gov-accordion.d.ts +26 -0
- package/dist/dist/dist/types/components/gov-accordion/gov-accordion.types.d.ts +9 -0
- package/dist/dist/dist/types/components/gov-attachments/constants.d.ts +11 -0
- package/dist/dist/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-attachments/gov-attachments-item.d.ts +24 -0
- package/dist/dist/dist/types/components/gov-attachments/gov-attachments.d.ts +19 -0
- package/dist/dist/dist/types/components/gov-backdrop/constants.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-backdrop/gov-backdrop.d.ts +32 -0
- package/dist/dist/dist/types/components/gov-banner/constants.d.ts +26 -0
- package/dist/dist/dist/types/components/gov-banner/gov-banner.d.ts +28 -0
- package/dist/dist/dist/types/components/gov-blockquote/constants.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-blockquote/gov-blockquote.d.ts +15 -0
- package/dist/dist/dist/types/components/gov-breadcrumbs/constants.d.ts +3 -0
- package/dist/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +42 -0
- package/dist/dist/dist/types/components/gov-button/button/constants.d.ts +29 -0
- package/dist/dist/dist/types/components/gov-button/button/gov-button.d.ts +133 -0
- package/dist/dist/dist/types/components/gov-button/button/gov-button.types.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-button/dropdown/constants.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +40 -0
- package/dist/dist/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-card/constants.d.ts +16 -0
- package/dist/dist/dist/types/components/gov-card/gov-card.d.ts +57 -0
- package/dist/dist/dist/types/components/gov-card/interfaces.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-chip/constants.d.ts +21 -0
- package/dist/dist/dist/types/components/gov-chip/gov-chip.d.ts +82 -0
- package/dist/dist/dist/types/components/gov-collapsible/constants.d.ts +18 -0
- package/dist/dist/dist/types/components/gov-collapsible/gov-collapsible.d.ts +36 -0
- package/dist/dist/dist/types/components/gov-container/constants.d.ts +3 -0
- package/dist/dist/dist/types/components/gov-container/gov-container.d.ts +6 -0
- package/dist/dist/dist/types/components/gov-control-group/constants.d.ts +7 -0
- package/dist/dist/dist/types/components/gov-control-group/gov-control-group.d.ts +24 -0
- package/dist/dist/dist/types/components/gov-cookiebar/constants.d.ts +7 -0
- package/dist/dist/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
- package/dist/dist/dist/types/components/gov-dialog/constants.d.ts +11 -0
- package/dist/dist/dist/types/components/gov-dialog/gov-dialog.d.ts +70 -0
- package/dist/dist/dist/types/components/gov-empty/constants.d.ts +19 -0
- package/dist/dist/dist/types/components/gov-empty/gov-empty.d.ts +21 -0
- package/dist/dist/dist/types/components/gov-error-code/constants.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
- package/dist/dist/dist/types/components/gov-flex/constants.d.ts +7 -0
- package/dist/dist/dist/types/components/gov-flex/gov-flex.d.ts +39 -0
- package/dist/dist/dist/types/components/gov-form/autocomplete/autocomplete.utils.d.ts +2 -0
- package/dist/dist/dist/types/components/gov-form/autocomplete/constants.d.ts +11 -0
- package/dist/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +158 -0
- package/dist/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +9 -0
- package/dist/dist/dist/types/components/gov-form/checkbox/constants.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +86 -0
- package/dist/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +5 -0
- package/dist/dist/dist/types/components/gov-form/control/constants.d.ts +9 -0
- package/dist/dist/dist/types/components/gov-form/control/gov-form-control.d.ts +40 -0
- package/dist/dist/dist/types/components/gov-form/file/constants.d.ts +7 -0
- package/dist/dist/dist/types/components/gov-form/file/gov-form-file.d.ts +130 -0
- package/dist/dist/dist/types/components/gov-form/file/gov-form-file.types.d.ts +11 -0
- package/dist/dist/dist/types/components/gov-form/group/constants.d.ts +18 -0
- package/dist/dist/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +32 -0
- package/dist/dist/dist/types/components/gov-form/group/gov-form-group.d.ts +18 -0
- package/dist/dist/dist/types/components/gov-form/group/gov-form-group.types.d.ts +7 -0
- package/dist/dist/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +32 -0
- package/dist/dist/dist/types/components/gov-form/input/constants.d.ts +28 -0
- package/dist/dist/dist/types/components/gov-form/input/gov-form-input.d.ts +178 -0
- package/dist/dist/dist/types/components/gov-form/input/gov-form-input.types.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-form/label/constants.d.ts +8 -0
- package/dist/dist/dist/types/components/gov-form/label/gov-form-label.d.ts +26 -0
- package/dist/dist/dist/types/components/gov-form/message/constants.d.ts +11 -0
- package/dist/dist/dist/types/components/gov-form/message/gov-form-message.d.ts +23 -0
- package/dist/dist/dist/types/components/gov-form/multiselect/constants.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +127 -0
- package/dist/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-form/password-power/constants.d.ts +5 -0
- package/dist/dist/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +7 -0
- package/dist/dist/dist/types/components/gov-form/radio/constants.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-form/radio/gov-form-radio.d.ts +83 -0
- package/dist/dist/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +5 -0
- package/dist/dist/dist/types/components/gov-form/range/constants.d.ts +9 -0
- package/dist/dist/dist/types/components/gov-form/range/gov-form-range.d.ts +116 -0
- package/dist/dist/dist/types/components/gov-form/search/constants.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-form/search/gov-form-search.d.ts +13 -0
- package/dist/dist/dist/types/components/gov-form/select/constants.d.ts +8 -0
- package/dist/dist/dist/types/components/gov-form/select/gov-form-select.d.ts +89 -0
- package/dist/dist/dist/types/components/gov-form/select/gov-form-select.types.d.ts +9 -0
- package/dist/dist/dist/types/components/gov-form/switch/constants.d.ts +12 -0
- package/dist/dist/dist/types/components/gov-form/switch/gov-form-switch.d.ts +81 -0
- package/dist/dist/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +5 -0
- package/dist/dist/dist/types/components/gov-grid/constants.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-grid/gov-grid-item.d.ts +46 -0
- package/dist/dist/dist/types/components/gov-grid/gov-grid.d.ts +19 -0
- package/dist/dist/dist/types/components/gov-icon/constants.d.ts +18 -0
- package/dist/dist/dist/types/components/gov-icon/gov-icon.d.ts +34 -0
- package/dist/dist/dist/types/components/gov-icon/helpers.d.ts +6 -0
- package/dist/dist/dist/types/components/gov-icon/list.d.ts +3 -0
- package/dist/dist/dist/types/components/gov-infobar/constants.d.ts +16 -0
- package/dist/dist/dist/types/components/gov-infobar/gov-infobar.d.ts +51 -0
- package/dist/dist/dist/types/components/gov-infobar/gov-infobar.types.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-layout/constants.d.ts +20 -0
- package/dist/dist/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
- package/dist/dist/dist/types/components/gov-layout/gov-layout.d.ts +20 -0
- package/dist/dist/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
- package/dist/dist/dist/types/components/gov-link/constants.d.ts +8 -0
- package/dist/dist/dist/types/components/gov-link/gov-link.d.ts +34 -0
- package/dist/dist/dist/types/components/gov-loading/loading/constants.d.ts +9 -0
- package/dist/dist/dist/types/components/gov-loading/loading/gov-loading.d.ts +13 -0
- package/dist/dist/dist/types/components/gov-loading/skeleton/constants.d.ts +21 -0
- package/dist/dist/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +46 -0
- package/dist/dist/dist/types/components/gov-message/constants.d.ts +13 -0
- package/dist/dist/dist/types/components/gov-message/gov-message.d.ts +16 -0
- package/dist/dist/dist/types/components/gov-pagination/constants.d.ts +22 -0
- package/dist/dist/dist/types/components/gov-pagination/gov-pagination.d.ts +97 -0
- package/dist/dist/dist/types/components/gov-pagination/gov-pagination.types.d.ts +5 -0
- package/dist/dist/dist/types/components/gov-pagination/pagination.d.ts +12 -0
- package/dist/dist/dist/types/components/gov-spacer/constants.d.ts +15 -0
- package/dist/dist/dist/types/components/gov-spacer/gov-spacer.d.ts +18 -0
- package/dist/dist/dist/types/components/gov-stepper/stepper/constants.d.ts +21 -0
- package/dist/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +31 -0
- package/dist/dist/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +22 -0
- package/dist/dist/dist/types/components/gov-tabs/constants.d.ts +28 -0
- package/dist/dist/dist/types/components/gov-tabs/gov-tabs-item.d.ts +54 -0
- package/dist/dist/dist/types/components/gov-tabs/gov-tabs.d.ts +70 -0
- package/dist/dist/dist/types/components/gov-tabs/gov-tabs.types.d.ts +14 -0
- package/dist/dist/dist/types/components/gov-tag/constants.d.ts +12 -0
- package/dist/dist/dist/types/components/gov-tag/gov-tag.d.ts +35 -0
- package/dist/dist/dist/types/components/gov-theme-switch/constants.d.ts +12 -0
- package/dist/dist/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +46 -0
- package/dist/dist/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +10 -0
- package/dist/dist/dist/types/components/gov-tile/constants.d.ts +13 -0
- package/dist/dist/dist/types/components/gov-tile/gov-tile.d.ts +34 -0
- package/dist/dist/dist/types/components/gov-toast/constants.d.ts +17 -0
- package/dist/dist/dist/types/components/gov-toast/gov-toast.d.ts +58 -0
- package/dist/dist/dist/types/components/gov-tooltip/constants.d.ts +20 -0
- package/dist/dist/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +32 -0
- package/dist/dist/dist/types/components/gov-tooltip/gov-tooltip.d.ts +61 -0
- package/dist/dist/dist/types/components/gov-wizard/constants.d.ts +19 -0
- package/dist/dist/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-wizard/gov-wizard-item.d.ts +60 -0
- package/dist/dist/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +4 -0
- package/dist/dist/dist/types/components/gov-wizard/gov-wizard.d.ts +35 -0
- package/dist/dist/dist/types/core/constants/colors.d.ts +13 -0
- package/dist/dist/dist/types/core/constants/sizes.d.ts +13 -0
- package/dist/dist/dist/types/core/constants/tags.d.ts +12 -0
- package/dist/dist/dist/types/core/constants/tokens.d.ts +1 -0
- package/dist/dist/dist/types/helpers/Accessibility/accessibility.d.ts +1 -0
- package/dist/dist/dist/types/helpers/Accessibility/attributes.d.ts +1 -0
- package/dist/dist/dist/types/helpers/Dom/attribute.d.ts +13 -0
- package/dist/dist/dist/types/helpers/Dom/document.d.ts +4 -0
- package/dist/dist/dist/types/helpers/Dom/form.d.ts +3 -0
- package/dist/dist/dist/types/helpers/Dom/form.types.d.ts +11 -0
- package/dist/dist/dist/types/helpers/Dom/template.d.ts +10 -0
- package/dist/dist/dist/types/helpers/Dom/template.types.d.ts +14 -0
- package/dist/dist/dist/types/helpers/Dom/win.d.ts +18 -0
- package/dist/dist/dist/types/helpers/Fragment.d.ts +2 -0
- package/dist/dist/dist/types/helpers/Log/gov.log.d.ts +8 -0
- package/dist/dist/dist/types/helpers/Validate/props.d.ts +1 -0
- package/dist/dist/dist/types/helpers/Validate/wcag.d.ts +4 -0
- package/dist/dist/dist/types/index.d.ts +0 -0
- package/dist/dist/dist/types/interfaces.d.ts +1 -0
- package/dist/dist/dist/types/stencil-public-runtime.d.ts +1861 -0
- package/dist/dist/dist/types/types/event.types.d.ts +4 -0
- package/dist/dist/dist/types/types/interfaces.d.ts +2 -0
- package/dist/dist/dist/types/types/typings.d.ts +6 -0
- package/dist/dist/dist/types/utils/array.utils.d.ts +2 -0
- package/dist/dist/dist/types/utils/bool.utils.d.ts +1 -0
- package/dist/dist/dist/types/utils/dom.utils.d.ts +1 -0
- package/dist/dist/dist/types/utils/ds.utils.d.ts +1 -0
- package/dist/dist/dist/types/utils/file.utils.d.ts +3 -0
- package/dist/dist/dist/types/utils/helpers.types.d.ts +49 -0
- package/dist/dist/dist/types/utils/icon.utils.d.ts +4 -0
- package/dist/dist/dist/types/utils/number.utils.d.ts +1 -0
- package/dist/dist/dist/types/utils/object.utils.d.ts +2 -0
- package/dist/dist/dist/types/utils/stencil.utils.d.ts +1 -0
- package/dist/dist/dist/types/utils/string.utils.d.ts +4 -0
- package/dist/dist/dist/types/utils/utils.d.ts +20 -0
- package/dist/dist/globals.d.ts +2 -0
- package/dist/dist/hydrate/index.d.ts +287 -0
- package/dist/dist/types/components/gov-accordion/constants.d.ts +19 -0
- package/dist/dist/types/components/gov-accordion/gov-accordion-item.d.ts +43 -0
- package/dist/dist/types/components/gov-accordion/gov-accordion.d.ts +26 -0
- package/dist/dist/types/components/gov-accordion/gov-accordion.types.d.ts +9 -0
- package/dist/dist/types/components/gov-attachments/constants.d.ts +11 -0
- package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
- package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.ts +24 -0
- package/dist/dist/types/components/gov-attachments/gov-attachments.d.ts +19 -0
- package/dist/dist/types/components/gov-backdrop/constants.d.ts +4 -0
- package/dist/dist/types/components/gov-backdrop/gov-backdrop.d.ts +32 -0
- package/dist/dist/types/components/gov-banner/constants.d.ts +26 -0
- package/dist/dist/types/components/gov-banner/gov-banner.d.ts +28 -0
- package/dist/dist/types/components/gov-blockquote/constants.d.ts +10 -0
- package/dist/dist/types/components/gov-blockquote/gov-blockquote.d.ts +15 -0
- package/dist/dist/types/components/gov-breadcrumbs/constants.d.ts +3 -0
- package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +4 -0
- package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +42 -0
- package/dist/dist/types/components/gov-button/button/constants.d.ts +29 -0
- package/dist/dist/types/components/gov-button/button/gov-button.d.ts +133 -0
- package/dist/dist/types/components/gov-button/button/gov-button.types.d.ts +4 -0
- package/dist/dist/types/components/gov-button/dropdown/constants.d.ts +10 -0
- package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +40 -0
- package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +4 -0
- package/dist/dist/types/components/gov-card/constants.d.ts +16 -0
- package/dist/dist/types/components/gov-card/gov-card.d.ts +57 -0
- package/dist/dist/types/components/gov-card/interfaces.d.ts +4 -0
- package/dist/dist/types/components/gov-chip/constants.d.ts +21 -0
- package/dist/dist/types/components/gov-chip/gov-chip.d.ts +82 -0
- package/dist/dist/types/components/gov-collapsible/constants.d.ts +18 -0
- package/dist/dist/types/components/gov-collapsible/gov-collapsible.d.ts +36 -0
- package/dist/dist/types/components/gov-container/constants.d.ts +3 -0
- package/dist/dist/types/components/gov-container/gov-container.d.ts +6 -0
- package/dist/dist/types/components/gov-control-group/constants.d.ts +7 -0
- package/dist/dist/types/components/gov-control-group/gov-control-group.d.ts +24 -0
- package/dist/dist/types/components/gov-cookiebar/constants.d.ts +7 -0
- package/dist/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
- package/dist/dist/types/components/gov-dialog/constants.d.ts +11 -0
- package/dist/dist/types/components/gov-dialog/gov-dialog.d.ts +70 -0
- package/dist/dist/types/components/gov-empty/constants.d.ts +19 -0
- package/dist/dist/types/components/gov-empty/gov-empty.d.ts +21 -0
- package/dist/dist/types/components/gov-error-code/constants.d.ts +4 -0
- package/dist/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
- package/dist/dist/types/components/gov-flex/constants.d.ts +7 -0
- package/dist/dist/types/components/gov-flex/gov-flex.d.ts +39 -0
- package/dist/dist/types/components/gov-form/autocomplete/autocomplete.utils.d.ts +2 -0
- package/dist/dist/types/components/gov-form/autocomplete/constants.d.ts +11 -0
- package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +158 -0
- package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +9 -0
- package/dist/dist/types/components/gov-form/checkbox/constants.d.ts +10 -0
- package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +86 -0
- package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +5 -0
- package/dist/dist/types/components/gov-form/control/constants.d.ts +9 -0
- package/dist/dist/types/components/gov-form/control/gov-form-control.d.ts +40 -0
- package/dist/dist/types/components/gov-form/file/constants.d.ts +7 -0
- package/dist/dist/types/components/gov-form/file/gov-form-file.d.ts +130 -0
- package/dist/dist/types/components/gov-form/file/gov-form-file.types.d.ts +11 -0
- package/dist/dist/types/components/gov-form/group/constants.d.ts +18 -0
- package/dist/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +32 -0
- package/dist/dist/types/components/gov-form/group/gov-form-group.d.ts +18 -0
- package/dist/dist/types/components/gov-form/group/gov-form-group.types.d.ts +7 -0
- package/dist/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +32 -0
- package/dist/dist/types/components/gov-form/input/constants.d.ts +28 -0
- package/dist/dist/types/components/gov-form/input/gov-form-input.d.ts +178 -0
- package/dist/dist/types/components/gov-form/input/gov-form-input.types.d.ts +4 -0
- package/dist/dist/types/components/gov-form/label/constants.d.ts +8 -0
- package/dist/dist/types/components/gov-form/label/gov-form-label.d.ts +26 -0
- package/dist/dist/types/components/gov-form/message/constants.d.ts +11 -0
- package/dist/dist/types/components/gov-form/message/gov-form-message.d.ts +23 -0
- package/dist/dist/types/components/gov-form/multiselect/constants.d.ts +10 -0
- package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +127 -0
- package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +10 -0
- package/dist/dist/types/components/gov-form/password-power/constants.d.ts +5 -0
- package/dist/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +7 -0
- package/dist/dist/types/components/gov-form/radio/constants.d.ts +10 -0
- package/dist/dist/types/components/gov-form/radio/gov-form-radio.d.ts +83 -0
- package/dist/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +5 -0
- package/dist/dist/types/components/gov-form/range/constants.d.ts +9 -0
- package/dist/dist/types/components/gov-form/range/gov-form-range.d.ts +116 -0
- package/dist/dist/types/components/gov-form/search/constants.d.ts +10 -0
- package/dist/dist/types/components/gov-form/search/gov-form-search.d.ts +13 -0
- package/dist/dist/types/components/gov-form/select/constants.d.ts +8 -0
- package/dist/dist/types/components/gov-form/select/gov-form-select.d.ts +89 -0
- package/dist/dist/types/components/gov-form/select/gov-form-select.types.d.ts +9 -0
- package/dist/dist/types/components/gov-form/switch/constants.d.ts +12 -0
- package/dist/dist/types/components/gov-form/switch/gov-form-switch.d.ts +81 -0
- package/dist/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +5 -0
- package/dist/dist/types/components/gov-grid/constants.d.ts +10 -0
- package/dist/dist/types/components/gov-grid/gov-grid-item.d.ts +46 -0
- package/dist/dist/types/components/gov-grid/gov-grid.d.ts +19 -0
- package/dist/dist/types/components/gov-icon/constants.d.ts +18 -0
- package/dist/dist/types/components/gov-icon/gov-icon.d.ts +34 -0
- package/dist/dist/types/components/gov-icon/helpers.d.ts +6 -0
- package/dist/dist/types/components/gov-icon/list.d.ts +3 -0
- package/dist/dist/types/components/gov-infobar/constants.d.ts +16 -0
- package/dist/dist/types/components/gov-infobar/gov-infobar.d.ts +51 -0
- package/dist/dist/types/components/gov-infobar/gov-infobar.types.d.ts +4 -0
- package/dist/dist/types/components/gov-layout/constants.d.ts +20 -0
- package/dist/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
- package/dist/dist/types/components/gov-layout/gov-layout.d.ts +20 -0
- package/dist/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
- package/dist/dist/types/components/gov-link/constants.d.ts +8 -0
- package/dist/dist/types/components/gov-link/gov-link.d.ts +34 -0
- package/dist/dist/types/components/gov-loading/loading/constants.d.ts +9 -0
- package/dist/dist/types/components/gov-loading/loading/gov-loading.d.ts +13 -0
- package/dist/dist/types/components/gov-loading/skeleton/constants.d.ts +21 -0
- package/dist/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +46 -0
- package/dist/dist/types/components/gov-message/constants.d.ts +13 -0
- package/dist/dist/types/components/gov-message/gov-message.d.ts +16 -0
- package/dist/dist/types/components/gov-pagination/constants.d.ts +22 -0
- package/dist/dist/types/components/gov-pagination/gov-pagination.d.ts +97 -0
- package/dist/dist/types/components/gov-pagination/gov-pagination.types.d.ts +5 -0
- package/dist/dist/types/components/gov-pagination/pagination.d.ts +12 -0
- package/dist/dist/types/components/gov-spacer/constants.d.ts +15 -0
- package/dist/dist/types/components/gov-spacer/gov-spacer.d.ts +18 -0
- package/dist/dist/types/components/gov-stepper/stepper/constants.d.ts +21 -0
- package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +4 -0
- package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +31 -0
- package/dist/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +22 -0
- package/dist/dist/types/components/gov-tabs/constants.d.ts +28 -0
- package/dist/dist/types/components/gov-tabs/gov-tabs-item.d.ts +54 -0
- package/dist/dist/types/components/gov-tabs/gov-tabs.d.ts +70 -0
- package/dist/dist/types/components/gov-tabs/gov-tabs.types.d.ts +14 -0
- package/dist/dist/types/components/gov-tag/constants.d.ts +12 -0
- package/dist/dist/types/components/gov-tag/gov-tag.d.ts +35 -0
- package/dist/dist/types/components/gov-theme-switch/constants.d.ts +12 -0
- package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +46 -0
- package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +10 -0
- package/dist/dist/types/components/gov-tile/constants.d.ts +13 -0
- package/dist/dist/types/components/gov-tile/gov-tile.d.ts +34 -0
- package/dist/dist/types/components/gov-toast/constants.d.ts +17 -0
- package/dist/dist/types/components/gov-toast/gov-toast.d.ts +58 -0
- package/dist/dist/types/components/gov-tooltip/constants.d.ts +20 -0
- package/dist/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +32 -0
- package/dist/dist/types/components/gov-tooltip/gov-tooltip.d.ts +61 -0
- package/dist/dist/types/components/gov-wizard/constants.d.ts +19 -0
- package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +4 -0
- package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.ts +60 -0
- package/dist/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +4 -0
- package/dist/dist/types/components/gov-wizard/gov-wizard.d.ts +35 -0
- package/dist/dist/types/core/constants/colors.d.ts +13 -0
- package/dist/dist/types/core/constants/sizes.d.ts +13 -0
- package/dist/dist/types/core/constants/tags.d.ts +12 -0
- package/dist/dist/types/core/constants/tokens.d.ts +1 -0
- package/dist/dist/types/helpers/Accessibility/accessibility.d.ts +1 -0
- package/dist/dist/types/helpers/Accessibility/attributes.d.ts +1 -0
- package/dist/dist/types/helpers/Dom/attribute.d.ts +13 -0
- package/dist/dist/types/helpers/Dom/document.d.ts +4 -0
- package/dist/dist/types/helpers/Dom/form.d.ts +3 -0
- package/dist/dist/types/helpers/Dom/form.types.d.ts +11 -0
- package/dist/dist/types/helpers/Dom/template.d.ts +10 -0
- package/dist/dist/types/helpers/Dom/template.types.d.ts +14 -0
- package/dist/dist/types/helpers/Dom/win.d.ts +18 -0
- package/dist/dist/types/helpers/Fragment.d.ts +2 -0
- package/dist/dist/types/helpers/Log/gov.log.d.ts +8 -0
- package/dist/dist/types/helpers/Validate/props.d.ts +1 -0
- package/dist/dist/types/helpers/Validate/wcag.d.ts +4 -0
- package/dist/dist/types/index.d.ts +0 -0
- package/dist/dist/types/interfaces.d.ts +1 -0
- package/dist/dist/types/stencil-public-runtime.d.ts +1861 -0
- package/dist/dist/types/types/event.types.d.ts +4 -0
- package/dist/dist/types/types/interfaces.d.ts +2 -0
- package/dist/dist/types/types/typings.d.ts +6 -0
- package/dist/dist/types/utils/array.utils.d.ts +2 -0
- package/dist/dist/types/utils/bool.utils.d.ts +1 -0
- package/dist/dist/types/utils/dom.utils.d.ts +1 -0
- package/dist/dist/types/utils/ds.utils.d.ts +1 -0
- package/dist/dist/types/utils/file.utils.d.ts +3 -0
- package/dist/dist/types/utils/helpers.types.d.ts +49 -0
- package/dist/dist/types/utils/icon.utils.d.ts +4 -0
- package/dist/dist/types/utils/number.utils.d.ts +1 -0
- package/dist/dist/types/utils/object.utils.d.ts +2 -0
- package/dist/dist/types/utils/stencil.utils.d.ts +1 -0
- package/dist/dist/types/utils/string.utils.d.ts +4 -0
- package/dist/dist/types/utils/utils.d.ts +20 -0
- package/dist/esm/gov-flex_3.entry.js +1 -1
- package/dist/esm/gov-form-file.entry.js +35 -11
- package/dist/esm/gov-form-file.entry.js.map +1 -1
- package/dist/hydrate/index.js +36 -12
- package/dist/hydrate/index.mjs +36 -12
- package/package.json +2 -2
- package/dist/core/p-afe254cb.entry.js +0 -2
- package/dist/core/p-afe254cb.entry.js.map +0 -1
- package/readme.md +0 -9
- /package/dist/components/{p-DEthsMuE.js.map → p-BIB-JMbL.js.map} +0 -0
- /package/dist/components/{p-iTwUkISB.js.map → p-BVG9PtuQ.js.map} +0 -0
- /package/dist/components/{p-yIpIIG5A.js.map → p-DV0Pdd1S.js.map} +0 -0
- /package/dist/components/{p-CXPP9vec.js.map → p-Dj-FiQ37.js.map} +0 -0
- /package/dist/components/{p-pJ_vPAO0.js.map → p-DlpZtTcv.js.map} +0 -0
- /package/dist/components/{p-DN5pb9xA.js.map → p-Dw1o8KoZ.js.map} +0 -0
- /package/dist/components/{p-ibUK7mfI.js.map → p-NU_8kxGz.js.map} +0 -0
- /package/dist/components/{p-C_URF9Su.js.map → p-o4vVG5sG.js.map} +0 -0
- /package/dist/core/{p-bec959c4.entry.js.map → p-002e72bf.entry.js.map} +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { ToastColorType, ToastTypesType } from "./constants";
|
|
3
|
+
import { Attributes } from "../../helpers/Dom/attribute";
|
|
4
|
+
export declare class GovToast {
|
|
5
|
+
private h;
|
|
6
|
+
private timeout;
|
|
7
|
+
private readonly toastId;
|
|
8
|
+
private attributeObserver;
|
|
9
|
+
constructor();
|
|
10
|
+
host: HTMLGovToastElement;
|
|
11
|
+
/**
|
|
12
|
+
* Style variation of the toast message.
|
|
13
|
+
*/
|
|
14
|
+
readonly color?: ToastColorType;
|
|
15
|
+
/**
|
|
16
|
+
* Toast’s gravity
|
|
17
|
+
*/
|
|
18
|
+
readonly gravity: "top" | "bottom";
|
|
19
|
+
/**
|
|
20
|
+
* Toast’s position
|
|
21
|
+
*/
|
|
22
|
+
readonly position: "left" | "center" | "right";
|
|
23
|
+
/**
|
|
24
|
+
* Toast type
|
|
25
|
+
*/
|
|
26
|
+
readonly type?: ToastTypesType;
|
|
27
|
+
/**
|
|
28
|
+
* Number of milliseconds to wait before Toast disappear
|
|
29
|
+
*/
|
|
30
|
+
readonly time: number;
|
|
31
|
+
/**
|
|
32
|
+
* Closing button texting instead of icons
|
|
33
|
+
*/
|
|
34
|
+
readonly closeLabel: string;
|
|
35
|
+
/**
|
|
36
|
+
* Aria label for the closing button. It is mandatory if the alert is closable
|
|
37
|
+
*/
|
|
38
|
+
readonly accessibleCloseLabel: string;
|
|
39
|
+
/**
|
|
40
|
+
* Called when the close button is clicked
|
|
41
|
+
*/
|
|
42
|
+
govClose: EventEmitter<string>;
|
|
43
|
+
validateColor(newValue: string): void;
|
|
44
|
+
inheritedAttributes: Attributes;
|
|
45
|
+
componentDidLoad(): void;
|
|
46
|
+
componentWillLoad(): void;
|
|
47
|
+
disconnectedCallback(): void;
|
|
48
|
+
onAriaAttributeChange(attributeName: string, newValue: string): void;
|
|
49
|
+
private runTimer;
|
|
50
|
+
render(): any;
|
|
51
|
+
private onCloseHandler;
|
|
52
|
+
get isBold(): boolean;
|
|
53
|
+
get isTimer(): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Remove toast from dom
|
|
56
|
+
*/
|
|
57
|
+
destroy(): Promise<void>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Colors } from '../../core/constants/colors';
|
|
2
|
+
import { Sizes } from '../../core/constants/sizes';
|
|
3
|
+
import { ValueOf } from '../../types/interfaces';
|
|
4
|
+
export declare const TooltipColors: Pick<typeof Colors, "PRIMARY" | "NEUTRAL">;
|
|
5
|
+
export type TooltipColorType = `${ValueOf<typeof TooltipColors>}`;
|
|
6
|
+
export declare const TooltipSize: Pick<typeof Sizes, "_S" | "_M" | "_L">;
|
|
7
|
+
export type TooltipSizeType = `${ValueOf<typeof TooltipSize>}`;
|
|
8
|
+
export declare enum TooltipPosition {
|
|
9
|
+
TOP = "top",
|
|
10
|
+
RIGHT = "right",
|
|
11
|
+
BOTTOM = "bottom",
|
|
12
|
+
LEFT = "left"
|
|
13
|
+
}
|
|
14
|
+
export type TooltipPositionType = `${ValueOf<typeof TooltipPosition>}`;
|
|
15
|
+
export declare const TooltipClass: {
|
|
16
|
+
root: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const TooltipContentClass: {
|
|
19
|
+
root: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { TooltipSizeType, TooltipColorType } from "./constants";
|
|
2
|
+
export declare class GovTooltipContent {
|
|
3
|
+
private timeout;
|
|
4
|
+
host: HTMLGovTooltipContentElement;
|
|
5
|
+
/**
|
|
6
|
+
* Style variation of the tooltip
|
|
7
|
+
*/
|
|
8
|
+
readonly color?: TooltipColorType;
|
|
9
|
+
/**
|
|
10
|
+
* Tooltip’s size.
|
|
11
|
+
*/
|
|
12
|
+
readonly size?: TooltipSizeType;
|
|
13
|
+
/**
|
|
14
|
+
* Tooltip is still visible.
|
|
15
|
+
*/
|
|
16
|
+
persist?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Indicates display of tooltip content
|
|
19
|
+
*/
|
|
20
|
+
isVisible: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Indicates display of tooltip content
|
|
23
|
+
*/
|
|
24
|
+
parentId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Tooltip text. When set, renders the HTML message; otherwise the default `<slot/>` is used.
|
|
27
|
+
*/
|
|
28
|
+
message?: string;
|
|
29
|
+
visibleContent(newValue: boolean): void;
|
|
30
|
+
hideContent(): void;
|
|
31
|
+
render(): any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { TooltipPositionType, TooltipSizeType, TooltipColorType } from "./constants";
|
|
2
|
+
export declare class GovTooltip {
|
|
3
|
+
private h;
|
|
4
|
+
private readonly tooltipContentId;
|
|
5
|
+
private readonly tooltipId;
|
|
6
|
+
constructor();
|
|
7
|
+
host: HTMLGovTooltipElement;
|
|
8
|
+
/**
|
|
9
|
+
* Style variation of the tooltip
|
|
10
|
+
*/
|
|
11
|
+
readonly color?: TooltipColorType;
|
|
12
|
+
/**
|
|
13
|
+
* Tooltip’s size.
|
|
14
|
+
*/
|
|
15
|
+
readonly size?: TooltipSizeType;
|
|
16
|
+
/**
|
|
17
|
+
* Tooltip display position
|
|
18
|
+
*/
|
|
19
|
+
position: TooltipPositionType;
|
|
20
|
+
/**
|
|
21
|
+
* Information contained in the tooltip
|
|
22
|
+
*/
|
|
23
|
+
readonly message: string;
|
|
24
|
+
/**
|
|
25
|
+
* Custom tooltip identifier.
|
|
26
|
+
*/
|
|
27
|
+
readonly identifier: string;
|
|
28
|
+
/**
|
|
29
|
+
* Trigger is just an icon
|
|
30
|
+
*/
|
|
31
|
+
readonly icon: boolean;
|
|
32
|
+
persist: boolean;
|
|
33
|
+
validateColor(newValue: string): void;
|
|
34
|
+
validateSize(newValue: string): void;
|
|
35
|
+
validatePosition(newValue: string): void;
|
|
36
|
+
rerenderMessage(): void;
|
|
37
|
+
connectedCallback(): void;
|
|
38
|
+
componentWillLoad(): void;
|
|
39
|
+
componentDidUpdate(): void;
|
|
40
|
+
disconnectedCallback(): void;
|
|
41
|
+
private createContentWrapper;
|
|
42
|
+
private get tooltipContent();
|
|
43
|
+
private get insideContent();
|
|
44
|
+
private registerListeners;
|
|
45
|
+
private verifyPositionSpace;
|
|
46
|
+
private resizeObserver?;
|
|
47
|
+
private repositionListenersAttached;
|
|
48
|
+
private readonly reposition;
|
|
49
|
+
private showTooltip;
|
|
50
|
+
private hideTooltip;
|
|
51
|
+
private removeContent;
|
|
52
|
+
render(): any;
|
|
53
|
+
/**
|
|
54
|
+
* Showing the modal
|
|
55
|
+
*/
|
|
56
|
+
show(): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Hiding the modal
|
|
59
|
+
*/
|
|
60
|
+
hide(): Promise<void>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Colors } from '../../core/constants/colors';
|
|
2
|
+
import { Sizes } from '../../core/constants/sizes';
|
|
3
|
+
import { ValueOf } from '../../types/interfaces';
|
|
4
|
+
export declare const WizardColors: Pick<typeof Colors, "PRIMARY" | "NEUTRAL" | "SUCCESS" | "ERROR" | "WARNING">;
|
|
5
|
+
export type WizardColorType = `${ValueOf<typeof WizardColors>}`;
|
|
6
|
+
export declare const WizardSizes: Pick<typeof Sizes, "_S" | "_M" | "_L">;
|
|
7
|
+
export type WizardSizesType = `${ValueOf<typeof WizardSizes>}`;
|
|
8
|
+
export declare const WizardClass: {
|
|
9
|
+
root: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const WizardItemClass: {
|
|
12
|
+
root: string;
|
|
13
|
+
header: string;
|
|
14
|
+
prefix: string;
|
|
15
|
+
label: string;
|
|
16
|
+
headline: string;
|
|
17
|
+
chevron: string;
|
|
18
|
+
content: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { WizardSizesType, WizardColorType } from "./constants";
|
|
3
|
+
import { WizardItemEvent } from "./gov-wizard-item.types";
|
|
4
|
+
export declare class GovWizardItem {
|
|
5
|
+
private h;
|
|
6
|
+
private readonly triggerId;
|
|
7
|
+
private readonly contentId;
|
|
8
|
+
private hydrated;
|
|
9
|
+
constructor();
|
|
10
|
+
readonly host: HTMLGovWizardItemElement;
|
|
11
|
+
/**
|
|
12
|
+
* Style variation of the button.
|
|
13
|
+
*/
|
|
14
|
+
readonly color?: WizardColorType;
|
|
15
|
+
/**
|
|
16
|
+
* Size of wizard
|
|
17
|
+
*/
|
|
18
|
+
readonly size?: WizardSizesType;
|
|
19
|
+
/**
|
|
20
|
+
* Custom wizard item identifier. Otherwise, it will be generated
|
|
21
|
+
*/
|
|
22
|
+
readonly identifier: string;
|
|
23
|
+
/**
|
|
24
|
+
* Defines weather the wizard item can be collapsible
|
|
25
|
+
*/
|
|
26
|
+
readonly collapsible: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Makes the wizard component disabled.
|
|
29
|
+
*/
|
|
30
|
+
readonly disabled: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Defines whether the accordion is open or closed by button
|
|
33
|
+
*/
|
|
34
|
+
isExpanded: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Called when the accordion state changes
|
|
37
|
+
*/
|
|
38
|
+
govChange: EventEmitter<WizardItemEvent>;
|
|
39
|
+
private validateColor;
|
|
40
|
+
private emmitChange;
|
|
41
|
+
componentWillLoad(): void;
|
|
42
|
+
connectedCallback(): void;
|
|
43
|
+
render(): any;
|
|
44
|
+
/**
|
|
45
|
+
* Opening the Wizard
|
|
46
|
+
*/
|
|
47
|
+
open(): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Closing the Wizard
|
|
50
|
+
*/
|
|
51
|
+
close(): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Wizard switch
|
|
54
|
+
*/
|
|
55
|
+
toggle(): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Returns the current state of the component
|
|
58
|
+
*/
|
|
59
|
+
currentState(): Promise<boolean>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { WizardSizesType } from "./constants";
|
|
3
|
+
import { GovWizardItemChangeEvent } from "./gov-wizard-item.d";
|
|
4
|
+
export declare class GovWizard {
|
|
5
|
+
private h;
|
|
6
|
+
private hydrated;
|
|
7
|
+
readonly host: HTMLGovWizardElement;
|
|
8
|
+
constructor();
|
|
9
|
+
/**
|
|
10
|
+
* Size of wizard
|
|
11
|
+
*/
|
|
12
|
+
readonly size?: WizardSizesType;
|
|
13
|
+
/**
|
|
14
|
+
* Adds accessible label for the wizard that is only shown for screen readers.
|
|
15
|
+
*/
|
|
16
|
+
readonly wcagLabel: string;
|
|
17
|
+
/**
|
|
18
|
+
* String of id's that indicate alternative labels elements
|
|
19
|
+
*/
|
|
20
|
+
readonly wcagLabelledBy: string;
|
|
21
|
+
/**
|
|
22
|
+
* Called when the wizard children state changes
|
|
23
|
+
*/
|
|
24
|
+
govChange: EventEmitter<GovWizardItemChangeEvent>;
|
|
25
|
+
private validateSize;
|
|
26
|
+
componentWillLoad(): void;
|
|
27
|
+
componentDidLoad(): void;
|
|
28
|
+
componentDidRender(): Promise<void>;
|
|
29
|
+
connectedCallback(): void;
|
|
30
|
+
render(): any;
|
|
31
|
+
/**
|
|
32
|
+
* Validate the WCAG attributes of the component
|
|
33
|
+
*/
|
|
34
|
+
validateWcag(): Promise<void>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum Colors {
|
|
2
|
+
DEFAULT = "default",
|
|
3
|
+
PRIMARY = "primary",
|
|
4
|
+
SECONDARY = "secondary",
|
|
5
|
+
NEUTRAL = "neutral",
|
|
6
|
+
ERROR = "error",
|
|
7
|
+
SUCCESS = "success",
|
|
8
|
+
WARNING = "warning",
|
|
9
|
+
DISABLED = "disabled",
|
|
10
|
+
BLACK = "black",
|
|
11
|
+
WHITE = "white",
|
|
12
|
+
CUSTOM = "custom"
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const backgroundTokenClasses: any[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const inheritAriaAttributes: (el: HTMLElement, ignoreList?: string[]) => import("../Dom/attribute").Attributes;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ariaAttributes: string[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type Attribute = unknown;
|
|
2
|
+
export type Attributes = Record<string, Attribute>;
|
|
3
|
+
export declare const inheritAttributes: (el: HTMLElement, attributes?: string[]) => Attributes;
|
|
4
|
+
type Callback = (attributeName: string, newValue: string) => void;
|
|
5
|
+
export declare class AttributeObserver {
|
|
6
|
+
private element;
|
|
7
|
+
private callback;
|
|
8
|
+
private mutationObserver;
|
|
9
|
+
constructor(element: HTMLElement, callback: Callback);
|
|
10
|
+
startObserving(attributes: string[]): void;
|
|
11
|
+
stopObserving(): void;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Nullable } from "../../utils/helpers.types";
|
|
2
|
+
export declare const setCookie: (name: string, value: string, days?: number) => void;
|
|
3
|
+
export declare const getCookie: (name: string) => Nullable<string>;
|
|
4
|
+
export declare const isValidSVG: (svgContent: string) => boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GovHost } from './template.types';
|
|
2
|
+
export interface GovForm {
|
|
3
|
+
govHost: GovHost;
|
|
4
|
+
control: HTMLGovFormControlElement | null;
|
|
5
|
+
label: HTMLGovFormLabelElement | null;
|
|
6
|
+
passAttrToControl: (name: string, value: string) => void;
|
|
7
|
+
passAttrToLabel: (name: string, value: string) => void;
|
|
8
|
+
hasGroupChildren: boolean;
|
|
9
|
+
mainElementsInControl: Element[];
|
|
10
|
+
messageElements: HTMLGovFormMessageElement[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLStencilElement } from '../../stencil-public-runtime';
|
|
2
|
+
import { GovHost } from './template.types';
|
|
3
|
+
export declare const prepareClasses: (classes: string[]) => string;
|
|
4
|
+
export declare const booleanString: (value: boolean) => string;
|
|
5
|
+
export declare const govHost: (host: HTMLStencilElement) => GovHost;
|
|
6
|
+
export declare const toBoolAttr: (value: boolean | string | number) => string;
|
|
7
|
+
export declare const toOnOffAttr: (value: boolean | string | number) => string;
|
|
8
|
+
export declare const toBoolAttrIfDefined: (value: boolean | string | number | undefined | null) => undefined | string;
|
|
9
|
+
export declare const toOnOffAttrIfDefined: (value: boolean | string | number | undefined | null) => undefined | string;
|
|
10
|
+
export declare const boolToFocusValue: (value: boolean) => undefined | string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLStencilElement } from '../../stencil-public-runtime';
|
|
2
|
+
import { Nullable } from "../../types/interfaces";
|
|
3
|
+
export interface GovHost {
|
|
4
|
+
name: string;
|
|
5
|
+
hostElement: HTMLStencilElement;
|
|
6
|
+
hasSlot(name: string): boolean;
|
|
7
|
+
isSlotEmpty(name: string): boolean;
|
|
8
|
+
getSlot(name: string): HTMLElement;
|
|
9
|
+
getParent(element: string): HTMLElement;
|
|
10
|
+
getSlotContent(name: string): Nullable<string>;
|
|
11
|
+
passChildAttr(selector: string | string[], name: string, value: any): void;
|
|
12
|
+
removeChildAttr(selector: string | string[], name: string): void;
|
|
13
|
+
classes(classes: string | string[]): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface IConfig {
|
|
2
|
+
canValidateWcagOnRender: boolean;
|
|
3
|
+
warningLog: boolean;
|
|
4
|
+
errorLog: boolean;
|
|
5
|
+
log: boolean;
|
|
6
|
+
iconsPath: string;
|
|
7
|
+
iconsLazyLoad: boolean;
|
|
8
|
+
documentNode: Document;
|
|
9
|
+
}
|
|
10
|
+
export declare const isWindow: boolean;
|
|
11
|
+
export declare const canValidateWcagOnRender: () => IConfig["canValidateWcagOnRender"];
|
|
12
|
+
export declare const useWarningLog: () => IConfig["warningLog"];
|
|
13
|
+
export declare const useErrorLog: () => IConfig["errorLog"];
|
|
14
|
+
export declare const useLog: () => IConfig["log"];
|
|
15
|
+
export declare const iconsPath: () => IConfig["iconsPath"];
|
|
16
|
+
export declare const iconsLazyLoad: () => IConfig["iconsLazyLoad"];
|
|
17
|
+
export declare const documentNode: () => IConfig["documentNode"];
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ColorConfig {
|
|
2
|
+
bg: string;
|
|
3
|
+
text: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const govLog: (message: string, colors?: ColorConfig, args?: unknown) => void;
|
|
6
|
+
export declare const govWarningLog: (message: string, args?: unknown) => void;
|
|
7
|
+
export declare const govErrorLog: (message: string, args?: unknown) => void;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const validateProp: <T extends Record<string, string>>(valueEnum: T, value: string, component: string) => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const validateWcagProp: (value: string | undefined, propName: string, component: string) => void;
|
|
2
|
+
export declare const validateWcagRef: (referenceId: string, name: string, component: string) => boolean;
|
|
3
|
+
export declare const validateWcagLabelFor: (inputId: string, labelledBy: string | undefined, component: string) => boolean;
|
|
4
|
+
export declare const validateAccessibleLabel: (label: string | undefined, labelledBy: string | undefined, component: string, el?: HTMLElement) => boolean;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|