Breaking up in my mind

Hi, so I've been seeing this girl for 3 months. For the first month, I was very distant. I'm used to people leaving so I supposed I was protecting myself. After a while, I saw that she stayed and I started being very codependent. I would panic if she would take more than an hour to text back. I give her gift and constantly told her that I liked her without her saying it back. Anyway, 2 weeks ago I started having panic attack wondering if she liked me, if she was gonna leave me until I fully broke down. Now I feel oddly unattached to her.

Did I broke up with her in my mind? Can anyone relate?