-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes most of the console warnings, fixes some eslint errors, gets ri…
…d of the formik and redux-form styleguidist sections in the UI
- Loading branch information
Showing
30 changed files
with
295 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
*In order to publish the changes, please do the following* | ||
- After PR merge, make a new build and generates prod code of the library | ||
|
||
```static | ||
```shell static | ||
npm run build-prod | ||
``` | ||
|
||
- Increase the library version in `package.json` | ||
|
||
- Regenerate the `package-lock.json` file | ||
|
||
```static | ||
```shell static | ||
npm i | ||
``` | ||
|
||
```static | ||
git add . | ||
```shell static | ||
git add . | ||
``` | ||
|
||
- Commit and Push changes | ||
```static | ||
```shell static | ||
git commit -m "bump version" | ||
``` | ||
|
||
- Publish the package to npm | ||
```static | ||
npm publish | ||
```shell static | ||
npm publish | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
form components docs (wip) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hooks docs (wip) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
useComponentSize docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,5 @@ const useComponentSize = (ref) => { | |
return ComponentSize; | ||
}; | ||
|
||
/** @component */ | ||
export default useComponentSize; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
useEventListener docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
useInterval docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
usePrevious docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ const usePrevious = (value) => { | |
return ref.current; | ||
}; | ||
|
||
/** @component */ | ||
export default usePrevious; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
useTimeout docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,5 @@ const useTimeout = (callback, delay) => { | |
[delay]); | ||
}; | ||
|
||
/** @component */ | ||
export default useTimeout; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
`debounce` "postpones" the execution of a callback after the specified amount of time in milliseconds. | ||
|
||
```js static | ||
debounce(callback, wait, immediate) | ||
``` | ||
|
||
If you type in the text input below its value will be logged to the console. | ||
|
||
```js | ||
import DebounceExample from './styleguidist-example'; | ||
|
||
const [wait, setWait] = React.useState(1000); | ||
<> | ||
<label> | ||
<span style={{ marginRight: '10px' }}>Wait:</span> | ||
<input type="text" value={wait} onChange={e => setWait(e.target.value)} /> | ||
</label> | ||
<DebounceExample wait={Number(wait)} /> | ||
</> | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
import debounce from './index'; | ||
|
||
function Debounce({ func, wait, immediate }) { | ||
const cbb = (e) => { | ||
console.log(`Debounced log after ${wait}ms:`, e.target.value); | ||
}; | ||
return ( | ||
<div> | ||
<label> | ||
<span style={{ marginRight: '10px' }}>Type here (logs to the console):</span> | ||
<input type="text" onChange={debounce(func ?? cbb, wait, immediate)} /> | ||
</label> | ||
</div> | ||
); | ||
} | ||
|
||
Debounce.propTypes = { | ||
func: PropTypes.func, | ||
wait: PropTypes.number, | ||
immediate: PropTypes.bool, | ||
}; | ||
|
||
export default Debounce; |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.