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