Alex has two good points here. By walking away, you proved to be the bigger person, definitely more mature. And by striking you, that's technically assault and you could use that to your advantage in the future if she keeps pushing you.
However, one can also hope that she grows up and learns to respect you and your choices.