asma-types 2.5.1 → 2.6.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.
|
@@ -19,17 +19,13 @@
|
|
|
19
19
|
*
|
|
20
20
|
* @see asma-ui-core/src/styles/_breakpoints.scss
|
|
21
21
|
*/
|
|
22
|
-
/**
|
|
23
|
-
* Numeric breakpoint values.
|
|
24
|
-
*
|
|
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.
|
|
28
|
-
*/
|
|
29
22
|
export declare const breakpoints: {
|
|
30
23
|
readonly tablet: 744;
|
|
31
24
|
readonly tabletDesktop: 1024;
|
|
32
25
|
readonly desktop: 1280;
|
|
26
|
+
readonly mobileMax: number;
|
|
27
|
+
readonly tabletMax: number;
|
|
28
|
+
readonly tabletDesktopMax: number;
|
|
33
29
|
};
|
|
34
30
|
/**
|
|
35
31
|
* Tailwind `screens` configuration.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../src/interfaces/breakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;
|
|
1
|
+
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../src/interfaces/breakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAgBH,eAAO,MAAM,WAAW;;;;;;;CAOd,CAAA;AAEV;;;;;GAKG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;CASZ,CAAA;AAEV;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;;;CAKf,CAAA"}
|
|
@@ -25,19 +25,20 @@
|
|
|
25
25
|
* @property tablet - Minimum width for tablet view.
|
|
26
26
|
* @property tabletDesktop - Minimum width for tablet-desktop view.
|
|
27
27
|
* @property desktop - Minimum width for desktop view.
|
|
28
|
+
* @property mobileMax - Maximum width for mobile view.
|
|
29
|
+
* @property tabletMax - Maximum width for tablet view.
|
|
30
|
+
* @property tabletDesktopMax - Maximum width for tablet-desktop view.
|
|
28
31
|
*/
|
|
32
|
+
const tablet = 744;
|
|
33
|
+
const tabletDesktop = 1024;
|
|
34
|
+
const desktop = 1280;
|
|
29
35
|
export const breakpoints = {
|
|
30
|
-
tablet
|
|
31
|
-
tabletDesktop
|
|
32
|
-
desktop
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
*/
|
|
37
|
-
const ceilings = {
|
|
38
|
-
mobile: breakpoints.tablet - 1,
|
|
39
|
-
tablet: breakpoints.tabletDesktop - 1,
|
|
40
|
-
tabletDesktop: breakpoints.desktop - 1,
|
|
36
|
+
tablet,
|
|
37
|
+
tabletDesktop,
|
|
38
|
+
desktop,
|
|
39
|
+
mobileMax: tablet - 1,
|
|
40
|
+
tabletMax: tabletDesktop - 1,
|
|
41
|
+
tabletDesktopMax: desktop - 1,
|
|
41
42
|
};
|
|
42
43
|
/**
|
|
43
44
|
* Tailwind `screens` configuration.
|
|
@@ -51,9 +52,9 @@ export const twScreens = {
|
|
|
51
52
|
'tablet-desktop': `${breakpoints.tabletDesktop}px`,
|
|
52
53
|
desktop: `${breakpoints.desktop}px`,
|
|
53
54
|
// max-width (targeting mobile / compact)
|
|
54
|
-
'max-mobile': { max: `${
|
|
55
|
-
'max-tablet': { max: `${
|
|
56
|
-
'max-tablet-desktop': { max: `${
|
|
55
|
+
'max-mobile': { max: `${breakpoints.mobileMax}px` },
|
|
56
|
+
'max-tablet': { max: `${breakpoints.tabletMax}px` },
|
|
57
|
+
'max-tablet-desktop': { max: `${breakpoints.tabletDesktopMax}px` },
|
|
57
58
|
};
|
|
58
59
|
/**
|
|
59
60
|
* CSS media queries for runtime responsive checks.
|
|
@@ -62,9 +63,9 @@ export const twScreens = {
|
|
|
62
63
|
* Passed directly into `useMediaQuery()` implementations.
|
|
63
64
|
*/
|
|
64
65
|
export const mediaQueries = {
|
|
65
|
-
mobile: `(max-width: ${
|
|
66
|
-
tablet: `(min-width: ${breakpoints.tablet}px) and (max-width: ${
|
|
67
|
-
tabletDesktop: `(min-width: ${breakpoints.tabletDesktop}px) and (max-width: ${
|
|
66
|
+
mobile: `(max-width: ${breakpoints.mobileMax}px)`,
|
|
67
|
+
tablet: `(min-width: ${breakpoints.tablet}px) and (max-width: ${breakpoints.tabletMax}px)`,
|
|
68
|
+
tabletDesktop: `(min-width: ${breakpoints.tabletDesktop}px) and (max-width: ${breakpoints.tabletDesktopMax}px)`,
|
|
68
69
|
desktop: `(min-width: ${breakpoints.desktop}px)`,
|
|
69
70
|
};
|
|
70
71
|
//# 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;;;;;;;;;GASG;AACH,MAAM,MAAM,GAAG,GAAG,CAAA;AAClB,MAAM,aAAa,GAAG,IAAI,CAAA;AAC1B,MAAM,OAAO,GAAG,IAAI,CAAA;AAEpB,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,MAAM;IACN,aAAa;IACb,OAAO;IACP,SAAS,EAAE,MAAM,GAAG,CAAC;IACrB,SAAS,EAAE,aAAa,GAAG,CAAC;IAC5B,gBAAgB,EAAE,OAAO,GAAG,CAAC;CACvB,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,OAA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