import { classes , classForMode , allModeClasses } from './classes' ; import prefixer from './prefixer' ; import safeMeasure from './safeMeasure' ; export * from './dom' ; const addStylesheet = ( id ) : HTMLStyleElement => { const style = window . document . createElement ( 'style' ) ; style . id = id ; window . document . head . appendChild ( style ) ; return style ; } ; const stylesheet = ( id ) : HTMLStyleElement => { return window . document . querySelector ( `#${ id }` ) ?? addStylesheet ( id ) ; } ; const parseHTML = ( text , selector ? ) => { const wrapper = window . document . createElement ( 'div' ) ; wrapper . innerHTML = text ; return selector ? wrapper . querySelector ( selector ) : wrapper ; } ; export { prefixer , classes , classForMode , allModeClasses , stylesheet , safeMeasure , parseHTML , } ;