Police have launched an appeal after a man was "punched and kicked" in an attack in a West Yorkshire town centre.