My son went though something like that. He would kick, scream, say his legs hurt, etc just so I would stay in his room with him. I don't know if it was nightmares that had him afraid to fall asleep or possibly growing pains. I gave him teething tablets for his molors for a few nights, tylenol for his legs for a few nights. Finially I just started to give him a few books to look at, turned a very small table light on and sat in his doorway without looking at him. If he got out of bed, I put him back in bed, without speaking or looking at him. If he talked to me in his bed, again, I didn't look or talk to him. This went on for about a week till he finially tossed in the towel and would stay in bed. Sometimes though he would get out of bed and fall asleep in the hallway between his bedroom and the livingroom!! It was his way of getting us cause he wasn't in bed but we couldn't see him either!! the sneak!!
Also, you might want to consider putting your daughter in a twin bed (toddler beds are a waste since they out grow them too fast and you have to buy more bedding for them and then again when you switch to a twin bed). She may feel too trapped in a crib or feel cagged up with the bars. My son has been in a twin since he was about 20 months and we haven't had any problem. Buy one or two of those mesh bed rails for the sides, and you don't have to worry about her falling out either!!
Good luck!!
S.