@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,34 @@
|
|
|
1
|
+
import { LinkSizesType } from './constants';
|
|
2
|
+
import { Attributes } from "../../helpers/Dom/attribute";
|
|
3
|
+
export declare class GovLink {
|
|
4
|
+
private h;
|
|
5
|
+
constructor();
|
|
6
|
+
host: HTMLGovLinkElement;
|
|
7
|
+
/**
|
|
8
|
+
* Element size.
|
|
9
|
+
*/
|
|
10
|
+
readonly size?: LinkSizesType;
|
|
11
|
+
/**
|
|
12
|
+
* Element size.
|
|
13
|
+
*/
|
|
14
|
+
readonly external?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Cutting text to one line
|
|
17
|
+
*/
|
|
18
|
+
readonly truncate?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Same as original parameter
|
|
21
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href
|
|
22
|
+
*/
|
|
23
|
+
readonly href: string;
|
|
24
|
+
/**
|
|
25
|
+
* Same as original parameter
|
|
26
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target
|
|
27
|
+
*/
|
|
28
|
+
readonly target: string;
|
|
29
|
+
validateSize(newValue: string): void;
|
|
30
|
+
inheritedAttributes: Attributes;
|
|
31
|
+
componentWillLoad(): void;
|
|
32
|
+
onAriaAttributeChange(attributeName: string, newValue: string): void;
|
|
33
|
+
render(): any;
|
|
34
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Sizes } from "../../../core/constants/sizes";
|
|
2
|
+
import { ValueOf } from "../../../types/interfaces";
|
|
3
|
+
export declare const LoadingSizes: Pick<typeof Sizes, "_S" | "_M" | "_L">;
|
|
4
|
+
export type LoadingSizesType = `${ValueOf<typeof LoadingSizes>}`;
|
|
5
|
+
export declare const LoadingClass: {
|
|
6
|
+
root: string;
|
|
7
|
+
content: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LoadingSizesType } from "./constants";
|
|
2
|
+
export declare class GovLoading {
|
|
3
|
+
private h;
|
|
4
|
+
constructor();
|
|
5
|
+
host: HTMLGovLoadingElement;
|
|
6
|
+
/**
|
|
7
|
+
* Loading size
|
|
8
|
+
*/
|
|
9
|
+
readonly size?: LoadingSizesType;
|
|
10
|
+
validateSize(newValue: string): void;
|
|
11
|
+
componentWillLoad(): void;
|
|
12
|
+
render(): any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ValueOf } from "../../../types/interfaces";
|
|
2
|
+
import { Sizes } from "../../../core/constants/sizes";
|
|
3
|
+
import { Colors } from "../../../core/constants/colors";
|
|
4
|
+
export declare const SkeletonSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_XL">;
|
|
5
|
+
export type SkeletonSizesType = `${ValueOf<typeof SkeletonSizes>}`;
|
|
6
|
+
export declare const SkeletonColors: Pick<typeof Colors, "PRIMARY" | "NEUTRAL">;
|
|
7
|
+
export type SkeletonColorType = `${ValueOf<typeof SkeletonColors>}`;
|
|
8
|
+
export declare enum SkeletonShapes {
|
|
9
|
+
CIRCLE = "circle",
|
|
10
|
+
LINE = "line"
|
|
11
|
+
}
|
|
12
|
+
export type SkeletonShapesType = `${ValueOf<typeof SkeletonShapes>}`;
|
|
13
|
+
export declare enum SkeletonAnimation {
|
|
14
|
+
PULSE = "pulse",
|
|
15
|
+
PROGRESS = "progress",
|
|
16
|
+
FALSE = "false"
|
|
17
|
+
}
|
|
18
|
+
export type SkeletonAnimationType = `${ValueOf<typeof SkeletonAnimation>}`;
|
|
19
|
+
export declare const SkeletonClass: {
|
|
20
|
+
root: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { SkeletonAnimationType, SkeletonColorType, SkeletonShapesType } from "./constants";
|
|
2
|
+
import { GovHost } from "../../../helpers/Dom/template.types";
|
|
3
|
+
import { FormInputSizesType } from "../../gov-form/input/constants";
|
|
4
|
+
import { Attributes } from "../../../helpers/Dom/attribute";
|
|
5
|
+
export declare class GovSkeleton {
|
|
6
|
+
h: GovHost;
|
|
7
|
+
private attributeObserver;
|
|
8
|
+
constructor();
|
|
9
|
+
host: HTMLGovSkeletonElement;
|
|
10
|
+
/**
|
|
11
|
+
* Input’s size.
|
|
12
|
+
*/
|
|
13
|
+
readonly size?: FormInputSizesType;
|
|
14
|
+
/**
|
|
15
|
+
* Style variation of the skeleton.
|
|
16
|
+
*/
|
|
17
|
+
readonly color?: SkeletonColorType;
|
|
18
|
+
/**
|
|
19
|
+
* Shape of the skeleton
|
|
20
|
+
*/
|
|
21
|
+
shape?: SkeletonShapesType;
|
|
22
|
+
/**
|
|
23
|
+
* Width of the skeleton ex. 100px, 100%, auto etc.
|
|
24
|
+
*/
|
|
25
|
+
width?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Height of the skeleton ex. 100px, 100%, auto etc.
|
|
28
|
+
*/
|
|
29
|
+
height?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Animation type
|
|
32
|
+
*/
|
|
33
|
+
animation?: SkeletonAnimationType;
|
|
34
|
+
items: number[];
|
|
35
|
+
validateSize(newValue: string): void;
|
|
36
|
+
validateShape(newValue: string): void;
|
|
37
|
+
validateAnimation(newValue: string): void;
|
|
38
|
+
inheritedAttributes: Attributes;
|
|
39
|
+
componentDidLoad(): void;
|
|
40
|
+
componentWillLoad(): void;
|
|
41
|
+
componentWillUpdate(): void;
|
|
42
|
+
disconnectedCallback(): void;
|
|
43
|
+
onAriaAttributeChange(attributeName: string, newValue: string): void;
|
|
44
|
+
init(): void;
|
|
45
|
+
render(): any;
|
|
46
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Colors } from '../../core/constants/colors';
|
|
2
|
+
import { ValueOf } from '../../types/interfaces';
|
|
3
|
+
export declare const MessageColors: Pick<typeof Colors, "PRIMARY" | "NEUTRAL" | "SUCCESS" | "ERROR" | "WARNING">;
|
|
4
|
+
export type MessageColorType = `${ValueOf<typeof MessageColors>}`;
|
|
5
|
+
export declare enum MessageType {
|
|
6
|
+
BOLD = "bold",
|
|
7
|
+
SUBTLE = "subtle"
|
|
8
|
+
}
|
|
9
|
+
export type MessageTypesType = `${ValueOf<typeof MessageType>}`;
|
|
10
|
+
export declare const MessageClass: {
|
|
11
|
+
root: string;
|
|
12
|
+
content: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MessageTypesType, MessageColorType } from "./constants";
|
|
2
|
+
export declare class GovMessage {
|
|
3
|
+
private h;
|
|
4
|
+
constructor();
|
|
5
|
+
host: HTMLGovMessageElement;
|
|
6
|
+
/**
|
|
7
|
+
* Style variation of the content message.
|
|
8
|
+
*/
|
|
9
|
+
readonly color: MessageColorType;
|
|
10
|
+
/**
|
|
11
|
+
* Message type
|
|
12
|
+
*/
|
|
13
|
+
readonly type?: MessageTypesType;
|
|
14
|
+
validateColor(newValue: string): void;
|
|
15
|
+
render(): any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Sizes } from '../../core/constants/sizes';
|
|
2
|
+
import { Colors } from '../../core/constants/colors';
|
|
3
|
+
import { ValueOf } from '../../types/interfaces';
|
|
4
|
+
export declare const PaginationSizes: Pick<typeof Sizes, "_S" | "_M">;
|
|
5
|
+
export type PaginationSizeType = `${ValueOf<typeof PaginationSizes>}`;
|
|
6
|
+
export declare const PaginationColors: Pick<typeof Colors, "PRIMARY" | "NEUTRAL">;
|
|
7
|
+
export type PaginationColorType = `${ValueOf<typeof PaginationColors>}`;
|
|
8
|
+
export declare enum PaginationTypes {
|
|
9
|
+
BUTTON = "button",
|
|
10
|
+
SELECT = "select"
|
|
11
|
+
}
|
|
12
|
+
export type PaginationType = `${ValueOf<typeof PaginationTypes>}`;
|
|
13
|
+
export declare const PaginationClass: {
|
|
14
|
+
root: string;
|
|
15
|
+
list: string;
|
|
16
|
+
item: string;
|
|
17
|
+
itemArrow: string;
|
|
18
|
+
itemMore: string;
|
|
19
|
+
itemSelect: string;
|
|
20
|
+
inner: string;
|
|
21
|
+
arrow: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { PaginationColorType, PaginationSizeType, PaginationType } from "./constants";
|
|
3
|
+
import { Pagination } from "./pagination";
|
|
4
|
+
import { PaginationEvent } from "./gov-pagination.types";
|
|
5
|
+
import { Attributes } from "../../helpers/Dom/attribute";
|
|
6
|
+
export declare class GovPagination {
|
|
7
|
+
private h;
|
|
8
|
+
private readonly pageSelectId;
|
|
9
|
+
private readonly selectId;
|
|
10
|
+
private spreadSelectRef?;
|
|
11
|
+
private attributeObserver;
|
|
12
|
+
constructor();
|
|
13
|
+
readonly host: HTMLGovPaginationElement;
|
|
14
|
+
/**
|
|
15
|
+
* Pagination type
|
|
16
|
+
*/
|
|
17
|
+
readonly type: PaginationType;
|
|
18
|
+
/**
|
|
19
|
+
* Currently displayed page
|
|
20
|
+
*/
|
|
21
|
+
readonly current: number;
|
|
22
|
+
/**
|
|
23
|
+
* Total count of entries
|
|
24
|
+
*/
|
|
25
|
+
readonly total: number;
|
|
26
|
+
/**
|
|
27
|
+
* Custom select identifier.
|
|
28
|
+
*/
|
|
29
|
+
readonly selectIdentifier: string;
|
|
30
|
+
/**
|
|
31
|
+
* Pagination's size
|
|
32
|
+
*/
|
|
33
|
+
readonly size?: PaginationSizeType;
|
|
34
|
+
/**
|
|
35
|
+
* Style variation of the pagination.
|
|
36
|
+
*/
|
|
37
|
+
readonly color?: PaginationColorType;
|
|
38
|
+
/**
|
|
39
|
+
* Maximum number of entries per page
|
|
40
|
+
*/
|
|
41
|
+
readonly pageSize: number;
|
|
42
|
+
/**
|
|
43
|
+
* Maximum pages displayed for selection
|
|
44
|
+
*/
|
|
45
|
+
readonly maxPages: number;
|
|
46
|
+
/**
|
|
47
|
+
* Setting a link to redirect to a given page.
|
|
48
|
+
* The {PAGE} wildcard can be used in the link to replace the page number.
|
|
49
|
+
* Note that in the case of paging through a link, it is always necessary to send to the component the current page where the user is.
|
|
50
|
+
*/
|
|
51
|
+
readonly link: string;
|
|
52
|
+
/**
|
|
53
|
+
* Adds accessible label for the page select
|
|
54
|
+
*/
|
|
55
|
+
readonly accessibleSelectLabel: string;
|
|
56
|
+
/**
|
|
57
|
+
* Adds accessible label for the page item
|
|
58
|
+
*/
|
|
59
|
+
readonly accessiblePageLabel: string;
|
|
60
|
+
/**
|
|
61
|
+
* Description of the possibility to go back one page
|
|
62
|
+
*/
|
|
63
|
+
readonly labelPrev = "P\u0159ej\u00EDt o stranu zp\u011Bt";
|
|
64
|
+
/**
|
|
65
|
+
* Description of the option to go to the top of paging
|
|
66
|
+
*/
|
|
67
|
+
readonly labelStart = "P\u0159ej\u00EDt na za\u010D\u00E1tek";
|
|
68
|
+
/**
|
|
69
|
+
* Description of the option to go to the end of paging
|
|
70
|
+
*/
|
|
71
|
+
readonly labelNext = "P\u0159ej\u00EDt na dal\u0161\u00ED stranu";
|
|
72
|
+
/**
|
|
73
|
+
* Description of the option to move one page forward
|
|
74
|
+
*/
|
|
75
|
+
readonly labelEnd = "P\u0159ej\u00EDt na konec";
|
|
76
|
+
/**
|
|
77
|
+
* Event called when changing the page with the current setting of the whole paging
|
|
78
|
+
*/
|
|
79
|
+
govPage: EventEmitter<PaginationEvent>;
|
|
80
|
+
pagination: Pagination;
|
|
81
|
+
inheritedAttributes: Attributes;
|
|
82
|
+
validateType(newValue: string): void;
|
|
83
|
+
validateSize(newValue: string): void;
|
|
84
|
+
validateColor(newValue: string): void;
|
|
85
|
+
recalculate(): void;
|
|
86
|
+
componentDidLoad(): void;
|
|
87
|
+
componentWillLoad(): void;
|
|
88
|
+
disconnectedCallback(): void;
|
|
89
|
+
onAriaAttributeChange(attributeName: string, newValue: string): void;
|
|
90
|
+
private recalculatePagination;
|
|
91
|
+
private isActivePageClass;
|
|
92
|
+
private prepareLinkUrl;
|
|
93
|
+
private resetSelectValue;
|
|
94
|
+
render(): any;
|
|
95
|
+
private onClickHandler;
|
|
96
|
+
private onSelectHandler;
|
|
97
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface Pagination {
|
|
2
|
+
totalItems: number;
|
|
3
|
+
currentPage: number;
|
|
4
|
+
pageSize: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
startPage: number;
|
|
7
|
+
endPage: number;
|
|
8
|
+
startIndex: number;
|
|
9
|
+
endIndex: number;
|
|
10
|
+
pages: number[];
|
|
11
|
+
}
|
|
12
|
+
export declare function paginate(totalItems: number, currentPage?: number, pageSize?: number, maxPages?: number): Pagination;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Sizes } from '../../core/constants/sizes';
|
|
2
|
+
import { ValueOf } from '../../types/interfaces';
|
|
3
|
+
export declare const SpacerSize: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_XL" | "_2XS" | "_2XL" | "_3XL" | "_4XL">;
|
|
4
|
+
export type SpacerSizeType = `${ValueOf<typeof SpacerSize>}`;
|
|
5
|
+
export declare enum SpacerBreakpoints {
|
|
6
|
+
NONE = "none",
|
|
7
|
+
SM = "sm",
|
|
8
|
+
MD = "md",
|
|
9
|
+
LG = "lg",
|
|
10
|
+
XL = "xl"
|
|
11
|
+
}
|
|
12
|
+
export type SpacerBreakpointsType = `${ValueOf<typeof SpacerBreakpoints>}`;
|
|
13
|
+
export declare const SpacerClass: {
|
|
14
|
+
root: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SpacerBreakpointsType, SpacerSizeType } from './constants';
|
|
2
|
+
export declare class GovSpacer {
|
|
3
|
+
private h;
|
|
4
|
+
constructor();
|
|
5
|
+
host: HTMLGovSpacerElement;
|
|
6
|
+
/**
|
|
7
|
+
* Spacer’s size
|
|
8
|
+
*/
|
|
9
|
+
readonly size?: SpacerSizeType;
|
|
10
|
+
/**
|
|
11
|
+
* Breakpoint
|
|
12
|
+
*/
|
|
13
|
+
readonly breakpoint?: SpacerBreakpointsType;
|
|
14
|
+
validateSize(newValue: string): void;
|
|
15
|
+
validateBreakpoint(newValue: string): void;
|
|
16
|
+
componentWillLoad(): void;
|
|
17
|
+
render(): any;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Colors } from '../../../core/constants/colors';
|
|
2
|
+
import { Sizes } from '../../../core/constants/sizes';
|
|
3
|
+
import { ValueOf } from '../../../types/interfaces';
|
|
4
|
+
export declare const StepperColors: Pick<typeof Colors, "PRIMARY" | "NEUTRAL" | "SUCCESS" | "ERROR" | "WARNING">;
|
|
5
|
+
export type StepperColorType = `${ValueOf<typeof StepperColors>}`;
|
|
6
|
+
export declare const StepperSizes: Pick<typeof Sizes, "_S" | "_M" | "_L">;
|
|
7
|
+
export type StepperSizesType = `${ValueOf<typeof StepperSizes>}`;
|
|
8
|
+
export declare const StepperClass: {
|
|
9
|
+
root: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const StepperItemClass: {
|
|
12
|
+
root: string;
|
|
13
|
+
header: string;
|
|
14
|
+
label: string;
|
|
15
|
+
steps: string;
|
|
16
|
+
prefix: string;
|
|
17
|
+
main: string;
|
|
18
|
+
headline: string;
|
|
19
|
+
annotation: string;
|
|
20
|
+
content: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { StepperSizesType, StepperColorType } from './constants';
|
|
3
|
+
import { GovStepperItemChangeEvent } from './gov-stepper-item.d';
|
|
4
|
+
export declare class GovStepperItem {
|
|
5
|
+
private h;
|
|
6
|
+
private readonly triggerId;
|
|
7
|
+
private readonly contentId;
|
|
8
|
+
private hydrated;
|
|
9
|
+
constructor();
|
|
10
|
+
readonly host: HTMLGovStepperItemElement;
|
|
11
|
+
/**
|
|
12
|
+
* Style variation of the button.
|
|
13
|
+
*/
|
|
14
|
+
readonly color?: StepperColorType;
|
|
15
|
+
/**
|
|
16
|
+
* Size of stepper
|
|
17
|
+
*/
|
|
18
|
+
readonly size?: StepperSizesType;
|
|
19
|
+
/**
|
|
20
|
+
* Custom stepper item identifier. Otherwise, it will be generated
|
|
21
|
+
*/
|
|
22
|
+
readonly identifier: string;
|
|
23
|
+
/**
|
|
24
|
+
* Called when the accordion state changes
|
|
25
|
+
*/
|
|
26
|
+
govChange: EventEmitter<GovStepperItemChangeEvent>;
|
|
27
|
+
validateColor(newValue: string): void;
|
|
28
|
+
componentWillLoad(): void;
|
|
29
|
+
connectedCallback(): void;
|
|
30
|
+
render(): any;
|
|
31
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { StepperSizesType } from './constants';
|
|
3
|
+
import { GovStepperItemChangeEvent } from './gov-stepper-item.d';
|
|
4
|
+
export declare class GovStepper {
|
|
5
|
+
private h;
|
|
6
|
+
private hydrated;
|
|
7
|
+
constructor();
|
|
8
|
+
readonly host: HTMLGovStepperElement;
|
|
9
|
+
/**
|
|
10
|
+
* Size of stepper
|
|
11
|
+
*/
|
|
12
|
+
readonly size?: StepperSizesType;
|
|
13
|
+
/**
|
|
14
|
+
* Called when the Stepper state changes
|
|
15
|
+
*/
|
|
16
|
+
govChange: EventEmitter<GovStepperItemChangeEvent>;
|
|
17
|
+
validateSize(newValue: string): void;
|
|
18
|
+
componentWillLoad(): void;
|
|
19
|
+
componentDidLoad(): void;
|
|
20
|
+
connectedCallback(): void;
|
|
21
|
+
render(): any;
|
|
22
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ValueOf } from '../../types/interfaces';
|
|
2
|
+
import { Sizes } from "../../core/constants/sizes";
|
|
3
|
+
import { Colors } from '../../core/constants/colors';
|
|
4
|
+
export declare const TabSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_XL">;
|
|
5
|
+
export type TabSizeType = `${ValueOf<typeof TabSizes>}`;
|
|
6
|
+
export declare const TabColors: Pick<typeof Colors, "PRIMARY" | "NEUTRAL">;
|
|
7
|
+
export type ColorType = `${ValueOf<typeof TabColors>}`;
|
|
8
|
+
export declare enum TabTypes {
|
|
9
|
+
TEXT = "text",
|
|
10
|
+
CHIP = "chip"
|
|
11
|
+
}
|
|
12
|
+
export type TabType = `${ValueOf<typeof TabTypes>}`;
|
|
13
|
+
export declare enum TabOrientation {
|
|
14
|
+
HORIZONTAL = "horizontal",
|
|
15
|
+
VERTICAL = "vertical"
|
|
16
|
+
}
|
|
17
|
+
export type TabOrientationType = `${ValueOf<typeof TabOrientation>}`;
|
|
18
|
+
export declare const TabsClass: {
|
|
19
|
+
root: string;
|
|
20
|
+
tabs: string;
|
|
21
|
+
list: string;
|
|
22
|
+
item: string;
|
|
23
|
+
btn: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const TabsItemClass: {
|
|
26
|
+
root: string;
|
|
27
|
+
inner: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare class GovTabsItem {
|
|
2
|
+
private h;
|
|
3
|
+
private readonly contentId;
|
|
4
|
+
private readonly triggerId;
|
|
5
|
+
constructor();
|
|
6
|
+
host: HTMLGovTabsItemElement;
|
|
7
|
+
/**
|
|
8
|
+
* Custom tab item identifier. Otherwise, it will be generated
|
|
9
|
+
*/
|
|
10
|
+
readonly identifier: string;
|
|
11
|
+
/**
|
|
12
|
+
* Custom tab trigger item identifier. Otherwise, it will be generated
|
|
13
|
+
*/
|
|
14
|
+
readonly triggerIdentifier: string;
|
|
15
|
+
/**
|
|
16
|
+
* Item name of the tab
|
|
17
|
+
*/
|
|
18
|
+
readonly label: string;
|
|
19
|
+
/**
|
|
20
|
+
* Item disable state
|
|
21
|
+
*/
|
|
22
|
+
readonly disabled: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Icon definition at the stat. Use the type/name notation
|
|
25
|
+
*/
|
|
26
|
+
readonly iconStart: string;
|
|
27
|
+
/**
|
|
28
|
+
* Icon definition at the end. Use the type/name notation
|
|
29
|
+
*/
|
|
30
|
+
readonly iconEnd: string;
|
|
31
|
+
/**
|
|
32
|
+
* Default selected tab
|
|
33
|
+
*/
|
|
34
|
+
readonly default: boolean;
|
|
35
|
+
isActive: boolean;
|
|
36
|
+
rerenderParent(): void;
|
|
37
|
+
render(): any;
|
|
38
|
+
/**
|
|
39
|
+
* Returns a unique tab content identifier
|
|
40
|
+
*/
|
|
41
|
+
getIdentifier(): Promise<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Returns a unique tab trigger identifier
|
|
44
|
+
*/
|
|
45
|
+
getTriggerIdentifier(): Promise<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Returns a unique tab trigger identifier
|
|
48
|
+
*/
|
|
49
|
+
getDisableState(): Promise<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* Set status of tab-item
|
|
52
|
+
*/
|
|
53
|
+
setActiveStatus(status: boolean): Promise<void>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { ColorType, TabOrientationType, TabSizeType, TabType } from "./constants";
|
|
3
|
+
import { GovTabControllerItem } from "./gov-tabs.types";
|
|
4
|
+
import { Nullable } from "../../types/interfaces";
|
|
5
|
+
import { Attributes } from "../../helpers/Dom/attribute";
|
|
6
|
+
export declare class GovTabs {
|
|
7
|
+
private h;
|
|
8
|
+
private triggerRefs;
|
|
9
|
+
private attributeObserver;
|
|
10
|
+
constructor();
|
|
11
|
+
host: HTMLGovTabsElement;
|
|
12
|
+
/**
|
|
13
|
+
* Tabs type
|
|
14
|
+
*/
|
|
15
|
+
readonly type: TabType;
|
|
16
|
+
/**
|
|
17
|
+
* Tabs size.
|
|
18
|
+
*/
|
|
19
|
+
readonly size?: TabSizeType;
|
|
20
|
+
/**
|
|
21
|
+
* Style variation of the tab chips.
|
|
22
|
+
*/
|
|
23
|
+
readonly color?: ColorType;
|
|
24
|
+
/**
|
|
25
|
+
* Tabs orientation
|
|
26
|
+
*/
|
|
27
|
+
readonly orientation: TabOrientationType;
|
|
28
|
+
/**
|
|
29
|
+
* Icon and description display direction
|
|
30
|
+
*/
|
|
31
|
+
readonly direction: 'row' | 'column';
|
|
32
|
+
/**
|
|
33
|
+
* Emitted when the tab is changed.
|
|
34
|
+
*/
|
|
35
|
+
govChange: EventEmitter<HTMLGovTabsItemElement>;
|
|
36
|
+
validateType(newValue: string): void;
|
|
37
|
+
validateColor(newValue: string): void;
|
|
38
|
+
validateSize(newValue: string): void;
|
|
39
|
+
controllers: GovTabControllerItem[];
|
|
40
|
+
focusIndex: number;
|
|
41
|
+
inheritedAttributes: Attributes;
|
|
42
|
+
componentDidLoad(): void;
|
|
43
|
+
componentWillLoad(): void;
|
|
44
|
+
disconnectedCallback(): void;
|
|
45
|
+
onAriaAttributeChange(attributeName: string, newValue: string): void;
|
|
46
|
+
private prepareControllers;
|
|
47
|
+
private setActiveByIdentifier;
|
|
48
|
+
private reRender;
|
|
49
|
+
render(): any;
|
|
50
|
+
private getCurrentTab;
|
|
51
|
+
private onSelectHandler;
|
|
52
|
+
private onKeydownHandler;
|
|
53
|
+
private goToPrevNext;
|
|
54
|
+
/**
|
|
55
|
+
* Regenerate tabs controllers
|
|
56
|
+
*/
|
|
57
|
+
refresh(): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Returns the currently selected tabs-item
|
|
60
|
+
*/
|
|
61
|
+
currentTab(): Promise<Nullable<HTMLGovTabsItemElement>>;
|
|
62
|
+
/**
|
|
63
|
+
* Regenerate tabs controllers
|
|
64
|
+
*/
|
|
65
|
+
setActiveTab(identifier: string): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Regenerate tabs controllers
|
|
68
|
+
*/
|
|
69
|
+
rerender(): Promise<void>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Nullable } from "../../types/interfaces";
|
|
2
|
+
import { IconType } from "../gov-icon/helpers";
|
|
3
|
+
export interface GovTabControllerItem {
|
|
4
|
+
label: string;
|
|
5
|
+
contentIdentifier: string;
|
|
6
|
+
triggerIdentifier: string;
|
|
7
|
+
element: HTMLGovTabsItemElement;
|
|
8
|
+
active: boolean;
|
|
9
|
+
default: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
iconStart: Nullable<IconType>;
|
|
12
|
+
iconEnd: Nullable<IconType>;
|
|
13
|
+
direction: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Sizes } from "../../core/constants/sizes";
|
|
2
|
+
import { ValueOf } from "../../types/interfaces";
|
|
3
|
+
export declare const TagSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M">;
|
|
4
|
+
export type TagSizesType = `${ValueOf<typeof TagSizes>}`;
|
|
5
|
+
export declare enum TagType {
|
|
6
|
+
BOLD = "bold",
|
|
7
|
+
SUBTLE = "subtle"
|
|
8
|
+
}
|
|
9
|
+
export type TagTypesType = `${ValueOf<typeof TagType>}`;
|
|
10
|
+
export declare const TagClass: {
|
|
11
|
+
root: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ButtonColorType } from '../gov-button/button/constants';
|
|
2
|
+
import { TagSizesType, TagTypesType } from './constants';
|
|
3
|
+
export declare class GovTag {
|
|
4
|
+
private h;
|
|
5
|
+
constructor();
|
|
6
|
+
host: HTMLGovTagElement;
|
|
7
|
+
/**
|
|
8
|
+
* Definition of the button icon on the left. The icon must be defined in the form "type/name".
|
|
9
|
+
*/
|
|
10
|
+
readonly iconStart?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Definition of the button icon on the left. The icon must be defined in the form "type/name".
|
|
13
|
+
*/
|
|
14
|
+
readonly iconEnd?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Tag’s size.
|
|
17
|
+
*/
|
|
18
|
+
readonly size: TagSizesType;
|
|
19
|
+
/**
|
|
20
|
+
* Style variation of the tag.
|
|
21
|
+
*/
|
|
22
|
+
readonly color: ButtonColorType;
|
|
23
|
+
/**
|
|
24
|
+
* Tag’s type
|
|
25
|
+
*/
|
|
26
|
+
readonly type: TagTypesType;
|
|
27
|
+
/**
|
|
28
|
+
* Expands the tag to fill 100% of the container width
|
|
29
|
+
*/
|
|
30
|
+
readonly expanded: boolean;
|
|
31
|
+
validateColor(newValue: string): void;
|
|
32
|
+
validateSize(newValue: string): void;
|
|
33
|
+
componentWillLoad(): void;
|
|
34
|
+
render(): any;
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Sizes } from "../../core/constants/sizes";
|
|
2
|
+
import { ValueOf } from "../../types/interfaces";
|
|
3
|
+
export declare const ThemeSwitchSizes: Pick<typeof Sizes, "_XS" | "_S" | "_M" | "_L" | "_XL">;
|
|
4
|
+
export type ThemeSwitchSizesType = `${ValueOf<typeof ThemeSwitchSizes>}`;
|
|
5
|
+
export declare const ThemeSwitchClass: {
|
|
6
|
+
root: string;
|
|
7
|
+
indicator: string;
|
|
8
|
+
label: string;
|
|
9
|
+
iconLight: string;
|
|
10
|
+
iconDark: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const ATTRIBUTE_THEME_NAME = "data-theme";
|