theo_lafond_react_ci_cd 0.0.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 (63) hide show
  1. package/babel.config.cjs +6 -0
  2. package/cypress.config.js +12 -0
  3. package/dist/App.css +35 -0
  4. package/dist/App.js +147 -0
  5. package/dist/assets/react.svg +1 -0
  6. package/dist/components/PersonForm.css +63 -0
  7. package/dist/components/PersonForm.js +312 -0
  8. package/dist/domain/module.js +33 -0
  9. package/dist/domain/services/personService.js +126 -0
  10. package/dist/domain/validator.js +143 -0
  11. package/dist/index.css +64 -0
  12. package/dist/index.js +13 -0
  13. package/dist/main.js +11 -0
  14. package/dist/pages/Home.css +57 -0
  15. package/dist/pages/Home.js +102 -0
  16. package/dist/pages/Register.css +28 -0
  17. package/dist/pages/Register.js +40 -0
  18. package/dist/utils/errorMessages.js +46 -0
  19. package/eslint.config.js +29 -0
  20. package/jest.config.cjs +9 -0
  21. package/jsdoc.json +8 -0
  22. package/package.json +50 -0
  23. package/public/docs/App.jsx.html +114 -0
  24. package/public/docs/components_PersonForm.jsx.html +282 -0
  25. package/public/docs/domain_module.js.html +81 -0
  26. package/public/docs/domain_personService.js.html +69 -0
  27. package/public/docs/domain_validator.js.html +190 -0
  28. package/public/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  29. package/public/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  30. package/public/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  31. package/public/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  32. package/public/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  33. package/public/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  34. package/public/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  35. package/public/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  36. package/public/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  37. package/public/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  38. package/public/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  39. package/public/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  40. package/public/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  41. package/public/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  42. package/public/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  43. package/public/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  44. package/public/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  45. package/public/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  46. package/public/docs/global.html +2439 -0
  47. package/public/docs/module-App.html +362 -0
  48. package/public/docs/module-Home.html +373 -0
  49. package/public/docs/module-PersonForm.html +723 -0
  50. package/public/docs/module-Register.html +281 -0
  51. package/public/docs/module.js.html +81 -0
  52. package/public/docs/pages_Home.jsx.html +106 -0
  53. package/public/docs/pages_Register.jsx.html +78 -0
  54. package/public/docs/scripts/linenumber.js +25 -0
  55. package/public/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  56. package/public/docs/scripts/prettify/lang-css.js +2 -0
  57. package/public/docs/scripts/prettify/prettify.js +28 -0
  58. package/public/docs/styles/jsdoc-default.css +358 -0
  59. package/public/docs/styles/prettify-jsdoc.css +111 -0
  60. package/public/docs/styles/prettify-tomorrow.css +132 -0
  61. package/public/docs/utils_errorMessages.js.html +87 -0
  62. package/public/docs/validator.js.html +179 -0
  63. package/public/vite.svg +1 -0
@@ -0,0 +1,723 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>JSDoc: Module: PersonForm</title>
6
+
7
+ <script src="scripts/prettify/prettify.js"> </script>
8
+ <script src="scripts/prettify/lang-css.js"> </script>
9
+ <!--[if lt IE 9]>
10
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
+ <![endif]-->
12
+ <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
+ </head>
15
+
16
+ <body>
17
+
18
+ <div id="main">
19
+
20
+ <h1 class="page-title">Module: PersonForm</h1>
21
+
22
+
23
+
24
+
25
+
26
+
27
+ <section>
28
+
29
+ <header>
30
+
31
+
32
+
33
+
34
+
35
+ </header>
36
+
37
+ <article>
38
+ <div class="container-overview">
39
+
40
+
41
+ <div class="description">PersonForm Component
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+ <h5>Parameters:</h5>
58
+
59
+
60
+ <table class="params">
61
+ <thead>
62
+ <tr>
63
+
64
+ <th>Name</th>
65
+
66
+
67
+ <th>Type</th>
68
+
69
+
70
+
71
+
72
+
73
+ <th class="last">Description</th>
74
+ </tr>
75
+ </thead>
76
+
77
+ <tbody>
78
+
79
+
80
+ <tr>
81
+
82
+ <td class="name"><code>props</code></td>
83
+
84
+
85
+ <td class="type">
86
+
87
+
88
+ <span class="param-type">Object</span>
89
+
90
+
91
+
92
+ </td>
93
+
94
+
95
+
96
+
97
+
98
+ <td class="description last">
99
+ <h6>Properties</h6>
100
+
101
+
102
+ <table class="params">
103
+ <thead>
104
+ <tr>
105
+
106
+ <th>Name</th>
107
+
108
+
109
+ <th>Type</th>
110
+
111
+
112
+
113
+
114
+
115
+ <th class="last">Description</th>
116
+ </tr>
117
+ </thead>
118
+
119
+ <tbody>
120
+
121
+
122
+ <tr>
123
+
124
+ <td class="name"><code>addPerson</code></td>
125
+
126
+
127
+ <td class="type">
128
+
129
+
130
+ <span class="param-type">function</span>
131
+
132
+
133
+
134
+ </td>
135
+
136
+
137
+
138
+
139
+
140
+ <td class="description last">Callback function to add a person object to parent state or storage</td>
141
+ </tr>
142
+
143
+
144
+ </tbody>
145
+ </table>
146
+
147
+ </td>
148
+ </tr>
149
+
150
+
151
+ </tbody>
152
+ </table>
153
+
154
+
155
+
156
+
157
+
158
+
159
+ <dl class="details">
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+ <dt class="tag-source">Source:</dt>
187
+ <dd class="tag-source"><ul class="dummy"><li>
188
+ <a href="components_PersonForm.jsx.html">components/PersonForm.jsx</a>, <a href="components_PersonForm.jsx.html#line8">line 8</a>
189
+ </li></ul></dd>
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+ </dl>
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+ <h5>Returns:</h5>
214
+
215
+
216
+ <div class="param-desc">
217
+ The rendered registration form
218
+ </div>
219
+
220
+
221
+
222
+ <dl>
223
+ <dt>
224
+ Type
225
+ </dt>
226
+ <dd>
227
+
228
+ <span class="param-type">JSX.Element</span>
229
+
230
+
231
+ </dd>
232
+ </dl>
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+ </div>
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+ <h3 class="subsection-title">Methods</h3>
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+ <h4 class="name" id="~handleChange"><span class="type-signature">(private, inner) </span>handleChange<span class="signature">(e)</span><span class="type-signature"></span></h4>
268
+
269
+
270
+
271
+
272
+
273
+
274
+ <div class="description">
275
+ Handle form field changes.
276
+ </div>
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+ <h5>Parameters:</h5>
287
+
288
+
289
+ <table class="params">
290
+ <thead>
291
+ <tr>
292
+
293
+ <th>Name</th>
294
+
295
+
296
+ <th>Type</th>
297
+
298
+
299
+
300
+
301
+
302
+ <th class="last">Description</th>
303
+ </tr>
304
+ </thead>
305
+
306
+ <tbody>
307
+
308
+
309
+ <tr>
310
+
311
+ <td class="name"><code>e</code></td>
312
+
313
+
314
+ <td class="type">
315
+
316
+
317
+ <span class="param-type">Event</span>
318
+
319
+
320
+
321
+ </td>
322
+
323
+
324
+
325
+
326
+
327
+ <td class="description last">Input change event</td>
328
+ </tr>
329
+
330
+
331
+ </tbody>
332
+ </table>
333
+
334
+
335
+
336
+
337
+
338
+
339
+ <dl class="details">
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+ <dt class="tag-source">Source:</dt>
367
+ <dd class="tag-source"><ul class="dummy"><li>
368
+ <a href="components_PersonForm.jsx.html">components/PersonForm.jsx</a>, <a href="components_PersonForm.jsx.html#line75">line 75</a>
369
+ </li></ul></dd>
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+ </dl>
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+ <h4 class="name" id="~handleSubmit"><span class="type-signature">(private, inner) </span>handleSubmit<span class="signature">(e)</span><span class="type-signature"></span></h4>
405
+
406
+
407
+
408
+
409
+
410
+
411
+ <div class="description">
412
+ Handle form submission.
413
+ </div>
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+ <h5>Parameters:</h5>
424
+
425
+
426
+ <table class="params">
427
+ <thead>
428
+ <tr>
429
+
430
+ <th>Name</th>
431
+
432
+
433
+ <th>Type</th>
434
+
435
+
436
+
437
+
438
+
439
+ <th class="last">Description</th>
440
+ </tr>
441
+ </thead>
442
+
443
+ <tbody>
444
+
445
+
446
+ <tr>
447
+
448
+ <td class="name"><code>e</code></td>
449
+
450
+
451
+ <td class="type">
452
+
453
+
454
+ <span class="param-type">Event</span>
455
+
456
+
457
+
458
+ </td>
459
+
460
+
461
+
462
+
463
+
464
+ <td class="description last">Submit event</td>
465
+ </tr>
466
+
467
+
468
+ </tbody>
469
+ </table>
470
+
471
+
472
+
473
+
474
+
475
+
476
+ <dl class="details">
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+ <dt class="tag-source">Source:</dt>
504
+ <dd class="tag-source"><ul class="dummy"><li>
505
+ <a href="components_PersonForm.jsx.html">components/PersonForm.jsx</a>, <a href="components_PersonForm.jsx.html#line88">line 88</a>
506
+ </li></ul></dd>
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+ </dl>
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+
541
+ <h4 class="name" id="~validateField"><span class="type-signature">(private, inner) </span>validateField<span class="signature">(name, value)</span><span class="type-signature"></span></h4>
542
+
543
+
544
+
545
+
546
+
547
+
548
+ <div class="description">
549
+ Validate a single form field and update the error state.
550
+ </div>
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+ <h5>Parameters:</h5>
561
+
562
+
563
+ <table class="params">
564
+ <thead>
565
+ <tr>
566
+
567
+ <th>Name</th>
568
+
569
+
570
+ <th>Type</th>
571
+
572
+
573
+
574
+
575
+
576
+ <th class="last">Description</th>
577
+ </tr>
578
+ </thead>
579
+
580
+ <tbody>
581
+
582
+
583
+ <tr>
584
+
585
+ <td class="name"><code>name</code></td>
586
+
587
+
588
+ <td class="type">
589
+
590
+
591
+ <span class="param-type">string</span>
592
+
593
+
594
+
595
+ </td>
596
+
597
+
598
+
599
+
600
+
601
+ <td class="description last">Field name</td>
602
+ </tr>
603
+
604
+
605
+
606
+ <tr>
607
+
608
+ <td class="name"><code>value</code></td>
609
+
610
+
611
+ <td class="type">
612
+
613
+
614
+ <span class="param-type">string</span>
615
+
616
+
617
+
618
+ </td>
619
+
620
+
621
+
622
+
623
+
624
+ <td class="description last">Field value</td>
625
+ </tr>
626
+
627
+
628
+ </tbody>
629
+ </table>
630
+
631
+
632
+
633
+
634
+
635
+
636
+ <dl class="details">
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+
661
+
662
+
663
+ <dt class="tag-source">Source:</dt>
664
+ <dd class="tag-source"><ul class="dummy"><li>
665
+ <a href="components_PersonForm.jsx.html">components/PersonForm.jsx</a>, <a href="components_PersonForm.jsx.html#line34">line 34</a>
666
+ </li></ul></dd>
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+ </dl>
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+ </article>
702
+
703
+ </section>
704
+
705
+
706
+
707
+
708
+ </div>
709
+
710
+ <nav>
711
+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-App.html">App</a></li><li><a href="module-Home.html">Home</a></li><li><a href="module-PersonForm.html">PersonForm</a></li><li><a href="module-Register.html">Register</a></li></ul><h3>Global</h3><ul><li><a href="global.html#addPerson">addPerson</a></li><li><a href="global.html#calculateAge">calculateAge</a></li><li><a href="global.html#errorMessages">errorMessages</a></li><li><a href="global.html#getErrorMessage">getErrorMessage</a></li><li><a href="global.html#validateAge">validateAge</a></li><li><a href="global.html#validateCity">validateCity</a></li><li><a href="global.html#validateEmail">validateEmail</a></li><li><a href="global.html#validateName">validateName</a></li><li><a href="global.html#validatePerson">validatePerson</a></li><li><a href="global.html#validateZipCode">validateZipCode</a></li></ul>
712
+ </nav>
713
+
714
+ <br class="clear">
715
+
716
+ <footer>
717
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Feb 20 2026 09:18:59 GMT+0100 (heure normale d’Europe centrale)
718
+ </footer>
719
+
720
+ <script> prettyPrint(); </script>
721
+ <script src="scripts/linenumber.js"> </script>
722
+ </body>
723
+ </html>