@terreno/ui 57.19.2 → 57.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ai/guidelines/core.md +1 -1
- package/CHANGELOG.md +443 -0
- package/dist/Accordion.d.ts.map +1 -1
- package/dist/Accordion.js +3 -3
- package/dist/Accordion.js.map +1 -1
- package/dist/Avatar.d.ts.map +1 -1
- package/dist/Avatar.js +3 -1
- package/dist/Avatar.js.map +1 -1
- package/dist/Box.d.ts.map +1 -1
- package/dist/Box.js +38 -2
- package/dist/Box.js.map +1 -1
- package/dist/Card.js +2 -2
- package/dist/Card.js.map +1 -1
- package/dist/Common.d.ts +175 -34
- package/dist/Common.d.ts.map +1 -1
- package/dist/Common.js.map +1 -1
- package/dist/ConsentFormScreen.d.ts +1 -1
- package/dist/ConsentFormScreen.d.ts.map +1 -1
- package/dist/ConsentFormScreen.js +13 -4
- package/dist/ConsentFormScreen.js.map +1 -1
- package/dist/DateTimeField.d.ts.map +1 -1
- package/dist/DateTimeField.js +11 -9
- package/dist/DateTimeField.js.map +1 -1
- package/dist/Field.d.ts.map +1 -1
- package/dist/Field.js +2 -0
- package/dist/Field.js.map +1 -1
- package/dist/FormContainer.d.ts +68 -0
- package/dist/FormContainer.d.ts.map +1 -0
- package/dist/FormContainer.js +79 -0
- package/dist/FormContainer.js.map +1 -0
- package/dist/GPTChat.d.ts.map +1 -1
- package/dist/GPTChat.js +2 -1
- package/dist/GPTChat.js.map +1 -1
- package/dist/Heading.d.ts +1 -1
- package/dist/Heading.d.ts.map +1 -1
- package/dist/Heading.js +5 -2
- package/dist/Heading.js.map +1 -1
- package/dist/HeightField.js +8 -8
- package/dist/HeightField.js.map +1 -1
- package/dist/Icon.d.ts +4 -0
- package/dist/Icon.d.ts.map +1 -1
- package/dist/Icon.js +43 -2
- package/dist/Icon.js.map +1 -1
- package/dist/LabeledCheckBox.d.ts +22 -0
- package/dist/LabeledCheckBox.d.ts.map +1 -0
- package/dist/LabeledCheckBox.js +30 -0
- package/dist/LabeledCheckBox.js.map +1 -0
- package/dist/ListDetailLayout.d.ts +36 -0
- package/dist/ListDetailLayout.d.ts.map +1 -0
- package/dist/ListDetailLayout.js +153 -0
- package/dist/ListDetailLayout.js.map +1 -0
- package/dist/MarkdownEditor.d.ts.map +1 -1
- package/dist/MarkdownEditor.js +2 -1
- package/dist/MarkdownEditor.js.map +1 -1
- package/dist/MediaQuery.d.ts +1 -1
- package/dist/MediaQuery.d.ts.map +1 -1
- package/dist/MediaQuery.js +1 -1
- package/dist/MediaQuery.js.map +1 -1
- package/dist/OtpField.d.ts +60 -0
- package/dist/OtpField.d.ts.map +1 -0
- package/dist/OtpField.js +154 -0
- package/dist/OtpField.js.map +1 -0
- package/dist/PickerSelect.js +9 -9
- package/dist/PickerSelect.js.map +1 -1
- package/dist/ProvisionalConsentSigner.d.ts +21 -0
- package/dist/ProvisionalConsentSigner.d.ts.map +1 -0
- package/dist/ProvisionalConsentSigner.js +199 -0
- package/dist/ProvisionalConsentSigner.js.map +1 -0
- package/dist/ResponsiveBreakpoint.d.ts +5 -0
- package/dist/ResponsiveBreakpoint.d.ts.map +1 -1
- package/dist/ResponsiveBreakpoint.js +7 -0
- package/dist/ResponsiveBreakpoint.js.map +1 -1
- package/dist/SocialLoginButton.d.ts +10 -0
- package/dist/SocialLoginButton.d.ts.map +1 -1
- package/dist/SocialLoginButton.js +26 -8
- package/dist/SocialLoginButton.js.map +1 -1
- package/dist/SplitPage.d.ts +11 -0
- package/dist/SplitPage.d.ts.map +1 -1
- package/dist/SplitPage.js +11 -5
- package/dist/SplitPage.js.map +1 -1
- package/dist/SplitPage.native.d.ts.map +1 -1
- package/dist/SplitPage.native.js +3 -1
- package/dist/SplitPage.native.js.map +1 -1
- package/dist/SyncStatusBanner.d.ts +7 -1
- package/dist/SyncStatusBanner.d.ts.map +1 -1
- package/dist/SyncStatusBanner.js +20 -4
- package/dist/SyncStatusBanner.js.map +1 -1
- package/dist/TapToEdit.d.ts +1 -1
- package/dist/TapToEdit.d.ts.map +1 -1
- package/dist/TapToEdit.js.map +1 -1
- package/dist/TextField.d.ts.map +1 -1
- package/dist/TextField.js +48 -14
- package/dist/TextField.js.map +1 -1
- package/dist/Theme.d.ts.map +1 -1
- package/dist/Theme.js +16 -0
- package/dist/Theme.js.map +1 -1
- package/dist/fieldElements/FieldError.d.ts.map +1 -1
- package/dist/fieldElements/FieldError.js +1 -1
- package/dist/fieldElements/FieldError.js.map +1 -1
- package/dist/index.d.ts +19 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/lazyBoundaries/heavyOptionalExports.d.ts +3 -0
- package/dist/lazyBoundaries/heavyOptionalExports.d.ts.map +1 -1
- package/dist/lazyBoundaries/heavyOptionalExports.js +2 -0
- package/dist/lazyBoundaries/heavyOptionalExports.js.map +1 -1
- package/dist/login/LastUsedBadge.d.ts +14 -0
- package/dist/login/LastUsedBadge.d.ts.map +1 -0
- package/dist/login/LastUsedBadge.js +23 -0
- package/dist/login/LastUsedBadge.js.map +1 -0
- package/dist/login/LoginAccountCard.d.ts +38 -0
- package/dist/login/LoginAccountCard.d.ts.map +1 -0
- package/dist/login/LoginAccountCard.js +72 -0
- package/dist/login/LoginAccountCard.js.map +1 -0
- package/dist/login/LoginAccountList.d.ts +33 -0
- package/dist/login/LoginAccountList.d.ts.map +1 -0
- package/dist/login/LoginAccountList.js +30 -0
- package/dist/login/LoginAccountList.js.map +1 -0
- package/dist/login/LoginScreen.d.ts +4 -4
- package/dist/login/LoginScreen.d.ts.map +1 -1
- package/dist/login/LoginScreen.js +294 -13
- package/dist/login/LoginScreen.js.map +1 -1
- package/dist/login/OutlinePill.d.ts +28 -0
- package/dist/login/OutlinePill.d.ts.map +1 -0
- package/dist/login/OutlinePill.js +48 -0
- package/dist/login/OutlinePill.js.map +1 -0
- package/dist/login/TwoFactorChallengeScreen.d.ts +26 -0
- package/dist/login/TwoFactorChallengeScreen.d.ts.map +1 -0
- package/dist/login/TwoFactorChallengeScreen.js +139 -0
- package/dist/login/TwoFactorChallengeScreen.js.map +1 -0
- package/dist/login/loginMethods.d.ts +27 -0
- package/dist/login/loginMethods.d.ts.map +1 -0
- package/dist/login/loginMethods.js +37 -0
- package/dist/login/loginMethods.js.map +1 -0
- package/dist/login/loginTypes.d.ts +202 -5
- package/dist/login/loginTypes.d.ts.map +1 -1
- package/dist/pdfHtmlTemplate.d.ts +17 -0
- package/dist/pdfHtmlTemplate.d.ts.map +1 -1
- package/dist/pdfHtmlTemplate.js +78 -0
- package/dist/pdfHtmlTemplate.js.map +1 -1
- package/dist/security/AccountSecurityScreen.d.ts +10 -0
- package/dist/security/AccountSecurityScreen.d.ts.map +1 -0
- package/dist/security/AccountSecurityScreen.js +50 -0
- package/dist/security/AccountSecurityScreen.js.map +1 -0
- package/dist/security/LinkedAccountsCard.d.ts +32 -0
- package/dist/security/LinkedAccountsCard.d.ts.map +1 -0
- package/dist/security/LinkedAccountsCard.js +145 -0
- package/dist/security/LinkedAccountsCard.js.map +1 -0
- package/dist/security/PasskeysCard.d.ts +39 -0
- package/dist/security/PasskeysCard.d.ts.map +1 -0
- package/dist/security/PasskeysCard.js +168 -0
- package/dist/security/PasskeysCard.js.map +1 -0
- package/dist/security/PasswordCard.d.ts +32 -0
- package/dist/security/PasswordCard.d.ts.map +1 -0
- package/dist/security/PasswordCard.js +198 -0
- package/dist/security/PasswordCard.js.map +1 -0
- package/dist/security/SessionsCard.d.ts +39 -0
- package/dist/security/SessionsCard.d.ts.map +1 -0
- package/dist/security/SessionsCard.js +168 -0
- package/dist/security/SessionsCard.js.map +1 -0
- package/dist/security/TwoFactorSettingsCard.d.ts +55 -0
- package/dist/security/TwoFactorSettingsCard.d.ts.map +1 -0
- package/dist/security/TwoFactorSettingsCard.js +458 -0
- package/dist/security/TwoFactorSettingsCard.js.map +1 -0
- package/dist/security/securityMethods.d.ts +40 -0
- package/dist/security/securityMethods.d.ts.map +1 -0
- package/dist/security/securityMethods.js +66 -0
- package/dist/security/securityMethods.js.map +1 -0
- package/dist/security/securityTypes.d.ts +467 -0
- package/dist/security/securityTypes.d.ts.map +1 -0
- package/dist/security/securityTypes.js +2 -0
- package/dist/security/securityTypes.js.map +1 -0
- package/dist/security/userAgent.d.ts +26 -0
- package/dist/security/userAgent.d.ts.map +1 -0
- package/dist/security/userAgent.js +80 -0
- package/dist/security/userAgent.js.map +1 -0
- package/dist/signUp/OAuthButtons.d.ts +28 -5
- package/dist/signUp/OAuthButtons.d.ts.map +1 -1
- package/dist/signUp/OAuthButtons.js +44 -5
- package/dist/signUp/OAuthButtons.js.map +1 -1
- package/dist/signUp/SignUpScreen.d.ts.map +1 -1
- package/dist/signUp/SignUpScreen.js +50 -5
- package/dist/signUp/SignUpScreen.js.map +1 -1
- package/dist/signUp/signUpTypes.d.ts +21 -1
- package/dist/signUp/signUpTypes.d.ts.map +1 -1
- package/dist/useConsentForms.d.ts +9 -0
- package/dist/useConsentForms.d.ts.map +1 -1
- package/dist/useConsentForms.js +18 -0
- package/dist/useConsentForms.js.map +1 -1
- package/dist/useProvisionalConsent.d.ts +124 -0
- package/dist/useProvisionalConsent.d.ts.map +1 -0
- package/dist/useProvisionalConsent.js +79 -0
- package/dist/useProvisionalConsent.js.map +1 -0
- package/package.json +5 -2
- package/src/Accordion.test.tsx +5 -0
- package/src/Accordion.tsx +3 -8
- package/src/ActionSheet.test.tsx +13 -13
- package/src/AddressField.test.tsx +9 -3
- package/src/AnnouncementNavigator.test.tsx +4 -4
- package/src/AreaChart.test.tsx +15 -0
- package/src/Avatar.test.tsx +8 -0
- package/src/Avatar.tsx +2 -0
- package/src/Badge.test.tsx +1 -1
- package/src/Banner.test.tsx +0 -1
- package/src/BarChart.test.tsx +15 -0
- package/src/Box.test.tsx +143 -75
- package/src/Box.tsx +44 -2
- package/src/Button.test.tsx +11 -6
- package/src/Card.test.tsx +2 -2
- package/src/Card.tsx +2 -2
- package/src/Common.ts +194 -36
- package/src/ConflictSheet.test.tsx +5 -5
- package/src/ConsentFormScreen.test.tsx +87 -1
- package/src/ConsentFormScreen.tsx +28 -4
- package/src/ConsentNavigator.test.tsx +1 -2
- package/src/CustomSelectField.test.tsx +16 -4
- package/src/DataTable.test.tsx +4 -4
- package/src/DataTableVirtualizationRegression.test.tsx +1 -0
- package/src/DateTimeActionSheet.test.tsx +2 -0
- package/src/DateTimeField.test.tsx +3 -12
- package/src/DateTimeField.tsx +11 -9
- package/src/DismissButton.test.tsx +22 -4
- package/src/DonutChart.test.tsx +15 -0
- package/src/EmailField.test.tsx +13 -22
- package/src/EmojiSelector.test.tsx +2 -2
- package/src/ErrorBoundary.test.tsx +5 -3
- package/src/Field.test.tsx +20 -44
- package/src/Field.tsx +2 -0
- package/src/FilePickerButton.test.tsx +35 -0
- package/src/FormContainer.test.tsx +242 -0
- package/src/FormContainer.tsx +177 -0
- package/src/GPTChat.test.tsx +40 -16
- package/src/GPTChat.tsx +8 -2
- package/src/Heading.test.tsx +15 -1
- package/src/Heading.tsx +6 -1
- package/src/HeightField.tsx +8 -8
- package/src/Icon.test.tsx +54 -3
- package/src/Icon.tsx +92 -3
- package/src/IconButton.test.tsx +85 -0
- package/src/Image.test.tsx +1 -1
- package/src/LabeledCheckBox.test.tsx +45 -0
- package/src/LabeledCheckBox.tsx +89 -0
- package/src/Link.test.tsx +11 -4
- package/src/ListDetailLayout.tsx +247 -0
- package/src/MarkdownEditor.tsx +2 -1
- package/src/MarkdownView.test.tsx +1 -1
- package/src/MediaQuery.ts +1 -0
- package/src/MobileAddressAutoComplete.test.tsx +2 -1
- package/src/Modal.test.tsx +7 -2
- package/src/ModalSheet.test.tsx +5 -4
- package/src/MultiselectField.test.tsx +17 -3
- package/src/NumberField.test.tsx +14 -14
- package/src/NumberPickerActionSheet.test.tsx +1 -1
- package/src/OpenAPIContext.test.tsx +4 -4
- package/src/OpenAPIRenderRegression.test.tsx +1 -1
- package/src/OtpField.test.tsx +280 -0
- package/src/OtpField.tsx +307 -0
- package/src/P0RenderRegression.test.tsx +7 -1
- package/src/P1RenderRegression.test.tsx +1 -0
- package/src/P2ButtonRenderRegression.test.tsx +1 -0
- package/src/Page.test.tsx +1 -1
- package/src/PhoneNumberField.test.tsx +14 -38
- package/src/PickerSelect.tsx +9 -9
- package/src/Popover.test.tsx +2 -2
- package/src/ProvisionalConsentSigner.test.tsx +625 -0
- package/src/ProvisionalConsentSigner.tsx +423 -0
- package/src/RadioField.test.tsx +7 -2
- package/src/ResponsiveBreakpoint.test.tsx +7 -0
- package/src/ResponsiveBreakpoint.tsx +14 -0
- package/src/RootImportRegression.test.tsx +3 -0
- package/src/SegmentedControl.test.tsx +21 -12
- package/src/SidebarNavigation.test.tsx +18 -6
- package/src/Signature.test.tsx +20 -23
- package/src/Slider.test.tsx +1 -1
- package/src/SocialLoginButton.test.tsx +14 -0
- package/src/SocialLoginButton.tsx +51 -7
- package/src/SplitPage.native.tsx +3 -1
- package/src/SplitPage.test.tsx +15 -5
- package/src/SplitPage.tsx +11 -5
- package/src/SyncStatusBanner.test.tsx +61 -4
- package/src/SyncStatusBanner.tsx +29 -3
- package/src/TapToEdit.test.tsx +38 -15
- package/src/TapToEdit.tsx +1 -1
- package/src/TerrenoFontProvider.test.tsx +1 -1
- package/src/Text.test.tsx +4 -4
- package/src/TextField.test.tsx +232 -9
- package/src/TextField.tsx +70 -12
- package/src/Theme.test.tsx +49 -0
- package/src/Theme.tsx +16 -0
- package/src/Toast.test.tsx +5 -5
- package/src/ToastNotifications.test.tsx +73 -70
- package/src/ToastNotifications.webModal.test.tsx +2 -2
- package/src/Tooltip.test.tsx +3 -3
- package/src/UnifiedAddressAutoComplete.test.tsx +1 -1
- package/src/UserInactivity.test.tsx +4 -2
- package/src/WebAddressAutocomplete.test.tsx +12 -12
- package/src/WebDropdownMenu.test.tsx +16 -15
- package/src/__snapshots__/AddressField.test.tsx.snap +12 -0
- package/src/__snapshots__/AiSuggestionBox.test.tsx.snap +15 -0
- package/src/__snapshots__/Avatar.test.tsx.snap +1 -0
- package/src/__snapshots__/Card.test.tsx.snap +1 -1
- package/src/__snapshots__/CustomSelectField.test.tsx.snap +3 -0
- package/src/__snapshots__/DismissButton.test.tsx.snap +3 -3
- package/src/__snapshots__/EmailField.test.tsx.snap +6 -0
- package/src/__snapshots__/Field.test.tsx.snap +41 -2
- package/src/__snapshots__/Heading.test.tsx.snap +1 -1
- package/src/__snapshots__/HeightField.test.tsx.snap +2 -0
- package/src/__snapshots__/Image.test.tsx.snap +1 -1
- package/src/__snapshots__/MobileAddressAutoComplete.test.tsx.snap +3 -0
- package/src/__snapshots__/NumberField.test.tsx.snap +3 -0
- package/src/__snapshots__/Page.test.tsx.snap +2 -2
- package/src/__snapshots__/PhoneNumberField.test.tsx.snap +12 -0
- package/src/__snapshots__/Slider.test.tsx.snap +1 -0
- package/src/__snapshots__/SocialLoginButton.test.tsx.snap +43 -22
- package/src/__snapshots__/TapToEdit.test.tsx.snap +3 -0
- package/src/__snapshots__/Text.test.tsx.snap +1 -1
- package/src/__snapshots__/TextArea.test.tsx.snap +17 -1
- package/src/__snapshots__/TextField.test.tsx.snap +19 -2
- package/src/__snapshots__/TypedSignatureField.test.tsx.snap +3 -0
- package/src/__snapshots__/UnifiedAddressAutoComplete.test.tsx.snap +18 -0
- package/src/__snapshots__/WebAddressAutocomplete.test.tsx.snap +12 -0
- package/src/asks/AskCard.test.tsx +16 -13
- package/src/asks/AskFiles.test.tsx +5 -1
- package/src/asks/askFileRefs.test.ts +1 -1
- package/src/asks/askSummary.test.ts +2 -2
- package/src/benchmarks/importTiming.ts +1 -1
- package/src/blocks/BlocksView.test.tsx +20 -11
- package/src/bunSetup.ts +14 -2
- package/src/dataTableFilters.test.tsx +1 -1
- package/src/fieldElements/FieldError.tsx +1 -0
- package/src/fieldElements/__snapshots__/FieldError.test.tsx.snap +2 -0
- package/src/index.tsx +42 -1
- package/src/isolated/ListDetailLayout.isolated.tsx +632 -0
- package/src/lazyBoundaries/heavyOptionalExports.tsx +7 -0
- package/src/login/LastUsedBadge.tsx +40 -0
- package/src/login/LoginAccountCard.tsx +205 -0
- package/src/login/LoginAccountList.tsx +115 -0
- package/src/login/LoginScreen.test.tsx +839 -3
- package/src/login/LoginScreen.tsx +674 -91
- package/src/login/OutlinePill.tsx +110 -0
- package/src/login/TwoFactorChallengeScreen.test.tsx +376 -0
- package/src/login/TwoFactorChallengeScreen.tsx +307 -0
- package/src/login/__snapshots__/LoginScreen.test.tsx.snap +1454 -334
- package/src/login/loginMethods.test.ts +53 -0
- package/src/login/loginMethods.ts +60 -0
- package/src/login/loginTypes.ts +208 -5
- package/src/pdfHtmlTemplate.test.ts +243 -4
- package/src/pdfHtmlTemplate.ts +93 -0
- package/src/security/AccountSecurityScreen.test.tsx +262 -0
- package/src/security/AccountSecurityScreen.tsx +156 -0
- package/src/security/LinkedAccountsCard.test.tsx +371 -0
- package/src/security/LinkedAccountsCard.tsx +297 -0
- package/src/security/PasskeysCard.test.tsx +378 -0
- package/src/security/PasskeysCard.tsx +371 -0
- package/src/security/PasswordCard.test.tsx +445 -0
- package/src/security/PasswordCard.tsx +342 -0
- package/src/security/SessionsCard.test.tsx +349 -0
- package/src/security/SessionsCard.tsx +362 -0
- package/src/security/TwoFactorSettingsCard.test.tsx +700 -0
- package/src/security/TwoFactorSettingsCard.tsx +872 -0
- package/src/security/securityMethods.test.ts +101 -0
- package/src/security/securityMethods.ts +104 -0
- package/src/security/securityTypes.ts +480 -0
- package/src/security/userAgent.test.ts +119 -0
- package/src/security/userAgent.ts +102 -0
- package/src/signUp/OAuthButtons.test.tsx +27 -0
- package/src/signUp/OAuthButtons.tsx +153 -19
- package/src/signUp/SignUpScreen.test.tsx +171 -2
- package/src/signUp/SignUpScreen.tsx +87 -25
- package/src/signUp/__snapshots__/SignUpScreen.test.tsx.snap +22 -11
- package/src/signUp/signUpTypes.ts +23 -1
- package/src/table/tableContext.test.tsx +5 -5
- package/src/test-utils.tsx +56 -1
- package/src/testing/reactDomServer.d.ts +7 -0
- package/src/useConsentForms.test.ts +38 -2
- package/src/useConsentForms.ts +25 -0
- package/src/useProvisionalConsent.test.ts +256 -0
- package/src/useProvisionalConsent.ts +218 -0
|
@@ -5,6 +5,14 @@ import type {AddressInterface} from "./Common";
|
|
|
5
5
|
import {renderWithTheme} from "./test-utils";
|
|
6
6
|
import {WebAddressAutocomplete} from "./WebAddressAutocomplete";
|
|
7
7
|
|
|
8
|
+
interface PlaceResult {
|
|
9
|
+
address_components: {
|
|
10
|
+
long_name: string;
|
|
11
|
+
short_name: string;
|
|
12
|
+
types: string[];
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
|
|
8
16
|
describe("WebAddressAutocomplete", () => {
|
|
9
17
|
const defaultProps = {
|
|
10
18
|
handleAddressChange: () => {},
|
|
@@ -51,14 +59,6 @@ describe("WebAddressAutocomplete", () => {
|
|
|
51
59
|
});
|
|
52
60
|
|
|
53
61
|
describe("with Google Maps available", () => {
|
|
54
|
-
interface PlaceResult {
|
|
55
|
-
address_components: {
|
|
56
|
-
long_name: string;
|
|
57
|
-
short_name: string;
|
|
58
|
-
types: string[];
|
|
59
|
-
}[];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
62
|
interface GoogleMapsWindow {
|
|
63
63
|
google?: {
|
|
64
64
|
maps?: {
|
|
@@ -80,7 +80,7 @@ describe("WebAddressAutocomplete", () => {
|
|
|
80
80
|
document?: MinimalDocument;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
const testGlobal = globalThis as TestGlobals;
|
|
83
|
+
const testGlobal = globalThis as unknown as TestGlobals;
|
|
84
84
|
const originalWindow = testGlobal.window;
|
|
85
85
|
const originalDocument = testGlobal.document;
|
|
86
86
|
|
|
@@ -207,7 +207,7 @@ describe("WebAddressAutocomplete", () => {
|
|
|
207
207
|
document?: MinimalDocument;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
const testGlobal = globalThis as TestGlobals;
|
|
210
|
+
const testGlobal = globalThis as unknown as TestGlobals;
|
|
211
211
|
const originalWindow = testGlobal.window;
|
|
212
212
|
const originalDocument = testGlobal.document;
|
|
213
213
|
|
|
@@ -468,7 +468,7 @@ describe("WebAddressAutocomplete", () => {
|
|
|
468
468
|
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
469
469
|
});
|
|
470
470
|
|
|
471
|
-
const win = (globalThis as Record<string, Record<string, unknown>>).window;
|
|
471
|
+
const win = (globalThis as unknown as Record<string, Record<string, unknown>>).window;
|
|
472
472
|
expect(win.initAutocomplete).toBeDefined();
|
|
473
473
|
|
|
474
474
|
unmount();
|
|
@@ -502,7 +502,7 @@ describe("WebAddressAutocomplete", () => {
|
|
|
502
502
|
}),
|
|
503
503
|
}));
|
|
504
504
|
|
|
505
|
-
const win = (globalThis as Record<string, Record<string, unknown>>).window;
|
|
505
|
+
const win = (globalThis as unknown as Record<string, Record<string, unknown>>).window;
|
|
506
506
|
win.google = {
|
|
507
507
|
maps: {places: {Autocomplete: autocompleteConstructor}},
|
|
508
508
|
};
|
|
@@ -4,11 +4,12 @@ import {assert} from "chai";
|
|
|
4
4
|
import type {ComponentProps} from "react";
|
|
5
5
|
import {Dimensions} from "react-native";
|
|
6
6
|
|
|
7
|
-
import {renderWithTheme} from "./test-utils";
|
|
7
|
+
import {findAllByHostType, renderWithTheme} from "./test-utils";
|
|
8
8
|
import {
|
|
9
9
|
resolveDocumentBodyPortalTarget,
|
|
10
10
|
scheduleAfterPaint,
|
|
11
11
|
useWebDropdownAnchor,
|
|
12
|
+
type WebDropdownAnchor,
|
|
12
13
|
WebDropdownMenu,
|
|
13
14
|
} from "./WebDropdownMenu";
|
|
14
15
|
|
|
@@ -63,7 +64,7 @@ describe("WebDropdownMenu", () => {
|
|
|
63
64
|
});
|
|
64
65
|
|
|
65
66
|
it("invokes onSelect with value and index when an option is pressed", () => {
|
|
66
|
-
const onSelect = mock(() => {});
|
|
67
|
+
const onSelect = mock((_value: string, _index: number) => {});
|
|
67
68
|
const {getByTestId} = renderWithTheme(
|
|
68
69
|
<WebDropdownMenu
|
|
69
70
|
anchor={anchor}
|
|
@@ -365,7 +366,7 @@ describe("WebDropdownMenu disableSearch", () => {
|
|
|
365
366
|
});
|
|
366
367
|
|
|
367
368
|
it("reports the original index when selecting a filtered option", () => {
|
|
368
|
-
const onSelect = mock(() => {});
|
|
369
|
+
const onSelect = mock((_value: string, _index: number) => {});
|
|
369
370
|
const {getByTestId} = renderWithTheme(
|
|
370
371
|
<WebDropdownMenu
|
|
371
372
|
anchor={anchor}
|
|
@@ -469,7 +470,7 @@ describe("WebDropdownMenu keepTriggerFocus portal overlay", () => {
|
|
|
469
470
|
keyupListeners.push(listener);
|
|
470
471
|
}
|
|
471
472
|
},
|
|
472
|
-
body: body as HTMLElement,
|
|
473
|
+
body: body as unknown as HTMLElement,
|
|
473
474
|
removeEventListener: (type: string, listener: (event: KeyboardEvent) => void) => {
|
|
474
475
|
if (type === "keyup") {
|
|
475
476
|
keyupListeners = keyupListeners.filter((registered) => registered !== listener);
|
|
@@ -488,7 +489,7 @@ describe("WebDropdownMenu keepTriggerFocus portal overlay", () => {
|
|
|
488
489
|
};
|
|
489
490
|
|
|
490
491
|
const dispatchEscapeKey = (): void => {
|
|
491
|
-
const event = {key: "Escape", stopPropagation: mock(() => {})} as KeyboardEvent;
|
|
492
|
+
const event = {key: "Escape", stopPropagation: mock(() => {})} as unknown as KeyboardEvent;
|
|
492
493
|
for (const listener of keyupListeners) {
|
|
493
494
|
listener(event);
|
|
494
495
|
}
|
|
@@ -542,7 +543,7 @@ describe("WebDropdownMenu keepTriggerFocus portal overlay", () => {
|
|
|
542
543
|
expect(style.position).toBe("fixed");
|
|
543
544
|
expect(style.left).toBe(anchor.x);
|
|
544
545
|
|
|
545
|
-
const modals = root
|
|
546
|
+
const modals = findAllByHostType(root, "Modal");
|
|
546
547
|
expect(modals.length).toBe(0);
|
|
547
548
|
} finally {
|
|
548
549
|
PlatformModule.OS = savedOS;
|
|
@@ -562,7 +563,7 @@ describe("WebDropdownMenu keepTriggerFocus portal overlay", () => {
|
|
|
562
563
|
|
|
563
564
|
assert.isOk(getByTestId("web_dropdown_menu"));
|
|
564
565
|
assert.isNull(queryByTestId("web_dropdown_modal"));
|
|
565
|
-
assert.equal(root
|
|
566
|
+
assert.equal(findAllByHostType(root, "Modal").length, 0);
|
|
566
567
|
} finally {
|
|
567
568
|
PlatformModule.OS = savedOS;
|
|
568
569
|
restoreWebDocument();
|
|
@@ -578,7 +579,7 @@ describe("WebDropdownMenu keepTriggerFocus portal overlay", () => {
|
|
|
578
579
|
const placeholder = getByTestId("web_dropdown_modal");
|
|
579
580
|
expect(placeholder.props.visible).toBeUndefined();
|
|
580
581
|
|
|
581
|
-
const modals = root
|
|
582
|
+
const modals = findAllByHostType(root, "Modal");
|
|
582
583
|
expect(modals.length).toBe(0);
|
|
583
584
|
} finally {
|
|
584
585
|
PlatformModule.OS = savedOS;
|
|
@@ -712,7 +713,7 @@ describe("useWebDropdownAnchor", () => {
|
|
|
712
713
|
|
|
713
714
|
it("invokes the callback synchronously with the existing anchor when the ref is empty", () => {
|
|
714
715
|
const {result} = renderHook(() => useWebDropdownAnchor());
|
|
715
|
-
const onMeasured = mock(() => {});
|
|
716
|
+
const onMeasured = mock((_anchor: WebDropdownAnchor) => {});
|
|
716
717
|
act(() => {
|
|
717
718
|
result.current.measure(onMeasured);
|
|
718
719
|
});
|
|
@@ -726,7 +727,7 @@ describe("useWebDropdownAnchor", () => {
|
|
|
726
727
|
cb(10, 20, 100, 40);
|
|
727
728
|
});
|
|
728
729
|
(result.current.triggerRef as {current: unknown}).current = {measureInWindow};
|
|
729
|
-
const onMeasured = mock(() => {});
|
|
730
|
+
const onMeasured = mock((_anchor: WebDropdownAnchor) => {});
|
|
730
731
|
act(() => {
|
|
731
732
|
result.current.measure(onMeasured);
|
|
732
733
|
});
|
|
@@ -886,14 +887,14 @@ describe("WebDropdownMenu layout callbacks", () => {
|
|
|
886
887
|
visible
|
|
887
888
|
/>
|
|
888
889
|
);
|
|
889
|
-
const scrollView = root
|
|
890
|
+
const scrollView = findAllByHostType(root, "ScrollView")[0];
|
|
890
891
|
expect(scrollView).toBeTruthy();
|
|
891
892
|
act(() => {
|
|
892
893
|
fireEvent(scrollView, "layout", {nativeEvent: {layout: {height: 200, width: 200}}});
|
|
893
894
|
});
|
|
894
895
|
// The list viewport height is recorded and a scroll is scheduled; the
|
|
895
896
|
// component should remain mounted and functional.
|
|
896
|
-
expect(root
|
|
897
|
+
expect(findAllByHostType(root, "ScrollView").length).toBeGreaterThan(0);
|
|
897
898
|
});
|
|
898
899
|
|
|
899
900
|
it("records option layout and schedules a scroll for the selected option", () => {
|
|
@@ -936,7 +937,7 @@ describe("WebDropdownMenu layout callbacks", () => {
|
|
|
936
937
|
/>
|
|
937
938
|
);
|
|
938
939
|
|
|
939
|
-
const scrollView = root
|
|
940
|
+
const scrollView = findAllByHostType(root, "ScrollView")[0];
|
|
940
941
|
const scrollCalls: Array<{animated?: boolean; y?: number}> = [];
|
|
941
942
|
const scrollRef = scrollView.props.ref as {current: unknown};
|
|
942
943
|
scrollRef.current = {
|
|
@@ -975,7 +976,7 @@ describe("WebDropdownMenu layout callbacks", () => {
|
|
|
975
976
|
/>
|
|
976
977
|
);
|
|
977
978
|
|
|
978
|
-
const scrollView = root
|
|
979
|
+
const scrollView = findAllByHostType(root, "ScrollView")[0];
|
|
979
980
|
const scrollCalls: Array<{animated?: boolean; y?: number}> = [];
|
|
980
981
|
const scrollRef = scrollView.props.ref as {current: unknown};
|
|
981
982
|
scrollRef.current = {
|
|
@@ -1013,7 +1014,7 @@ describe("WebDropdownMenu layout callbacks", () => {
|
|
|
1013
1014
|
/>
|
|
1014
1015
|
);
|
|
1015
1016
|
|
|
1016
|
-
const scrollView = root
|
|
1017
|
+
const scrollView = findAllByHostType(root, "ScrollView")[0];
|
|
1017
1018
|
const scrollCalls: Array<{animated?: boolean; y?: number}> = [];
|
|
1018
1019
|
const scrollRef = scrollView.props.ref as {current: unknown};
|
|
1019
1020
|
scrollRef.current = {
|
|
@@ -38,6 +38,8 @@ exports[`AddressField renders correctly with default props 1`] = `
|
|
|
38
38
|
"accessibilityState": {
|
|
39
39
|
"disabled": undefined,
|
|
40
40
|
},
|
|
41
|
+
"aria-describedby": undefined,
|
|
42
|
+
"aria-invalid": false,
|
|
41
43
|
"aria-label": "Text input field",
|
|
42
44
|
"autoCapitalize": "sentences",
|
|
43
45
|
"autoCorrect": true,
|
|
@@ -64,6 +66,7 @@ exports[`AddressField renders correctly with default props 1`] = `
|
|
|
64
66
|
"fontSize": 16,
|
|
65
67
|
"gap": 10,
|
|
66
68
|
"height": 24,
|
|
69
|
+
"letterSpacing": undefined,
|
|
67
70
|
"paddingVertical": 0,
|
|
68
71
|
"width": "100%",
|
|
69
72
|
},
|
|
@@ -156,6 +159,8 @@ exports[`AddressField renders correctly with default props 1`] = `
|
|
|
156
159
|
"accessibilityState": {
|
|
157
160
|
"disabled": undefined,
|
|
158
161
|
},
|
|
162
|
+
"aria-describedby": undefined,
|
|
163
|
+
"aria-invalid": false,
|
|
159
164
|
"aria-label": "Text input field",
|
|
160
165
|
"autoCapitalize": "sentences",
|
|
161
166
|
"autoCorrect": true,
|
|
@@ -182,6 +187,7 @@ exports[`AddressField renders correctly with default props 1`] = `
|
|
|
182
187
|
"fontSize": 16,
|
|
183
188
|
"gap": 10,
|
|
184
189
|
"height": 24,
|
|
190
|
+
"letterSpacing": undefined,
|
|
185
191
|
"paddingVertical": 0,
|
|
186
192
|
"width": "100%",
|
|
187
193
|
},
|
|
@@ -274,6 +280,8 @@ exports[`AddressField renders correctly with default props 1`] = `
|
|
|
274
280
|
"accessibilityState": {
|
|
275
281
|
"disabled": undefined,
|
|
276
282
|
},
|
|
283
|
+
"aria-describedby": undefined,
|
|
284
|
+
"aria-invalid": false,
|
|
277
285
|
"aria-label": "Text input field",
|
|
278
286
|
"autoCapitalize": "sentences",
|
|
279
287
|
"autoCorrect": true,
|
|
@@ -300,6 +308,7 @@ exports[`AddressField renders correctly with default props 1`] = `
|
|
|
300
308
|
"fontSize": 16,
|
|
301
309
|
"gap": 10,
|
|
302
310
|
"height": 24,
|
|
311
|
+
"letterSpacing": undefined,
|
|
303
312
|
"paddingVertical": 0,
|
|
304
313
|
"width": "100%",
|
|
305
314
|
},
|
|
@@ -2594,6 +2603,8 @@ exports[`AddressField renders correctly with default props 1`] = `
|
|
|
2594
2603
|
"accessibilityState": {
|
|
2595
2604
|
"disabled": undefined,
|
|
2596
2605
|
},
|
|
2606
|
+
"aria-describedby": undefined,
|
|
2607
|
+
"aria-invalid": false,
|
|
2597
2608
|
"aria-label": "Text input field",
|
|
2598
2609
|
"autoCapitalize": "sentences",
|
|
2599
2610
|
"autoCorrect": true,
|
|
@@ -2620,6 +2631,7 @@ exports[`AddressField renders correctly with default props 1`] = `
|
|
|
2620
2631
|
"fontSize": 16,
|
|
2621
2632
|
"gap": 10,
|
|
2622
2633
|
"height": 24,
|
|
2634
|
+
"letterSpacing": undefined,
|
|
2623
2635
|
"paddingVertical": 0,
|
|
2624
2636
|
"width": "100%",
|
|
2625
2637
|
},
|
|
@@ -108,6 +108,8 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for not-sta
|
|
|
108
108
|
"accessibilityState": {
|
|
109
109
|
"disabled": undefined,
|
|
110
110
|
},
|
|
111
|
+
"aria-describedby": undefined,
|
|
112
|
+
"aria-invalid": false,
|
|
111
113
|
"aria-label": "Text input field",
|
|
112
114
|
"autoCapitalize": "sentences",
|
|
113
115
|
"autoCorrect": true,
|
|
@@ -134,6 +136,7 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for not-sta
|
|
|
134
136
|
"fontSize": 16,
|
|
135
137
|
"gap": 10,
|
|
136
138
|
"height": 40,
|
|
139
|
+
"letterSpacing": undefined,
|
|
137
140
|
"paddingVertical": 0,
|
|
138
141
|
"width": "100%",
|
|
139
142
|
},
|
|
@@ -291,6 +294,8 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for generat
|
|
|
291
294
|
"accessibilityState": {
|
|
292
295
|
"disabled": undefined,
|
|
293
296
|
},
|
|
297
|
+
"aria-describedby": undefined,
|
|
298
|
+
"aria-invalid": false,
|
|
294
299
|
"aria-label": "Text input field",
|
|
295
300
|
"autoCapitalize": "sentences",
|
|
296
301
|
"autoCorrect": true,
|
|
@@ -317,6 +322,7 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for generat
|
|
|
317
322
|
"fontSize": 16,
|
|
318
323
|
"gap": 10,
|
|
319
324
|
"height": 40,
|
|
325
|
+
"letterSpacing": undefined,
|
|
320
326
|
"paddingVertical": 0,
|
|
321
327
|
"width": "100%",
|
|
322
328
|
},
|
|
@@ -739,6 +745,8 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for ready s
|
|
|
739
745
|
"accessibilityState": {
|
|
740
746
|
"disabled": undefined,
|
|
741
747
|
},
|
|
748
|
+
"aria-describedby": undefined,
|
|
749
|
+
"aria-invalid": false,
|
|
742
750
|
"aria-label": "Text input field",
|
|
743
751
|
"autoCapitalize": "sentences",
|
|
744
752
|
"autoCorrect": true,
|
|
@@ -765,6 +773,7 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for ready s
|
|
|
765
773
|
"fontSize": 16,
|
|
766
774
|
"gap": 10,
|
|
767
775
|
"height": 40,
|
|
776
|
+
"letterSpacing": undefined,
|
|
768
777
|
"paddingVertical": 0,
|
|
769
778
|
"width": "100%",
|
|
770
779
|
},
|
|
@@ -1078,6 +1087,8 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for hidden
|
|
|
1078
1087
|
"accessibilityState": {
|
|
1079
1088
|
"disabled": undefined,
|
|
1080
1089
|
},
|
|
1090
|
+
"aria-describedby": undefined,
|
|
1091
|
+
"aria-invalid": false,
|
|
1081
1092
|
"aria-label": "Text input field",
|
|
1082
1093
|
"autoCapitalize": "sentences",
|
|
1083
1094
|
"autoCorrect": true,
|
|
@@ -1104,6 +1115,7 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for hidden
|
|
|
1104
1115
|
"fontSize": 16,
|
|
1105
1116
|
"gap": 10,
|
|
1106
1117
|
"height": 40,
|
|
1118
|
+
"letterSpacing": undefined,
|
|
1107
1119
|
"paddingVertical": 0,
|
|
1108
1120
|
"width": "100%",
|
|
1109
1121
|
},
|
|
@@ -1417,6 +1429,8 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for added s
|
|
|
1417
1429
|
"accessibilityState": {
|
|
1418
1430
|
"disabled": undefined,
|
|
1419
1431
|
},
|
|
1432
|
+
"aria-describedby": undefined,
|
|
1433
|
+
"aria-invalid": false,
|
|
1420
1434
|
"aria-label": "Text input field",
|
|
1421
1435
|
"autoCapitalize": "sentences",
|
|
1422
1436
|
"autoCorrect": true,
|
|
@@ -1443,6 +1457,7 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for added s
|
|
|
1443
1457
|
"fontSize": 16,
|
|
1444
1458
|
"gap": 10,
|
|
1445
1459
|
"height": 40,
|
|
1460
|
+
"letterSpacing": undefined,
|
|
1446
1461
|
"paddingVertical": 0,
|
|
1447
1462
|
"width": "100%",
|
|
1448
1463
|
},
|
|
@@ -142,7 +142,7 @@ exports[`Card container variant (default) applies custom color 1`] = `
|
|
|
142
142
|
"onPointerEnter": [Function: AsyncFunction],
|
|
143
143
|
"onPointerLeave": [Function: AsyncFunction],
|
|
144
144
|
"style": {
|
|
145
|
-
"backgroundColor":
|
|
145
|
+
"backgroundColor": "#2B6072",
|
|
146
146
|
"borderBottomColor": "#CDCDCD",
|
|
147
147
|
"borderBottomWidth": 1,
|
|
148
148
|
"borderRadius": undefined,
|
|
@@ -2121,6 +2121,8 @@ exports[`CustomSelectField renders with custom value (not in options) 1`] = `
|
|
|
2121
2121
|
"accessibilityState": {
|
|
2122
2122
|
"disabled": undefined,
|
|
2123
2123
|
},
|
|
2124
|
+
"aria-describedby": undefined,
|
|
2125
|
+
"aria-invalid": false,
|
|
2124
2126
|
"aria-label": "Text input field",
|
|
2125
2127
|
"autoCapitalize": "sentences",
|
|
2126
2128
|
"autoCorrect": true,
|
|
@@ -2147,6 +2149,7 @@ exports[`CustomSelectField renders with custom value (not in options) 1`] = `
|
|
|
2147
2149
|
"fontSize": 16,
|
|
2148
2150
|
"gap": 10,
|
|
2149
2151
|
"height": 24,
|
|
2152
|
+
"letterSpacing": undefined,
|
|
2150
2153
|
"paddingVertical": 0,
|
|
2151
2154
|
"width": "100%",
|
|
2152
2155
|
},
|
|
@@ -17,7 +17,7 @@ exports[`DismissButton renders correctly with default props 1`] = `
|
|
|
17
17
|
},
|
|
18
18
|
],
|
|
19
19
|
"props": {
|
|
20
|
-
"accessibilityHint":
|
|
20
|
+
"accessibilityHint": "Dismisses the message",
|
|
21
21
|
"aria-label": "Dismiss",
|
|
22
22
|
"aria-role": "button",
|
|
23
23
|
"onPress": [Function],
|
|
@@ -49,7 +49,7 @@ exports[`DismissButton renders with primary color (default) 1`] = `
|
|
|
49
49
|
},
|
|
50
50
|
],
|
|
51
51
|
"props": {
|
|
52
|
-
"accessibilityHint":
|
|
52
|
+
"accessibilityHint": "Dismisses the message",
|
|
53
53
|
"aria-label": "Dismiss",
|
|
54
54
|
"aria-role": "button",
|
|
55
55
|
"onPress": [Function],
|
|
@@ -81,7 +81,7 @@ exports[`DismissButton renders with inverted color 1`] = `
|
|
|
81
81
|
},
|
|
82
82
|
],
|
|
83
83
|
"props": {
|
|
84
|
-
"accessibilityHint":
|
|
84
|
+
"accessibilityHint": "Dismisses the message",
|
|
85
85
|
"aria-label": "Dismiss",
|
|
86
86
|
"aria-role": "button",
|
|
87
87
|
"onPress": [Function],
|
|
@@ -18,6 +18,8 @@ exports[`EmailField renders correctly with default props 1`] = `
|
|
|
18
18
|
"accessibilityState": {
|
|
19
19
|
"disabled": undefined,
|
|
20
20
|
},
|
|
21
|
+
"aria-describedby": undefined,
|
|
22
|
+
"aria-invalid": false,
|
|
21
23
|
"aria-label": "Text input field",
|
|
22
24
|
"autoCapitalize": "none",
|
|
23
25
|
"autoCorrect": false,
|
|
@@ -44,6 +46,7 @@ exports[`EmailField renders correctly with default props 1`] = `
|
|
|
44
46
|
"fontSize": 16,
|
|
45
47
|
"gap": 10,
|
|
46
48
|
"height": 24,
|
|
49
|
+
"letterSpacing": undefined,
|
|
47
50
|
"paddingVertical": 0,
|
|
48
51
|
"width": "100%",
|
|
49
52
|
},
|
|
@@ -111,6 +114,8 @@ exports[`EmailField renders with icon 1`] = `
|
|
|
111
114
|
"accessibilityState": {
|
|
112
115
|
"disabled": undefined,
|
|
113
116
|
},
|
|
117
|
+
"aria-describedby": undefined,
|
|
118
|
+
"aria-invalid": false,
|
|
114
119
|
"aria-label": "Text input field",
|
|
115
120
|
"autoCapitalize": "none",
|
|
116
121
|
"autoCorrect": false,
|
|
@@ -137,6 +142,7 @@ exports[`EmailField renders with icon 1`] = `
|
|
|
137
142
|
"fontSize": 16,
|
|
138
143
|
"gap": 10,
|
|
139
144
|
"height": 24,
|
|
145
|
+
"letterSpacing": undefined,
|
|
140
146
|
"paddingVertical": 0,
|
|
141
147
|
"width": "100%",
|
|
142
148
|
},
|
|
@@ -18,6 +18,8 @@ exports[`Field renders text field by default 1`] = `
|
|
|
18
18
|
"accessibilityState": {
|
|
19
19
|
"disabled": undefined,
|
|
20
20
|
},
|
|
21
|
+
"aria-describedby": undefined,
|
|
22
|
+
"aria-invalid": false,
|
|
21
23
|
"aria-label": "Text input field",
|
|
22
24
|
"autoCapitalize": "sentences",
|
|
23
25
|
"autoCorrect": true,
|
|
@@ -44,6 +46,7 @@ exports[`Field renders text field by default 1`] = `
|
|
|
44
46
|
"fontSize": 16,
|
|
45
47
|
"gap": 10,
|
|
46
48
|
"height": 24,
|
|
49
|
+
"letterSpacing": undefined,
|
|
47
50
|
"paddingVertical": 0,
|
|
48
51
|
"width": "100%",
|
|
49
52
|
},
|
|
@@ -111,6 +114,8 @@ exports[`Field renders text field with type text 1`] = `
|
|
|
111
114
|
"accessibilityState": {
|
|
112
115
|
"disabled": undefined,
|
|
113
116
|
},
|
|
117
|
+
"aria-describedby": undefined,
|
|
118
|
+
"aria-invalid": false,
|
|
114
119
|
"aria-label": "Text input field",
|
|
115
120
|
"autoCapitalize": "sentences",
|
|
116
121
|
"autoCorrect": true,
|
|
@@ -137,6 +142,7 @@ exports[`Field renders text field with type text 1`] = `
|
|
|
137
142
|
"fontSize": 16,
|
|
138
143
|
"gap": 10,
|
|
139
144
|
"height": 24,
|
|
145
|
+
"letterSpacing": undefined,
|
|
140
146
|
"paddingVertical": 0,
|
|
141
147
|
"width": "100%",
|
|
142
148
|
},
|
|
@@ -204,8 +210,11 @@ exports[`Field renders password field 1`] = `
|
|
|
204
210
|
"accessibilityState": {
|
|
205
211
|
"disabled": undefined,
|
|
206
212
|
},
|
|
213
|
+
"aria-describedby": undefined,
|
|
214
|
+
"aria-invalid": false,
|
|
207
215
|
"aria-label": "Text input field",
|
|
208
216
|
"autoCapitalize": "none",
|
|
217
|
+
"autoComplete": "current-password",
|
|
209
218
|
"autoCorrect": false,
|
|
210
219
|
"blurOnSubmit": true,
|
|
211
220
|
"enterKeyHint": undefined,
|
|
@@ -230,6 +239,7 @@ exports[`Field renders password field 1`] = `
|
|
|
230
239
|
"fontSize": 16,
|
|
231
240
|
"gap": 10,
|
|
232
241
|
"height": 24,
|
|
242
|
+
"letterSpacing": undefined,
|
|
233
243
|
"paddingVertical": 0,
|
|
234
244
|
"width": "100%",
|
|
235
245
|
},
|
|
@@ -319,6 +329,8 @@ exports[`Field renders email field 1`] = `
|
|
|
319
329
|
"accessibilityState": {
|
|
320
330
|
"disabled": undefined,
|
|
321
331
|
},
|
|
332
|
+
"aria-describedby": undefined,
|
|
333
|
+
"aria-invalid": false,
|
|
322
334
|
"aria-label": "Text input field",
|
|
323
335
|
"autoCapitalize": "none",
|
|
324
336
|
"autoCorrect": false,
|
|
@@ -345,6 +357,7 @@ exports[`Field renders email field 1`] = `
|
|
|
345
357
|
"fontSize": 16,
|
|
346
358
|
"gap": 10,
|
|
347
359
|
"height": 24,
|
|
360
|
+
"letterSpacing": undefined,
|
|
348
361
|
"paddingVertical": 0,
|
|
349
362
|
"width": "100%",
|
|
350
363
|
},
|
|
@@ -412,6 +425,8 @@ exports[`Field renders url field 1`] = `
|
|
|
412
425
|
"accessibilityState": {
|
|
413
426
|
"disabled": undefined,
|
|
414
427
|
},
|
|
428
|
+
"aria-describedby": undefined,
|
|
429
|
+
"aria-invalid": false,
|
|
415
430
|
"aria-label": "Text input field",
|
|
416
431
|
"autoCapitalize": "none",
|
|
417
432
|
"autoCorrect": false,
|
|
@@ -438,6 +453,7 @@ exports[`Field renders url field 1`] = `
|
|
|
438
453
|
"fontSize": 16,
|
|
439
454
|
"gap": 10,
|
|
440
455
|
"height": 24,
|
|
456
|
+
"letterSpacing": undefined,
|
|
441
457
|
"paddingVertical": 0,
|
|
442
458
|
"width": "100%",
|
|
443
459
|
},
|
|
@@ -505,6 +521,8 @@ exports[`Field renders number field 1`] = `
|
|
|
505
521
|
"accessibilityState": {
|
|
506
522
|
"disabled": undefined,
|
|
507
523
|
},
|
|
524
|
+
"aria-describedby": undefined,
|
|
525
|
+
"aria-invalid": false,
|
|
508
526
|
"aria-label": "Text input field",
|
|
509
527
|
"autoCapitalize": "sentences",
|
|
510
528
|
"autoCorrect": true,
|
|
@@ -531,6 +549,7 @@ exports[`Field renders number field 1`] = `
|
|
|
531
549
|
"fontSize": 16,
|
|
532
550
|
"gap": 10,
|
|
533
551
|
"height": 24,
|
|
552
|
+
"letterSpacing": undefined,
|
|
534
553
|
"paddingVertical": 0,
|
|
535
554
|
"width": "100%",
|
|
536
555
|
},
|
|
@@ -598,6 +617,8 @@ exports[`Field renders textarea field 1`] = `
|
|
|
598
617
|
"accessibilityState": {
|
|
599
618
|
"disabled": undefined,
|
|
600
619
|
},
|
|
620
|
+
"aria-describedby": undefined,
|
|
621
|
+
"aria-invalid": false,
|
|
601
622
|
"aria-label": "Text input field",
|
|
602
623
|
"autoCapitalize": "sentences",
|
|
603
624
|
"autoCorrect": true,
|
|
@@ -624,6 +645,7 @@ exports[`Field renders textarea field 1`] = `
|
|
|
624
645
|
"fontSize": 16,
|
|
625
646
|
"gap": 10,
|
|
626
647
|
"height": 40,
|
|
648
|
+
"letterSpacing": undefined,
|
|
627
649
|
"paddingVertical": 0,
|
|
628
650
|
"width": "100%",
|
|
629
651
|
},
|
|
@@ -3585,7 +3607,9 @@ exports[`Field renders multiselect field 1`] = `
|
|
|
3585
3607
|
"children": [
|
|
3586
3608
|
{
|
|
3587
3609
|
"$$typeof": Symbol(react.test.json),
|
|
3588
|
-
"children":
|
|
3610
|
+
"children": [
|
|
3611
|
+
"Skills",
|
|
3612
|
+
],
|
|
3589
3613
|
"props": {
|
|
3590
3614
|
"numberOfLines": 0,
|
|
3591
3615
|
"style": {
|
|
@@ -3808,7 +3832,7 @@ exports[`Field renders multiselect field 1`] = `
|
|
|
3808
3832
|
],
|
|
3809
3833
|
"props": {
|
|
3810
3834
|
"accessibilityHint": "Contains a prompt and list of options to select",
|
|
3811
|
-
"aria-label":
|
|
3835
|
+
"aria-label": "Skills",
|
|
3812
3836
|
"aria-role": "combobox",
|
|
3813
3837
|
"style": {
|
|
3814
3838
|
"display": "flex",
|
|
@@ -3859,6 +3883,8 @@ exports[`Field renders address field 1`] = `
|
|
|
3859
3883
|
"accessibilityState": {
|
|
3860
3884
|
"disabled": undefined,
|
|
3861
3885
|
},
|
|
3886
|
+
"aria-describedby": undefined,
|
|
3887
|
+
"aria-invalid": false,
|
|
3862
3888
|
"aria-label": "Text input field",
|
|
3863
3889
|
"autoCapitalize": "sentences",
|
|
3864
3890
|
"autoCorrect": true,
|
|
@@ -3885,6 +3911,7 @@ exports[`Field renders address field 1`] = `
|
|
|
3885
3911
|
"fontSize": 16,
|
|
3886
3912
|
"gap": 10,
|
|
3887
3913
|
"height": 24,
|
|
3914
|
+
"letterSpacing": undefined,
|
|
3888
3915
|
"paddingVertical": 0,
|
|
3889
3916
|
"width": "100%",
|
|
3890
3917
|
},
|
|
@@ -3977,6 +4004,8 @@ exports[`Field renders address field 1`] = `
|
|
|
3977
4004
|
"accessibilityState": {
|
|
3978
4005
|
"disabled": undefined,
|
|
3979
4006
|
},
|
|
4007
|
+
"aria-describedby": undefined,
|
|
4008
|
+
"aria-invalid": false,
|
|
3980
4009
|
"aria-label": "Text input field",
|
|
3981
4010
|
"autoCapitalize": "sentences",
|
|
3982
4011
|
"autoCorrect": true,
|
|
@@ -4003,6 +4032,7 @@ exports[`Field renders address field 1`] = `
|
|
|
4003
4032
|
"fontSize": 16,
|
|
4004
4033
|
"gap": 10,
|
|
4005
4034
|
"height": 24,
|
|
4035
|
+
"letterSpacing": undefined,
|
|
4006
4036
|
"paddingVertical": 0,
|
|
4007
4037
|
"width": "100%",
|
|
4008
4038
|
},
|
|
@@ -4095,6 +4125,8 @@ exports[`Field renders address field 1`] = `
|
|
|
4095
4125
|
"accessibilityState": {
|
|
4096
4126
|
"disabled": undefined,
|
|
4097
4127
|
},
|
|
4128
|
+
"aria-describedby": undefined,
|
|
4129
|
+
"aria-invalid": false,
|
|
4098
4130
|
"aria-label": "Text input field",
|
|
4099
4131
|
"autoCapitalize": "sentences",
|
|
4100
4132
|
"autoCorrect": true,
|
|
@@ -4121,6 +4153,7 @@ exports[`Field renders address field 1`] = `
|
|
|
4121
4153
|
"fontSize": 16,
|
|
4122
4154
|
"gap": 10,
|
|
4123
4155
|
"height": 24,
|
|
4156
|
+
"letterSpacing": undefined,
|
|
4124
4157
|
"paddingVertical": 0,
|
|
4125
4158
|
"width": "100%",
|
|
4126
4159
|
},
|
|
@@ -6415,6 +6448,8 @@ exports[`Field renders address field 1`] = `
|
|
|
6415
6448
|
"accessibilityState": {
|
|
6416
6449
|
"disabled": undefined,
|
|
6417
6450
|
},
|
|
6451
|
+
"aria-describedby": undefined,
|
|
6452
|
+
"aria-invalid": false,
|
|
6418
6453
|
"aria-label": "Text input field",
|
|
6419
6454
|
"autoCapitalize": "sentences",
|
|
6420
6455
|
"autoCorrect": true,
|
|
@@ -6441,6 +6476,7 @@ exports[`Field renders address field 1`] = `
|
|
|
6441
6476
|
"fontSize": 16,
|
|
6442
6477
|
"gap": 10,
|
|
6443
6478
|
"height": 24,
|
|
6479
|
+
"letterSpacing": undefined,
|
|
6444
6480
|
"paddingVertical": 0,
|
|
6445
6481
|
"width": "100%",
|
|
6446
6482
|
},
|
|
@@ -6518,6 +6554,8 @@ exports[`Field renders phoneNumber field 1`] = `
|
|
|
6518
6554
|
"accessibilityState": {
|
|
6519
6555
|
"disabled": undefined,
|
|
6520
6556
|
},
|
|
6557
|
+
"aria-describedby": undefined,
|
|
6558
|
+
"aria-invalid": false,
|
|
6521
6559
|
"aria-label": "Text input field",
|
|
6522
6560
|
"autoCapitalize": "none",
|
|
6523
6561
|
"autoCorrect": false,
|
|
@@ -6544,6 +6582,7 @@ exports[`Field renders phoneNumber field 1`] = `
|
|
|
6544
6582
|
"fontSize": 16,
|
|
6545
6583
|
"gap": 10,
|
|
6546
6584
|
"height": 24,
|
|
6585
|
+
"letterSpacing": undefined,
|
|
6547
6586
|
"paddingVertical": 0,
|
|
6548
6587
|
"width": "100%",
|
|
6549
6588
|
},
|