reykit 1.0.46 → 1.0.48
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.
|
@@ -6,6 +6,6 @@ import { ComponentProps } from 'react';
|
|
|
6
6
|
* @param link - Access router link.
|
|
7
7
|
*/
|
|
8
8
|
export default function Form({ handleFormData, link, onSubmit, ...props }: {
|
|
9
|
-
handleFormData?: (formData: FormData) => void
|
|
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.js
CHANGED
|
@@ -308,10 +308,10 @@ function gE({
|
|
|
308
308
|
...R
|
|
309
309
|
}) {
|
|
310
310
|
const Tt = sE();
|
|
311
|
-
let jt = (le) => {
|
|
311
|
+
let jt = async (le) => {
|
|
312
312
|
if (le.preventDefault(), W && W(le), Z) {
|
|
313
313
|
const L = new FormData(le.currentTarget);
|
|
314
|
-
Z(L);
|
|
314
|
+
await Z(L);
|
|
315
315
|
}
|
|
316
316
|
I && Tt(I);
|
|
317
317
|
};
|
|
@@ -330,8 +330,8 @@ function SE({
|
|
|
330
330
|
onClick: le,
|
|
331
331
|
...L
|
|
332
332
|
}) {
|
|
333
|
-
const [se, il] = Y2(R), La = (ft) => {
|
|
334
|
-
le && le(ft), W(se), il();
|
|
333
|
+
const [se, il] = Y2(R), La = async (ft) => {
|
|
334
|
+
le && le(ft), await W(se), il();
|
|
335
335
|
};
|
|
336
336
|
return /* @__PURE__ */ op.jsxs(
|
|
337
337
|
"button",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reykit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.48",
|
|
4
4
|
"description": "Kit method set.",
|
|
5
5
|
"author": "reyxbo",
|
|
6
6
|
"keywords": [
|
|
@@ -22,9 +22,10 @@
|
|
|
22
22
|
"main": "./dist/index.js",
|
|
23
23
|
"types": "./dist/index.d.ts",
|
|
24
24
|
"exports": {
|
|
25
|
-
".": "./dist/index.js",
|
|
26
|
-
"./
|
|
27
|
-
"./
|
|
25
|
+
".": {"default": "./dist/index.js"},
|
|
26
|
+
"./base": {"style": "./dist/index.css"},
|
|
27
|
+
"./debug": {"style": "./dist/style/debug.css"},
|
|
28
|
+
"./shadcn": {"style": "./dist/style/shadcn.css"},
|
|
28
29
|
"./*": "./dist/*"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|