reykit 1.0.47 → 1.0.49
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/{type.d.ts → base.d.ts} +6 -0
- package/dist/components/Form.d.ts +2 -2
- package/dist/components/Toggle.d.ts +1 -1
- package/dist/components/index.d.ts +9 -0
- package/dist/index.d.ts +20 -21
- package/dist/index.js +785 -759
- package/dist/{request.d.ts → net.d.ts} +7 -1
- package/dist/re.d.ts +11 -0
- package/dist/react.d.ts +32 -0
- package/dist/{storage.d.ts → window.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/hook.d.ts +0 -32
- package/dist/index.css +0 -1
|
@@ -5,7 +5,7 @@ import { ComponentProps } from 'react';
|
|
|
5
5
|
* @param handleFormData - Handle submited form data.
|
|
6
6
|
* @param link - Access router link.
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
9
|
-
handleFormData?: (formData: FormData) => void
|
|
8
|
+
export declare function Form({ handleFormData, link, onSubmit, ...props }: {
|
|
9
|
+
handleFormData?: (formData: FormData) => void | Promise<void>;
|
|
10
10
|
link?: string;
|
|
11
11
|
} & ComponentProps<'form'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,7 +11,7 @@ import { ReactNode, ComponentProps } from 'react';
|
|
|
11
11
|
export declare function IconToggle({ openIcon, closeIcon, handleOpen, defaultOpen, rotate, className, onClick, ...props }: {
|
|
12
12
|
openIcon: ReactNode;
|
|
13
13
|
closeIcon: ReactNode;
|
|
14
|
-
handleOpen: (open: boolean) => void
|
|
14
|
+
handleOpen: (open: boolean) => void | Promise<void>;
|
|
15
15
|
defaultOpen?: boolean;
|
|
16
16
|
rotate?: boolean;
|
|
17
17
|
} & ComponentProps<'button'>): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import * as
|
|
1
|
+
/**
|
|
2
|
+
* @Time : 2026-03-11
|
|
3
|
+
* @Author : Rey
|
|
4
|
+
* @Contact : reyxbo@163.com
|
|
5
|
+
* @Explain : Main index file.
|
|
6
|
+
*/
|
|
7
|
+
import * as component from './components';
|
|
8
|
+
import * as base from './base';
|
|
9
|
+
import * as net from './net';
|
|
10
|
+
import * as re from './re';
|
|
11
|
+
import * as react from './react';
|
|
12
|
+
import * as tailwindcss from './tailwindcss';
|
|
13
|
+
import * as window from './window';
|
|
10
14
|
declare const _default: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
useIsMobile: typeof useIsMobile;
|
|
19
|
-
renderReact: typeof renderReact;
|
|
20
|
-
request: typeof request;
|
|
21
|
-
Storager: typeof Storager;
|
|
22
|
-
cn: typeof cn;
|
|
15
|
+
component: typeof component;
|
|
16
|
+
base: typeof base;
|
|
17
|
+
net: typeof net;
|
|
18
|
+
re: typeof re;
|
|
19
|
+
react: typeof react;
|
|
20
|
+
tailwindcss: typeof tailwindcss;
|
|
21
|
+
window: typeof window;
|
|
23
22
|
};
|
|
24
23
|
export default _default;
|