An adaptive transport framework for joint and conditional density estimation