If you want to know what a program director would think, I'd start asking program directors.
Personally, for a potential resident I think it's a bonus to see productivity in their field of interest -- the nature of that productivity doesn't necessarily matter. Sure, having a big grant and publishing in a major peer-reviewed journal is nice icing, as is a chapter or an entire book (honestly, whether it's medicine related or not.. if it's quality material). But unless I'm looking to crank out research hounds as a goal of my program, I'm not going to skip over another well-rounded applicant with good scores and top social skills at an interview for a published person who lacks those qualities/skills.
Of course, what you're really asking is "all other things being equal" (which, of course, they never are). All other things being equal, I confess I would be more impressed by a person who authored a quality text than authored a single quality peer-reviewed research paper. Your mileage may vary.