// export const getElementRoot = (el: HTMLElement, fallback: HTMLElement = el) => {
//   return el.shadowRoot || fallback
// }
// export const hasShadowDom = (el: HTMLElement) => {
//   return !!el.shadowRoot && !!(el as any).attachShadow
// }
// export const findItemLabel = (componentEl: HTMLElement) => {
//   const itemEl = componentEl.closest('bal-field')
//   if (itemEl) {
//     return itemEl.querySelector('span.label')
//   }
//   return null
// }
