@terreno/ui 0.1.0 → 0.3.0

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 (84) hide show
  1. package/dist/AIRequestExplorer.d.ts +31 -0
  2. package/dist/AIRequestExplorer.js +44 -0
  3. package/dist/AIRequestExplorer.js.map +1 -0
  4. package/dist/AttachmentPreview.d.ts +8 -0
  5. package/dist/AttachmentPreview.js +16 -0
  6. package/dist/AttachmentPreview.js.map +1 -0
  7. package/dist/Common.d.ts +44 -0
  8. package/dist/FilePickerButton.d.ts +13 -0
  9. package/dist/FilePickerButton.js +50 -0
  10. package/dist/FilePickerButton.js.map +1 -0
  11. package/dist/GPTChat.d.ts +66 -0
  12. package/dist/GPTChat.js +112 -0
  13. package/dist/GPTChat.js.map +1 -0
  14. package/dist/GPTMemoryModal.d.ts +8 -0
  15. package/dist/GPTMemoryModal.js +14 -0
  16. package/dist/GPTMemoryModal.js.map +1 -0
  17. package/dist/SocialLoginButton.d.ts +19 -0
  18. package/dist/SocialLoginButton.js +119 -0
  19. package/dist/SocialLoginButton.js.map +1 -0
  20. package/dist/index.d.ts +8 -0
  21. package/dist/index.js +8 -0
  22. package/dist/index.js.map +1 -1
  23. package/dist/login/LoginScreen.d.ts +25 -0
  24. package/dist/login/LoginScreen.js +55 -0
  25. package/dist/login/LoginScreen.js.map +1 -0
  26. package/dist/login/index.d.ts +2 -0
  27. package/dist/login/index.js +2 -0
  28. package/dist/login/index.js.map +1 -0
  29. package/dist/login/loginTypes.d.ts +48 -0
  30. package/dist/login/loginTypes.js +2 -0
  31. package/dist/login/loginTypes.js.map +1 -0
  32. package/dist/signUp/OAuthButtons.d.ts +18 -0
  33. package/dist/signUp/OAuthButtons.js +15 -0
  34. package/dist/signUp/OAuthButtons.js.map +1 -0
  35. package/dist/signUp/PasswordRequirements.d.ts +15 -0
  36. package/dist/signUp/PasswordRequirements.js +14 -0
  37. package/dist/signUp/PasswordRequirements.js.map +1 -0
  38. package/dist/signUp/SignUpScreen.d.ts +26 -0
  39. package/dist/signUp/SignUpScreen.js +64 -0
  40. package/dist/signUp/SignUpScreen.js.map +1 -0
  41. package/dist/signUp/Swiper.d.ts +13 -0
  42. package/dist/signUp/Swiper.js +16 -0
  43. package/dist/signUp/Swiper.js.map +1 -0
  44. package/dist/signUp/index.d.ts +6 -0
  45. package/dist/signUp/index.js +6 -0
  46. package/dist/signUp/index.js.map +1 -0
  47. package/dist/signUp/passwordPresets.d.ts +9 -0
  48. package/dist/signUp/passwordPresets.js +41 -0
  49. package/dist/signUp/passwordPresets.js.map +1 -0
  50. package/dist/signUp/signUpTypes.d.ts +90 -0
  51. package/dist/signUp/signUpTypes.js +2 -0
  52. package/dist/signUp/signUpTypes.js.map +1 -0
  53. package/package.json +4 -2
  54. package/src/AIRequestExplorer.tsx +147 -0
  55. package/src/AttachmentPreview.tsx +63 -0
  56. package/src/Common.ts +52 -0
  57. package/src/FilePickerButton.tsx +88 -0
  58. package/src/GPTChat.tsx +551 -0
  59. package/src/GPTMemoryModal.tsx +50 -0
  60. package/src/SocialLoginButton.test.tsx +158 -0
  61. package/src/SocialLoginButton.tsx +182 -0
  62. package/src/__snapshots__/SocialLoginButton.test.tsx.snap +277 -0
  63. package/src/index.tsx +9 -0
  64. package/src/login/LoginScreen.test.tsx +148 -0
  65. package/src/login/LoginScreen.tsx +159 -0
  66. package/src/login/__snapshots__/LoginScreen.test.tsx.snap +630 -0
  67. package/src/login/index.ts +2 -0
  68. package/src/login/loginTypes.ts +51 -0
  69. package/src/signUp/OAuthButtons.test.tsx +45 -0
  70. package/src/signUp/OAuthButtons.tsx +52 -0
  71. package/src/signUp/PasswordRequirements.test.tsx +41 -0
  72. package/src/signUp/PasswordRequirements.tsx +49 -0
  73. package/src/signUp/SignUpScreen.test.tsx +134 -0
  74. package/src/signUp/SignUpScreen.tsx +172 -0
  75. package/src/signUp/Swiper.test.tsx +46 -0
  76. package/src/signUp/Swiper.tsx +59 -0
  77. package/src/signUp/__snapshots__/OAuthButtons.test.tsx.snap +272 -0
  78. package/src/signUp/__snapshots__/PasswordRequirements.test.tsx.snap +427 -0
  79. package/src/signUp/__snapshots__/SignUpScreen.test.tsx.snap +851 -0
  80. package/src/signUp/__snapshots__/Swiper.test.tsx.snap +249 -0
  81. package/src/signUp/index.ts +13 -0
  82. package/src/signUp/passwordPresets.test.ts +57 -0
  83. package/src/signUp/passwordPresets.ts +43 -0
  84. package/src/signUp/signUpTypes.ts +94 -0
@@ -0,0 +1,630 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`LoginScreen renders correctly with all props 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
+ {
17
+ "$$typeof": Symbol(react.test.json),
18
+ "children": [
19
+ {
20
+ "$$typeof": Symbol(react.test.json),
21
+ "children": [
22
+ {
23
+ "$$typeof": Symbol(react.test.json),
24
+ "children": [
25
+ "Log In",
26
+ ],
27
+ "props": {
28
+ "numberOfLines": 0,
29
+ "style": {
30
+ "color": "#1C1C1C",
31
+ "fontFamily": "heading-bold",
32
+ "fontSize": 16,
33
+ },
34
+ "testID": "login-screen-title",
35
+ },
36
+ "type": "Text",
37
+ },
38
+ ],
39
+ "props": {
40
+ "onPointerEnter": [Function: AsyncFunction],
41
+ "onPointerLeave": [Function: AsyncFunction],
42
+ "style": {
43
+ "marginBottom": 48,
44
+ },
45
+ "testID": undefined,
46
+ },
47
+ "type": "View",
48
+ },
49
+ {
50
+ "$$typeof": Symbol(react.test.json),
51
+ "children": [
52
+ {
53
+ "$$typeof": Symbol(react.test.json),
54
+ "children": [
55
+ {
56
+ "$$typeof": Symbol(react.test.json),
57
+ "children": [
58
+ "Email",
59
+ ],
60
+ "props": {
61
+ "style": {
62
+ "color": "#1C1C1C",
63
+ "fontSize": 14,
64
+ "fontWeight": 600,
65
+ "lineHeight": 22.4,
66
+ },
67
+ },
68
+ "type": "Text",
69
+ },
70
+ {
71
+ "$$typeof": Symbol(react.test.json),
72
+ "children": [
73
+ {
74
+ "$$typeof": Symbol(react.test.json),
75
+ "children": null,
76
+ "props": {
77
+ "accessibilityHint": "Enter text here",
78
+ "accessibilityState": {
79
+ "disabled": true,
80
+ },
81
+ "aria-label": "Text input field",
82
+ "autoCapitalize": "none",
83
+ "autoCorrect": false,
84
+ "blurOnSubmit": true,
85
+ "enterKeyHint": undefined,
86
+ "keyboardType": "email-address",
87
+ "multiline": undefined,
88
+ "numberOfLines": 1,
89
+ "onBlur": [Function],
90
+ "onChangeText": [Function],
91
+ "onContentSizeChange": [Function],
92
+ "onFocus": [Function],
93
+ "onSubmitEditing": [Function],
94
+ "placeholder": "Email",
95
+ "placeholderTextColor": "#686868",
96
+ "readOnly": true,
97
+ "ref": [Function],
98
+ "secureTextEntry": false,
99
+ "style": {
100
+ "color": "#1C1C1C",
101
+ "flex": 1,
102
+ "fontFamily": "text",
103
+ "fontSize": 16,
104
+ "gap": 10,
105
+ "height": 20,
106
+ "paddingVertical": 0,
107
+ "width": "100%",
108
+ },
109
+ "testID": "login-screen-email-input",
110
+ "textContentType": "emailAddress",
111
+ "underlineColorAndroid": "transparent",
112
+ "value": "",
113
+ },
114
+ "type": "TextInput",
115
+ },
116
+ ],
117
+ "props": {
118
+ "style": {
119
+ "alignItems": "center",
120
+ "backgroundColor": "#D9D9D9",
121
+ "borderColor": "#4E4E4E",
122
+ "borderRadius": 4,
123
+ "borderWidth": 1,
124
+ "flexDirection": "row",
125
+ "overflow": "hidden",
126
+ "paddingHorizontal": 12,
127
+ "paddingVertical": 8,
128
+ },
129
+ "testID": undefined,
130
+ },
131
+ "type": "View",
132
+ },
133
+ ],
134
+ "props": {
135
+ "style": {
136
+ "flexDirection": "column",
137
+ "width": "100%",
138
+ },
139
+ "testID": undefined,
140
+ },
141
+ "type": "View",
142
+ },
143
+ {
144
+ "$$typeof": Symbol(react.test.json),
145
+ "children": [
146
+ {
147
+ "$$typeof": Symbol(react.test.json),
148
+ "children": [
149
+ "Password",
150
+ ],
151
+ "props": {
152
+ "style": {
153
+ "color": "#1C1C1C",
154
+ "fontSize": 14,
155
+ "fontWeight": 600,
156
+ "lineHeight": 22.4,
157
+ },
158
+ },
159
+ "type": "Text",
160
+ },
161
+ {
162
+ "$$typeof": Symbol(react.test.json),
163
+ "children": [
164
+ {
165
+ "$$typeof": Symbol(react.test.json),
166
+ "children": null,
167
+ "props": {
168
+ "accessibilityHint": "Enter text here",
169
+ "accessibilityState": {
170
+ "disabled": true,
171
+ },
172
+ "aria-label": "Text input field",
173
+ "autoCapitalize": "none",
174
+ "autoCorrect": false,
175
+ "blurOnSubmit": true,
176
+ "enterKeyHint": undefined,
177
+ "keyboardType": "default",
178
+ "multiline": undefined,
179
+ "numberOfLines": 1,
180
+ "onBlur": [Function],
181
+ "onChangeText": [Function],
182
+ "onContentSizeChange": [Function],
183
+ "onFocus": [Function],
184
+ "onSubmitEditing": [Function],
185
+ "placeholder": "Password",
186
+ "placeholderTextColor": "#686868",
187
+ "readOnly": true,
188
+ "ref": [Function],
189
+ "secureTextEntry": true,
190
+ "style": {
191
+ "color": "#1C1C1C",
192
+ "flex": 1,
193
+ "fontFamily": "text",
194
+ "fontSize": 16,
195
+ "gap": 10,
196
+ "height": 20,
197
+ "paddingVertical": 0,
198
+ "width": "100%",
199
+ },
200
+ "testID": "login-screen-password-input",
201
+ "textContentType": "password",
202
+ "underlineColorAndroid": "transparent",
203
+ "value": "",
204
+ },
205
+ "type": "TextInput",
206
+ },
207
+ ],
208
+ "props": {
209
+ "style": {
210
+ "alignItems": "center",
211
+ "backgroundColor": "#D9D9D9",
212
+ "borderColor": "#4E4E4E",
213
+ "borderRadius": 4,
214
+ "borderWidth": 1,
215
+ "flexDirection": "row",
216
+ "overflow": "hidden",
217
+ "paddingHorizontal": 12,
218
+ "paddingVertical": 8,
219
+ },
220
+ "testID": undefined,
221
+ },
222
+ "type": "View",
223
+ },
224
+ ],
225
+ "props": {
226
+ "style": {
227
+ "flexDirection": "column",
228
+ "width": "100%",
229
+ },
230
+ "testID": undefined,
231
+ },
232
+ "type": "View",
233
+ },
234
+ {
235
+ "$$typeof": Symbol(react.test.json),
236
+ "children": [
237
+ {
238
+ "$$typeof": Symbol(react.test.json),
239
+ "children": [
240
+ "Error!",
241
+ ],
242
+ "props": {
243
+ "numberOfLines": 0,
244
+ "selectable": undefined,
245
+ "style": {
246
+ "color": "#BD1111",
247
+ "fontFamily": "text-regular",
248
+ "fontSize": 14,
249
+ "textAlign": "left",
250
+ },
251
+ "testID": "login-screen-error",
252
+ },
253
+ "type": "Text",
254
+ },
255
+ ],
256
+ "props": {},
257
+ "type": "View",
258
+ },
259
+ {
260
+ "$$typeof": Symbol(react.test.json),
261
+ "children": [
262
+ {
263
+ "$$typeof": Symbol(react.test.json),
264
+ "children": [
265
+ {
266
+ "$$typeof": Symbol(react.test.json),
267
+ "children": [
268
+ {
269
+ "$$typeof": Symbol(react.test.json),
270
+ "children": [
271
+ {
272
+ "$$typeof": Symbol(react.test.json),
273
+ "children": [
274
+ "Log In",
275
+ ],
276
+ "props": {
277
+ "style": {
278
+ "color": "#FFFFFF",
279
+ "fontSize": 16,
280
+ "fontWeight": "700",
281
+ },
282
+ },
283
+ "type": "Text",
284
+ },
285
+ ],
286
+ "props": {
287
+ "style": {
288
+ "flexDirection": "row",
289
+ },
290
+ "testID": undefined,
291
+ },
292
+ "type": "View",
293
+ },
294
+ {
295
+ "$$typeof": Symbol(react.test.json),
296
+ "children": [
297
+ {
298
+ "$$typeof": Symbol(react.test.json),
299
+ "children": null,
300
+ "props": {
301
+ "color": "#FFFFFF",
302
+ "size": "small",
303
+ },
304
+ "type": "ActivityIndicator",
305
+ },
306
+ ],
307
+ "props": {
308
+ "onPointerEnter": [Function: AsyncFunction],
309
+ "onPointerLeave": [Function: AsyncFunction],
310
+ "style": {
311
+ "marginLeft": 8,
312
+ },
313
+ "testID": undefined,
314
+ },
315
+ "type": "View",
316
+ },
317
+ ],
318
+ "props": {
319
+ "style": {
320
+ "flexDirection": "row",
321
+ },
322
+ "testID": undefined,
323
+ },
324
+ "type": "View",
325
+ },
326
+ ],
327
+ "props": {
328
+ "accessibilityHint": "Press to perform action",
329
+ "aria-label": "Log In",
330
+ "aria-role": "button",
331
+ "disabled": true,
332
+ "onPress": [Function: debounced],
333
+ "style": {
334
+ "alignItems": "center",
335
+ "alignSelf": "stretch",
336
+ "backgroundColor": "#9A9A9A",
337
+ "borderColor": undefined,
338
+ "borderRadius": 360,
339
+ "borderWidth": undefined,
340
+ "flexDirection": "column",
341
+ "justifyContent": "center",
342
+ "paddingHorizontal": 20,
343
+ "paddingVertical": 8,
344
+ "width": "100%",
345
+ },
346
+ "testID": "login-screen-submit-button",
347
+ },
348
+ "type": "Pressable",
349
+ },
350
+ ],
351
+ "props": {
352
+ "onPointerEnter": [Function: AsyncFunction],
353
+ "onPointerLeave": [Function: AsyncFunction],
354
+ "style": {
355
+ "marginTop": 16,
356
+ },
357
+ "testID": undefined,
358
+ },
359
+ "type": "View",
360
+ },
361
+ {
362
+ "$$typeof": Symbol(react.test.json),
363
+ "children": [
364
+ {
365
+ "$$typeof": Symbol(react.test.json),
366
+ "children": [
367
+ {
368
+ "$$typeof": Symbol(react.test.json),
369
+ "children": [
370
+ {
371
+ "$$typeof": Symbol(react.test.json),
372
+ "children": [
373
+ {
374
+ "$$typeof": Symbol(react.test.json),
375
+ "children": [
376
+ "Forgot password?",
377
+ ],
378
+ "props": {
379
+ "style": {
380
+ "color": "#FFFFFF",
381
+ "fontSize": 16,
382
+ "fontWeight": "700",
383
+ },
384
+ },
385
+ "type": "Text",
386
+ },
387
+ ],
388
+ "props": {
389
+ "style": {
390
+ "flexDirection": "row",
391
+ },
392
+ "testID": undefined,
393
+ },
394
+ "type": "View",
395
+ },
396
+ ],
397
+ "props": {
398
+ "style": {
399
+ "flexDirection": "row",
400
+ },
401
+ "testID": undefined,
402
+ },
403
+ "type": "View",
404
+ },
405
+ ],
406
+ "props": {
407
+ "accessibilityHint": "Press to perform action",
408
+ "aria-label": "Forgot password?",
409
+ "aria-role": "button",
410
+ "disabled": true,
411
+ "onPress": [Function: debounced],
412
+ "style": {
413
+ "alignItems": "center",
414
+ "alignSelf": "flex-start",
415
+ "backgroundColor": "#9A9A9A",
416
+ "borderColor": undefined,
417
+ "borderRadius": 360,
418
+ "borderWidth": undefined,
419
+ "flexDirection": "column",
420
+ "justifyContent": "center",
421
+ "paddingHorizontal": 20,
422
+ "paddingVertical": 8,
423
+ "width": "auto",
424
+ },
425
+ "testID": "login-screen-forgot-password",
426
+ },
427
+ "type": "Pressable",
428
+ },
429
+ ],
430
+ "props": {
431
+ "onPointerEnter": [Function: AsyncFunction],
432
+ "onPointerLeave": [Function: AsyncFunction],
433
+ "style": {
434
+ "alignItems": "center",
435
+ "marginTop": 8,
436
+ },
437
+ "testID": undefined,
438
+ },
439
+ "type": "View",
440
+ },
441
+ {
442
+ "$$typeof": Symbol(react.test.json),
443
+ "children": [
444
+ {
445
+ "$$typeof": Symbol(react.test.json),
446
+ "children": [
447
+ {
448
+ "$$typeof": Symbol(react.test.json),
449
+ "children": [
450
+ {
451
+ "$$typeof": Symbol(react.test.json),
452
+ "children": [
453
+ {
454
+ "$$typeof": Symbol(react.test.json),
455
+ "children": [
456
+ "Need an account? Sign Up",
457
+ ],
458
+ "props": {
459
+ "style": {
460
+ "color": "#FFFFFF",
461
+ "fontSize": 16,
462
+ "fontWeight": "700",
463
+ },
464
+ },
465
+ "type": "Text",
466
+ },
467
+ ],
468
+ "props": {
469
+ "style": {
470
+ "flexDirection": "row",
471
+ },
472
+ "testID": undefined,
473
+ },
474
+ "type": "View",
475
+ },
476
+ ],
477
+ "props": {
478
+ "style": {
479
+ "flexDirection": "row",
480
+ },
481
+ "testID": undefined,
482
+ },
483
+ "type": "View",
484
+ },
485
+ ],
486
+ "props": {
487
+ "accessibilityHint": "Press to perform action",
488
+ "aria-label": "Need an account? Sign Up",
489
+ "aria-role": "button",
490
+ "disabled": true,
491
+ "onPress": [Function: debounced],
492
+ "style": {
493
+ "alignItems": "center",
494
+ "alignSelf": "stretch",
495
+ "backgroundColor": "#9A9A9A",
496
+ "borderColor": undefined,
497
+ "borderRadius": 360,
498
+ "borderWidth": undefined,
499
+ "flexDirection": "column",
500
+ "justifyContent": "center",
501
+ "paddingHorizontal": 20,
502
+ "paddingVertical": 8,
503
+ "width": "100%",
504
+ },
505
+ "testID": "login-screen-signup-link",
506
+ },
507
+ "type": "Pressable",
508
+ },
509
+ ],
510
+ "props": {
511
+ "onPointerEnter": [Function: AsyncFunction],
512
+ "onPointerLeave": [Function: AsyncFunction],
513
+ "style": {
514
+ "marginTop": 8,
515
+ },
516
+ "testID": undefined,
517
+ },
518
+ "type": "View",
519
+ },
520
+ ],
521
+ "props": {
522
+ "onPointerEnter": [Function: AsyncFunction],
523
+ "onPointerLeave": [Function: AsyncFunction],
524
+ "style": {
525
+ "gap": 16,
526
+ "width": "100%",
527
+ },
528
+ "testID": undefined,
529
+ },
530
+ "type": "View",
531
+ },
532
+ ],
533
+ "props": {
534
+ "onPointerEnter": [Function: AsyncFunction],
535
+ "onPointerLeave": [Function: AsyncFunction],
536
+ "style": {
537
+ "alignItems": "center",
538
+ "alignSelf": "center",
539
+ "display": "flex",
540
+ "flexGrow": 1,
541
+ "flexShrink": 1,
542
+ "justifyContent": "center",
543
+ "maxWidth": 400,
544
+ "padding": 16,
545
+ "testID": "login-screen",
546
+ "width": "100%",
547
+ },
548
+ "testID": "login-screen",
549
+ },
550
+ "type": "View",
551
+ },
552
+ ],
553
+ "props": {
554
+ "onPointerEnter": [Function: AsyncFunction],
555
+ "onPointerLeave": [Function: AsyncFunction],
556
+ "style": {
557
+ "alignSelf": "center",
558
+ "avoidKeyboard": true,
559
+ "backgroundColor": "#FFFFFF",
560
+ "display": "flex",
561
+ "flex": undefined,
562
+ "flexDirection": "column",
563
+ "flexGrow": 1,
564
+ "flexShrink": 1,
565
+ "height": "100%",
566
+ "keyboardOffset": undefined,
567
+ "maxWidth": 800,
568
+ "padding": 8,
569
+ "scroll": true,
570
+ "width": "100%",
571
+ },
572
+ "testID": undefined,
573
+ },
574
+ "type": "View",
575
+ },
576
+ ],
577
+ "props": {
578
+ "contentContainerStyle": {
579
+ "alignContent": undefined,
580
+ "alignItems": undefined,
581
+ "justifyContent": undefined,
582
+ },
583
+ "horizontal": false,
584
+ "keyboardShouldPersistTaps": "handled",
585
+ "nestedScrollEnabled": true,
586
+ "onScroll": [Function],
587
+ "ref": {
588
+ "current": null,
589
+ },
590
+ "scrollEventThrottle": 50,
591
+ "style": {
592
+ "alignSelf": "center",
593
+ "avoidKeyboard": true,
594
+ "backgroundColor": "#FFFFFF",
595
+ "display": "flex",
596
+ "flex": undefined,
597
+ "flexDirection": "column",
598
+ "flexGrow": 1,
599
+ "flexShrink": 1,
600
+ "height": "100%",
601
+ "keyboardOffset": undefined,
602
+ "maxWidth": 800,
603
+ "padding": 8,
604
+ "scroll": true,
605
+ "width": "100%",
606
+ },
607
+ },
608
+ "type": "ScrollView",
609
+ },
610
+ ],
611
+ "props": {
612
+ "style": {
613
+ "display": "flex",
614
+ "flex": 1,
615
+ },
616
+ },
617
+ "type": "SafeAreaView",
618
+ },
619
+ ],
620
+ "props": {
621
+ "behavior": "padding",
622
+ "keyboardVerticalOffset": undefined,
623
+ "style": {
624
+ "display": "flex",
625
+ "flex": 1,
626
+ },
627
+ },
628
+ "type": "KeyboardAvoidingView",
629
+ }
630
+ `;
@@ -0,0 +1,2 @@
1
+ export {LoginScreen} from "./LoginScreen";
2
+ export type {LoginFieldConfig, LoginScreenProps} from "./loginTypes";