IPTools Utilities bundle for media query detection and event namespacing
@use 'iptools-utils' with ($media-queries: $my-media-queries);Note: $my-media-queries MUST be an SCSS map with key-value pairs, where the key is the name of the media query and the value is the actual media query, i.e. what you would write after @media in CSS.
Alternatively, you can use the default media queries like this:
@use 'iptools-utils';or by using the supplied iptools-utils.default.css.
import { media } from 'iptools-utils';media.isMediaQuery('tablet');true/falsemedia.getMediaQueries();{ "phone": false, "tablet": true, "desktop": false }
import { getNamespacedEvents } from 'iptools-utils';getNamespacedEvents('eventName', 'myNamespace');
getNamespacedEvents(['eventName1', 'eventName2', 'eventName3'], 'myNamespace');