acd531f69e
Release / release (push) Successful in 2m38s
| Numéro du ticket | Titre du ticket | |------------------|-----------------| | | | ## Description de la PR ## Modification du .env ## Check list - [ ] Pas de régression - [ ] TU/TI/TF rédigée - [ ] TU/TI/TF OK - [ ] CHANGELOG modifié --------- Co-authored-by: THOLOT DECHENE Matthieu <matthieu@yuno.malio.fr> Co-authored-by: matthieu <matthieu@yuno.malio.fr> Reviewed-on: #56 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
20 lines
629 B
TypeScript
20 lines
629 B
TypeScript
import type {ComputedRef, InjectionKey} from 'vue'
|
|
|
|
export interface AccordionItemRegistration {
|
|
value: string
|
|
getHeaderEl: () => HTMLElement | null
|
|
isDisabled: () => boolean
|
|
}
|
|
|
|
export interface AccordionContext {
|
|
mode: ComputedRef<'single' | 'multiple'>
|
|
baseId: ComputedRef<string>
|
|
isOpen: (value: string) => boolean
|
|
toggle: (value: string) => void
|
|
register: (item: AccordionItemRegistration, defaultOpen: boolean) => void
|
|
unregister: (value: string) => void
|
|
focusSibling: (value: string, offset: 1 | -1) => void
|
|
}
|
|
|
|
export const accordionContextKey: InjectionKey<AccordionContext> = Symbol('MalioAccordion')
|