@terreno/ui 0.6.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.
Files changed (52) hide show
  1. package/README.md +5 -5
  2. package/dist/AiSuggestionBox.d.ts +6 -0
  3. package/dist/AiSuggestionBox.js +87 -0
  4. package/dist/AiSuggestionBox.js.map +1 -0
  5. package/dist/Common.d.ts +13 -0
  6. package/dist/Common.js.map +1 -1
  7. package/dist/CommonIconTypes.d.ts +1 -1
  8. package/dist/FlatList.js.map +1 -1
  9. package/dist/GPTChat.d.ts +2 -1
  10. package/dist/GPTChat.js +14 -4
  11. package/dist/GPTChat.js.map +1 -1
  12. package/dist/Page.js +2 -1
  13. package/dist/Page.js.map +1 -1
  14. package/dist/ScrollView.js.map +1 -1
  15. package/dist/TextField.js +46 -41
  16. package/dist/TextField.js.map +1 -1
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.js +1 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/login/LoginScreen.js +1 -1
  21. package/dist/login/LoginScreen.js.map +1 -1
  22. package/dist/signUp/SignUpScreen.js +1 -1
  23. package/dist/signUp/SignUpScreen.js.map +1 -1
  24. package/package.json +1 -1
  25. package/src/AiSuggestionBox.test.tsx +373 -0
  26. package/src/AiSuggestionBox.tsx +233 -0
  27. package/src/Common.ts +15 -0
  28. package/src/CommonIconTypes.ts +1 -1
  29. package/src/FlatList.tsx +1 -0
  30. package/src/GPTChat.tsx +40 -2
  31. package/src/Page.tsx +20 -9
  32. package/src/ScrollView.tsx +1 -0
  33. package/src/TextField.tsx +88 -69
  34. package/src/__snapshots__/AddressField.test.tsx.snap +208 -152
  35. package/src/__snapshots__/AiSuggestionBox.test.tsx.snap +1031 -0
  36. package/src/__snapshots__/CustomSelectField.test.tsx.snap +51 -37
  37. package/src/__snapshots__/EmailField.test.tsx.snap +111 -83
  38. package/src/__snapshots__/Field.test.tsx.snap +616 -448
  39. package/src/__snapshots__/MobileAddressAutoComplete.test.tsx.snap +51 -37
  40. package/src/__snapshots__/NumberField.test.tsx.snap +51 -37
  41. package/src/__snapshots__/Page.test.tsx.snap +15 -20
  42. package/src/__snapshots__/PhoneNumberField.test.tsx.snap +264 -194
  43. package/src/__snapshots__/TapToEdit.test.tsx.snap +51 -37
  44. package/src/__snapshots__/TextArea.test.tsx.snap +255 -185
  45. package/src/__snapshots__/TextField.test.tsx.snap +264 -194
  46. package/src/__snapshots__/UnifiedAddressAutoComplete.test.tsx.snap +204 -148
  47. package/src/__snapshots__/WebAddressAutocomplete.test.tsx.snap +153 -111
  48. package/src/index.tsx +1 -0
  49. package/src/login/LoginScreen.tsx +1 -0
  50. package/src/login/__snapshots__/LoginScreen.test.tsx.snap +104 -76
  51. package/src/signUp/SignUpScreen.tsx +1 -0
  52. package/src/signUp/__snapshots__/SignUpScreen.test.tsx.snap +156 -114
@@ -1577,56 +1577,70 @@ exports[`CustomSelectField renders with custom value (not in options) 1`] = `
1577
1577
  "children": [
1578
1578
  {
1579
1579
  "$$typeof": Symbol(react.test.json),
1580
- "children": null,
1581
- "props": {
1582
- "accessibilityHint": "Enter text here",
1583
- "accessibilityState": {
1584
- "disabled": undefined,
1580
+ "children": [
1581
+ {
1582
+ "$$typeof": Symbol(react.test.json),
1583
+ "children": null,
1584
+ "props": {
1585
+ "accessibilityHint": "Enter text here",
1586
+ "accessibilityState": {
1587
+ "disabled": undefined,
1588
+ },
1589
+ "aria-label": "Text input field",
1590
+ "autoCapitalize": "sentences",
1591
+ "autoCorrect": true,
1592
+ "blurOnSubmit": true,
1593
+ "enterKeyHint": undefined,
1594
+ "keyboardType": "default",
1595
+ "multiline": undefined,
1596
+ "nativeID": "customOptions",
1597
+ "numberOfLines": 1,
1598
+ "onBlur": [Function],
1599
+ "onChangeText": [Function],
1600
+ "onContentSizeChange": [Function],
1601
+ "onFocus": [Function],
1602
+ "onSubmitEditing": [Function],
1603
+ "placeholder": "None selected",
1604
+ "placeholderTextColor": "#686868",
1605
+ "readOnly": undefined,
1606
+ "ref": [Function],
1607
+ "secureTextEntry": false,
1608
+ "style": {
1609
+ "color": "#1C1C1C",
1610
+ "flex": 1,
1611
+ "fontFamily": "text",
1612
+ "fontSize": 16,
1613
+ "gap": 10,
1614
+ "height": 20,
1615
+ "paddingVertical": 0,
1616
+ "width": "100%",
1617
+ },
1618
+ "testID": undefined,
1619
+ "textContentType": "none",
1620
+ "underlineColorAndroid": "transparent",
1621
+ "value": "custom-value",
1622
+ },
1623
+ "type": "TextInput",
1585
1624
  },
1586
- "aria-label": "Text input field",
1587
- "autoCapitalize": "sentences",
1588
- "autoCorrect": true,
1589
- "blurOnSubmit": true,
1590
- "enterKeyHint": undefined,
1591
- "keyboardType": "default",
1592
- "multiline": undefined,
1593
- "numberOfLines": 1,
1594
- "onBlur": [Function],
1595
- "onChangeText": [Function],
1596
- "onContentSizeChange": [Function],
1597
- "onFocus": [Function],
1598
- "onSubmitEditing": [Function],
1599
- "placeholder": "None selected",
1600
- "placeholderTextColor": "#686868",
1601
- "readOnly": undefined,
1602
- "ref": [Function],
1603
- "secureTextEntry": false,
1625
+ ],
1626
+ "props": {
1604
1627
  "style": {
1605
- "color": "#1C1C1C",
1606
- "flex": 1,
1607
- "fontFamily": "text",
1608
- "fontSize": 16,
1609
- "gap": 10,
1610
- "height": 20,
1611
- "paddingVertical": 0,
1612
- "width": "100%",
1628
+ "alignItems": "center",
1629
+ "flexDirection": "row",
1613
1630
  },
1614
1631
  "testID": undefined,
1615
- "textContentType": "none",
1616
- "underlineColorAndroid": "transparent",
1617
- "value": "custom-value",
1618
1632
  },
1619
- "type": "TextInput",
1633
+ "type": "View",
1620
1634
  },
1621
1635
  ],
1622
1636
  "props": {
1623
1637
  "style": {
1624
- "alignItems": "center",
1625
1638
  "backgroundColor": "#FFFFFF",
1626
1639
  "borderColor": "#9A9A9A",
1627
1640
  "borderRadius": 4,
1628
1641
  "borderWidth": 1,
1629
- "flexDirection": "row",
1642
+ "flexDirection": "column",
1643
+ "gap": 0,
1630
1644
  "overflow": "hidden",
1631
1645
  "paddingHorizontal": 12,
1632
1646
  "paddingVertical": 8,
@@ -9,56 +9,70 @@ exports[`EmailField 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": "none",
23
+ "autoCorrect": false,
24
+ "blurOnSubmit": true,
25
+ "enterKeyHint": undefined,
26
+ "keyboardType": "email-address",
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": "emailAddress",
52
+ "underlineColorAndroid": "transparent",
53
+ "value": "",
54
+ },
55
+ "type": "TextInput",
17
56
  },
18
- "aria-label": "Text input field",
19
- "autoCapitalize": "none",
20
- "autoCorrect": false,
21
- "blurOnSubmit": true,
22
- "enterKeyHint": undefined,
23
- "keyboardType": "email-address",
24
- "multiline": undefined,
25
- "numberOfLines": 1,
26
- "onBlur": [Function],
27
- "onChangeText": [Function],
28
- "onContentSizeChange": [Function],
29
- "onFocus": [Function],
30
- "onSubmitEditing": [Function],
31
- "placeholder": undefined,
32
- "placeholderTextColor": "#686868",
33
- "readOnly": undefined,
34
- "ref": [Function],
35
- "secureTextEntry": false,
57
+ ],
58
+ "props": {
36
59
  "style": {
37
- "color": "#1C1C1C",
38
- "flex": 1,
39
- "fontFamily": "text",
40
- "fontSize": 16,
41
- "gap": 10,
42
- "height": 20,
43
- "paddingVertical": 0,
44
- "width": "100%",
60
+ "alignItems": "center",
61
+ "flexDirection": "row",
45
62
  },
46
63
  "testID": undefined,
47
- "textContentType": "emailAddress",
48
- "underlineColorAndroid": "transparent",
49
- "value": "",
50
64
  },
51
- "type": "TextInput",
65
+ "type": "View",
52
66
  },
53
67
  ],
54
68
  "props": {
55
69
  "style": {
56
- "alignItems": "center",
57
70
  "backgroundColor": "#FFFFFF",
58
71
  "borderColor": "#9A9A9A",
59
72
  "borderRadius": 4,
60
73
  "borderWidth": 1,
61
- "flexDirection": "row",
74
+ "flexDirection": "column",
75
+ "gap": 0,
62
76
  "overflow": "hidden",
63
77
  "paddingHorizontal": 12,
64
78
  "paddingVertical": 8,
@@ -88,65 +102,79 @@ exports[`EmailField renders with icon 1`] = `
88
102
  "children": [
89
103
  {
90
104
  "$$typeof": Symbol(react.test.json),
91
- "children": null,
92
- "props": {
93
- "accessibilityHint": "Enter text here",
94
- "accessibilityState": {
95
- "disabled": undefined,
105
+ "children": [
106
+ {
107
+ "$$typeof": Symbol(react.test.json),
108
+ "children": null,
109
+ "props": {
110
+ "accessibilityHint": "Enter text here",
111
+ "accessibilityState": {
112
+ "disabled": undefined,
113
+ },
114
+ "aria-label": "Text input field",
115
+ "autoCapitalize": "none",
116
+ "autoCorrect": false,
117
+ "blurOnSubmit": true,
118
+ "enterKeyHint": undefined,
119
+ "keyboardType": "email-address",
120
+ "multiline": undefined,
121
+ "nativeID": undefined,
122
+ "numberOfLines": 1,
123
+ "onBlur": [Function],
124
+ "onChangeText": [Function],
125
+ "onContentSizeChange": [Function],
126
+ "onFocus": [Function],
127
+ "onSubmitEditing": [Function],
128
+ "placeholder": undefined,
129
+ "placeholderTextColor": "#686868",
130
+ "readOnly": undefined,
131
+ "ref": [Function],
132
+ "secureTextEntry": false,
133
+ "style": {
134
+ "color": "#1C1C1C",
135
+ "flex": 1,
136
+ "fontFamily": "text",
137
+ "fontSize": 16,
138
+ "gap": 10,
139
+ "height": 20,
140
+ "paddingVertical": 0,
141
+ "width": "100%",
142
+ },
143
+ "testID": undefined,
144
+ "textContentType": "emailAddress",
145
+ "underlineColorAndroid": "transparent",
146
+ "value": "",
147
+ },
148
+ "type": "TextInput",
96
149
  },
97
- "aria-label": "Text input field",
98
- "autoCapitalize": "none",
99
- "autoCorrect": false,
100
- "blurOnSubmit": true,
101
- "enterKeyHint": undefined,
102
- "keyboardType": "email-address",
103
- "multiline": undefined,
104
- "numberOfLines": 1,
105
- "onBlur": [Function],
106
- "onChangeText": [Function],
107
- "onContentSizeChange": [Function],
108
- "onFocus": [Function],
109
- "onSubmitEditing": [Function],
110
- "placeholder": undefined,
111
- "placeholderTextColor": "#686868",
112
- "readOnly": undefined,
113
- "ref": [Function],
114
- "secureTextEntry": false,
150
+ {
151
+ "$$typeof": Symbol(react.test.json),
152
+ "children": null,
153
+ "props": {
154
+ "aria-role": "button",
155
+ "onPress": undefined,
156
+ },
157
+ "type": "Pressable",
158
+ },
159
+ ],
160
+ "props": {
115
161
  "style": {
116
- "color": "#1C1C1C",
117
- "flex": 1,
118
- "fontFamily": "text",
119
- "fontSize": 16,
120
- "gap": 10,
121
- "height": 20,
122
- "paddingVertical": 0,
123
- "width": "100%",
162
+ "alignItems": "center",
163
+ "flexDirection": "row",
124
164
  },
125
165
  "testID": undefined,
126
- "textContentType": "emailAddress",
127
- "underlineColorAndroid": "transparent",
128
- "value": "",
129
- },
130
- "type": "TextInput",
131
- },
132
- {
133
- "$$typeof": Symbol(react.test.json),
134
- "children": null,
135
- "props": {
136
- "aria-role": "button",
137
- "onPress": undefined,
138
166
  },
139
- "type": "Pressable",
167
+ "type": "View",
140
168
  },
141
169
  ],
142
170
  "props": {
143
171
  "style": {
144
- "alignItems": "center",
145
172
  "backgroundColor": "#FFFFFF",
146
173
  "borderColor": "#9A9A9A",
147
174
  "borderRadius": 4,
148
175
  "borderWidth": 1,
149
- "flexDirection": "row",
176
+ "flexDirection": "column",
177
+ "gap": 0,
150
178
  "overflow": "hidden",
151
179
  "paddingHorizontal": 12,
152
180
  "paddingVertical": 8,