A general approach to transversal versions of Dirac-type theorems