/** * Custom hook to calculate label width and dynamically set * styles for masking the parent's border behind the label, * with support for theme switching via `data-theme`. * * @param label - The label text (for triggering recomputation when changed). * @returns [labelRef, dynamicStyles] - Ref to attach to