@react-pakistan/util-functions 1.19.3 → 1.20.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.
- package/hooks/index.d.ts +0 -1
- package/hooks/index.js +0 -1
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/package.json +15 -16
- package/storybook/theme.d.ts +4 -1
- package/storybook/theme.js +721 -536
- package/action-creator-factories/empty-action-creator.d.ts +0 -4
- package/action-creator-factories/empty-action-creator.js +0 -5
- package/action-creator-factories/index.d.ts +0 -3
- package/action-creator-factories/index.js +0 -19
- package/action-creator-factories/payload-action-creator.d.ts +0 -4
- package/action-creator-factories/payload-action-creator.js +0 -5
- package/action-creator-factories/types.d.ts +0 -48
- package/action-creator-factories/types.js +0 -2
- package/hooks/use-selector.d.ts +0 -10
- package/hooks/use-selector.js +0 -16
package/hooks/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export * from './use-change';
|
|
|
2
2
|
export * from './use-force-render';
|
|
3
3
|
export * from './use-ip-geo-location';
|
|
4
4
|
export * from './use-is-mobile';
|
|
5
|
-
export * from './use-selector';
|
|
6
5
|
export * from './use-sticky';
|
|
7
6
|
export * from './use-toggle-state';
|
|
8
7
|
export * from './use-window-event-listener';
|
package/hooks/index.js
CHANGED
|
@@ -18,7 +18,6 @@ __exportStar(require("./use-change"), exports);
|
|
|
18
18
|
__exportStar(require("./use-force-render"), exports);
|
|
19
19
|
__exportStar(require("./use-ip-geo-location"), exports);
|
|
20
20
|
__exportStar(require("./use-is-mobile"), exports);
|
|
21
|
-
__exportStar(require("./use-selector"), exports);
|
|
22
21
|
__exportStar(require("./use-sticky"), exports);
|
|
23
22
|
__exportStar(require("./use-toggle-state"), exports);
|
|
24
23
|
__exportStar(require("./use-window-event-listener"), exports);
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./action-creator-factories"), exports);
|
|
18
17
|
__exportStar(require("./constants"), exports);
|
|
19
18
|
__exportStar(require("./general"), exports);
|
|
20
19
|
__exportStar(require("./hooks"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-pakistan/util-functions",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"description": "A library of all util functions",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -39,18 +39,17 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://github.com/react-pakistan/util-functions#readme",
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@babel/core": "^7.23.
|
|
42
|
+
"@babel/core": "^7.23.6",
|
|
43
43
|
"@babel/eslint-parser": "^7.23.3",
|
|
44
44
|
"@babel/preset-typescript": "^7.23.3",
|
|
45
45
|
"@microsoft/tsdoc": "^0.14.2",
|
|
46
|
-
"@react-pakistan/eslint-config-shared": "^1.10.
|
|
47
|
-
"@types/jest": "^29.5.
|
|
46
|
+
"@react-pakistan/eslint-config-shared": "^1.10.3",
|
|
47
|
+
"@types/jest": "^29.5.11",
|
|
48
48
|
"@types/lodash.curry": "^4.1.9",
|
|
49
|
-
"@types/node": "^20.10.
|
|
50
|
-
"@types/
|
|
51
|
-
"@
|
|
52
|
-
"@typescript-eslint/
|
|
53
|
-
"@typescript-eslint/parser": "^6.13.1",
|
|
49
|
+
"@types/node": "^20.10.4",
|
|
50
|
+
"@types/styled-components": "^5.1.34",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
|
52
|
+
"@typescript-eslint/parser": "^6.14.0",
|
|
54
53
|
"date-fns": "^2.30.0",
|
|
55
54
|
"date-fns-tz": "^2.0.0",
|
|
56
55
|
"eslint": "^8.55.0",
|
|
@@ -61,15 +60,15 @@
|
|
|
61
60
|
"lodash.curry": "^4.1.1",
|
|
62
61
|
"lodash.isequal": "^4.5.0",
|
|
63
62
|
"react": "^18.2.0",
|
|
64
|
-
"react-
|
|
63
|
+
"react-use": "^17.4.2",
|
|
65
64
|
"rimraf": "^5.0.5",
|
|
66
65
|
"ts-jest": "^29.1.1",
|
|
67
66
|
"ts-loader": "^9.5.1",
|
|
68
|
-
"typescript": "^5.3.
|
|
67
|
+
"typescript": "^5.3.3"
|
|
69
68
|
},
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
}
|
|
69
|
+
"engines": {
|
|
70
|
+
"npm": ">=9.6.7",
|
|
71
|
+
"node": ">=18.17.0"
|
|
72
|
+
},
|
|
73
|
+
"dependencies": {}
|
|
75
74
|
}
|
package/storybook/theme.d.ts
CHANGED
|
@@ -40,10 +40,13 @@ export interface IRadius {
|
|
|
40
40
|
full: string;
|
|
41
41
|
[key: string]: string;
|
|
42
42
|
}
|
|
43
|
+
export interface IElevation {
|
|
44
|
+
filter: string;
|
|
45
|
+
}
|
|
43
46
|
export interface IShadow {
|
|
44
47
|
default: string;
|
|
45
48
|
medium: string;
|
|
46
|
-
[key: string]: string;
|
|
49
|
+
[key: string]: string | IElevation;
|
|
47
50
|
}
|
|
48
51
|
export interface ISpacing {
|
|
49
52
|
xsmall: string;
|