reykit 1.0.69 → 1.0.71

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.
@@ -5,7 +5,7 @@ type LoadingContextParams = {
5
5
  };
6
6
  export declare const LoadingContext: import('react').Context<LoadingContextParams | null>;
7
7
  /**
8
- * Loading component.
8
+ * Loading component of display rotate icon.
9
9
  */
10
10
  export declare function Loading({ children }: {
11
11
  children: ReactNode;
@@ -8,8 +8,12 @@
8
8
  * Hook of get loading component status parameters.
9
9
  *
10
10
  * @returns Status parameters.
11
+ * - `isLoading` : Loading status.
12
+ * - `setIsLoading` : Set loading status.
13
+ * - `withLoading` : Execute a function in the context.
11
14
  */
12
15
  export declare function useLoading(): {
16
+ withLoading: <T>(fn: () => T | Promise<T>) => Promise<T>;
13
17
  isLoading: boolean;
14
18
  setIsLoading: (value: boolean) => void;
15
19
  };
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ export { toast as notice } from 'sonner';
3
+ /**
4
+ * Top banner notice component.
5
+ */
6
+ export declare function Notice({ children }: {
7
+ children: ReactNode;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -8,4 +8,5 @@ export { CycleButton } from './Button';
8
8
  export { Form } from './Form';
9
9
  export { Loading } from './Loading/Loading';
10
10
  export { useLoading } from './Loading/uesLoading';
11
+ export { Notice, notice } from './Notice';
11
12
  export { IconToggle } from './Toggle';