stone-kit 0.0.1069 → 0.0.1070

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.
@@ -1,4 +1,4 @@
1
- type UseClientWidth = {
1
+ export declare const useClientWidth: () => {
2
2
  currentClientWidth: number;
3
3
  isMobile: boolean;
4
4
  isTablet: boolean;
@@ -6,5 +6,3 @@ type UseClientWidth = {
6
6
  isMobileBorder: boolean;
7
7
  isFullTablet: boolean;
8
8
  };
9
- export declare const useClientWidth: () => UseClientWidth;
10
- export {};
@@ -1,22 +1,13 @@
1
- import { useState as l, useCallback as w, useEffect as i } from "react";
1
+ import { useState as u, useCallback as c, useEffect as i } from "react";
2
2
  const a = () => {
3
- const [e, n] = l(
4
- typeof window < "u" ? window.innerWidth : 0
5
- ), t = w(() => {
3
+ const [e, n] = u(0), t = c(() => {
6
4
  n(window.innerWidth);
7
5
  }, [n]);
8
6
  i(() => (window.addEventListener("resize", t), () => window.removeEventListener("resize", t)), []), i(() => {
9
7
  t();
10
8
  }, []);
11
- const o = e !== 0 && e < 1024, s = typeof window < "u" ? e !== 0 && e < 768 : !1, r = e >= 768 && e < 1440, d = e > 1023 && e < 1440, u = e >= 1440;
12
- return {
13
- currentClientWidth: e,
14
- isMobile: o,
15
- isTablet: d,
16
- isDesktop: u,
17
- isMobileBorder: s,
18
- isFullTablet: r
19
- };
9
+ const s = e < 1024, o = typeof window < "u" ? window.innerWidth < 768 : !1, r = e >= 768 && e < 1440, d = e > 1023 && e < 1440, l = e >= 1440;
10
+ return { currentClientWidth: e, isMobile: s, isTablet: d, isDesktop: l, isMobileBorder: o, isFullTablet: r };
20
11
  };
21
12
  export {
22
13
  a as useClientWidth
package/package.json CHANGED
@@ -1,78 +1,78 @@
1
- {
2
- "name": "stone-kit",
3
- "description": "uikit for redesign",
4
- "private": false,
5
- "version": "0.0.1069",
6
- "author": "Mollycodd1e",
7
- "license": "ISC",
8
- "type": "module",
9
- "scripts": {
10
- "build": "vite build && tsc",
11
- "dev": "vite",
12
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
13
- "preview": "vite preview",
14
- "version-update": "node scripts/versionUpdate.js",
15
- "commit-and-push": "node scripts/commitAndPush.js",
16
- "release": "npm run build && npm run version-update && npm run commit-and-push && npm publish --tag latest",
17
- "storybook": "npx kill-port 6006 && storybook dev -p 6006",
18
- "build-storybook": "storybook build"
19
- },
20
- "dependencies": {
21
- "react": "^19.2.0",
22
- "react-dom": "^19.2.0",
23
- "react-imask": "^7.6.1",
24
- "react-router-dom": "^7.9.6"
25
- },
26
- "devDependencies": {
27
- "@eslint/js": "^9.39.1",
28
- "@storybook/addon-docs": "^9.1.2",
29
- "@storybook/addon-onboarding": "^9.1.2",
30
- "@storybook/react-vite": "^9.1.2",
31
- "@types/node": "^24.10.0",
32
- "@types/react": "^19",
33
- "@types/react-dom": "^19",
34
- "@vitejs/plugin-react": "^5.1.0",
35
- "classnames": "^2.5.1",
36
- "eslint": "^9",
37
- "eslint-plugin-react": "^7.34.1",
38
- "eslint-plugin-react-hooks": "^7.0.1",
39
- "eslint-plugin-react-refresh": "^0.4.24",
40
- "eslint-plugin-storybook": "^9.1.2",
41
- "glob": "^10.3.16",
42
- "globals": "^16.5.0",
43
- "react-hook-form": "^7.52.2",
44
- "sass": "^1.94.0",
45
- "storybook": "^9.1.2",
46
- "typescript": "^5",
47
- "typescript-eslint": "^8.46.3",
48
- "vite": "^7.2.2",
49
- "vite-plugin-dts": "^4.5.4",
50
- "vite-plugin-svgr": "^4.5.0"
51
- },
52
- "main": "dist/main.js",
53
- "types": "dist/main.d.ts",
54
- "files": [
55
- "dist"
56
- ],
57
- "sideEffects": [
58
- "**/*.css"
59
- ],
60
- "directories": {
61
- "lib": "lib"
62
- },
63
- "repository": {
64
- "type": "git",
65
- "url": "git+https://gitlab.realx.tech/web-dev/stone-ru/stone-portal-front/viteKit.git"
66
- },
67
- "keywords": [
68
- "kit",
69
- "stone",
70
- "ui",
71
- "stone-kit",
72
- "stonehedge"
73
- ],
74
- "bugs": {
75
- "url": "https://gitlab.realx.tech/web-dev/stone-ru/stone-portal-front/viteKit/issues"
76
- },
77
- "homepage": "https://gitlab.realx.tech/web-dev/stone-ru/stone-portal-front/viteKit#readme"
1
+ {
2
+ "name": "stone-kit",
3
+ "description": "uikit for redesign",
4
+ "private": false,
5
+ "version": "0.0.1070",
6
+ "author": "Mollycodd1e",
7
+ "license": "ISC",
8
+ "type": "module",
9
+ "scripts": {
10
+ "build": "vite build && tsc",
11
+ "dev": "vite",
12
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
13
+ "preview": "vite preview",
14
+ "version-update": "node scripts/versionUpdate.js",
15
+ "commit-and-push": "node scripts/commitAndPush.js",
16
+ "release": "npm run build && npm run version-update && npm run commit-and-push && npm publish --tag latest",
17
+ "storybook": "npx kill-port 6006 && storybook dev -p 6006",
18
+ "build-storybook": "storybook build"
19
+ },
20
+ "dependencies": {
21
+ "react": "^19.2.0",
22
+ "react-dom": "^19.2.0",
23
+ "react-imask": "^7.6.1",
24
+ "react-router-dom": "^7.9.6"
25
+ },
26
+ "devDependencies": {
27
+ "@eslint/js": "^9.39.1",
28
+ "@storybook/addon-docs": "^9.1.2",
29
+ "@storybook/addon-onboarding": "^9.1.2",
30
+ "@storybook/react-vite": "^9.1.2",
31
+ "@types/node": "^24.10.0",
32
+ "@types/react": "^19",
33
+ "@types/react-dom": "^19",
34
+ "@vitejs/plugin-react": "^5.1.0",
35
+ "classnames": "^2.5.1",
36
+ "eslint": "^9",
37
+ "eslint-plugin-react": "^7.34.1",
38
+ "eslint-plugin-react-hooks": "^7.0.1",
39
+ "eslint-plugin-react-refresh": "^0.4.24",
40
+ "eslint-plugin-storybook": "^9.1.2",
41
+ "glob": "^10.3.16",
42
+ "globals": "^16.5.0",
43
+ "react-hook-form": "^7.52.2",
44
+ "sass": "^1.94.0",
45
+ "storybook": "^9.1.2",
46
+ "typescript": "^5",
47
+ "typescript-eslint": "^8.46.3",
48
+ "vite": "^7.2.2",
49
+ "vite-plugin-dts": "^4.5.4",
50
+ "vite-plugin-svgr": "^4.5.0"
51
+ },
52
+ "main": "dist/main.js",
53
+ "types": "dist/main.d.ts",
54
+ "files": [
55
+ "dist"
56
+ ],
57
+ "sideEffects": [
58
+ "**/*.css"
59
+ ],
60
+ "directories": {
61
+ "lib": "lib"
62
+ },
63
+ "repository": {
64
+ "type": "git",
65
+ "url": "git+https://gitlab.realx.tech/web-dev/stone-ru/stone-portal-front/viteKit.git"
66
+ },
67
+ "keywords": [
68
+ "kit",
69
+ "stone",
70
+ "ui",
71
+ "stone-kit",
72
+ "stonehedge"
73
+ ],
74
+ "bugs": {
75
+ "url": "https://gitlab.realx.tech/web-dev/stone-ru/stone-portal-front/viteKit/issues"
76
+ },
77
+ "homepage": "https://gitlab.realx.tech/web-dev/stone-ru/stone-portal-front/viteKit#readme"
78
78
  }