-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26199 from software-mansion-labs/ts-migration/com…
…ponent-utils-lib [No QA] [TS migration] Migrate 'ComponentUtils' lib to TypeScript
- Loading branch information
Showing
5 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
import {AccessibilityRoleForm, NewPasswordAutocompleteType, PasswordAutocompleteType} from './types'; | ||
|
||
const PASSWORD_AUTOCOMPLETE_TYPE: PasswordAutocompleteType = 'password'; | ||
const NEW_PASSWORD_AUTOCOMPLETE_TYPE: NewPasswordAutocompleteType = 'password-new'; | ||
const ACCESSIBILITY_ROLE_FORM: AccessibilityRoleForm = 'none'; | ||
|
||
export {PASSWORD_AUTOCOMPLETE_TYPE, ACCESSIBILITY_ROLE_FORM, NEW_PASSWORD_AUTOCOMPLETE_TYPE}; |
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,10 @@ | ||
import {AccessibilityRoleForm, NewPasswordAutocompleteType, PasswordAutocompleteType} from './types'; | ||
|
||
/** | ||
* Web password field needs `current-password` as autocomplete type which is not supported on native | ||
*/ | ||
const PASSWORD_AUTOCOMPLETE_TYPE: PasswordAutocompleteType = 'current-password'; | ||
const NEW_PASSWORD_AUTOCOMPLETE_TYPE: NewPasswordAutocompleteType = 'new-password'; | ||
const ACCESSIBILITY_ROLE_FORM: AccessibilityRoleForm = 'form'; | ||
|
||
export {PASSWORD_AUTOCOMPLETE_TYPE, ACCESSIBILITY_ROLE_FORM, NEW_PASSWORD_AUTOCOMPLETE_TYPE}; |
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,5 @@ | ||
type PasswordAutocompleteType = 'current-password' | 'password'; | ||
type NewPasswordAutocompleteType = 'new-password' | 'password-new'; | ||
type AccessibilityRoleForm = 'form' | 'none'; | ||
|
||
export type {PasswordAutocompleteType, NewPasswordAutocompleteType, AccessibilityRoleForm}; |