Debian Codegraph @

packages/bootstrap-4/test/__snapshots__/Array.test.tsx.snap

raw
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`array fields array 1`] = `
4 <form
5 className="rjsf"
6 noValidate={false}
7 onSubmit={[Function]}
8 >
9 <div
10 className="form-group field field-array"
11 >
12 <div
13 className="form-group"
14 >
15 <div>
16 <div
17 className="p-0 m-0 row"
18 >
19 <div
20 className="p-0 m-0 col"
21 >
22 <div
23 className="p-0 m-0 container-fluid"
24 >
25 <div
26 className="container"
27 >
28 <div
29 className="mt-2 row"
30 >
31 <div
32 className="col-9"
33 />
34 <div
35 className="py-4 col-lg-3 col-3 col-3"
36 >
37 <button
38 className="ml-1 array-item-add btn btn-primary"
39 disabled={false}
40 onClick={[Function]}
41 style={
42 {
43 "width": "100%",
44 }
45 }
46 title="Add Item"
47 type="button"
48 >
49 <svg
50 fill="currentColor"
51 height="1em"
52 stroke="currentColor"
53 strokeWidth="0"
54 style={
55 {
56 "color": undefined,
57 }
58 }
59 viewBox="0 0 16 16"
60 width="1em"
61 xmlns="http://www.w3.org/2000/svg"
62 >
63 <path
64 clipRule="evenodd"
65 d="M8 3.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H4a.5.5 0 010-1h3.5V4a.5.5 0 01.5-.5z"
66 fillRule="evenodd"
67 />
68 <path
69 clipRule="evenodd"
70 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
71 fillRule="evenodd"
72 />
73 </svg>
74 </button>
75 </div>
76 </div>
77 </div>
78 </div>
79 </div>
80 </div>
81 </div>
82 </div>
83 </div>
84 <div>
85 <button
86 className="btn btn-primary"
87 disabled={false}
88 type="submit"
89 >
90 Submit
91 </button>
92 </div>
93 </form>
94 `;
95
96 exports[`array fields array icons 1`] = `
97 <form
98 className="rjsf"
99 noValidate={false}
100 onSubmit={[Function]}
101 >
102 <div
103 className="form-group field field-array"
104 >
105 <div
106 className="form-group"
107 >
108 <div>
109 <div
110 className="p-0 m-0 row"
111 >
112 <div
113 className="p-0 m-0 col"
114 >
115 <div
116 className="p-0 m-0 container-fluid"
117 >
118 <div>
119 <div
120 className="mb-2 d-flex align-items-center row"
121 >
122 <div
123 className="col-lg-9 col-9"
124 >
125 <div
126 className="form-group field field-string"
127 >
128 <div
129 className="form-group"
130 >
131 <label
132 className="form-label"
133 htmlFor="root_0"
134 >
135
136 *
137 </label>
138 <input
139 aria-describedby="root_0__error root_0__description root_0__help"
140 autoFocus={false}
141 className="form-control"
142 disabled={false}
143 id="root_0"
144 name="root_0"
145 onBlur={[Function]}
146 onChange={[Function]}
147 onFocus={[Function]}
148 placeholder=""
149 readOnly={false}
150 required={true}
151 type="text"
152 value="a"
153 />
154
155 </div>
156 </div>
157 </div>
158 <div
159 className="py-4 col-lg-3 col-3"
160 >
161 <div
162 className="d-flex flex-row"
163 >
164 <div
165 className="m-0 p-0"
166 >
167 <button
168 className="btn btn-light btn-sm"
169 disabled={true}
170 onClick={[Function]}
171 style={
172 {
173 "flex": 1,
174 "fontWeight": "bold",
175 "paddingLeft": 6,
176 "paddingRight": 6,
177 }
178 }
179 title="Move up"
180 type="button"
181 >
182 <svg
183 fill="currentColor"
184 height="1em"
185 stroke="currentColor"
186 strokeWidth="0"
187 style={
188 {
189 "color": undefined,
190 }
191 }
192 viewBox="0 0 1024 1024"
193 width="1em"
194 xmlns="http://www.w3.org/2000/svg"
195 >
196 <path
197 d="M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"
198 />
199 </svg>
200 </button>
201 </div>
202 <div
203 className="m-0 p-0"
204 >
205 <button
206 className="btn btn-light btn-sm"
207 disabled={false}
208 onClick={[Function]}
209 style={
210 {
211 "flex": 1,
212 "fontWeight": "bold",
213 "paddingLeft": 6,
214 "paddingRight": 6,
215 }
216 }
217 title="Move down"
218 type="button"
219 >
220 <svg
221 fill="currentColor"
222 height="1em"
223 stroke="currentColor"
224 strokeWidth="0"
225 style={
226 {
227 "color": undefined,
228 }
229 }
230 viewBox="0 0 1024 1024"
231 width="1em"
232 xmlns="http://www.w3.org/2000/svg"
233 >
234 <path
235 d="M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"
236 />
237 </svg>
238 </button>
239 </div>
240 <div
241 className="m-0 p-0"
242 >
243 <button
244 className="btn btn-light btn-sm"
245 disabled={false}
246 onClick={[Function]}
247 style={
248 {
249 "flex": 1,
250 "fontWeight": "bold",
251 "paddingLeft": 6,
252 "paddingRight": 6,
253 }
254 }
255 title="Copy"
256 type="button"
257 >
258 <svg
259 fill="currentColor"
260 height="1em"
261 stroke="currentColor"
262 strokeWidth="0"
263 style={
264 {
265 "color": undefined,
266 }
267 }
268 viewBox="0 0 512 512"
269 width="1em"
270 xmlns="http://www.w3.org/2000/svg"
271 >
272 <path
273 d="M352 115h90c3.3 0 6-2.7 6-6 0-8.2-3.7-16-10-21.3l-77.1-64.2c-4.9-4.1-14.2-7.4-20.6-7.4-4.1 0-7.4 3.3-7.4 7.4V96c.1 10.5 8.6 19 19.1 19z"
274 />
275 <path
276 d="M307 96V16H176c-17.6 0-32 14.4-32 32v336c0 17.6 14.4 32 32 32h240c17.6 0 32-14.4 32-32V141h-96c-24.8 0-45-20.2-45-45z"
277 />
278 <path
279 d="M116 412V80H96c-17.6 0-32 14.4-32 32v352c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32v-20H148c-17.6 0-32-14.4-32-32z"
280 />
281 </svg>
282 </button>
283 </div>
284 <div
285 className="m-0 p-0"
286 >
287 <button
288 className="btn btn-danger btn-sm"
289 disabled={false}
290 onClick={[Function]}
291 style={
292 {
293 "flex": 1,
294 "fontWeight": "bold",
295 "paddingLeft": 6,
296 "paddingRight": 6,
297 }
298 }
299 title="Remove"
300 type="button"
301 >
302 <svg
303 fill="currentColor"
304 height="1em"
305 stroke="currentColor"
306 strokeWidth="0"
307 style={
308 {
309 "color": undefined,
310 }
311 }
312 viewBox="0 0 512 512"
313 width="1em"
314 xmlns="http://www.w3.org/2000/svg"
315 >
316 <path
317 d="M368.5 240h-225c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7h225c8.8 0 16-7.2 16-16s-7.2-16-16-16z"
318 />
319 </svg>
320 </button>
321 </div>
322 </div>
323 </div>
324 </div>
325 </div>
326 <div>
327 <div
328 className="mb-2 d-flex align-items-center row"
329 >
330 <div
331 className="col-lg-9 col-9"
332 >
333 <div
334 className="form-group field field-string"
335 >
336 <div
337 className="form-group"
338 >
339 <label
340 className="form-label"
341 htmlFor="root_1"
342 >
343
344 *
345 </label>
346 <input
347 aria-describedby="root_1__error root_1__description root_1__help"
348 autoFocus={false}
349 className="form-control"
350 disabled={false}
351 id="root_1"
352 name="root_1"
353 onBlur={[Function]}
354 onChange={[Function]}
355 onFocus={[Function]}
356 placeholder=""
357 readOnly={false}
358 required={true}
359 type="text"
360 value="b"
361 />
362
363 </div>
364 </div>
365 </div>
366 <div
367 className="py-4 col-lg-3 col-3"
368 >
369 <div
370 className="d-flex flex-row"
371 >
372 <div
373 className="m-0 p-0"
374 >
375 <button
376 className="btn btn-light btn-sm"
377 disabled={false}
378 onClick={[Function]}
379 style={
380 {
381 "flex": 1,
382 "fontWeight": "bold",
383 "paddingLeft": 6,
384 "paddingRight": 6,
385 }
386 }
387 title="Move up"
388 type="button"
389 >
390 <svg
391 fill="currentColor"
392 height="1em"
393 stroke="currentColor"
394 strokeWidth="0"
395 style={
396 {
397 "color": undefined,
398 }
399 }
400 viewBox="0 0 1024 1024"
401 width="1em"
402 xmlns="http://www.w3.org/2000/svg"
403 >
404 <path
405 d="M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"
406 />
407 </svg>
408 </button>
409 </div>
410 <div
411 className="m-0 p-0"
412 >
413 <button
414 className="btn btn-light btn-sm"
415 disabled={true}
416 onClick={[Function]}
417 style={
418 {
419 "flex": 1,
420 "fontWeight": "bold",
421 "paddingLeft": 6,
422 "paddingRight": 6,
423 }
424 }
425 title="Move down"
426 type="button"
427 >
428 <svg
429 fill="currentColor"
430 height="1em"
431 stroke="currentColor"
432 strokeWidth="0"
433 style={
434 {
435 "color": undefined,
436 }
437 }
438 viewBox="0 0 1024 1024"
439 width="1em"
440 xmlns="http://www.w3.org/2000/svg"
441 >
442 <path
443 d="M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"
444 />
445 </svg>
446 </button>
447 </div>
448 <div
449 className="m-0 p-0"
450 >
451 <button
452 className="btn btn-light btn-sm"
453 disabled={false}
454 onClick={[Function]}
455 style={
456 {
457 "flex": 1,
458 "fontWeight": "bold",
459 "paddingLeft": 6,
460 "paddingRight": 6,
461 }
462 }
463 title="Copy"
464 type="button"
465 >
466 <svg
467 fill="currentColor"
468 height="1em"
469 stroke="currentColor"
470 strokeWidth="0"
471 style={
472 {
473 "color": undefined,
474 }
475 }
476 viewBox="0 0 512 512"
477 width="1em"
478 xmlns="http://www.w3.org/2000/svg"
479 >
480 <path
481 d="M352 115h90c3.3 0 6-2.7 6-6 0-8.2-3.7-16-10-21.3l-77.1-64.2c-4.9-4.1-14.2-7.4-20.6-7.4-4.1 0-7.4 3.3-7.4 7.4V96c.1 10.5 8.6 19 19.1 19z"
482 />
483 <path
484 d="M307 96V16H176c-17.6 0-32 14.4-32 32v336c0 17.6 14.4 32 32 32h240c17.6 0 32-14.4 32-32V141h-96c-24.8 0-45-20.2-45-45z"
485 />
486 <path
487 d="M116 412V80H96c-17.6 0-32 14.4-32 32v352c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32v-20H148c-17.6 0-32-14.4-32-32z"
488 />
489 </svg>
490 </button>
491 </div>
492 <div
493 className="m-0 p-0"
494 >
495 <button
496 className="btn btn-danger btn-sm"
497 disabled={false}
498 onClick={[Function]}
499 style={
500 {
501 "flex": 1,
502 "fontWeight": "bold",
503 "paddingLeft": 6,
504 "paddingRight": 6,
505 }
506 }
507 title="Remove"
508 type="button"
509 >
510 <svg
511 fill="currentColor"
512 height="1em"
513 stroke="currentColor"
514 strokeWidth="0"
515 style={
516 {
517 "color": undefined,
518 }
519 }
520 viewBox="0 0 512 512"
521 width="1em"
522 xmlns="http://www.w3.org/2000/svg"
523 >
524 <path
525 d="M368.5 240h-225c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7h225c8.8 0 16-7.2 16-16s-7.2-16-16-16z"
526 />
527 </svg>
528 </button>
529 </div>
530 </div>
531 </div>
532 </div>
533 </div>
534 <div
535 className="container"
536 >
537 <div
538 className="mt-2 row"
539 >
540 <div
541 className="col-9"
542 />
543 <div
544 className="py-4 col-lg-3 col-3 col-3"
545 >
546 <button
547 className="ml-1 array-item-add btn btn-primary"
548 disabled={false}
549 onClick={[Function]}
550 style={
551 {
552 "width": "100%",
553 }
554 }
555 title="Add Item"
556 type="button"
557 >
558 <svg
559 fill="currentColor"
560 height="1em"
561 stroke="currentColor"
562 strokeWidth="0"
563 style={
564 {
565 "color": undefined,
566 }
567 }
568 viewBox="0 0 16 16"
569 width="1em"
570 xmlns="http://www.w3.org/2000/svg"
571 >
572 <path
573 clipRule="evenodd"
574 d="M8 3.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H4a.5.5 0 010-1h3.5V4a.5.5 0 01.5-.5z"
575 fillRule="evenodd"
576 />
577 <path
578 clipRule="evenodd"
579 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
580 fillRule="evenodd"
581 />
582 </svg>
583 </button>
584 </div>
585 </div>
586 </div>
587 </div>
588 </div>
589 </div>
590 </div>
591 </div>
592 </div>
593 <div>
594 <button
595 className="btn btn-primary"
596 disabled={false}
597 type="submit"
598 >
599 Submit
600 </button>
601 </div>
602 </form>
603 `;
604
605 exports[`array fields checkboxes 1`] = `
606 <form
607 className="rjsf"
608 noValidate={false}
609 onSubmit={[Function]}
610 >
611 <div
612 className="form-group field field-array"
613 >
614 <div
615 className="form-group"
616 >
617 <label
618 className="form-label"
619 htmlFor="root"
620 >
621
622 </label>
623 <select
624 aria-describedby="root__error root__description root__help"
625 autoFocus={false}
626 className="custom-select"
627 disabled={false}
628 id="root"
629 multiple={true}
630 name="root"
631 onBlur={[Function]}
632 onChange={[Function]}
633 onFocus={[Function]}
634 required={false}
635 value={[]}
636 >
637 <option
638 disabled={false}
639 id="a"
640 value="0"
641 >
642 a
643 </option>
644 <option
645 disabled={false}
646 id="b"
647 value="1"
648 >
649 b
650 </option>
651 <option
652 disabled={false}
653 id="c"
654 value="2"
655 >
656 c
657 </option>
658 </select>
659
660 </div>
661 </div>
662 <div>
663 <button
664 className="btn btn-primary"
665 disabled={false}
666 type="submit"
667 >
668 Submit
669 </button>
670 </div>
671 </form>
672 `;
673
674 exports[`array fields empty errors array 1`] = `
675 <form
676 className="rjsf"
677 noValidate={false}
678 onSubmit={[Function]}
679 >
680 <div
681 className="form-group field field-object"
682 >
683 <div
684 className="form-group"
685 >
686
687 <div
688 className="p-0 container-fluid"
689 >
690 <div
691 className="row"
692 style={
693 {
694 "marginBottom": "10px",
695 }
696 }
697 >
698 <div
699 className="col-12"
700 >
701
702 <div
703 className="form-group field field-string"
704 >
705 <div
706 className="form-group"
707 >
708 <label
709 className="form-label"
710 htmlFor="root_name"
711 >
712 name
713 </label>
714 <input
715 aria-describedby="root_name__error root_name__description root_name__help"
716 autoFocus={false}
717 className="form-control"
718 disabled={false}
719 id="root_name"
720 name="root_name"
721 onBlur={[Function]}
722 onChange={[Function]}
723 onFocus={[Function]}
724 placeholder=""
725 readOnly={false}
726 required={false}
727 type="text"
728 value=""
729 />
730
731 </div>
732 </div>
733 </div>
734 </div>
735 </div>
736 </div>
737 </div>
738 <div>
739 <button
740 className="btn btn-primary"
741 disabled={false}
742 type="submit"
743 >
744 Submit
745 </button>
746 </div>
747 </form>
748 `;
749
750 exports[`array fields fixed array 1`] = `
751 <form
752 className="rjsf"
753 noValidate={false}
754 onSubmit={[Function]}
755 >
756 <div
757 className="form-group field field-array"
758 >
759 <div
760 className="form-group"
761 >
762 <div>
763 <div
764 className="p-0 m-0 row"
765 >
766 <div
767 className="p-0 m-0 col"
768 >
769 <div
770 className="p-0 m-0 container-fluid"
771 >
772 <div>
773 <div
774 className="mb-2 d-flex align-items-center row"
775 >
776 <div
777 className="col-lg-9 col-9"
778 >
779 <div
780 className="form-group field field-string"
781 >
782 <div
783 className="form-group"
784 >
785 <label
786 className="form-label"
787 htmlFor="root_0"
788 >
789
790 *
791 </label>
792 <input
793 aria-describedby="root_0__error root_0__description root_0__help"
794 autoFocus={false}
795 className="form-control"
796 disabled={false}
797 id="root_0"
798 name="root_0"
799 onBlur={[Function]}
800 onChange={[Function]}
801 onFocus={[Function]}
802 placeholder=""
803 readOnly={false}
804 required={true}
805 type="text"
806 value=""
807 />
808
809 </div>
810 </div>
811 </div>
812 <div
813 className="py-4 col-lg-3 col-3"
814 />
815 </div>
816 </div>
817 <div>
818 <div
819 className="mb-2 d-flex align-items-center row"
820 >
821 <div
822 className="col-lg-9 col-9"
823 >
824 <div
825 className="form-group field field-number"
826 >
827 <div
828 className="form-group"
829 >
830 <label
831 className="form-label"
832 htmlFor="root_1"
833 >
834
835 *
836 </label>
837 <input
838 aria-describedby="root_1__error root_1__description root_1__help"
839 autoFocus={false}
840 className="form-control"
841 disabled={false}
842 id="root_1"
843 name="root_1"
844 onBlur={[Function]}
845 onChange={[Function]}
846 onFocus={[Function]}
847 placeholder=""
848 readOnly={false}
849 required={true}
850 step="any"
851 type="number"
852 value=""
853 />
854
855 </div>
856 </div>
857 </div>
858 <div
859 className="py-4 col-lg-3 col-3"
860 />
861 </div>
862 </div>
863 </div>
864 </div>
865 </div>
866 </div>
867 </div>
868 </div>
869 <div>
870 <button
871 className="btn btn-primary"
872 disabled={false}
873 type="submit"
874 >
875 Submit
876 </button>
877 </div>
878 </form>
879 `;
880
881 exports[`array fields has errors 1`] = `
882 <form
883 className="rjsf"
884 noValidate={false}
885 onSubmit={[Function]}
886 >
887 <div
888 className="mb-4 card border-danger"
889 >
890 <div
891 className="alert-danger card-header"
892 >
893 Errors
894 </div>
895 <div
896 className="p-0 card-body"
897 >
898 <div
899 className="list-group"
900 onKeyDown={[Function]}
901 >
902 <div
903 className="border-0 list-group-item"
904 data-rb-event-key={null}
905 disabled={false}
906 onClick={[Function]}
907 >
908 <span>
909 .name Bad input
910 </span>
911 </div>
912 </div>
913 </div>
914 </div>
915 <div
916 className="form-group field field-object"
917 >
918 <div
919 className="form-group"
920 >
921
922 <div
923 className="p-0 container-fluid"
924 >
925 <div
926 className="row"
927 style={
928 {
929 "marginBottom": "10px",
930 }
931 }
932 >
933 <div
934 className="col-12"
935 >
936
937 <div
938 className="form-group field field-string field-error has-error has-danger"
939 >
940 <div
941 className="form-group"
942 >
943 <label
944 className="text-danger form-label"
945 htmlFor="root_name"
946 >
947 name
948 </label>
949 <input
950 aria-describedby="root_name__error root_name__description root_name__help"
951 autoFocus={false}
952 className="is-invalid form-control"
953 disabled={false}
954 id="root_name"
955 name="root_name"
956 onBlur={[Function]}
957 onChange={[Function]}
958 onFocus={[Function]}
959 placeholder=""
960 readOnly={false}
961 required={false}
962 type="text"
963 value=""
964 />
965
966 <ul
967 className="list-group"
968 id="root_name__error"
969 onKeyDown={[Function]}
970 >
971 <li
972 className="border-0 m-0 p-0 list-group-item"
973 data-rb-event-key={null}
974 disabled={false}
975 onClick={[Function]}
976 >
977 <small
978 className="m-0 text-danger"
979 >
980 Bad input
981 </small>
982 </li>
983 </ul>
984 </div>
985 </div>
986 </div>
987 </div>
988 </div>
989 </div>
990 </div>
991 <div>
992 <button
993 className="btn btn-primary"
994 disabled={false}
995 type="submit"
996 >
997 Submit
998 </button>
999 </div>
1000 </form>
1001 `;
1002
1003 exports[`array fields no errors 1`] = `
1004 <form
1005 className="rjsf"
1006 noValidate={false}
1007 onSubmit={[Function]}
1008 >
1009 <div
1010 className="form-group field field-object"
1011 >
1012 <div
1013 className="form-group"
1014 >
1015
1016 <div
1017 className="p-0 container-fluid"
1018 >
1019 <div
1020 className="row"
1021 style={
1022 {
1023 "marginBottom": "10px",
1024 }
1025 }
1026 >
1027 <div
1028 className="col-12"
1029 >
1030
1031 <div
1032 className="form-group field field-string"
1033 >
1034 <div
1035 className="form-group"
1036 >
1037 <label
1038 className="form-label"
1039 htmlFor="root_name"
1040 >
1041 name
1042 </label>
1043 <input
1044 aria-describedby="root_name__error root_name__description root_name__help"
1045 autoFocus={false}
1046 className="form-control"
1047 disabled={false}
1048 id="root_name"
1049 name="root_name"
1050 onBlur={[Function]}
1051 onChange={[Function]}
1052 onFocus={[Function]}
1053 placeholder=""
1054 readOnly={false}
1055 required={false}
1056 type="text"
1057 value=""
1058 />
1059
1060 </div>
1061 </div>
1062 </div>
1063 </div>
1064 </div>
1065 </div>
1066 </div>
1067 <div>
1068 <button
1069 className="btn btn-primary"
1070 disabled={false}
1071 type="submit"
1072 >
1073 Submit
1074 </button>
1075 </div>
1076 </form>
1077 `;
1078
1079 exports[`with title and description array 1`] = `
1080 <form
1081 className="rjsf"
1082 noValidate={false}
1083 onSubmit={[Function]}
1084 >
1085 <div
1086 className="form-group field field-array"
1087 >
1088 <div
1089 className="form-group"
1090 >
1091 <div>
1092 <div
1093 className="p-0 m-0 row"
1094 >
1095 <div
1096 className="p-0 m-0 col"
1097 >
1098 <div
1099 className="my-1"
1100 id="root__title"
1101 >
1102 <h5>
1103 Test field
1104 </h5>
1105 <hr
1106 className="border-0 bg-secondary"
1107 style={
1108 {
1109 "height": "1px",
1110 }
1111 }
1112 />
1113 </div>
1114 <div>
1115 <div
1116 className="mb-3"
1117 id="root__description"
1118 >
1119 a test description
1120 </div>
1121 </div>
1122 <div
1123 className="p-0 m-0 container-fluid"
1124 >
1125 <div
1126 className="container"
1127 >
1128 <div
1129 className="mt-2 row"
1130 >
1131 <div
1132 className="col-9"
1133 />
1134 <div
1135 className="py-4 col-lg-3 col-3 col-3"
1136 >
1137 <button
1138 className="ml-1 array-item-add btn btn-primary"
1139 disabled={false}
1140 onClick={[Function]}
1141 style={
1142 {
1143 "width": "100%",
1144 }
1145 }
1146 title="Add Item"
1147 type="button"
1148 >
1149 <svg
1150 fill="currentColor"
1151 height="1em"
1152 stroke="currentColor"
1153 strokeWidth="0"
1154 style={
1155 {
1156 "color": undefined,
1157 }
1158 }
1159 viewBox="0 0 16 16"
1160 width="1em"
1161 xmlns="http://www.w3.org/2000/svg"
1162 >
1163 <path
1164 clipRule="evenodd"
1165 d="M8 3.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H4a.5.5 0 010-1h3.5V4a.5.5 0 01.5-.5z"
1166 fillRule="evenodd"
1167 />
1168 <path
1169 clipRule="evenodd"
1170 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
1171 fillRule="evenodd"
1172 />
1173 </svg>
1174 </button>
1175 </div>
1176 </div>
1177 </div>
1178 </div>
1179 </div>
1180 </div>
1181 </div>
1182 </div>
1183 </div>
1184 <div>
1185 <button
1186 className="btn btn-primary"
1187 disabled={false}
1188 type="submit"
1189 >
1190 Submit
1191 </button>
1192 </div>
1193 </form>
1194 `;
1195
1196 exports[`with title and description array icons 1`] = `
1197 <form
1198 className="rjsf"
1199 noValidate={false}
1200 onSubmit={[Function]}
1201 >
1202 <div
1203 className="form-group field field-array"
1204 >
1205 <div
1206 className="form-group"
1207 >
1208 <div>
1209 <div
1210 className="p-0 m-0 row"
1211 >
1212 <div
1213 className="p-0 m-0 col"
1214 >
1215 <div
1216 className="my-1"
1217 id="root__title"
1218 >
1219 <h5>
1220 Test field
1221 </h5>
1222 <hr
1223 className="border-0 bg-secondary"
1224 style={
1225 {
1226 "height": "1px",
1227 }
1228 }
1229 />
1230 </div>
1231 <div>
1232 <div
1233 className="mb-3"
1234 id="root__description"
1235 >
1236 a test description
1237 </div>
1238 </div>
1239 <div
1240 className="p-0 m-0 container-fluid"
1241 >
1242 <div>
1243 <div
1244 className="mb-2 d-flex align-items-center row"
1245 >
1246 <div
1247 className="col-lg-9 col-9"
1248 >
1249 <div
1250 className="form-group field field-string"
1251 >
1252 <div
1253 className="form-group"
1254 >
1255 <label
1256 className="form-label"
1257 htmlFor="root_0"
1258 >
1259 Test item
1260 *
1261 </label>
1262 <input
1263 aria-describedby="root_0__error root_0__description root_0__help"
1264 autoFocus={false}
1265 className="form-control"
1266 disabled={false}
1267 id="root_0"
1268 name="root_0"
1269 onBlur={[Function]}
1270 onChange={[Function]}
1271 onFocus={[Function]}
1272 placeholder=""
1273 readOnly={false}
1274 required={true}
1275 type="text"
1276 value="a"
1277 />
1278 <small
1279 className="text-muted form-text"
1280 >
1281 <div>
1282 <div
1283 className="mb-3"
1284 id="root_0__description"
1285 >
1286 a test item description
1287 </div>
1288 </div>
1289 </small>
1290 </div>
1291 </div>
1292 </div>
1293 <div
1294 className="py-4 col-lg-3 col-3"
1295 >
1296 <div
1297 className="d-flex flex-row"
1298 >
1299 <div
1300 className="m-0 p-0"
1301 >
1302 <button
1303 className="btn btn-light btn-sm"
1304 disabled={true}
1305 onClick={[Function]}
1306 style={
1307 {
1308 "flex": 1,
1309 "fontWeight": "bold",
1310 "paddingLeft": 6,
1311 "paddingRight": 6,
1312 }
1313 }
1314 title="Move up"
1315 type="button"
1316 >
1317 <svg
1318 fill="currentColor"
1319 height="1em"
1320 stroke="currentColor"
1321 strokeWidth="0"
1322 style={
1323 {
1324 "color": undefined,
1325 }
1326 }
1327 viewBox="0 0 1024 1024"
1328 width="1em"
1329 xmlns="http://www.w3.org/2000/svg"
1330 >
1331 <path
1332 d="M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"
1333 />
1334 </svg>
1335 </button>
1336 </div>
1337 <div
1338 className="m-0 p-0"
1339 >
1340 <button
1341 className="btn btn-light btn-sm"
1342 disabled={false}
1343 onClick={[Function]}
1344 style={
1345 {
1346 "flex": 1,
1347 "fontWeight": "bold",
1348 "paddingLeft": 6,
1349 "paddingRight": 6,
1350 }
1351 }
1352 title="Move down"
1353 type="button"
1354 >
1355 <svg
1356 fill="currentColor"
1357 height="1em"
1358 stroke="currentColor"
1359 strokeWidth="0"
1360 style={
1361 {
1362 "color": undefined,
1363 }
1364 }
1365 viewBox="0 0 1024 1024"
1366 width="1em"
1367 xmlns="http://www.w3.org/2000/svg"
1368 >
1369 <path
1370 d="M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"
1371 />
1372 </svg>
1373 </button>
1374 </div>
1375 <div
1376 className="m-0 p-0"
1377 >
1378 <button
1379 className="btn btn-light btn-sm"
1380 disabled={false}
1381 onClick={[Function]}
1382 style={
1383 {
1384 "flex": 1,
1385 "fontWeight": "bold",
1386 "paddingLeft": 6,
1387 "paddingRight": 6,
1388 }
1389 }
1390 title="Copy"
1391 type="button"
1392 >
1393 <svg
1394 fill="currentColor"
1395 height="1em"
1396 stroke="currentColor"
1397 strokeWidth="0"
1398 style={
1399 {
1400 "color": undefined,
1401 }
1402 }
1403 viewBox="0 0 512 512"
1404 width="1em"
1405 xmlns="http://www.w3.org/2000/svg"
1406 >
1407 <path
1408 d="M352 115h90c3.3 0 6-2.7 6-6 0-8.2-3.7-16-10-21.3l-77.1-64.2c-4.9-4.1-14.2-7.4-20.6-7.4-4.1 0-7.4 3.3-7.4 7.4V96c.1 10.5 8.6 19 19.1 19z"
1409 />
1410 <path
1411 d="M307 96V16H176c-17.6 0-32 14.4-32 32v336c0 17.6 14.4 32 32 32h240c17.6 0 32-14.4 32-32V141h-96c-24.8 0-45-20.2-45-45z"
1412 />
1413 <path
1414 d="M116 412V80H96c-17.6 0-32 14.4-32 32v352c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32v-20H148c-17.6 0-32-14.4-32-32z"
1415 />
1416 </svg>
1417 </button>
1418 </div>
1419 <div
1420 className="m-0 p-0"
1421 >
1422 <button
1423 className="btn btn-danger btn-sm"
1424 disabled={false}
1425 onClick={[Function]}
1426 style={
1427 {
1428 "flex": 1,
1429 "fontWeight": "bold",
1430 "paddingLeft": 6,
1431 "paddingRight": 6,
1432 }
1433 }
1434 title="Remove"
1435 type="button"
1436 >
1437 <svg
1438 fill="currentColor"
1439 height="1em"
1440 stroke="currentColor"
1441 strokeWidth="0"
1442 style={
1443 {
1444 "color": undefined,
1445 }
1446 }
1447 viewBox="0 0 512 512"
1448 width="1em"
1449 xmlns="http://www.w3.org/2000/svg"
1450 >
1451 <path
1452 d="M368.5 240h-225c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7h225c8.8 0 16-7.2 16-16s-7.2-16-16-16z"
1453 />
1454 </svg>
1455 </button>
1456 </div>
1457 </div>
1458 </div>
1459 </div>
1460 </div>
1461 <div>
1462 <div
1463 className="mb-2 d-flex align-items-center row"
1464 >
1465 <div
1466 className="col-lg-9 col-9"
1467 >
1468 <div
1469 className="form-group field field-string"
1470 >
1471 <div
1472 className="form-group"
1473 >
1474 <label
1475 className="form-label"
1476 htmlFor="root_1"
1477 >
1478 Test item
1479 *
1480 </label>
1481 <input
1482 aria-describedby="root_1__error root_1__description root_1__help"
1483 autoFocus={false}
1484 className="form-control"
1485 disabled={false}
1486 id="root_1"
1487 name="root_1"
1488 onBlur={[Function]}
1489 onChange={[Function]}
1490 onFocus={[Function]}
1491 placeholder=""
1492 readOnly={false}
1493 required={true}
1494 type="text"
1495 value="b"
1496 />
1497 <small
1498 className="text-muted form-text"
1499 >
1500 <div>
1501 <div
1502 className="mb-3"
1503 id="root_1__description"
1504 >
1505 a test item description
1506 </div>
1507 </div>
1508 </small>
1509 </div>
1510 </div>
1511 </div>
1512 <div
1513 className="py-4 col-lg-3 col-3"
1514 >
1515 <div
1516 className="d-flex flex-row"
1517 >
1518 <div
1519 className="m-0 p-0"
1520 >
1521 <button
1522 className="btn btn-light btn-sm"
1523 disabled={false}
1524 onClick={[Function]}
1525 style={
1526 {
1527 "flex": 1,
1528 "fontWeight": "bold",
1529 "paddingLeft": 6,
1530 "paddingRight": 6,
1531 }
1532 }
1533 title="Move up"
1534 type="button"
1535 >
1536 <svg
1537 fill="currentColor"
1538 height="1em"
1539 stroke="currentColor"
1540 strokeWidth="0"
1541 style={
1542 {
1543 "color": undefined,
1544 }
1545 }
1546 viewBox="0 0 1024 1024"
1547 width="1em"
1548 xmlns="http://www.w3.org/2000/svg"
1549 >
1550 <path
1551 d="M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"
1552 />
1553 </svg>
1554 </button>
1555 </div>
1556 <div
1557 className="m-0 p-0"
1558 >
1559 <button
1560 className="btn btn-light btn-sm"
1561 disabled={true}
1562 onClick={[Function]}
1563 style={
1564 {
1565 "flex": 1,
1566 "fontWeight": "bold",
1567 "paddingLeft": 6,
1568 "paddingRight": 6,
1569 }
1570 }
1571 title="Move down"
1572 type="button"
1573 >
1574 <svg
1575 fill="currentColor"
1576 height="1em"
1577 stroke="currentColor"
1578 strokeWidth="0"
1579 style={
1580 {
1581 "color": undefined,
1582 }
1583 }
1584 viewBox="0 0 1024 1024"
1585 width="1em"
1586 xmlns="http://www.w3.org/2000/svg"
1587 >
1588 <path
1589 d="M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"
1590 />
1591 </svg>
1592 </button>
1593 </div>
1594 <div
1595 className="m-0 p-0"
1596 >
1597 <button
1598 className="btn btn-light btn-sm"
1599 disabled={false}
1600 onClick={[Function]}
1601 style={
1602 {
1603 "flex": 1,
1604 "fontWeight": "bold",
1605 "paddingLeft": 6,
1606 "paddingRight": 6,
1607 }
1608 }
1609 title="Copy"
1610 type="button"
1611 >
1612 <svg
1613 fill="currentColor"
1614 height="1em"
1615 stroke="currentColor"
1616 strokeWidth="0"
1617 style={
1618 {
1619 "color": undefined,
1620 }
1621 }
1622 viewBox="0 0 512 512"
1623 width="1em"
1624 xmlns="http://www.w3.org/2000/svg"
1625 >
1626 <path
1627 d="M352 115h90c3.3 0 6-2.7 6-6 0-8.2-3.7-16-10-21.3l-77.1-64.2c-4.9-4.1-14.2-7.4-20.6-7.4-4.1 0-7.4 3.3-7.4 7.4V96c.1 10.5 8.6 19 19.1 19z"
1628 />
1629 <path
1630 d="M307 96V16H176c-17.6 0-32 14.4-32 32v336c0 17.6 14.4 32 32 32h240c17.6 0 32-14.4 32-32V141h-96c-24.8 0-45-20.2-45-45z"
1631 />
1632 <path
1633 d="M116 412V80H96c-17.6 0-32 14.4-32 32v352c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32v-20H148c-17.6 0-32-14.4-32-32z"
1634 />
1635 </svg>
1636 </button>
1637 </div>
1638 <div
1639 className="m-0 p-0"
1640 >
1641 <button
1642 className="btn btn-danger btn-sm"
1643 disabled={false}
1644 onClick={[Function]}
1645 style={
1646 {
1647 "flex": 1,
1648 "fontWeight": "bold",
1649 "paddingLeft": 6,
1650 "paddingRight": 6,
1651 }
1652 }
1653 title="Remove"
1654 type="button"
1655 >
1656 <svg
1657 fill="currentColor"
1658 height="1em"
1659 stroke="currentColor"
1660 strokeWidth="0"
1661 style={
1662 {
1663 "color": undefined,
1664 }
1665 }
1666 viewBox="0 0 512 512"
1667 width="1em"
1668 xmlns="http://www.w3.org/2000/svg"
1669 >
1670 <path
1671 d="M368.5 240h-225c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7h225c8.8 0 16-7.2 16-16s-7.2-16-16-16z"
1672 />
1673 </svg>
1674 </button>
1675 </div>
1676 </div>
1677 </div>
1678 </div>
1679 </div>
1680 <div
1681 className="container"
1682 >
1683 <div
1684 className="mt-2 row"
1685 >
1686 <div
1687 className="col-9"
1688 />
1689 <div
1690 className="py-4 col-lg-3 col-3 col-3"
1691 >
1692 <button
1693 className="ml-1 array-item-add btn btn-primary"
1694 disabled={false}
1695 onClick={[Function]}
1696 style={
1697 {
1698 "width": "100%",
1699 }
1700 }
1701 title="Add Item"
1702 type="button"
1703 >
1704 <svg
1705 fill="currentColor"
1706 height="1em"
1707 stroke="currentColor"
1708 strokeWidth="0"
1709 style={
1710 {
1711 "color": undefined,
1712 }
1713 }
1714 viewBox="0 0 16 16"
1715 width="1em"
1716 xmlns="http://www.w3.org/2000/svg"
1717 >
1718 <path
1719 clipRule="evenodd"
1720 d="M8 3.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H4a.5.5 0 010-1h3.5V4a.5.5 0 01.5-.5z"
1721 fillRule="evenodd"
1722 />
1723 <path
1724 clipRule="evenodd"
1725 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
1726 fillRule="evenodd"
1727 />
1728 </svg>
1729 </button>
1730 </div>
1731 </div>
1732 </div>
1733 </div>
1734 </div>
1735 </div>
1736 </div>
1737 </div>
1738 </div>
1739 <div>
1740 <button
1741 className="btn btn-primary"
1742 disabled={false}
1743 type="submit"
1744 >
1745 Submit
1746 </button>
1747 </div>
1748 </form>
1749 `;
1750
1751 exports[`with title and description checkboxes 1`] = `
1752 <form
1753 className="rjsf"
1754 noValidate={false}
1755 onSubmit={[Function]}
1756 >
1757 <div
1758 className="form-group field field-array"
1759 >
1760 <div
1761 className="form-group"
1762 >
1763 <label
1764 className="form-label"
1765 htmlFor="root"
1766 >
1767 Test field
1768 </label>
1769 <select
1770 aria-describedby="root__error root__description root__help"
1771 autoFocus={false}
1772 className="custom-select"
1773 disabled={false}
1774 id="root"
1775 multiple={true}
1776 name="root"
1777 onBlur={[Function]}
1778 onChange={[Function]}
1779 onFocus={[Function]}
1780 required={false}
1781 value={[]}
1782 >
1783 <option
1784 disabled={false}
1785 id="a"
1786 value="0"
1787 >
1788 a
1789 </option>
1790 <option
1791 disabled={false}
1792 id="b"
1793 value="1"
1794 >
1795 b
1796 </option>
1797 <option
1798 disabled={false}
1799 id="c"
1800 value="2"
1801 >
1802 c
1803 </option>
1804 </select>
1805 <small
1806 className="text-muted form-text"
1807 >
1808 <div>
1809 <div
1810 className="mb-3"
1811 id="root__description"
1812 >
1813 a test description
1814 </div>
1815 </div>
1816 </small>
1817 </div>
1818 </div>
1819 <div>
1820 <button
1821 className="btn btn-primary"
1822 disabled={false}
1823 type="submit"
1824 >
1825 Submit
1826 </button>
1827 </div>
1828 </form>
1829 `;
1830
1831 exports[`with title and description fixed array 1`] = `
1832 <form
1833 className="rjsf"
1834 noValidate={false}
1835 onSubmit={[Function]}
1836 >
1837 <div
1838 className="form-group field field-array"
1839 >
1840 <div
1841 className="form-group"
1842 >
1843 <div>
1844 <div
1845 className="p-0 m-0 row"
1846 >
1847 <div
1848 className="p-0 m-0 col"
1849 >
1850 <div
1851 className="my-1"
1852 id="root__title"
1853 >
1854 <h5>
1855 Test field
1856 </h5>
1857 <hr
1858 className="border-0 bg-secondary"
1859 style={
1860 {
1861 "height": "1px",
1862 }
1863 }
1864 />
1865 </div>
1866 <div>
1867 <div
1868 className="mb-3"
1869 id="root__description"
1870 >
1871 a test description
1872 </div>
1873 </div>
1874 <div
1875 className="p-0 m-0 container-fluid"
1876 >
1877 <div>
1878 <div
1879 className="mb-2 d-flex align-items-center row"
1880 >
1881 <div
1882 className="col-lg-9 col-9"
1883 >
1884 <div
1885 className="form-group field field-string"
1886 >
1887 <div
1888 className="form-group"
1889 >
1890 <label
1891 className="form-label"
1892 htmlFor="root_0"
1893 >
1894 Test item
1895 *
1896 </label>
1897 <input
1898 aria-describedby="root_0__error root_0__description root_0__help"
1899 autoFocus={false}
1900 className="form-control"
1901 disabled={false}
1902 id="root_0"
1903 name="root_0"
1904 onBlur={[Function]}
1905 onChange={[Function]}
1906 onFocus={[Function]}
1907 placeholder=""
1908 readOnly={false}
1909 required={true}
1910 type="text"
1911 value=""
1912 />
1913 <small
1914 className="text-muted form-text"
1915 >
1916 <div>
1917 <div
1918 className="mb-3"
1919 id="root_0__description"
1920 >
1921 a test item description
1922 </div>
1923 </div>
1924 </small>
1925 </div>
1926 </div>
1927 </div>
1928 <div
1929 className="py-4 col-lg-3 col-3"
1930 />
1931 </div>
1932 </div>
1933 <div>
1934 <div
1935 className="mb-2 d-flex align-items-center row"
1936 >
1937 <div
1938 className="col-lg-9 col-9"
1939 >
1940 <div
1941 className="form-group field field-number"
1942 >
1943 <div
1944 className="form-group"
1945 >
1946 <label
1947 className="form-label"
1948 htmlFor="root_1"
1949 >
1950 Test item
1951 *
1952 </label>
1953 <input
1954 aria-describedby="root_1__error root_1__description root_1__help"
1955 autoFocus={false}
1956 className="form-control"
1957 disabled={false}
1958 id="root_1"
1959 name="root_1"
1960 onBlur={[Function]}
1961 onChange={[Function]}
1962 onFocus={[Function]}
1963 placeholder=""
1964 readOnly={false}
1965 required={true}
1966 step="any"
1967 type="number"
1968 value=""
1969 />
1970 <small
1971 className="text-muted form-text"
1972 >
1973 <div>
1974 <div
1975 className="mb-3"
1976 id="root_1__description"
1977 >
1978 a test item description
1979 </div>
1980 </div>
1981 </small>
1982 </div>
1983 </div>
1984 </div>
1985 <div
1986 className="py-4 col-lg-3 col-3"
1987 />
1988 </div>
1989 </div>
1990 </div>
1991 </div>
1992 </div>
1993 </div>
1994 </div>
1995 </div>
1996 <div>
1997 <button
1998 className="btn btn-primary"
1999 disabled={false}
2000 type="submit"
2001 >
2002 Submit
2003 </button>
2004 </div>
2005 </form>
2006 `;
2007
2008 exports[`with title and description from both array 1`] = `
2009 <form
2010 className="rjsf"
2011 noValidate={false}
2012 onSubmit={[Function]}
2013 >
2014 <div
2015 className="form-group field field-array"
2016 >
2017 <div
2018 className="form-group"
2019 >
2020 <div>
2021 <div
2022 className="p-0 m-0 row"
2023 >
2024 <div
2025 className="p-0 m-0 col"
2026 >
2027 <div
2028 className="my-1"
2029 id="root__title"
2030 >
2031 <h5>
2032 My Field
2033 </h5>
2034 <hr
2035 className="border-0 bg-secondary"
2036 style={
2037 {
2038 "height": "1px",
2039 }
2040 }
2041 />
2042 </div>
2043 <div>
2044 <div
2045 className="mb-3"
2046 id="root__description"
2047 >
2048 a fancier description
2049 </div>
2050 </div>
2051 <div
2052 className="p-0 m-0 container-fluid"
2053 >
2054 <div
2055 className="container"
2056 >
2057 <div
2058 className="mt-2 row"
2059 >
2060 <div
2061 className="col-9"
2062 />
2063 <div
2064 className="py-4 col-lg-3 col-3 col-3"
2065 >
2066 <button
2067 className="ml-1 array-item-add btn btn-primary"
2068 disabled={false}
2069 onClick={[Function]}
2070 style={
2071 {
2072 "width": "100%",
2073 }
2074 }
2075 title="Add Item"
2076 type="button"
2077 >
2078 <svg
2079 fill="currentColor"
2080 height="1em"
2081 stroke="currentColor"
2082 strokeWidth="0"
2083 style={
2084 {
2085 "color": undefined,
2086 }
2087 }
2088 viewBox="0 0 16 16"
2089 width="1em"
2090 xmlns="http://www.w3.org/2000/svg"
2091 >
2092 <path
2093 clipRule="evenodd"
2094 d="M8 3.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H4a.5.5 0 010-1h3.5V4a.5.5 0 01.5-.5z"
2095 fillRule="evenodd"
2096 />
2097 <path
2098 clipRule="evenodd"
2099 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
2100 fillRule="evenodd"
2101 />
2102 </svg>
2103 </button>
2104 </div>
2105 </div>
2106 </div>
2107 </div>
2108 </div>
2109 </div>
2110 </div>
2111 </div>
2112 </div>
2113 <div>
2114 <button
2115 className="btn btn-primary"
2116 disabled={false}
2117 type="submit"
2118 >
2119 Submit
2120 </button>
2121 </div>
2122 </form>
2123 `;
2124
2125 exports[`with title and description from both array icons 1`] = `
2126 <form
2127 className="rjsf"
2128 noValidate={false}
2129 onSubmit={[Function]}
2130 >
2131 <div
2132 className="form-group field field-array"
2133 >
2134 <div
2135 className="form-group"
2136 >
2137 <div>
2138 <div
2139 className="p-0 m-0 row"
2140 >
2141 <div
2142 className="p-0 m-0 col"
2143 >
2144 <div
2145 className="my-1"
2146 id="root__title"
2147 >
2148 <h5>
2149 My Field
2150 </h5>
2151 <hr
2152 className="border-0 bg-secondary"
2153 style={
2154 {
2155 "height": "1px",
2156 }
2157 }
2158 />
2159 </div>
2160 <div>
2161 <div
2162 className="mb-3"
2163 id="root__description"
2164 >
2165 a fancier description
2166 </div>
2167 </div>
2168 <div
2169 className="p-0 m-0 container-fluid"
2170 >
2171 <div>
2172 <div
2173 className="mb-2 d-flex align-items-center row"
2174 >
2175 <div
2176 className="col-lg-9 col-9"
2177 >
2178 <div
2179 className="form-group field field-string"
2180 >
2181 <div
2182 className="form-group"
2183 >
2184 <label
2185 className="form-label"
2186 htmlFor="root_0"
2187 >
2188 My Item
2189 *
2190 </label>
2191 <input
2192 aria-describedby="root_0__error root_0__description root_0__help"
2193 autoFocus={false}
2194 className="form-control"
2195 disabled={false}
2196 id="root_0"
2197 name="root_0"
2198 onBlur={[Function]}
2199 onChange={[Function]}
2200 onFocus={[Function]}
2201 placeholder=""
2202 readOnly={false}
2203 required={true}
2204 type="text"
2205 value="a"
2206 />
2207 <small
2208 className="text-muted form-text"
2209 >
2210 <div>
2211 <div
2212 className="mb-3"
2213 id="root_0__description"
2214 >
2215 a fancier item description
2216 </div>
2217 </div>
2218 </small>
2219 </div>
2220 </div>
2221 </div>
2222 <div
2223 className="py-4 col-lg-3 col-3"
2224 >
2225 <div
2226 className="d-flex flex-row"
2227 >
2228 <div
2229 className="m-0 p-0"
2230 >
2231 <button
2232 className="btn btn-light btn-sm"
2233 disabled={true}
2234 onClick={[Function]}
2235 style={
2236 {
2237 "flex": 1,
2238 "fontWeight": "bold",
2239 "paddingLeft": 6,
2240 "paddingRight": 6,
2241 }
2242 }
2243 title="Move up"
2244 type="button"
2245 >
2246 <svg
2247 fill="currentColor"
2248 height="1em"
2249 stroke="currentColor"
2250 strokeWidth="0"
2251 style={
2252 {
2253 "color": undefined,
2254 }
2255 }
2256 viewBox="0 0 1024 1024"
2257 width="1em"
2258 xmlns="http://www.w3.org/2000/svg"
2259 >
2260 <path
2261 d="M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"
2262 />
2263 </svg>
2264 </button>
2265 </div>
2266 <div
2267 className="m-0 p-0"
2268 >
2269 <button
2270 className="btn btn-light btn-sm"
2271 disabled={false}
2272 onClick={[Function]}
2273 style={
2274 {
2275 "flex": 1,
2276 "fontWeight": "bold",
2277 "paddingLeft": 6,
2278 "paddingRight": 6,
2279 }
2280 }
2281 title="Move down"
2282 type="button"
2283 >
2284 <svg
2285 fill="currentColor"
2286 height="1em"
2287 stroke="currentColor"
2288 strokeWidth="0"
2289 style={
2290 {
2291 "color": undefined,
2292 }
2293 }
2294 viewBox="0 0 1024 1024"
2295 width="1em"
2296 xmlns="http://www.w3.org/2000/svg"
2297 >
2298 <path
2299 d="M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"
2300 />
2301 </svg>
2302 </button>
2303 </div>
2304 <div
2305 className="m-0 p-0"
2306 >
2307 <button
2308 className="btn btn-light btn-sm"
2309 disabled={false}
2310 onClick={[Function]}
2311 style={
2312 {
2313 "flex": 1,
2314 "fontWeight": "bold",
2315 "paddingLeft": 6,
2316 "paddingRight": 6,
2317 }
2318 }
2319 title="Copy"
2320 type="button"
2321 >
2322 <svg
2323 fill="currentColor"
2324 height="1em"
2325 stroke="currentColor"
2326 strokeWidth="0"
2327 style={
2328 {
2329 "color": undefined,
2330 }
2331 }
2332 viewBox="0 0 512 512"
2333 width="1em"
2334 xmlns="http://www.w3.org/2000/svg"
2335 >
2336 <path
2337 d="M352 115h90c3.3 0 6-2.7 6-6 0-8.2-3.7-16-10-21.3l-77.1-64.2c-4.9-4.1-14.2-7.4-20.6-7.4-4.1 0-7.4 3.3-7.4 7.4V96c.1 10.5 8.6 19 19.1 19z"
2338 />
2339 <path
2340 d="M307 96V16H176c-17.6 0-32 14.4-32 32v336c0 17.6 14.4 32 32 32h240c17.6 0 32-14.4 32-32V141h-96c-24.8 0-45-20.2-45-45z"
2341 />
2342 <path
2343 d="M116 412V80H96c-17.6 0-32 14.4-32 32v352c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32v-20H148c-17.6 0-32-14.4-32-32z"
2344 />
2345 </svg>
2346 </button>
2347 </div>
2348 <div
2349 className="m-0 p-0"
2350 >
2351 <button
2352 className="btn btn-danger btn-sm"
2353 disabled={false}
2354 onClick={[Function]}
2355 style={
2356 {
2357 "flex": 1,
2358 "fontWeight": "bold",
2359 "paddingLeft": 6,
2360 "paddingRight": 6,
2361 }
2362 }
2363 title="Remove"
2364 type="button"
2365 >
2366 <svg
2367 fill="currentColor"
2368 height="1em"
2369 stroke="currentColor"
2370 strokeWidth="0"
2371 style={
2372 {
2373 "color": undefined,
2374 }
2375 }
2376 viewBox="0 0 512 512"
2377 width="1em"
2378 xmlns="http://www.w3.org/2000/svg"
2379 >
2380 <path
2381 d="M368.5 240h-225c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7h225c8.8 0 16-7.2 16-16s-7.2-16-16-16z"
2382 />
2383 </svg>
2384 </button>
2385 </div>
2386 </div>
2387 </div>
2388 </div>
2389 </div>
2390 <div>
2391 <div
2392 className="mb-2 d-flex align-items-center row"
2393 >
2394 <div
2395 className="col-lg-9 col-9"
2396 >
2397 <div
2398 className="form-group field field-string"
2399 >
2400 <div
2401 className="form-group"
2402 >
2403 <label
2404 className="form-label"
2405 htmlFor="root_1"
2406 >
2407 My Item
2408 *
2409 </label>
2410 <input
2411 aria-describedby="root_1__error root_1__description root_1__help"
2412 autoFocus={false}
2413 className="form-control"
2414 disabled={false}
2415 id="root_1"
2416 name="root_1"
2417 onBlur={[Function]}
2418 onChange={[Function]}
2419 onFocus={[Function]}
2420 placeholder=""
2421 readOnly={false}
2422 required={true}
2423 type="text"
2424 value="b"
2425 />
2426 <small
2427 className="text-muted form-text"
2428 >
2429 <div>
2430 <div
2431 className="mb-3"
2432 id="root_1__description"
2433 >
2434 a fancier item description
2435 </div>
2436 </div>
2437 </small>
2438 </div>
2439 </div>
2440 </div>
2441 <div
2442 className="py-4 col-lg-3 col-3"
2443 >
2444 <div
2445 className="d-flex flex-row"
2446 >
2447 <div
2448 className="m-0 p-0"
2449 >
2450 <button
2451 className="btn btn-light btn-sm"
2452 disabled={false}
2453 onClick={[Function]}
2454 style={
2455 {
2456 "flex": 1,
2457 "fontWeight": "bold",
2458 "paddingLeft": 6,
2459 "paddingRight": 6,
2460 }
2461 }
2462 title="Move up"
2463 type="button"
2464 >
2465 <svg
2466 fill="currentColor"
2467 height="1em"
2468 stroke="currentColor"
2469 strokeWidth="0"
2470 style={
2471 {
2472 "color": undefined,
2473 }
2474 }
2475 viewBox="0 0 1024 1024"
2476 width="1em"
2477 xmlns="http://www.w3.org/2000/svg"
2478 >
2479 <path
2480 d="M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"
2481 />
2482 </svg>
2483 </button>
2484 </div>
2485 <div
2486 className="m-0 p-0"
2487 >
2488 <button
2489 className="btn btn-light btn-sm"
2490 disabled={true}
2491 onClick={[Function]}
2492 style={
2493 {
2494 "flex": 1,
2495 "fontWeight": "bold",
2496 "paddingLeft": 6,
2497 "paddingRight": 6,
2498 }
2499 }
2500 title="Move down"
2501 type="button"
2502 >
2503 <svg
2504 fill="currentColor"
2505 height="1em"
2506 stroke="currentColor"
2507 strokeWidth="0"
2508 style={
2509 {
2510 "color": undefined,
2511 }
2512 }
2513 viewBox="0 0 1024 1024"
2514 width="1em"
2515 xmlns="http://www.w3.org/2000/svg"
2516 >
2517 <path
2518 d="M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"
2519 />
2520 </svg>
2521 </button>
2522 </div>
2523 <div
2524 className="m-0 p-0"
2525 >
2526 <button
2527 className="btn btn-light btn-sm"
2528 disabled={false}
2529 onClick={[Function]}
2530 style={
2531 {
2532 "flex": 1,
2533 "fontWeight": "bold",
2534 "paddingLeft": 6,
2535 "paddingRight": 6,
2536 }
2537 }
2538 title="Copy"
2539 type="button"
2540 >
2541 <svg
2542 fill="currentColor"
2543 height="1em"
2544 stroke="currentColor"
2545 strokeWidth="0"
2546 style={
2547 {
2548 "color": undefined,
2549 }
2550 }
2551 viewBox="0 0 512 512"
2552 width="1em"
2553 xmlns="http://www.w3.org/2000/svg"
2554 >
2555 <path
2556 d="M352 115h90c3.3 0 6-2.7 6-6 0-8.2-3.7-16-10-21.3l-77.1-64.2c-4.9-4.1-14.2-7.4-20.6-7.4-4.1 0-7.4 3.3-7.4 7.4V96c.1 10.5 8.6 19 19.1 19z"
2557 />
2558 <path
2559 d="M307 96V16H176c-17.6 0-32 14.4-32 32v336c0 17.6 14.4 32 32 32h240c17.6 0 32-14.4 32-32V141h-96c-24.8 0-45-20.2-45-45z"
2560 />
2561 <path
2562 d="M116 412V80H96c-17.6 0-32 14.4-32 32v352c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32v-20H148c-17.6 0-32-14.4-32-32z"
2563 />
2564 </svg>
2565 </button>
2566 </div>
2567 <div
2568 className="m-0 p-0"
2569 >
2570 <button
2571 className="btn btn-danger btn-sm"
2572 disabled={false}
2573 onClick={[Function]}
2574 style={
2575 {
2576 "flex": 1,
2577 "fontWeight": "bold",
2578 "paddingLeft": 6,
2579 "paddingRight": 6,
2580 }
2581 }
2582 title="Remove"
2583 type="button"
2584 >
2585 <svg
2586 fill="currentColor"
2587 height="1em"
2588 stroke="currentColor"
2589 strokeWidth="0"
2590 style={
2591 {
2592 "color": undefined,
2593 }
2594 }
2595 viewBox="0 0 512 512"
2596 width="1em"
2597 xmlns="http://www.w3.org/2000/svg"
2598 >
2599 <path
2600 d="M368.5 240h-225c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7h225c8.8 0 16-7.2 16-16s-7.2-16-16-16z"
2601 />
2602 </svg>
2603 </button>
2604 </div>
2605 </div>
2606 </div>
2607 </div>
2608 </div>
2609 <div
2610 className="container"
2611 >
2612 <div
2613 className="mt-2 row"
2614 >
2615 <div
2616 className="col-9"
2617 />
2618 <div
2619 className="py-4 col-lg-3 col-3 col-3"
2620 >
2621 <button
2622 className="ml-1 array-item-add btn btn-primary"
2623 disabled={false}
2624 onClick={[Function]}
2625 style={
2626 {
2627 "width": "100%",
2628 }
2629 }
2630 title="Add Item"
2631 type="button"
2632 >
2633 <svg
2634 fill="currentColor"
2635 height="1em"
2636 stroke="currentColor"
2637 strokeWidth="0"
2638 style={
2639 {
2640 "color": undefined,
2641 }
2642 }
2643 viewBox="0 0 16 16"
2644 width="1em"
2645 xmlns="http://www.w3.org/2000/svg"
2646 >
2647 <path
2648 clipRule="evenodd"
2649 d="M8 3.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H4a.5.5 0 010-1h3.5V4a.5.5 0 01.5-.5z"
2650 fillRule="evenodd"
2651 />
2652 <path
2653 clipRule="evenodd"
2654 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
2655 fillRule="evenodd"
2656 />
2657 </svg>
2658 </button>
2659 </div>
2660 </div>
2661 </div>
2662 </div>
2663 </div>
2664 </div>
2665 </div>
2666 </div>
2667 </div>
2668 <div>
2669 <button
2670 className="btn btn-primary"
2671 disabled={false}
2672 type="submit"
2673 >
2674 Submit
2675 </button>
2676 </div>
2677 </form>
2678 `;
2679
2680 exports[`with title and description from both checkboxes 1`] = `
2681 <form
2682 className="rjsf"
2683 noValidate={false}
2684 onSubmit={[Function]}
2685 >
2686 <div
2687 className="form-group field field-array"
2688 >
2689 <div
2690 className="form-group"
2691 >
2692 <label
2693 className="form-label"
2694 htmlFor="root"
2695 >
2696 My Field
2697 </label>
2698 <select
2699 aria-describedby="root__error root__description root__help"
2700 autoFocus={false}
2701 className="custom-select"
2702 disabled={false}
2703 id="root"
2704 multiple={true}
2705 name="root"
2706 onBlur={[Function]}
2707 onChange={[Function]}
2708 onFocus={[Function]}
2709 required={false}
2710 value={[]}
2711 >
2712 <option
2713 disabled={false}
2714 id="a"
2715 value="0"
2716 >
2717 a
2718 </option>
2719 <option
2720 disabled={false}
2721 id="b"
2722 value="1"
2723 >
2724 b
2725 </option>
2726 <option
2727 disabled={false}
2728 id="c"
2729 value="2"
2730 >
2731 c
2732 </option>
2733 </select>
2734 <small
2735 className="text-muted form-text"
2736 >
2737 <div>
2738 <div
2739 className="mb-3"
2740 id="root__description"
2741 >
2742 a fancier description
2743 </div>
2744 </div>
2745 </small>
2746 </div>
2747 </div>
2748 <div>
2749 <button
2750 className="btn btn-primary"
2751 disabled={false}
2752 type="submit"
2753 >
2754 Submit
2755 </button>
2756 </div>
2757 </form>
2758 `;
2759
2760 exports[`with title and description from both fixed array 1`] = `
2761 <form
2762 className="rjsf"
2763 noValidate={false}
2764 onSubmit={[Function]}
2765 >
2766 <div
2767 className="form-group field field-array"
2768 >
2769 <div
2770 className="form-group"
2771 >
2772 <div>
2773 <div
2774 className="p-0 m-0 row"
2775 >
2776 <div
2777 className="p-0 m-0 col"
2778 >
2779 <div
2780 className="my-1"
2781 id="root__title"
2782 >
2783 <h5>
2784 My Field
2785 </h5>
2786 <hr
2787 className="border-0 bg-secondary"
2788 style={
2789 {
2790 "height": "1px",
2791 }
2792 }
2793 />
2794 </div>
2795 <div>
2796 <div
2797 className="mb-3"
2798 id="root__description"
2799 >
2800 a fancier description
2801 </div>
2802 </div>
2803 <div
2804 className="p-0 m-0 container-fluid"
2805 >
2806 <div>
2807 <div
2808 className="mb-2 d-flex align-items-center row"
2809 >
2810 <div
2811 className="col-lg-9 col-9"
2812 >
2813 <div
2814 className="form-group field field-string"
2815 >
2816 <div
2817 className="form-group"
2818 >
2819 <label
2820 className="form-label"
2821 htmlFor="root_0"
2822 >
2823 My Item
2824 *
2825 </label>
2826 <input
2827 aria-describedby="root_0__error root_0__description root_0__help"
2828 autoFocus={false}
2829 className="form-control"
2830 disabled={false}
2831 id="root_0"
2832 name="root_0"
2833 onBlur={[Function]}
2834 onChange={[Function]}
2835 onFocus={[Function]}
2836 placeholder=""
2837 readOnly={false}
2838 required={true}
2839 type="text"
2840 value=""
2841 />
2842 <small
2843 className="text-muted form-text"
2844 >
2845 <div>
2846 <div
2847 className="mb-3"
2848 id="root_0__description"
2849 >
2850 a fancier item description
2851 </div>
2852 </div>
2853 </small>
2854 </div>
2855 </div>
2856 </div>
2857 <div
2858 className="py-4 col-lg-3 col-3"
2859 />
2860 </div>
2861 </div>
2862 <div>
2863 <div
2864 className="mb-2 d-flex align-items-center row"
2865 >
2866 <div
2867 className="col-lg-9 col-9"
2868 >
2869 <div
2870 className="form-group field field-number"
2871 >
2872 <div
2873 className="form-group"
2874 >
2875 <label
2876 className="form-label"
2877 htmlFor="root_1"
2878 >
2879 My Item
2880 *
2881 </label>
2882 <input
2883 aria-describedby="root_1__error root_1__description root_1__help"
2884 autoFocus={false}
2885 className="form-control"
2886 disabled={false}
2887 id="root_1"
2888 name="root_1"
2889 onBlur={[Function]}
2890 onChange={[Function]}
2891 onFocus={[Function]}
2892 placeholder=""
2893 readOnly={false}
2894 required={true}
2895 step="any"
2896 type="number"
2897 value=""
2898 />
2899 <small
2900 className="text-muted form-text"
2901 >
2902 <div>
2903 <div
2904 className="mb-3"
2905 id="root_1__description"
2906 >
2907 a fancier item description
2908 </div>
2909 </div>
2910 </small>
2911 </div>
2912 </div>
2913 </div>
2914 <div
2915 className="py-4 col-lg-3 col-3"
2916 />
2917 </div>
2918 </div>
2919 </div>
2920 </div>
2921 </div>
2922 </div>
2923 </div>
2924 </div>
2925 <div>
2926 <button
2927 className="btn btn-primary"
2928 disabled={false}
2929 type="submit"
2930 >
2931 Submit
2932 </button>
2933 </div>
2934 </form>
2935 `;
2936
2937 exports[`with title and description from uiSchema array 1`] = `
2938 <form
2939 className="rjsf"
2940 noValidate={false}
2941 onSubmit={[Function]}
2942 >
2943 <div
2944 className="form-group field field-array"
2945 >
2946 <div
2947 className="form-group"
2948 >
2949 <div>
2950 <div
2951 className="p-0 m-0 row"
2952 >
2953 <div
2954 className="p-0 m-0 col"
2955 >
2956 <div
2957 className="my-1"
2958 id="root__title"
2959 >
2960 <h5>
2961 My Field
2962 </h5>
2963 <hr
2964 className="border-0 bg-secondary"
2965 style={
2966 {
2967 "height": "1px",
2968 }
2969 }
2970 />
2971 </div>
2972 <div>
2973 <div
2974 className="mb-3"
2975 id="root__description"
2976 >
2977 a fancier description
2978 </div>
2979 </div>
2980 <div
2981 className="p-0 m-0 container-fluid"
2982 >
2983 <div
2984 className="container"
2985 >
2986 <div
2987 className="mt-2 row"
2988 >
2989 <div
2990 className="col-9"
2991 />
2992 <div
2993 className="py-4 col-lg-3 col-3 col-3"
2994 >
2995 <button
2996 className="ml-1 array-item-add btn btn-primary"
2997 disabled={false}
2998 onClick={[Function]}
2999 style={
3000 {
3001 "width": "100%",
3002 }
3003 }
3004 title="Add Item"
3005 type="button"
3006 >
3007 <svg
3008 fill="currentColor"
3009 height="1em"
3010 stroke="currentColor"
3011 strokeWidth="0"
3012 style={
3013 {
3014 "color": undefined,
3015 }
3016 }
3017 viewBox="0 0 16 16"
3018 width="1em"
3019 xmlns="http://www.w3.org/2000/svg"
3020 >
3021 <path
3022 clipRule="evenodd"
3023 d="M8 3.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H4a.5.5 0 010-1h3.5V4a.5.5 0 01.5-.5z"
3024 fillRule="evenodd"
3025 />
3026 <path
3027 clipRule="evenodd"
3028 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
3029 fillRule="evenodd"
3030 />
3031 </svg>
3032 </button>
3033 </div>
3034 </div>
3035 </div>
3036 </div>
3037 </div>
3038 </div>
3039 </div>
3040 </div>
3041 </div>
3042 <div>
3043 <button
3044 className="btn btn-primary"
3045 disabled={false}
3046 type="submit"
3047 >
3048 Submit
3049 </button>
3050 </div>
3051 </form>
3052 `;
3053
3054 exports[`with title and description from uiSchema array icons 1`] = `
3055 <form
3056 className="rjsf"
3057 noValidate={false}
3058 onSubmit={[Function]}
3059 >
3060 <div
3061 className="form-group field field-array"
3062 >
3063 <div
3064 className="form-group"
3065 >
3066 <div>
3067 <div
3068 className="p-0 m-0 row"
3069 >
3070 <div
3071 className="p-0 m-0 col"
3072 >
3073 <div
3074 className="my-1"
3075 id="root__title"
3076 >
3077 <h5>
3078 My Field
3079 </h5>
3080 <hr
3081 className="border-0 bg-secondary"
3082 style={
3083 {
3084 "height": "1px",
3085 }
3086 }
3087 />
3088 </div>
3089 <div>
3090 <div
3091 className="mb-3"
3092 id="root__description"
3093 >
3094 a fancier description
3095 </div>
3096 </div>
3097 <div
3098 className="p-0 m-0 container-fluid"
3099 >
3100 <div>
3101 <div
3102 className="mb-2 d-flex align-items-center row"
3103 >
3104 <div
3105 className="col-lg-9 col-9"
3106 >
3107 <div
3108 className="form-group field field-string"
3109 >
3110 <div
3111 className="form-group"
3112 >
3113 <label
3114 className="form-label"
3115 htmlFor="root_0"
3116 >
3117 My Item
3118 *
3119 </label>
3120 <input
3121 aria-describedby="root_0__error root_0__description root_0__help"
3122 autoFocus={false}
3123 className="form-control"
3124 disabled={false}
3125 id="root_0"
3126 name="root_0"
3127 onBlur={[Function]}
3128 onChange={[Function]}
3129 onFocus={[Function]}
3130 placeholder=""
3131 readOnly={false}
3132 required={true}
3133 type="text"
3134 value="a"
3135 />
3136 <small
3137 className="text-muted form-text"
3138 >
3139 <div>
3140 <div
3141 className="mb-3"
3142 id="root_0__description"
3143 >
3144 a fancier item description
3145 </div>
3146 </div>
3147 </small>
3148 </div>
3149 </div>
3150 </div>
3151 <div
3152 className="py-4 col-lg-3 col-3"
3153 >
3154 <div
3155 className="d-flex flex-row"
3156 >
3157 <div
3158 className="m-0 p-0"
3159 >
3160 <button
3161 className="btn btn-light btn-sm"
3162 disabled={true}
3163 onClick={[Function]}
3164 style={
3165 {
3166 "flex": 1,
3167 "fontWeight": "bold",
3168 "paddingLeft": 6,
3169 "paddingRight": 6,
3170 }
3171 }
3172 title="Move up"
3173 type="button"
3174 >
3175 <svg
3176 fill="currentColor"
3177 height="1em"
3178 stroke="currentColor"
3179 strokeWidth="0"
3180 style={
3181 {
3182 "color": undefined,
3183 }
3184 }
3185 viewBox="0 0 1024 1024"
3186 width="1em"
3187 xmlns="http://www.w3.org/2000/svg"
3188 >
3189 <path
3190 d="M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"
3191 />
3192 </svg>
3193 </button>
3194 </div>
3195 <div
3196 className="m-0 p-0"
3197 >
3198 <button
3199 className="btn btn-light btn-sm"
3200 disabled={false}
3201 onClick={[Function]}
3202 style={
3203 {
3204 "flex": 1,
3205 "fontWeight": "bold",
3206 "paddingLeft": 6,
3207 "paddingRight": 6,
3208 }
3209 }
3210 title="Move down"
3211 type="button"
3212 >
3213 <svg
3214 fill="currentColor"
3215 height="1em"
3216 stroke="currentColor"
3217 strokeWidth="0"
3218 style={
3219 {
3220 "color": undefined,
3221 }
3222 }
3223 viewBox="0 0 1024 1024"
3224 width="1em"
3225 xmlns="http://www.w3.org/2000/svg"
3226 >
3227 <path
3228 d="M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"
3229 />
3230 </svg>
3231 </button>
3232 </div>
3233 <div
3234 className="m-0 p-0"
3235 >
3236 <button
3237 className="btn btn-light btn-sm"
3238 disabled={false}
3239 onClick={[Function]}
3240 style={
3241 {
3242 "flex": 1,
3243 "fontWeight": "bold",
3244 "paddingLeft": 6,
3245 "paddingRight": 6,
3246 }
3247 }
3248 title="Copy"
3249 type="button"
3250 >
3251 <svg
3252 fill="currentColor"
3253 height="1em"
3254 stroke="currentColor"
3255 strokeWidth="0"
3256 style={
3257 {
3258 "color": undefined,
3259 }
3260 }
3261 viewBox="0 0 512 512"
3262 width="1em"
3263 xmlns="http://www.w3.org/2000/svg"
3264 >
3265 <path
3266 d="M352 115h90c3.3 0 6-2.7 6-6 0-8.2-3.7-16-10-21.3l-77.1-64.2c-4.9-4.1-14.2-7.4-20.6-7.4-4.1 0-7.4 3.3-7.4 7.4V96c.1 10.5 8.6 19 19.1 19z"
3267 />
3268 <path
3269 d="M307 96V16H176c-17.6 0-32 14.4-32 32v336c0 17.6 14.4 32 32 32h240c17.6 0 32-14.4 32-32V141h-96c-24.8 0-45-20.2-45-45z"
3270 />
3271 <path
3272 d="M116 412V80H96c-17.6 0-32 14.4-32 32v352c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32v-20H148c-17.6 0-32-14.4-32-32z"
3273 />
3274 </svg>
3275 </button>
3276 </div>
3277 <div
3278 className="m-0 p-0"
3279 >
3280 <button
3281 className="btn btn-danger btn-sm"
3282 disabled={false}
3283 onClick={[Function]}
3284 style={
3285 {
3286 "flex": 1,
3287 "fontWeight": "bold",
3288 "paddingLeft": 6,
3289 "paddingRight": 6,
3290 }
3291 }
3292 title="Remove"
3293 type="button"
3294 >
3295 <svg
3296 fill="currentColor"
3297 height="1em"
3298 stroke="currentColor"
3299 strokeWidth="0"
3300 style={
3301 {
3302 "color": undefined,
3303 }
3304 }
3305 viewBox="0 0 512 512"
3306 width="1em"
3307 xmlns="http://www.w3.org/2000/svg"
3308 >
3309 <path
3310 d="M368.5 240h-225c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7h225c8.8 0 16-7.2 16-16s-7.2-16-16-16z"
3311 />
3312 </svg>
3313 </button>
3314 </div>
3315 </div>
3316 </div>
3317 </div>
3318 </div>
3319 <div>
3320 <div
3321 className="mb-2 d-flex align-items-center row"
3322 >
3323 <div
3324 className="col-lg-9 col-9"
3325 >
3326 <div
3327 className="form-group field field-string"
3328 >
3329 <div
3330 className="form-group"
3331 >
3332 <label
3333 className="form-label"
3334 htmlFor="root_1"
3335 >
3336 My Item
3337 *
3338 </label>
3339 <input
3340 aria-describedby="root_1__error root_1__description root_1__help"
3341 autoFocus={false}
3342 className="form-control"
3343 disabled={false}
3344 id="root_1"
3345 name="root_1"
3346 onBlur={[Function]}
3347 onChange={[Function]}
3348 onFocus={[Function]}
3349 placeholder=""
3350 readOnly={false}
3351 required={true}
3352 type="text"
3353 value="b"
3354 />
3355 <small
3356 className="text-muted form-text"
3357 >
3358 <div>
3359 <div
3360 className="mb-3"
3361 id="root_1__description"
3362 >
3363 a fancier item description
3364 </div>
3365 </div>
3366 </small>
3367 </div>
3368 </div>
3369 </div>
3370 <div
3371 className="py-4 col-lg-3 col-3"
3372 >
3373 <div
3374 className="d-flex flex-row"
3375 >
3376 <div
3377 className="m-0 p-0"
3378 >
3379 <button
3380 className="btn btn-light btn-sm"
3381 disabled={false}
3382 onClick={[Function]}
3383 style={
3384 {
3385 "flex": 1,
3386 "fontWeight": "bold",
3387 "paddingLeft": 6,
3388 "paddingRight": 6,
3389 }
3390 }
3391 title="Move up"
3392 type="button"
3393 >
3394 <svg
3395 fill="currentColor"
3396 height="1em"
3397 stroke="currentColor"
3398 strokeWidth="0"
3399 style={
3400 {
3401 "color": undefined,
3402 }
3403 }
3404 viewBox="0 0 1024 1024"
3405 width="1em"
3406 xmlns="http://www.w3.org/2000/svg"
3407 >
3408 <path
3409 d="M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"
3410 />
3411 </svg>
3412 </button>
3413 </div>
3414 <div
3415 className="m-0 p-0"
3416 >
3417 <button
3418 className="btn btn-light btn-sm"
3419 disabled={true}
3420 onClick={[Function]}
3421 style={
3422 {
3423 "flex": 1,
3424 "fontWeight": "bold",
3425 "paddingLeft": 6,
3426 "paddingRight": 6,
3427 }
3428 }
3429 title="Move down"
3430 type="button"
3431 >
3432 <svg
3433 fill="currentColor"
3434 height="1em"
3435 stroke="currentColor"
3436 strokeWidth="0"
3437 style={
3438 {
3439 "color": undefined,
3440 }
3441 }
3442 viewBox="0 0 1024 1024"
3443 width="1em"
3444 xmlns="http://www.w3.org/2000/svg"
3445 >
3446 <path
3447 d="M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"
3448 />
3449 </svg>
3450 </button>
3451 </div>
3452 <div
3453 className="m-0 p-0"
3454 >
3455 <button
3456 className="btn btn-light btn-sm"
3457 disabled={false}
3458 onClick={[Function]}
3459 style={
3460 {
3461 "flex": 1,
3462 "fontWeight": "bold",
3463 "paddingLeft": 6,
3464 "paddingRight": 6,
3465 }
3466 }
3467 title="Copy"
3468 type="button"
3469 >
3470 <svg
3471 fill="currentColor"
3472 height="1em"
3473 stroke="currentColor"
3474 strokeWidth="0"
3475 style={
3476 {
3477 "color": undefined,
3478 }
3479 }
3480 viewBox="0 0 512 512"
3481 width="1em"
3482 xmlns="http://www.w3.org/2000/svg"
3483 >
3484 <path
3485 d="M352 115h90c3.3 0 6-2.7 6-6 0-8.2-3.7-16-10-21.3l-77.1-64.2c-4.9-4.1-14.2-7.4-20.6-7.4-4.1 0-7.4 3.3-7.4 7.4V96c.1 10.5 8.6 19 19.1 19z"
3486 />
3487 <path
3488 d="M307 96V16H176c-17.6 0-32 14.4-32 32v336c0 17.6 14.4 32 32 32h240c17.6 0 32-14.4 32-32V141h-96c-24.8 0-45-20.2-45-45z"
3489 />
3490 <path
3491 d="M116 412V80H96c-17.6 0-32 14.4-32 32v352c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32v-20H148c-17.6 0-32-14.4-32-32z"
3492 />
3493 </svg>
3494 </button>
3495 </div>
3496 <div
3497 className="m-0 p-0"
3498 >
3499 <button
3500 className="btn btn-danger btn-sm"
3501 disabled={false}
3502 onClick={[Function]}
3503 style={
3504 {
3505 "flex": 1,
3506 "fontWeight": "bold",
3507 "paddingLeft": 6,
3508 "paddingRight": 6,
3509 }
3510 }
3511 title="Remove"
3512 type="button"
3513 >
3514 <svg
3515 fill="currentColor"
3516 height="1em"
3517 stroke="currentColor"
3518 strokeWidth="0"
3519 style={
3520 {
3521 "color": undefined,
3522 }
3523 }
3524 viewBox="0 0 512 512"
3525 width="1em"
3526 xmlns="http://www.w3.org/2000/svg"
3527 >
3528 <path
3529 d="M368.5 240h-225c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7h225c8.8 0 16-7.2 16-16s-7.2-16-16-16z"
3530 />
3531 </svg>
3532 </button>
3533 </div>
3534 </div>
3535 </div>
3536 </div>
3537 </div>
3538 <div
3539 className="container"
3540 >
3541 <div
3542 className="mt-2 row"
3543 >
3544 <div
3545 className="col-9"
3546 />
3547 <div
3548 className="py-4 col-lg-3 col-3 col-3"
3549 >
3550 <button
3551 className="ml-1 array-item-add btn btn-primary"
3552 disabled={false}
3553 onClick={[Function]}
3554 style={
3555 {
3556 "width": "100%",
3557 }
3558 }
3559 title="Add Item"
3560 type="button"
3561 >
3562 <svg
3563 fill="currentColor"
3564 height="1em"
3565 stroke="currentColor"
3566 strokeWidth="0"
3567 style={
3568 {
3569 "color": undefined,
3570 }
3571 }
3572 viewBox="0 0 16 16"
3573 width="1em"
3574 xmlns="http://www.w3.org/2000/svg"
3575 >
3576 <path
3577 clipRule="evenodd"
3578 d="M8 3.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H4a.5.5 0 010-1h3.5V4a.5.5 0 01.5-.5z"
3579 fillRule="evenodd"
3580 />
3581 <path
3582 clipRule="evenodd"
3583 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
3584 fillRule="evenodd"
3585 />
3586 </svg>
3587 </button>
3588 </div>
3589 </div>
3590 </div>
3591 </div>
3592 </div>
3593 </div>
3594 </div>
3595 </div>
3596 </div>
3597 <div>
3598 <button
3599 className="btn btn-primary"
3600 disabled={false}
3601 type="submit"
3602 >
3603 Submit
3604 </button>
3605 </div>
3606 </form>
3607 `;
3608
3609 exports[`with title and description from uiSchema checkboxes 1`] = `
3610 <form
3611 className="rjsf"
3612 noValidate={false}
3613 onSubmit={[Function]}
3614 >
3615 <div
3616 className="form-group field field-array"
3617 >
3618 <div
3619 className="form-group"
3620 >
3621 <label
3622 className="form-label"
3623 htmlFor="root"
3624 >
3625 My Field
3626 </label>
3627 <select
3628 aria-describedby="root__error root__description root__help"
3629 autoFocus={false}
3630 className="custom-select"
3631 disabled={false}
3632 id="root"
3633 multiple={true}
3634 name="root"
3635 onBlur={[Function]}
3636 onChange={[Function]}
3637 onFocus={[Function]}
3638 required={false}
3639 value={[]}
3640 >
3641 <option
3642 disabled={false}
3643 id="a"
3644 value="0"
3645 >
3646 a
3647 </option>
3648 <option
3649 disabled={false}
3650 id="b"
3651 value="1"
3652 >
3653 b
3654 </option>
3655 <option
3656 disabled={false}
3657 id="c"
3658 value="2"
3659 >
3660 c
3661 </option>
3662 </select>
3663 <small
3664 className="text-muted form-text"
3665 >
3666 <div>
3667 <div
3668 className="mb-3"
3669 id="root__description"
3670 >
3671 a fancier description
3672 </div>
3673 </div>
3674 </small>
3675 </div>
3676 </div>
3677 <div>
3678 <button
3679 className="btn btn-primary"
3680 disabled={false}
3681 type="submit"
3682 >
3683 Submit
3684 </button>
3685 </div>
3686 </form>
3687 `;
3688
3689 exports[`with title and description from uiSchema fixed array 1`] = `
3690 <form
3691 className="rjsf"
3692 noValidate={false}
3693 onSubmit={[Function]}
3694 >
3695 <div
3696 className="form-group field field-array"
3697 >
3698 <div
3699 className="form-group"
3700 >
3701 <div>
3702 <div
3703 className="p-0 m-0 row"
3704 >
3705 <div
3706 className="p-0 m-0 col"
3707 >
3708 <div
3709 className="my-1"
3710 id="root__title"
3711 >
3712 <h5>
3713 My Field
3714 </h5>
3715 <hr
3716 className="border-0 bg-secondary"
3717 style={
3718 {
3719 "height": "1px",
3720 }
3721 }
3722 />
3723 </div>
3724 <div>
3725 <div
3726 className="mb-3"
3727 id="root__description"
3728 >
3729 a fancier description
3730 </div>
3731 </div>
3732 <div
3733 className="p-0 m-0 container-fluid"
3734 >
3735 <div>
3736 <div
3737 className="mb-2 d-flex align-items-center row"
3738 >
3739 <div
3740 className="col-lg-9 col-9"
3741 >
3742 <div
3743 className="form-group field field-string"
3744 >
3745 <div
3746 className="form-group"
3747 >
3748 <label
3749 className="form-label"
3750 htmlFor="root_0"
3751 >
3752 My Item
3753 *
3754 </label>
3755 <input
3756 aria-describedby="root_0__error root_0__description root_0__help"
3757 autoFocus={false}
3758 className="form-control"
3759 disabled={false}
3760 id="root_0"
3761 name="root_0"
3762 onBlur={[Function]}
3763 onChange={[Function]}
3764 onFocus={[Function]}
3765 placeholder=""
3766 readOnly={false}
3767 required={true}
3768 type="text"
3769 value=""
3770 />
3771 <small
3772 className="text-muted form-text"
3773 >
3774 <div>
3775 <div
3776 className="mb-3"
3777 id="root_0__description"
3778 >
3779 a fancier item description
3780 </div>
3781 </div>
3782 </small>
3783 </div>
3784 </div>
3785 </div>
3786 <div
3787 className="py-4 col-lg-3 col-3"
3788 />
3789 </div>
3790 </div>
3791 <div>
3792 <div
3793 className="mb-2 d-flex align-items-center row"
3794 >
3795 <div
3796 className="col-lg-9 col-9"
3797 >
3798 <div
3799 className="form-group field field-number"
3800 >
3801 <div
3802 className="form-group"
3803 >
3804 <label
3805 className="form-label"
3806 htmlFor="root_1"
3807 >
3808 My Item
3809 *
3810 </label>
3811 <input
3812 aria-describedby="root_1__error root_1__description root_1__help"
3813 autoFocus={false}
3814 className="form-control"
3815 disabled={false}
3816 id="root_1"
3817 name="root_1"
3818 onBlur={[Function]}
3819 onChange={[Function]}
3820 onFocus={[Function]}
3821 placeholder=""
3822 readOnly={false}
3823 required={true}
3824 step="any"
3825 type="number"
3826 value=""
3827 />
3828 <small
3829 className="text-muted form-text"
3830 >
3831 <div>
3832 <div
3833 className="mb-3"
3834 id="root_1__description"
3835 >
3836 a fancier item description
3837 </div>
3838 </div>
3839 </small>
3840 </div>
3841 </div>
3842 </div>
3843 <div
3844 className="py-4 col-lg-3 col-3"
3845 />
3846 </div>
3847 </div>
3848 </div>
3849 </div>
3850 </div>
3851 </div>
3852 </div>
3853 </div>
3854 <div>
3855 <button
3856 className="btn btn-primary"
3857 disabled={false}
3858 type="submit"
3859 >
3860 Submit
3861 </button>
3862 </div>
3863 </form>
3864 `;
3865
3866 exports[`with title and description with global label off array 1`] = `
3867 <form
3868 className="rjsf"
3869 noValidate={false}
3870 onSubmit={[Function]}
3871 >
3872 <div
3873 className="form-group field field-array"
3874 >
3875 <div
3876 className="form-group"
3877 >
3878 <div>
3879 <div
3880 className="p-0 m-0 row"
3881 >
3882 <div
3883 className="p-0 m-0 col"
3884 >
3885 <div
3886 className="p-0 m-0 container-fluid"
3887 >
3888 <div
3889 className="container"
3890 >
3891 <div
3892 className="mt-2 row"
3893 >
3894 <div
3895 className="col-9"
3896 />
3897 <div
3898 className="py-4 col-lg-3 col-3 col-3"
3899 >
3900 <button
3901 className="ml-1 array-item-add btn btn-primary"
3902 disabled={false}
3903 onClick={[Function]}
3904 style={
3905 {
3906 "width": "100%",
3907 }
3908 }
3909 title="Add Item"
3910 type="button"
3911 >
3912 <svg
3913 fill="currentColor"
3914 height="1em"
3915 stroke="currentColor"
3916 strokeWidth="0"
3917 style={
3918 {
3919 "color": undefined,
3920 }
3921 }
3922 viewBox="0 0 16 16"
3923 width="1em"
3924 xmlns="http://www.w3.org/2000/svg"
3925 >
3926 <path
3927 clipRule="evenodd"
3928 d="M8 3.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H4a.5.5 0 010-1h3.5V4a.5.5 0 01.5-.5z"
3929 fillRule="evenodd"
3930 />
3931 <path
3932 clipRule="evenodd"
3933 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
3934 fillRule="evenodd"
3935 />
3936 </svg>
3937 </button>
3938 </div>
3939 </div>
3940 </div>
3941 </div>
3942 </div>
3943 </div>
3944 </div>
3945 </div>
3946 </div>
3947 <div>
3948 <button
3949 className="btn btn-primary"
3950 disabled={false}
3951 type="submit"
3952 >
3953 Submit
3954 </button>
3955 </div>
3956 </form>
3957 `;
3958
3959 exports[`with title and description with global label off array icons 1`] = `
3960 <form
3961 className="rjsf"
3962 noValidate={false}
3963 onSubmit={[Function]}
3964 >
3965 <div
3966 className="form-group field field-array"
3967 >
3968 <div
3969 className="form-group"
3970 >
3971 <div>
3972 <div
3973 className="p-0 m-0 row"
3974 >
3975 <div
3976 className="p-0 m-0 col"
3977 >
3978 <div
3979 className="p-0 m-0 container-fluid"
3980 >
3981 <div>
3982 <div
3983 className="mb-2 d-flex align-items-center row"
3984 >
3985 <div
3986 className="col-lg-9 col-9"
3987 >
3988 <div
3989 className="form-group field field-string"
3990 >
3991 <div
3992 className="form-group"
3993 >
3994 <input
3995 aria-describedby="root_0__error root_0__description root_0__help"
3996 autoFocus={false}
3997 className="form-control"
3998 disabled={false}
3999 id="root_0"
4000 name="root_0"
4001 onBlur={[Function]}
4002 onChange={[Function]}
4003 onFocus={[Function]}
4004 placeholder=""
4005 readOnly={false}
4006 required={true}
4007 type="text"
4008 value="a"
4009 />
4010 </div>
4011 </div>
4012 </div>
4013 <div
4014 className="py-4 col-lg-3 col-3"
4015 >
4016 <div
4017 className="d-flex flex-row"
4018 >
4019 <div
4020 className="m-0 p-0"
4021 >
4022 <button
4023 className="btn btn-light btn-sm"
4024 disabled={true}
4025 onClick={[Function]}
4026 style={
4027 {
4028 "flex": 1,
4029 "fontWeight": "bold",
4030 "paddingLeft": 6,
4031 "paddingRight": 6,
4032 }
4033 }
4034 title="Move up"
4035 type="button"
4036 >
4037 <svg
4038 fill="currentColor"
4039 height="1em"
4040 stroke="currentColor"
4041 strokeWidth="0"
4042 style={
4043 {
4044 "color": undefined,
4045 }
4046 }
4047 viewBox="0 0 1024 1024"
4048 width="1em"
4049 xmlns="http://www.w3.org/2000/svg"
4050 >
4051 <path
4052 d="M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"
4053 />
4054 </svg>
4055 </button>
4056 </div>
4057 <div
4058 className="m-0 p-0"
4059 >
4060 <button
4061 className="btn btn-light btn-sm"
4062 disabled={false}
4063 onClick={[Function]}
4064 style={
4065 {
4066 "flex": 1,
4067 "fontWeight": "bold",
4068 "paddingLeft": 6,
4069 "paddingRight": 6,
4070 }
4071 }
4072 title="Move down"
4073 type="button"
4074 >
4075 <svg
4076 fill="currentColor"
4077 height="1em"
4078 stroke="currentColor"
4079 strokeWidth="0"
4080 style={
4081 {
4082 "color": undefined,
4083 }
4084 }
4085 viewBox="0 0 1024 1024"
4086 width="1em"
4087 xmlns="http://www.w3.org/2000/svg"
4088 >
4089 <path
4090 d="M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"
4091 />
4092 </svg>
4093 </button>
4094 </div>
4095 <div
4096 className="m-0 p-0"
4097 >
4098 <button
4099 className="btn btn-light btn-sm"
4100 disabled={false}
4101 onClick={[Function]}
4102 style={
4103 {
4104 "flex": 1,
4105 "fontWeight": "bold",
4106 "paddingLeft": 6,
4107 "paddingRight": 6,
4108 }
4109 }
4110 title="Copy"
4111 type="button"
4112 >
4113 <svg
4114 fill="currentColor"
4115 height="1em"
4116 stroke="currentColor"
4117 strokeWidth="0"
4118 style={
4119 {
4120 "color": undefined,
4121 }
4122 }
4123 viewBox="0 0 512 512"
4124 width="1em"
4125 xmlns="http://www.w3.org/2000/svg"
4126 >
4127 <path
4128 d="M352 115h90c3.3 0 6-2.7 6-6 0-8.2-3.7-16-10-21.3l-77.1-64.2c-4.9-4.1-14.2-7.4-20.6-7.4-4.1 0-7.4 3.3-7.4 7.4V96c.1 10.5 8.6 19 19.1 19z"
4129 />
4130 <path
4131 d="M307 96V16H176c-17.6 0-32 14.4-32 32v336c0 17.6 14.4 32 32 32h240c17.6 0 32-14.4 32-32V141h-96c-24.8 0-45-20.2-45-45z"
4132 />
4133 <path
4134 d="M116 412V80H96c-17.6 0-32 14.4-32 32v352c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32v-20H148c-17.6 0-32-14.4-32-32z"
4135 />
4136 </svg>
4137 </button>
4138 </div>
4139 <div
4140 className="m-0 p-0"
4141 >
4142 <button
4143 className="btn btn-danger btn-sm"
4144 disabled={false}
4145 onClick={[Function]}
4146 style={
4147 {
4148 "flex": 1,
4149 "fontWeight": "bold",
4150 "paddingLeft": 6,
4151 "paddingRight": 6,
4152 }
4153 }
4154 title="Remove"
4155 type="button"
4156 >
4157 <svg
4158 fill="currentColor"
4159 height="1em"
4160 stroke="currentColor"
4161 strokeWidth="0"
4162 style={
4163 {
4164 "color": undefined,
4165 }
4166 }
4167 viewBox="0 0 512 512"
4168 width="1em"
4169 xmlns="http://www.w3.org/2000/svg"
4170 >
4171 <path
4172 d="M368.5 240h-225c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7h225c8.8 0 16-7.2 16-16s-7.2-16-16-16z"
4173 />
4174 </svg>
4175 </button>
4176 </div>
4177 </div>
4178 </div>
4179 </div>
4180 </div>
4181 <div>
4182 <div
4183 className="mb-2 d-flex align-items-center row"
4184 >
4185 <div
4186 className="col-lg-9 col-9"
4187 >
4188 <div
4189 className="form-group field field-string"
4190 >
4191 <div
4192 className="form-group"
4193 >
4194 <input
4195 aria-describedby="root_1__error root_1__description root_1__help"
4196 autoFocus={false}
4197 className="form-control"
4198 disabled={false}
4199 id="root_1"
4200 name="root_1"
4201 onBlur={[Function]}
4202 onChange={[Function]}
4203 onFocus={[Function]}
4204 placeholder=""
4205 readOnly={false}
4206 required={true}
4207 type="text"
4208 value="b"
4209 />
4210 </div>
4211 </div>
4212 </div>
4213 <div
4214 className="py-4 col-lg-3 col-3"
4215 >
4216 <div
4217 className="d-flex flex-row"
4218 >
4219 <div
4220 className="m-0 p-0"
4221 >
4222 <button
4223 className="btn btn-light btn-sm"
4224 disabled={false}
4225 onClick={[Function]}
4226 style={
4227 {
4228 "flex": 1,
4229 "fontWeight": "bold",
4230 "paddingLeft": 6,
4231 "paddingRight": 6,
4232 }
4233 }
4234 title="Move up"
4235 type="button"
4236 >
4237 <svg
4238 fill="currentColor"
4239 height="1em"
4240 stroke="currentColor"
4241 strokeWidth="0"
4242 style={
4243 {
4244 "color": undefined,
4245 }
4246 }
4247 viewBox="0 0 1024 1024"
4248 width="1em"
4249 xmlns="http://www.w3.org/2000/svg"
4250 >
4251 <path
4252 d="M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"
4253 />
4254 </svg>
4255 </button>
4256 </div>
4257 <div
4258 className="m-0 p-0"
4259 >
4260 <button
4261 className="btn btn-light btn-sm"
4262 disabled={true}
4263 onClick={[Function]}
4264 style={
4265 {
4266 "flex": 1,
4267 "fontWeight": "bold",
4268 "paddingLeft": 6,
4269 "paddingRight": 6,
4270 }
4271 }
4272 title="Move down"
4273 type="button"
4274 >
4275 <svg
4276 fill="currentColor"
4277 height="1em"
4278 stroke="currentColor"
4279 strokeWidth="0"
4280 style={
4281 {
4282 "color": undefined,
4283 }
4284 }
4285 viewBox="0 0 1024 1024"
4286 width="1em"
4287 xmlns="http://www.w3.org/2000/svg"
4288 >
4289 <path
4290 d="M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"
4291 />
4292 </svg>
4293 </button>
4294 </div>
4295 <div
4296 className="m-0 p-0"
4297 >
4298 <button
4299 className="btn btn-light btn-sm"
4300 disabled={false}
4301 onClick={[Function]}
4302 style={
4303 {
4304 "flex": 1,
4305 "fontWeight": "bold",
4306 "paddingLeft": 6,
4307 "paddingRight": 6,
4308 }
4309 }
4310 title="Copy"
4311 type="button"
4312 >
4313 <svg
4314 fill="currentColor"
4315 height="1em"
4316 stroke="currentColor"
4317 strokeWidth="0"
4318 style={
4319 {
4320 "color": undefined,
4321 }
4322 }
4323 viewBox="0 0 512 512"
4324 width="1em"
4325 xmlns="http://www.w3.org/2000/svg"
4326 >
4327 <path
4328 d="M352 115h90c3.3 0 6-2.7 6-6 0-8.2-3.7-16-10-21.3l-77.1-64.2c-4.9-4.1-14.2-7.4-20.6-7.4-4.1 0-7.4 3.3-7.4 7.4V96c.1 10.5 8.6 19 19.1 19z"
4329 />
4330 <path
4331 d="M307 96V16H176c-17.6 0-32 14.4-32 32v336c0 17.6 14.4 32 32 32h240c17.6 0 32-14.4 32-32V141h-96c-24.8 0-45-20.2-45-45z"
4332 />
4333 <path
4334 d="M116 412V80H96c-17.6 0-32 14.4-32 32v352c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32v-20H148c-17.6 0-32-14.4-32-32z"
4335 />
4336 </svg>
4337 </button>
4338 </div>
4339 <div
4340 className="m-0 p-0"
4341 >
4342 <button
4343 className="btn btn-danger btn-sm"
4344 disabled={false}
4345 onClick={[Function]}
4346 style={
4347 {
4348 "flex": 1,
4349 "fontWeight": "bold",
4350 "paddingLeft": 6,
4351 "paddingRight": 6,
4352 }
4353 }
4354 title="Remove"
4355 type="button"
4356 >
4357 <svg
4358 fill="currentColor"
4359 height="1em"
4360 stroke="currentColor"
4361 strokeWidth="0"
4362 style={
4363 {
4364 "color": undefined,
4365 }
4366 }
4367 viewBox="0 0 512 512"
4368 width="1em"
4369 xmlns="http://www.w3.org/2000/svg"
4370 >
4371 <path
4372 d="M368.5 240h-225c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7h225c8.8 0 16-7.2 16-16s-7.2-16-16-16z"
4373 />
4374 </svg>
4375 </button>
4376 </div>
4377 </div>
4378 </div>
4379 </div>
4380 </div>
4381 <div
4382 className="container"
4383 >
4384 <div
4385 className="mt-2 row"
4386 >
4387 <div
4388 className="col-9"
4389 />
4390 <div
4391 className="py-4 col-lg-3 col-3 col-3"
4392 >
4393 <button
4394 className="ml-1 array-item-add btn btn-primary"
4395 disabled={false}
4396 onClick={[Function]}
4397 style={
4398 {
4399 "width": "100%",
4400 }
4401 }
4402 title="Add Item"
4403 type="button"
4404 >
4405 <svg
4406 fill="currentColor"
4407 height="1em"
4408 stroke="currentColor"
4409 strokeWidth="0"
4410 style={
4411 {
4412 "color": undefined,
4413 }
4414 }
4415 viewBox="0 0 16 16"
4416 width="1em"
4417 xmlns="http://www.w3.org/2000/svg"
4418 >
4419 <path
4420 clipRule="evenodd"
4421 d="M8 3.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H4a.5.5 0 010-1h3.5V4a.5.5 0 01.5-.5z"
4422 fillRule="evenodd"
4423 />
4424 <path
4425 clipRule="evenodd"
4426 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
4427 fillRule="evenodd"
4428 />
4429 </svg>
4430 </button>
4431 </div>
4432 </div>
4433 </div>
4434 </div>
4435 </div>
4436 </div>
4437 </div>
4438 </div>
4439 </div>
4440 <div>
4441 <button
4442 className="btn btn-primary"
4443 disabled={false}
4444 type="submit"
4445 >
4446 Submit
4447 </button>
4448 </div>
4449 </form>
4450 `;
4451
4452 exports[`with title and description with global label off checkboxes 1`] = `
4453 <form
4454 className="rjsf"
4455 noValidate={false}
4456 onSubmit={[Function]}
4457 >
4458 <div
4459 className="form-group field field-array"
4460 >
4461 <div
4462 className="form-group"
4463 >
4464 <label
4465 className="form-label"
4466 htmlFor="root"
4467 >
4468 Test field
4469 </label>
4470 <select
4471 aria-describedby="root__error root__description root__help"
4472 autoFocus={false}
4473 className="custom-select"
4474 disabled={false}
4475 id="root"
4476 multiple={true}
4477 name="root"
4478 onBlur={[Function]}
4479 onChange={[Function]}
4480 onFocus={[Function]}
4481 required={false}
4482 value={[]}
4483 >
4484 <option
4485 disabled={false}
4486 id="a"
4487 value="0"
4488 >
4489 a
4490 </option>
4491 <option
4492 disabled={false}
4493 id="b"
4494 value="1"
4495 >
4496 b
4497 </option>
4498 <option
4499 disabled={false}
4500 id="c"
4501 value="2"
4502 >
4503 c
4504 </option>
4505 </select>
4506 <small
4507 className="text-muted form-text"
4508 >
4509 <div>
4510 <div
4511 className="mb-3"
4512 id="root__description"
4513 >
4514 a test description
4515 </div>
4516 </div>
4517 </small>
4518 </div>
4519 </div>
4520 <div>
4521 <button
4522 className="btn btn-primary"
4523 disabled={false}
4524 type="submit"
4525 >
4526 Submit
4527 </button>
4528 </div>
4529 </form>
4530 `;
4531
4532 exports[`with title and description with global label off fixed array 1`] = `
4533 <form
4534 className="rjsf"
4535 noValidate={false}
4536 onSubmit={[Function]}
4537 >
4538 <div
4539 className="form-group field field-array"
4540 >
4541 <div
4542 className="form-group"
4543 >
4544 <div>
4545 <div
4546 className="p-0 m-0 row"
4547 >
4548 <div
4549 className="p-0 m-0 col"
4550 >
4551 <div
4552 className="p-0 m-0 container-fluid"
4553 >
4554 <div>
4555 <div
4556 className="mb-2 d-flex align-items-center row"
4557 >
4558 <div
4559 className="col-lg-9 col-9"
4560 >
4561 <div
4562 className="form-group field field-string"
4563 >
4564 <div
4565 className="form-group"
4566 >
4567 <input
4568 aria-describedby="root_0__error root_0__description root_0__help"
4569 autoFocus={false}
4570 className="form-control"
4571 disabled={false}
4572 id="root_0"
4573 name="root_0"
4574 onBlur={[Function]}
4575 onChange={[Function]}
4576 onFocus={[Function]}
4577 placeholder=""
4578 readOnly={false}
4579 required={true}
4580 type="text"
4581 value=""
4582 />
4583 </div>
4584 </div>
4585 </div>
4586 <div
4587 className="py-4 col-lg-3 col-3"
4588 />
4589 </div>
4590 </div>
4591 <div>
4592 <div
4593 className="mb-2 d-flex align-items-center row"
4594 >
4595 <div
4596 className="col-lg-9 col-9"
4597 >
4598 <div
4599 className="form-group field field-number"
4600 >
4601 <div
4602 className="form-group"
4603 >
4604 <input
4605 aria-describedby="root_1__error root_1__description root_1__help"
4606 autoFocus={false}
4607 className="form-control"
4608 disabled={false}
4609 id="root_1"
4610 name="root_1"
4611 onBlur={[Function]}
4612 onChange={[Function]}
4613 onFocus={[Function]}
4614 placeholder=""
4615 readOnly={false}
4616 required={true}
4617 step="any"
4618 type="number"
4619 value=""
4620 />
4621 </div>
4622 </div>
4623 </div>
4624 <div
4625 className="py-4 col-lg-3 col-3"
4626 />
4627 </div>
4628 </div>
4629 </div>
4630 </div>
4631 </div>
4632 </div>
4633 </div>
4634 </div>
4635 <div>
4636 <button
4637 className="btn btn-primary"
4638 disabled={false}
4639 type="submit"
4640 >
4641 Submit
4642 </button>
4643 </div>
4644 </form>
4645 `;