import e from"../../../../@babel/runtime/helpers/esm/extends.js";import t from"../../../../@babel/runtime/helpers/esm/objectWithoutProperties.js";var n=["xs","sm","md","lg","xl"];function r(r){var o=r.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,u=r.unit,a=void 0===u?"px":u,c=r.step,m=void 0===c?5:c,d=t(r,["values","unit","step"]);function s(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(a,")")}function f(e,t){var r=n.indexOf(t);return r===n.length-1?s(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(a,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-m/100).concat(a,")")}return e({keys:n,values:i,up:s,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?s("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-m/100).concat(a,")")},between:f,only:function(e){return f(e,e)},width:function(e){return i[e]}},d)}export default r;export{n as keys};
//# sourceMappingURL=createBreakpoints.js.map
