reykit 1.0.68 → 1.0.69
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/components/Loading/Loading.d.ts +13 -0
- package/dist/components/Loading/uesLoading.d.ts +15 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.js +3485 -3466
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type LoadingContextParams = {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
setIsLoading: (value: boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const LoadingContext: import('react').Context<LoadingContextParams | null>;
|
|
7
|
+
/**
|
|
8
|
+
* Loading component.
|
|
9
|
+
*/
|
|
10
|
+
export declare function Loading({ children }: {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @Time : 2026-03-25
|
|
3
|
+
* @Author : Rey
|
|
4
|
+
* @Contact : reyxbo@163.com
|
|
5
|
+
* @Explain : Hook of loading components.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Hook of get loading component status parameters.
|
|
9
|
+
*
|
|
10
|
+
* @returns Status parameters.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useLoading(): {
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
setIsLoading: (value: boolean) => void;
|
|
15
|
+
};
|