Skip to content

Commit 4bc29c6

Browse files
Version Packages
1 parent 95ddb05 commit 4bc29c6

File tree

11 files changed

+95
-11
lines changed

11 files changed

+95
-11
lines changed

.changeset/angry-hotels-run.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/slimy-tigers-notice.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# reactjs-otp-input
2+
3+
## 2.0.8
4+
5+
### Patch Changes
6+
7+
- 064ce6f: update ci
8+
- 95ddb05: update github actions

dist/cjs/index.d.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import React from 'react';
2+
interface IOtpInput {
3+
className?: string;
4+
containerStyle?: React.CSSProperties | string;
5+
disabledStyle?: React.CSSProperties | string;
6+
errorStyle?: React.CSSProperties | string;
7+
focusStyle?: React.CSSProperties | string;
8+
inputStyle?: React.CSSProperties | string;
9+
hasErrored?: boolean;
10+
isDisabled?: boolean;
11+
isInputNum?: boolean;
12+
isInputSecure?: boolean;
13+
numInputs: number;
14+
onChange: (otp: string) => void;
15+
placeholder?: string;
16+
separator?: React.ReactNode | string;
17+
shouldAutoFocus?: boolean;
18+
value?: string;
19+
'data-testid'?: string;
20+
'data-cy'?: string;
21+
}
22+
export type OtpInputHandle = {
23+
focusInput: (index: number) => void;
24+
};
25+
declare const OtpInput: React.ForwardRefExoticComponent<IOtpInput & React.RefAttributes<OtpInputHandle>>;
26+
export { OtpInput };

dist/cjs/index.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/index.d.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import React from 'react';
2+
interface IOtpInput {
3+
className?: string;
4+
containerStyle?: React.CSSProperties | string;
5+
disabledStyle?: React.CSSProperties | string;
6+
errorStyle?: React.CSSProperties | string;
7+
focusStyle?: React.CSSProperties | string;
8+
inputStyle?: React.CSSProperties | string;
9+
hasErrored?: boolean;
10+
isDisabled?: boolean;
11+
isInputNum?: boolean;
12+
isInputSecure?: boolean;
13+
numInputs: number;
14+
onChange: (otp: string) => void;
15+
placeholder?: string;
16+
separator?: React.ReactNode | string;
17+
shouldAutoFocus?: boolean;
18+
value?: string;
19+
'data-testid'?: string;
20+
'data-cy'?: string;
21+
}
22+
export type OtpInputHandle = {
23+
focusInput: (index: number) => void;
24+
};
25+
declare const OtpInput: React.ForwardRefExoticComponent<IOtpInput & React.RefAttributes<OtpInputHandle>>;
26+
export { OtpInput };

dist/esm/index.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.d.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import React from 'react';
2+
3+
interface IOtpInput {
4+
className?: string;
5+
containerStyle?: React.CSSProperties | string;
6+
disabledStyle?: React.CSSProperties | string;
7+
errorStyle?: React.CSSProperties | string;
8+
focusStyle?: React.CSSProperties | string;
9+
inputStyle?: React.CSSProperties | string;
10+
hasErrored?: boolean;
11+
isDisabled?: boolean;
12+
isInputNum?: boolean;
13+
isInputSecure?: boolean;
14+
numInputs: number;
15+
onChange: (otp: string) => void;
16+
placeholder?: string;
17+
separator?: React.ReactNode | string;
18+
shouldAutoFocus?: boolean;
19+
value?: string;
20+
'data-testid'?: string;
21+
'data-cy'?: string;
22+
}
23+
type OtpInputHandle = {
24+
focusInput: (index: number) => void;
25+
};
26+
declare const OtpInput: React.ForwardRefExoticComponent<IOtpInput & React.RefAttributes<OtpInputHandle>>;
27+
28+
export { OtpInput, OtpInputHandle };

0 commit comments

Comments
 (0)