380 Commits

Author SHA1 Message Date
Ward Oosterlijnck
28b5bc97d4 useMouse whenHovered option 2019-03-26 11:20:42 +01:00
semantic-release-bot
f9c6dd9d94 chore(release): 5.16.0 [skip ci]
# [5.16.0](https://github.com/streamich/react-use/compare/v5.15.0...v5.16.0) (2019-03-25)

### Features

* more precise size for useMouse ([1761031](https://github.com/streamich/react-use/commit/1761031))
2019-03-26 11:20:42 +01:00
ShizukuIchi
b88707554f feat: more precise size for useMouse 2019-03-26 11:20:42 +01:00
Va Da
ec30e92283 docs: fix typo [skip ci] 2019-03-26 11:20:42 +01:00
semantic-release-bot
6051bc17d5 chore(release): 5.15.0 [skip ci]
# [5.15.0](https://github.com/streamich/react-use/compare/v5.14.0...v5.15.0) (2019-03-25)

### Features

* add useMouse hook ([17dfa8e](https://github.com/streamich/react-use/commit/17dfa8e))
2019-03-26 11:20:42 +01:00
Ward Oosterlijnck
8bf149794b useScroll cancel animation frame in handler 2019-03-26 11:20:42 +01:00
Ward Oosterlijnck
2fd1d673e0 remove event listener + cancel animation frame in handler 2019-03-26 11:20:42 +01:00
Ward Oosterlijnck
e8b43ea95c useMouse hook 2019-03-26 11:20:42 +01:00
Renovate Bot
74cbb1eaca chore(deps): update storybook monorepo to v5.0.5 2019-03-26 11:20:42 +01:00
semantic-release-bot
c10bc5d946 chore(release): 5.14.0 [skip ci]
# [5.14.0](https://github.com/streamich/react-use/compare/v5.13.0...v5.14.0) (2019-03-24)

### Features

* 🎸 keep global state of all useLockBodyScroll hooks ([9bb7047](https://github.com/streamich/react-use/commit/9bb7047))
* add useLockBodyScroll hook ([d990db4](https://github.com/streamich/react-use/commit/d990db4))
2019-03-26 11:20:42 +01:00
streamich
5dd10e91ee feat: 🎸 keep global state of all useLockBodyScroll hooks
This change will keep document body locked as long as at least one hook
is enabled on the page. Maybe it makes sense to generalize this logic
for other side-effect hooks. One such hook could be useBlurBody that
blurs page - useful for modals and overlays.
2019-03-26 11:20:42 +01:00
Renovate Bot
30ee224bce chore(deps): update storybook monorepo to v5.0.4 2019-03-26 11:20:42 +01:00
Ward Oosterlijnck
f814fd216b Added useLockBodyScroll to README 2019-03-26 11:20:42 +01:00
Ward Oosterlijnck
5740a53f35 useLockBodyScroll 2019-03-26 11:20:42 +01:00
Ward Oosterlijnck
7a6b7a249f docs: typo in README 2019-03-26 11:20:42 +01:00
streamich
f1f36dc4b1 fix: 🐛 bump nano-css
 Closes: #90
2019-03-26 10:23:26 +01:00
streamich
c947ef1c91 chore: 🤖 remove use-onclickoutside dependency 2019-03-25 13:56:57 +01:00
streamich
a03143a46f feat: 🎸 implement useClickAway, remove useOutsideClick
This re-implements outside click hook functionality from scratch,
removes dependency on use-onoutsideclick package.

BREAKING CHANGE: 🧨 useOutsideClick is now useClickAway
2019-03-25 13:52:52 +01:00
streamich
428876ab34 chore: 🤖 move useCss hook under UI section
Also remove remainders of useCallbag hook.
2019-03-25 13:23:49 +01:00
streamich
61700675cd chore: 🤖 don't install only large dependencies
This change removes useCallbag hook, it also reverts back changes for
hooks that only have tiny dependencies or dependencies that could have
been part of the hook itself. Effectivly only KeyboardJS and Rebound are
large packages that only partially are used by react-use, hence require
user to install them separately.

BREAKING CHANGE: 🧨 useCallbag hook is removed, some hooks KeyboardJS and Rebound installed
separately
2019-03-25 13:19:37 +01:00
streamich
3d0a82f4ac chore: 🤖 revert these, bcs semantic-release manges those files 2019-03-25 13:06:07 +01:00
Charles Crete
b8e8b3073a Fixed typo 2019-03-23 15:30:43 -04:00
Charles Crete
7be31a4a1d Remove dependencies 2019-03-23 15:28:45 -04:00
Va Da
c5ecf74107
docs: remove loose line break in README 2019-03-23 11:26:24 +01:00
semantic-release-bot
5fb3b05375 chore(release): 5.13.0 [skip ci]
# [5.13.0](https://github.com/streamich/react-use/compare/v5.12.1...v5.13.0) (2019-03-23)

### Features

* add useScroll hook ([a92e9b2](https://github.com/streamich/react-use/commit/a92e9b2))
v5.13.0
2019-03-23 10:26:14 +00:00
Va Da
a92e9b203f
feat: add useScroll hook 2019-03-23 11:24:29 +01:00
Ward Oosterlijnck
584bd7e618 cancel animation frame on un-mount 2019-03-23 20:00:43 +11:00
Ward Oosterlijnck
71eb416953 useWindowScroll doc typos 2019-03-23 19:56:49 +11:00
Ward Oosterlijnck
c75f997f8e useScroll hook 2019-03-23 19:48:38 +11:00
semantic-release-bot
e49a50779e chore(release): 5.12.1 [skip ci]
## [5.12.1](https://github.com/streamich/react-use/compare/v5.12.0...v5.12.1) (2019-03-23)

### Bug Fixes

* 🐛 cancel animation frame on un-mount in useWindowScroll() ([bc021ce](https://github.com/streamich/react-use/commit/bc021ce))
v5.12.1
2019-03-23 07:43:22 +00:00
Va Da
dd14833939
Merge pull request #159 from streamich/fix-window-scroll
fix: 🐛 cancel animation frame on un-mount in useWindowScroll()
2019-03-23 08:42:01 +01:00
streamich
bc021ce550 fix: 🐛 cancel animation frame on un-mount in useWindowScroll() 2019-03-23 08:40:31 +01:00
Va Da
94bffc514d
docs: fix title in useWindowScroll docs 2019-03-23 08:24:30 +01:00
semantic-release-bot
7aa279808c chore(release): 5.12.0 [skip ci]
# [5.12.0](https://github.com/streamich/react-use/compare/v5.11.0...v5.12.0) (2019-03-23)

### Features

* add useWindowScroll hook ([076d0de](https://github.com/streamich/react-use/commit/076d0de))
v5.12.0
2019-03-23 06:58:49 +00:00
Va Da
076d0def41
feat: add useWindowScroll hook 2019-03-23 07:57:36 +01:00
Ward Oosterlijnck
2fd08f8335 Added readme 2019-03-23 16:49:22 +11:00
Ward Oosterlijnck
874e9a9ba5 useWindowScroll hook 2019-03-23 16:46:04 +11:00
semantic-release-bot
3e50e8111a chore(release): 5.11.0 [skip ci]
# [5.11.0](https://github.com/streamich/react-use/compare/v5.10.0...v5.11.0) (2019-03-22)

### Features

* 🎸 refresh useCss hook ([0116cc9](https://github.com/streamich/react-use/commit/0116cc9))
v5.11.0
2019-03-22 19:59:58 +00:00
Va Da
1c43bc4f87
Merge pull request #157 from streamich/useCss
feat: 🎸 refresh useCss hook
2019-03-22 20:58:20 +01:00
streamich
2d644462e7 docs: ✏️ improve useCss docs 2019-03-22 20:57:52 +01:00
streamich
0116cc9fed feat: 🎸 refresh useCss hook 2019-03-22 20:51:06 +01:00
semantic-release-bot
19ac56f44a chore(release): 5.10.0 [skip ci]
# [5.10.0](https://github.com/streamich/react-use/compare/v5.9.0...v5.10.0) (2019-03-21)

### Features

* add useUpdateEffect hook ([c2afd23](https://github.com/streamich/react-use/commit/c2afd23))
v5.10.0
2019-03-21 13:47:12 +00:00
Va Da
c2afd23587
feat: add useUpdateEffect hook 2019-03-21 14:45:47 +01:00
Luis Felipe Zaguini
26953f12cf
Create useUpdateEffect.story.tsx 2019-03-21 10:20:36 -03:00
Luis Felipe Zaguini
257d8c074a
Update README.md 2019-03-21 10:15:42 -03:00
Luis Felipe Zaguini
d7f9ee4cb3
Update index.ts 2019-03-21 10:14:31 -03:00
Luis Felipe Zaguini
7ca74e6aad
Create useUpdateEffect.md 2019-03-21 10:12:01 -03:00
Luis Felipe Zaguini
27e4444dd3
Create useUpdateEffect.ts 2019-03-21 10:07:41 -03:00
semantic-release-bot
c8f3198213 chore(release): 5.9.0 [skip ci]
# [5.9.0](https://github.com/streamich/react-use/compare/v5.8.1...v5.9.0) (2019-03-21)

### Features

* add useAsyncRetry hook ([576cf42](https://github.com/streamich/react-use/commit/576cf42))

### Performance Improvements

* remove asyn/await wrapper ([8e3de1c](https://github.com/streamich/react-use/commit/8e3de1c))
v5.9.0
2019-03-21 09:18:57 +00:00
Va Da
b77f6bb06a
docs: add useAsyncRetry 2019-03-21 10:17:23 +01:00