My grand kids are 5 and 8 and if they take a drink on the carpet they better have it in a take and toss with a straw of they get grounded for 2 hours from TV, games, computer, outside, whatever they are wanting most right then. I have new(ish) carpet and it is beige. Therefore drinks are never allowed on it that are unprotected.
Even when the other 5 grand kids come visit they use cups with lids and straws too. They may look like grown up cups but it is all the same concept.
If she is dry each and every morning when she gets up she is ready to do big girl panties. There is no such thing as night time training. Either they are dry or they are not capable. It is not "fixable". If she is not dry there is nothing you can do, limiting drinks won't help, waking them up won't help because as soon they fall asleep again the urine starts leaking out.
The brain tells the kidneys to stop producing urine when the person falls asleep. They when they wake up it tells the kidneys to start up again. That is why most of us wake up and all of a sudden we feel the strong need to go pee. It is not like that with kids. They don't get that until the brain starts sending it.
Some are able to stay dry all night at 3 and some are not able to until puberty hits, around 13 even.
So, if she is wet when she wakes up save yourself time, effort, and all the extra money that laundry creates and let us use pullups all night until she is staying dry all night for at least 2 weeks.