@terreno/ui 0.7.0 → 0.7.2

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.
Files changed (37) hide show
  1. package/dist/AiSuggestionBox.d.ts +6 -0
  2. package/dist/AiSuggestionBox.js +87 -0
  3. package/dist/AiSuggestionBox.js.map +1 -0
  4. package/dist/Common.d.ts +12 -0
  5. package/dist/Common.js.map +1 -1
  6. package/dist/DateTimeActionSheet.js +2 -2
  7. package/dist/Slider.js +2 -8
  8. package/dist/Slider.js.map +1 -1
  9. package/dist/TextField.js +46 -41
  10. package/dist/TextField.js.map +1 -1
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.js +1 -0
  13. package/dist/index.js.map +1 -1
  14. package/package.json +1 -1
  15. package/src/AiSuggestionBox.test.tsx +373 -0
  16. package/src/AiSuggestionBox.tsx +233 -0
  17. package/src/Common.ts +14 -0
  18. package/src/DateTimeActionSheet.tsx +2 -2
  19. package/src/Slider.tsx +2 -1
  20. package/src/TextField.tsx +87 -70
  21. package/src/__snapshots__/AddressField.test.tsx.snap +208 -156
  22. package/src/__snapshots__/AiSuggestionBox.test.tsx.snap +1031 -0
  23. package/src/__snapshots__/CustomSelectField.test.tsx.snap +51 -38
  24. package/src/__snapshots__/EmailField.test.tsx.snap +111 -85
  25. package/src/__snapshots__/Field.test.tsx.snap +616 -460
  26. package/src/__snapshots__/MobileAddressAutoComplete.test.tsx.snap +51 -38
  27. package/src/__snapshots__/NumberField.test.tsx.snap +51 -38
  28. package/src/__snapshots__/PhoneNumberField.test.tsx.snap +264 -199
  29. package/src/__snapshots__/Slider.test.tsx.snap +0 -7
  30. package/src/__snapshots__/TapToEdit.test.tsx.snap +51 -38
  31. package/src/__snapshots__/TextArea.test.tsx.snap +255 -190
  32. package/src/__snapshots__/TextField.test.tsx.snap +264 -199
  33. package/src/__snapshots__/UnifiedAddressAutoComplete.test.tsx.snap +204 -152
  34. package/src/__snapshots__/WebAddressAutocomplete.test.tsx.snap +153 -114
  35. package/src/index.tsx +1 -0
  36. package/src/login/__snapshots__/LoginScreen.test.tsx.snap +104 -78
  37. package/src/signUp/__snapshots__/SignUpScreen.test.tsx.snap +156 -117
@@ -72,57 +72,70 @@ exports[`SignUpScreen renders correctly with all props 1`] = `
72
72
  "children": [
73
73
  {
74
74
  "$$typeof": Symbol(react.test.json),
75
- "children": null,
76
- "props": {
77
- "accessibilityHint": "Enter text here",
78
- "accessibilityState": {
79
- "disabled": true,
75
+ "children": [
76
+ {
77
+ "$$typeof": Symbol(react.test.json),
78
+ "children": null,
79
+ "props": {
80
+ "accessibilityHint": "Enter text here",
81
+ "accessibilityState": {
82
+ "disabled": true,
83
+ },
84
+ "aria-label": "Text input field",
85
+ "autoCapitalize": "sentences",
86
+ "autoCorrect": true,
87
+ "blurOnSubmit": true,
88
+ "enterKeyHint": undefined,
89
+ "keyboardType": "default",
90
+ "multiline": undefined,
91
+ "nativeID": "signup-screen-name-input",
92
+ "numberOfLines": 1,
93
+ "onBlur": [Function],
94
+ "onChangeText": [Function],
95
+ "onContentSizeChange": [Function],
96
+ "onFocus": [Function],
97
+ "onSubmitEditing": [Function],
98
+ "placeholder": "Name",
99
+ "placeholderTextColor": "#686868",
100
+ "readOnly": true,
101
+ "ref": [Function],
102
+ "secureTextEntry": false,
103
+ "style": {
104
+ "color": "#1C1C1C",
105
+ "flex": 1,
106
+ "fontFamily": "text",
107
+ "fontSize": 16,
108
+ "gap": 10,
109
+ "height": 20,
110
+ "paddingVertical": 0,
111
+ "width": "100%",
112
+ },
113
+ "testID": "signup-screen-name-input",
114
+ "textContentType": "none",
115
+ "underlineColorAndroid": "transparent",
116
+ "value": "",
117
+ },
118
+ "type": "TextInput",
80
119
  },
81
- "aria-label": "Text input field",
82
- "autoCapitalize": "sentences",
83
- "autoCorrect": true,
84
- "blurOnSubmit": true,
85
- "enterKeyHint": undefined,
86
- "keyboardType": "default",
87
- "multiline": undefined,
88
- "nativeID": "signup-screen-name-input",
89
- "numberOfLines": 1,
90
- "onBlur": [Function],
91
- "onChangeText": [Function],
92
- "onContentSizeChange": [Function],
93
- "onFocus": [Function],
94
- "onSubmitEditing": [Function],
95
- "placeholder": "Name",
96
- "placeholderTextColor": "#686868",
97
- "readOnly": true,
98
- "ref": [Function],
99
- "secureTextEntry": false,
120
+ ],
121
+ "props": {
100
122
  "style": {
101
- "color": "#1C1C1C",
102
- "flex": 1,
103
- "fontFamily": "text",
104
- "fontSize": 16,
105
- "gap": 10,
106
- "height": 20,
107
- "paddingVertical": 0,
108
- "width": "100%",
123
+ "alignItems": "center",
124
+ "flexDirection": "row",
109
125
  },
110
- "testID": "signup-screen-name-input",
111
- "textContentType": "none",
112
- "underlineColorAndroid": "transparent",
113
- "value": "",
126
+ "testID": undefined,
114
127
  },
115
- "type": "TextInput",
128
+ "type": "View",
116
129
  },
117
130
  ],
118
131
  "props": {
119
132
  "style": {
120
- "alignItems": "center",
121
133
  "backgroundColor": "#D9D9D9",
122
134
  "borderColor": "#4E4E4E",
123
135
  "borderRadius": 4,
124
136
  "borderWidth": 1,
125
- "flexDirection": "row",
137
+ "flexDirection": "column",
138
+ "gap": 0,
126
139
  "overflow": "hidden",
127
140
  "paddingHorizontal": 12,
128
141
  "paddingVertical": 8,
@@ -164,57 +177,70 @@ exports[`SignUpScreen renders correctly with all props 1`] = `
164
177
  "children": [
165
178
  {
166
179
  "$$typeof": Symbol(react.test.json),
167
- "children": null,
168
- "props": {
169
- "accessibilityHint": "Enter text here",
170
- "accessibilityState": {
171
- "disabled": true,
180
+ "children": [
181
+ {
182
+ "$$typeof": Symbol(react.test.json),
183
+ "children": null,
184
+ "props": {
185
+ "accessibilityHint": "Enter text here",
186
+ "accessibilityState": {
187
+ "disabled": true,
188
+ },
189
+ "aria-label": "Text input field",
190
+ "autoCapitalize": "none",
191
+ "autoCorrect": false,
192
+ "blurOnSubmit": true,
193
+ "enterKeyHint": undefined,
194
+ "keyboardType": "email-address",
195
+ "multiline": undefined,
196
+ "nativeID": "signup-screen-email-input",
197
+ "numberOfLines": 1,
198
+ "onBlur": [Function],
199
+ "onChangeText": [Function],
200
+ "onContentSizeChange": [Function],
201
+ "onFocus": [Function],
202
+ "onSubmitEditing": [Function],
203
+ "placeholder": "Email",
204
+ "placeholderTextColor": "#686868",
205
+ "readOnly": true,
206
+ "ref": [Function],
207
+ "secureTextEntry": false,
208
+ "style": {
209
+ "color": "#1C1C1C",
210
+ "flex": 1,
211
+ "fontFamily": "text",
212
+ "fontSize": 16,
213
+ "gap": 10,
214
+ "height": 20,
215
+ "paddingVertical": 0,
216
+ "width": "100%",
217
+ },
218
+ "testID": "signup-screen-email-input",
219
+ "textContentType": "emailAddress",
220
+ "underlineColorAndroid": "transparent",
221
+ "value": "",
222
+ },
223
+ "type": "TextInput",
172
224
  },
173
- "aria-label": "Text input field",
174
- "autoCapitalize": "none",
175
- "autoCorrect": false,
176
- "blurOnSubmit": true,
177
- "enterKeyHint": undefined,
178
- "keyboardType": "email-address",
179
- "multiline": undefined,
180
- "nativeID": "signup-screen-email-input",
181
- "numberOfLines": 1,
182
- "onBlur": [Function],
183
- "onChangeText": [Function],
184
- "onContentSizeChange": [Function],
185
- "onFocus": [Function],
186
- "onSubmitEditing": [Function],
187
- "placeholder": "Email",
188
- "placeholderTextColor": "#686868",
189
- "readOnly": true,
190
- "ref": [Function],
191
- "secureTextEntry": false,
225
+ ],
226
+ "props": {
192
227
  "style": {
193
- "color": "#1C1C1C",
194
- "flex": 1,
195
- "fontFamily": "text",
196
- "fontSize": 16,
197
- "gap": 10,
198
- "height": 20,
199
- "paddingVertical": 0,
200
- "width": "100%",
228
+ "alignItems": "center",
229
+ "flexDirection": "row",
201
230
  },
202
- "testID": "signup-screen-email-input",
203
- "textContentType": "emailAddress",
204
- "underlineColorAndroid": "transparent",
205
- "value": "",
231
+ "testID": undefined,
206
232
  },
207
- "type": "TextInput",
233
+ "type": "View",
208
234
  },
209
235
  ],
210
236
  "props": {
211
237
  "style": {
212
- "alignItems": "center",
213
238
  "backgroundColor": "#D9D9D9",
214
239
  "borderColor": "#4E4E4E",
215
240
  "borderRadius": 4,
216
241
  "borderWidth": 1,
217
- "flexDirection": "row",
242
+ "flexDirection": "column",
243
+ "gap": 0,
218
244
  "overflow": "hidden",
219
245
  "paddingHorizontal": 12,
220
246
  "paddingVertical": 8,
@@ -256,57 +282,70 @@ exports[`SignUpScreen renders correctly with all props 1`] = `
256
282
  "children": [
257
283
  {
258
284
  "$$typeof": Symbol(react.test.json),
259
- "children": null,
260
- "props": {
261
- "accessibilityHint": "Enter text here",
262
- "accessibilityState": {
263
- "disabled": true,
285
+ "children": [
286
+ {
287
+ "$$typeof": Symbol(react.test.json),
288
+ "children": null,
289
+ "props": {
290
+ "accessibilityHint": "Enter text here",
291
+ "accessibilityState": {
292
+ "disabled": true,
293
+ },
294
+ "aria-label": "Text input field",
295
+ "autoCapitalize": "none",
296
+ "autoCorrect": false,
297
+ "blurOnSubmit": true,
298
+ "enterKeyHint": undefined,
299
+ "keyboardType": "default",
300
+ "multiline": undefined,
301
+ "nativeID": "signup-screen-password-input",
302
+ "numberOfLines": 1,
303
+ "onBlur": [Function],
304
+ "onChangeText": [Function],
305
+ "onContentSizeChange": [Function],
306
+ "onFocus": [Function],
307
+ "onSubmitEditing": [Function],
308
+ "placeholder": "Password",
309
+ "placeholderTextColor": "#686868",
310
+ "readOnly": true,
311
+ "ref": [Function],
312
+ "secureTextEntry": true,
313
+ "style": {
314
+ "color": "#1C1C1C",
315
+ "flex": 1,
316
+ "fontFamily": "text",
317
+ "fontSize": 16,
318
+ "gap": 10,
319
+ "height": 20,
320
+ "paddingVertical": 0,
321
+ "width": "100%",
322
+ },
323
+ "testID": "signup-screen-password-input",
324
+ "textContentType": "password",
325
+ "underlineColorAndroid": "transparent",
326
+ "value": "",
327
+ },
328
+ "type": "TextInput",
264
329
  },
265
- "aria-label": "Text input field",
266
- "autoCapitalize": "none",
267
- "autoCorrect": false,
268
- "blurOnSubmit": true,
269
- "enterKeyHint": undefined,
270
- "keyboardType": "default",
271
- "multiline": undefined,
272
- "nativeID": "signup-screen-password-input",
273
- "numberOfLines": 1,
274
- "onBlur": [Function],
275
- "onChangeText": [Function],
276
- "onContentSizeChange": [Function],
277
- "onFocus": [Function],
278
- "onSubmitEditing": [Function],
279
- "placeholder": "Password",
280
- "placeholderTextColor": "#686868",
281
- "readOnly": true,
282
- "ref": [Function],
283
- "secureTextEntry": true,
330
+ ],
331
+ "props": {
284
332
  "style": {
285
- "color": "#1C1C1C",
286
- "flex": 1,
287
- "fontFamily": "text",
288
- "fontSize": 16,
289
- "gap": 10,
290
- "height": 20,
291
- "paddingVertical": 0,
292
- "width": "100%",
333
+ "alignItems": "center",
334
+ "flexDirection": "row",
293
335
  },
294
- "testID": "signup-screen-password-input",
295
- "textContentType": "password",
296
- "underlineColorAndroid": "transparent",
297
- "value": "",
336
+ "testID": undefined,
298
337
  },
299
- "type": "TextInput",
338
+ "type": "View",
300
339
  },
301
340
  ],
302
341
  "props": {
303
342
  "style": {
304
- "alignItems": "center",
305
343
  "backgroundColor": "#D9D9D9",
306
344
  "borderColor": "#4E4E4E",
307
345
  "borderRadius": 4,
308
346
  "borderWidth": 1,
309
- "flexDirection": "row",
347
+ "flexDirection": "column",
348
+ "gap": 0,
310
349
  "overflow": "hidden",
311
350
  "paddingHorizontal": 12,
312
351
  "paddingVertical": 8,