@terreno/ui 0.7.0 → 0.7.1
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/dist/AiSuggestionBox.d.ts +6 -0
- package/dist/AiSuggestionBox.js +87 -0
- package/dist/AiSuggestionBox.js.map +1 -0
- package/dist/Common.d.ts +12 -0
- package/dist/Common.js.map +1 -1
- package/dist/TextField.js +46 -41
- 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/package.json +1 -1
- package/src/AiSuggestionBox.test.tsx +373 -0
- package/src/AiSuggestionBox.tsx +233 -0
- package/src/Common.ts +14 -0
- package/src/TextField.tsx +87 -70
- package/src/__snapshots__/AddressField.test.tsx.snap +208 -156
- package/src/__snapshots__/AiSuggestionBox.test.tsx.snap +1031 -0
- package/src/__snapshots__/CustomSelectField.test.tsx.snap +51 -38
- package/src/__snapshots__/EmailField.test.tsx.snap +111 -85
- package/src/__snapshots__/Field.test.tsx.snap +616 -460
- package/src/__snapshots__/MobileAddressAutoComplete.test.tsx.snap +51 -38
- package/src/__snapshots__/NumberField.test.tsx.snap +51 -38
- package/src/__snapshots__/PhoneNumberField.test.tsx.snap +264 -199
- package/src/__snapshots__/TapToEdit.test.tsx.snap +51 -38
- package/src/__snapshots__/TextArea.test.tsx.snap +255 -190
- package/src/__snapshots__/TextField.test.tsx.snap +264 -199
- package/src/__snapshots__/UnifiedAddressAutoComplete.test.tsx.snap +204 -152
- package/src/__snapshots__/WebAddressAutocomplete.test.tsx.snap +153 -114
- package/src/index.tsx +1 -0
- package/src/login/__snapshots__/LoginScreen.test.tsx.snap +104 -78
- package/src/signUp/__snapshots__/SignUpScreen.test.tsx.snap +156 -117
|
@@ -59,57 +59,70 @@ exports[`MobileAddressAutocomplete renders TextField fallback without Google API
|
|
|
59
59
|
"children": [
|
|
60
60
|
{
|
|
61
61
|
"$$typeof": Symbol(react.test.json),
|
|
62
|
-
"children":
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
62
|
+
"children": [
|
|
63
|
+
{
|
|
64
|
+
"$$typeof": Symbol(react.test.json),
|
|
65
|
+
"children": null,
|
|
66
|
+
"props": {
|
|
67
|
+
"accessibilityHint": "Enter text here",
|
|
68
|
+
"accessibilityState": {
|
|
69
|
+
"disabled": undefined,
|
|
70
|
+
},
|
|
71
|
+
"aria-label": "Text input field",
|
|
72
|
+
"autoCapitalize": "sentences",
|
|
73
|
+
"autoCorrect": true,
|
|
74
|
+
"blurOnSubmit": true,
|
|
75
|
+
"enterKeyHint": undefined,
|
|
76
|
+
"keyboardType": "default",
|
|
77
|
+
"multiline": undefined,
|
|
78
|
+
"nativeID": "address1",
|
|
79
|
+
"numberOfLines": 1,
|
|
80
|
+
"onBlur": [Function],
|
|
81
|
+
"onChangeText": [Function],
|
|
82
|
+
"onContentSizeChange": [Function],
|
|
83
|
+
"onFocus": [Function],
|
|
84
|
+
"onSubmitEditing": [Function],
|
|
85
|
+
"placeholder": undefined,
|
|
86
|
+
"placeholderTextColor": "#686868",
|
|
87
|
+
"readOnly": undefined,
|
|
88
|
+
"ref": [Function],
|
|
89
|
+
"secureTextEntry": false,
|
|
90
|
+
"style": {
|
|
91
|
+
"color": "#1C1C1C",
|
|
92
|
+
"flex": 1,
|
|
93
|
+
"fontFamily": "text",
|
|
94
|
+
"fontSize": 16,
|
|
95
|
+
"gap": 10,
|
|
96
|
+
"height": 20,
|
|
97
|
+
"paddingVertical": 0,
|
|
98
|
+
"width": "100%",
|
|
99
|
+
},
|
|
100
|
+
"testID": undefined,
|
|
101
|
+
"textContentType": "none",
|
|
102
|
+
"underlineColorAndroid": "transparent",
|
|
103
|
+
"value": "",
|
|
104
|
+
},
|
|
105
|
+
"type": "TextInput",
|
|
67
106
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"autoCorrect": true,
|
|
71
|
-
"blurOnSubmit": true,
|
|
72
|
-
"enterKeyHint": undefined,
|
|
73
|
-
"keyboardType": "default",
|
|
74
|
-
"multiline": undefined,
|
|
75
|
-
"nativeID": "address1",
|
|
76
|
-
"numberOfLines": 1,
|
|
77
|
-
"onBlur": [Function],
|
|
78
|
-
"onChangeText": [Function],
|
|
79
|
-
"onContentSizeChange": [Function],
|
|
80
|
-
"onFocus": [Function],
|
|
81
|
-
"onSubmitEditing": [Function],
|
|
82
|
-
"placeholder": undefined,
|
|
83
|
-
"placeholderTextColor": "#686868",
|
|
84
|
-
"readOnly": undefined,
|
|
85
|
-
"ref": [Function],
|
|
86
|
-
"secureTextEntry": false,
|
|
107
|
+
],
|
|
108
|
+
"props": {
|
|
87
109
|
"style": {
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"fontFamily": "text",
|
|
91
|
-
"fontSize": 16,
|
|
92
|
-
"gap": 10,
|
|
93
|
-
"height": 20,
|
|
94
|
-
"paddingVertical": 0,
|
|
95
|
-
"width": "100%",
|
|
110
|
+
"alignItems": "center",
|
|
111
|
+
"flexDirection": "row",
|
|
96
112
|
},
|
|
97
113
|
"testID": undefined,
|
|
98
|
-
"textContentType": "none",
|
|
99
|
-
"underlineColorAndroid": "transparent",
|
|
100
|
-
"value": "",
|
|
101
114
|
},
|
|
102
|
-
"type": "
|
|
115
|
+
"type": "View",
|
|
103
116
|
},
|
|
104
117
|
],
|
|
105
118
|
"props": {
|
|
106
119
|
"style": {
|
|
107
|
-
"alignItems": "center",
|
|
108
120
|
"backgroundColor": "#FFFFFF",
|
|
109
121
|
"borderColor": "#9A9A9A",
|
|
110
122
|
"borderRadius": 4,
|
|
111
123
|
"borderWidth": 1,
|
|
112
|
-
"flexDirection": "
|
|
124
|
+
"flexDirection": "column",
|
|
125
|
+
"gap": 0,
|
|
113
126
|
"overflow": "hidden",
|
|
114
127
|
"paddingHorizontal": 12,
|
|
115
128
|
"paddingVertical": 8,
|
|
@@ -9,57 +9,70 @@ exports[`NumberField renders correctly with default props 1`] = `
|
|
|
9
9
|
"children": [
|
|
10
10
|
{
|
|
11
11
|
"$$typeof": Symbol(react.test.json),
|
|
12
|
-
"children":
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
12
|
+
"children": [
|
|
13
|
+
{
|
|
14
|
+
"$$typeof": Symbol(react.test.json),
|
|
15
|
+
"children": null,
|
|
16
|
+
"props": {
|
|
17
|
+
"accessibilityHint": "Enter text here",
|
|
18
|
+
"accessibilityState": {
|
|
19
|
+
"disabled": undefined,
|
|
20
|
+
},
|
|
21
|
+
"aria-label": "Text input field",
|
|
22
|
+
"autoCapitalize": "sentences",
|
|
23
|
+
"autoCorrect": true,
|
|
24
|
+
"blurOnSubmit": true,
|
|
25
|
+
"enterKeyHint": undefined,
|
|
26
|
+
"keyboardType": "default",
|
|
27
|
+
"multiline": undefined,
|
|
28
|
+
"nativeID": undefined,
|
|
29
|
+
"numberOfLines": 1,
|
|
30
|
+
"onBlur": [Function],
|
|
31
|
+
"onChangeText": [Function],
|
|
32
|
+
"onContentSizeChange": [Function],
|
|
33
|
+
"onFocus": [Function],
|
|
34
|
+
"onSubmitEditing": [Function],
|
|
35
|
+
"placeholder": undefined,
|
|
36
|
+
"placeholderTextColor": "#686868",
|
|
37
|
+
"readOnly": undefined,
|
|
38
|
+
"ref": [Function],
|
|
39
|
+
"secureTextEntry": false,
|
|
40
|
+
"style": {
|
|
41
|
+
"color": "#1C1C1C",
|
|
42
|
+
"flex": 1,
|
|
43
|
+
"fontFamily": "text",
|
|
44
|
+
"fontSize": 16,
|
|
45
|
+
"gap": 10,
|
|
46
|
+
"height": 20,
|
|
47
|
+
"paddingVertical": 0,
|
|
48
|
+
"width": "100%",
|
|
49
|
+
},
|
|
50
|
+
"testID": undefined,
|
|
51
|
+
"textContentType": "none",
|
|
52
|
+
"underlineColorAndroid": "transparent",
|
|
53
|
+
"value": "",
|
|
54
|
+
},
|
|
55
|
+
"type": "TextInput",
|
|
17
56
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"autoCorrect": true,
|
|
21
|
-
"blurOnSubmit": true,
|
|
22
|
-
"enterKeyHint": undefined,
|
|
23
|
-
"keyboardType": "default",
|
|
24
|
-
"multiline": undefined,
|
|
25
|
-
"nativeID": undefined,
|
|
26
|
-
"numberOfLines": 1,
|
|
27
|
-
"onBlur": [Function],
|
|
28
|
-
"onChangeText": [Function],
|
|
29
|
-
"onContentSizeChange": [Function],
|
|
30
|
-
"onFocus": [Function],
|
|
31
|
-
"onSubmitEditing": [Function],
|
|
32
|
-
"placeholder": undefined,
|
|
33
|
-
"placeholderTextColor": "#686868",
|
|
34
|
-
"readOnly": undefined,
|
|
35
|
-
"ref": [Function],
|
|
36
|
-
"secureTextEntry": false,
|
|
57
|
+
],
|
|
58
|
+
"props": {
|
|
37
59
|
"style": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"fontFamily": "text",
|
|
41
|
-
"fontSize": 16,
|
|
42
|
-
"gap": 10,
|
|
43
|
-
"height": 20,
|
|
44
|
-
"paddingVertical": 0,
|
|
45
|
-
"width": "100%",
|
|
60
|
+
"alignItems": "center",
|
|
61
|
+
"flexDirection": "row",
|
|
46
62
|
},
|
|
47
63
|
"testID": undefined,
|
|
48
|
-
"textContentType": "none",
|
|
49
|
-
"underlineColorAndroid": "transparent",
|
|
50
|
-
"value": "",
|
|
51
64
|
},
|
|
52
|
-
"type": "
|
|
65
|
+
"type": "View",
|
|
53
66
|
},
|
|
54
67
|
],
|
|
55
68
|
"props": {
|
|
56
69
|
"style": {
|
|
57
|
-
"alignItems": "center",
|
|
58
70
|
"backgroundColor": "#FFFFFF",
|
|
59
71
|
"borderColor": "#9A9A9A",
|
|
60
72
|
"borderRadius": 4,
|
|
61
73
|
"borderWidth": 1,
|
|
62
|
-
"flexDirection": "
|
|
74
|
+
"flexDirection": "column",
|
|
75
|
+
"gap": 0,
|
|
63
76
|
"overflow": "hidden",
|
|
64
77
|
"paddingHorizontal": 12,
|
|
65
78
|
"paddingVertical": 8,
|