reykit 1.0.49 → 1.0.50

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.
@@ -7,7 +7,7 @@ import { ReactNode, ComponentProps, MouseEvent } from 'react';
7
7
  */
8
8
  export declare function CycleButton({ childrens, handleCycle, onClick, ...props }: {
9
9
  childrens: ReactNode[];
10
- handleCycle: (index: number) => void;
10
+ handleCycle: (index: number) => any | Promise<any>;
11
11
  data: {
12
12
  children: ReactNode;
13
13
  handleClick: (event: MouseEvent<HTMLButtonElement>) => void;
@@ -6,6 +6,6 @@ import { ComponentProps } from 'react';
6
6
  * @param link - Access router link.
7
7
  */
8
8
  export declare function Form({ handleFormData, link, onSubmit, ...props }: {
9
- handleFormData?: (formData: FormData) => void | Promise<void>;
9
+ handleFormData?: (formData: FormData) => any | Promise<any>;
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 | Promise<void>;
14
+ handleOpen: (open: boolean) => any | Promise<any>;
15
15
  defaultOpen?: boolean;
16
16
  rotate?: boolean;
17
17
  } & ComponentProps<'button'>): import("react/jsx-runtime").JSX.Element;
package/dist/index.js CHANGED
@@ -27525,8 +27525,8 @@ function DE({
27525
27525
  onClick: W,
27526
27526
  ...R
27527
27527
  }) {
27528
- const [Tt, jt] = X2(Z), le = (L) => {
27529
- W && W(L), I(Tt), jt();
27528
+ const [Tt, jt] = X2(Z), le = async (L) => {
27529
+ W && W(L), await I(Tt), jt();
27530
27530
  };
27531
27531
  return /* @__PURE__ */ op.jsx("button", { onClick: le, ...R, children: Z[Tt] });
27532
27532
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reykit",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "Kit method set.",
5
5
  "author": "reyxbo",
6
6
  "keywords": [