-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: revert deletion of
TUI_PHONE_MASK
- Loading branch information
1 parent
daca59b
commit 6c7219a
Showing
2 changed files
with
28 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import {MaskitoOptions} from '@maskito/core'; | ||
import {CHAR_HYPHEN, CHAR_PLUS} from '@taiga-ui/cdk'; | ||
import {TUI_DIGIT_REGEXP} from '@taiga-ui/core'; | ||
|
||
/** | ||
* TODO: move to proprietary package in v4.0 | ||
*/ | ||
export const TUI_PHONE_MASK: MaskitoOptions = { | ||
mask: [ | ||
CHAR_PLUS, | ||
'7', | ||
' ', | ||
TUI_DIGIT_REGEXP, | ||
TUI_DIGIT_REGEXP, | ||
TUI_DIGIT_REGEXP, | ||
' ', | ||
TUI_DIGIT_REGEXP, | ||
TUI_DIGIT_REGEXP, | ||
TUI_DIGIT_REGEXP, | ||
CHAR_HYPHEN, | ||
TUI_DIGIT_REGEXP, | ||
TUI_DIGIT_REGEXP, | ||
CHAR_HYPHEN, | ||
TUI_DIGIT_REGEXP, | ||
TUI_DIGIT_REGEXP, | ||
], | ||
}; |