streamich
0f0d7fbef4
chore: 🤖 merge useFullscreen
2019-03-28 21:03:04 +01:00
streamich
f4fd748d45
feat: 🎸 add createRenderProp function for creating render-props
2019-03-28 19:52:33 +01:00
streamich
aa277b805c
feat: 🎸 return events from useKeyboardJs hook
2019-03-28 19:35:00 +01:00
streamich
c0658f605f
feat: 🎸 refactor useKeyPressEvent hook
...
Changes its interface, fixes bug of calling callback on initial mount,
useKeyPress hook is injected as dependency and can be overwirtten to
useKeyboardJs.
BREAKING CHANGE: 🧨 useKeyPressEvent hook modified for dependency injection and providing
event objects to user
2019-03-28 19:28:19 +01:00
streamich
3516aa69a9
feat: 🎸 add useKeyboardJs hook
2019-03-28 18:59:09 +01:00
streamich
d5de21285c
docs: ✏️ add useKey and useKeyPress documentation
2019-03-28 18:07:54 +01:00
streamich
2a13cfbf68
feat: 🎸 add useEvent hook
2019-03-28 16:02:56 +01:00
Ward Oosterlijnck
bf302bd5e7
useFullscreen added to readme
2019-03-28 23:49:42 +11:00
Ward Oosterlijnck
0971a7e6b2
useFullscreen
2019-03-28 23:34:32 +11:00
streamich
676d0ded3e
feat: 🎸 add useDropArea hook
2019-03-27 23:05:46 +01:00
streamich
0ccdf9531e
feat: 🎸 add useThrottleFn hook that throttles function
...
This hook used to be called useThrottle, but it also was re-implemented.
2019-03-27 22:22:27 +01:00
streamich
452e8d9425
feat: 🎸 simplify and improve useThrottle hook
...
Create a version of the hook that simply throttled a value, hook that
throttles a function will be called useThrottleFn.
BREAKING CHANGE: 🧨 useThrottle is now a completely different hook
2019-03-27 21:10:57 +01:00
streamich
6b487c0e65
docs: ✏️ add useDrop hook reference
2019-03-27 20:05:59 +01:00
streamich
33ac91b775
feat: 🎸 add usePageLeave hook
2019-03-27 19:19:39 +01:00
Va Da
c9d7b5210a
Merge branch 'master' into useThrottle
2019-03-26 11:48:58 +01:00
Va Da
931220239e
docs: fix typo in useMouse [skip ci]
2019-03-26 11:31:17 +01:00
streamich
b5c7aecfa6
docs: ✏️ add useMouseHovered docs
2019-03-26 11:20:42 +01:00
Va Da
ec30e92283
docs: fix typo [skip ci]
2019-03-26 11:20:42 +01:00
Ward Oosterlijnck
e8b43ea95c
useMouse hook
2019-03-26 11:20:42 +01:00
Ward Oosterlijnck
5740a53f35
useLockBodyScroll
2019-03-26 11:20:42 +01:00
Ward Oosterlijnck
a4f0197161
Add debounced value to demo and docs
2019-03-26 20:08:35 +11:00
Ward Oosterlijnck
6d3641e04c
Added to README + typo fix
2019-03-26 20:01:03 +11:00
Ward Oosterlijnck
e6f179d682
useThrottle
2019-03-26 20:00:37 +11:00
Va Da
91dee9351c
docs: fix typo [skip ci]
2019-03-25 14:05:26 +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
Ward Oosterlijnck
8e2f342f5a
useMouse hook
2019-03-25 22:18:35 +11:00
Ward Oosterlijnck
0754bce76e
useLockBodyScroll
2019-03-24 10:27:38 +11: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