@axa-fr/design-system-slash-react 0.2.0-beta.332 → 0.2.0-beta.334
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.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var BREAKPOINT;
|
|
2
|
+
(function (BREAKPOINT) {
|
|
3
|
+
BREAKPOINT[BREAKPOINT["SM"] = 667] = "SM";
|
|
4
|
+
BREAKPOINT[BREAKPOINT["MD"] = 1023] = "MD";
|
|
5
|
+
BREAKPOINT[BREAKPOINT["LG"] = 1279] = "LG";
|
|
6
|
+
BREAKPOINT[BREAKPOINT["XL"] = 1599] = "XL";
|
|
7
|
+
})(BREAKPOINT || (BREAKPOINT = {}));
|
|
@@ -7,7 +7,7 @@ export const useIsSmallScreen = (breakPointToCheck) => {
|
|
|
7
7
|
};
|
|
8
8
|
}, []);
|
|
9
9
|
const getSnapshot = useCallback(() => {
|
|
10
|
-
return window.innerWidth
|
|
10
|
+
return window.innerWidth <= breakPointToCheck;
|
|
11
11
|
}, [breakPointToCheck]);
|
|
12
12
|
const getServerSnapshot = useCallback(() => false, []);
|
|
13
13
|
return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
package/dist/utilities.d.ts
CHANGED
package/dist/utilities.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/design-system-slash-react",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.334",
|
|
4
4
|
"description": "",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"homepage": "https://github.com/AxaFrance/design-system#readme",
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@axa-fr/design-system-slash-css": "0.2.0-beta.
|
|
44
|
+
"@axa-fr/design-system-slash-css": "0.2.0-beta.334",
|
|
45
45
|
"@material-symbols/svg-400": ">= 0.19.0",
|
|
46
46
|
"react": ">= 18"
|
|
47
47
|
},
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@typescript-eslint/parser": "^7.16.0",
|
|
86
86
|
"@vitejs/plugin-react": "^4.3.1",
|
|
87
87
|
"@vitest/coverage-v8": "^2.0.5",
|
|
88
|
-
"@vitest/ui": "^2.
|
|
88
|
+
"@vitest/ui": "^2.1.2",
|
|
89
89
|
"copyfiles": "^2.4.1",
|
|
90
90
|
"eslint": "^8.57.0",
|
|
91
91
|
"eslint-config-airbnb": "^19.0.4",
|