@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
@@ -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": null,
63
- "props": {
64
- "accessibilityHint": "Enter text here",
65
- "accessibilityState": {
66
- "disabled": undefined,
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
- "aria-label": "Text input field",
69
- "autoCapitalize": "sentences",
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
- "color": "#1C1C1C",
89
- "flex": 1,
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": "TextInput",
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": "row",
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": null,
13
- "props": {
14
- "accessibilityHint": "Enter text here",
15
- "accessibilityState": {
16
- "disabled": undefined,
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
- "aria-label": "Text input field",
19
- "autoCapitalize": "sentences",
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
- "color": "#1C1C1C",
39
- "flex": 1,
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": "TextInput",
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": "row",
74
+ "flexDirection": "column",
75
+ "gap": 0,
63
76
  "overflow": "hidden",
64
77
  "paddingHorizontal": 12,
65
78
  "paddingVertical": 8,