reakit
Version:
Toolkit for building accessible rich web apps with React
77 lines (76 loc) • 1.69 kB
text/typescript
// Automatically generated
const MENU_BAR_STATE_KEYS = [
"baseId",
"unstable_idCountRef",
"unstable_virtual",
"rtl",
"orientation",
"items",
"groups",
"currentId",
"loop",
"wrap",
"shift",
"unstable_moves",
"unstable_hasActiveWidget",
"unstable_includesBaseElement",
"unstable_values",
"setBaseId",
"registerItem",
"unregisterItem",
"registerGroup",
"unregisterGroup",
"move",
"next",
"previous",
"up",
"down",
"first",
"last",
"sort",
"unstable_setVirtual",
"setRTL",
"setOrientation",
"setCurrentId",
"setLoop",
"setWrap",
"setShift",
"reset",
"unstable_setIncludesBaseElement",
"unstable_setHasActiveWidget",
"unstable_setValue",
] as const;
const MENU_STATE_KEYS = [
...MENU_BAR_STATE_KEYS,
"visible",
"animated",
"animating",
"show",
"hide",
"toggle",
"setVisible",
"setAnimated",
"stopAnimation",
"modal",
"unstable_disclosureRef",
"setModal",
"unstable_referenceRef",
"unstable_popoverRef",
"unstable_arrowRef",
"unstable_popoverStyles",
"unstable_arrowStyles",
"unstable_originalPlacement",
"unstable_update",
"placement",
"place",
] as const;
export const MENU_KEYS = MENU_STATE_KEYS;
export const MENU_ARROW_KEYS = MENU_KEYS;
export const MENU_BAR_KEYS = MENU_ARROW_KEYS;
export const MENU_BUTTON_KEYS = MENU_BAR_KEYS;
export const MENU_DISCLOSURE_KEYS = MENU_BUTTON_KEYS;
export const MENU_GROUP_KEYS = MENU_DISCLOSURE_KEYS;
export const MENU_ITEM_KEYS = MENU_GROUP_KEYS;
export const MENU_ITEM_CHECKBOX_KEYS = [...MENU_ITEM_KEYS, "name"] as const;
export const MENU_ITEM_RADIO_KEYS = MENU_ITEM_CHECKBOX_KEYS;
export const MENU_SEPARATOR_KEYS = MENU_ITEM_KEYS;