Thanks everyone for your input. I finally got the manufacturer to supply the correct transformer so the problem has been resolved.
My application was lighting a closet, with the LED's mounted over the door operated by a jamb switch. The 2 gang box was in the wall near the ceiling so having diodes with heat sinks would have been a problem.