reakit
Version:
Toolkit for building accessible rich web apps with React
40 lines (39 loc) • 1.03 kB
text/typescript
// Automatically generated
const FORM_STATE_KEYS = [
"baseId",
"unstable_idCountRef",
"values",
"touched",
"messages",
"errors",
"validating",
"valid",
"submitting",
"submitSucceed",
"submitFailed",
"setBaseId",
"reset",
"validate",
"submit",
"update",
"blur",
"push",
"remove",
] as const;
export const FORM_KEYS = FORM_STATE_KEYS;
export const FORM_CHECKBOX_KEYS = [...FORM_KEYS, "name", "value"] as const;
export const FORM_GROUP_KEYS = [...FORM_KEYS, "name"] as const;
export const FORM_INPUT_KEYS = FORM_GROUP_KEYS;
export const FORM_LABEL_KEYS = [...FORM_INPUT_KEYS, "label"] as const;
export const FORM_MESSAGE_KEYS = FORM_INPUT_KEYS;
export const FORM_PUSH_BUTTON_KEYS = [
...FORM_MESSAGE_KEYS,
...FORM_CHECKBOX_KEYS,
] as const;
export const FORM_RADIO_KEYS = FORM_PUSH_BUTTON_KEYS;
export const FORM_RADIO_GROUP_KEYS = FORM_MESSAGE_KEYS;
export const FORM_REMOVE_BUTTON_KEYS = [
...FORM_RADIO_GROUP_KEYS,
"index",
] as const;
export const FORM_SUBMIT_BUTTON_KEYS = FORM_KEYS;