2020-03-18 10:06:31 +01:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
|
|
export type A11yRole =
|
|
|
|
|
| 'none'
|
|
|
|
|
| 'button'
|
|
|
|
|
| 'link'
|
|
|
|
|
| 'search'
|
|
|
|
|
| 'image'
|
|
|
|
|
| 'keyboardkey'
|
|
|
|
|
| 'text'
|
|
|
|
|
| 'adjustable'
|
|
|
|
|
| 'imagebutton'
|
|
|
|
|
| 'header'
|
|
|
|
|
| 'summary'
|
|
|
|
|
| 'alert'
|
|
|
|
|
| 'checkbox'
|
|
|
|
|
| 'combobox'
|
|
|
|
|
| 'menu'
|
|
|
|
|
| 'menubar'
|
|
|
|
|
| 'menuitem'
|
|
|
|
|
| 'progressbar'
|
|
|
|
|
| 'radio'
|
|
|
|
|
| 'radiogroup'
|
|
|
|
|
| 'scrollbar'
|
|
|
|
|
| 'spinbutton'
|
|
|
|
|
| 'switch'
|
|
|
|
|
| 'tab'
|
|
|
|
|
| 'tablist'
|
|
|
|
|
| 'timer'
|
|
|
|
|
| 'toolbar';
|
|
|
|
|
|
|
|
|
|
export type A11yState = {|
|
|
|
|
|
disabled?: boolean,
|
|
|
|
|
selected?: boolean,
|
|
|
|
|
checked?: boolean | 'mixed',
|
|
|
|
|
busy?: boolean,
|
|
|
|
|
expanded?: boolean,
|
|
|
|
|
|};
|
|
|
|
|
|
|
|
|
|
export type A11yStates =
|
|
|
|
|
| 'disabled'
|
|
|
|
|
| 'selected'
|
|
|
|
|
| 'checked'
|
|
|
|
|
| 'unchecked'
|
|
|
|
|
| 'busy'
|
|
|
|
|
| 'expanded'
|
|
|
|
|
| 'collapsed'
|
|
|
|
|
| 'hasPopup';
|
2020-03-18 10:42:20 +01:00
|
|
|
|
|
|
|
|
export type A11yValue = {
|
|
|
|
|
min?: number,
|
|
|
|
|
max?: number,
|
|
|
|
|
now?: number,
|
|
|
|
|
text?: string,
|
|
|
|
|
};
|