UNPKG

@stories-js/core

Version:

Stories web components to build stories

5 lines 549 B
/*! * (C) StoriesJS https://storiesjs.org - GPL-2.0 License */ const t=(t,n)=>n.closest(t)!==null;const n=(t,n)=>typeof t==="string"&&t.length>0?Object.assign({"stories-color":true,[`stories-color-${t}`]:true},n):n;const i={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"};const s=t=>{if(t===undefined||t===""){return true}if(window.matchMedia){const n=i[t];return window.matchMedia(n).matches}return false};export{n as c,t as h,s as m}; //# sourceMappingURL=p-56a7b20e.js.map