Skip to content
This repository was archived by the owner on Nov 3, 2024. It is now read-only.

Commit 5ebdf88

Browse files
authored
Merge pull request #30 from drac94/feature/one-time-code
Add one-time-code support
2 parents 22042c8 + 99da972 commit 5ebdf88

File tree

8 files changed

+99
-45
lines changed

8 files changed

+99
-45
lines changed

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ const App = () => {
5353

5454
| Prop | Type | Description | Default Value | Observations |
5555
| :------------------- | :---------------------- | :------------------------------------------------------------------------------ | :------------- | :----------------------------- |
56-
| `allowedCharacters` | String | Regex for allowed characters | `^[A-Za-z0-9]` | |
56+
| `allowedCharacters` | String | Regex for allowed characters | `[A-Za-z0-9]+` | |
57+
| `ariaLabel` | String | Accessibility | | |
5758
| `characters` | Number | The number of inputs to display | 6 | |
5859
| `containerClassName` | String | The styles to be applied to the container | | |
5960
| `inputClassName` | String | The styles to be applied to each input | | |
@@ -65,6 +66,12 @@ const App = () => {
6566

6667
## Changelog
6768

69+
### 2.1.0
70+
71+
- Support to fill one-time-codes directly from SMS's.
72+
- Displays numeric keyboard on mobile devices when the `inputType` prop is set to `number`
73+
- Add `ariaLabel` prop for accessibility.
74+
6875
### 2.0.0
6976

7077
- Remove `inputStyle` prop in favor of `inputClassName`.

dist/index.js

+15-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.modern.js

+49-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)