pub fn text_field_kind(flags: FieldFlags) -> TextFieldKind
Determine the text field sub-kind from field flags.