reykit 1.0.218 → 1.0.221

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.
@@ -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,11 @@ 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
+ * Buttom component of scroll to top. Initial hide, display after scrolling down more than 1 screen height.
18
+ *
19
+ * @param buttonColor - Button color, need hexadecimal color value.
20
+ */
21
+ export declare function ScrollToTopButton({ buttonColor, className, style, ...args }: {
22
+ buttonColor?: string;
23
+ } & ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,5 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode, ComponentProps } from 'react';
2
+ import { default as ReactMarkdown } from 'react-markdown';
2
3
  /**
3
4
  * Text component of with icon.
4
5
  *
@@ -15,9 +16,5 @@ export declare function IconText({ icon, text, hideMobileIcon, hideMobileText }:
15
16
  }): import("react/jsx-runtime").JSX.Element;
16
17
  /**
17
18
  * Text component of support Markdown.
18
- *
19
- * @param children - Markdown text.
20
19
  */
21
- export declare function MarkdownText({ children }: {
22
- children: string;
23
- }): import("react/jsx-runtime").JSX.Element;
20
+ export declare function MarkdownText({ ...args }: ComponentProps<typeof ReactMarkdown>): import("react/jsx-runtime").JSX.Element;
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "reykit",
3
- "version": "1.0.218",
3
+ "version": "1.0.221",
4
4
  "description": "Kit method set.",
5
5
  "author": "reyxbo",
6
6
  "keywords": [
@@ -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
- };