kitzo 3.1.2 → 3.1.3
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/dist/index.d.ts +2 -0
- package/dist/index.js +12 -10
- package/dist/react/hooks/useMounted.js +10 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -189,6 +189,8 @@ export declare function useDebouncedCallback<Args extends unknown[]>(callback: (
|
|
|
189
189
|
*/
|
|
190
190
|
export declare function useLocalStorage<T>(key: string, initialValue: T, options?: Options_2<T>): [T, Dispatch<SetStateAction<T>>];
|
|
191
191
|
|
|
192
|
+
export declare function useMounted(): boolean;
|
|
193
|
+
|
|
192
194
|
/**
|
|
193
195
|
* A React hook that manages UI overlays (modal, drawer, popover, etc.)
|
|
194
196
|
* and synchronizes them with the browser navigation history.
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { Toaster as r } from "./react/components/toast/Toaster.js";
|
|
2
2
|
import { Tooltip as p } from "./react/components/tooltip/Tooltip.js";
|
|
3
3
|
import { toast as m } from "./react/components/toast/service/triggerToasts.js";
|
|
4
|
-
import { useCopy as
|
|
4
|
+
import { useCopy as x } from "./react/hooks/useCopy.js";
|
|
5
5
|
import { useDebounce as a } from "./react/hooks/useDebounce.js";
|
|
6
6
|
import { useDebouncedCallback as c } from "./react/hooks/useDebouncedCallback.js";
|
|
7
|
-
import { useLocalStorage as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { useLocalStorage as b } from "./react/hooks/useLocalStorage.js";
|
|
8
|
+
import { useMounted as i } from "./react/hooks/useMounted.js";
|
|
9
|
+
import { useOverlay as y } from "./react/hooks/useOverlay.js";
|
|
10
|
+
import { useThrottle as D } from "./react/hooks/useThrottle.js";
|
|
11
|
+
import { useWindowSize as g } from "./react/hooks/useWindowSize.js";
|
|
11
12
|
export {
|
|
12
13
|
r as Toaster,
|
|
13
14
|
p as Tooltip,
|
|
14
15
|
m as toast,
|
|
15
|
-
|
|
16
|
+
x as useCopy,
|
|
16
17
|
a as useDebounce,
|
|
17
18
|
c as useDebouncedCallback,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
y as
|
|
21
|
-
D as
|
|
19
|
+
b as useLocalStorage,
|
|
20
|
+
i as useMounted,
|
|
21
|
+
y as useOverlay,
|
|
22
|
+
D as useThrottle,
|
|
23
|
+
g as useWindowSize
|
|
22
24
|
};
|
package/package.json
CHANGED