@zayne-labs/toolkit-react 0.12.3 → 0.12.4
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
|
-
import * as
|
|
1
|
+
import * as react1 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/hooks/useClickOutside.d.ts
|
|
4
4
|
type UseClickOutsideOptions<TElement extends HTMLElement> = {
|
|
@@ -7,7 +7,7 @@ type UseClickOutsideOptions<TElement extends HTMLElement> = {
|
|
|
7
7
|
ref?: Array<React.RefObject<TElement>> | React.RefObject<TElement>;
|
|
8
8
|
};
|
|
9
9
|
declare const useClickOutside: <TElement extends HTMLElement>(options: UseClickOutsideOptions<TElement>) => {
|
|
10
|
-
ref:
|
|
10
|
+
ref: react1.RefObject<TElement | null>;
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
|
13
13
|
export { useClickOutside };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PossibleRef } from "../utils/composeRefs.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react0 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/hooks/useComposeRefs.d.ts
|
|
5
|
-
declare const useComposeRefs: <TRef extends HTMLElement>(...refs: Array<PossibleRef<TRef>>) =>
|
|
5
|
+
declare const useComposeRefs: <TRef extends HTMLElement>(...refs: Array<PossibleRef<TRef>>) => react0.RefCallback<TRef>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { useComposeRefs };
|
|
8
8
|
//# sourceMappingURL=useComposeRefs.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react7 from "react";
|
|
2
2
|
import { AllowedClipboardItems, CopyToClipboardOptions } from "@zayne-labs/toolkit-core";
|
|
3
3
|
|
|
4
4
|
//#region src/hooks/useCopyToClipboard.d.ts
|
|
@@ -7,7 +7,7 @@ declare const useCopyToClipboard: (options?: CopyToClipboardOptions & {
|
|
|
7
7
|
}) => {
|
|
8
8
|
handleCopy: (valueToCopy: AllowedClipboardItems) => void;
|
|
9
9
|
hasCopied: boolean;
|
|
10
|
-
setValue:
|
|
10
|
+
setValue: react7.Dispatch<react7.SetStateAction<AllowedClipboardItems>>;
|
|
11
11
|
value: AllowedClipboardItems;
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react2 from "react";
|
|
2
2
|
import { CallbackFn } from "@zayne-labs/toolkit-type-helpers";
|
|
3
3
|
|
|
4
4
|
//#region src/hooks/useDebounce.d.ts
|
|
@@ -11,13 +11,13 @@ declare const useDebouncedFn: <TParams>(callBackFn: CallbackFn<TParams>, delay:
|
|
|
11
11
|
cancelMaxWait(): void;
|
|
12
12
|
};
|
|
13
13
|
declare const useDebouncedState: <TValue>(defaultValue: TValue, delay: number | undefined) => readonly [TValue, {
|
|
14
|
-
(...params:
|
|
15
|
-
(params:
|
|
14
|
+
(...params: react2.SetStateAction<TValue>[]): void;
|
|
15
|
+
(params: react2.SetStateAction<TValue> | react2.SetStateAction<TValue>[], overrideOptions: {
|
|
16
16
|
$delay: number;
|
|
17
17
|
}): void;
|
|
18
18
|
cancel: () => void;
|
|
19
19
|
cancelMaxWait(): void;
|
|
20
|
-
},
|
|
20
|
+
}, react2.Dispatch<react2.SetStateAction<TValue>>];
|
|
21
21
|
//#endregion
|
|
22
22
|
export { useDebouncedFn, useDebouncedState };
|
|
23
23
|
//# sourceMappingURL=useDebounce.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zayne-labs/toolkit-react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.4",
|
|
5
5
|
"description": "A collection of utility functions, types and composables used by my other projects. Nothing too fancy but can be useful.",
|
|
6
6
|
"author": "Ryan Zayne",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@zayne-labs/toolkit-core": "0.12.
|
|
48
|
-
"@zayne-labs/toolkit-type-helpers": "0.12.
|
|
47
|
+
"@zayne-labs/toolkit-core": "0.12.4",
|
|
48
|
+
"@zayne-labs/toolkit-type-helpers": "0.12.4"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
@@ -53,16 +53,16 @@
|
|
|
53
53
|
"@size-limit/esbuild-why": "^11.2.0",
|
|
54
54
|
"@size-limit/preset-small-lib": "^11.2.0",
|
|
55
55
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
56
|
-
"@types/node": "^24.
|
|
57
|
-
"@types/react": "^19.2.
|
|
58
|
-
"@zayne-labs/tsconfig": "0.10.
|
|
56
|
+
"@types/node": "^24.7.2",
|
|
57
|
+
"@types/react": "^19.2.2",
|
|
58
|
+
"@zayne-labs/tsconfig": "0.10.9",
|
|
59
59
|
"concurrently": "^9.2.1",
|
|
60
60
|
"cross-env": "^10.1.0",
|
|
61
|
-
"publint": "^0.3.
|
|
61
|
+
"publint": "^0.3.14",
|
|
62
62
|
"react": "^19.2.0",
|
|
63
63
|
"size-limit": "^11.2.0",
|
|
64
64
|
"tailwind-merge": "3.3.1",
|
|
65
|
-
"tsdown": "^0.15.
|
|
65
|
+
"tsdown": "^0.15.7",
|
|
66
66
|
"typescript": "5.9.3"
|
|
67
67
|
},
|
|
68
68
|
"publishConfig": {
|