reykit 1.0.220 → 1.0.222
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.js +4300 -4231
- package/dist/src/component/Base.d.ts +7 -0
- package/dist/src/component/Button.d.ts +9 -0
- package/dist/src/component/index.d.ts +2 -3
- package/package.json +1 -1
- package/dist/src/component/Loading.d.ts +0 -13
|
@@ -22,3 +22,10 @@ export declare function createCover(display: ReactNode): [({ children }: {
|
|
|
22
22
|
isCovering: boolean;
|
|
23
23
|
setIsCovering: (value: boolean) => void;
|
|
24
24
|
}];
|
|
25
|
+
export declare const Loading: ({ children }: {
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
}) => import("react/jsx-runtime").JSX.Element, useLoading: () => {
|
|
28
|
+
withCover: <T, Args extends any[]>(fn: (...args: Args) => T | Promise<T>, ...args: Args) => Promise<T>;
|
|
29
|
+
isCovering: boolean;
|
|
30
|
+
setIsCovering: (value: boolean) => void;
|
|
31
|
+
};
|
|
@@ -13,3 +13,12 @@ export declare function CycleButton({ childrens, handleCycle, onClick, ...props
|
|
|
13
13
|
handleClick: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
14
14
|
}[];
|
|
15
15
|
} & ComponentProps<'button'>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
/**
|
|
17
|
+
* Button component of scroll to top.
|
|
18
|
+
* Initial hide, display after scrolling down more than 1 screen height.
|
|
19
|
+
*
|
|
20
|
+
* @param buttonColor - Button color, need hexadecimal color value.
|
|
21
|
+
*/
|
|
22
|
+
export declare function ScrollToTopButton({ buttonColor, className, style, ...args }: {
|
|
23
|
+
buttonColor?: string;
|
|
24
|
+
} & ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import * as ui from './ui';
|
|
8
8
|
export { ui };
|
|
9
|
-
export { type CoverContextParams, createCover } from './Base';
|
|
9
|
+
export { type CoverContextParams, createCover, Loading, useLoading } from './Base';
|
|
10
10
|
export { type BreadcrumbDict, Breadcrumb } from './Breadcrumb';
|
|
11
|
-
export { CycleButton } from './Button';
|
|
11
|
+
export { CycleButton, ScrollToTopButton } from './Button';
|
|
12
12
|
export { Form } from './Form';
|
|
13
|
-
export { Loading, useLoading } from './Loading';
|
|
14
13
|
export { PopupImage, PopupVideo, CarouselMedia } from './Media';
|
|
15
14
|
export { Notice, notice } from './Notice';
|
|
16
15
|
export { type TableFieldOption, type TableSearchOption, type TableButtonOption, type TableRowOption, type TableSelectRowsOption, Table } from './Table';
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @Time : 2026-06-11
|
|
3
|
-
* @Author : Rey
|
|
4
|
-
* @Contact : reyxbo@163.com
|
|
5
|
-
* @Explain : Loading components.
|
|
6
|
-
*/
|
|
7
|
-
export declare const Loading: ({ children }: {
|
|
8
|
-
children: import('react').ReactNode;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element, useLoading: () => {
|
|
10
|
-
withCover: <T, Args extends any[]>(fn: (...args: Args) => T | Promise<T>, ...args: Args) => Promise<T>;
|
|
11
|
-
isCovering: boolean;
|
|
12
|
-
setIsCovering: (value: boolean) => void;
|
|
13
|
-
};
|