feat(inputs): ✨ Add Phone number input
This commit is contained in:
@ -6,6 +6,7 @@ export type InputStep =
|
||||
| EmailInputStep
|
||||
| UrlInputStep
|
||||
| DateInputStep
|
||||
| PhoneNumberInputStep
|
||||
|
||||
export enum InputStepType {
|
||||
TEXT = 'text input',
|
||||
@ -13,6 +14,7 @@ export enum InputStepType {
|
||||
EMAIL = 'email input',
|
||||
URL = 'url input',
|
||||
DATE = 'date input',
|
||||
PHONE = 'phone number input',
|
||||
}
|
||||
|
||||
export type TextInputStep = StepBase & {
|
||||
@ -40,6 +42,11 @@ export type DateInputStep = StepBase & {
|
||||
options?: DateInputOptions
|
||||
}
|
||||
|
||||
export type PhoneNumberInputStep = StepBase & {
|
||||
type: InputStepType.PHONE
|
||||
options?: InputOptionsBase
|
||||
}
|
||||
|
||||
export type DateInputOptions = {
|
||||
labels?: { button?: string; from?: string; to?: string }
|
||||
hasTime?: boolean
|
||||
|
Reference in New Issue
Block a user