Debian Codegraph @

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

raw
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`object fields additionalProperties 1`] = `
4 <form
5 className="rjsf"
6 noValidate={false}
7 onSubmit={[Function]}
8 >
9 <div
10 className="form-group field field-object"
11 >
12 <div
13 className="form-group"
14 >
15
16 <div
17 className="p-0 container-fluid"
18 >
19 <div
20 className="row"
21 style={
22 {
23 "marginBottom": "10px",
24 }
25 }
26 >
27 <div
28 className="col-12"
29 >
30
31 <div
32 className="form-group field field-string row"
33 >
34 <div
35 className="col-5"
36 >
37 <div
38 className="form-group"
39 >
40 <label
41 className="form-label"
42 htmlFor="root_foo-key"
43 >
44 foo Key
45 </label>
46 <input
47 className="form-control"
48 defaultValue="foo"
49 disabled={false}
50 id="root_foo-key"
51 name="root_foo-key"
52 onBlur={[Function]}
53 required={false}
54 type="text"
55 />
56 </div>
57 </div>
58 <div
59 className="col-5"
60 >
61 <div
62 className="form-group"
63 >
64 <label
65 className="form-label"
66 htmlFor="root_foo"
67 >
68 foo
69 </label>
70 <input
71 aria-describedby="root_foo__error root_foo__description root_foo__help"
72 autoFocus={false}
73 className="form-control"
74 disabled={false}
75 id="root_foo"
76 name="root_foo"
77 onBlur={[Function]}
78 onChange={[Function]}
79 onFocus={[Function]}
80 placeholder=""
81 readOnly={false}
82 required={false}
83 type="text"
84 value="foo"
85 />
86
87 </div>
88 </div>
89 <div
90 className="py-4 col-2"
91 >
92 <button
93 className="btn btn-danger btn-block btn-sm"
94 disabled={false}
95 onClick={[Function]}
96 title="Remove"
97 type="button"
98 >
99 <svg
100 fill="currentColor"
101 height="1em"
102 stroke="currentColor"
103 strokeWidth="0"
104 style={
105 {
106 "color": undefined,
107 }
108 }
109 viewBox="0 0 512 512"
110 width="1em"
111 xmlns="http://www.w3.org/2000/svg"
112 >
113 <path
114 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"
115 />
116 </svg>
117 </button>
118 </div>
119 </div>
120 </div>
121 </div>
122 <div
123 className="row"
124 >
125 <div
126 className="py-4 col-3 offset-9"
127 >
128 <button
129 className="ml-1 object-property-expand btn btn-primary"
130 disabled={false}
131 onClick={[Function]}
132 style={
133 {
134 "width": "100%",
135 }
136 }
137 title="Add Item"
138 type="button"
139 >
140 <svg
141 fill="currentColor"
142 height="1em"
143 stroke="currentColor"
144 strokeWidth="0"
145 style={
146 {
147 "color": undefined,
148 }
149 }
150 viewBox="0 0 16 16"
151 width="1em"
152 xmlns="http://www.w3.org/2000/svg"
153 >
154 <path
155 clipRule="evenodd"
156 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"
157 fillRule="evenodd"
158 />
159 <path
160 clipRule="evenodd"
161 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
162 fillRule="evenodd"
163 />
164 </svg>
165 </button>
166 </div>
167 </div>
168 </div>
169 </div>
170 </div>
171 <div>
172 <button
173 className="btn btn-primary"
174 disabled={false}
175 type="submit"
176 >
177 Submit
178 </button>
179 </div>
180 </form>
181 `;
182
183 exports[`object fields object 1`] = `
184 <form
185 className="rjsf"
186 noValidate={false}
187 onSubmit={[Function]}
188 >
189 <div
190 className="form-group field field-object"
191 >
192 <div
193 className="form-group"
194 >
195
196 <div
197 className="p-0 container-fluid"
198 >
199 <div
200 className="row"
201 style={
202 {
203 "marginBottom": "10px",
204 }
205 }
206 >
207 <div
208 className="col-12"
209 >
210
211 <div
212 className="form-group field field-string"
213 >
214 <div
215 className="form-group"
216 >
217 <label
218 className="form-label"
219 htmlFor="root_a"
220 >
221 A
222 </label>
223 <input
224 aria-describedby="root_a__error root_a__description root_a__help"
225 autoFocus={false}
226 className="form-control"
227 disabled={false}
228 id="root_a"
229 name="root_a"
230 onBlur={[Function]}
231 onChange={[Function]}
232 onFocus={[Function]}
233 placeholder=""
234 readOnly={false}
235 required={false}
236 type="text"
237 value=""
238 />
239
240 </div>
241 </div>
242 </div>
243 </div>
244 <div
245 className="row"
246 style={
247 {
248 "marginBottom": "10px",
249 }
250 }
251 >
252 <div
253 className="col-12"
254 >
255
256 <div
257 className="form-group field field-number"
258 >
259 <div
260 className="form-group"
261 >
262 <label
263 className="form-label"
264 htmlFor="root_b"
265 >
266 B
267 </label>
268 <input
269 aria-describedby="root_b__error root_b__description root_b__help"
270 autoFocus={false}
271 className="form-control"
272 disabled={false}
273 id="root_b"
274 name="root_b"
275 onBlur={[Function]}
276 onChange={[Function]}
277 onFocus={[Function]}
278 placeholder=""
279 readOnly={false}
280 required={false}
281 step="any"
282 type="number"
283 value=""
284 />
285
286 </div>
287 </div>
288 </div>
289 </div>
290 </div>
291 </div>
292 </div>
293 <div>
294 <button
295 className="btn btn-primary"
296 disabled={false}
297 type="submit"
298 >
299 Submit
300 </button>
301 </div>
302 </form>
303 `;
304
305 exports[`object fields show add button and fields if additionalProperties is true and not an object 1`] = `
306 <form
307 className="rjsf"
308 noValidate={false}
309 onSubmit={[Function]}
310 >
311 <div
312 className="form-group field field-object"
313 >
314 <div
315 className="form-group"
316 >
317
318 <div
319 className="p-0 container-fluid"
320 >
321 <div
322 className="row"
323 style={
324 {
325 "marginBottom": "10px",
326 }
327 }
328 >
329 <div
330 className="col-12"
331 >
332
333 <div
334 className="form-group field field-string row"
335 >
336 <div
337 className="col-5"
338 >
339 <div
340 className="form-group"
341 >
342 <label
343 className="form-label"
344 htmlFor="root_additionalProperty-key"
345 >
346 additionalProperty Key
347 </label>
348 <input
349 className="form-control"
350 defaultValue="additionalProperty"
351 disabled={false}
352 id="root_additionalProperty-key"
353 name="root_additionalProperty-key"
354 onBlur={[Function]}
355 required={false}
356 type="text"
357 />
358 </div>
359 </div>
360 <div
361 className="col-5"
362 >
363 <div
364 className="form-group"
365 >
366 <label
367 className="form-label"
368 htmlFor="root_additionalProperty"
369 >
370 additionalProperty
371 </label>
372 <input
373 aria-describedby="root_additionalProperty__error root_additionalProperty__description root_additionalProperty__help"
374 autoFocus={false}
375 className="form-control"
376 disabled={false}
377 id="root_additionalProperty"
378 name="root_additionalProperty"
379 onBlur={[Function]}
380 onChange={[Function]}
381 onFocus={[Function]}
382 placeholder=""
383 readOnly={false}
384 required={false}
385 type="text"
386 value="should appear"
387 />
388
389 </div>
390 </div>
391 <div
392 className="py-4 col-2"
393 >
394 <button
395 className="btn btn-danger btn-block btn-sm"
396 disabled={false}
397 onClick={[Function]}
398 title="Remove"
399 type="button"
400 >
401 <svg
402 fill="currentColor"
403 height="1em"
404 stroke="currentColor"
405 strokeWidth="0"
406 style={
407 {
408 "color": undefined,
409 }
410 }
411 viewBox="0 0 512 512"
412 width="1em"
413 xmlns="http://www.w3.org/2000/svg"
414 >
415 <path
416 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"
417 />
418 </svg>
419 </button>
420 </div>
421 </div>
422 </div>
423 </div>
424 <div
425 className="row"
426 >
427 <div
428 className="py-4 col-3 offset-9"
429 >
430 <button
431 className="ml-1 object-property-expand btn btn-primary"
432 disabled={false}
433 onClick={[Function]}
434 style={
435 {
436 "width": "100%",
437 }
438 }
439 title="Add Item"
440 type="button"
441 >
442 <svg
443 fill="currentColor"
444 height="1em"
445 stroke="currentColor"
446 strokeWidth="0"
447 style={
448 {
449 "color": undefined,
450 }
451 }
452 viewBox="0 0 16 16"
453 width="1em"
454 xmlns="http://www.w3.org/2000/svg"
455 >
456 <path
457 clipRule="evenodd"
458 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"
459 fillRule="evenodd"
460 />
461 <path
462 clipRule="evenodd"
463 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
464 fillRule="evenodd"
465 />
466 </svg>
467 </button>
468 </div>
469 </div>
470 </div>
471 </div>
472 </div>
473 <div>
474 <button
475 className="btn btn-primary"
476 disabled={false}
477 type="submit"
478 >
479 Submit
480 </button>
481 </div>
482 </form>
483 `;
484
485 exports[`object fields with title and description additionalProperties 1`] = `
486 <form
487 className="rjsf"
488 noValidate={false}
489 onSubmit={[Function]}
490 >
491 <div
492 className="form-group field field-object"
493 >
494 <div
495 className="form-group"
496 >
497 <div
498 className="my-1"
499 id="root__title"
500 >
501 <h5>
502 Test field
503 </h5>
504 <hr
505 className="border-0 bg-secondary"
506 style={
507 {
508 "height": "1px",
509 }
510 }
511 />
512 </div>
513 <div>
514 <div
515 className="mb-3"
516 id="root__description"
517 >
518 a test description
519 </div>
520 </div>
521 <div
522 className="p-0 container-fluid"
523 >
524 <div
525 className="row"
526 style={
527 {
528 "marginBottom": "10px",
529 }
530 }
531 >
532 <div
533 className="col-12"
534 >
535
536 <div
537 className="form-group field field-string row"
538 >
539 <div
540 className="col-5"
541 >
542 <div
543 className="form-group"
544 >
545 <label
546 className="form-label"
547 htmlFor="root_foo-key"
548 >
549 foo Key
550 </label>
551 <input
552 className="form-control"
553 defaultValue="foo"
554 disabled={false}
555 id="root_foo-key"
556 name="root_foo-key"
557 onBlur={[Function]}
558 required={false}
559 type="text"
560 />
561 </div>
562 </div>
563 <div
564 className="col-5"
565 >
566 <div
567 className="form-group"
568 >
569 <label
570 className="form-label"
571 htmlFor="root_foo"
572 >
573 foo
574 </label>
575 <input
576 aria-describedby="root_foo__error root_foo__description root_foo__help"
577 autoFocus={false}
578 className="form-control"
579 disabled={false}
580 id="root_foo"
581 name="root_foo"
582 onBlur={[Function]}
583 onChange={[Function]}
584 onFocus={[Function]}
585 placeholder=""
586 readOnly={false}
587 required={false}
588 type="text"
589 value="foo"
590 />
591
592 </div>
593 </div>
594 <div
595 className="py-4 col-2"
596 >
597 <button
598 className="btn btn-danger btn-block btn-sm"
599 disabled={false}
600 onClick={[Function]}
601 title="Remove"
602 type="button"
603 >
604 <svg
605 fill="currentColor"
606 height="1em"
607 stroke="currentColor"
608 strokeWidth="0"
609 style={
610 {
611 "color": undefined,
612 }
613 }
614 viewBox="0 0 512 512"
615 width="1em"
616 xmlns="http://www.w3.org/2000/svg"
617 >
618 <path
619 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"
620 />
621 </svg>
622 </button>
623 </div>
624 </div>
625 </div>
626 </div>
627 <div
628 className="row"
629 >
630 <div
631 className="py-4 col-3 offset-9"
632 >
633 <button
634 className="ml-1 object-property-expand btn btn-primary"
635 disabled={false}
636 onClick={[Function]}
637 style={
638 {
639 "width": "100%",
640 }
641 }
642 title="Add Item"
643 type="button"
644 >
645 <svg
646 fill="currentColor"
647 height="1em"
648 stroke="currentColor"
649 strokeWidth="0"
650 style={
651 {
652 "color": undefined,
653 }
654 }
655 viewBox="0 0 16 16"
656 width="1em"
657 xmlns="http://www.w3.org/2000/svg"
658 >
659 <path
660 clipRule="evenodd"
661 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"
662 fillRule="evenodd"
663 />
664 <path
665 clipRule="evenodd"
666 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
667 fillRule="evenodd"
668 />
669 </svg>
670 </button>
671 </div>
672 </div>
673 </div>
674 </div>
675 </div>
676 <div>
677 <button
678 className="btn btn-primary"
679 disabled={false}
680 type="submit"
681 >
682 Submit
683 </button>
684 </div>
685 </form>
686 `;
687
688 exports[`object fields with title and description from both additionalProperties 1`] = `
689 <form
690 className="rjsf"
691 noValidate={false}
692 onSubmit={[Function]}
693 >
694 <div
695 className="form-group field field-object"
696 >
697 <div
698 className="form-group"
699 >
700 <div
701 className="my-1"
702 id="root__title"
703 >
704 <h5>
705 My Field
706 </h5>
707 <hr
708 className="border-0 bg-secondary"
709 style={
710 {
711 "height": "1px",
712 }
713 }
714 />
715 </div>
716 <div>
717 <div
718 className="mb-3"
719 id="root__description"
720 >
721 a fancier description
722 </div>
723 </div>
724 <div
725 className="p-0 container-fluid"
726 >
727 <div
728 className="row"
729 style={
730 {
731 "marginBottom": "10px",
732 }
733 }
734 >
735 <div
736 className="col-12"
737 >
738
739 <div
740 className="form-group field field-string row"
741 >
742 <div
743 className="col-5"
744 >
745 <div
746 className="form-group"
747 >
748 <label
749 className="form-label"
750 htmlFor="root_foo-key"
751 >
752 foo Key
753 </label>
754 <input
755 className="form-control"
756 defaultValue="foo"
757 disabled={false}
758 id="root_foo-key"
759 name="root_foo-key"
760 onBlur={[Function]}
761 required={false}
762 type="text"
763 />
764 </div>
765 </div>
766 <div
767 className="col-5"
768 >
769 <div
770 className="form-group"
771 >
772 <label
773 className="form-label"
774 htmlFor="root_foo"
775 >
776 foo
777 </label>
778 <input
779 aria-describedby="root_foo__error root_foo__description root_foo__help"
780 autoFocus={false}
781 className="form-control"
782 disabled={false}
783 id="root_foo"
784 name="root_foo"
785 onBlur={[Function]}
786 onChange={[Function]}
787 onFocus={[Function]}
788 placeholder=""
789 readOnly={false}
790 required={false}
791 type="text"
792 value="foo"
793 />
794
795 </div>
796 </div>
797 <div
798 className="py-4 col-2"
799 >
800 <button
801 className="btn btn-danger btn-block btn-sm"
802 disabled={false}
803 onClick={[Function]}
804 title="Remove"
805 type="button"
806 >
807 <svg
808 fill="currentColor"
809 height="1em"
810 stroke="currentColor"
811 strokeWidth="0"
812 style={
813 {
814 "color": undefined,
815 }
816 }
817 viewBox="0 0 512 512"
818 width="1em"
819 xmlns="http://www.w3.org/2000/svg"
820 >
821 <path
822 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"
823 />
824 </svg>
825 </button>
826 </div>
827 </div>
828 </div>
829 </div>
830 <div
831 className="row"
832 >
833 <div
834 className="py-4 col-3 offset-9"
835 >
836 <button
837 className="ml-1 object-property-expand btn btn-primary"
838 disabled={false}
839 onClick={[Function]}
840 style={
841 {
842 "width": "100%",
843 }
844 }
845 title="Add Item"
846 type="button"
847 >
848 <svg
849 fill="currentColor"
850 height="1em"
851 stroke="currentColor"
852 strokeWidth="0"
853 style={
854 {
855 "color": undefined,
856 }
857 }
858 viewBox="0 0 16 16"
859 width="1em"
860 xmlns="http://www.w3.org/2000/svg"
861 >
862 <path
863 clipRule="evenodd"
864 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"
865 fillRule="evenodd"
866 />
867 <path
868 clipRule="evenodd"
869 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
870 fillRule="evenodd"
871 />
872 </svg>
873 </button>
874 </div>
875 </div>
876 </div>
877 </div>
878 </div>
879 <div>
880 <button
881 className="btn btn-primary"
882 disabled={false}
883 type="submit"
884 >
885 Submit
886 </button>
887 </div>
888 </form>
889 `;
890
891 exports[`object fields with title and description from both object 1`] = `
892 <form
893 className="rjsf"
894 noValidate={false}
895 onSubmit={[Function]}
896 >
897 <div
898 className="form-group field field-object"
899 >
900 <div
901 className="form-group"
902 >
903 <div
904 className="my-1"
905 id="root__title"
906 >
907 <h5>
908 My Field
909 </h5>
910 <hr
911 className="border-0 bg-secondary"
912 style={
913 {
914 "height": "1px",
915 }
916 }
917 />
918 </div>
919 <div>
920 <div
921 className="mb-3"
922 id="root__description"
923 >
924 a fancier description
925 </div>
926 </div>
927 <div
928 className="p-0 container-fluid"
929 >
930 <div
931 className="row"
932 style={
933 {
934 "marginBottom": "10px",
935 }
936 }
937 >
938 <div
939 className="col-12"
940 >
941
942 <div
943 className="form-group field field-string"
944 >
945 <div
946 className="form-group"
947 >
948 <label
949 className="form-label"
950 htmlFor="root_a"
951 >
952 My Item A
953 </label>
954 <input
955 aria-describedby="root_a__error root_a__description root_a__help"
956 autoFocus={false}
957 className="form-control"
958 disabled={false}
959 id="root_a"
960 name="root_a"
961 onBlur={[Function]}
962 onChange={[Function]}
963 onFocus={[Function]}
964 placeholder=""
965 readOnly={false}
966 required={false}
967 type="text"
968 value=""
969 />
970 <small
971 className="text-muted form-text"
972 >
973 <div>
974 <div
975 className="mb-3"
976 id="root_a__description"
977 >
978 a fancier item A description
979 </div>
980 </div>
981 </small>
982 </div>
983 </div>
984 </div>
985 </div>
986 <div
987 className="row"
988 style={
989 {
990 "marginBottom": "10px",
991 }
992 }
993 >
994 <div
995 className="col-12"
996 >
997
998 <div
999 className="form-group field field-number"
1000 >
1001 <div
1002 className="form-group"
1003 >
1004 <label
1005 className="form-label"
1006 htmlFor="root_b"
1007 >
1008 My Item B
1009 </label>
1010 <input
1011 aria-describedby="root_b__error root_b__description root_b__help"
1012 autoFocus={false}
1013 className="form-control"
1014 disabled={false}
1015 id="root_b"
1016 name="root_b"
1017 onBlur={[Function]}
1018 onChange={[Function]}
1019 onFocus={[Function]}
1020 placeholder=""
1021 readOnly={false}
1022 required={false}
1023 step="any"
1024 type="number"
1025 value=""
1026 />
1027 <small
1028 className="text-muted form-text"
1029 >
1030 <div>
1031 <div
1032 className="mb-3"
1033 id="root_b__description"
1034 >
1035 a fancier item B description
1036 </div>
1037 </div>
1038 </small>
1039 </div>
1040 </div>
1041 </div>
1042 </div>
1043 </div>
1044 </div>
1045 </div>
1046 <div>
1047 <button
1048 className="btn btn-primary"
1049 disabled={false}
1050 type="submit"
1051 >
1052 Submit
1053 </button>
1054 </div>
1055 </form>
1056 `;
1057
1058 exports[`object fields with title and description from uiSchema additionalProperties 1`] = `
1059 <form
1060 className="rjsf"
1061 noValidate={false}
1062 onSubmit={[Function]}
1063 >
1064 <div
1065 className="form-group field field-object"
1066 >
1067 <div
1068 className="form-group"
1069 >
1070 <div
1071 className="my-1"
1072 id="root__title"
1073 >
1074 <h5>
1075 My Field
1076 </h5>
1077 <hr
1078 className="border-0 bg-secondary"
1079 style={
1080 {
1081 "height": "1px",
1082 }
1083 }
1084 />
1085 </div>
1086 <div>
1087 <div
1088 className="mb-3"
1089 id="root__description"
1090 >
1091 a fancier description
1092 </div>
1093 </div>
1094 <div
1095 className="p-0 container-fluid"
1096 >
1097 <div
1098 className="row"
1099 style={
1100 {
1101 "marginBottom": "10px",
1102 }
1103 }
1104 >
1105 <div
1106 className="col-12"
1107 >
1108
1109 <div
1110 className="form-group field field-string row"
1111 >
1112 <div
1113 className="col-5"
1114 >
1115 <div
1116 className="form-group"
1117 >
1118 <label
1119 className="form-label"
1120 htmlFor="root_foo-key"
1121 >
1122 foo Key
1123 </label>
1124 <input
1125 className="form-control"
1126 defaultValue="foo"
1127 disabled={false}
1128 id="root_foo-key"
1129 name="root_foo-key"
1130 onBlur={[Function]}
1131 required={false}
1132 type="text"
1133 />
1134 </div>
1135 </div>
1136 <div
1137 className="col-5"
1138 >
1139 <div
1140 className="form-group"
1141 >
1142 <label
1143 className="form-label"
1144 htmlFor="root_foo"
1145 >
1146 foo
1147 </label>
1148 <input
1149 aria-describedby="root_foo__error root_foo__description root_foo__help"
1150 autoFocus={false}
1151 className="form-control"
1152 disabled={false}
1153 id="root_foo"
1154 name="root_foo"
1155 onBlur={[Function]}
1156 onChange={[Function]}
1157 onFocus={[Function]}
1158 placeholder=""
1159 readOnly={false}
1160 required={false}
1161 type="text"
1162 value="foo"
1163 />
1164
1165 </div>
1166 </div>
1167 <div
1168 className="py-4 col-2"
1169 >
1170 <button
1171 className="btn btn-danger btn-block btn-sm"
1172 disabled={false}
1173 onClick={[Function]}
1174 title="Remove"
1175 type="button"
1176 >
1177 <svg
1178 fill="currentColor"
1179 height="1em"
1180 stroke="currentColor"
1181 strokeWidth="0"
1182 style={
1183 {
1184 "color": undefined,
1185 }
1186 }
1187 viewBox="0 0 512 512"
1188 width="1em"
1189 xmlns="http://www.w3.org/2000/svg"
1190 >
1191 <path
1192 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"
1193 />
1194 </svg>
1195 </button>
1196 </div>
1197 </div>
1198 </div>
1199 </div>
1200 <div
1201 className="row"
1202 >
1203 <div
1204 className="py-4 col-3 offset-9"
1205 >
1206 <button
1207 className="ml-1 object-property-expand btn btn-primary"
1208 disabled={false}
1209 onClick={[Function]}
1210 style={
1211 {
1212 "width": "100%",
1213 }
1214 }
1215 title="Add Item"
1216 type="button"
1217 >
1218 <svg
1219 fill="currentColor"
1220 height="1em"
1221 stroke="currentColor"
1222 strokeWidth="0"
1223 style={
1224 {
1225 "color": undefined,
1226 }
1227 }
1228 viewBox="0 0 16 16"
1229 width="1em"
1230 xmlns="http://www.w3.org/2000/svg"
1231 >
1232 <path
1233 clipRule="evenodd"
1234 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"
1235 fillRule="evenodd"
1236 />
1237 <path
1238 clipRule="evenodd"
1239 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
1240 fillRule="evenodd"
1241 />
1242 </svg>
1243 </button>
1244 </div>
1245 </div>
1246 </div>
1247 </div>
1248 </div>
1249 <div>
1250 <button
1251 className="btn btn-primary"
1252 disabled={false}
1253 type="submit"
1254 >
1255 Submit
1256 </button>
1257 </div>
1258 </form>
1259 `;
1260
1261 exports[`object fields with title and description from uiSchema object 1`] = `
1262 <form
1263 className="rjsf"
1264 noValidate={false}
1265 onSubmit={[Function]}
1266 >
1267 <div
1268 className="form-group field field-object"
1269 >
1270 <div
1271 className="form-group"
1272 >
1273 <div
1274 className="my-1"
1275 id="root__title"
1276 >
1277 <h5>
1278 My Field
1279 </h5>
1280 <hr
1281 className="border-0 bg-secondary"
1282 style={
1283 {
1284 "height": "1px",
1285 }
1286 }
1287 />
1288 </div>
1289 <div>
1290 <div
1291 className="mb-3"
1292 id="root__description"
1293 >
1294 a fancier description
1295 </div>
1296 </div>
1297 <div
1298 className="p-0 container-fluid"
1299 >
1300 <div
1301 className="row"
1302 style={
1303 {
1304 "marginBottom": "10px",
1305 }
1306 }
1307 >
1308 <div
1309 className="col-12"
1310 >
1311
1312 <div
1313 className="form-group field field-string"
1314 >
1315 <div
1316 className="form-group"
1317 >
1318 <label
1319 className="form-label"
1320 htmlFor="root_a"
1321 >
1322 My Item A
1323 </label>
1324 <input
1325 aria-describedby="root_a__error root_a__description root_a__help"
1326 autoFocus={false}
1327 className="form-control"
1328 disabled={false}
1329 id="root_a"
1330 name="root_a"
1331 onBlur={[Function]}
1332 onChange={[Function]}
1333 onFocus={[Function]}
1334 placeholder=""
1335 readOnly={false}
1336 required={false}
1337 type="text"
1338 value=""
1339 />
1340 <small
1341 className="text-muted form-text"
1342 >
1343 <div>
1344 <div
1345 className="mb-3"
1346 id="root_a__description"
1347 >
1348 a fancier item A description
1349 </div>
1350 </div>
1351 </small>
1352 </div>
1353 </div>
1354 </div>
1355 </div>
1356 <div
1357 className="row"
1358 style={
1359 {
1360 "marginBottom": "10px",
1361 }
1362 }
1363 >
1364 <div
1365 className="col-12"
1366 >
1367
1368 <div
1369 className="form-group field field-number"
1370 >
1371 <div
1372 className="form-group"
1373 >
1374 <label
1375 className="form-label"
1376 htmlFor="root_b"
1377 >
1378 My Item B
1379 </label>
1380 <input
1381 aria-describedby="root_b__error root_b__description root_b__help"
1382 autoFocus={false}
1383 className="form-control"
1384 disabled={false}
1385 id="root_b"
1386 name="root_b"
1387 onBlur={[Function]}
1388 onChange={[Function]}
1389 onFocus={[Function]}
1390 placeholder=""
1391 readOnly={false}
1392 required={false}
1393 step="any"
1394 type="number"
1395 value=""
1396 />
1397 <small
1398 className="text-muted form-text"
1399 >
1400 <div>
1401 <div
1402 className="mb-3"
1403 id="root_b__description"
1404 >
1405 a fancier item B description
1406 </div>
1407 </div>
1408 </small>
1409 </div>
1410 </div>
1411 </div>
1412 </div>
1413 </div>
1414 </div>
1415 </div>
1416 <div>
1417 <button
1418 className="btn btn-primary"
1419 disabled={false}
1420 type="submit"
1421 >
1422 Submit
1423 </button>
1424 </div>
1425 </form>
1426 `;
1427
1428 exports[`object fields with title and description from uiSchema show add button and fields if additionalProperties is true and not an object 1`] = `
1429 <form
1430 className="rjsf"
1431 noValidate={false}
1432 onSubmit={[Function]}
1433 >
1434 <div
1435 className="form-group field field-object"
1436 >
1437 <div
1438 className="form-group"
1439 >
1440 <div
1441 className="my-1"
1442 id="root__title"
1443 >
1444 <h5>
1445 My Field
1446 </h5>
1447 <hr
1448 className="border-0 bg-secondary"
1449 style={
1450 {
1451 "height": "1px",
1452 }
1453 }
1454 />
1455 </div>
1456 <div>
1457 <div
1458 className="mb-3"
1459 id="root__description"
1460 >
1461 a fancier description
1462 </div>
1463 </div>
1464 <div
1465 className="p-0 container-fluid"
1466 >
1467 <div
1468 className="row"
1469 style={
1470 {
1471 "marginBottom": "10px",
1472 }
1473 }
1474 >
1475 <div
1476 className="col-12"
1477 >
1478
1479 <div
1480 className="form-group field field-string row"
1481 >
1482 <div
1483 className="col-5"
1484 >
1485 <div
1486 className="form-group"
1487 >
1488 <label
1489 className="form-label"
1490 htmlFor="root_additionalProperty-key"
1491 >
1492 additionalProperty Key
1493 </label>
1494 <input
1495 className="form-control"
1496 defaultValue="additionalProperty"
1497 disabled={false}
1498 id="root_additionalProperty-key"
1499 name="root_additionalProperty-key"
1500 onBlur={[Function]}
1501 required={false}
1502 type="text"
1503 />
1504 </div>
1505 </div>
1506 <div
1507 className="col-5"
1508 >
1509 <div
1510 className="form-group"
1511 >
1512 <label
1513 className="form-label"
1514 htmlFor="root_additionalProperty"
1515 >
1516 additionalProperty
1517 </label>
1518 <input
1519 aria-describedby="root_additionalProperty__error root_additionalProperty__description root_additionalProperty__help"
1520 autoFocus={false}
1521 className="form-control"
1522 disabled={false}
1523 id="root_additionalProperty"
1524 name="root_additionalProperty"
1525 onBlur={[Function]}
1526 onChange={[Function]}
1527 onFocus={[Function]}
1528 placeholder=""
1529 readOnly={false}
1530 required={false}
1531 type="text"
1532 value="should appear"
1533 />
1534
1535 </div>
1536 </div>
1537 <div
1538 className="py-4 col-2"
1539 >
1540 <button
1541 className="btn btn-danger btn-block btn-sm"
1542 disabled={false}
1543 onClick={[Function]}
1544 title="Remove"
1545 type="button"
1546 >
1547 <svg
1548 fill="currentColor"
1549 height="1em"
1550 stroke="currentColor"
1551 strokeWidth="0"
1552 style={
1553 {
1554 "color": undefined,
1555 }
1556 }
1557 viewBox="0 0 512 512"
1558 width="1em"
1559 xmlns="http://www.w3.org/2000/svg"
1560 >
1561 <path
1562 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"
1563 />
1564 </svg>
1565 </button>
1566 </div>
1567 </div>
1568 </div>
1569 </div>
1570 <div
1571 className="row"
1572 >
1573 <div
1574 className="py-4 col-3 offset-9"
1575 >
1576 <button
1577 className="ml-1 object-property-expand btn btn-primary"
1578 disabled={false}
1579 onClick={[Function]}
1580 style={
1581 {
1582 "width": "100%",
1583 }
1584 }
1585 title="Add Item"
1586 type="button"
1587 >
1588 <svg
1589 fill="currentColor"
1590 height="1em"
1591 stroke="currentColor"
1592 strokeWidth="0"
1593 style={
1594 {
1595 "color": undefined,
1596 }
1597 }
1598 viewBox="0 0 16 16"
1599 width="1em"
1600 xmlns="http://www.w3.org/2000/svg"
1601 >
1602 <path
1603 clipRule="evenodd"
1604 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"
1605 fillRule="evenodd"
1606 />
1607 <path
1608 clipRule="evenodd"
1609 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
1610 fillRule="evenodd"
1611 />
1612 </svg>
1613 </button>
1614 </div>
1615 </div>
1616 </div>
1617 </div>
1618 </div>
1619 <div>
1620 <button
1621 className="btn btn-primary"
1622 disabled={false}
1623 type="submit"
1624 >
1625 Submit
1626 </button>
1627 </div>
1628 </form>
1629 `;
1630
1631 exports[`object fields with title and description object 1`] = `
1632 <form
1633 className="rjsf"
1634 noValidate={false}
1635 onSubmit={[Function]}
1636 >
1637 <div
1638 className="form-group field field-object"
1639 >
1640 <div
1641 className="form-group"
1642 >
1643 <div
1644 className="my-1"
1645 id="root__title"
1646 >
1647 <h5>
1648 Test field
1649 </h5>
1650 <hr
1651 className="border-0 bg-secondary"
1652 style={
1653 {
1654 "height": "1px",
1655 }
1656 }
1657 />
1658 </div>
1659 <div>
1660 <div
1661 className="mb-3"
1662 id="root__description"
1663 >
1664 a test description
1665 </div>
1666 </div>
1667 <div
1668 className="p-0 container-fluid"
1669 >
1670 <div
1671 className="row"
1672 style={
1673 {
1674 "marginBottom": "10px",
1675 }
1676 }
1677 >
1678 <div
1679 className="col-12"
1680 >
1681
1682 <div
1683 className="form-group field field-string"
1684 >
1685 <div
1686 className="form-group"
1687 >
1688 <label
1689 className="form-label"
1690 htmlFor="root_a"
1691 >
1692 A
1693 </label>
1694 <input
1695 aria-describedby="root_a__error root_a__description root_a__help"
1696 autoFocus={false}
1697 className="form-control"
1698 disabled={false}
1699 id="root_a"
1700 name="root_a"
1701 onBlur={[Function]}
1702 onChange={[Function]}
1703 onFocus={[Function]}
1704 placeholder=""
1705 readOnly={false}
1706 required={false}
1707 type="text"
1708 value=""
1709 />
1710 <small
1711 className="text-muted form-text"
1712 >
1713 <div>
1714 <div
1715 className="mb-3"
1716 id="root_a__description"
1717 >
1718 A description
1719 </div>
1720 </div>
1721 </small>
1722 </div>
1723 </div>
1724 </div>
1725 </div>
1726 <div
1727 className="row"
1728 style={
1729 {
1730 "marginBottom": "10px",
1731 }
1732 }
1733 >
1734 <div
1735 className="col-12"
1736 >
1737
1738 <div
1739 className="form-group field field-number"
1740 >
1741 <div
1742 className="form-group"
1743 >
1744 <label
1745 className="form-label"
1746 htmlFor="root_b"
1747 >
1748 B
1749 </label>
1750 <input
1751 aria-describedby="root_b__error root_b__description root_b__help"
1752 autoFocus={false}
1753 className="form-control"
1754 disabled={false}
1755 id="root_b"
1756 name="root_b"
1757 onBlur={[Function]}
1758 onChange={[Function]}
1759 onFocus={[Function]}
1760 placeholder=""
1761 readOnly={false}
1762 required={false}
1763 step="any"
1764 type="number"
1765 value=""
1766 />
1767 <small
1768 className="text-muted form-text"
1769 >
1770 <div>
1771 <div
1772 className="mb-3"
1773 id="root_b__description"
1774 >
1775 B description
1776 </div>
1777 </div>
1778 </small>
1779 </div>
1780 </div>
1781 </div>
1782 </div>
1783 </div>
1784 </div>
1785 </div>
1786 <div>
1787 <button
1788 className="btn btn-primary"
1789 disabled={false}
1790 type="submit"
1791 >
1792 Submit
1793 </button>
1794 </div>
1795 </form>
1796 `;
1797
1798 exports[`object fields with title and description show add button and fields if additionalProperties is true and not an object 1`] = `
1799 <form
1800 className="rjsf"
1801 noValidate={false}
1802 onSubmit={[Function]}
1803 >
1804 <div
1805 className="form-group field field-object"
1806 >
1807 <div
1808 className="form-group"
1809 >
1810 <div
1811 className="my-1"
1812 id="root__title"
1813 >
1814 <h5>
1815 Test field
1816 </h5>
1817 <hr
1818 className="border-0 bg-secondary"
1819 style={
1820 {
1821 "height": "1px",
1822 }
1823 }
1824 />
1825 </div>
1826 <div>
1827 <div
1828 className="mb-3"
1829 id="root__description"
1830 >
1831 a test description
1832 </div>
1833 </div>
1834 <div
1835 className="p-0 container-fluid"
1836 >
1837 <div
1838 className="row"
1839 style={
1840 {
1841 "marginBottom": "10px",
1842 }
1843 }
1844 >
1845 <div
1846 className="col-12"
1847 >
1848
1849 <div
1850 className="form-group field field-string row"
1851 >
1852 <div
1853 className="col-5"
1854 >
1855 <div
1856 className="form-group"
1857 >
1858 <label
1859 className="form-label"
1860 htmlFor="root_additionalProperty-key"
1861 >
1862 additionalProperty Key
1863 </label>
1864 <input
1865 className="form-control"
1866 defaultValue="additionalProperty"
1867 disabled={false}
1868 id="root_additionalProperty-key"
1869 name="root_additionalProperty-key"
1870 onBlur={[Function]}
1871 required={false}
1872 type="text"
1873 />
1874 </div>
1875 </div>
1876 <div
1877 className="col-5"
1878 >
1879 <div
1880 className="form-group"
1881 >
1882 <label
1883 className="form-label"
1884 htmlFor="root_additionalProperty"
1885 >
1886 additionalProperty
1887 </label>
1888 <input
1889 aria-describedby="root_additionalProperty__error root_additionalProperty__description root_additionalProperty__help"
1890 autoFocus={false}
1891 className="form-control"
1892 disabled={false}
1893 id="root_additionalProperty"
1894 name="root_additionalProperty"
1895 onBlur={[Function]}
1896 onChange={[Function]}
1897 onFocus={[Function]}
1898 placeholder=""
1899 readOnly={false}
1900 required={false}
1901 type="text"
1902 value="should appear"
1903 />
1904
1905 </div>
1906 </div>
1907 <div
1908 className="py-4 col-2"
1909 >
1910 <button
1911 className="btn btn-danger btn-block btn-sm"
1912 disabled={false}
1913 onClick={[Function]}
1914 title="Remove"
1915 type="button"
1916 >
1917 <svg
1918 fill="currentColor"
1919 height="1em"
1920 stroke="currentColor"
1921 strokeWidth="0"
1922 style={
1923 {
1924 "color": undefined,
1925 }
1926 }
1927 viewBox="0 0 512 512"
1928 width="1em"
1929 xmlns="http://www.w3.org/2000/svg"
1930 >
1931 <path
1932 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"
1933 />
1934 </svg>
1935 </button>
1936 </div>
1937 </div>
1938 </div>
1939 </div>
1940 <div
1941 className="row"
1942 >
1943 <div
1944 className="py-4 col-3 offset-9"
1945 >
1946 <button
1947 className="ml-1 object-property-expand btn btn-primary"
1948 disabled={false}
1949 onClick={[Function]}
1950 style={
1951 {
1952 "width": "100%",
1953 }
1954 }
1955 title="Add Item"
1956 type="button"
1957 >
1958 <svg
1959 fill="currentColor"
1960 height="1em"
1961 stroke="currentColor"
1962 strokeWidth="0"
1963 style={
1964 {
1965 "color": undefined,
1966 }
1967 }
1968 viewBox="0 0 16 16"
1969 width="1em"
1970 xmlns="http://www.w3.org/2000/svg"
1971 >
1972 <path
1973 clipRule="evenodd"
1974 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"
1975 fillRule="evenodd"
1976 />
1977 <path
1978 clipRule="evenodd"
1979 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
1980 fillRule="evenodd"
1981 />
1982 </svg>
1983 </button>
1984 </div>
1985 </div>
1986 </div>
1987 </div>
1988 </div>
1989 <div>
1990 <button
1991 className="btn btn-primary"
1992 disabled={false}
1993 type="submit"
1994 >
1995 Submit
1996 </button>
1997 </div>
1998 </form>
1999 `;
2000
2001 exports[`object fields with title and description with global label off additionalProperties 1`] = `
2002 <form
2003 className="rjsf"
2004 noValidate={false}
2005 onSubmit={[Function]}
2006 >
2007 <div
2008 className="form-group field field-object"
2009 >
2010 <div
2011 className="form-group"
2012 >
2013
2014 <div
2015 className="p-0 container-fluid"
2016 >
2017 <div
2018 className="row"
2019 style={
2020 {
2021 "marginBottom": "10px",
2022 }
2023 }
2024 >
2025 <div
2026 className="col-12"
2027 >
2028
2029 <div
2030 className="form-group field field-string row"
2031 >
2032 <div
2033 className="col-5"
2034 >
2035 <div
2036 className="form-group"
2037 >
2038 <label
2039 className="form-label"
2040 htmlFor="root_foo-key"
2041 >
2042 foo Key
2043 </label>
2044 <input
2045 className="form-control"
2046 defaultValue="foo"
2047 disabled={false}
2048 id="root_foo-key"
2049 name="root_foo-key"
2050 onBlur={[Function]}
2051 required={false}
2052 type="text"
2053 />
2054 </div>
2055 </div>
2056 <div
2057 className="col-5"
2058 >
2059 <div
2060 className="form-group"
2061 >
2062 <input
2063 aria-describedby="root_foo__error root_foo__description root_foo__help"
2064 autoFocus={false}
2065 className="form-control"
2066 disabled={false}
2067 id="root_foo"
2068 name="root_foo"
2069 onBlur={[Function]}
2070 onChange={[Function]}
2071 onFocus={[Function]}
2072 placeholder=""
2073 readOnly={false}
2074 required={false}
2075 type="text"
2076 value="foo"
2077 />
2078 </div>
2079 </div>
2080 <div
2081 className="py-4 col-2"
2082 >
2083 <button
2084 className="btn btn-danger btn-block btn-sm"
2085 disabled={false}
2086 onClick={[Function]}
2087 title="Remove"
2088 type="button"
2089 >
2090 <svg
2091 fill="currentColor"
2092 height="1em"
2093 stroke="currentColor"
2094 strokeWidth="0"
2095 style={
2096 {
2097 "color": undefined,
2098 }
2099 }
2100 viewBox="0 0 512 512"
2101 width="1em"
2102 xmlns="http://www.w3.org/2000/svg"
2103 >
2104 <path
2105 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"
2106 />
2107 </svg>
2108 </button>
2109 </div>
2110 </div>
2111 </div>
2112 </div>
2113 <div
2114 className="row"
2115 >
2116 <div
2117 className="py-4 col-3 offset-9"
2118 >
2119 <button
2120 className="ml-1 object-property-expand btn btn-primary"
2121 disabled={false}
2122 onClick={[Function]}
2123 style={
2124 {
2125 "width": "100%",
2126 }
2127 }
2128 title="Add Item"
2129 type="button"
2130 >
2131 <svg
2132 fill="currentColor"
2133 height="1em"
2134 stroke="currentColor"
2135 strokeWidth="0"
2136 style={
2137 {
2138 "color": undefined,
2139 }
2140 }
2141 viewBox="0 0 16 16"
2142 width="1em"
2143 xmlns="http://www.w3.org/2000/svg"
2144 >
2145 <path
2146 clipRule="evenodd"
2147 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"
2148 fillRule="evenodd"
2149 />
2150 <path
2151 clipRule="evenodd"
2152 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
2153 fillRule="evenodd"
2154 />
2155 </svg>
2156 </button>
2157 </div>
2158 </div>
2159 </div>
2160 </div>
2161 </div>
2162 <div>
2163 <button
2164 className="btn btn-primary"
2165 disabled={false}
2166 type="submit"
2167 >
2168 Submit
2169 </button>
2170 </div>
2171 </form>
2172 `;
2173
2174 exports[`object fields with title and description with global label off object 1`] = `
2175 <form
2176 className="rjsf"
2177 noValidate={false}
2178 onSubmit={[Function]}
2179 >
2180 <div
2181 className="form-group field field-object"
2182 >
2183 <div
2184 className="form-group"
2185 >
2186
2187 <div
2188 className="p-0 container-fluid"
2189 >
2190 <div
2191 className="row"
2192 style={
2193 {
2194 "marginBottom": "10px",
2195 }
2196 }
2197 >
2198 <div
2199 className="col-12"
2200 >
2201
2202 <div
2203 className="form-group field field-string"
2204 >
2205 <div
2206 className="form-group"
2207 >
2208 <input
2209 aria-describedby="root_a__error root_a__description root_a__help"
2210 autoFocus={false}
2211 className="form-control"
2212 disabled={false}
2213 id="root_a"
2214 name="root_a"
2215 onBlur={[Function]}
2216 onChange={[Function]}
2217 onFocus={[Function]}
2218 placeholder=""
2219 readOnly={false}
2220 required={false}
2221 type="text"
2222 value=""
2223 />
2224 </div>
2225 </div>
2226 </div>
2227 </div>
2228 <div
2229 className="row"
2230 style={
2231 {
2232 "marginBottom": "10px",
2233 }
2234 }
2235 >
2236 <div
2237 className="col-12"
2238 >
2239
2240 <div
2241 className="form-group field field-number"
2242 >
2243 <div
2244 className="form-group"
2245 >
2246 <input
2247 aria-describedby="root_b__error root_b__description root_b__help"
2248 autoFocus={false}
2249 className="form-control"
2250 disabled={false}
2251 id="root_b"
2252 name="root_b"
2253 onBlur={[Function]}
2254 onChange={[Function]}
2255 onFocus={[Function]}
2256 placeholder=""
2257 readOnly={false}
2258 required={false}
2259 step="any"
2260 type="number"
2261 value=""
2262 />
2263 </div>
2264 </div>
2265 </div>
2266 </div>
2267 </div>
2268 </div>
2269 </div>
2270 <div>
2271 <button
2272 className="btn btn-primary"
2273 disabled={false}
2274 type="submit"
2275 >
2276 Submit
2277 </button>
2278 </div>
2279 </form>
2280 `;
2281
2282 exports[`object fields with title and description with global label off show add button and fields if additionalProperties is true and not an object 1`] = `
2283 <form
2284 className="rjsf"
2285 noValidate={false}
2286 onSubmit={[Function]}
2287 >
2288 <div
2289 className="form-group field field-object"
2290 >
2291 <div
2292 className="form-group"
2293 >
2294
2295 <div
2296 className="p-0 container-fluid"
2297 >
2298 <div
2299 className="row"
2300 style={
2301 {
2302 "marginBottom": "10px",
2303 }
2304 }
2305 >
2306 <div
2307 className="col-12"
2308 >
2309
2310 <div
2311 className="form-group field field-string row"
2312 >
2313 <div
2314 className="col-5"
2315 >
2316 <div
2317 className="form-group"
2318 >
2319 <label
2320 className="form-label"
2321 htmlFor="root_additionalProperty-key"
2322 >
2323 additionalProperty Key
2324 </label>
2325 <input
2326 className="form-control"
2327 defaultValue="additionalProperty"
2328 disabled={false}
2329 id="root_additionalProperty-key"
2330 name="root_additionalProperty-key"
2331 onBlur={[Function]}
2332 required={false}
2333 type="text"
2334 />
2335 </div>
2336 </div>
2337 <div
2338 className="col-5"
2339 >
2340 <div
2341 className="form-group"
2342 >
2343 <input
2344 aria-describedby="root_additionalProperty__error root_additionalProperty__description root_additionalProperty__help"
2345 autoFocus={false}
2346 className="form-control"
2347 disabled={false}
2348 id="root_additionalProperty"
2349 name="root_additionalProperty"
2350 onBlur={[Function]}
2351 onChange={[Function]}
2352 onFocus={[Function]}
2353 placeholder=""
2354 readOnly={false}
2355 required={false}
2356 type="text"
2357 value="should appear"
2358 />
2359 </div>
2360 </div>
2361 <div
2362 className="py-4 col-2"
2363 >
2364 <button
2365 className="btn btn-danger btn-block btn-sm"
2366 disabled={false}
2367 onClick={[Function]}
2368 title="Remove"
2369 type="button"
2370 >
2371 <svg
2372 fill="currentColor"
2373 height="1em"
2374 stroke="currentColor"
2375 strokeWidth="0"
2376 style={
2377 {
2378 "color": undefined,
2379 }
2380 }
2381 viewBox="0 0 512 512"
2382 width="1em"
2383 xmlns="http://www.w3.org/2000/svg"
2384 >
2385 <path
2386 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"
2387 />
2388 </svg>
2389 </button>
2390 </div>
2391 </div>
2392 </div>
2393 </div>
2394 <div
2395 className="row"
2396 >
2397 <div
2398 className="py-4 col-3 offset-9"
2399 >
2400 <button
2401 className="ml-1 object-property-expand btn btn-primary"
2402 disabled={false}
2403 onClick={[Function]}
2404 style={
2405 {
2406 "width": "100%",
2407 }
2408 }
2409 title="Add Item"
2410 type="button"
2411 >
2412 <svg
2413 fill="currentColor"
2414 height="1em"
2415 stroke="currentColor"
2416 strokeWidth="0"
2417 style={
2418 {
2419 "color": undefined,
2420 }
2421 }
2422 viewBox="0 0 16 16"
2423 width="1em"
2424 xmlns="http://www.w3.org/2000/svg"
2425 >
2426 <path
2427 clipRule="evenodd"
2428 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"
2429 fillRule="evenodd"
2430 />
2431 <path
2432 clipRule="evenodd"
2433 d="M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z"
2434 fillRule="evenodd"
2435 />
2436 </svg>
2437 </button>
2438 </div>
2439 </div>
2440 </div>
2441 </div>
2442 </div>
2443 <div>
2444 <button
2445 className="btn btn-primary"
2446 disabled={false}
2447 type="submit"
2448 >
2449 Submit
2450 </button>
2451 </div>
2452 </form>
2453 `;