@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,67 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`Signature renders correctly 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
+ "ref": {
15
+ "current": null,
16
+ },
17
+ "style": {
18
+ "backgroundColor": "#FFFFFF",
19
+ },
20
+ "testID": "signature-canvas",
21
+ },
22
+ "type": "View",
23
+ },
24
+ ],
25
+ "props": {
26
+ "style": {
27
+ "borderColor": "#9A9A9A",
28
+ "borderWidth": 1,
29
+ "maxWidth": 300,
30
+ "width": "100%",
31
+ },
32
+ "testID": undefined,
33
+ },
34
+ "type": "View",
35
+ },
36
+ {
37
+ "$$typeof": Symbol(react.test.json),
38
+ "children": [
39
+ {
40
+ "$$typeof": Symbol(react.test.json),
41
+ "children": [
42
+ "Clear",
43
+ ],
44
+ "props": {
45
+ "onPress": [Function],
46
+ "style": {
47
+ "color": "#0A7092",
48
+ "textDecorationLine": "underline",
49
+ },
50
+ },
51
+ "type": "Text",
52
+ },
53
+ ],
54
+ "props": {
55
+ "style": undefined,
56
+ "testID": undefined,
57
+ },
58
+ "type": "View",
59
+ },
60
+ ],
61
+ "props": {
62
+ "style": undefined,
63
+ "testID": undefined,
64
+ },
65
+ "type": "View",
66
+ }
67
+ `;
@@ -1,44 +1,98 @@
1
1
  // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
2
 
3
- exports[`SignatureField renders disabled state without value 1`] = `
3
+ exports[`SignatureField renders correctly with default props 1`] = `
4
4
  {
5
5
  "$$typeof": Symbol(react.test.json),
6
6
  "children": [
7
7
  {
8
8
  "$$typeof": Symbol(react.test.json),
9
- "children": null,
9
+ "children": [
10
+ "Signature",
11
+ ],
10
12
  "props": {
13
+ "numberOfLines": 0,
11
14
  "style": {
12
- "backgroundColor": "#D9D9D9",
13
- "height": 90,
14
- "marginVertical": 8,
15
- "width": 300,
15
+ "color": "#1C1C1C",
16
+ "fontFamily": "heading-semibold",
17
+ "fontSize": 14,
16
18
  },
17
19
  "testID": undefined,
18
20
  },
19
- "type": "View",
21
+ "type": "Text",
20
22
  },
21
23
  {
22
24
  "$$typeof": Symbol(react.test.json),
23
25
  "children": [
24
26
  {
25
27
  "$$typeof": Symbol(react.test.json),
26
- "children": null,
27
- "props": {
28
- "numberOfLines": 0,
29
- "selectable": undefined,
30
- "style": {
31
- "color": "#1C1C1C",
32
- "fontFamily": "text-regular",
33
- "fontSize": 10,
34
- "textAlign": "left",
28
+ "children": [
29
+ {
30
+ "$$typeof": Symbol(react.test.json),
31
+ "children": [
32
+ {
33
+ "$$typeof": Symbol(react.test.json),
34
+ "children": null,
35
+ "props": {
36
+ "ref": {
37
+ "current": null,
38
+ },
39
+ "style": {
40
+ "backgroundColor": "#FFFFFF",
41
+ },
42
+ "testID": "signature-canvas",
43
+ },
44
+ "type": "View",
45
+ },
46
+ ],
47
+ "props": {
48
+ "style": {
49
+ "borderColor": "#9A9A9A",
50
+ "borderWidth": 1,
51
+ "maxWidth": 300,
52
+ "width": "100%",
53
+ },
54
+ "testID": undefined,
55
+ },
56
+ "type": "View",
35
57
  },
58
+ {
59
+ "$$typeof": Symbol(react.test.json),
60
+ "children": [
61
+ {
62
+ "$$typeof": Symbol(react.test.json),
63
+ "children": [
64
+ "Clear",
65
+ ],
66
+ "props": {
67
+ "onPress": [Function],
68
+ "style": {
69
+ "color": "#0A7092",
70
+ "textDecorationLine": "underline",
71
+ },
72
+ },
73
+ "type": "Text",
74
+ },
75
+ ],
76
+ "props": {
77
+ "style": undefined,
78
+ "testID": undefined,
79
+ },
80
+ "type": "View",
81
+ },
82
+ ],
83
+ "props": {
84
+ "style": undefined,
36
85
  "testID": undefined,
37
86
  },
38
- "type": "Text",
87
+ "type": "View",
39
88
  },
40
89
  ],
41
- "props": {},
90
+ "props": {
91
+ "style": {
92
+ "marginVertical": 8,
93
+ },
94
+ "testID": undefined,
95
+ },
42
96
  "type": "View",
43
97
  },
44
98
  ],
@@ -50,7 +104,7 @@ exports[`SignatureField renders disabled state without value 1`] = `
50
104
  }
51
105
  `;
52
106
 
53
- exports[`SignatureField renders disabled state with value (shows image) 1`] = `
107
+ exports[`SignatureField renders disabled state with value 1`] = `
54
108
  {
55
109
  "$$typeof": Symbol(react.test.json),
56
110
  "children": [
@@ -80,7 +134,7 @@ exports[`SignatureField renders disabled state with value (shows image) 1`] = `
80
134
  "accessibilityIgnoresInvertColors": false,
81
135
  "resizeMode": "contain",
82
136
  "source": {
83
- "uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==",
137
+ "uri": "data:image/png;base64,test",
84
138
  },
85
139
  "style": {
86
140
  "borderColor": "black",
@@ -105,7 +159,61 @@ exports[`SignatureField renders disabled state with value (shows image) 1`] = `
105
159
  "children": [
106
160
  {
107
161
  "$$typeof": Symbol(react.test.json),
108
- "children": null,
162
+ "children": [
163
+ "Signature captured",
164
+ ],
165
+ "props": {
166
+ "numberOfLines": 0,
167
+ "selectable": undefined,
168
+ "style": {
169
+ "color": "#1C1C1C",
170
+ "fontFamily": "text-regular",
171
+ "fontSize": 10,
172
+ "textAlign": "left",
173
+ },
174
+ "testID": undefined,
175
+ },
176
+ "type": "Text",
177
+ },
178
+ ],
179
+ "props": {},
180
+ "type": "View",
181
+ },
182
+ ],
183
+ "props": {
184
+ "style": undefined,
185
+ "testID": undefined,
186
+ },
187
+ "type": "View",
188
+ }
189
+ `;
190
+
191
+ exports[`SignatureField renders disabled state without value 1`] = `
192
+ {
193
+ "$$typeof": Symbol(react.test.json),
194
+ "children": [
195
+ {
196
+ "$$typeof": Symbol(react.test.json),
197
+ "children": null,
198
+ "props": {
199
+ "style": {
200
+ "backgroundColor": "#D9D9D9",
201
+ "height": 90,
202
+ "marginVertical": 8,
203
+ "width": 300,
204
+ },
205
+ "testID": undefined,
206
+ },
207
+ "type": "View",
208
+ },
209
+ {
210
+ "$$typeof": Symbol(react.test.json),
211
+ "children": [
212
+ {
213
+ "$$typeof": Symbol(react.test.json),
214
+ "children": [
215
+ "Signature not available",
216
+ ],
109
217
  "props": {
110
218
  "numberOfLines": 0,
111
219
  "selectable": undefined,