reykit 1.0.75 → 1.0.77

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.
@@ -2,8 +2,8 @@ import { ReactNode, ComponentProps, MouseEvent } from 'react';
2
2
  /**
3
3
  * Button component of cycle display children.
4
4
  *
5
- * @param childrens - Children array.
6
- * @param handleCycle - Handle cycle.
5
+ * @param props.childrens - Children array.
6
+ * @param props.handleCycle - Handle cycle.
7
7
  */
8
8
  export declare function CycleButton({ childrens, handleCycle, onClick, ...props }: {
9
9
  childrens: ReactNode[];
@@ -2,8 +2,8 @@ import { ComponentProps } from 'react';
2
2
  /**
3
3
  * Form component of prevent access link.
4
4
  *
5
- * @param handleFormData - Handle submited form data.
6
- * @param link - Access router link.
5
+ * @param props.handleFormData - Handle submited form data.
6
+ * @param props.link - Access router link.
7
7
  */
8
8
  export declare function Form({ handleFormData, link, onSubmit, ...props }: {
9
9
  handleFormData?: (formData: FormData) => any | Promise<any>;
@@ -6,6 +6,8 @@ type LoadingContextParams = {
6
6
  export declare const LoadingContext: import('react').Context<LoadingContextParams | null>;
7
7
  /**
8
8
  * Loading component of display rotate icon.
9
+ *
10
+ * @param props.children - The node tree of the mounting context.
9
11
  */
10
12
  export declare function Loading({ children }: {
11
13
  children: ReactNode;
@@ -2,6 +2,8 @@ import { ReactNode } from 'react';
2
2
  export { toast as notice } from 'sonner';
3
3
  /**
4
4
  * Top banner notice component.
5
+ *
6
+ * @param props.children - The node tree of the mounting context.
5
7
  */
6
8
  export declare function Notice({ children }: {
7
9
  children: ReactNode;
@@ -2,12 +2,12 @@ import { ReactNode, ComponentProps } from 'react';
2
2
  /**
3
3
  * Toggle component of with icon.
4
4
  *
5
- * @param openIcon - Open icon.
6
- * @param closeIcon - Close icon.
7
- * @param handleOpen - Handle open.
8
- * @param defaultOpen - Default open state.
9
- * @param rotate - Whether rotate icon.
10
- * @param listenOpen - Switch icon for listening status value.
5
+ * @param props.openIcon - Open icon.
6
+ * @param props.closeIcon - Close icon.
7
+ * @param props.handleOpen - Handle open.
8
+ * @param props.defaultOpen - Default open state.
9
+ * @param props.rotate - Whether rotate icon.
10
+ * @param props.listenOpen - Switch icon for listening status value.
11
11
  */
12
12
  export declare function IconToggle({ openIcon, closeIcon, handleOpen, defaultOpen, rotate, listenOpen, className, onClick, ...props }: {
13
13
  openIcon: ReactNode;
package/dist/index.js CHANGED
@@ -28019,7 +28019,7 @@ const qA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28019
28019
  __proto__: null
28020
28020
  }, Symbol.toStringTag, { value: "Module" }));
28021
28021
  function* ES(g, U, j) {
28022
- if (j == 0) throw new Error('the parameter "step" cannot be 0');
28022
+ if (j === 0) throw new Error('the parameter "step" cannot be 0');
28023
28023
  let T;
28024
28024
  if (U === void 0 ? (T = 0, U = g) : T = g, j = j ?? 1, j > 0)
28025
28025
  for (let J = T; J < U; J += j)
@@ -28030,7 +28030,7 @@ function* ES(g, U, j) {
28030
28030
  }
28031
28031
  function GA(g, U, j) {
28032
28032
  let T;
28033
- return U == null ? T = ES(g) : T = ES(g, U, j), Array.from(T);
28033
+ return U === void 0 ? T = ES(g) : T = ES(g, U, j), Array.from(T);
28034
28034
  }
28035
28035
  const XA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28036
28036
  __proto__: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reykit",
3
- "version": "1.0.75",
3
+ "version": "1.0.77",
4
4
  "description": "Kit method set.",
5
5
  "author": "reyxbo",
6
6
  "keywords": [