TextInput: Export pattern, min and max attributes only if the input type allows them.