reykit 1.0.33 → 1.0.36
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/dist/hook.d.ts +8 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2743 -2759
- package/dist/style/shadcn.css +0 -2
- package/package.json +1 -1
- package/dist/component/Toggle.d.ts +0 -19
- package/dist/index.css +0 -1
package/dist/hook.d.ts
CHANGED
|
@@ -39,3 +39,11 @@ export declare function useCount(start?: number, step?: number, stop?: number, l
|
|
|
39
39
|
* @returns Returns a stateful index value, and a function to automatic count it.
|
|
40
40
|
*/
|
|
41
41
|
export declare function useIndex(array: any[], loop?: boolean): [number, () => void];
|
|
42
|
+
/**
|
|
43
|
+
* Whether is mobile.
|
|
44
|
+
*
|
|
45
|
+
* Returns
|
|
46
|
+
* -------
|
|
47
|
+
* @returns Judgement.
|
|
48
|
+
*/
|
|
49
|
+
export declare function useIsMobile(): boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { CycleButton } from './component/Button';
|
|
2
2
|
import { default as Form } from './component/Form';
|
|
3
|
-
import {
|
|
4
|
-
import { useOpen, useCount, useIndex } from './hook';
|
|
3
|
+
import { useOpen, useCount, useIndex, useIsMobile } from './hook';
|
|
5
4
|
import { renderReact } from './react';
|
|
6
5
|
import { default as Storager } from './storage';
|
|
7
6
|
import { cn } from './tailwindcss';
|
|
8
7
|
declare const _default: {
|
|
9
8
|
CycleButton: typeof CycleButton;
|
|
10
9
|
Form: typeof Form;
|
|
11
|
-
IconToggle: typeof IconToggle;
|
|
12
10
|
useOpen: typeof useOpen;
|
|
13
11
|
useCount: typeof useCount;
|
|
14
12
|
useIndex: typeof useIndex;
|
|
13
|
+
useIsMobile: typeof useIsMobile;
|
|
15
14
|
renderReact: typeof renderReact;
|
|
16
15
|
Storager: typeof Storager;
|
|
17
16
|
cn: typeof cn;
|