@beyondcorp/beyond-ui 1.0.0

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/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # beyond-ui
2
+ # beyond-ui
@@ -0,0 +1,14 @@
1
+ declare const breakpoints: {
2
+ readonly sm: 640;
3
+ readonly md: 768;
4
+ readonly lg: 1024;
5
+ readonly xl: 1280;
6
+ readonly '2xl': 1536;
7
+ };
8
+ type Breakpoint = keyof typeof breakpoints;
9
+ export declare function useBreakpoint(): {
10
+ currentBreakpoint: "sm" | "md" | "lg" | "xl" | "2xl";
11
+ isAbove: (breakpoint: Breakpoint) => boolean;
12
+ isBelow: (breakpoint: Breakpoint) => boolean;
13
+ };
14
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare function useDarkMode(): {
2
+ isDarkMode: boolean;
3
+ toggle: () => void;
4
+ };
@@ -0,0 +1 @@
1
+ export declare function useDebounce<T>(value: T, delay: number): T;
@@ -0,0 +1 @@
1
+ export declare function useLocalStorage<T>(key: string, initialValue: T): [T, (value: T | ((val: T) => T)) => void, () => void];
@@ -0,0 +1 @@
1
+ export declare function useToggle(initialValue?: boolean): [boolean, () => void, (value: boolean) => void];