@terreno/ui 0.0.16 → 0.0.18

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 (46) hide show
  1. package/dist/Button.js +7 -9
  2. package/dist/Button.js.map +1 -1
  3. package/dist/Common.d.ts +39 -0
  4. package/dist/TerrenoProvider.js +1 -1
  5. package/dist/TerrenoProvider.js.map +1 -1
  6. package/dist/Toast.js +2 -3
  7. package/dist/Toast.js.map +1 -1
  8. package/dist/ToastNotifications.d.ts +144 -0
  9. package/dist/ToastNotifications.js +387 -0
  10. package/dist/ToastNotifications.js.map +1 -0
  11. package/dist/UserInactivity.d.ts +28 -0
  12. package/dist/UserInactivity.js +100 -0
  13. package/dist/UserInactivity.js.map +1 -0
  14. package/dist/index.d.ts +1 -0
  15. package/dist/index.js +1 -0
  16. package/dist/index.js.map +1 -1
  17. package/package.json +1 -2
  18. package/src/Button.tsx +20 -37
  19. package/src/Common.ts +45 -0
  20. package/src/DateTimeActionSheet.test.tsx +53 -4
  21. package/src/MobileAddressAutoComplete.test.tsx +47 -4
  22. package/src/ModalSheet.test.tsx +37 -5
  23. package/src/PickerSelect.test.tsx +41 -5
  24. package/src/Signature.test.tsx +21 -4
  25. package/src/SignatureField.test.tsx +49 -5
  26. package/src/SplitPage.test.tsx +71 -4
  27. package/src/TerrenoProvider.tsx +1 -1
  28. package/src/Toast.tsx +2 -3
  29. package/src/ToastNotifications.test.tsx +645 -0
  30. package/src/ToastNotifications.tsx +746 -0
  31. package/src/UnifiedAddressAutoComplete.test.tsx +43 -5
  32. package/src/UserInactivity.test.tsx +96 -0
  33. package/src/UserInactivity.tsx +129 -0
  34. package/src/WebAddressAutocomplete.test.tsx +22 -4
  35. package/src/__snapshots__/Button.test.tsx.snap +0 -347
  36. package/src/__snapshots__/DateTimeActionSheet.test.tsx.snap +11 -0
  37. package/src/__snapshots__/MobileAddressAutoComplete.test.tsx.snap +230 -0
  38. package/src/__snapshots__/ModalSheet.test.tsx.snap +37 -0
  39. package/src/__snapshots__/PickerSelect.test.tsx.snap +798 -11
  40. package/src/__snapshots__/Signature.test.tsx.snap +67 -0
  41. package/src/__snapshots__/SignatureField.test.tsx.snap +129 -21
  42. package/src/__snapshots__/SplitPage.test.tsx.snap +686 -0
  43. package/src/__snapshots__/UnifiedAddressAutoComplete.test.tsx.snap +377 -0
  44. package/src/__snapshots__/UserInactivity.test.tsx.snap +108 -0
  45. package/src/__snapshots__/WebAddressAutocomplete.test.tsx.snap +238 -0
  46. package/src/index.tsx +1 -0
@@ -0,0 +1,238 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`WebAddressAutocomplete renders correctly without Google API key 1`] = `
4
+ {
5
+ "$$typeof": Symbol(react.test.json),
6
+ "children": [
7
+ {
8
+ "$$typeof": Symbol(react.test.json),
9
+ "children": [
10
+ {
11
+ "$$typeof": Symbol(react.test.json),
12
+ "children": null,
13
+ "props": {
14
+ "accessibilityHint": "Enter text here",
15
+ "accessibilityState": {
16
+ "disabled": undefined,
17
+ },
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
+ "numberOfLines": 1,
26
+ "onBlur": [Function],
27
+ "onChangeText": [Function],
28
+ "onContentSizeChange": [Function],
29
+ "onFocus": [Function],
30
+ "onSubmitEditing": [Function],
31
+ "placeholder": "Enter an address",
32
+ "placeholderTextColor": "#686868",
33
+ "readOnly": undefined,
34
+ "ref": [Function],
35
+ "secureTextEntry": false,
36
+ "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%",
45
+ },
46
+ "testID": undefined,
47
+ "textContentType": "none",
48
+ "underlineColorAndroid": "transparent",
49
+ "value": "",
50
+ },
51
+ "type": "TextInput",
52
+ },
53
+ ],
54
+ "props": {
55
+ "style": {
56
+ "alignItems": "center",
57
+ "backgroundColor": "#FFFFFF",
58
+ "borderColor": "#9A9A9A",
59
+ "borderRadius": 4,
60
+ "borderWidth": 1,
61
+ "flexDirection": "row",
62
+ "overflow": "hidden",
63
+ "paddingHorizontal": 12,
64
+ "paddingVertical": 8,
65
+ },
66
+ "testID": undefined,
67
+ },
68
+ "type": "View",
69
+ },
70
+ ],
71
+ "props": {
72
+ "style": {
73
+ "flexDirection": "column",
74
+ "width": "100%",
75
+ },
76
+ "testID": undefined,
77
+ },
78
+ "type": "View",
79
+ }
80
+ `;
81
+
82
+ exports[`WebAddressAutocomplete renders with input value 1`] = `
83
+ {
84
+ "$$typeof": Symbol(react.test.json),
85
+ "children": [
86
+ {
87
+ "$$typeof": Symbol(react.test.json),
88
+ "children": [
89
+ {
90
+ "$$typeof": Symbol(react.test.json),
91
+ "children": null,
92
+ "props": {
93
+ "accessibilityHint": "Enter text here",
94
+ "accessibilityState": {
95
+ "disabled": undefined,
96
+ },
97
+ "aria-label": "Text input field",
98
+ "autoCapitalize": "sentences",
99
+ "autoCorrect": true,
100
+ "blurOnSubmit": true,
101
+ "enterKeyHint": undefined,
102
+ "keyboardType": "default",
103
+ "multiline": undefined,
104
+ "numberOfLines": 1,
105
+ "onBlur": [Function],
106
+ "onChangeText": [Function],
107
+ "onContentSizeChange": [Function],
108
+ "onFocus": [Function],
109
+ "onSubmitEditing": [Function],
110
+ "placeholder": "Enter an address",
111
+ "placeholderTextColor": "#686868",
112
+ "readOnly": undefined,
113
+ "ref": [Function],
114
+ "secureTextEntry": false,
115
+ "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%",
124
+ },
125
+ "testID": undefined,
126
+ "textContentType": "none",
127
+ "underlineColorAndroid": "transparent",
128
+ "value": "123 Main St",
129
+ },
130
+ "type": "TextInput",
131
+ },
132
+ ],
133
+ "props": {
134
+ "style": {
135
+ "alignItems": "center",
136
+ "backgroundColor": "#FFFFFF",
137
+ "borderColor": "#9A9A9A",
138
+ "borderRadius": 4,
139
+ "borderWidth": 1,
140
+ "flexDirection": "row",
141
+ "overflow": "hidden",
142
+ "paddingHorizontal": 12,
143
+ "paddingVertical": 8,
144
+ },
145
+ "testID": undefined,
146
+ },
147
+ "type": "View",
148
+ },
149
+ ],
150
+ "props": {
151
+ "style": {
152
+ "flexDirection": "column",
153
+ "width": "100%",
154
+ },
155
+ "testID": undefined,
156
+ },
157
+ "type": "View",
158
+ }
159
+ `;
160
+
161
+ exports[`WebAddressAutocomplete renders disabled state 1`] = `
162
+ {
163
+ "$$typeof": Symbol(react.test.json),
164
+ "children": [
165
+ {
166
+ "$$typeof": Symbol(react.test.json),
167
+ "children": [
168
+ {
169
+ "$$typeof": Symbol(react.test.json),
170
+ "children": null,
171
+ "props": {
172
+ "accessibilityHint": "Enter text here",
173
+ "accessibilityState": {
174
+ "disabled": true,
175
+ },
176
+ "aria-label": "Text input field",
177
+ "autoCapitalize": "sentences",
178
+ "autoCorrect": true,
179
+ "blurOnSubmit": true,
180
+ "enterKeyHint": undefined,
181
+ "keyboardType": "default",
182
+ "multiline": undefined,
183
+ "numberOfLines": 1,
184
+ "onBlur": [Function],
185
+ "onChangeText": [Function],
186
+ "onContentSizeChange": [Function],
187
+ "onFocus": [Function],
188
+ "onSubmitEditing": [Function],
189
+ "placeholder": "Enter an address",
190
+ "placeholderTextColor": "#686868",
191
+ "readOnly": true,
192
+ "ref": [Function],
193
+ "secureTextEntry": false,
194
+ "style": {
195
+ "color": "#1C1C1C",
196
+ "flex": 1,
197
+ "fontFamily": "text",
198
+ "fontSize": 16,
199
+ "gap": 10,
200
+ "height": 20,
201
+ "paddingVertical": 0,
202
+ "width": "100%",
203
+ },
204
+ "testID": undefined,
205
+ "textContentType": "none",
206
+ "underlineColorAndroid": "transparent",
207
+ "value": "",
208
+ },
209
+ "type": "TextInput",
210
+ },
211
+ ],
212
+ "props": {
213
+ "style": {
214
+ "alignItems": "center",
215
+ "backgroundColor": "#D9D9D9",
216
+ "borderColor": "#4E4E4E",
217
+ "borderRadius": 4,
218
+ "borderWidth": 1,
219
+ "flexDirection": "row",
220
+ "overflow": "hidden",
221
+ "paddingHorizontal": 12,
222
+ "paddingVertical": 8,
223
+ },
224
+ "testID": undefined,
225
+ },
226
+ "type": "View",
227
+ },
228
+ ],
229
+ "props": {
230
+ "style": {
231
+ "flexDirection": "column",
232
+ "width": "100%",
233
+ },
234
+ "testID": undefined,
235
+ },
236
+ "type": "View",
237
+ }
238
+ `;
package/src/index.tsx CHANGED
@@ -83,6 +83,7 @@ export * from "./table/TableTitle";
83
83
  export * from "./table/tableContext";
84
84
  export * from "./UnifiedAddressAutoComplete";
85
85
  export * from "./Unifier";
86
+ export * from "./UserInactivity";
86
87
  export * from "./Utilities";
87
88
  export * from "./useStoredState";
88
89
  export * from "./WebAddressAutocomplete";