How can I extend the webform #states conditions to save a custom set of conditions for webform fields?
There's a hook for that: hook_webform_element_configuration_form_alter(), webform_example_element_properties.module provides a simple example too.