asma-types 2.5.0 → 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,23 +19,13 @@
|
|
|
19
19
|
*
|
|
20
20
|
* @see asma-ui-core/src/styles/_breakpoints.scss
|
|
21
21
|
*/
|
|
22
|
-
/**
|
|
23
|
-
* Numeric breakpoint values.
|
|
24
|
-
*
|
|
25
|
-
* @property mobileMax - Maximum width for mobile view.
|
|
26
|
-
* @property tabletMin - Minimum width for tablet view.
|
|
27
|
-
* @property tabletMax - Maximum width for tablet view.
|
|
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.
|
|
31
|
-
*/
|
|
32
22
|
export declare const breakpoints: {
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
23
|
+
readonly tablet: 744;
|
|
24
|
+
readonly tabletDesktop: 1024;
|
|
25
|
+
readonly desktop: 1280;
|
|
26
|
+
readonly mobileMax: number;
|
|
27
|
+
readonly tabletMax: number;
|
|
28
|
+
readonly tabletDesktopMax: number;
|
|
39
29
|
};
|
|
40
30
|
/**
|
|
41
31
|
* Tailwind `screens` configuration.
|
|
@@ -48,13 +38,13 @@ export declare const twScreens: {
|
|
|
48
38
|
readonly 'tablet-desktop': "1024px";
|
|
49
39
|
readonly desktop: "1280px";
|
|
50
40
|
readonly 'max-mobile': {
|
|
51
|
-
readonly max:
|
|
41
|
+
readonly max: `${number}px`;
|
|
52
42
|
};
|
|
53
43
|
readonly 'max-tablet': {
|
|
54
|
-
readonly max:
|
|
44
|
+
readonly max: `${number}px`;
|
|
55
45
|
};
|
|
56
46
|
readonly 'max-tablet-desktop': {
|
|
57
|
-
readonly max:
|
|
47
|
+
readonly max: `${number}px`;
|
|
58
48
|
};
|
|
59
49
|
};
|
|
60
50
|
/**
|
|
@@ -64,9 +54,9 @@ export declare const twScreens: {
|
|
|
64
54
|
* Passed directly into `useMediaQuery()` implementations.
|
|
65
55
|
*/
|
|
66
56
|
export declare const mediaQueries: {
|
|
67
|
-
readonly mobile:
|
|
68
|
-
readonly tablet:
|
|
69
|
-
readonly tabletDesktop:
|
|
57
|
+
readonly mobile: `(max-width: ${number}px)`;
|
|
58
|
+
readonly tablet: `(min-width: 744px) and (max-width: ${number}px)`;
|
|
59
|
+
readonly tabletDesktop: `(min-width: 1024px) and (max-width: ${number}px)`;
|
|
70
60
|
readonly desktop: "(min-width: 1280px)";
|
|
71
61
|
};
|
|
72
62
|
//# sourceMappingURL=breakpoints.d.ts.map
|
|
@@ -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"}
|
|
@@ -22,20 +22,23 @@
|
|
|
22
22
|
/**
|
|
23
23
|
* Numeric breakpoint values.
|
|
24
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.
|
|
25
28
|
* @property mobileMax - Maximum width for mobile view.
|
|
26
|
-
* @property tabletMin - Minimum width for tablet view.
|
|
27
29
|
* @property tabletMax - Maximum width for tablet view.
|
|
28
|
-
* @property tabletDesktopMin - Minimum width for tablet-desktop view.
|
|
29
30
|
* @property tabletDesktopMax - Maximum width for tablet-desktop view.
|
|
30
|
-
* @property desktopMin - Minimum width for desktop view.
|
|
31
31
|
*/
|
|
32
|
+
const tablet = 744;
|
|
33
|
+
const tabletDesktop = 1024;
|
|
34
|
+
const desktop = 1280;
|
|
32
35
|
export const breakpoints = {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
tablet,
|
|
37
|
+
tabletDesktop,
|
|
38
|
+
desktop,
|
|
39
|
+
mobileMax: tablet - 1,
|
|
40
|
+
tabletMax: tabletDesktop - 1,
|
|
41
|
+
tabletDesktopMax: desktop - 1,
|
|
39
42
|
};
|
|
40
43
|
/**
|
|
41
44
|
* Tailwind `screens` configuration.
|
|
@@ -45,9 +48,9 @@ export const breakpoints = {
|
|
|
45
48
|
*/
|
|
46
49
|
export const twScreens = {
|
|
47
50
|
// min-width (mobile-first)
|
|
48
|
-
tablet: `${breakpoints.
|
|
49
|
-
'tablet-desktop': `${breakpoints.
|
|
50
|
-
desktop: `${breakpoints.
|
|
51
|
+
tablet: `${breakpoints.tablet}px`,
|
|
52
|
+
'tablet-desktop': `${breakpoints.tabletDesktop}px`,
|
|
53
|
+
desktop: `${breakpoints.desktop}px`,
|
|
51
54
|
// max-width (targeting mobile / compact)
|
|
52
55
|
'max-mobile': { max: `${breakpoints.mobileMax}px` },
|
|
53
56
|
'max-tablet': { max: `${breakpoints.tabletMax}px` },
|
|
@@ -61,8 +64,8 @@ export const twScreens = {
|
|
|
61
64
|
*/
|
|
62
65
|
export const mediaQueries = {
|
|
63
66
|
mobile: `(max-width: ${breakpoints.mobileMax}px)`,
|
|
64
|
-
tablet: `(min-width: ${breakpoints.
|
|
65
|
-
tabletDesktop: `(min-width: ${breakpoints.
|
|
66
|
-
desktop: `(min-width: ${breakpoints.
|
|
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)`,
|
|
69
|
+
desktop: `(min-width: ${breakpoints.desktop}px)`,
|
|
67
70
|
};
|
|
68
71
|
//# sourceMappingURL=breakpoints.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.js","sourceRoot":"","sources":["../../src/interfaces/breakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,
|
|
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,OAAO,EAAE,GAAG,WAAW,CAAC,OAAO,IAAI;IACnC,yCAAyC;IACzC,YAAY,EAAE,EAAE,GAAG,EAAE,GAAG,WAAW,CAAC,SAAS,IAAI,EAAE;IACnD,YAAY,EAAE,EAAE,GAAG,EAAE,GAAG,WAAW,CAAC,SAAS,IAAI,EAAE;IACnD,oBAAoB,EAAE,EAAE,GAAG,EAAE,GAAG,WAAW,CAAC,gBAAgB,IAAI,EAAE;CAC5D,CAAA;AAEV;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,MAAM,EAAE,eAAe,WAAW,CAAC,SAAS,KAAK;IACjD,MAAM,EAAE,eAAe,WAAW,CAAC,MAAM,uBAAuB,WAAW,CAAC,SAAS,KAAK;IAC1F,aAAa,EAAE,eAAe,WAAW,CAAC,aAAa,uBAAuB,WAAW,CAAC,gBAAgB,KAAK;IAC/G,OAAO,EAAE,eAAe,WAAW,CAAC,OAAO,KAAK;CAC1C,CAAA"}
|