@paperless/core 1.40.0 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/build/index.esm.js +1 -1
  3. package/dist/build/index.esm.js.map +1 -1
  4. package/dist/build/p-1079ffc6.entry.js.map +1 -1
  5. package/dist/cjs/index.cjs.js +51 -0
  6. package/dist/cjs/index.cjs.js.map +1 -1
  7. package/dist/cjs/p-floating-menu-container_8.cjs.entry.js.map +1 -1
  8. package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js +1 -1
  9. package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js.map +1 -1
  10. package/dist/collection/tailwind/animation.js +85 -85
  11. package/dist/collection/tailwind/animation.js.map +1 -0
  12. package/dist/collection/tailwind/backdrop-blur.js +3 -2
  13. package/dist/collection/tailwind/backdrop-blur.js.map +1 -0
  14. package/dist/collection/tailwind/border-radius.js +11 -10
  15. package/dist/collection/tailwind/border-radius.js.map +1 -0
  16. package/dist/collection/tailwind/colors.js +2 -1
  17. package/dist/collection/tailwind/colors.js.map +1 -0
  18. package/dist/collection/tailwind/height.js +5 -4
  19. package/dist/collection/tailwind/height.js.map +1 -0
  20. package/dist/collection/tailwind/plugins/safe-area.js +87 -93
  21. package/dist/collection/tailwind/plugins/safe-area.js.map +1 -0
  22. package/dist/collection/tailwind/rotate.js +2 -3
  23. package/dist/collection/tailwind/rotate.js.map +1 -0
  24. package/dist/collection/tailwind/scale.js +2 -1
  25. package/dist/collection/tailwind/scale.js.map +1 -0
  26. package/dist/collection/tailwind/screens.js +15 -15
  27. package/dist/collection/tailwind/screens.js.map +1 -0
  28. package/dist/collection/tailwind/shadows.js +13 -12
  29. package/dist/collection/tailwind/shadows.js.map +1 -0
  30. package/dist/collection/tailwind/spacing.js +8 -9
  31. package/dist/collection/tailwind/spacing.js.map +1 -0
  32. package/dist/collection/tailwind/typography.js +22 -21
  33. package/dist/collection/tailwind/typography.js.map +1 -0
  34. package/dist/collection/tailwind/width.js +14 -15
  35. package/dist/collection/tailwind/width.js.map +1 -0
  36. package/dist/collection/tailwind/z-index.js +13 -18
  37. package/dist/collection/tailwind/z-index.js.map +1 -0
  38. package/dist/collection/tailwind.config.js +32 -41
  39. package/dist/collection/tailwind.config.js.map +1 -0
  40. package/dist/collection/utils/index.js +1 -0
  41. package/dist/collection/utils/index.js.map +1 -1
  42. package/dist/collection/utils/screens.js +26 -0
  43. package/dist/collection/utils/screens.js.map +1 -0
  44. package/dist/components/floating-menu-item.component.js.map +1 -1
  45. package/dist/components/index.js +42 -1
  46. package/dist/components/index.js.map +1 -1
  47. package/dist/esm/index.js +42 -1
  48. package/dist/esm/index.js.map +1 -1
  49. package/dist/esm/p-floating-menu-container_8.entry.js.map +1 -1
  50. package/dist/index.html +1 -1
  51. package/dist/paperless/index.esm.js +1 -1
  52. package/dist/paperless/index.esm.js.map +1 -1
  53. package/dist/paperless/p-1079ffc6.entry.js.map +1 -1
  54. package/dist/sw.js +1 -1
  55. package/dist/sw.js.map +1 -1
  56. package/dist/tailwind/animation.ts +87 -0
  57. package/dist/tailwind/backdrop-blur.ts +3 -0
  58. package/dist/tailwind/border-radius.ts +11 -0
  59. package/dist/tailwind/colors.ts +52 -0
  60. package/dist/tailwind/height.ts +5 -0
  61. package/dist/tailwind/plugins/safe-area.ts +98 -0
  62. package/dist/tailwind/rotate.ts +8 -0
  63. package/dist/tailwind/scale.ts +3 -0
  64. package/dist/tailwind/{screens.js → screens.ts} +1 -1
  65. package/dist/tailwind/shadows.ts +13 -0
  66. package/dist/tailwind/spacing.ts +10 -0
  67. package/dist/tailwind/typography.ts +21 -0
  68. package/dist/tailwind/{width.js → width.ts} +1 -1
  69. package/dist/tailwind/z-index.ts +19 -0
  70. package/dist/tailwind.config.ts +43 -0
  71. package/dist/types/components/atoms/floating-menu-item/floating-menu-item.component.d.ts +1 -1
  72. package/dist/types/components.d.ts +2 -2
  73. package/dist/types/tailwind/animation.d.ts +151 -0
  74. package/dist/types/tailwind/backdrop-blur.d.ts +4 -0
  75. package/dist/types/tailwind/border-radius.d.ts +12 -0
  76. package/dist/types/tailwind/colors.d.ts +53 -0
  77. package/dist/types/tailwind/height.d.ts +6 -0
  78. package/dist/types/tailwind/plugins/safe-area.d.ts +2 -0
  79. package/dist/types/tailwind/rotate.d.ts +2 -0
  80. package/dist/types/tailwind/scale.d.ts +4 -0
  81. package/dist/types/tailwind/screens.d.ts +15 -0
  82. package/dist/types/tailwind/shadows.d.ts +11 -0
  83. package/dist/types/tailwind/spacing.d.ts +8 -0
  84. package/dist/types/tailwind/typography.d.ts +22 -0
  85. package/dist/types/tailwind/width.d.ts +13 -0
  86. package/dist/types/tailwind/z-index.d.ts +14 -0
  87. package/dist/types/tailwind.config.d.ts +313 -0
  88. package/dist/types/utils/index.d.ts +1 -0
  89. package/dist/types/utils/screens.d.ts +12 -0
  90. package/package.json +2 -2
  91. package/dist/tailwind/animation.js +0 -87
  92. package/dist/tailwind/backdrop-blur.js +0 -3
  93. package/dist/tailwind/border-radius.js +0 -11
  94. package/dist/tailwind/colors.js +0 -52
  95. package/dist/tailwind/height.js +0 -5
  96. package/dist/tailwind/plugins/safe-area.js +0 -98
  97. package/dist/tailwind/rotate.js +0 -8
  98. package/dist/tailwind/scale.js +0 -3
  99. package/dist/tailwind/shadows.js +0 -13
  100. package/dist/tailwind/spacing.js +0 -10
  101. package/dist/tailwind/typography.js +0 -21
  102. package/dist/tailwind/z-index.js +0 -19
  103. package/dist/tailwind.config.js +0 -42
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.js","sourceRoot":"","sources":["../../src/tailwind/typography.ts"],"names":[],"mappings":"AAAA,eAAe;EACd,QAAQ,EAAE;IACT,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,WAAW;GAChB;EACD,UAAU,EAAE;IACX,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,UAAU;GACpB;CACD,CAAC","sourcesContent":["export default {\n\tfontSize: {\n\t\th1: '2.5rem',\n\t\th2: '2rem',\n\t\th3: '1.5rem',\n\t\th4: '1.25rem',\n\t\th5: '1.125rem',\n\t\tbody: '1rem',\n\t\t'body-2': '1.125rem',\n\t\txxs: '0.6875rem',\n\t},\n\tlineHeight: {\n\t\th1: '3rem',\n\t\th2: '2.5rem',\n\t\th3: '1.875rem',\n\t\th4: '1.625rem',\n\t\th5: '1.375rem',\n\t\tbody: '1.75rem',\n\t\t'body-2': '1.875rem',\n\t},\n};\n"]}
@@ -1,16 +1,15 @@
1
- module.exports = {
2
- width: {
3
- unset: 'unset',
4
-
5
- // default variant
6
- 'content-mobile': '100%',
7
- 'content-1280': '62rem',
8
- 'content-1440': '71rem',
9
- 'content-1536': '77rem',
10
- 'content-1680': '83rem',
11
-
12
- // login variant
13
- 'sidebar-desktop-login': '100%',
14
- 'content-desktop-login': '21rem',
15
- },
1
+ export default {
2
+ width: {
3
+ unset: 'unset',
4
+ // default variant
5
+ 'content-mobile': '100%',
6
+ 'content-1280': '62rem',
7
+ 'content-1440': '71rem',
8
+ 'content-1536': '77rem',
9
+ 'content-1680': '83rem',
10
+ // login variant
11
+ 'sidebar-desktop-login': '100%',
12
+ 'content-desktop-login': '21rem',
13
+ },
16
14
  };
15
+ //# sourceMappingURL=width.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"width.js","sourceRoot":"","sources":["../../src/tailwind/width.ts"],"names":[],"mappings":"AAAA,eAAe;EACd,KAAK,EAAE;IACN,KAAK,EAAE,OAAO;IAEd,kBAAkB;IAClB,gBAAgB,EAAE,MAAM;IACxB,cAAc,EAAE,OAAO;IACvB,cAAc,EAAE,OAAO;IACvB,cAAc,EAAE,OAAO;IACvB,cAAc,EAAE,OAAO;IAEvB,gBAAgB;IAChB,uBAAuB,EAAE,MAAM;IAC/B,uBAAuB,EAAE,OAAO;GAChC;CACD,CAAC","sourcesContent":["export default {\n\twidth: {\n\t\tunset: 'unset',\n\n\t\t// default variant\n\t\t'content-mobile': '100%',\n\t\t'content-1280': '62rem',\n\t\t'content-1440': '71rem',\n\t\t'content-1536': '77rem',\n\t\t'content-1680': '83rem',\n\n\t\t// login variant\n\t\t'sidebar-desktop-login': '100%',\n\t\t'content-desktop-login': '21rem',\n\t},\n};\n"]}
@@ -1,19 +1,14 @@
1
- module.exports = {
2
- 'floating-menu': 190,
3
- dropdown: 200,
4
-
5
- 'navbar-topbar': 280,
6
- 'navbar-backdrop': 290,
7
- navbar: 300,
8
-
9
- backdrop: 490,
10
-
11
- drawer: 500,
12
- 'drawer-header': 501,
13
-
14
- modal: 600,
15
-
16
- tooltip: 601,
17
-
18
- toast: 700,
1
+ export default {
2
+ 'floating-menu': 190,
3
+ dropdown: 200,
4
+ 'navbar-topbar': 280,
5
+ 'navbar-backdrop': 290,
6
+ navbar: 300,
7
+ backdrop: 490,
8
+ drawer: 500,
9
+ 'drawer-header': 501,
10
+ modal: 600,
11
+ tooltip: 601,
12
+ toast: 700,
19
13
  };
14
+ //# sourceMappingURL=z-index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"z-index.js","sourceRoot":"","sources":["../../src/tailwind/z-index.ts"],"names":[],"mappings":"AAAA,eAAe;EACd,eAAe,EAAE,GAAG;EACpB,QAAQ,EAAE,GAAG;EAEb,eAAe,EAAE,GAAG;EACpB,iBAAiB,EAAE,GAAG;EACtB,MAAM,EAAE,GAAG;EAEX,QAAQ,EAAE,GAAG;EAEb,MAAM,EAAE,GAAG;EACX,eAAe,EAAE,GAAG;EAEpB,KAAK,EAAE,GAAG;EAEV,OAAO,EAAE,GAAG;EAEZ,KAAK,EAAE,GAAG;CACV,CAAC","sourcesContent":["export default {\n\t'floating-menu': 190,\n\tdropdown: 200,\n\n\t'navbar-topbar': 280,\n\t'navbar-backdrop': 290,\n\tnavbar: 300,\n\n\tbackdrop: 490,\n\n\tdrawer: 500,\n\t'drawer-header': 501,\n\n\tmodal: 600,\n\n\ttooltip: 601,\n\n\ttoast: 700,\n};\n"]}
@@ -1,42 +1,33 @@
1
- const colors = require('./tailwind/colors');
2
- const shadows = require('./tailwind/shadows');
3
- const borderRadius = require('./tailwind/border-radius');
4
- const scale = require('./tailwind/scale');
5
- const rotate = require('./tailwind/rotate');
6
- const typeograhpy = require('./tailwind/typography');
7
- const backdropBlur = require('./tailwind/backdrop-blur');
8
- const zIndex = require('./tailwind/z-index');
9
- const animation = require('./tailwind/animation');
10
- const screens = require('./tailwind/screens');
11
- const width = require('./tailwind/width');
12
- const height = require('./tailwind/height');
13
- const spacing = require('./tailwind/spacing');
14
-
15
- module.exports = {
16
- important: true,
17
- theme: {
18
- colors,
19
- boxShadow: shadows,
20
- dropShadow: shadows,
21
- borderRadius,
22
- extend: {
23
- ...animation,
24
- scale,
25
- rotate,
26
- fontSize: typeograhpy.fontSize,
27
- lineHeight: typeograhpy.lineHeight,
28
- backdropBlur,
29
- zIndex,
30
- screens,
31
- width: width.width,
32
- maxWidth: width.maxWidth,
33
- height: height.height,
34
- spacing,
35
- },
36
- },
37
- plugins: [
38
- require('@tailwindcss/aspect-ratio'),
39
- require('tailwind-scrollbar-hide'),
40
- require('./tailwind/plugins/safe-area'),
41
- ],
1
+ import colors from "./tailwind/colors";
2
+ import shadows from "./tailwind/shadows";
3
+ import borderRadius from "./tailwind/border-radius";
4
+ import scale from "./tailwind/scale";
5
+ import rotate from "./tailwind/rotate";
6
+ import typeograhpy from "./tailwind/typography";
7
+ import backdropBlur from "./tailwind/backdrop-blur";
8
+ import zIndex from "./tailwind/z-index";
9
+ import animation from "./tailwind/animation";
10
+ import screens from "./tailwind/screens";
11
+ import width from "./tailwind/width";
12
+ import height from "./tailwind/height";
13
+ import spacing from "./tailwind/spacing";
14
+ import safeArea from "./tailwind/plugins/safe-area";
15
+ export default {
16
+ important: true,
17
+ theme: {
18
+ colors,
19
+ boxShadow: shadows,
20
+ dropShadow: shadows,
21
+ borderRadius,
22
+ extend: Object.assign(Object.assign({}, animation), { scale,
23
+ rotate, fontSize: typeograhpy.fontSize, lineHeight: typeograhpy.lineHeight, backdropBlur,
24
+ zIndex,
25
+ screens, width: width.width, height: height.height, spacing }),
26
+ },
27
+ plugins: [
28
+ require('@tailwindcss/aspect-ratio'),
29
+ require('tailwind-scrollbar-hide'),
30
+ safeArea,
31
+ ],
42
32
  };
33
+ //# sourceMappingURL=tailwind.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwind.config.js","sourceRoot":"","sources":["../src/tailwind.config.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAC7C,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAEzC,OAAO,QAAQ,MAAM,8BAA8B,CAAC;AAEpD,eAAe;EACd,SAAS,EAAE,IAAI;EACf,KAAK,EAAE;IACN,MAAM;IACN,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE,OAAO;IACnB,YAAY;IACZ,MAAM,kCACF,SAAS,KACZ,KAAK;MACL,MAAM,EACN,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,UAAU,EAAE,WAAW,CAAC,UAAU,EAClC,YAAY;MACZ,MAAM;MACN,OAAO,EACP,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,OAAO,GACP;GACD;EACD,OAAO,EAAE;IACR,OAAO,CAAC,2BAA2B,CAAC;IACpC,OAAO,CAAC,yBAAyB,CAAC;IAClC,QAAQ;GACR;CACD,CAAC","sourcesContent":["import colors from './tailwind/colors';\nimport shadows from './tailwind/shadows';\nimport borderRadius from './tailwind/border-radius';\nimport scale from './tailwind/scale';\nimport rotate from './tailwind/rotate';\nimport typeograhpy from './tailwind/typography';\nimport backdropBlur from './tailwind/backdrop-blur';\nimport zIndex from './tailwind/z-index';\nimport animation from './tailwind/animation';\nimport screens from './tailwind/screens';\nimport width from './tailwind/width';\nimport height from './tailwind/height';\nimport spacing from './tailwind/spacing';\n\nimport safeArea from './tailwind/plugins/safe-area';\n\nexport default {\n\timportant: true,\n\ttheme: {\n\t\tcolors,\n\t\tboxShadow: shadows,\n\t\tdropShadow: shadows,\n\t\tborderRadius,\n\t\textend: {\n\t\t\t...animation,\n\t\t\tscale,\n\t\t\trotate,\n\t\t\tfontSize: typeograhpy.fontSize,\n\t\t\tlineHeight: typeograhpy.lineHeight,\n\t\t\tbackdropBlur,\n\t\t\tzIndex,\n\t\t\tscreens,\n\t\t\twidth: width.width,\n\t\t\theight: height.height,\n\t\t\tspacing,\n\t\t},\n\t},\n\tplugins: [\n\t\trequire('@tailwindcss/aspect-ratio'),\n\t\trequire('tailwind-scrollbar-hide'),\n\t\tsafeArea,\n\t],\n};\n"]}
@@ -4,4 +4,5 @@ export * from './illustrations';
4
4
  export * from './localization';
5
5
  export * from './object-get-by-path';
6
6
  export * from './transformers';
7
+ export * from './screens';
7
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC","sourcesContent":["export * from './child-of';\nexport * from './icons';\nexport * from './illustrations';\nexport * from './localization';\nexport * from './object-get-by-path';\nexport * from './transformers';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC","sourcesContent":["export * from './child-of';\nexport * from './icons';\nexport * from './illustrations';\nexport * from './localization';\nexport * from './object-get-by-path';\nexport * from './transformers';\nexport * from './screens';\n"]}
@@ -0,0 +1,26 @@
1
+ import screens from "../tailwind/screens";
2
+ export const getScreenSize = (size) => screens[size];
3
+ export const getScreenSizeInRem = (size) => {
4
+ const screen = getScreenSize(size);
5
+ return parseInt(screen.replace('rem', ''), 10);
6
+ };
7
+ export const getScreenSizeInPixels = (size) => {
8
+ const rem = getScreenSizeInRem(size);
9
+ return rem * 16;
10
+ };
11
+ export const isBiggerThanScreen = (size) => {
12
+ const pixels = getScreenSizeInPixels(size);
13
+ return window.innerWidth > pixels;
14
+ };
15
+ export const isSmallerThanScreen = (size) => {
16
+ const pixels = getScreenSizeInPixels(size);
17
+ return window.innerWidth < pixels;
18
+ };
19
+ export const isBetweenScreens = (smallSize, bigSize) => {
20
+ return isBiggerThanScreen(smallSize) && isSmallerThanScreen(bigSize);
21
+ };
22
+ export const isTouchDevice = () => !!window.matchMedia('(pointer: coarse)').matches;
23
+ export const isMobile = () => isTouchDevice() || isSmallerThanScreen('tablet');
24
+ export const isTablet = () => isBetweenScreens('tablet', 'desktop-xs');
25
+ export const isDesktop = () => isBiggerThanScreen('desktop-xs');
26
+ //# sourceMappingURL=screens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screens.js","sourceRoot":"","sources":["../../src/utils/screens.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAI1C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAEjE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAgB,EAAE,EAAE;EACtD,MAAM,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;EACnC,OAAO,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAChD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAAgB,EAAE,EAAE;EACzD,MAAM,GAAG,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;EACrC,OAAO,GAAG,GAAG,EAAE,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAgB,EAAE,EAAE;EACtD,MAAM,MAAM,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;EAC3C,OAAO,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAgB,EAAE,EAAE;EACvD,MAAM,MAAM,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;EAC3C,OAAO,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC/B,SAAqB,EACrB,OAAmB,EAClB,EAAE;EACH,OAAO,kBAAkB,CAAC,SAAS,CAAC,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAC;AACtE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE,CACjC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC;AAClD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,aAAa,EAAE,IAAI,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AACvE,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import screens from '../tailwind/screens';\n\nexport type ScreenSize = keyof typeof screens;\n\nexport const getScreenSize = (size: ScreenSize) => screens[size];\n\nexport const getScreenSizeInRem = (size: ScreenSize) => {\n\tconst screen = getScreenSize(size);\n\treturn parseInt(screen.replace('rem', ''), 10);\n};\n\nexport const getScreenSizeInPixels = (size: ScreenSize) => {\n\tconst rem = getScreenSizeInRem(size);\n\treturn rem * 16;\n};\n\nexport const isBiggerThanScreen = (size: ScreenSize) => {\n\tconst pixels = getScreenSizeInPixels(size);\n\treturn window.innerWidth > pixels;\n};\n\nexport const isSmallerThanScreen = (size: ScreenSize) => {\n\tconst pixels = getScreenSizeInPixels(size);\n\treturn window.innerWidth < pixels;\n};\n\nexport const isBetweenScreens = (\n\tsmallSize: ScreenSize,\n\tbigSize: ScreenSize\n) => {\n\treturn isBiggerThanScreen(smallSize) && isSmallerThanScreen(bigSize);\n};\n\nexport const isTouchDevice = () =>\n\t!!window.matchMedia('(pointer: coarse)').matches;\nexport const isMobile = () => isTouchDevice() || isSmallerThanScreen('tablet');\nexport const isTablet = () => isBetweenScreens('tablet', 'desktop-xs');\nexport const isDesktop = () => isBiggerThanScreen('desktop-xs');\n"]}
@@ -1 +1 @@
1
- {"file":"floating-menu-item.component.js","mappings":";;AAAA,MAAM,4BAA4B,GAAG,spBAAspB;;MCO9qB,gBAAgB;;;;;iBAIc,IAAI;;EAE9C,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAC,sBAAsB,IACjC,eAAQ,CACF,EACN;GACF;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/atoms/floating-menu-item/floating-menu-item.component.scss?tag=p-floating-menu-item&encapsulation=shadow","src/components/atoms/floating-menu-item/floating-menu-item.component.tsx"],"sourcesContent":[":host {\n\t@apply flex h-6 items-center gap-2 whitespace-nowrap text-sm text-storm-vague;\n}\n\n:host([hover]) {\n\t@apply cursor-pointer font-semibold;\n}\n\n:host([hover]:hover) {\n\t@apply text-white;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-floating-menu-item',\n\tstyleUrl: 'floating-menu-item.component.scss',\n\tshadow: true,\n})\nexport class FloatingMenuItem {\n\t/**\n\t * The variant of the modal body\n\t */\n\t@Prop({ reflect: true }) hover: boolean = true;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-floating-menu-item\">\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"floating-menu-item.component.js","mappings":";;AAAA,MAAM,4BAA4B,GAAG,spBAAspB;;MCO9qB,gBAAgB;;;;;iBAIc,IAAI;;EAE9C,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAC,sBAAsB,IACjC,eAAQ,CACF,EACN;GACF;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/atoms/floating-menu-item/floating-menu-item.component.scss?tag=p-floating-menu-item&encapsulation=shadow","src/components/atoms/floating-menu-item/floating-menu-item.component.tsx"],"sourcesContent":[":host {\n\t@apply flex h-6 items-center gap-2 whitespace-nowrap text-sm text-storm-vague;\n}\n\n:host([hover]) {\n\t@apply cursor-pointer font-semibold;\n}\n\n:host([hover]:hover) {\n\t@apply text-white;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-floating-menu-item',\n\tstyleUrl: 'floating-menu-item.component.scss',\n\tshadow: true,\n})\nexport class FloatingMenuItem {\n\t/**\n\t * Wether it should have a hover effect\n\t */\n\t@Prop({ reflect: true }) hover: boolean = true;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-floating-menu-item\">\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -8,6 +8,47 @@ const snakeToCamelCase = (str) => str
8
8
  .toLowerCase()
9
9
  .replace(/([-_][a-z])/g, (group) => group.toUpperCase().replace('-', '').replace('_', ''));
10
10
 
11
- export { camelToSnakeCase, snakeToCamelCase };
11
+ const screens = {
12
+ tablet: '40rem',
13
+ 'desktop-xs': '64rem',
14
+ 'desktop-sm': '80rem',
15
+ desktop: '85.375rem',
16
+ 'desktop-lg': '90rem',
17
+ 'desktop-xl': '120rem',
18
+ // layout sizes
19
+ 'layout-1280': '80rem',
20
+ 'layout-1440': '90rem',
21
+ 'layout-1536': '96rem',
22
+ 'layout-1680': '105rem',
23
+ 'layout-1920': '120rem',
24
+ 'layout-2560': '160rem',
25
+ };
26
+
27
+ const getScreenSize = (size) => screens[size];
28
+ const getScreenSizeInRem = (size) => {
29
+ const screen = getScreenSize(size);
30
+ return parseInt(screen.replace('rem', ''), 10);
31
+ };
32
+ const getScreenSizeInPixels = (size) => {
33
+ const rem = getScreenSizeInRem(size);
34
+ return rem * 16;
35
+ };
36
+ const isBiggerThanScreen = (size) => {
37
+ const pixels = getScreenSizeInPixels(size);
38
+ return window.innerWidth > pixels;
39
+ };
40
+ const isSmallerThanScreen = (size) => {
41
+ const pixels = getScreenSizeInPixels(size);
42
+ return window.innerWidth < pixels;
43
+ };
44
+ const isBetweenScreens = (smallSize, bigSize) => {
45
+ return isBiggerThanScreen(smallSize) && isSmallerThanScreen(bigSize);
46
+ };
47
+ const isTouchDevice = () => !!window.matchMedia('(pointer: coarse)').matches;
48
+ const isMobile = () => isTouchDevice() || isSmallerThanScreen('tablet');
49
+ const isTablet = () => isBetweenScreens('tablet', 'desktop-xs');
50
+ const isDesktop = () => isBiggerThanScreen('desktop-xs');
51
+
52
+ export { camelToSnakeCase, getScreenSize, getScreenSizeInPixels, getScreenSizeInRem, isBetweenScreens, isBiggerThanScreen, isDesktop, isMobile, isSmallerThanScreen, isTablet, isTouchDevice, snakeToCamelCase };
12
53
 
13
54
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"file":"index.js","mappings":";;;;;MAAa,gBAAgB,GAAG,CAAC,GAAG,KAChC,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,MAAM,KAAK,IAAI,MAAM,CAAC,WAAW,EAAE,EAAE,EAAE;MAErD,gBAAgB,GAAG,CAAC,GAAG,KAChC,GAAG;GACE,WAAW,EAAE;GACb,OAAO,CAAC,cAAc,EAAE,CAAC,KAAK,KAC3B,KAAK,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;;;;","names":[],"sources":["src/utils/transformers.ts"],"sourcesContent":["export const camelToSnakeCase = (str) =>\n str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);\n\nexport const snakeToCamelCase = (str) =>\n str\n .toLowerCase()\n .replace(/([-_][a-z])/g, (group) =>\n group.toUpperCase().replace('-', '').replace('_', '')\n );\n"],"version":3}
1
+ {"file":"index.js","mappings":";;;;;MAAa,gBAAgB,GAAG,CAAC,GAAG,KAChC,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,MAAM,KAAK,IAAI,MAAM,CAAC,WAAW,EAAE,EAAE,EAAE;MAErD,gBAAgB,GAAG,CAAC,GAAG,KAChC,GAAG;GACE,WAAW,EAAE;GACb,OAAO,CAAC,cAAc,EAAE,CAAC,KAAK,KAC3B,KAAK,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;;ACPjE,gBAAe;EACd,MAAM,EAAE,OAAO;EACf,YAAY,EAAE,OAAO;EACrB,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,WAAW;EACpB,YAAY,EAAE,OAAO;EACrB,YAAY,EAAE,QAAQ;;EAGtB,aAAa,EAAE,OAAO;EACtB,aAAa,EAAE,OAAO;EACtB,aAAa,EAAE,OAAO;EACtB,aAAa,EAAE,QAAQ;EACvB,aAAa,EAAE,QAAQ;EACvB,aAAa,EAAE,QAAQ;CACvB;;MCXY,aAAa,GAAG,CAAC,IAAgB,KAAK,OAAO,CAAC,IAAI,EAAE;MAEpD,kBAAkB,GAAG,CAAC,IAAgB;EAClD,MAAM,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;EACnC,OAAO,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAChD,EAAE;MAEW,qBAAqB,GAAG,CAAC,IAAgB;EACrD,MAAM,GAAG,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;EACrC,OAAO,GAAG,GAAG,EAAE,CAAC;AACjB,EAAE;MAEW,kBAAkB,GAAG,CAAC,IAAgB;EAClD,MAAM,MAAM,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;EAC3C,OAAO,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC;AACnC,EAAE;MAEW,mBAAmB,GAAG,CAAC,IAAgB;EACnD,MAAM,MAAM,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;EAC3C,OAAO,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC;AACnC,EAAE;MAEW,gBAAgB,GAAG,CAC/B,SAAqB,EACrB,OAAmB;EAEnB,OAAO,kBAAkB,CAAC,SAAS,CAAC,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAC;AACtE,EAAE;MAEW,aAAa,GAAG,MAC5B,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,QAAQ;MACrC,QAAQ,GAAG,MAAM,aAAa,EAAE,IAAI,mBAAmB,CAAC,QAAQ,EAAE;MAClE,QAAQ,GAAG,MAAM,gBAAgB,CAAC,QAAQ,EAAE,YAAY,EAAE;MAC1D,SAAS,GAAG,MAAM,kBAAkB,CAAC,YAAY;;;;","names":[],"sources":["src/utils/transformers.ts","src/tailwind/screens.ts","src/utils/screens.ts"],"sourcesContent":["export const camelToSnakeCase = (str) =>\n str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);\n\nexport const snakeToCamelCase = (str) =>\n str\n .toLowerCase()\n .replace(/([-_][a-z])/g, (group) =>\n group.toUpperCase().replace('-', '').replace('_', '')\n );\n","export default {\n\ttablet: '40rem', // 640 px\n\t'desktop-xs': '64rem', // 1024 px\n\t'desktop-sm': '80rem', // 1360 px\n\tdesktop: '85.375rem', // 1366\n\t'desktop-lg': '90rem', // 1440\n\t'desktop-xl': '120rem', // 1920\n\n\t// layout sizes\n\t'layout-1280': '80rem',\n\t'layout-1440': '90rem',\n\t'layout-1536': '96rem',\n\t'layout-1680': '105rem',\n\t'layout-1920': '120rem',\n\t'layout-2560': '160rem',\n};\n","import screens from '../tailwind/screens';\n\nexport type ScreenSize = keyof typeof screens;\n\nexport const getScreenSize = (size: ScreenSize) => screens[size];\n\nexport const getScreenSizeInRem = (size: ScreenSize) => {\n\tconst screen = getScreenSize(size);\n\treturn parseInt(screen.replace('rem', ''), 10);\n};\n\nexport const getScreenSizeInPixels = (size: ScreenSize) => {\n\tconst rem = getScreenSizeInRem(size);\n\treturn rem * 16;\n};\n\nexport const isBiggerThanScreen = (size: ScreenSize) => {\n\tconst pixels = getScreenSizeInPixels(size);\n\treturn window.innerWidth > pixels;\n};\n\nexport const isSmallerThanScreen = (size: ScreenSize) => {\n\tconst pixels = getScreenSizeInPixels(size);\n\treturn window.innerWidth < pixels;\n};\n\nexport const isBetweenScreens = (\n\tsmallSize: ScreenSize,\n\tbigSize: ScreenSize\n) => {\n\treturn isBiggerThanScreen(smallSize) && isSmallerThanScreen(bigSize);\n};\n\nexport const isTouchDevice = () =>\n\t!!window.matchMedia('(pointer: coarse)').matches;\nexport const isMobile = () => isTouchDevice() || isSmallerThanScreen('tablet');\nexport const isTablet = () => isBetweenScreens('tablet', 'desktop-xs');\nexport const isDesktop = () => isBiggerThanScreen('desktop-xs');\n"],"version":3}
package/dist/esm/index.js CHANGED
@@ -7,6 +7,47 @@ const snakeToCamelCase = (str) => str
7
7
  .toLowerCase()
8
8
  .replace(/([-_][a-z])/g, (group) => group.toUpperCase().replace('-', '').replace('_', ''));
9
9
 
10
- export { camelToSnakeCase, snakeToCamelCase };
10
+ const screens = {
11
+ tablet: '40rem',
12
+ 'desktop-xs': '64rem',
13
+ 'desktop-sm': '80rem',
14
+ desktop: '85.375rem',
15
+ 'desktop-lg': '90rem',
16
+ 'desktop-xl': '120rem',
17
+ // layout sizes
18
+ 'layout-1280': '80rem',
19
+ 'layout-1440': '90rem',
20
+ 'layout-1536': '96rem',
21
+ 'layout-1680': '105rem',
22
+ 'layout-1920': '120rem',
23
+ 'layout-2560': '160rem',
24
+ };
25
+
26
+ const getScreenSize = (size) => screens[size];
27
+ const getScreenSizeInRem = (size) => {
28
+ const screen = getScreenSize(size);
29
+ return parseInt(screen.replace('rem', ''), 10);
30
+ };
31
+ const getScreenSizeInPixels = (size) => {
32
+ const rem = getScreenSizeInRem(size);
33
+ return rem * 16;
34
+ };
35
+ const isBiggerThanScreen = (size) => {
36
+ const pixels = getScreenSizeInPixels(size);
37
+ return window.innerWidth > pixels;
38
+ };
39
+ const isSmallerThanScreen = (size) => {
40
+ const pixels = getScreenSizeInPixels(size);
41
+ return window.innerWidth < pixels;
42
+ };
43
+ const isBetweenScreens = (smallSize, bigSize) => {
44
+ return isBiggerThanScreen(smallSize) && isSmallerThanScreen(bigSize);
45
+ };
46
+ const isTouchDevice = () => !!window.matchMedia('(pointer: coarse)').matches;
47
+ const isMobile = () => isTouchDevice() || isSmallerThanScreen('tablet');
48
+ const isTablet = () => isBetweenScreens('tablet', 'desktop-xs');
49
+ const isDesktop = () => isBiggerThanScreen('desktop-xs');
50
+
51
+ export { camelToSnakeCase, getScreenSize, getScreenSizeInPixels, getScreenSizeInRem, isBetweenScreens, isBiggerThanScreen, isDesktop, isMobile, isSmallerThanScreen, isTablet, isTouchDevice, snakeToCamelCase };
11
52
 
12
53
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"file":"index.js","mappings":";;;;MAAa,gBAAgB,GAAG,CAAC,GAAG,KAChC,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,MAAM,KAAK,IAAI,MAAM,CAAC,WAAW,EAAE,EAAE,EAAE;MAErD,gBAAgB,GAAG,CAAC,GAAG,KAChC,GAAG;GACE,WAAW,EAAE;GACb,OAAO,CAAC,cAAc,EAAE,CAAC,KAAK,KAC3B,KAAK,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;;;;","names":[],"sources":["src/utils/transformers.ts"],"sourcesContent":["export const camelToSnakeCase = (str) =>\n str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);\n\nexport const snakeToCamelCase = (str) =>\n str\n .toLowerCase()\n .replace(/([-_][a-z])/g, (group) =>\n group.toUpperCase().replace('-', '').replace('_', '')\n );\n"],"version":3}
1
+ {"file":"index.js","mappings":";;;;MAAa,gBAAgB,GAAG,CAAC,GAAG,KAChC,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,MAAM,KAAK,IAAI,MAAM,CAAC,WAAW,EAAE,EAAE,EAAE;MAErD,gBAAgB,GAAG,CAAC,GAAG,KAChC,GAAG;GACE,WAAW,EAAE;GACb,OAAO,CAAC,cAAc,EAAE,CAAC,KAAK,KAC3B,KAAK,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;;ACPjE,gBAAe;EACd,MAAM,EAAE,OAAO;EACf,YAAY,EAAE,OAAO;EACrB,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,WAAW;EACpB,YAAY,EAAE,OAAO;EACrB,YAAY,EAAE,QAAQ;;EAGtB,aAAa,EAAE,OAAO;EACtB,aAAa,EAAE,OAAO;EACtB,aAAa,EAAE,OAAO;EACtB,aAAa,EAAE,QAAQ;EACvB,aAAa,EAAE,QAAQ;EACvB,aAAa,EAAE,QAAQ;CACvB;;MCXY,aAAa,GAAG,CAAC,IAAgB,KAAK,OAAO,CAAC,IAAI,EAAE;MAEpD,kBAAkB,GAAG,CAAC,IAAgB;EAClD,MAAM,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;EACnC,OAAO,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAChD,EAAE;MAEW,qBAAqB,GAAG,CAAC,IAAgB;EACrD,MAAM,GAAG,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;EACrC,OAAO,GAAG,GAAG,EAAE,CAAC;AACjB,EAAE;MAEW,kBAAkB,GAAG,CAAC,IAAgB;EAClD,MAAM,MAAM,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;EAC3C,OAAO,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC;AACnC,EAAE;MAEW,mBAAmB,GAAG,CAAC,IAAgB;EACnD,MAAM,MAAM,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;EAC3C,OAAO,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC;AACnC,EAAE;MAEW,gBAAgB,GAAG,CAC/B,SAAqB,EACrB,OAAmB;EAEnB,OAAO,kBAAkB,CAAC,SAAS,CAAC,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAC;AACtE,EAAE;MAEW,aAAa,GAAG,MAC5B,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,QAAQ;MACrC,QAAQ,GAAG,MAAM,aAAa,EAAE,IAAI,mBAAmB,CAAC,QAAQ,EAAE;MAClE,QAAQ,GAAG,MAAM,gBAAgB,CAAC,QAAQ,EAAE,YAAY,EAAE;MAC1D,SAAS,GAAG,MAAM,kBAAkB,CAAC,YAAY;;;;","names":[],"sources":["src/utils/transformers.ts","src/tailwind/screens.ts","src/utils/screens.ts"],"sourcesContent":["export const camelToSnakeCase = (str) =>\n str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);\n\nexport const snakeToCamelCase = (str) =>\n str\n .toLowerCase()\n .replace(/([-_][a-z])/g, (group) =>\n group.toUpperCase().replace('-', '').replace('_', '')\n );\n","export default {\n\ttablet: '40rem', // 640 px\n\t'desktop-xs': '64rem', // 1024 px\n\t'desktop-sm': '80rem', // 1360 px\n\tdesktop: '85.375rem', // 1366\n\t'desktop-lg': '90rem', // 1440\n\t'desktop-xl': '120rem', // 1920\n\n\t// layout sizes\n\t'layout-1280': '80rem',\n\t'layout-1440': '90rem',\n\t'layout-1536': '96rem',\n\t'layout-1680': '105rem',\n\t'layout-1920': '120rem',\n\t'layout-2560': '160rem',\n};\n","import screens from '../tailwind/screens';\n\nexport type ScreenSize = keyof typeof screens;\n\nexport const getScreenSize = (size: ScreenSize) => screens[size];\n\nexport const getScreenSizeInRem = (size: ScreenSize) => {\n\tconst screen = getScreenSize(size);\n\treturn parseInt(screen.replace('rem', ''), 10);\n};\n\nexport const getScreenSizeInPixels = (size: ScreenSize) => {\n\tconst rem = getScreenSizeInRem(size);\n\treturn rem * 16;\n};\n\nexport const isBiggerThanScreen = (size: ScreenSize) => {\n\tconst pixels = getScreenSizeInPixels(size);\n\treturn window.innerWidth > pixels;\n};\n\nexport const isSmallerThanScreen = (size: ScreenSize) => {\n\tconst pixels = getScreenSizeInPixels(size);\n\treturn window.innerWidth < pixels;\n};\n\nexport const isBetweenScreens = (\n\tsmallSize: ScreenSize,\n\tbigSize: ScreenSize\n) => {\n\treturn isBiggerThanScreen(smallSize) && isSmallerThanScreen(bigSize);\n};\n\nexport const isTouchDevice = () =>\n\t!!window.matchMedia('(pointer: coarse)').matches;\nexport const isMobile = () => isTouchDevice() || isSmallerThanScreen('tablet');\nexport const isTablet = () => isBetweenScreens('tablet', 'desktop-xs');\nexport const isDesktop = () => isBiggerThanScreen('desktop-xs');\n"],"version":3}