@terreno/ui 0.5.0 → 0.7.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/README.md +5 -5
- package/dist/ActionSheet.js +10 -4
- package/dist/ActionSheet.js.map +1 -1
- package/dist/Common.d.ts +13 -0
- package/dist/Common.js.map +1 -1
- package/dist/CommonIconTypes.d.ts +1 -1
- package/dist/FlatList.js.map +1 -1
- package/dist/GPTChat.d.ts +2 -1
- package/dist/GPTChat.js +14 -4
- package/dist/GPTChat.js.map +1 -1
- package/dist/HeightActionSheet.js +18 -10
- package/dist/HeightActionSheet.js.map +1 -1
- package/dist/HeightField.d.ts +3 -0
- package/dist/HeightField.js +167 -0
- package/dist/HeightField.js.map +1 -0
- package/dist/Page.js +2 -1
- package/dist/Page.js.map +1 -1
- package/dist/ScrollView.js.map +1 -1
- package/dist/TextField.js +2 -2
- package/dist/TextField.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/login/LoginScreen.js +1 -1
- package/dist/login/LoginScreen.js.map +1 -1
- package/dist/signUp/SignUpScreen.js +1 -1
- package/dist/signUp/SignUpScreen.js.map +1 -1
- package/package.json +1 -1
- package/src/ActionSheet.tsx +7 -5
- package/src/Common.ts +14 -0
- package/src/CommonIconTypes.ts +1 -1
- package/src/FlatList.tsx +1 -0
- package/src/GPTChat.tsx +40 -2
- package/src/HeightActionSheet.tsx +23 -8
- package/src/HeightField.test.tsx +178 -0
- package/src/HeightField.tsx +360 -0
- package/src/HeightFieldDesktop.test.tsx +137 -0
- package/src/Page.tsx +20 -9
- package/src/ScrollView.tsx +1 -0
- package/src/TextField.tsx +2 -0
- package/src/__snapshots__/AddressField.test.tsx.snap +4 -0
- package/src/__snapshots__/CustomSelectField.test.tsx.snap +1 -0
- package/src/__snapshots__/EmailField.test.tsx.snap +2 -0
- package/src/__snapshots__/Field.test.tsx.snap +12 -0
- package/src/__snapshots__/HeightActionSheet.test.tsx.snap +162 -48
- package/src/__snapshots__/HeightField.test.tsx.snap +4011 -0
- package/src/__snapshots__/HeightFieldDesktop.test.tsx.snap +613 -0
- package/src/__snapshots__/MobileAddressAutoComplete.test.tsx.snap +1 -0
- package/src/__snapshots__/NumberField.test.tsx.snap +1 -0
- package/src/__snapshots__/Page.test.tsx.snap +15 -20
- package/src/__snapshots__/PhoneNumberField.test.tsx.snap +5 -0
- package/src/__snapshots__/TapToEdit.test.tsx.snap +1 -0
- package/src/__snapshots__/TextArea.test.tsx.snap +5 -0
- package/src/__snapshots__/TextField.test.tsx.snap +5 -0
- package/src/__snapshots__/UnifiedAddressAutoComplete.test.tsx.snap +4 -0
- package/src/__snapshots__/WebAddressAutocomplete.test.tsx.snap +3 -0
- package/src/index.tsx +1 -0
- package/src/login/LoginScreen.tsx +1 -0
- package/src/login/__snapshots__/LoginScreen.test.tsx.snap +2 -0
- package/src/signUp/SignUpScreen.tsx +1 -0
- package/src/signUp/__snapshots__/SignUpScreen.test.tsx.snap +3 -0
|
@@ -22,6 +22,7 @@ exports[`PhoneNumberField renders correctly with default props 1`] = `
|
|
|
22
22
|
"enterKeyHint": undefined,
|
|
23
23
|
"keyboardType": "number-pad",
|
|
24
24
|
"multiline": undefined,
|
|
25
|
+
"nativeID": undefined,
|
|
25
26
|
"numberOfLines": 1,
|
|
26
27
|
"onBlur": [Function],
|
|
27
28
|
"onChangeText": [Function],
|
|
@@ -101,6 +102,7 @@ exports[`PhoneNumberField formats phone number as user types 1`] = `
|
|
|
101
102
|
"enterKeyHint": undefined,
|
|
102
103
|
"keyboardType": "number-pad",
|
|
103
104
|
"multiline": undefined,
|
|
105
|
+
"nativeID": undefined,
|
|
104
106
|
"numberOfLines": 1,
|
|
105
107
|
"onBlur": [Function],
|
|
106
108
|
"onChangeText": [Function],
|
|
@@ -180,6 +182,7 @@ exports[`PhoneNumberField renders with icon 1`] = `
|
|
|
180
182
|
"enterKeyHint": undefined,
|
|
181
183
|
"keyboardType": "number-pad",
|
|
182
184
|
"multiline": undefined,
|
|
185
|
+
"nativeID": undefined,
|
|
183
186
|
"numberOfLines": 1,
|
|
184
187
|
"onBlur": [Function],
|
|
185
188
|
"onChangeText": [Function],
|
|
@@ -268,6 +271,7 @@ exports[`PhoneNumberField uses US as default country code 1`] = `
|
|
|
268
271
|
"enterKeyHint": undefined,
|
|
269
272
|
"keyboardType": "number-pad",
|
|
270
273
|
"multiline": undefined,
|
|
274
|
+
"nativeID": undefined,
|
|
271
275
|
"numberOfLines": 1,
|
|
272
276
|
"onBlur": [Function],
|
|
273
277
|
"onChangeText": [Function],
|
|
@@ -347,6 +351,7 @@ exports[`PhoneNumberField accepts custom country code 1`] = `
|
|
|
347
351
|
"enterKeyHint": undefined,
|
|
348
352
|
"keyboardType": "number-pad",
|
|
349
353
|
"multiline": undefined,
|
|
354
|
+
"nativeID": undefined,
|
|
350
355
|
"numberOfLines": 1,
|
|
351
356
|
"onBlur": [Function],
|
|
352
357
|
"onChangeText": [Function],
|
|
@@ -462,6 +462,7 @@ exports[`TapToEdit shows editing mode when isEditing is true 1`] = `
|
|
|
462
462
|
"enterKeyHint": undefined,
|
|
463
463
|
"keyboardType": "default",
|
|
464
464
|
"multiline": undefined,
|
|
465
|
+
"nativeID": undefined,
|
|
465
466
|
"numberOfLines": 1,
|
|
466
467
|
"onBlur": [Function],
|
|
467
468
|
"onChangeText": [Function],
|
|
@@ -22,6 +22,7 @@ exports[`TextArea snapshots should match snapshot with default props 1`] = `
|
|
|
22
22
|
"enterKeyHint": undefined,
|
|
23
23
|
"keyboardType": "default",
|
|
24
24
|
"multiline": true,
|
|
25
|
+
"nativeID": undefined,
|
|
25
26
|
"numberOfLines": 1,
|
|
26
27
|
"onBlur": [Function],
|
|
27
28
|
"onChangeText": [class Function],
|
|
@@ -116,6 +117,7 @@ exports[`TextArea snapshots should match snapshot with all props 1`] = `
|
|
|
116
117
|
"enterKeyHint": undefined,
|
|
117
118
|
"keyboardType": "default",
|
|
118
119
|
"multiline": true,
|
|
120
|
+
"nativeID": undefined,
|
|
119
121
|
"numberOfLines": 5,
|
|
120
122
|
"onBlur": [Function],
|
|
121
123
|
"onChangeText": [class Function],
|
|
@@ -236,6 +238,7 @@ exports[`TextArea snapshots should match snapshot when disabled 1`] = `
|
|
|
236
238
|
"enterKeyHint": undefined,
|
|
237
239
|
"keyboardType": "default",
|
|
238
240
|
"multiline": true,
|
|
241
|
+
"nativeID": undefined,
|
|
239
242
|
"numberOfLines": 1,
|
|
240
243
|
"onBlur": [Function],
|
|
241
244
|
"onChangeText": [class Function],
|
|
@@ -369,6 +372,7 @@ exports[`TextArea snapshots should match snapshot with error state 1`] = `
|
|
|
369
372
|
"enterKeyHint": undefined,
|
|
370
373
|
"keyboardType": "default",
|
|
371
374
|
"multiline": true,
|
|
375
|
+
"nativeID": undefined,
|
|
372
376
|
"numberOfLines": 1,
|
|
373
377
|
"onBlur": [Function],
|
|
374
378
|
"onChangeText": [class Function],
|
|
@@ -463,6 +467,7 @@ exports[`TextArea snapshots should match snapshot with multiline content 1`] = `
|
|
|
463
467
|
"enterKeyHint": undefined,
|
|
464
468
|
"keyboardType": "default",
|
|
465
469
|
"multiline": true,
|
|
470
|
+
"nativeID": undefined,
|
|
466
471
|
"numberOfLines": 4,
|
|
467
472
|
"onBlur": [Function],
|
|
468
473
|
"onChangeText": [class Function],
|
|
@@ -22,6 +22,7 @@ exports[`TextField snapshots should match snapshot with default props 1`] = `
|
|
|
22
22
|
"enterKeyHint": undefined,
|
|
23
23
|
"keyboardType": "default",
|
|
24
24
|
"multiline": undefined,
|
|
25
|
+
"nativeID": undefined,
|
|
25
26
|
"numberOfLines": 1,
|
|
26
27
|
"onBlur": [Function],
|
|
27
28
|
"onChangeText": [class Function],
|
|
@@ -155,6 +156,7 @@ exports[`TextField snapshots should match snapshot with all props 1`] = `
|
|
|
155
156
|
"enterKeyHint": undefined,
|
|
156
157
|
"keyboardType": "default",
|
|
157
158
|
"multiline": false,
|
|
159
|
+
"nativeID": undefined,
|
|
158
160
|
"numberOfLines": 1,
|
|
159
161
|
"onBlur": [Function],
|
|
160
162
|
"onChangeText": [class Function],
|
|
@@ -284,6 +286,7 @@ exports[`TextField snapshots should match snapshot when disabled 1`] = `
|
|
|
284
286
|
"enterKeyHint": undefined,
|
|
285
287
|
"keyboardType": "default",
|
|
286
288
|
"multiline": undefined,
|
|
289
|
+
"nativeID": undefined,
|
|
287
290
|
"numberOfLines": 1,
|
|
288
291
|
"onBlur": [Function],
|
|
289
292
|
"onChangeText": [class Function],
|
|
@@ -378,6 +381,7 @@ exports[`TextField snapshots should match snapshot with multiline 1`] = `
|
|
|
378
381
|
"enterKeyHint": undefined,
|
|
379
382
|
"keyboardType": "default",
|
|
380
383
|
"multiline": true,
|
|
384
|
+
"nativeID": undefined,
|
|
381
385
|
"numberOfLines": 3,
|
|
382
386
|
"onBlur": [Function],
|
|
383
387
|
"onChangeText": [class Function],
|
|
@@ -511,6 +515,7 @@ exports[`TextField snapshots should match snapshot with error state 1`] = `
|
|
|
511
515
|
"enterKeyHint": undefined,
|
|
512
516
|
"keyboardType": "default",
|
|
513
517
|
"multiline": undefined,
|
|
518
|
+
"nativeID": undefined,
|
|
514
519
|
"numberOfLines": 1,
|
|
515
520
|
"onBlur": [Function],
|
|
516
521
|
"onChangeText": [class Function],
|
|
@@ -37,6 +37,7 @@ exports[`UnifiedAddressAutoCompleteField renders correctly without Google API ke
|
|
|
37
37
|
"enterKeyHint": undefined,
|
|
38
38
|
"keyboardType": "default",
|
|
39
39
|
"multiline": undefined,
|
|
40
|
+
"nativeID": undefined,
|
|
40
41
|
"numberOfLines": 1,
|
|
41
42
|
"onBlur": [Function],
|
|
42
43
|
"onChangeText": [Function],
|
|
@@ -131,6 +132,7 @@ exports[`UnifiedAddressAutoCompleteField renders with input value 1`] = `
|
|
|
131
132
|
"enterKeyHint": undefined,
|
|
132
133
|
"keyboardType": "default",
|
|
133
134
|
"multiline": undefined,
|
|
135
|
+
"nativeID": undefined,
|
|
134
136
|
"numberOfLines": 1,
|
|
135
137
|
"onBlur": [Function],
|
|
136
138
|
"onChangeText": [Function],
|
|
@@ -225,6 +227,7 @@ exports[`UnifiedAddressAutoCompleteField renders disabled state 1`] = `
|
|
|
225
227
|
"enterKeyHint": undefined,
|
|
226
228
|
"keyboardType": "default",
|
|
227
229
|
"multiline": undefined,
|
|
230
|
+
"nativeID": undefined,
|
|
228
231
|
"numberOfLines": 1,
|
|
229
232
|
"onBlur": [Function],
|
|
230
233
|
"onChangeText": [Function],
|
|
@@ -319,6 +322,7 @@ exports[`UnifiedAddressAutoCompleteField renders with invalid Google API key (fa
|
|
|
319
322
|
"enterKeyHint": undefined,
|
|
320
323
|
"keyboardType": "default",
|
|
321
324
|
"multiline": undefined,
|
|
325
|
+
"nativeID": undefined,
|
|
322
326
|
"numberOfLines": 1,
|
|
323
327
|
"onBlur": [Function],
|
|
324
328
|
"onChangeText": [Function],
|
|
@@ -22,6 +22,7 @@ exports[`WebAddressAutocomplete renders correctly without Google API key 1`] = `
|
|
|
22
22
|
"enterKeyHint": undefined,
|
|
23
23
|
"keyboardType": "default",
|
|
24
24
|
"multiline": undefined,
|
|
25
|
+
"nativeID": undefined,
|
|
25
26
|
"numberOfLines": 1,
|
|
26
27
|
"onBlur": [Function],
|
|
27
28
|
"onChangeText": [Function],
|
|
@@ -101,6 +102,7 @@ exports[`WebAddressAutocomplete renders with input value 1`] = `
|
|
|
101
102
|
"enterKeyHint": undefined,
|
|
102
103
|
"keyboardType": "default",
|
|
103
104
|
"multiline": undefined,
|
|
105
|
+
"nativeID": undefined,
|
|
104
106
|
"numberOfLines": 1,
|
|
105
107
|
"onBlur": [Function],
|
|
106
108
|
"onChangeText": [Function],
|
|
@@ -180,6 +182,7 @@ exports[`WebAddressAutocomplete renders disabled state 1`] = `
|
|
|
180
182
|
"enterKeyHint": undefined,
|
|
181
183
|
"keyboardType": "default",
|
|
182
184
|
"multiline": undefined,
|
|
185
|
+
"nativeID": undefined,
|
|
183
186
|
"numberOfLines": 1,
|
|
184
187
|
"onBlur": [Function],
|
|
185
188
|
"onChangeText": [Function],
|
package/src/index.tsx
CHANGED
|
@@ -91,6 +91,7 @@ export const LoginScreen: FC<LoginScreenProps> = ({
|
|
|
91
91
|
<TextField
|
|
92
92
|
autoComplete={field.autoComplete}
|
|
93
93
|
disabled={loading}
|
|
94
|
+
id={`${testID}-${field.name}-input`}
|
|
94
95
|
key={field.name}
|
|
95
96
|
onChange={(value: string) => handleFieldChange(field.name, value)}
|
|
96
97
|
placeholder={field.placeholder ?? field.label}
|
|
@@ -85,6 +85,7 @@ exports[`LoginScreen renders correctly with all props 1`] = `
|
|
|
85
85
|
"enterKeyHint": undefined,
|
|
86
86
|
"keyboardType": "email-address",
|
|
87
87
|
"multiline": undefined,
|
|
88
|
+
"nativeID": "login-screen-email-input",
|
|
88
89
|
"numberOfLines": 1,
|
|
89
90
|
"onBlur": [Function],
|
|
90
91
|
"onChangeText": [Function],
|
|
@@ -176,6 +177,7 @@ exports[`LoginScreen renders correctly with all props 1`] = `
|
|
|
176
177
|
"enterKeyHint": undefined,
|
|
177
178
|
"keyboardType": "default",
|
|
178
179
|
"multiline": undefined,
|
|
180
|
+
"nativeID": "login-screen-password-input",
|
|
179
181
|
"numberOfLines": 1,
|
|
180
182
|
"onBlur": [Function],
|
|
181
183
|
"onChangeText": [Function],
|
|
@@ -108,6 +108,7 @@ export const SignUpScreen: FC<SignUpScreenProps> = ({
|
|
|
108
108
|
<TextField
|
|
109
109
|
autoComplete={field.autoComplete}
|
|
110
110
|
disabled={loading}
|
|
111
|
+
id={`${testID}-${field.name}-input`}
|
|
111
112
|
key={field.name}
|
|
112
113
|
onChange={(value: string) => handleFieldChange(field.name, value)}
|
|
113
114
|
placeholder={field.placeholder ?? field.label}
|
|
@@ -85,6 +85,7 @@ exports[`SignUpScreen renders correctly with all props 1`] = `
|
|
|
85
85
|
"enterKeyHint": undefined,
|
|
86
86
|
"keyboardType": "default",
|
|
87
87
|
"multiline": undefined,
|
|
88
|
+
"nativeID": "signup-screen-name-input",
|
|
88
89
|
"numberOfLines": 1,
|
|
89
90
|
"onBlur": [Function],
|
|
90
91
|
"onChangeText": [Function],
|
|
@@ -176,6 +177,7 @@ exports[`SignUpScreen renders correctly with all props 1`] = `
|
|
|
176
177
|
"enterKeyHint": undefined,
|
|
177
178
|
"keyboardType": "email-address",
|
|
178
179
|
"multiline": undefined,
|
|
180
|
+
"nativeID": "signup-screen-email-input",
|
|
179
181
|
"numberOfLines": 1,
|
|
180
182
|
"onBlur": [Function],
|
|
181
183
|
"onChangeText": [Function],
|
|
@@ -267,6 +269,7 @@ exports[`SignUpScreen renders correctly with all props 1`] = `
|
|
|
267
269
|
"enterKeyHint": undefined,
|
|
268
270
|
"keyboardType": "default",
|
|
269
271
|
"multiline": undefined,
|
|
272
|
+
"nativeID": "signup-screen-password-input",
|
|
270
273
|
"numberOfLines": 1,
|
|
271
274
|
"onBlur": [Function],
|
|
272
275
|
"onChangeText": [Function],
|