asma-types 2.5.0 → 2.5.1
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.
|
@@ -22,20 +22,14 @@
|
|
|
22
22
|
/**
|
|
23
23
|
* Numeric breakpoint values.
|
|
24
24
|
*
|
|
25
|
-
* @property
|
|
26
|
-
* @property
|
|
27
|
-
* @property
|
|
28
|
-
* @property tabletDesktopMin - Minimum width for tablet-desktop view.
|
|
29
|
-
* @property tabletDesktopMax - Maximum width for tablet-desktop view.
|
|
30
|
-
* @property desktopMin - Minimum width for desktop view.
|
|
25
|
+
* @property tablet - Minimum width for tablet view.
|
|
26
|
+
* @property tabletDesktop - Minimum width for tablet-desktop view.
|
|
27
|
+
* @property desktop - Minimum width for desktop view.
|
|
31
28
|
*/
|
|
32
29
|
export declare const breakpoints: {
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
36
|
-
readonly tabletDesktopMin: 1024;
|
|
37
|
-
readonly tabletDesktopMax: 1279;
|
|
38
|
-
readonly desktopMin: 1280;
|
|
30
|
+
readonly tablet: 744;
|
|
31
|
+
readonly tabletDesktop: 1024;
|
|
32
|
+
readonly desktop: 1280;
|
|
39
33
|
};
|
|
40
34
|
/**
|
|
41
35
|
* Tailwind `screens` configuration.
|
|
@@ -48,13 +42,13 @@ export declare const twScreens: {
|
|
|
48
42
|
readonly 'tablet-desktop': "1024px";
|
|
49
43
|
readonly desktop: "1280px";
|
|
50
44
|
readonly 'max-mobile': {
|
|
51
|
-
readonly max:
|
|
45
|
+
readonly max: `${number}px`;
|
|
52
46
|
};
|
|
53
47
|
readonly 'max-tablet': {
|
|
54
|
-
readonly max:
|
|
48
|
+
readonly max: `${number}px`;
|
|
55
49
|
};
|
|
56
50
|
readonly 'max-tablet-desktop': {
|
|
57
|
-
readonly max:
|
|
51
|
+
readonly max: `${number}px`;
|
|
58
52
|
};
|
|
59
53
|
};
|
|
60
54
|
/**
|
|
@@ -64,9 +58,9 @@ export declare const twScreens: {
|
|
|
64
58
|
* Passed directly into `useMediaQuery()` implementations.
|
|
65
59
|
*/
|
|
66
60
|
export declare const mediaQueries: {
|
|
67
|
-
readonly mobile:
|
|
68
|
-
readonly tablet:
|
|
69
|
-
readonly tabletDesktop:
|
|
61
|
+
readonly mobile: `(max-width: ${number}px)`;
|
|
62
|
+
readonly tablet: `(min-width: 744px) and (max-width: ${number}px)`;
|
|
63
|
+
readonly tabletDesktop: `(min-width: 1024px) and (max-width: ${number}px)`;
|
|
70
64
|
readonly desktop: "(min-width: 1280px)";
|
|
71
65
|
};
|
|
72
66
|
//# sourceMappingURL=breakpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../src/interfaces/breakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH
|
|
1
|
+
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../src/interfaces/breakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,WAAW;;;;CAId,CAAA;AAWV;;;;;GAKG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;CASZ,CAAA;AAEV;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;;;CAKf,CAAA"}
|
|
@@ -22,20 +22,22 @@
|
|
|
22
22
|
/**
|
|
23
23
|
* Numeric breakpoint values.
|
|
24
24
|
*
|
|
25
|
-
* @property
|
|
26
|
-
* @property
|
|
27
|
-
* @property
|
|
28
|
-
* @property tabletDesktopMin - Minimum width for tablet-desktop view.
|
|
29
|
-
* @property tabletDesktopMax - Maximum width for tablet-desktop view.
|
|
30
|
-
* @property desktopMin - Minimum width for desktop view.
|
|
25
|
+
* @property tablet - Minimum width for tablet view.
|
|
26
|
+
* @property tabletDesktop - Minimum width for tablet-desktop view.
|
|
27
|
+
* @property desktop - Minimum width for desktop view.
|
|
31
28
|
*/
|
|
32
29
|
export const breakpoints = {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
tablet: 744,
|
|
31
|
+
tabletDesktop: 1024,
|
|
32
|
+
desktop: 1280,
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Derived ceiling values for max-width checks.
|
|
36
|
+
*/
|
|
37
|
+
const ceilings = {
|
|
38
|
+
mobile: breakpoints.tablet - 1,
|
|
39
|
+
tablet: breakpoints.tabletDesktop - 1,
|
|
40
|
+
tabletDesktop: breakpoints.desktop - 1,
|
|
39
41
|
};
|
|
40
42
|
/**
|
|
41
43
|
* Tailwind `screens` configuration.
|
|
@@ -45,13 +47,13 @@ export const breakpoints = {
|
|
|
45
47
|
*/
|
|
46
48
|
export const twScreens = {
|
|
47
49
|
// min-width (mobile-first)
|
|
48
|
-
tablet: `${breakpoints.
|
|
49
|
-
'tablet-desktop': `${breakpoints.
|
|
50
|
-
desktop: `${breakpoints.
|
|
50
|
+
tablet: `${breakpoints.tablet}px`,
|
|
51
|
+
'tablet-desktop': `${breakpoints.tabletDesktop}px`,
|
|
52
|
+
desktop: `${breakpoints.desktop}px`,
|
|
51
53
|
// max-width (targeting mobile / compact)
|
|
52
|
-
'max-mobile': { max: `${
|
|
53
|
-
'max-tablet': { max: `${
|
|
54
|
-
'max-tablet-desktop': { max: `${
|
|
54
|
+
'max-mobile': { max: `${ceilings.mobile}px` },
|
|
55
|
+
'max-tablet': { max: `${ceilings.tablet}px` },
|
|
56
|
+
'max-tablet-desktop': { max: `${ceilings.tabletDesktop}px` },
|
|
55
57
|
};
|
|
56
58
|
/**
|
|
57
59
|
* CSS media queries for runtime responsive checks.
|
|
@@ -60,9 +62,9 @@ export const twScreens = {
|
|
|
60
62
|
* Passed directly into `useMediaQuery()` implementations.
|
|
61
63
|
*/
|
|
62
64
|
export const mediaQueries = {
|
|
63
|
-
mobile: `(max-width: ${
|
|
64
|
-
tablet: `(min-width: ${breakpoints.
|
|
65
|
-
tabletDesktop: `(min-width: ${breakpoints.
|
|
66
|
-
desktop: `(min-width: ${breakpoints.
|
|
65
|
+
mobile: `(max-width: ${ceilings.mobile}px)`,
|
|
66
|
+
tablet: `(min-width: ${breakpoints.tablet}px) and (max-width: ${ceilings.tablet}px)`,
|
|
67
|
+
tabletDesktop: `(min-width: ${breakpoints.tabletDesktop}px) and (max-width: ${ceilings.tabletDesktop}px)`,
|
|
68
|
+
desktop: `(min-width: ${breakpoints.desktop}px)`,
|
|
67
69
|
};
|
|
68
70
|
//# sourceMappingURL=breakpoints.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.js","sourceRoot":"","sources":["../../src/interfaces/breakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH
|
|
1
|
+
{"version":3,"file":"breakpoints.js","sourceRoot":"","sources":["../../src/interfaces/breakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,MAAM,EAAE,GAAG;IACX,aAAa,EAAE,IAAI;IACnB,OAAO,EAAE,IAAI;CACP,CAAA;AAEV;;GAEG;AACH,MAAM,QAAQ,GAAG;IACb,MAAM,EAAE,WAAW,CAAC,MAAM,GAAG,CAAC;IAC9B,MAAM,EAAE,WAAW,CAAC,aAAa,GAAG,CAAC;IACrC,aAAa,EAAE,WAAW,CAAC,OAAO,GAAG,CAAC;CAChC,CAAA;AAEV;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,2BAA2B;IAC3B,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,IAAI;IACjC,gBAAgB,EAAE,GAAG,WAAW,CAAC,aAAa,IAAI;IAClD,OAAO,EAAE,GAAG,WAAW,CAAC,OAAO,IAAI;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