├── .eslintignore ├── index.html ├── scripts └── tsconfig.json ├── lerna.json ├── demo ├── main.ts ├── componentList.ts ├── App.tsx └── router.ts ├── src ├── utils │ ├── testingHelpers.ts │ ├── typeHelpers.ts │ └── dom.ts ├── useSize │ ├── __demo__ │ │ └── index.tsx │ └── index.ts ├── useToggle │ ├── __test__ │ │ └── index.spec.ts │ ├── __demo__ │ │ └── index.tsx │ └── index.ts ├── useReactiveRef │ ├── index.ts │ ├── __demo__ │ │ └── index.tsx │ └── __test__ │ │ └── index.spec.tsx ├── useClickAway │ ├── __demo__ │ │ └── index.tsx │ ├── index.ts │ └── __test__ │ │ └── index.spec.tsx ├── index.ts ├── useInViewport │ ├── __demo__ │ │ └── index.tsx │ ├── __test__ │ │ └── index.spec.tsx │ └── index.ts ├── useEventListener │ ├── __demo__ │ │ └── index.tsx │ ├── index.ts │ └── __test__ │ │ └── index.spec.tsx ├── useHover │ ├── __demo__ │ │ └── index.tsx │ ├── __tests__ │ │ └── index.spec.tsx │ └── index.ts ├── useDraggable │ ├── __demo__ │ │ └── index.tsx │ ├── index.ts │ └── __test__ │ │ └── index.spec.tsx ├── useScroll │ ├── index.ts │ ├── __test__ │ │ └── index.spec.tsx │ └── __demo__ │ │ └── index.tsx └── useForm │ ├── __demo__ │ └── index.tsx │ └── index.ts ├── .prettierrc ├── jest.config.js ├── README.md ├── typings └── some.d.ts ├── babel.config.js ├── tsconfig.json ├── .eslintrc.js ├── LICENSE ├── webpack.config.js ├── .gitignore └── package.json /.eslintignore: -------------------------------------------------------------------------------- 1 | *.js -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 |
2 | -------------------------------------------------------------------------------- /scripts/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonJS", 4 | } 5 | } -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "packages": [ 3 | "packages/*" 4 | ], 5 | "version": "0.0.0" 6 | } 7 | -------------------------------------------------------------------------------- /demo/main.ts: -------------------------------------------------------------------------------- 1 | import { createApp } from 'vue'; 2 | import App from './App'; 3 | import router from './router'; 4 | const app = createApp(App); 5 | app.use(router); 6 | app.mount('#app'); 7 | -------------------------------------------------------------------------------- /src/utils/testingHelpers.ts: -------------------------------------------------------------------------------- 1 | export function sleep(time: number): PromiseEffects:{_ctx.toggleRef.toString()}
17 |18 | 21 | 24 | 28 |
29 |