@cripty2001/utils 0.0.156 → 0.0.158
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/react-ui/button.js
CHANGED
|
@@ -21,7 +21,7 @@ function Button({ onClick, children, className }) {
|
|
|
21
21
|
.catch(e => setError(e instanceof Error ? e.message : "Unknown error"))
|
|
22
22
|
.finally(() => setLoading(false));
|
|
23
23
|
};
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2", children: [(0, jsx_runtime_1.jsx)("div", { onClick: handleClick, className: className, style: {
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full w-full gap-2", children: [(0, jsx_runtime_1.jsx)("div", { onClick: handleClick, className: className, style: {
|
|
25
25
|
display: 'flex',
|
|
26
26
|
alignItems: 'center',
|
|
27
27
|
justifyContent: 'center',
|
package/dist/react-whispr.d.ts
CHANGED
|
@@ -34,10 +34,10 @@ export declare function useWhispr<T>(data: T | Whispr<T>): Whispr<T>;
|
|
|
34
34
|
*/
|
|
35
35
|
export declare function useOnWhispr<T>(w: Whispr<T>, unsafe: boolean | undefined, cb: (value: T) => void): void;
|
|
36
36
|
/**
|
|
37
|
-
* Return a reactive current timestamp (ms)
|
|
37
|
+
* Return a reactive current timestamp (ms)
|
|
38
38
|
* @returns The current timestamp
|
|
39
39
|
*/
|
|
40
|
-
export declare function useCurrentTimestamp(
|
|
40
|
+
export declare function useCurrentTimestamp(): number;
|
|
41
41
|
/**
|
|
42
42
|
* Debounce a reactive value, deep checking for equality, and stopping updates until the value changes.
|
|
43
43
|
* @param value The value to debounce
|
package/dist/react-whispr.js
CHANGED
|
@@ -75,10 +75,10 @@ function useOnWhispr(w, unsafe = false, cb) {
|
|
|
75
75
|
}, [w, cb]);
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
|
-
* Return a reactive current timestamp (ms)
|
|
78
|
+
* Return a reactive current timestamp (ms)
|
|
79
79
|
* @returns The current timestamp
|
|
80
80
|
*/
|
|
81
|
-
function useCurrentTimestamp(
|
|
81
|
+
function useCurrentTimestamp() {
|
|
82
82
|
return useWhisprValue((0, _1.CURRENT_TS_MS)());
|
|
83
83
|
}
|
|
84
84
|
/**
|
package/package.json
CHANGED