I hit a car. Would it be illegal to do this?

I’m at the mall and this car was parked very close to mine. I tried my best not to hit it with my door but I did and it chipped some of their paint. Is it illegal to leave if I leave a note with my name and phone number? I tried waiting for them to come out but it’s been almost 20 minutes now. It’s a huge mall.

To clarify, I do plan on leaving my info. I just want to know if it’s legal to JUST leave my info and not actually speak to them. Also, I took a picture of our cars because they’re parked very close to me! And I was in my spot before they were in theirs. I’m parked perfectly and evenly within the lines.