UNPKG

@abdalla-1/swisco

Version:
89 lines (88 loc) 2.22 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: !0 }); }, __copyProps = (to, from, except, desc) => { if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); var media_exports = {}; __export(media_exports, { breakpoints: () => breakpoints, media: () => media }); module.exports = __toCommonJS(media_exports); var breakpoints = { // Should have unique values so that the useBreakpointValue // hook works as expected mobileSmall: 300, mobile: 390, mobileLandscape: 640, tablet: 768, desktop: 1024, desktopWide: 1280 }, media = { // Order is important. mobileSmall: { maxWidth: breakpoints.mobileSmall }, gtMobileSmall: { minWidth: breakpoints.mobileSmall + 1 }, mobile: { maxWidth: breakpoints.mobile }, gtMobile: { minWidth: breakpoints.mobile + 1 }, mobileLandscape: { maxWidth: breakpoints.mobileLandscape }, gtMobileLandscape: { minWidth: breakpoints.mobileLandscape + 1 }, tablet: { maxWidth: breakpoints.tablet }, gtTablet: { minWidth: breakpoints.tablet + 1 }, desktop: { maxWidth: breakpoints.desktop }, gtDesktop: { minWidth: breakpoints.desktop + 1 }, desktopWide: { maxWidth: breakpoints.desktopWide }, gtDesktopWide: { minWidth: breakpoints.desktopWide + 1 }, // Other short: { maxHeight: 820 }, tall: { minHeight: 820 }, hoverNone: { hover: "none" }, pointerCoarse: { pointer: "coarse" } }; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { breakpoints, media }); //# sourceMappingURL=media.js.map