108 Commits

Author SHA1 Message Date
Ward Oosterlijnck
5740a53f35 useLockBodyScroll 2019-03-26 11:20:42 +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
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
a92e9b203f
feat: add useScroll hook 2019-03-23 11:24:29 +01: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
Va Da
94bffc514d
docs: fix title in useWindowScroll docs 2019-03-23 08:24:30 +01:00
Ward Oosterlijnck
874e9a9ba5 useWindowScroll hook 2019-03-23 16:46:04 +11:00
streamich
2d644462e7 docs: ✏️ improve useCss docs 2019-03-22 20:57:52 +01:00
Luis Felipe Zaguini
7ca74e6aad
Create useUpdateEffect.md 2019-03-21 10:12:01 -03:00
Va Da
576cf42e3f
feat: add useAsyncRetry hook 2019-03-21 10:16:25 +01:00
lvl99
8b7d5ed3ac reverted useAsync and created new hook useAsyncRetry which leverages useAsync
added story and docs for useAsyncRetry
fixed up new code formatting to match project
2019-03-20 15:12:45 +01:00
Va Da
2390cafb6d
docs: fix useKeyPress link 2019-03-19 23:41:44 +01:00
Va Da
d1aebe0a90
Merge branch 'master' into pr/139 2019-03-19 22:50:02 +01:00
streamich
7cf90107e1 chore: 🤖 various improvements for useKeyPrssEvent()
add link to README, expose in index.ts, improve docs/demo, add Storybook
story
2019-03-19 22:47:12 +01:00
streamich
aad368ba67 feat: 🎸 add usePromise() hook 2019-03-15 15:14:00 +01:00
Parker McMullin
c3d49e230b Added useKeyPressEvent custom hook with associated doc. This focuses on utilizing the onKeyup and/or onKeydown events unlike useKeyPress which involves state. useKeyPressEvent uses useKeyPress to achieve this functionality. 2019-03-09 19:25:59 -07:00
chengruilin
4e2d639e13 fix: correct createMemo.md 2019-03-08 11:20:59 +08:00
Va Da
c75789bf96
docs: typo 2019-02-21 01:05:33 +01:00
Gavin Gregory
6655558ed9 docs(useKeyPress): renamed keyboardjs -> useKeyboardJS 2019-02-10 12:08:27 -05:00
Matheus Albuquerque
6a1933b8ed docs(useKeyPress): update samples and docs on how to use key combos 2018-12-26 04:04:08 -03:00
Matheus Albuquerque
01df885b9d feat: 🎸 add useKeyPress hook 2018-12-26 02:49:06 -03:00
James Ivings
91ff6ba376
feat: added useDebounce 2018-12-18 18:12:24 -05:00
streamich
533e26f832 feat: 🎸 remove experimental hooks
BREAKING CHANGE: useRenderProp and useAsync are removed
2018-12-17 18:34:56 +01:00
ZHAO Jinxiang
966af4aaee feat: use discriminated union in useAsync 2018-12-17 21:12:38 +08:00
Va Da
30cee86c39
docs: add note about the polyfill 2018-12-05 22:05:30 +01:00
streamich
dfb0510775 feat: 🎸 add useRefMounted hook 2018-12-05 15:23:43 +01:00
Fatih Kadir Akın
124ef993d9 feat: bump useWait 2018-11-10 23:32:44 +01:00
Fatih Kadir Akın
61c6058b5d feat: add useWait hook 2018-11-06 21:49:47 +01:00
Andrew Joslin
eca432a921 feat: add useSessionStorage hook
* Add useSessionStorage

* chore: uncomment session storage docs story
2018-11-06 21:45:57 +01:00
Va Da
58532f73e7
docs: remove ref from useAudio reference 2018-11-04 12:47:16 +01:00
Va Da
452e13ef82
docs: improve useSetState reference 2018-11-03 08:47:40 +01:00
Li Yan
bfd114a407 feat: allow useSetState setter to accept function
* make setState of useSetState accept function argument

* update storybook
2018-11-02 08:50:04 +01:00
Truong Hoang Dung
819bd5455a docs: fix typo on useLocalStorage's raw 2018-11-02 07:45:10 +01:00
Chris Parton
c8291b4ca9 Fix typo in useBattery.md 2018-10-31 12:29:15 +01:00
Va Da
f67740fbea
docs: use bullet list in useHover 2018-10-30 23:56:22 +01:00
Va Da
c0e41221b0
docs: fix useHover reference 2018-10-30 23:45:58 +01:00
Thomas Ankcorn
45331de6b8 docs: fix typo in useSpring 2018-10-30 23:38:58 +01:00
streamich
c2aee592af feat: 🎸 add useHoverDirty hook 2018-10-30 18:18:51 +01:00
streamich
73e05c7d59 docs: ✏️ add useLocalStorage docs 2018-10-30 17:56:04 +01:00
Va Da
c16859ffb9
docs: add warning to useRenderProp 2018-10-30 00:03:53 +01:00
Va Da
a731412d26
docs: add warning to useAdopt 2018-10-30 00:03:25 +01:00
streamich
91bee9a3c2 feat: 🎸 add useAdopt hook 2018-10-29 23:07:39 +01:00
streamich
2d85c61ba8 feat: 🎸 add useRenderProp hook 2018-10-29 22:45:09 +01:00
streamich
ead142c6fb feat: 🎸 add useCallbag hook 2018-10-29 22:07:54 +01:00
streamich
4e3021b8e2 docs: ✏️ fix typos in useOutsideClick docs 2018-10-29 21:50:28 +01:00
streamich
90d2c224f6 feat: 🎸 add useOutsideClick hook 2018-10-29 21:47:06 +01:00