+
- optionalObjectWithOneofs
+ optionalArrayWithAnyofs
-
+ No data for optional field
+
diff --git a/packages/mantine/test/__snapshots__/Form.test.tsx.snap b/packages/mantine/test/__snapshots__/Form.test.tsx.snap
index 307ca0c7c2..174974e1fa 100644
--- a/packages/mantine/test/__snapshots__/Form.test.tsx.snap
+++ b/packages/mantine/test/__snapshots__/Form.test.tsx.snap
@@ -6984,169 +6984,6 @@ exports[`single fields optional data controls does not show optional controls wh
"type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "m_2415a157 __m__-rh9",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_7485cace",
- "data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root",
- "size": undefined,
- "style": {
- "padding": "0rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "Submit",
- ],
- "props": {
- "className": "m_811560b9",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_80f1301b",
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_77c9d27d m_87cf2631",
- "data-size": undefined,
- "data-variant": "filled",
- "size": undefined,
- "style": {
- "--button-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--button-bg": "var(--mantine-color-blue-filled)",
- "--button-color": "var(--mantine-color-white)",
- "--button-hover": "var(--mantine-color-blue-filled-hover)",
- },
- "type": "submit",
- },
- "type": "button",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "acceptCharset": undefined,
- "action": undefined,
- "as": undefined,
- "autoComplete": undefined,
- "className": "rjsf",
- "encType": undefined,
- "id": undefined,
- "method": undefined,
- "name": undefined,
- "noValidate": false,
- "onSubmit": [Function],
- "target": undefined,
- },
- "type": "form",
- Symbol(cleaned): true,
- },
-]
-`;
-
-exports[`single fields optional data controls does not show optional controls when not turned on in uiSchema, readonly and no formData 1`] = `
-[
- ,
- ,
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "test",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rrl{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
{
@@ -7155,172 +6992,127 @@ exports[`single fields optional data controls does not show optional controls wh
"children": [
{
"children": [
- "nestedObjectOptional",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rrq{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ {
+ "children": [
+ "optionalArrayWithAnyofs",
+ ],
+ "props": {
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_optionalArrayWithAnyofs__anyof_select",
+ "id": "root_optionalArrayWithAnyofs__anyof_select-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
+ },
+ },
+ "type": "label",
+ Symbol(cleaned): true,
},
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
+ {
+ "children": null,
+ "props": {
+ "aria-describedby": undefined,
+ "aria-haspopup": "listbox",
+ "aria-invalid": false,
+ "autoComplete": "off",
+ "className": "m_8fb7ebe7",
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": false,
+ "id": "root_optionalArrayWithAnyofs__anyof_select",
+ "onBlur": [Function],
+ "onChange": [Function],
+ "onClick": [Function],
+ "onFocus": [Function],
+ "onKeyDown": [Function],
+ "readOnly": false,
+ "required": undefined,
+ "size": undefined,
+ "style": {},
+ "value": "Option 1",
+ },
+ "type": "input",
+ Symbol(cleaned): true,
+ },
{
"children": [
{
"children": [
{
- "children": [
- "test",
- ],
+ "children": null,
"props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_nestedObjectOptional_test",
- "id": "root_nestedObjectOptional_test-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
+ "clipRule": "evenodd",
+ "d": "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",
+ "fill": "currentColor",
+ "fillRule": "evenodd",
},
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "id": "root_nestedObjectOptional_test",
- "name": "root_nestedObjectOptional_test",
- "placeholder": "",
- "required": false,
- "size": undefined,
- "style": {},
- "type": "text",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
- },
- "type": "div",
+ "type": "path",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
+ "className": "m_2943220b",
+ "data-combobox-chevron": true,
+ "data-size": undefined,
"data-variant": undefined,
+ "fill": "none",
"size": undefined,
"style": {},
+ "viewBox": "0 0 15 15",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "div",
+ "type": "svg",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
+ "className": "m_82577fc2",
+ "data-position": "right",
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
+ "className": "m_6c018570",
+ "data-size": "sm",
+ "data-variant": "default",
+ "data-with-right-section": true,
"size": undefined,
- "style": {},
+ "style": {
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
+ "--input-right-section-pointer-events": "none",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_46b77525",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": [
{
"children": [
{
"children": [
- {
- "children": [
- "deepObjectOptional",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional_deepObjectOptional__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rs5{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
{
"children": [
{
@@ -7329,102 +7121,204 @@ exports[`single fields optional data controls does not show optional controls wh
"children": [
{
"children": [
- {
- "children": [
- "deepTest",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_nestedObjectOptional_deepObjectOptional_deepTest",
- "id": "root_nestedObjectOptional_deepObjectOptional_deepTest-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
{
"children": [
{
"children": null,
"props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "id": "root_nestedObjectOptional_deepObjectOptional_deepTest",
- "name": "root_nestedObjectOptional_deepObjectOptional_deepTest",
- "placeholder": "",
- "required": false,
- "size": undefined,
- "style": {},
- "type": "text",
+ "clipRule": "evenodd",
+ "d": "M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",
+ "fill": "currentColor",
+ "fillRule": "evenodd",
},
- "type": "input",
+ "type": "path",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
+ "aria-hidden": true,
+ "className": "m_8ee53fc2",
+ "fill": "none",
+ "style": undefined,
+ "viewBox": "0 0 10 7",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "div",
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ "Option 1",
+ ],
+ "props": {},
+ "type": "span",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
+ "aria-selected": true,
+ "className": "m_92253aa5 m_390b5f4",
+ "data-checked": true,
+ "data-combobox-active": true,
+ "data-combobox-option": true,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": ":rle:",
+ "onClick": [Function],
+ "onMouseDown": [Function],
+ "onMouseOver": [Function],
+ "role": "option",
+ "size": undefined,
+ "style": {},
+ "value": "0",
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ "Option 2",
+ ],
+ "props": {},
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "aria-selected": false,
+ "className": "m_92253aa5 m_390b5f4",
+ "data-combobox-option": true,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": ":rlg:",
+ "onClick": [Function],
+ "onMouseDown": [Function],
+ "onMouseOver": [Function],
+ "role": "option",
+ "size": undefined,
+ "style": {},
+ "value": "1",
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ "Option 3",
+ ],
+ "props": {},
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "aria-selected": false,
+ "className": "m_92253aa5 m_390b5f4",
+ "data-combobox-option": true,
+ "data-size": undefined,
"data-variant": undefined,
+ "id": ":rli:",
+ "onClick": [Function],
+ "onMouseDown": [Function],
+ "onMouseOver": [Function],
+ "role": "option",
"size": undefined,
"style": {},
+ "value": "2",
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
+ "className": "m_b1336c6",
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
+ "className": "m_c0783ff9",
+ "data-horizontal-hidden": undefined,
+ "data-offset-scrollbars": "y",
+ "data-scrollbars": "xy",
"data-size": undefined,
"data-variant": undefined,
- "size": undefined,
- "style": {},
+ "data-vertical-hidden": undefined,
+ "onScroll": [Function],
+ "size": undefined,
+ "style": {
+ "overflowX": "scroll",
+ "overflowY": "scroll",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "m_c44ba933",
+ "data-hidden": undefined,
+ "data-mantine-scrollbar": true,
+ "data-orientation": "horizontal",
+ "data-state": "hidden",
+ "onLostPointerCapture": [Function],
+ "onMouseEnter": [Function],
+ "onMouseLeave": [Function],
+ "onPointerDown": [Function],
+ "onPointerEnter": [Function],
+ "onPointerLeave": [Function],
+ "onPointerMove": [Function],
+ "onPointerUp": [Function],
+ "style": {
+ "--sa-thumb-width": "18px",
+ "position": "absolute",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "m_c44ba933",
+ "data-hidden": undefined,
+ "data-mantine-scrollbar": true,
+ "data-orientation": "vertical",
+ "data-state": "hidden",
+ "onLostPointerCapture": [Function],
+ "onMouseEnter": [Function],
+ "onMouseLeave": [Function],
+ "onPointerDown": [Function],
+ "onPointerEnter": [Function],
+ "onPointerLeave": [Function],
+ "onPointerMove": [Function],
+ "onPointerUp": [Function],
+ "style": {
+ "--sa-thumb-height": "18px",
+ "position": "absolute",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_2415a157 __m__-rs5",
+ "className": "m_d57069b5",
+ "data-autosize": "true",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {
- "marginBottom": "var(--mantine-spacing-sm)",
+ "--sa-corner-height": "0px",
+ "--sa-corner-width": "0px",
+ "--scrollarea-scrollbar-size": "var(--combobox-padding)",
},
},
"type": "div",
@@ -7432,14 +7326,17 @@ exports[`single fields optional data controls does not show optional controls wh
},
],
"props": {
- "className": "m_7485cace",
+ "className": "",
"data-size": undefined,
- "data-strategy": "block",
"data-variant": undefined,
- "id": "root_nestedObjectOptional_deepObjectOptional",
"size": undefined,
"style": {
- "padding": "0rem",
+ "display": "flex",
+ "flex": 1,
+ "flexDirection": "column",
+ "minHeight": 0,
+ "minWidth": 0,
+ "overflow": "hidden",
},
},
"type": "div",
@@ -7447,353 +7344,718 @@ exports[`single fields optional data controls does not show optional controls wh
},
],
"props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "display": "flex",
+ "maxHeight": "calc(13.75rem * var(--mantine-scale))",
+ "overflow": "hidden",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
+ "aria-labelledby": "root_optionalArrayWithAnyofs__anyof_select-label",
+ "className": "m_b2821a6e",
"data-size": undefined,
"data-variant": undefined,
+ "id": "",
+ "onMouseDown": [Function],
+ "role": "listbox",
"size": undefined,
- "style": {},
+ "style": {
+ "--combobox-option-fz": "var(--mantine-font-size-sm)",
+ "--combobox-option-padding": "var(--combobox-option-padding-sm)",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_38a85659 m_88b62a41",
+ "data-composed": true,
+ "data-fixed": undefined,
+ "data-position": "bottom",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "onKeyDownCapture": [Function],
+ "role": "presentation",
+ "size": undefined,
+ "style": {
+ "--combobox-option-fz": "var(--mantine-font-size-sm)",
+ "--combobox-option-padding": "var(--combobox-option-padding-sm)",
+ "display": "none",
+ "left": 0,
+ "top": 0,
+ "width": undefined,
+ "zIndex": 300,
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "disabled": false,
+ "form": undefined,
+ "name": "root_optionalArrayWithAnyofs__anyof_select",
+ "type": "hidden",
+ "value": "0",
+ },
+ "type": "input",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": [
+ {
+ "children": [
+ {
+ "children": [
+ "optionalArrayWithAnyofs",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_optionalArrayWithAnyofs__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h4",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
{
"children": [
{
"children": [
{
"children": [
- "deepObject",
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
],
"props": {
- "className": "m_8a5d1357",
- "data-order": 3,
+ "className": "m_8d3afb97",
"data-size": undefined,
"data-variant": undefined,
- "id": "root_nestedObjectOptional_deepObject__title",
"size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
+ "style": {},
},
- "type": "h3",
+ "type": "span",
Symbol(cleaned): true,
},
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rsg{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "deepTest",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_nestedObjectOptional_deepObject_deepTest",
- "id": "root_nestedObjectOptional_deepObject_deepTest-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "id": "root_nestedObjectOptional_deepObject_deepTest",
- "name": "root_nestedObjectOptional_deepObject_deepTest",
- "placeholder": "",
- "required": false,
- "size": undefined,
- "style": {},
- "type": "text",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_46b77525",
- "data-size": "sm",
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_2415a157 __m__-rsg",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_7485cace",
- "data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root_nestedObjectOptional_deepObject",
- "size": undefined,
- "style": {
- "padding": "0rem",
+ ],
+ "props": {
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-size": "md",
+ "data-variant": "subtle",
+ "id": "root_optionalArrayWithAnyofs__add",
+ "onClick": [Function],
+ "size": undefined,
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
},
+ "title": "Add Item",
+ "type": "button",
},
- "type": "div",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
+ "className": "m_4081bf90",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
"data-size": undefined,
- "data-variant": undefined,
+ "data-variant": "default",
+ "id": "root_optionalArrayWithAnyofs",
"size": undefined,
"style": {},
},
- "type": "div",
+ "type": "fieldset",
Symbol(cleaned): true,
},
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "deepArrayOptional",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 4,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional_deepArrayOptional__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_90794832",
- "style": {},
- },
- "type": "legend",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M12 5l0 14",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M5 12l14 0",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- "type": "svg",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-disabled": true,
- "data-size": "md",
- "data-variant": "subtle",
- "disabled": true,
- "id": "root_nestedObjectOptional_deepArrayOptional__add",
- "onClick": [Function],
- "size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_6d731127",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "--stack-align": "stretch",
+ "--stack-gap": "var(--mantine-spacing-md)",
+ "--stack-justify": "flex-start",
+ "marginBottom": "1rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-undefined",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_2415a157 __m__-rh9",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "Submit",
+ ],
+ "props": {
+ "className": "m_811560b9",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_80f1301b",
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_77c9d27d m_87cf2631",
+ "data-size": undefined,
+ "data-variant": "filled",
+ "size": undefined,
+ "style": {
+ "--button-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--button-bg": "var(--mantine-color-blue-filled)",
+ "--button-color": "var(--mantine-color-white)",
+ "--button-hover": "var(--mantine-color-blue-filled-hover)",
+ },
+ "type": "submit",
+ },
+ "type": "button",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "acceptCharset": undefined,
+ "action": undefined,
+ "as": undefined,
+ "autoComplete": undefined,
+ "className": "rjsf",
+ "encType": undefined,
+ "id": undefined,
+ "method": undefined,
+ "name": undefined,
+ "noValidate": false,
+ "onSubmit": [Function],
+ "target": undefined,
+ },
+ "type": "form",
+ Symbol(cleaned): true,
+ },
+]
+`;
+
+exports[`single fields optional data controls does not show optional controls when not turned on in uiSchema, readonly and no formData 1`] = `
+[
+ ,
+ ,
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "test",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rrl{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "nestedObjectOptional",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rrq{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "test",
+ ],
+ "props": {
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_nestedObjectOptional_test",
+ "id": "root_nestedObjectOptional_test-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
+ },
+ },
+ "type": "label",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "aria-describedby": undefined,
+ "aria-invalid": false,
+ "autoFocus": false,
+ "className": "m_8fb7ebe7",
+ "data-disabled": true,
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": true,
+ "id": "root_nestedObjectOptional_test",
+ "name": "root_nestedObjectOptional_test",
+ "placeholder": "",
+ "required": false,
+ "size": undefined,
+ "style": {},
+ "type": "text",
+ },
+ "type": "input",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_6c018570",
+ "data-disabled": true,
+ "data-size": "sm",
+ "data-variant": "default",
+ "size": undefined,
+ "style": {
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_46b77525",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-string",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "deepObjectOptional",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepObjectOptional__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rs5{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "deepTest",
+ ],
+ "props": {
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_nestedObjectOptional_deepObjectOptional_deepTest",
+ "id": "root_nestedObjectOptional_deepObjectOptional_deepTest-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
+ },
+ },
+ "type": "label",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "aria-describedby": undefined,
+ "aria-invalid": false,
+ "autoFocus": false,
+ "className": "m_8fb7ebe7",
+ "data-disabled": true,
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": true,
+ "id": "root_nestedObjectOptional_deepObjectOptional_deepTest",
+ "name": "root_nestedObjectOptional_deepObjectOptional_deepTest",
+ "placeholder": "",
+ "required": false,
+ "size": undefined,
+ "style": {},
+ "type": "text",
+ },
+ "type": "input",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_6c018570",
+ "data-disabled": true,
+ "data-size": "sm",
+ "data-variant": "default",
+ "size": undefined,
+ "style": {
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_46b77525",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-string",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
},
- "title": "Add Item",
- "type": "button",
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "button",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_4081bf90",
+ "className": "m_2415a157 __m__-rs5",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
+ "marginBottom": "var(--mantine-spacing-sm)",
},
},
"type": "div",
@@ -7801,19 +8063,22 @@ exports[`single fields optional data controls does not show optional controls wh
},
],
"props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
+ "className": "m_7485cace",
"data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedObjectOptional_deepArrayOptional",
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepObjectOptional",
"size": undefined,
- "style": {},
+ "style": {
+ "padding": "0rem",
+ },
},
- "type": "fieldset",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-array",
+ "className": "rjsf-field rjsf-field-object",
"style": undefined,
},
"type": "div",
@@ -7838,45 +8103,35 @@ exports[`single fields optional data controls does not show optional controls wh
"children": [
{
"children": [
- {
- "children": [
- "deepArrayOptional2",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 4,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional_deepArrayOptional2__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
+ "deepObject",
],
"props": {
- "className": "m_90794832",
- "style": {},
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepObject__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
},
- "type": "legend",
+ "type": "h3",
Symbol(cleaned): true,
},
{
"children": null,
"props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rsg{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
},
- "type": "div",
+ "type": "style",
Symbol(cleaned): true,
},
{
@@ -7888,96 +8143,101 @@ exports[`single fields optional data controls does not show optional controls wh
{
"children": [
{
- "children": null,
- "props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
+ "children": [
+ "deepTest",
+ ],
"props": {
- "d": "M12 5l0 14",
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_nestedObjectOptional_deepObject_deepTest",
+ "id": "root_nestedObjectOptional_deepObject_deepTest-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
+ },
},
- "type": "path",
+ "type": "label",
Symbol(cleaned): true,
},
{
- "children": null,
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "aria-describedby": undefined,
+ "aria-invalid": false,
+ "autoFocus": false,
+ "className": "m_8fb7ebe7",
+ "data-disabled": true,
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": true,
+ "id": "root_nestedObjectOptional_deepObject_deepTest",
+ "name": "root_nestedObjectOptional_deepObject_deepTest",
+ "placeholder": "",
+ "required": false,
+ "size": undefined,
+ "style": {},
+ "type": "text",
+ },
+ "type": "input",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "d": "M5 12l14 0",
+ "className": "m_6c018570",
+ "data-disabled": true,
+ "data-size": "sm",
+ "data-variant": "default",
+ "size": undefined,
+ "style": {
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
+ },
},
- "type": "path",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
+ "className": "m_46b77525",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "svg",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "className": "rjsf-field rjsf-field-string",
+ "style": undefined,
},
- "type": "span",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-disabled": true,
- "data-size": "md",
- "data-variant": "subtle",
- "disabled": true,
- "id": "root_nestedObjectOptional_deepArrayOptional2__add",
- "onClick": [Function],
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
"size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
- },
- "title": "Add Item",
- "type": "button",
+ "style": {},
},
- "type": "button",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_4081bf90",
+ "className": "m_2415a157 __m__-rsg",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
+ "marginBottom": "var(--mantine-spacing-sm)",
},
},
"type": "div",
@@ -7985,19 +8245,22 @@ exports[`single fields optional data controls does not show optional controls wh
},
],
"props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
+ "className": "m_7485cace",
"data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedObjectOptional_deepArrayOptional2",
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepObject",
"size": undefined,
- "style": {},
+ "style": {
+ "padding": "0rem",
+ },
},
- "type": "fieldset",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-array",
+ "className": "rjsf-field rjsf-field-object",
"style": undefined,
},
"type": "div",
@@ -8024,14 +8287,14 @@ exports[`single fields optional data controls does not show optional controls wh
"children": [
{
"children": [
- "deepArray",
+ "deepArrayOptional",
],
"props": {
"className": "m_8a5d1357",
"data-order": 4,
"data-size": undefined,
"data-variant": undefined,
- "id": "root_nestedObjectOptional_deepArray__title",
+ "id": "root_nestedObjectOptional_deepArrayOptional__title",
"size": undefined,
"style": {
"--title-fw": "var(--mantine-h4-font-weight)",
@@ -8115,361 +8378,89 @@ exports[`single fields optional data controls does not show optional controls wh
"xmlns": "http://www.w3.org/2000/svg",
},
"type": "svg",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-disabled": true,
- "data-size": "md",
- "data-variant": "subtle",
- "disabled": true,
- "id": "root_nestedObjectOptional_deepArray__add",
- "onClick": [Function],
- "size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
- },
- "title": "Add Item",
- "type": "button",
- },
- "type": "button",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_4081bf90",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
- "data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedObjectOptional_deepArray",
- "size": undefined,
- "style": {},
- },
- "type": "fieldset",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-array",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_2415a157 __m__-rrq",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_7485cace",
- "data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root_nestedObjectOptional",
- "size": undefined,
- "style": {
- "padding": "0rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "nestedArrayOptional",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 4,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedArrayOptional__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_90794832",
- "style": {},
- },
- "type": "legend",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M12 5l0 14",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-disabled": true,
+ "data-size": "md",
+ "data-variant": "subtle",
+ "disabled": true,
+ "id": "root_nestedObjectOptional_deepArrayOptional__add",
+ "onClick": [Function],
+ "size": undefined,
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
+ },
+ "title": "Add Item",
+ "type": "button",
+ },
+ "type": "button",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "d": "M5 12l14 0",
+ "className": "m_4081bf90",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
+ },
},
- "type": "path",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
+ "data-size": undefined,
+ "data-variant": "default",
+ "id": "root_nestedObjectOptional_deepArrayOptional",
+ "size": undefined,
+ "style": {},
},
- "type": "svg",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
},
- "type": "span",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-disabled": true,
- "data-size": "md",
- "data-variant": "subtle",
- "disabled": true,
- "id": "root_nestedArrayOptional__add",
- "onClick": [Function],
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
"size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
- },
- "title": "Add Item",
- "type": "button",
+ "style": {},
},
- "type": "button",
+ "type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "m_4081bf90",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
- "data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedArrayOptional",
- "size": undefined,
- "style": {},
- },
- "type": "fieldset",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-array",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "nestedObject",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObject__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rtn{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
{
@@ -8478,57 +8469,146 @@ exports[`single fields optional data controls does not show optional controls wh
"children": [
{
"children": [
- "test",
+ {
+ "children": [
+ "deepArrayOptional2",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepArrayOptional2__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h4",
+ Symbol(cleaned): true,
+ },
],
"props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
"data-variant": undefined,
- "htmlFor": "root_nestedObject_test",
- "id": "root_nestedObject_test-label",
- "onMouseDown": [Function],
"size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
+ "style": {},
},
- "type": "label",
+ "type": "div",
Symbol(cleaned): true,
},
{
"children": [
{
- "children": null,
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
"data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
+ "data-size": "md",
+ "data-variant": "subtle",
"disabled": true,
- "id": "root_nestedObject_test",
- "name": "root_nestedObject_test",
- "placeholder": "",
- "required": false,
+ "id": "root_nestedObjectOptional_deepArrayOptional2__add",
+ "onClick": [Function],
"size": undefined,
- "style": {},
- "type": "text",
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
+ },
+ "title": "Add Item",
+ "type": "button",
},
- "type": "input",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
+ "className": "m_4081bf90",
+ "data-size": undefined,
+ "data-variant": undefined,
"size": undefined,
"style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
},
},
"type": "div",
@@ -8536,18 +8616,19 @@ exports[`single fields optional data controls does not show optional controls wh
},
],
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
- "data-variant": undefined,
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
+ "data-size": undefined,
+ "data-variant": "default",
+ "id": "root_nestedObjectOptional_deepArrayOptional2",
"size": undefined,
"style": {},
},
- "type": "div",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-string",
+ "className": "rjsf-field rjsf-field-array",
"style": undefined,
},
"type": "div",
@@ -8564,104 +8645,6 @@ exports[`single fields optional data controls does not show optional controls wh
"type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "m_2415a157 __m__-rtn",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_7485cace",
- "data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root_nestedObject",
- "size": undefined,
- "style": {
- "padding": "0rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "nestedArray",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 4,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedArray__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_90794832",
- "style": {},
- },
- "type": "legend",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
{
@@ -8669,96 +8652,191 @@ exports[`single fields optional data controls does not show optional controls wh
{
"children": [
{
- "children": null,
+ "children": [
+ {
+ "children": [
+ "deepArray",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepArray__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h4",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
+ "className": "m_90794832",
+ "style": {},
},
- "type": "path",
+ "type": "legend",
Symbol(cleaned): true,
},
{
"children": null,
"props": {
- "d": "M12 5l0 14",
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "path",
+ "type": "div",
Symbol(cleaned): true,
},
{
- "children": null,
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-disabled": true,
+ "data-size": "md",
+ "data-variant": "subtle",
+ "disabled": true,
+ "id": "root_nestedObjectOptional_deepArray__add",
+ "onClick": [Function],
+ "size": undefined,
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
+ },
+ "title": "Add Item",
+ "type": "button",
+ },
+ "type": "button",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "d": "M5 12l14 0",
+ "className": "m_4081bf90",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
+ },
},
- "type": "path",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
+ "data-size": undefined,
+ "data-variant": "default",
+ "id": "root_nestedObjectOptional_deepArray",
+ "size": undefined,
+ "style": {},
},
- "type": "svg",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
},
- "type": "span",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-disabled": true,
- "data-size": "md",
- "data-variant": "subtle",
- "disabled": true,
- "id": "root_nestedArray__add",
- "onClick": [Function],
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
"size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
- },
- "title": "Add Item",
- "type": "button",
+ "style": {},
},
- "type": "button",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_4081bf90",
+ "className": "m_2415a157 __m__-rrq",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
+ "marginBottom": "var(--mantine-spacing-sm)",
},
},
"type": "div",
@@ -8766,19 +8844,22 @@ exports[`single fields optional data controls does not show optional controls wh
},
],
"props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
+ "className": "m_7485cace",
"data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedArray",
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional",
"size": undefined,
- "style": {},
+ "style": {
+ "padding": "0rem",
+ },
},
- "type": "fieldset",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-array",
+ "className": "rjsf-field rjsf-field-object",
"style": undefined,
},
"type": "div",
@@ -8805,112 +8886,38 @@ exports[`single fields optional data controls does not show optional controls wh
"children": [
{
"children": [
- "optionalObjectWithOneofs",
+ "nestedArrayOptional",
],
"props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
"data-variant": undefined,
- "htmlFor": "root_optionalObjectWithOneofs__oneof_select",
- "id": "root_optionalObjectWithOneofs__oneof_select-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-haspopup": "listbox",
- "aria-invalid": false,
- "autoComplete": "off",
- "className": "m_8fb7ebe7",
- "data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "id": "root_optionalObjectWithOneofs__oneof_select",
- "onBlur": [Function],
- "onChange": [Function],
- "onClick": [Function],
- "onFocus": [Function],
- "onKeyDown": [Function],
- "readOnly": false,
- "required": undefined,
- "size": undefined,
- "style": {},
- "value": "Option 1",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "clipRule": "evenodd",
- "d": "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",
- "fill": "currentColor",
- "fillRule": "evenodd",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_2943220b",
- "data-combobox-chevron": true,
- "data-size": undefined,
- "data-variant": undefined,
- "fill": "none",
- "size": undefined,
- "style": {},
- "viewBox": "0 0 15 15",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- "type": "svg",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_82577fc2",
- "data-position": "right",
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
- "data-with-right-section": true,
+ "id": "root_nestedArrayOptional__title",
"size": undefined,
"style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- "--input-right-section-pointer-events": "none",
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
},
},
- "type": "div",
+ "type": "h4",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {},
@@ -8927,1149 +8934,752 @@ exports[`single fields optional data controls does not show optional controls wh
{
"children": [
{
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "clipRule": "evenodd",
- "d": "M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",
- "fill": "currentColor",
- "fillRule": "evenodd",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "aria-hidden": true,
- "className": "m_8ee53fc2",
- "fill": "none",
- "style": undefined,
- "viewBox": "0 0 10 7",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- "type": "svg",
- Symbol(cleaned): true,
- },
- {
- "children": [
- "Option 1",
- ],
- "props": {},
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "aria-selected": true,
- "className": "m_92253aa5 m_390b5f4",
- "data-checked": true,
- "data-combobox-active": true,
- "data-combobox-option": true,
- "data-size": undefined,
- "data-variant": undefined,
- "id": ":ruo:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
- "size": undefined,
- "style": {},
- "value": "0",
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- "Option 2",
- ],
- "props": {},
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "aria-selected": false,
- "className": "m_92253aa5 m_390b5f4",
- "data-combobox-option": true,
- "data-size": undefined,
- "data-variant": undefined,
- "id": ":ruq:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
- "size": undefined,
- "style": {},
- "value": "1",
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- "Option 3",
- ],
- "props": {},
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "aria-selected": false,
- "className": "m_92253aa5 m_390b5f4",
- "data-combobox-option": true,
- "data-size": undefined,
- "data-variant": undefined,
- "id": ":rus:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
- "size": undefined,
- "style": {},
- "value": "2",
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_b1336c6",
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_c0783ff9",
- "data-horizontal-hidden": undefined,
- "data-offset-scrollbars": "y",
- "data-scrollbars": "xy",
- "data-size": undefined,
- "data-variant": undefined,
- "data-vertical-hidden": undefined,
- "onScroll": [Function],
- "size": undefined,
- "style": {
- "overflowX": "scroll",
- "overflowY": "scroll",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "m_c44ba933",
- "data-hidden": undefined,
- "data-mantine-scrollbar": true,
- "data-orientation": "horizontal",
- "data-state": "hidden",
- "onLostPointerCapture": [Function],
- "onMouseEnter": [Function],
- "onMouseLeave": [Function],
- "onPointerDown": [Function],
- "onPointerEnter": [Function],
- "onPointerLeave": [Function],
- "onPointerMove": [Function],
- "onPointerUp": [Function],
- "style": {
- "--sa-thumb-width": "18px",
- "position": "absolute",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "m_c44ba933",
- "data-hidden": undefined,
- "data-mantine-scrollbar": true,
- "data-orientation": "vertical",
- "data-state": "hidden",
- "onLostPointerCapture": [Function],
- "onMouseEnter": [Function],
- "onMouseLeave": [Function],
- "onPointerDown": [Function],
- "onPointerEnter": [Function],
- "onPointerLeave": [Function],
- "onPointerMove": [Function],
- "onPointerUp": [Function],
- "style": {
- "--sa-thumb-height": "18px",
- "position": "absolute",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
+ "children": null,
"props": {
- "className": "m_d57069b5",
- "data-autosize": "true",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--sa-corner-height": "0px",
- "--sa-corner-width": "0px",
- "--scrollarea-scrollbar-size": "var(--combobox-padding)",
- },
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
},
- "type": "div",
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "display": "flex",
- "flex": 1,
- "flexDirection": "column",
- "minHeight": 0,
- "minWidth": 0,
- "overflow": "hidden",
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
},
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "div",
+ "type": "svg",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
+ "className": "m_8d3afb97",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
- "style": {
- "display": "flex",
- "maxHeight": "calc(13.75rem * var(--mantine-scale))",
- "overflow": "hidden",
- },
+ "style": {},
},
- "type": "div",
+ "type": "span",
Symbol(cleaned): true,
},
],
"props": {
- "aria-labelledby": "root_optionalObjectWithOneofs__oneof_select-label",
- "className": "m_b2821a6e",
- "data-size": undefined,
- "data-variant": undefined,
- "id": "",
- "onMouseDown": [Function],
- "role": "listbox",
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-disabled": true,
+ "data-size": "md",
+ "data-variant": "subtle",
+ "disabled": true,
+ "id": "root_nestedArrayOptional__add",
+ "onClick": [Function],
"size": undefined,
"style": {
- "--combobox-option-fz": "var(--mantine-font-size-sm)",
- "--combobox-option-padding": "var(--combobox-option-padding-sm)",
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
},
+ "title": "Add Item",
+ "type": "button",
},
- "type": "div",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_38a85659 m_88b62a41",
- "data-composed": true,
- "data-fixed": undefined,
- "data-hidden": true,
- "data-position": "bottom",
+ "className": "m_4081bf90",
"data-size": undefined,
"data-variant": undefined,
- "onKeyDownCapture": [Function],
- "role": "presentation",
"size": undefined,
"style": {
- "--combobox-option-fz": "var(--mantine-font-size-sm)",
- "--combobox-option-padding": "var(--combobox-option-padding-sm)",
- "display": "none",
- "left": 0,
- "top": 0,
- "width": undefined,
- "zIndex": 300,
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
},
},
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
+ "data-size": undefined,
+ "data-variant": "default",
+ "id": "root_nestedArrayOptional",
+ "size": undefined,
+ "style": {},
+ },
+ "type": "fieldset",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "nestedObject",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObject__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
{
"children": null,
"props": {
- "disabled": true,
- "form": undefined,
- "name": "root_optionalObjectWithOneofs__oneof_select",
- "type": "hidden",
- "value": "0",
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rtn{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
},
- "type": "input",
+ "type": "style",
Symbol(cleaned): true,
},
{
"children": [
{
"children": [
- {
- "children": [
- "optionalObjectWithOneofs",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_optionalObjectWithOneofs__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rv0{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
{
"children": [
{
"children": [
+ {
+ "children": [
+ "test",
+ ],
+ "props": {
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_nestedObject_test",
+ "id": "root_nestedObject_test-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
+ },
+ },
+ "type": "label",
+ Symbol(cleaned): true,
+ },
{
"children": [
{
- "children": [
- {
- "children": [
- "name",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_optionalObjectWithOneofs_name",
- "id": "root_optionalObjectWithOneofs_name-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "id": "root_optionalObjectWithOneofs_name",
- "name": "root_optionalObjectWithOneofs_name",
- "placeholder": "",
- "required": false,
- "size": undefined,
- "style": {},
- "type": "text",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
+ "children": null,
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
- "data-variant": undefined,
+ "aria-describedby": undefined,
+ "aria-invalid": false,
+ "autoFocus": false,
+ "className": "m_8fb7ebe7",
+ "data-disabled": true,
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": true,
+ "id": "root_nestedObject_test",
+ "name": "root_nestedObject_test",
+ "placeholder": "",
+ "required": false,
"size": undefined,
"style": {},
+ "type": "text",
},
- "type": "div",
+ "type": "input",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
+ "className": "m_6c018570",
+ "data-disabled": true,
+ "data-size": "sm",
+ "data-variant": "default",
+ "size": undefined,
+ "style": {
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
+ },
},
"type": "div",
Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_2415a157 __m__-rv0",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_7485cace",
- "data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root_optionalObjectWithOneofs",
- "size": undefined,
- "style": {
- "padding": "0rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6d731127",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--stack-align": "stretch",
- "--stack-gap": "var(--mantine-spacing-md)",
- "--stack-justify": "flex-start",
- "marginBottom": "1rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-undefined",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_2415a157 __m__-rrl",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_7485cace",
- "data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root",
- "size": undefined,
- "style": {
- "padding": "0rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "Submit",
- ],
- "props": {
- "className": "m_811560b9",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_80f1301b",
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_77c9d27d m_87cf2631",
- "data-size": undefined,
- "data-variant": "filled",
- "size": undefined,
- "style": {
- "--button-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--button-bg": "var(--mantine-color-blue-filled)",
- "--button-color": "var(--mantine-color-white)",
- "--button-hover": "var(--mantine-color-blue-filled-hover)",
- },
- "type": "submit",
- },
- "type": "button",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "acceptCharset": undefined,
- "action": undefined,
- "as": undefined,
- "autoComplete": undefined,
- "className": "rjsf",
- "encType": undefined,
- "id": undefined,
- "method": undefined,
- "name": undefined,
- "noValidate": false,
- "onSubmit": [Function],
- "target": undefined,
- },
- "type": "form",
- Symbol(cleaned): true,
- },
-]
-`;
-
-exports[`single fields optional data controls shows "add" and "remove" optional controls when turned on in uiSchema and formData 1`] = `
-[
- ,
- ,
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "test",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rnb{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ ],
+ "props": {
+ "className": "m_46b77525",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-string",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_2415a157 __m__-rtn",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root_nestedObject",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
},
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
{
"children": [
{
"children": [
+ {
+ "children": [
+ {
+ "children": [
+ "nestedArray",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedArray__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h4",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
{
"children": null,
"props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rnf{--grid-gutter:var(--mantine-spacing-md);}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "style",
+ "type": "div",
Symbol(cleaned): true,
},
{
"children": [
{
"children": [
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rnh{--col-flex-grow:1;--col-flex-basis:0rem;--col-max-width:100%;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
{
"children": [
{
"children": [
- "nestedObjectOptional",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
},
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_96bdd299 __m__-rnh",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rnk{--col-flex-grow:auto;--col-flex-basis:auto;--col-width:auto;--col-max-width:unset;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
{
- "children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M18 6l-12 12",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M6 6l12 12",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-x",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- "type": "svg",
- Symbol(cleaned): true,
- },
- ],
+ "children": null,
"props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "d": "M12 5l0 14",
},
- "type": "span",
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-remove-optional-data m_8d3f4000 m_87cf2631",
- "data-size": "sm",
- "data-variant": "subtle",
- "id": "root_nestedObjectOptional__optionalRemove",
- "onClick": [Function],
- "size": undefined,
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
"style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-red-light-color)",
- "--ai-hover": "var(--mantine-color-red-light-hover)",
- "--ai-size": "var(--ai-size-sm)",
+ "height": undefined,
+ "width": undefined,
},
- "title": "Remove data for optional field",
- "type": "button",
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "button",
+ "type": "svg",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_96bdd299 __m__-rnk",
+ "className": "m_8d3afb97",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {},
},
- "type": "div",
+ "type": "span",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_dee7bd2f",
- "style": {},
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-disabled": true,
+ "data-size": "md",
+ "data-variant": "subtle",
+ "disabled": true,
+ "id": "root_nestedArray__add",
+ "onClick": [Function],
+ "size": undefined,
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
+ },
+ "title": "Add Item",
+ "type": "button",
},
- "type": "div",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_410352e9 __m__-rnf",
+ "className": "m_4081bf90",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rno{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ "style": {
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
},
- "data-mantine-styles": "inline",
- "nonce": undefined,
},
- "type": "style",
+ "type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
+ "data-size": undefined,
+ "data-variant": "default",
+ "id": "root_nestedArray",
+ "size": undefined,
+ "style": {},
+ },
+ "type": "fieldset",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
{
"children": [
{
"children": [
+ "optionalObjectWithOneofs",
+ ],
+ "props": {
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_optionalObjectWithOneofs__oneof_select",
+ "id": "root_optionalObjectWithOneofs__oneof_select-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
+ },
+ },
+ "type": "label",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "aria-describedby": undefined,
+ "aria-haspopup": "listbox",
+ "aria-invalid": false,
+ "autoComplete": "off",
+ "className": "m_8fb7ebe7",
+ "data-disabled": true,
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": true,
+ "id": "root_optionalObjectWithOneofs__oneof_select",
+ "onBlur": [Function],
+ "onChange": [Function],
+ "onClick": [Function],
+ "onFocus": [Function],
+ "onKeyDown": [Function],
+ "readOnly": false,
+ "required": undefined,
+ "size": undefined,
+ "style": {},
+ "value": "Option 1",
+ },
+ "type": "input",
+ Symbol(cleaned): true,
+ },
{
"children": [
{
"children": [
{
- "children": [
- "test",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_nestedObjectOptional_test",
- "id": "root_nestedObjectOptional_test-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-size": undefined,
- "data-variant": "default",
- "disabled": false,
- "id": "root_nestedObjectOptional_test",
- "name": "root_nestedObjectOptional_test",
- "onBlur": [Function],
- "onChange": [Function],
- "onFocus": [Function],
- "placeholder": "",
- "required": false,
- "size": undefined,
- "style": {},
- "type": "text",
- "value": "foo",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- ],
+ "children": null,
"props": {
- "className": "m_6c018570",
- "data-size": "sm",
- "data-variant": "default",
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
+ "clipRule": "evenodd",
+ "d": "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",
+ "fill": "currentColor",
+ "fillRule": "evenodd",
},
- "type": "div",
+ "type": "path",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
+ "className": "m_2943220b",
+ "data-combobox-chevron": true,
+ "data-size": undefined,
"data-variant": undefined,
+ "fill": "none",
"size": undefined,
"style": {},
+ "viewBox": "0 0 15 15",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "div",
+ "type": "svg",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
+ "className": "m_82577fc2",
+ "data-position": "right",
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
+ "className": "m_6c018570",
+ "data-disabled": true,
+ "data-size": "sm",
+ "data-variant": "default",
+ "data-with-right-section": true,
"size": undefined,
- "style": {},
+ "style": {
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
+ "--input-right-section-pointer-events": "none",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_46b77525",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": [
{
"children": [
{
"children": [
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-ro2{--grid-gutter:var(--mantine-spacing-md);}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
{
"children": [
{
"children": [
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-ro4{--col-flex-grow:1;--col-flex-basis:0rem;--col-max-width:100%;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
{
"children": [
{
"children": [
- "deepObjectOptional",
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "clipRule": "evenodd",
+ "d": "M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",
+ "fill": "currentColor",
+ "fillRule": "evenodd",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "aria-hidden": true,
+ "className": "m_8ee53fc2",
+ "fill": "none",
+ "style": undefined,
+ "viewBox": "0 0 10 7",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ "Option 1",
+ ],
+ "props": {},
+ "type": "span",
+ Symbol(cleaned): true,
+ },
],
"props": {
- "className": "m_8a5d1357",
- "data-order": 3,
+ "aria-selected": true,
+ "className": "m_92253aa5 m_390b5f4",
+ "data-checked": true,
+ "data-combobox-active": true,
+ "data-combobox-option": true,
"data-size": undefined,
"data-variant": undefined,
- "id": "root_nestedObjectOptional_deepObjectOptional__title",
+ "id": ":ruo:",
+ "onClick": [Function],
+ "onMouseDown": [Function],
+ "onMouseOver": [Function],
+ "role": "option",
"size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
+ "style": {},
+ "value": "0",
},
- "type": "h3",
+ "type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "m_96bdd299 __m__-ro4",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-ro7{--col-flex-grow:auto;--col-flex-basis:auto;--col-width:auto;--col-max-width:unset;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
{
"children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M12 5l0 14",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M5 12l14 0",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- "type": "svg",
- Symbol(cleaned): true,
- },
+ "Option 2",
],
- "props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
+ "props": {},
"type": "span",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-add-optional-data m_8d3f4000 m_87cf2631",
- "data-size": "sm",
- "data-variant": "subtle",
- "id": "root_nestedObjectOptional_deepObjectOptional__optionalAdd",
+ "aria-selected": false,
+ "className": "m_92253aa5 m_390b5f4",
+ "data-combobox-option": true,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": ":ruq:",
"onClick": [Function],
+ "onMouseDown": [Function],
+ "onMouseOver": [Function],
+ "role": "option",
"size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-sm)",
+ "style": {},
+ "value": "1",
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ "Option 3",
+ ],
+ "props": {},
+ "type": "span",
+ Symbol(cleaned): true,
},
- "title": "Add data for optional field",
- "type": "button",
+ ],
+ "props": {
+ "aria-selected": false,
+ "className": "m_92253aa5 m_390b5f4",
+ "data-combobox-option": true,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": ":rus:",
+ "onClick": [Function],
+ "onMouseDown": [Function],
+ "onMouseOver": [Function],
+ "role": "option",
+ "size": undefined,
+ "style": {},
+ "value": "2",
},
- "type": "button",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_96bdd299 __m__-ro7",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
+ "className": "m_b1336c6",
"style": {},
},
"type": "div",
@@ -10077,44 +9687,82 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "m_dee7bd2f",
- "style": {},
+ "className": "m_c0783ff9",
+ "data-horizontal-hidden": undefined,
+ "data-offset-scrollbars": "y",
+ "data-scrollbars": "xy",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "data-vertical-hidden": undefined,
+ "onScroll": [Function],
+ "size": undefined,
+ "style": {
+ "overflowX": "scroll",
+ "overflowY": "scroll",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "m_c44ba933",
+ "data-hidden": undefined,
+ "data-mantine-scrollbar": true,
+ "data-orientation": "horizontal",
+ "data-state": "hidden",
+ "onLostPointerCapture": [Function],
+ "onMouseEnter": [Function],
+ "onMouseLeave": [Function],
+ "onPointerDown": [Function],
+ "onPointerEnter": [Function],
+ "onPointerLeave": [Function],
+ "onPointerMove": [Function],
+ "onPointerUp": [Function],
+ "style": {
+ "--sa-thumb-width": "18px",
+ "position": "absolute",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "m_c44ba933",
+ "data-hidden": undefined,
+ "data-mantine-scrollbar": true,
+ "data-orientation": "vertical",
+ "data-state": "hidden",
+ "onLostPointerCapture": [Function],
+ "onMouseEnter": [Function],
+ "onMouseLeave": [Function],
+ "onPointerDown": [Function],
+ "onPointerEnter": [Function],
+ "onPointerLeave": [Function],
+ "onPointerMove": [Function],
+ "onPointerUp": [Function],
+ "style": {
+ "--sa-thumb-height": "18px",
+ "position": "absolute",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_410352e9 __m__-ro2",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rob{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "m_2415a157 __m__-rob",
+ "className": "m_d57069b5",
+ "data-autosize": "true",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {
- "marginBottom": "var(--mantine-spacing-sm)",
+ "--sa-corner-height": "0px",
+ "--sa-corner-width": "0px",
+ "--scrollarea-scrollbar-size": "var(--combobox-padding)",
},
},
"type": "div",
@@ -10122,14 +9770,17 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "m_7485cace",
+ "className": "",
"data-size": undefined,
- "data-strategy": "block",
"data-variant": undefined,
- "id": "root_nestedObjectOptional_deepObjectOptional",
"size": undefined,
"style": {
- "padding": "0rem",
+ "display": "flex",
+ "flex": 1,
+ "flexDirection": "column",
+ "minHeight": 0,
+ "minWidth": 0,
+ "overflow": "hidden",
},
},
"type": "div",
@@ -10137,152 +9788,181 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "display": "flex",
+ "maxHeight": "calc(13.75rem * var(--mantine-scale))",
+ "overflow": "hidden",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
+ "aria-labelledby": "root_optionalObjectWithOneofs__oneof_select-label",
+ "className": "m_b2821a6e",
"data-size": undefined,
"data-variant": undefined,
+ "id": "",
+ "onMouseDown": [Function],
+ "role": "listbox",
"size": undefined,
- "style": {},
+ "style": {
+ "--combobox-option-fz": "var(--mantine-font-size-sm)",
+ "--combobox-option-padding": "var(--combobox-option-padding-sm)",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_38a85659 m_88b62a41",
+ "data-composed": true,
+ "data-fixed": undefined,
+ "data-hidden": true,
+ "data-position": "bottom",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "onKeyDownCapture": [Function],
+ "role": "presentation",
+ "size": undefined,
+ "style": {
+ "--combobox-option-fz": "var(--mantine-font-size-sm)",
+ "--combobox-option-padding": "var(--combobox-option-padding-sm)",
+ "display": "none",
+ "left": 0,
+ "top": 0,
+ "width": undefined,
+ "zIndex": 300,
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "disabled": true,
+ "form": undefined,
+ "name": "root_optionalObjectWithOneofs__oneof_select",
+ "type": "hidden",
+ "value": "0",
+ },
+ "type": "input",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": [
{
"children": [
- {
- "children": [
- {
- "children": [
- "deepObject",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional_deepObject__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rog{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "deepTest",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_nestedObjectOptional_deepObject_deepTest",
- "id": "root_nestedObjectOptional_deepObject_deepTest-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-size": undefined,
- "data-variant": "default",
- "disabled": false,
- "id": "root_nestedObjectOptional_deepObject_deepTest",
- "name": "root_nestedObjectOptional_deepObject_deepTest",
- "onBlur": [Function],
- "onChange": [Function],
- "onFocus": [Function],
- "placeholder": "",
- "required": false,
- "size": undefined,
- "style": {},
- "type": "text",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6c018570",
- "data-size": "sm",
- "data-variant": "default",
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
+ "optionalObjectWithOneofs",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_optionalObjectWithOneofs__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rv0{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "name",
+ ],
+ "props": {
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_optionalObjectWithOneofs_name",
+ "id": "root_optionalObjectWithOneofs_name-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
+ },
+ },
+ "type": "label",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": null,
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
- "data-variant": undefined,
+ "aria-describedby": undefined,
+ "aria-invalid": false,
+ "autoFocus": false,
+ "className": "m_8fb7ebe7",
+ "data-disabled": true,
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": true,
+ "id": "root_optionalObjectWithOneofs_name",
+ "name": "root_optionalObjectWithOneofs_name",
+ "placeholder": "",
+ "required": false,
"size": undefined,
"style": {},
+ "type": "text",
},
- "type": "div",
+ "type": "input",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
+ "className": "m_6c018570",
+ "data-disabled": true,
+ "data-size": "sm",
+ "data-variant": "default",
+ "size": undefined,
+ "style": {
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
- "data-size": undefined,
+ "className": "m_46b77525",
+ "data-size": "sm",
"data-variant": undefined,
"size": undefined,
"style": {},
@@ -10292,100 +9972,225 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "m_2415a157 __m__-rog",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
+ "className": "rjsf-field rjsf-field-string",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_7485cace",
+ "className": "",
"data-size": undefined,
- "data-strategy": "block",
"data-variant": undefined,
- "id": "root_nestedObjectOptional_deepObject",
"size": undefined,
- "style": {
- "padding": "0rem",
- },
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
+ "className": "m_2415a157 __m__-rv0",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
+ "className": "m_7485cace",
"data-size": undefined,
+ "data-strategy": "block",
"data-variant": undefined,
+ "id": "root_optionalObjectWithOneofs",
"size": undefined,
- "style": {},
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_6d731127",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "--stack-align": "stretch",
+ "--stack-gap": "var(--mantine-spacing-md)",
+ "--stack-justify": "flex-start",
+ "marginBottom": "1rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-undefined",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "optionalArrayWithAnyofs",
+ ],
+ "props": {
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_optionalArrayWithAnyofs__anyof_select",
+ "id": "root_optionalArrayWithAnyofs__anyof_select-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
+ },
+ },
+ "type": "label",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "aria-describedby": undefined,
+ "aria-haspopup": "listbox",
+ "aria-invalid": false,
+ "autoComplete": "off",
+ "className": "m_8fb7ebe7",
+ "data-disabled": true,
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": true,
+ "id": "root_optionalArrayWithAnyofs__anyof_select",
+ "onBlur": [Function],
+ "onChange": [Function],
+ "onClick": [Function],
+ "onFocus": [Function],
+ "onKeyDown": [Function],
+ "readOnly": false,
+ "required": undefined,
+ "size": undefined,
+ "style": {},
+ "value": "Option 1",
+ },
+ "type": "input",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "clipRule": "evenodd",
+ "d": "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",
+ "fill": "currentColor",
+ "fillRule": "evenodd",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_2943220b",
+ "data-combobox-chevron": true,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "fill": "none",
+ "size": undefined,
+ "style": {},
+ "viewBox": "0 0 15 15",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_82577fc2",
+ "data-position": "right",
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_6c018570",
+ "data-disabled": true,
+ "data-size": "sm",
+ "data-variant": "default",
+ "data-with-right-section": true,
+ "size": undefined,
+ "style": {
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
+ "--input-right-section-pointer-events": "none",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_46b77525",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": [
{
"children": [
{
"children": [
- {
- "children": [
- {
- "children": [
- "deepArrayOptional",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 4,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional_deepArrayOptional__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_90794832",
- "style": {},
- },
- "type": "legend",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
{
"children": [
{
@@ -10395,94 +10200,203 @@ exports[`single fields optional data controls shows "add" and "remove" optional
{
"children": [
{
- "children": null,
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "clipRule": "evenodd",
+ "d": "M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",
+ "fill": "currentColor",
+ "fillRule": "evenodd",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "d": "M0 0h24v24H0z",
+ "aria-hidden": true,
+ "className": "m_8ee53fc2",
"fill": "none",
- "stroke": "none",
+ "style": undefined,
+ "viewBox": "0 0 10 7",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "path",
+ "type": "svg",
Symbol(cleaned): true,
},
{
- "children": null,
- "props": {
- "d": "M12 5l0 14",
- },
- "type": "path",
+ "children": [
+ "Option 1",
+ ],
+ "props": {},
+ "type": "span",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "aria-selected": true,
+ "className": "m_92253aa5 m_390b5f4",
+ "data-checked": true,
+ "data-combobox-active": true,
+ "data-combobox-option": true,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": ":rvq:",
+ "onClick": [Function],
+ "onMouseDown": [Function],
+ "onMouseOver": [Function],
+ "role": "option",
+ "size": undefined,
+ "style": {},
+ "value": "0",
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
- "children": null,
- "props": {
- "d": "M5 12l14 0",
- },
- "type": "path",
+ "children": [
+ "Option 2",
+ ],
+ "props": {},
+ "type": "span",
Symbol(cleaned): true,
},
],
"props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
+ "aria-selected": false,
+ "className": "m_92253aa5 m_390b5f4",
+ "data-combobox-option": true,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": ":rvs:",
+ "onClick": [Function],
+ "onMouseDown": [Function],
+ "onMouseOver": [Function],
+ "role": "option",
+ "size": undefined,
+ "style": {},
+ "value": "1",
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ "Option 3",
+ ],
+ "props": {},
+ "type": "span",
+ Symbol(cleaned): true,
},
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
+ ],
+ "props": {
+ "aria-selected": false,
+ "className": "m_92253aa5 m_390b5f4",
+ "data-combobox-option": true,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": ":rvu:",
+ "onClick": [Function],
+ "onMouseDown": [Function],
+ "onMouseOver": [Function],
+ "role": "option",
+ "size": undefined,
+ "style": {},
+ "value": "2",
},
- "type": "svg",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
+ "className": "m_b1336c6",
"style": {},
},
- "type": "span",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-size": "md",
- "data-variant": "subtle",
- "id": "root_nestedObjectOptional_deepArrayOptional__add",
- "onClick": [Function],
+ "className": "m_c0783ff9",
+ "data-horizontal-hidden": undefined,
+ "data-offset-scrollbars": "y",
+ "data-scrollbars": "xy",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "data-vertical-hidden": undefined,
+ "onScroll": [Function],
"size": undefined,
"style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
+ "overflowX": "scroll",
+ "overflowY": "scroll",
},
- "title": "Add Item",
- "type": "button",
},
- "type": "button",
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "m_c44ba933",
+ "data-hidden": undefined,
+ "data-mantine-scrollbar": true,
+ "data-orientation": "horizontal",
+ "data-state": "hidden",
+ "onLostPointerCapture": [Function],
+ "onMouseEnter": [Function],
+ "onMouseLeave": [Function],
+ "onPointerDown": [Function],
+ "onPointerEnter": [Function],
+ "onPointerLeave": [Function],
+ "onPointerMove": [Function],
+ "onPointerUp": [Function],
+ "style": {
+ "--sa-thumb-width": "18px",
+ "position": "absolute",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "m_c44ba933",
+ "data-hidden": undefined,
+ "data-mantine-scrollbar": true,
+ "data-orientation": "vertical",
+ "data-state": "hidden",
+ "onLostPointerCapture": [Function],
+ "onMouseEnter": [Function],
+ "onMouseLeave": [Function],
+ "onPointerDown": [Function],
+ "onPointerEnter": [Function],
+ "onPointerLeave": [Function],
+ "onPointerMove": [Function],
+ "onPointerUp": [Function],
+ "style": {
+ "--sa-thumb-height": "18px",
+ "position": "absolute",
+ },
+ },
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_4081bf90",
+ "className": "m_d57069b5",
+ "data-autosize": "true",
"data-size": undefined,
"data-variant": undefined,
- "size": undefined,
- "style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
+ "size": undefined,
+ "style": {
+ "--sa-corner-height": "0px",
+ "--sa-corner-width": "0px",
+ "--scrollarea-scrollbar-size": "var(--combobox-padding)",
},
},
"type": "div",
@@ -10490,320 +10404,274 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
+ "className": "",
"data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedObjectOptional_deepArrayOptional",
+ "data-variant": undefined,
"size": undefined,
- "style": {},
+ "style": {
+ "display": "flex",
+ "flex": 1,
+ "flexDirection": "column",
+ "minHeight": 0,
+ "minWidth": 0,
+ "overflow": "hidden",
+ },
},
- "type": "fieldset",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-array",
- "style": undefined,
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "display": "flex",
+ "maxHeight": "calc(13.75rem * var(--mantine-scale))",
+ "overflow": "hidden",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
+ "aria-labelledby": "root_optionalArrayWithAnyofs__anyof_select-label",
+ "className": "m_b2821a6e",
"data-size": undefined,
"data-variant": undefined,
+ "id": "",
+ "onMouseDown": [Function],
+ "role": "listbox",
"size": undefined,
- "style": {},
+ "style": {
+ "--combobox-option-fz": "var(--mantine-font-size-sm)",
+ "--combobox-option-padding": "var(--combobox-option-padding-sm)",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_38a85659 m_88b62a41",
+ "data-composed": true,
+ "data-fixed": undefined,
+ "data-hidden": true,
+ "data-position": "bottom",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "onKeyDownCapture": [Function],
+ "role": "presentation",
+ "size": undefined,
+ "style": {
+ "--combobox-option-fz": "var(--mantine-font-size-sm)",
+ "--combobox-option-padding": "var(--combobox-option-padding-sm)",
+ "display": "none",
+ "left": 0,
+ "top": 0,
+ "width": undefined,
+ "zIndex": 300,
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "disabled": true,
+ "form": undefined,
+ "name": "root_optionalArrayWithAnyofs__anyof_select",
+ "type": "hidden",
+ "value": "0",
+ },
+ "type": "input",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": [
{
"children": [
{
"children": [
- {
- "children": [
- {
- "children": [
- "deepArrayOptional2",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 4,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional_deepArrayOptional2__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_90794832",
- "style": {},
- },
- "type": "legend",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
+ "optionalArrayWithAnyofs",
],
"props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
+ "className": "m_8a5d1357",
+ "data-order": 4,
"data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedObjectOptional_deepArrayOptional2",
+ "data-variant": undefined,
+ "id": "root_optionalArrayWithAnyofs__title",
"size": undefined,
- "style": {},
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
},
- "type": "fieldset",
+ "type": "h4",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-array",
- "style": undefined,
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
{
"children": [
{
- "children": [
- {
- "children": [
- "deepArray",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 4,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional_deepArray__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_90794832",
- "style": {},
- },
- "type": "legend",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M12 5l0 14",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M5 12l14 0",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- "type": "svg",
- Symbol(cleaned): true,
- },
- ],
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
"props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
},
- "type": "span",
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-size": "md",
- "data-variant": "subtle",
- "id": "root_nestedObjectOptional_deepArray__add",
- "onClick": [Function],
- "size": undefined,
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
"style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
+ "height": undefined,
+ "width": undefined,
},
- "title": "Add Item",
- "type": "button",
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "button",
+ "type": "svg",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_4081bf90",
+ "className": "m_8d3afb97",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
- "style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
- },
+ "style": {},
},
- "type": "div",
+ "type": "span",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
- "data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedObjectOptional_deepArray",
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-disabled": true,
+ "data-size": "md",
+ "data-variant": "subtle",
+ "disabled": true,
+ "id": "root_optionalArrayWithAnyofs__add",
+ "onClick": [Function],
"size": undefined,
- "style": {},
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
+ },
+ "title": "Add Item",
+ "type": "button",
},
- "type": "fieldset",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-array",
- "style": undefined,
+ "className": "m_4081bf90",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
"data-size": undefined,
- "data-variant": undefined,
+ "data-variant": "default",
+ "id": "root_optionalArrayWithAnyofs",
"size": undefined,
"style": {},
},
- "type": "div",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_2415a157 __m__-rno",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_7485cace",
+ "className": "m_6d731127",
"data-size": undefined,
- "data-strategy": "block",
"data-variant": undefined,
- "id": "root_nestedObjectOptional",
"size": undefined,
"style": {
- "padding": "0rem",
+ "--stack-align": "stretch",
+ "--stack-gap": "var(--mantine-spacing-md)",
+ "--stack-justify": "flex-start",
+ "marginBottom": "1rem",
},
},
"type": "div",
@@ -10811,7 +10679,7 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "rjsf-field rjsf-field-object",
+ "className": "rjsf-field rjsf-field-undefined",
"style": undefined,
},
"type": "div",
@@ -10828,6 +10696,169 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_2415a157 __m__-rrl",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "Submit",
+ ],
+ "props": {
+ "className": "m_811560b9",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_80f1301b",
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_77c9d27d m_87cf2631",
+ "data-size": undefined,
+ "data-variant": "filled",
+ "size": undefined,
+ "style": {
+ "--button-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--button-bg": "var(--mantine-color-blue-filled)",
+ "--button-color": "var(--mantine-color-white)",
+ "--button-hover": "var(--mantine-color-blue-filled-hover)",
+ },
+ "type": "submit",
+ },
+ "type": "button",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "acceptCharset": undefined,
+ "action": undefined,
+ "as": undefined,
+ "autoComplete": undefined,
+ "className": "rjsf",
+ "encType": undefined,
+ "id": undefined,
+ "method": undefined,
+ "name": undefined,
+ "noValidate": false,
+ "onSubmit": [Function],
+ "target": undefined,
+ },
+ "type": "form",
+ Symbol(cleaned): true,
+ },
+]
+`;
+
+exports[`single fields optional data controls shows "add" and "remove" optional controls when turned on in uiSchema and formData 1`] = `
+[
+ ,
+ ,
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "test",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rnq{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": [
{
@@ -10835,34 +10866,15 @@ exports[`single fields optional data controls shows "add" and "remove" optional
{
"children": [
{
- "children": [
- {
- "children": [
- "nestedArrayOptional",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 4,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedArrayOptional__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
- ],
+ "children": null,
"props": {
- "className": "m_90794832",
- "style": {},
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rnu{--grid-gutter:var(--mantine-spacing-md);}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
},
- "type": "legend",
+ "type": "style",
Symbol(cleaned): true,
},
{
@@ -10870,425 +10882,184 @@ exports[`single fields optional data controls shows "add" and "remove" optional
{
"children": [
{
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "nestedArrayOptional-0",
- {
- "children": [
- " *",
- ],
- "props": {
- "aria-hidden": true,
- "className": "m_78a94662",
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-required": true,
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_nestedArrayOptional_0",
- "id": "root_nestedArrayOptional_0-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-size": undefined,
- "data-variant": "default",
- "disabled": false,
- "id": "root_nestedArrayOptional_0",
- "name": "root_nestedArrayOptional_0",
- "onBlur": [Function],
- "onChange": [Function],
- "onFocus": [Function],
- "placeholder": "",
- "required": true,
- "size": undefined,
- "style": {},
- "type": "text",
- "value": "bar",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6c018570",
- "data-size": "sm",
- "data-variant": "default",
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_46b77525",
- "data-size": "sm",
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "width": "100%",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-ro0{--col-flex-grow:1;--col-flex-basis:0rem;--col-max-width:100%;}",
},
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M18 6l-12 12",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M6 6l12 12",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-x",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- "type": "svg",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-array-item-remove m_8d3f4000 m_87cf2631",
- "data-size": "sm",
- "data-variant": "subtle",
- "id": "root_nestedArrayOptional_0__remove",
- "onClick": [Function],
- "size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-red-light-color)",
- "--ai-hover": "var(--mantine-color-red-light-hover)",
- "--ai-size": "var(--ai-size-sm)",
- },
- "title": "Remove",
- "type": "button",
- },
- "type": "button",
- Symbol(cleaned): true,
- },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ "nestedObjectOptional",
],
"props": {
- "className": "m_4081bf90",
+ "className": "m_8a5d1357",
+ "data-order": 3,
"data-size": undefined,
"data-variant": undefined,
+ "id": "root_nestedObjectOptional__title",
"size": undefined,
"style": {
- "--group-align": "center",
- "--group-gap": "calc(0.125rem * var(--mantine-scale))",
- "--group-justify": "flex-start",
- "--group-wrap": "nowrap",
- "marginBottom": "calc(0.4375rem * var(--mantine-scale))",
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
},
},
- "type": "div",
+ "type": "h3",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_8bffd616 __m__-rpf",
+ "className": "m_96bdd299 __m__-ro0",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
- "style": {
- "alignItems": "end",
- "gap": "var(--mantine-spacing-xs)",
- "justifyContent": "center",
- },
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "rjsf-array-item",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-xs)",
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-ro3{--col-flex-grow:auto;--col-flex-basis:auto;--col-width:auto;--col-max-width:unset;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
{
"children": [
{
"children": [
{
- "children": null,
- "props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M12 5l0 14",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M18 6l-12 12",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M6 6l12 12",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-x",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "d": "M5 12l14 0",
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "path",
+ "type": "span",
Symbol(cleaned): true,
},
],
"props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
+ "className": "rjsf-remove-optional-data m_8d3f4000 m_87cf2631",
+ "data-size": "sm",
+ "data-variant": "subtle",
+ "id": "root_nestedObjectOptional__optionalRemove",
+ "onClick": [Function],
+ "size": undefined,
"style": {
- "height": undefined,
- "width": undefined,
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-red-light-color)",
+ "--ai-hover": "var(--mantine-color-red-light-hover)",
+ "--ai-size": "var(--ai-size-sm)",
},
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
+ "title": "Remove data for optional field",
+ "type": "button",
},
- "type": "svg",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_8d3afb97",
+ "className": "m_96bdd299 __m__-ro3",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {},
},
- "type": "span",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-size": "md",
- "data-variant": "subtle",
- "id": "root_nestedArrayOptional__add",
- "onClick": [Function],
- "size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
- },
- "title": "Add Item",
- "type": "button",
+ "className": "m_dee7bd2f",
+ "style": {},
},
- "type": "button",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_4081bf90",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
- "data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedArrayOptional",
- "size": undefined,
- "style": {},
- },
- "type": "fieldset",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-array",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "nestedObject",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
+ "className": "m_410352e9 __m__-rnu",
"data-size": undefined,
"data-variant": undefined,
- "id": "root_nestedObject__title",
"size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
+ "style": {},
},
- "type": "h3",
+ "type": "div",
Symbol(cleaned): true,
},
{
"children": null,
"props": {
"dangerouslySetInnerHTML": {
- "__html": ".__m__-rq0{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ "__html": ".__m__-ro7{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
},
"data-mantine-styles": "inline",
"nonce": undefined,
@@ -11312,8 +11083,8 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"className": "m_8fdc1311",
"data-size": "sm",
"data-variant": undefined,
- "htmlFor": "root_nestedObject_test",
- "id": "root_nestedObject_test-label",
+ "htmlFor": "root_nestedObjectOptional_test",
+ "id": "root_nestedObjectOptional_test-label",
"onMouseDown": [Function],
"size": undefined,
"style": {
@@ -11335,8 +11106,8 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"data-size": undefined,
"data-variant": "default",
"disabled": false,
- "id": "root_nestedObject_test",
- "name": "root_nestedObject_test",
+ "id": "root_nestedObjectOptional_test",
+ "name": "root_nestedObjectOptional_test",
"onBlur": [Function],
"onChange": [Function],
"onFocus": [Function],
@@ -11345,6 +11116,7 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"size": undefined,
"style": {},
"type": "text",
+ "value": "foo",
},
"type": "input",
Symbol(cleaned): true,
@@ -11393,104 +11165,6 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "m_2415a157 __m__-rq0",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_7485cace",
- "data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root_nestedObject",
- "size": undefined,
- "style": {
- "padding": "0rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "nestedArray",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 4,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedArray__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_90794832",
- "style": {},
- },
- "type": "legend",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
{
@@ -11500,258 +11174,292 @@ exports[`single fields optional data controls shows "add" and "remove" optional
{
"children": null,
"props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-roh{--grid-gutter:var(--mantine-spacing-md);}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
},
- "type": "path",
+ "type": "style",
Symbol(cleaned): true,
},
{
- "children": null,
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-roj{--col-flex-grow:1;--col-flex-basis:0rem;--col-max-width:100%;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ "deepObjectOptional",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepObjectOptional__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_96bdd299 __m__-roj",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rom{--col-flex-grow:auto;--col-flex-basis:auto;--col-width:auto;--col-max-width:unset;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-add-optional-data m_8d3f4000 m_87cf2631",
+ "data-size": "sm",
+ "data-variant": "subtle",
+ "id": "root_nestedObjectOptional_deepObjectOptional__optionalAdd",
+ "onClick": [Function],
+ "size": undefined,
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-sm)",
+ },
+ "title": "Add data for optional field",
+ "type": "button",
+ },
+ "type": "button",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_96bdd299 __m__-rom",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_dee7bd2f",
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "d": "M12 5l0 14",
+ "className": "m_410352e9 __m__-roh",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "path",
+ "type": "div",
Symbol(cleaned): true,
},
{
"children": null,
"props": {
- "d": "M5 12l14 0",
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-roq{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
},
- "type": "path",
+ "type": "style",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- "type": "svg",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-size": "md",
- "data-variant": "subtle",
- "id": "root_nestedArray__add",
- "onClick": [Function],
- "size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
- },
- "title": "Add Item",
- "type": "button",
- },
- "type": "button",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_4081bf90",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
- "data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedArray",
- "size": undefined,
- "style": {},
- },
- "type": "fieldset",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-array",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "optionalObjectWithOneofs",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_optionalObjectWithOneofs__oneof_select",
- "id": "root_optionalObjectWithOneofs__oneof_select-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-haspopup": "listbox",
- "aria-invalid": false,
- "autoComplete": "off",
- "className": "m_8fb7ebe7",
- "data-size": undefined,
- "data-variant": "default",
- "disabled": false,
- "enableOptionalDataFieldForType": [],
- "id": "root_optionalObjectWithOneofs__oneof_select",
- "onBlur": [Function],
- "onChange": [Function],
- "onClick": [Function],
- "onFocus": [Function],
- "onKeyDown": [Function],
- "readOnly": false,
- "required": undefined,
- "size": undefined,
- "style": {},
- "value": "Option 1",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
{
"children": null,
"props": {
- "clipRule": "evenodd",
- "d": "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",
- "fill": "currentColor",
- "fillRule": "evenodd",
+ "className": "m_2415a157 __m__-roq",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
},
- "type": "path",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_2943220b",
- "data-combobox-chevron": true,
+ "className": "m_7485cace",
"data-size": undefined,
+ "data-strategy": "block",
"data-variant": undefined,
- "fill": "none",
+ "id": "root_nestedObjectOptional_deepObjectOptional",
"size": undefined,
- "style": {},
- "viewBox": "0 0 15 15",
- "xmlns": "http://www.w3.org/2000/svg",
+ "style": {
+ "padding": "0rem",
+ },
},
- "type": "svg",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_82577fc2",
- "data-position": "right",
- "style": {},
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_6c018570",
- "data-size": "sm",
- "data-variant": "default",
- "data-with-right-section": true,
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
"size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- "--input-right-section-pointer-events": "none",
- },
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "m_46b77525",
- "data-size": "sm",
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
{
"children": [
{
"children": [
+ {
+ "children": [
+ "deepObject",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepObject__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rov{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
{
"children": [
{
@@ -11760,204 +11468,103 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"children": [
{
"children": [
+ {
+ "children": [
+ "deepTest",
+ ],
+ "props": {
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_nestedObjectOptional_deepObject_deepTest",
+ "id": "root_nestedObjectOptional_deepObject_deepTest-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
+ },
+ },
+ "type": "label",
+ Symbol(cleaned): true,
+ },
{
"children": [
{
"children": null,
"props": {
- "clipRule": "evenodd",
- "d": "M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",
- "fill": "currentColor",
- "fillRule": "evenodd",
+ "aria-describedby": undefined,
+ "aria-invalid": false,
+ "autoFocus": false,
+ "className": "m_8fb7ebe7",
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": false,
+ "id": "root_nestedObjectOptional_deepObject_deepTest",
+ "name": "root_nestedObjectOptional_deepObject_deepTest",
+ "onBlur": [Function],
+ "onChange": [Function],
+ "onFocus": [Function],
+ "placeholder": "",
+ "required": false,
+ "size": undefined,
+ "style": {},
+ "type": "text",
},
- "type": "path",
+ "type": "input",
Symbol(cleaned): true,
},
],
"props": {
- "aria-hidden": true,
- "className": "m_8ee53fc2",
- "fill": "none",
- "style": undefined,
- "viewBox": "0 0 10 7",
- "xmlns": "http://www.w3.org/2000/svg",
+ "className": "m_6c018570",
+ "data-size": "sm",
+ "data-variant": "default",
+ "size": undefined,
+ "style": {
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
+ },
},
- "type": "svg",
- Symbol(cleaned): true,
- },
- {
- "children": [
- "Option 1",
- ],
- "props": {},
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "aria-selected": true,
- "className": "m_92253aa5 m_390b5f4",
- "data-checked": true,
- "data-combobox-active": true,
- "data-combobox-option": true,
- "data-size": undefined,
- "data-variant": undefined,
- "id": ":rr1:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
- "size": undefined,
- "style": {},
- "value": "0",
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- "Option 2",
- ],
- "props": {},
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "aria-selected": false,
- "className": "m_92253aa5 m_390b5f4",
- "data-combobox-option": true,
- "data-size": undefined,
- "data-variant": undefined,
- "id": ":rr3:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
- "size": undefined,
- "style": {},
- "value": "1",
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- "Option 3",
- ],
- "props": {},
- "type": "span",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "aria-selected": false,
- "className": "m_92253aa5 m_390b5f4",
- "data-combobox-option": true,
- "data-size": undefined,
+ "className": "m_46b77525",
+ "data-size": "sm",
"data-variant": undefined,
- "id": ":rr5:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
"size": undefined,
"style": {},
- "value": "2",
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_b1336c6",
- "style": {},
+ "className": "rjsf-field rjsf-field-string",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_c0783ff9",
- "data-horizontal-hidden": undefined,
- "data-offset-scrollbars": "y",
- "data-scrollbars": "xy",
+ "className": "",
"data-size": undefined,
"data-variant": undefined,
- "data-vertical-hidden": undefined,
- "onScroll": [Function],
"size": undefined,
- "style": {
- "overflowX": "scroll",
- "overflowY": "scroll",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "m_c44ba933",
- "data-hidden": undefined,
- "data-mantine-scrollbar": true,
- "data-orientation": "horizontal",
- "data-state": "hidden",
- "onLostPointerCapture": [Function],
- "onMouseEnter": [Function],
- "onMouseLeave": [Function],
- "onPointerDown": [Function],
- "onPointerEnter": [Function],
- "onPointerLeave": [Function],
- "onPointerMove": [Function],
- "onPointerUp": [Function],
- "style": {
- "--sa-thumb-width": "18px",
- "position": "absolute",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "m_c44ba933",
- "data-hidden": undefined,
- "data-mantine-scrollbar": true,
- "data-orientation": "vertical",
- "data-state": "hidden",
- "onLostPointerCapture": [Function],
- "onMouseEnter": [Function],
- "onMouseLeave": [Function],
- "onPointerDown": [Function],
- "onPointerEnter": [Function],
- "onPointerLeave": [Function],
- "onPointerMove": [Function],
- "onPointerUp": [Function],
- "style": {
- "--sa-thumb-height": "18px",
- "position": "absolute",
- },
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_d57069b5",
- "data-autosize": "true",
+ "className": "m_2415a157 __m__-rov",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {
- "--sa-corner-height": "0px",
- "--sa-corner-width": "0px",
- "--scrollarea-scrollbar-size": "var(--combobox-padding)",
+ "marginBottom": "var(--mantine-spacing-sm)",
},
},
"type": "div",
@@ -11965,17 +11572,14 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "",
+ "className": "m_7485cace",
"data-size": undefined,
+ "data-strategy": "block",
"data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepObject",
"size": undefined,
"style": {
- "display": "flex",
- "flex": 1,
- "flexDirection": "column",
- "minHeight": 0,
- "minWidth": 0,
- "overflow": "hidden",
+ "padding": "0rem",
},
},
"type": "div",
@@ -11983,110 +11587,25 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "display": "flex",
- "maxHeight": "calc(13.75rem * var(--mantine-scale))",
- "overflow": "hidden",
- },
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "aria-labelledby": "root_optionalObjectWithOneofs__oneof_select-label",
- "className": "m_b2821a6e",
+ "className": "",
"data-size": undefined,
"data-variant": undefined,
- "id": "",
- "onMouseDown": [Function],
- "role": "listbox",
"size": undefined,
- "style": {
- "--combobox-option-fz": "var(--mantine-font-size-sm)",
- "--combobox-option-padding": "var(--combobox-option-padding-sm)",
- },
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "m_38a85659 m_88b62a41",
- "data-composed": true,
- "data-fixed": undefined,
- "data-position": "bottom",
- "data-size": undefined,
- "data-variant": undefined,
- "onKeyDownCapture": [Function],
- "role": "presentation",
- "size": undefined,
- "style": {
- "--combobox-option-fz": "var(--mantine-font-size-sm)",
- "--combobox-option-padding": "var(--combobox-option-padding-sm)",
- "display": "none",
- "left": 0,
- "top": 0,
- "width": undefined,
- "zIndex": 300,
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "disabled": false,
- "form": undefined,
- "name": "root_optionalObjectWithOneofs__oneof_select",
- "type": "hidden",
- "value": "0",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
- {
- "children": [
- "optionalObjectWithOneofs",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_optionalObjectWithOneofs__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rr9{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
{
"children": [
{
@@ -12095,448 +11614,242 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"children": [
{
"children": [
- {
- "children": [
- "name",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_optionalObjectWithOneofs_name",
- "id": "root_optionalObjectWithOneofs_name-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
+ "deepArrayOptional",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepArrayOptional__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
},
+ },
+ "type": "h4",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
{
"children": [
{
- "children": null,
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "id": "root_optionalObjectWithOneofs_name",
- "name": "root_optionalObjectWithOneofs_name",
- "placeholder": "",
- "required": false,
- "size": undefined,
- "style": {},
- "type": "text",
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "input",
+ "type": "svg",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
"size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
+ "style": {},
},
- "type": "div",
+ "type": "span",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
- "data-variant": undefined,
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-size": "md",
+ "data-variant": "subtle",
+ "id": "root_nestedObjectOptional_deepArrayOptional__add",
+ "onClick": [Function],
"size": undefined,
- "style": {},
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
+ },
+ "title": "Add Item",
+ "type": "button",
},
- "type": "div",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
+ "className": "m_4081bf90",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
"data-size": undefined,
- "data-variant": undefined,
+ "data-variant": "default",
+ "id": "root_nestedObjectOptional_deepArrayOptional",
"size": undefined,
"style": {},
},
- "type": "div",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_2415a157 __m__-rr9",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_7485cace",
+ "className": "",
"data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root_optionalObjectWithOneofs",
- "size": undefined,
- "style": {
- "padding": "0rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6d731127",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--stack-align": "stretch",
- "--stack-gap": "var(--mantine-spacing-md)",
- "--stack-justify": "flex-start",
- "marginBottom": "1rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-undefined",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_2415a157 __m__-rnb",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_7485cace",
- "data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root",
- "size": undefined,
- "style": {
- "padding": "0rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "Submit",
- ],
- "props": {
- "className": "m_811560b9",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_80f1301b",
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_77c9d27d m_87cf2631",
- "data-size": undefined,
- "data-variant": "filled",
- "size": undefined,
- "style": {
- "--button-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--button-bg": "var(--mantine-color-blue-filled)",
- "--button-color": "var(--mantine-color-white)",
- "--button-hover": "var(--mantine-color-blue-filled-hover)",
- },
- "type": "submit",
- },
- "type": "button",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "acceptCharset": undefined,
- "action": undefined,
- "as": undefined,
- "autoComplete": undefined,
- "className": "rjsf",
- "encType": undefined,
- "id": undefined,
- "method": undefined,
- "name": undefined,
- "noValidate": false,
- "onSubmit": [Function],
- "target": undefined,
- },
- "type": "form",
- Symbol(cleaned): true,
- },
-]
-`;
-
-exports[`single fields optional data controls shows "add" and "remove" optional controls when turned on in uiSchema, readonly and formData 1`] = `
-[
- ,
- ,
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "test",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-r11f{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "nestedObjectOptional",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-r11k{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
},
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
{
"children": [
{
"children": [
- {
- "children": [
- "test",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_nestedObjectOptional_test",
- "id": "root_nestedObjectOptional_test-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
{
"children": [
{
- "children": null,
+ "children": [
+ "deepArrayOptional2",
+ ],
"props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-disabled": true,
+ "className": "m_8a5d1357",
+ "data-order": 4,
"data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "id": "root_nestedObjectOptional_test",
- "name": "root_nestedObjectOptional_test",
- "placeholder": "",
- "required": false,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepArrayOptional2__title",
"size": undefined,
- "style": {},
- "type": "text",
- "value": "foo",
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
},
- "type": "input",
+ "type": "h4",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
"size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
- "data-variant": undefined,
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
+ "data-size": undefined,
+ "data-variant": "default",
+ "id": "root_nestedObjectOptional_deepArrayOptional2",
"size": undefined,
"style": {},
},
- "type": "div",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-string",
+ "className": "rjsf-field rjsf-field-array",
"style": undefined,
},
"type": "div",
@@ -12561,57 +11874,144 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"children": [
{
"children": [
- "deepObjectOptional",
+ {
+ "children": [
+ "deepArray",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepArray__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h4",
+ Symbol(cleaned): true,
+ },
],
"props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional_deepObjectOptional__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
+ "className": "m_90794832",
+ "style": {},
},
- "type": "h3",
+ "type": "legend",
Symbol(cleaned): true,
},
{
"children": null,
"props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-r11v{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "style",
+ "type": "div",
Symbol(cleaned): true,
},
{
"children": [
{
"children": [
- "No data for optional field",
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
],
"props": {
- "id": "root_nestedObjectOptional_deepObjectOptional__optionalMsg",
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-size": "md",
+ "data-variant": "subtle",
+ "id": "root_nestedObjectOptional_deepArray__add",
+ "onClick": [Function],
+ "size": undefined,
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
+ },
+ "title": "Add Item",
+ "type": "button",
},
- "type": "em",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_2415a157 __m__-r11v",
+ "className": "m_4081bf90",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {
- "marginBottom": "var(--mantine-spacing-sm)",
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
},
},
"type": "div",
@@ -12619,22 +12019,19 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "m_7485cace",
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
"data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root_nestedObjectOptional_deepObjectOptional",
+ "data-variant": "default",
+ "id": "root_nestedObjectOptional_deepArray",
"size": undefined,
- "style": {
- "padding": "0rem",
- },
+ "style": {},
},
- "type": "div",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-object",
+ "className": "rjsf-field rjsf-field-array",
"style": undefined,
},
"type": "div",
@@ -12642,173 +12039,314 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "",
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_2415a157 __m__-ro7",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "nestedArrayOptional",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
"data-size": undefined,
"data-variant": undefined,
+ "id": "root_nestedArrayOptional__title",
"size": undefined,
- "style": {},
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
},
- "type": "div",
+ "type": "h4",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": [
{
"children": [
{
"children": [
- {
- "children": [
- "deepObject",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional_deepObject__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-r124{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
{
"children": [
{
"children": [
{
"children": [
+ "nestedArrayOptional-0",
{
"children": [
- {
- "children": [
- "deepTest",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_nestedObjectOptional_deepObject_deepTest",
- "id": "root_nestedObjectOptional_deepObject_deepTest-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "id": "root_nestedObjectOptional_deepObject_deepTest",
- "name": "root_nestedObjectOptional_deepObject_deepTest",
- "placeholder": "",
- "required": false,
- "size": undefined,
- "style": {},
- "type": "text",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
+ " *",
],
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "aria-hidden": true,
+ "className": "m_78a94662",
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_8fdc1311",
+ "data-required": true,
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_nestedArrayOptional_0",
+ "id": "root_nestedArrayOptional_0-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
+ },
+ },
+ "type": "label",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "aria-describedby": undefined,
+ "aria-invalid": false,
+ "autoFocus": false,
+ "className": "m_8fb7ebe7",
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": false,
+ "id": "root_nestedArrayOptional_0",
+ "name": "root_nestedArrayOptional_0",
+ "onBlur": [Function],
+ "onChange": [Function],
+ "onFocus": [Function],
+ "placeholder": "",
+ "required": true,
+ "size": undefined,
+ "style": {},
+ "type": "text",
+ "value": "bar",
+ },
+ "type": "input",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_6c018570",
+ "data-size": "sm",
+ "data-variant": "default",
+ "size": undefined,
+ "style": {
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_46b77525",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-string",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "width": "100%",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
},
- "type": "div",
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M18 6l-12 12",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M6 6l12 12",
+ },
+ "type": "path",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-x",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "div",
+ "type": "svg",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
+ "className": "m_8d3afb97",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {},
},
- "type": "div",
+ "type": "span",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_2415a157 __m__-r124",
- "data-size": undefined,
- "data-variant": undefined,
+ "className": "rjsf-array-item-remove m_8d3f4000 m_87cf2631",
+ "data-size": "sm",
+ "data-variant": "subtle",
+ "id": "root_nestedArrayOptional_0__remove",
+ "onClick": [Function],
"size": undefined,
"style": {
- "marginBottom": "var(--mantine-spacing-sm)",
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-red-light-color)",
+ "--ai-hover": "var(--mantine-color-red-light-hover)",
+ "--ai-size": "var(--ai-size-sm)",
},
+ "title": "Remove",
+ "type": "button",
},
- "type": "div",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_7485cace",
+ "className": "m_4081bf90",
"data-size": undefined,
- "data-strategy": "block",
"data-variant": undefined,
- "id": "root_nestedObjectOptional_deepObject",
"size": undefined,
"style": {
- "padding": "0rem",
+ "--group-align": "center",
+ "--group-gap": "calc(0.125rem * var(--mantine-scale))",
+ "--group-justify": "flex-start",
+ "--group-wrap": "nowrap",
+ "marginBottom": "calc(0.4375rem * var(--mantine-scale))",
},
},
"type": "div",
@@ -12816,23 +12354,45 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
+ "className": "m_8bffd616 __m__-rpu",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "alignItems": "end",
+ "gap": "var(--mantine-spacing-xs)",
+ "justifyContent": "center",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
+ "className": "rjsf-array-item",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
- "style": {},
+ "style": {
+ "marginBottom": "var(--mantine-spacing-xs)",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": [
{
@@ -12840,183 +12400,171 @@ exports[`single fields optional data controls shows "add" and "remove" optional
{
"children": [
{
- "children": [
- {
- "children": [
- "deepArrayOptional",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 4,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional_deepArrayOptional__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
- ],
+ "children": null,
"props": {
- "className": "m_90794832",
- "style": {},
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
},
- "type": "legend",
+ "type": "path",
Symbol(cleaned): true,
},
{
"children": null,
"props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "d": "M12 5l0 14",
},
- "type": "div",
+ "type": "path",
Symbol(cleaned): true,
},
{
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M12 5l0 14",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M5 12l14 0",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- "type": "svg",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-disabled": true,
- "data-size": "md",
- "data-variant": "subtle",
- "disabled": true,
- "id": "root_nestedObjectOptional_deepArrayOptional__add",
- "onClick": [Function],
- "size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
- },
- "title": "Add Item",
- "type": "button",
- },
- "type": "button",
- Symbol(cleaned): true,
- },
- ],
+ "children": null,
"props": {
- "className": "m_4081bf90",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
- },
+ "d": "M5 12l14 0",
},
- "type": "div",
+ "type": "path",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
- "data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedObjectOptional_deepArrayOptional",
- "size": undefined,
- "style": {},
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "fieldset",
+ "type": "svg",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-array",
- "style": undefined,
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "div",
+ "type": "span",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-size": "md",
+ "data-variant": "subtle",
+ "id": "root_nestedArrayOptional__add",
+ "onClick": [Function],
"size": undefined,
- "style": {},
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
+ },
+ "title": "Add Item",
+ "type": "button",
},
- "type": "div",
+ "type": "button",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_4081bf90",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
+ "data-size": undefined,
+ "data-variant": "default",
+ "id": "root_nestedArrayOptional",
+ "size": undefined,
+ "style": {},
+ },
+ "type": "fieldset",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "nestedObject",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObject__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rqf{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": [
{
@@ -13025,73 +12573,77 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"children": [
{
"children": [
- {
- "children": [
- "deepArrayOptional2",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 4,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional_deepArrayOptional2__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
+ "test",
],
"props": {
- "className": "m_90794832",
- "style": {},
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_nestedObject_test",
+ "id": "root_nestedObject_test-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
+ },
},
- "type": "legend",
+ "type": "label",
Symbol(cleaned): true,
},
{
"children": [
{
- "children": [
- "No data for optional field",
- ],
+ "children": null,
"props": {
- "id": "root_nestedObjectOptional_deepArrayOptional2__optionalMsg",
+ "aria-describedby": undefined,
+ "aria-invalid": false,
+ "autoFocus": false,
+ "className": "m_8fb7ebe7",
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": false,
+ "id": "root_nestedObject_test",
+ "name": "root_nestedObject_test",
+ "onBlur": [Function],
+ "onChange": [Function],
+ "onFocus": [Function],
+ "placeholder": "",
+ "required": false,
+ "size": undefined,
+ "style": {},
+ "type": "text",
},
- "type": "em",
+ "type": "input",
Symbol(cleaned): true,
},
],
"props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
+ "className": "m_6c018570",
+ "data-size": "sm",
+ "data-variant": "default",
"size": undefined,
- "style": {},
+ "style": {
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
- "data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedObjectOptional_deepArrayOptional2",
+ "className": "m_46b77525",
+ "data-size": "sm",
+ "data-variant": undefined,
"size": undefined,
"style": {},
},
- "type": "fieldset",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-array",
+ "className": "rjsf-field rjsf-field-string",
"style": undefined,
},
"type": "div",
@@ -13099,15 +12651,113 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "",
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_2415a157 __m__-rqf",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root_nestedObject",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "nestedArray",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
"data-size": undefined,
"data-variant": undefined,
+ "id": "root_nestedArray__title",
"size": undefined,
- "style": {},
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
},
- "type": "div",
+ "type": "h4",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": [
{
@@ -13115,191 +12765,94 @@ exports[`single fields optional data controls shows "add" and "remove" optional
{
"children": [
{
- "children": [
- {
- "children": [
- "deepArray",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 4,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional_deepArray__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
- ],
+ "children": null,
"props": {
- "className": "m_90794832",
- "style": {},
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
},
- "type": "legend",
+ "type": "path",
Symbol(cleaned): true,
},
{
"children": null,
"props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "d": "M12 5l0 14",
},
- "type": "div",
+ "type": "path",
Symbol(cleaned): true,
},
{
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M12 5l0 14",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M5 12l14 0",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- "type": "svg",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-disabled": true,
- "data-size": "md",
- "data-variant": "subtle",
- "disabled": true,
- "id": "root_nestedObjectOptional_deepArray__add",
- "onClick": [Function],
- "size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
- },
- "title": "Add Item",
- "type": "button",
- },
- "type": "button",
- Symbol(cleaned): true,
- },
- ],
+ "children": null,
"props": {
- "className": "m_4081bf90",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
- },
+ "d": "M5 12l14 0",
},
- "type": "div",
+ "type": "path",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
- "data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedObjectOptional_deepArray",
- "size": undefined,
- "style": {},
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "fieldset",
+ "type": "svg",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-array",
- "style": undefined,
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "div",
+ "type": "span",
Symbol(cleaned): true,
},
],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
+ "props": {
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-size": "md",
+ "data-variant": "subtle",
+ "id": "root_nestedArray__add",
+ "onClick": [Function],
"size": undefined,
- "style": {},
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
+ },
+ "title": "Add Item",
+ "type": "button",
},
- "type": "div",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_2415a157 __m__-r11k",
+ "className": "m_4081bf90",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {
- "marginBottom": "var(--mantine-spacing-sm)",
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
},
},
"type": "div",
@@ -13307,22 +12860,19 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "m_7485cace",
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
"data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root_nestedObjectOptional",
+ "data-variant": "default",
+ "id": "root_nestedArray",
"size": undefined,
- "style": {
- "padding": "0rem",
- },
+ "style": {},
},
- "type": "div",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-object",
+ "className": "rjsf-field rjsf-field-array",
"style": undefined,
},
"type": "div",
@@ -13349,151 +12899,80 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"children": [
{
"children": [
- "nestedArrayOptional",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 4,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedArrayOptional__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rr1{--grid-gutter:var(--mantine-spacing-md);}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
},
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_90794832",
- "style": {},
- },
- "type": "legend",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
{
"children": [
{
"children": [
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rr3{--col-flex-grow:1;--col-flex-basis:0rem;--col-max-width:100%;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
{
"children": [
{
"children": [
- {
- "children": [
- "nestedArrayOptional-0",
- {
- "children": [
- " *",
- ],
- "props": {
- "aria-hidden": true,
- "className": "m_78a94662",
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-required": true,
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_nestedArrayOptional_0",
- "id": "root_nestedArrayOptional_0-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "id": "root_nestedArrayOptional_0",
- "name": "root_nestedArrayOptional_0",
- "placeholder": "",
- "required": true,
- "size": undefined,
- "style": {},
- "type": "text",
- "value": "bar",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
+ "optionalObjectWithOneofs",
],
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
"data-variant": undefined,
+ "id": "root_optionalObjectWithOneofs__title",
"size": undefined,
- "style": {},
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
},
- "type": "div",
+ "type": "h3",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
+ "className": "m_96bdd299 __m__-rr3",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "width": "100%",
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rr6{--col-flex-grow:auto;--col-flex-basis:auto;--col-width:auto;--col-max-width:unset;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
{
@@ -13501,112 +12980,136 @@ exports[`single fields optional data controls shows "add" and "remove" optional
{
"children": [
{
- "children": null,
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "d": "M0 0h24v24H0z",
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
"fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M18 6l-12 12",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M6 6l12 12",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "path",
+ "type": "svg",
Symbol(cleaned): true,
},
],
"props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-x",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "svg",
+ "type": "span",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
+ "className": "rjsf-add-optional-data m_8d3f4000 m_87cf2631",
+ "data-size": "sm",
+ "data-variant": "subtle",
+ "id": "root_optionalObjectWithOneofs__optionalAdd",
+ "onClick": [Function],
"size": undefined,
- "style": {},
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-sm)",
+ },
+ "title": "Add data for optional field",
+ "type": "button",
},
- "type": "span",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-array-item-remove m_8d3f4000 m_87cf2631",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "subtle",
- "disabled": true,
- "id": "root_nestedArrayOptional_0__remove",
- "onClick": [Function],
+ "className": "m_96bdd299 __m__-rr6",
+ "data-size": undefined,
+ "data-variant": undefined,
"size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-red-light-color)",
- "--ai-hover": "var(--mantine-color-red-light-hover)",
- "--ai-size": "var(--ai-size-sm)",
- },
- "title": "Remove",
- "type": "button",
+ "style": {},
},
- "type": "button",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_4081bf90",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--group-align": "center",
- "--group-gap": "calc(0.125rem * var(--mantine-scale))",
- "--group-justify": "flex-start",
- "--group-wrap": "nowrap",
- "marginBottom": "calc(0.4375rem * var(--mantine-scale))",
- },
+ "className": "m_dee7bd2f",
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_8bffd616 __m__-r133",
+ "className": "m_410352e9 __m__-rr1",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rra{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "m_2415a157 __m__-rra",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {
- "alignItems": "end",
- "gap": "var(--mantine-spacing-xs)",
- "justifyContent": "center",
+ "marginBottom": "var(--mantine-spacing-sm)",
},
},
"type": "div",
@@ -13614,12 +13117,14 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "rjsf-array-item",
+ "className": "m_7485cace",
"data-size": undefined,
+ "data-strategy": "block",
"data-variant": undefined,
+ "id": "root_optionalObjectWithOneofs",
"size": undefined,
"style": {
- "marginBottom": "var(--mantine-spacing-xs)",
+ "padding": "0rem",
},
},
"type": "div",
@@ -13627,15 +13132,53 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_6d731127",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "--stack-align": "stretch",
+ "--stack-gap": "var(--mantine-spacing-md)",
+ "--stack-justify": "flex-start",
+ "marginBottom": "1rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-undefined",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
{
"children": [
{
@@ -13644,117 +13187,84 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"children": [
{
"children": [
- {
- "children": null,
- "props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M12 5l0 14",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M5 12l14 0",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
+ "optionalArrayWithAnyofs",
],
"props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_optionalArrayWithAnyofs__title",
+ "size": undefined,
"style": {
- "height": undefined,
- "width": undefined,
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
},
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "svg",
+ "type": "h4",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_8d3afb97",
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "row rjsf-array-item-list",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {},
},
- "type": "span",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-disabled": true,
- "data-size": "md",
- "data-variant": "subtle",
- "disabled": true,
- "id": "root_nestedArrayOptional__add",
- "onClick": [Function],
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
+ "data-size": undefined,
+ "data-variant": "default",
+ "id": "root_optionalArrayWithAnyofs",
"size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
- },
- "title": "Add Item",
- "type": "button",
+ "style": {},
},
- "type": "button",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_4081bf90",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
- },
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
+ "className": "m_6d731127",
"data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedArrayOptional",
+ "data-variant": undefined,
"size": undefined,
- "style": {},
+ "style": {
+ "--stack-align": "stretch",
+ "--stack-gap": "var(--mantine-spacing-md)",
+ "--stack-justify": "flex-start",
+ "marginBottom": "1rem",
+ },
},
- "type": "fieldset",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-array",
+ "className": "rjsf-field rjsf-field-undefined",
"style": undefined,
},
"type": "div",
@@ -13771,6 +13281,169 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_2415a157 __m__-rnq",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "Submit",
+ ],
+ "props": {
+ "className": "m_811560b9",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_80f1301b",
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_77c9d27d m_87cf2631",
+ "data-size": undefined,
+ "data-variant": "filled",
+ "size": undefined,
+ "style": {
+ "--button-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--button-bg": "var(--mantine-color-blue-filled)",
+ "--button-color": "var(--mantine-color-white)",
+ "--button-hover": "var(--mantine-color-blue-filled-hover)",
+ },
+ "type": "submit",
+ },
+ "type": "button",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "acceptCharset": undefined,
+ "action": undefined,
+ "as": undefined,
+ "autoComplete": undefined,
+ "className": "rjsf",
+ "encType": undefined,
+ "id": undefined,
+ "method": undefined,
+ "name": undefined,
+ "noValidate": false,
+ "onSubmit": [Function],
+ "target": undefined,
+ },
+ "type": "form",
+ Symbol(cleaned): true,
+ },
+]
+`;
+
+exports[`single fields optional data controls shows "add" and "remove" optional controls when turned on in uiSchema, readonly and formData 1`] = `
+[
+ ,
+ ,
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "test",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-r11m{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": [
{
@@ -13779,14 +13452,14 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"children": [
{
"children": [
- "nestedObject",
+ "nestedObjectOptional",
],
"props": {
"className": "m_8a5d1357",
"data-order": 3,
"data-size": undefined,
"data-variant": undefined,
- "id": "root_nestedObject__title",
+ "id": "root_nestedObjectOptional__title",
"size": undefined,
"style": {
"--title-fw": "var(--mantine-h3-font-weight)",
@@ -13802,16 +13475,111 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"children": null,
"props": {
"dangerouslySetInnerHTML": {
- "__html": ".__m__-r13k{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ "__html": ".__m__-r11r{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "test",
+ ],
+ "props": {
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_nestedObjectOptional_test",
+ "id": "root_nestedObjectOptional_test-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
+ },
+ },
+ "type": "label",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "aria-describedby": undefined,
+ "aria-invalid": false,
+ "autoFocus": false,
+ "className": "m_8fb7ebe7",
+ "data-disabled": true,
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": true,
+ "id": "root_nestedObjectOptional_test",
+ "name": "root_nestedObjectOptional_test",
+ "placeholder": "",
+ "required": false,
+ "size": undefined,
+ "style": {},
+ "type": "text",
+ "value": "foo",
+ },
+ "type": "input",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_6c018570",
+ "data-disabled": true,
+ "data-size": "sm",
+ "data-variant": "default",
+ "size": undefined,
+ "style": {
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_46b77525",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-string",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
},
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
{
@@ -13820,57 +13588,57 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"children": [
{
"children": [
- "test",
+ "deepObjectOptional",
],
"props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
"data-variant": undefined,
- "htmlFor": "root_nestedObject_test",
- "id": "root_nestedObject_test-label",
- "onMouseDown": [Function],
+ "id": "root_nestedObjectOptional_deepObjectOptional__title",
"size": undefined,
"style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
},
},
- "type": "label",
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-r126{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
Symbol(cleaned): true,
},
{
"children": [
{
- "children": null,
+ "children": [
+ "No data for optional field",
+ ],
"props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "id": "root_nestedObject_test",
- "name": "root_nestedObject_test",
- "placeholder": "",
- "required": false,
- "size": undefined,
- "style": {},
- "type": "text",
+ "id": "root_nestedObjectOptional_deepObjectOptional__optionalMsg",
},
- "type": "input",
+ "type": "em",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
+ "className": "m_2415a157 __m__-r126",
+ "data-size": undefined,
+ "data-variant": undefined,
"size": undefined,
"style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
+ "marginBottom": "var(--mantine-spacing-sm)",
},
},
"type": "div",
@@ -13878,18 +13646,22 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
"data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepObjectOptional",
"size": undefined,
- "style": {},
+ "style": {
+ "padding": "0rem",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-string",
+ "className": "rjsf-field rjsf-field-object",
"style": undefined,
},
"type": "div",
@@ -13906,104 +13678,188 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "m_2415a157 __m__-r13k",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_7485cace",
- "data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root_nestedObject",
- "size": undefined,
- "style": {
- "padding": "0rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
{
"children": [
- "nestedArray",
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "deepObject",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepObject__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-r12b{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "deepTest",
+ ],
+ "props": {
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_nestedObjectOptional_deepObject_deepTest",
+ "id": "root_nestedObjectOptional_deepObject_deepTest-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
+ },
+ },
+ "type": "label",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "aria-describedby": undefined,
+ "aria-invalid": false,
+ "autoFocus": false,
+ "className": "m_8fb7ebe7",
+ "data-disabled": true,
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": true,
+ "id": "root_nestedObjectOptional_deepObject_deepTest",
+ "name": "root_nestedObjectOptional_deepObject_deepTest",
+ "placeholder": "",
+ "required": false,
+ "size": undefined,
+ "style": {},
+ "type": "text",
+ },
+ "type": "input",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_6c018570",
+ "data-disabled": true,
+ "data-size": "sm",
+ "data-variant": "default",
+ "size": undefined,
+ "style": {
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_46b77525",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-string",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_2415a157 __m__-r12b",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepObject",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
],
"props": {
- "className": "m_8a5d1357",
- "data-order": 4,
+ "className": "",
"data-size": undefined,
"data-variant": undefined,
- "id": "root_nestedArray__title",
"size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
+ "style": {},
},
- "type": "h4",
+ "type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "m_90794832",
- "style": {},
- },
- "type": "legend",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
{
@@ -14011,264 +13867,323 @@ exports[`single fields optional data controls shows "add" and "remove" optional
{
"children": [
{
- "children": null,
+ "children": [
+ {
+ "children": [
+ "deepArrayOptional",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepArrayOptional__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h4",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
+ "className": "m_90794832",
+ "style": {},
},
- "type": "path",
+ "type": "legend",
Symbol(cleaned): true,
},
{
"children": null,
"props": {
- "d": "M12 5l0 14",
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "path",
+ "type": "div",
Symbol(cleaned): true,
},
{
- "children": null,
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-disabled": true,
+ "data-size": "md",
+ "data-variant": "subtle",
+ "disabled": true,
+ "id": "root_nestedObjectOptional_deepArrayOptional__add",
+ "onClick": [Function],
+ "size": undefined,
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
+ },
+ "title": "Add Item",
+ "type": "button",
+ },
+ "type": "button",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "d": "M5 12l14 0",
+ "className": "m_4081bf90",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
+ },
},
- "type": "path",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
+ "data-size": undefined,
+ "data-variant": "default",
+ "id": "root_nestedObjectOptional_deepArrayOptional",
+ "size": undefined,
+ "style": {},
},
- "type": "svg",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
},
- "type": "span",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-disabled": true,
- "data-size": "md",
- "data-variant": "subtle",
- "disabled": true,
- "id": "root_nestedArray__add",
- "onClick": [Function],
- "size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
- },
- "title": "Add Item",
- "type": "button",
- },
- "type": "button",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_4081bf90",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
- "data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedArray",
- "size": undefined,
- "style": {},
- },
- "type": "fieldset",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-array",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "optionalObjectWithOneofs",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
+ "className": "",
+ "data-size": undefined,
"data-variant": undefined,
- "htmlFor": "root_optionalObjectWithOneofs__oneof_select",
- "id": "root_optionalObjectWithOneofs__oneof_select-label",
- "onMouseDown": [Function],
"size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
+ "style": {},
},
- "type": "label",
+ "type": "div",
Symbol(cleaned): true,
},
{
"children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-haspopup": "listbox",
- "aria-invalid": false,
- "autoComplete": "off",
- "className": "m_8fb7ebe7",
- "data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "enableOptionalDataFieldForType": [],
- "id": "root_optionalObjectWithOneofs__oneof_select",
- "onBlur": [Function],
- "onChange": [Function],
- "onClick": [Function],
- "onFocus": [Function],
- "onKeyDown": [Function],
- "readOnly": false,
- "required": undefined,
- "size": undefined,
- "style": {},
- "value": "Option 1",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
{
"children": [
{
"children": [
{
- "children": null,
+ "children": [
+ {
+ "children": [
+ "deepArrayOptional2",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepArrayOptional2__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h4",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "clipRule": "evenodd",
- "d": "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",
- "fill": "currentColor",
- "fillRule": "evenodd",
+ "className": "m_90794832",
+ "style": {},
},
- "type": "path",
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ "No data for optional field",
+ ],
+ "props": {
+ "id": "root_nestedObjectOptional_deepArrayOptional2__optionalMsg",
+ },
+ "type": "em",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_2943220b",
- "data-combobox-chevron": true,
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
"data-size": undefined,
- "data-variant": undefined,
- "fill": "none",
+ "data-variant": "default",
+ "id": "root_nestedObjectOptional_deepArrayOptional2",
"size": undefined,
"style": {},
- "viewBox": "0 0 15 15",
- "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "svg",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_82577fc2",
- "data-position": "right",
- "style": {},
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
- "data-with-right-section": true,
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
"size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- "--input-right-section-pointer-events": "none",
- },
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "m_46b77525",
- "data-size": "sm",
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
{
"children": [
{
"children": [
+ {
+ "children": [
+ {
+ "children": [
+ "deepArray",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional_deepArray__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h4",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
{
"children": [
{
@@ -14278,203 +14193,96 @@ exports[`single fields optional data controls shows "add" and "remove" optional
{
"children": [
{
- "children": [
- {
- "children": null,
- "props": {
- "clipRule": "evenodd",
- "d": "M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",
- "fill": "currentColor",
- "fillRule": "evenodd",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
+ "children": null,
"props": {
- "aria-hidden": true,
- "className": "m_8ee53fc2",
+ "d": "M0 0h24v24H0z",
"fill": "none",
- "style": undefined,
- "viewBox": "0 0 10 7",
- "xmlns": "http://www.w3.org/2000/svg",
+ "stroke": "none",
},
- "type": "svg",
+ "type": "path",
Symbol(cleaned): true,
},
{
- "children": [
- "Option 1",
- ],
- "props": {},
- "type": "span",
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
Symbol(cleaned): true,
},
- ],
- "props": {
- "aria-selected": true,
- "className": "m_92253aa5 m_390b5f4",
- "data-checked": true,
- "data-combobox-active": true,
- "data-combobox-option": true,
- "data-size": undefined,
- "data-variant": undefined,
- "id": ":r14l:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
- "size": undefined,
- "style": {},
- "value": "0",
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
- "children": [
- "Option 2",
- ],
- "props": {},
- "type": "span",
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
Symbol(cleaned): true,
},
],
"props": {
- "aria-selected": false,
- "className": "m_92253aa5 m_390b5f4",
- "data-combobox-option": true,
- "data-size": undefined,
- "data-variant": undefined,
- "id": ":r14n:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
- "size": undefined,
- "style": {},
- "value": "1",
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- "Option 3",
- ],
- "props": {},
- "type": "span",
- Symbol(cleaned): true,
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
},
- ],
- "props": {
- "aria-selected": false,
- "className": "m_92253aa5 m_390b5f4",
- "data-combobox-option": true,
- "data-size": undefined,
- "data-variant": undefined,
- "id": ":r14p:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
- "size": undefined,
- "style": {},
- "value": "2",
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "div",
+ "type": "svg",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_b1336c6",
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
"style": {},
},
- "type": "div",
+ "type": "span",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_c0783ff9",
- "data-horizontal-hidden": undefined,
- "data-offset-scrollbars": "y",
- "data-scrollbars": "xy",
- "data-size": undefined,
- "data-variant": undefined,
- "data-vertical-hidden": undefined,
- "onScroll": [Function],
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-disabled": true,
+ "data-size": "md",
+ "data-variant": "subtle",
+ "disabled": true,
+ "id": "root_nestedObjectOptional_deepArray__add",
+ "onClick": [Function],
"size": undefined,
"style": {
- "overflowX": "scroll",
- "overflowY": "scroll",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "m_c44ba933",
- "data-hidden": undefined,
- "data-mantine-scrollbar": true,
- "data-orientation": "horizontal",
- "data-state": "hidden",
- "onLostPointerCapture": [Function],
- "onMouseEnter": [Function],
- "onMouseLeave": [Function],
- "onPointerDown": [Function],
- "onPointerEnter": [Function],
- "onPointerLeave": [Function],
- "onPointerMove": [Function],
- "onPointerUp": [Function],
- "style": {
- "--sa-thumb-width": "18px",
- "position": "absolute",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "m_c44ba933",
- "data-hidden": undefined,
- "data-mantine-scrollbar": true,
- "data-orientation": "vertical",
- "data-state": "hidden",
- "onLostPointerCapture": [Function],
- "onMouseEnter": [Function],
- "onMouseLeave": [Function],
- "onPointerDown": [Function],
- "onPointerEnter": [Function],
- "onPointerLeave": [Function],
- "onPointerMove": [Function],
- "onPointerUp": [Function],
- "style": {
- "--sa-thumb-height": "18px",
- "position": "absolute",
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
},
+ "title": "Add Item",
+ "type": "button",
},
- "type": "div",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_d57069b5",
- "data-autosize": "true",
+ "className": "m_4081bf90",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {
- "--sa-corner-height": "0px",
- "--sa-corner-width": "0px",
- "--scrollarea-scrollbar-size": "var(--combobox-padding)",
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
},
},
"type": "div",
@@ -14482,129 +14290,123 @@ exports[`single fields optional data controls shows "add" and "remove" optional
},
],
"props": {
- "className": "",
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
"data-size": undefined,
- "data-variant": undefined,
+ "data-variant": "default",
+ "id": "root_nestedObjectOptional_deepArray",
"size": undefined,
- "style": {
- "display": "flex",
- "flex": 1,
- "flexDirection": "column",
- "minHeight": 0,
- "minWidth": 0,
- "overflow": "hidden",
- },
+ "style": {},
},
- "type": "div",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "display": "flex",
- "maxHeight": "calc(13.75rem * var(--mantine-scale))",
- "overflow": "hidden",
- },
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "aria-labelledby": "root_optionalObjectWithOneofs__oneof_select-label",
- "className": "m_b2821a6e",
+ "className": "",
"data-size": undefined,
"data-variant": undefined,
- "id": "",
- "onMouseDown": [Function],
- "role": "listbox",
"size": undefined,
- "style": {
- "--combobox-option-fz": "var(--mantine-font-size-sm)",
- "--combobox-option-padding": "var(--combobox-option-padding-sm)",
- },
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_38a85659 m_88b62a41",
- "data-composed": true,
- "data-fixed": undefined,
- "data-hidden": true,
- "data-position": "bottom",
+ "className": "m_2415a157 __m__-r11r",
"data-size": undefined,
"data-variant": undefined,
- "onKeyDownCapture": [Function],
- "role": "presentation",
"size": undefined,
"style": {
- "--combobox-option-fz": "var(--mantine-font-size-sm)",
- "--combobox-option-padding": "var(--combobox-option-padding-sm)",
- "display": "none",
- "left": 0,
- "top": 0,
- "width": undefined,
- "zIndex": 300,
+ "marginBottom": "var(--mantine-spacing-sm)",
},
},
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
{
- "children": null,
+ "children": [
+ {
+ "children": [
+ "nestedArrayOptional",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedArrayOptional__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h4",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "disabled": true,
- "form": undefined,
- "name": "root_optionalObjectWithOneofs__oneof_select",
- "type": "hidden",
- "value": "0",
+ "className": "m_90794832",
+ "style": {},
},
- "type": "input",
+ "type": "legend",
Symbol(cleaned): true,
},
{
"children": [
{
"children": [
- {
- "children": [
- "optionalObjectWithOneofs",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_optionalObjectWithOneofs__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-r14t{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
{
"children": [
{
@@ -14615,14 +14417,27 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"children": [
{
"children": [
- "name",
+ "nestedArrayOptional-0",
+ {
+ "children": [
+ " *",
+ ],
+ "props": {
+ "aria-hidden": true,
+ "className": "m_78a94662",
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
],
"props": {
"className": "m_8fdc1311",
+ "data-required": true,
"data-size": "sm",
"data-variant": undefined,
- "htmlFor": "root_optionalObjectWithOneofs_name",
- "id": "root_optionalObjectWithOneofs_name-label",
+ "htmlFor": "root_nestedArrayOptional_0",
+ "id": "root_nestedArrayOptional_0-label",
"onMouseDown": [Function],
"size": undefined,
"style": {
@@ -14645,13 +14460,14 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"data-size": undefined,
"data-variant": "default",
"disabled": true,
- "id": "root_optionalObjectWithOneofs_name",
- "name": "root_optionalObjectWithOneofs_name",
+ "id": "root_nestedArrayOptional_0",
+ "name": "root_nestedArrayOptional_0",
"placeholder": "",
- "required": false,
+ "required": true,
"size": undefined,
"style": {},
"type": "text",
+ "value": "bar",
},
"type": "input",
Symbol(cleaned): true,
@@ -14682,439 +14498,436 @@ exports[`single fields optional data controls shows "add" and "remove" optional
"type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-string",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "width": "100%",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M18 6l-12 12",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M6 6l12 12",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-x",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-array-item-remove m_8d3f4000 m_87cf2631",
+ "data-disabled": true,
+ "data-size": "sm",
+ "data-variant": "subtle",
+ "disabled": true,
+ "id": "root_nestedArrayOptional_0__remove",
+ "onClick": [Function],
+ "size": undefined,
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-red-light-color)",
+ "--ai-hover": "var(--mantine-color-red-light-hover)",
+ "--ai-size": "var(--ai-size-sm)",
+ },
+ "title": "Remove",
+ "type": "button",
},
- "type": "div",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
+ "className": "m_4081bf90",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
- "style": {},
+ "style": {
+ "--group-align": "center",
+ "--group-gap": "calc(0.125rem * var(--mantine-scale))",
+ "--group-justify": "flex-start",
+ "--group-wrap": "nowrap",
+ "marginBottom": "calc(0.4375rem * var(--mantine-scale))",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_2415a157 __m__-r14t",
+ "className": "m_8bffd616 __m__-r13a",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_7485cace",
- "data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root_optionalObjectWithOneofs",
- "size": undefined,
- "style": {
- "padding": "0rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6d731127",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--stack-align": "stretch",
- "--stack-gap": "var(--mantine-spacing-md)",
- "--stack-justify": "flex-start",
- "marginBottom": "1rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-undefined",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_2415a157 __m__-r11f",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_7485cace",
- "data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root",
- "size": undefined,
- "style": {
- "padding": "0rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "Submit",
- ],
- "props": {
- "className": "m_811560b9",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_80f1301b",
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_77c9d27d m_87cf2631",
- "data-size": undefined,
- "data-variant": "filled",
- "size": undefined,
- "style": {
- "--button-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--button-bg": "var(--mantine-color-blue-filled)",
- "--button-color": "var(--mantine-color-white)",
- "--button-hover": "var(--mantine-color-blue-filled-hover)",
- },
- "type": "submit",
- },
- "type": "button",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "acceptCharset": undefined,
- "action": undefined,
- "as": undefined,
- "autoComplete": undefined,
- "className": "rjsf",
- "encType": undefined,
- "id": undefined,
- "method": undefined,
- "name": undefined,
- "noValidate": false,
- "onSubmit": [Function],
- "target": undefined,
- },
- "type": "form",
- Symbol(cleaned): true,
- },
-]
-`;
-
-exports[`single fields optional data controls shows "add" optional controls when turned on in uiSchema and no formData 1`] = `
-[
- ,
- ,
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "test",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rl0{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rl4{--grid-gutter:var(--mantine-spacing-md);}",
+ "alignItems": "end",
+ "gap": "var(--mantine-spacing-xs)",
+ "justifyContent": "center",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-array-item",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-xs)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
},
- "data-mantine-styles": "inline",
- "nonce": undefined,
+ ],
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "style",
+ "type": "div",
Symbol(cleaned): true,
},
{
"children": [
{
"children": [
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rl6{--col-flex-grow:1;--col-flex-basis:0rem;--col-max-width:100%;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
{
"children": [
{
"children": [
- "nestedObjectOptional",
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
],
"props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional__title",
- "size": undefined,
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
"style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
+ "height": undefined,
+ "width": undefined,
},
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "h3",
+ "type": "svg",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_96bdd299 __m__-rl6",
+ "className": "m_8d3afb97",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {},
},
- "type": "div",
+ "type": "span",
Symbol(cleaned): true,
},
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rl9{--col-flex-grow:auto;--col-flex-basis:auto;--col-width:auto;--col-max-width:unset;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
+ ],
+ "props": {
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-disabled": true,
+ "data-size": "md",
+ "data-variant": "subtle",
+ "disabled": true,
+ "id": "root_nestedArrayOptional__add",
+ "onClick": [Function],
+ "size": undefined,
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
},
+ "title": "Add Item",
+ "type": "button",
+ },
+ "type": "button",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_4081bf90",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
+ "data-size": undefined,
+ "data-variant": "default",
+ "id": "root_nestedArrayOptional",
+ "size": undefined,
+ "style": {},
+ },
+ "type": "fieldset",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "nestedObject",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObject__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-r13r{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
{
"children": [
{
"children": [
{
"children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M12 5l0 14",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M5 12l14 0",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
+ "test",
+ ],
+ "props": {
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_nestedObject_test",
+ "id": "root_nestedObject_test-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
+ },
+ },
+ "type": "label",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": null,
"props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
+ "aria-describedby": undefined,
+ "aria-invalid": false,
+ "autoFocus": false,
+ "className": "m_8fb7ebe7",
+ "data-disabled": true,
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": true,
+ "id": "root_nestedObject_test",
+ "name": "root_nestedObject_test",
+ "placeholder": "",
+ "required": false,
+ "size": undefined,
+ "style": {},
+ "type": "text",
},
- "type": "svg",
+ "type": "input",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
+ "className": "m_6c018570",
+ "data-disabled": true,
+ "data-size": "sm",
+ "data-variant": "default",
"size": undefined,
- "style": {},
+ "style": {
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
+ },
},
- "type": "span",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-add-optional-data m_8d3f4000 m_87cf2631",
+ "className": "m_46b77525",
"data-size": "sm",
- "data-variant": "subtle",
- "id": "root_nestedObjectOptional__optionalAdd",
- "onClick": [Function],
+ "data-variant": undefined,
"size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-sm)",
- },
- "title": "Add data for optional field",
- "type": "button",
+ "style": {},
},
- "type": "button",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_96bdd299 __m__-rl9",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "className": "rjsf-field rjsf-field-string",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_dee7bd2f",
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
"style": {},
},
"type": "div",
@@ -15122,36 +14935,199 @@ exports[`single fields optional data controls shows "add" optional controls when
},
],
"props": {
- "className": "m_410352e9 __m__-rl4",
+ "className": "m_2415a157 __m__-r13r",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
- "style": {},
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root_nestedObject",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "nestedArray",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedArray__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h4",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
{
"children": null,
"props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rld{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "style",
+ "type": "div",
Symbol(cleaned): true,
},
{
- "children": null,
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-disabled": true,
+ "data-size": "md",
+ "data-variant": "subtle",
+ "disabled": true,
+ "id": "root_nestedArray__add",
+ "onClick": [Function],
+ "size": undefined,
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
+ },
+ "title": "Add Item",
+ "type": "button",
+ },
+ "type": "button",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "className": "m_2415a157 __m__-rld",
+ "className": "m_4081bf90",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {
- "marginBottom": "var(--mantine-spacing-sm)",
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
},
},
"type": "div",
@@ -15159,22 +15135,19 @@ exports[`single fields optional data controls shows "add" optional controls when
},
],
"props": {
- "className": "m_7485cace",
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
"data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root_nestedObjectOptional",
+ "data-variant": "default",
+ "id": "root_nestedArray",
"size": undefined,
- "style": {
- "padding": "0rem",
- },
+ "style": {},
},
- "type": "div",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-object",
+ "className": "rjsf-field rjsf-field-array",
"style": undefined,
},
"type": "div",
@@ -15201,60 +15174,106 @@ exports[`single fields optional data controls shows "add" optional controls when
"children": [
{
"children": [
- "nestedArrayOptional",
+ {
+ "children": [
+ "optionalObjectWithOneofs",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_optionalObjectWithOneofs__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-r14e{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ "No data for optional field",
+ ],
+ "props": {
+ "id": "root_optionalObjectWithOneofs__optionalMsg",
+ },
+ "type": "em",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_2415a157 __m__-r14e",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
],
"props": {
- "className": "m_8a5d1357",
- "data-order": 4,
+ "className": "m_7485cace",
"data-size": undefined,
+ "data-strategy": "block",
"data-variant": undefined,
- "id": "root_nestedArrayOptional__title",
+ "id": "root_optionalObjectWithOneofs",
"size": undefined,
"style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
+ "padding": "0rem",
},
},
- "type": "h4",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_90794832",
- "style": {},
- },
- "type": "legend",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
+ "className": "m_6d731127",
"data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedArrayOptional",
+ "data-variant": undefined,
"size": undefined,
- "style": {},
+ "style": {
+ "--stack-align": "stretch",
+ "--stack-gap": "var(--mantine-spacing-md)",
+ "--stack-justify": "flex-start",
+ "marginBottom": "1rem",
+ },
},
- "type": "fieldset",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-array",
+ "className": "rjsf-field rjsf-field-undefined",
"style": undefined,
},
"type": "div",
@@ -15277,39 +15296,6 @@ exports[`single fields optional data controls shows "add" optional controls when
"children": [
{
"children": [
- {
- "children": [
- "nestedObject",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObject__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rlm{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
{
"children": [
{
@@ -15318,118 +15304,87 @@ exports[`single fields optional data controls shows "add" optional controls when
"children": [
{
"children": [
- {
- "children": [
- "test",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_nestedObject_test",
- "id": "root_nestedObject_test-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-size": undefined,
- "data-variant": "default",
- "disabled": false,
- "id": "root_nestedObject_test",
- "name": "root_nestedObject_test",
- "onBlur": [Function],
- "onChange": [Function],
- "onFocus": [Function],
- "placeholder": "",
- "required": false,
- "size": undefined,
- "style": {},
- "type": "text",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6c018570",
- "data-size": "sm",
- "data-variant": "default",
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
+ "optionalArrayWithAnyofs",
],
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
"data-variant": undefined,
+ "id": "root_optionalArrayWithAnyofs__title",
"size": undefined,
- "style": {},
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
},
- "type": "div",
+ "type": "h4",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ "No data for optional field",
+ ],
+ "props": {
+ "id": "root_optionalArrayWithAnyofs__optionalMsg",
+ },
+ "type": "em",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
"data-size": undefined,
- "data-variant": undefined,
+ "data-variant": "default",
+ "id": "root_optionalArrayWithAnyofs",
"size": undefined,
"style": {},
},
- "type": "div",
+ "type": "fieldset",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "m_2415a157 __m__-rlm",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_7485cace",
+ "className": "m_6d731127",
"data-size": undefined,
- "data-strategy": "block",
"data-variant": undefined,
- "id": "root_nestedObject",
"size": undefined,
"style": {
- "padding": "0rem",
+ "--stack-align": "stretch",
+ "--stack-gap": "var(--mantine-spacing-md)",
+ "--stack-justify": "flex-start",
+ "marginBottom": "1rem",
},
},
"type": "div",
@@ -15437,7 +15392,7 @@ exports[`single fields optional data controls shows "add" optional controls when
},
],
"props": {
- "className": "rjsf-field rjsf-field-object",
+ "className": "rjsf-field rjsf-field-undefined",
"style": undefined,
},
"type": "div",
@@ -15454,242 +15409,247 @@ exports[`single fields optional data controls shows "add" optional controls when
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_2415a157 __m__-r11m",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "Submit",
+ ],
+ "props": {
+ "className": "m_811560b9",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_80f1301b",
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_77c9d27d m_87cf2631",
+ "data-size": undefined,
+ "data-variant": "filled",
+ "size": undefined,
+ "style": {
+ "--button-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--button-bg": "var(--mantine-color-blue-filled)",
+ "--button-color": "var(--mantine-color-white)",
+ "--button-hover": "var(--mantine-color-blue-filled-hover)",
+ },
+ "type": "submit",
+ },
+ "type": "button",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "acceptCharset": undefined,
+ "action": undefined,
+ "as": undefined,
+ "autoComplete": undefined,
+ "className": "rjsf",
+ "encType": undefined,
+ "id": undefined,
+ "method": undefined,
+ "name": undefined,
+ "noValidate": false,
+ "onSubmit": [Function],
+ "target": undefined,
+ },
+ "type": "form",
+ Symbol(cleaned): true,
+ },
+]
+`;
+
+exports[`single fields optional data controls shows "add" optional controls when turned on in uiSchema and no formData 1`] = `
+[
+ ,
+ ,
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "test",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rlu{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": [
{
"children": [
{
"children": [
- {
- "children": [
- {
- "children": [
- "nestedArray",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 4,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedArray__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_90794832",
- "style": {},
- },
- "type": "legend",
- Symbol(cleaned): true,
- },
{
"children": null,
"props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rm2{--grid-gutter:var(--mantine-spacing-md);}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
},
- "type": "div",
+ "type": "style",
Symbol(cleaned): true,
},
{
"children": [
{
"children": [
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rm4{--col-flex-grow:1;--col-flex-basis:0rem;--col-max-width:100%;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
{
"children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M12 5l0 14",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M5 12l14 0",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
+ {
+ "children": [
+ "nestedObjectOptional",
],
"props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional__title",
+ "size": undefined,
"style": {
- "height": undefined,
- "width": undefined,
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
},
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "svg",
+ "type": "h3",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_8d3afb97",
+ "className": "m_96bdd299 __m__-rm4",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {},
},
- "type": "span",
+ "type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-size": "md",
- "data-variant": "subtle",
- "id": "root_nestedArray__add",
- "onClick": [Function],
- "size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
- },
- "title": "Add Item",
- "type": "button",
- },
- "type": "button",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_4081bf90",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
- "data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedArray",
- "size": undefined,
- "style": {},
- },
- "type": "fieldset",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-array",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "optionalObjectWithOneofs",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_optionalObjectWithOneofs__oneof_select",
- "id": "root_optionalObjectWithOneofs__oneof_select-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": null,
"props": {
- "aria-describedby": undefined,
- "aria-haspopup": "listbox",
- "aria-invalid": false,
- "autoComplete": "off",
- "className": "m_8fb7ebe7",
- "data-size": undefined,
- "data-variant": "default",
- "disabled": false,
- "enableOptionalDataFieldForType": [],
- "id": "root_optionalObjectWithOneofs__oneof_select",
- "onBlur": [Function],
- "onChange": [Function],
- "onClick": [Function],
- "onFocus": [Function],
- "onKeyDown": [Function],
- "readOnly": false,
- "required": undefined,
- "size": undefined,
- "style": {},
- "value": "Option 1",
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rm7{--col-flex-grow:auto;--col-flex-basis:auto;--col-width:auto;--col-max-width:unset;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
},
- "type": "input",
+ "type": "style",
Symbol(cleaned): true,
},
{
@@ -15697,60 +15657,110 @@ exports[`single fields optional data controls shows "add" optional controls when
{
"children": [
{
- "children": null,
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
+ ],
"props": {
- "clipRule": "evenodd",
- "d": "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",
- "fill": "currentColor",
- "fillRule": "evenodd",
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "path",
+ "type": "span",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_2943220b",
- "data-combobox-chevron": true,
- "data-size": undefined,
- "data-variant": undefined,
- "fill": "none",
+ "className": "rjsf-add-optional-data m_8d3f4000 m_87cf2631",
+ "data-size": "sm",
+ "data-variant": "subtle",
+ "id": "root_nestedObjectOptional__optionalAdd",
+ "onClick": [Function],
"size": undefined,
- "style": {},
- "viewBox": "0 0 15 15",
- "xmlns": "http://www.w3.org/2000/svg",
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-sm)",
+ },
+ "title": "Add data for optional field",
+ "type": "button",
},
- "type": "svg",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_82577fc2",
- "data-position": "right",
+ "className": "m_96bdd299 __m__-rm7",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
"style": {},
},
"type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6c018570",
- "data-size": "sm",
- "data-variant": "default",
- "data-with-right-section": true,
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- "--input-right-section-pointer-events": "none",
+ Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_dee7bd2f",
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
+ "className": "m_410352e9 __m__-rm2",
+ "data-size": undefined,
"data-variant": undefined,
"size": undefined,
"style": {},
@@ -15758,220 +15768,247 @@ exports[`single fields optional data controls shows "add" optional controls when
"type": "div",
Symbol(cleaned): true,
},
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rmb{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "m_2415a157 __m__-rmb",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root_nestedObjectOptional",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
{
"children": [
{
"children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "clipRule": "evenodd",
- "d": "M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",
- "fill": "currentColor",
- "fillRule": "evenodd",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "aria-hidden": true,
- "className": "m_8ee53fc2",
- "fill": "none",
- "style": undefined,
- "viewBox": "0 0 10 7",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- "type": "svg",
- Symbol(cleaned): true,
- },
- {
- "children": [
- "Option 1",
- ],
- "props": {},
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "aria-selected": true,
- "className": "m_92253aa5 m_390b5f4",
- "data-checked": true,
- "data-combobox-active": true,
- "data-combobox-option": true,
- "data-size": undefined,
- "data-variant": undefined,
- "id": ":rmn:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
- "size": undefined,
- "style": {},
- "value": "0",
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- "Option 2",
- ],
- "props": {},
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "aria-selected": false,
- "className": "m_92253aa5 m_390b5f4",
- "data-combobox-option": true,
- "data-size": undefined,
- "data-variant": undefined,
- "id": ":rmp:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
- "size": undefined,
- "style": {},
- "value": "1",
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- "Option 3",
- ],
- "props": {},
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "aria-selected": false,
- "className": "m_92253aa5 m_390b5f4",
- "data-combobox-option": true,
- "data-size": undefined,
- "data-variant": undefined,
- "id": ":rmr:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
- "size": undefined,
- "style": {},
- "value": "2",
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_b1336c6",
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_c0783ff9",
- "data-horizontal-hidden": undefined,
- "data-offset-scrollbars": "y",
- "data-scrollbars": "xy",
- "data-size": undefined,
- "data-variant": undefined,
- "data-vertical-hidden": undefined,
- "onScroll": [Function],
- "size": undefined,
- "style": {
- "overflowX": "scroll",
- "overflowY": "scroll",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "m_c44ba933",
- "data-hidden": undefined,
- "data-mantine-scrollbar": true,
- "data-orientation": "horizontal",
- "data-state": "hidden",
- "onLostPointerCapture": [Function],
- "onMouseEnter": [Function],
- "onMouseLeave": [Function],
- "onPointerDown": [Function],
- "onPointerEnter": [Function],
- "onPointerLeave": [Function],
- "onPointerMove": [Function],
- "onPointerUp": [Function],
- "style": {
- "--sa-thumb-width": "18px",
- "position": "absolute",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
+ "nestedArrayOptional",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedArrayOptional__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h4",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
+ "data-size": undefined,
+ "data-variant": "default",
+ "id": "root_nestedArrayOptional",
+ "size": undefined,
+ "style": {},
+ },
+ "type": "fieldset",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "nestedObject",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedObject__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rmk{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "test",
+ ],
+ "props": {
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_nestedObject_test",
+ "id": "root_nestedObject_test-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
},
+ },
+ "type": "label",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": null,
"props": {
- "className": "m_c44ba933",
- "data-hidden": undefined,
- "data-mantine-scrollbar": true,
- "data-orientation": "vertical",
- "data-state": "hidden",
- "onLostPointerCapture": [Function],
- "onMouseEnter": [Function],
- "onMouseLeave": [Function],
- "onPointerDown": [Function],
- "onPointerEnter": [Function],
- "onPointerLeave": [Function],
- "onPointerMove": [Function],
- "onPointerUp": [Function],
- "style": {
- "--sa-thumb-height": "18px",
- "position": "absolute",
- },
+ "aria-describedby": undefined,
+ "aria-invalid": false,
+ "autoFocus": false,
+ "className": "m_8fb7ebe7",
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": false,
+ "id": "root_nestedObject_test",
+ "name": "root_nestedObject_test",
+ "onBlur": [Function],
+ "onChange": [Function],
+ "onFocus": [Function],
+ "placeholder": "",
+ "required": false,
+ "size": undefined,
+ "style": {},
+ "type": "text",
},
- "type": "div",
+ "type": "input",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_d57069b5",
- "data-autosize": "true",
- "data-size": undefined,
- "data-variant": undefined,
+ "className": "m_6c018570",
+ "data-size": "sm",
+ "data-variant": "default",
"size": undefined,
"style": {
- "--sa-corner-height": "0px",
- "--sa-corner-width": "0px",
- "--scrollarea-scrollbar-size": "var(--combobox-padding)",
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
},
},
"type": "div",
@@ -15979,279 +16016,247 @@ exports[`single fields optional data controls shows "add" optional controls when
},
],
"props": {
- "className": "",
- "data-size": undefined,
+ "className": "m_46b77525",
+ "data-size": "sm",
"data-variant": undefined,
"size": undefined,
- "style": {
- "display": "flex",
- "flex": 1,
- "flexDirection": "column",
- "minHeight": 0,
- "minWidth": 0,
- "overflow": "hidden",
- },
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "display": "flex",
- "maxHeight": "calc(13.75rem * var(--mantine-scale))",
- "overflow": "hidden",
- },
+ "className": "rjsf-field rjsf-field-string",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "aria-labelledby": "root_optionalObjectWithOneofs__oneof_select-label",
- "className": "m_b2821a6e",
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_2415a157 __m__-rmk",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root_nestedObject",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "nestedArray",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
"data-size": undefined,
"data-variant": undefined,
- "id": "",
- "onMouseDown": [Function],
- "role": "listbox",
+ "id": "root_nestedArray__title",
"size": undefined,
"style": {
- "--combobox-option-fz": "var(--mantine-font-size-sm)",
- "--combobox-option-padding": "var(--combobox-option-padding-sm)",
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
},
},
- "type": "div",
+ "type": "h4",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_38a85659 m_88b62a41",
- "data-composed": true,
- "data-fixed": undefined,
- "data-position": "bottom",
- "data-size": undefined,
- "data-variant": undefined,
- "onKeyDownCapture": [Function],
- "role": "presentation",
- "size": undefined,
- "style": {
- "--combobox-option-fz": "var(--mantine-font-size-sm)",
- "--combobox-option-padding": "var(--combobox-option-padding-sm)",
- "display": "none",
- "left": 0,
- "top": 0,
- "width": undefined,
- "zIndex": 300,
- },
+ "className": "m_90794832",
+ "style": {},
},
- "type": "div",
+ "type": "legend",
Symbol(cleaned): true,
},
{
"children": null,
"props": {
- "disabled": false,
- "form": undefined,
- "name": "root_optionalObjectWithOneofs__oneof_select",
- "type": "hidden",
- "value": "0",
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
},
- "type": "input",
+ "type": "div",
Symbol(cleaned): true,
},
{
"children": [
{
"children": [
- {
- "children": [
- "optionalObjectWithOneofs",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_optionalObjectWithOneofs__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rmv{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
{
"children": [
{
"children": [
{
- "children": [
- {
- "children": [
- {
- "children": [
- "name",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_optionalObjectWithOneofs_name",
- "id": "root_optionalObjectWithOneofs_name-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "id": "root_optionalObjectWithOneofs_name",
- "name": "root_optionalObjectWithOneofs_name",
- "placeholder": "",
- "required": false,
- "size": undefined,
- "style": {},
- "type": "text",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_46b77525",
- "data-size": "sm",
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
+ "children": null,
"props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
},
- "type": "div",
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
},
- "type": "div",
+ "type": "svg",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_2415a157 __m__-rmv",
+ "className": "m_8d3afb97",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
+ "style": {},
},
- "type": "div",
+ "type": "span",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_7485cace",
- "data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root_optionalObjectWithOneofs",
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-size": "md",
+ "data-variant": "subtle",
+ "id": "root_nestedArray__add",
+ "onClick": [Function],
"size": undefined,
"style": {
- "padding": "0rem",
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
},
+ "title": "Add Item",
+ "type": "button",
},
- "type": "div",
+ "type": "button",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
+ "className": "m_4081bf90",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
+ },
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_6d731127",
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
"data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "--stack-align": "stretch",
- "--stack-gap": "var(--mantine-spacing-md)",
- "--stack-justify": "flex-start",
- "marginBottom": "1rem",
- },
+ "data-variant": "default",
+ "id": "root_nestedArray",
+ "size": undefined,
+ "style": {},
},
- "type": "div",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-undefined",
+ "className": "rjsf-field rjsf-field-array",
"style": undefined,
},
"type": "div",
@@ -16268,243 +16273,266 @@ exports[`single fields optional data controls shows "add" optional controls when
"type": "div",
Symbol(cleaned): true,
},
- ],
- "props": {
- "className": "m_2415a157 __m__-rl0",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_7485cace",
- "data-size": undefined,
- "data-strategy": "block",
- "data-variant": undefined,
- "id": "root",
- "size": undefined,
- "style": {
- "padding": "0rem",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-object",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "Submit",
- ],
- "props": {
- "className": "m_811560b9",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_80f1301b",
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_77c9d27d m_87cf2631",
- "data-size": undefined,
- "data-variant": "filled",
- "size": undefined,
- "style": {
- "--button-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--button-bg": "var(--mantine-color-blue-filled)",
- "--button-color": "var(--mantine-color-white)",
- "--button-hover": "var(--mantine-color-blue-filled-hover)",
- },
- "type": "submit",
- },
- "type": "button",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "acceptCharset": undefined,
- "action": undefined,
- "as": undefined,
- "autoComplete": undefined,
- "className": "rjsf",
- "encType": undefined,
- "id": undefined,
- "method": undefined,
- "name": undefined,
- "noValidate": false,
- "onSubmit": [Function],
- "target": undefined,
- },
- "type": "form",
- Symbol(cleaned): true,
- },
-]
-`;
-
-exports[`single fields optional data controls shows "add" optional controls when turned on in uiSchema, disabled and no formData 1`] = `
-[
- ,
- ,
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "test",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rvc{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
- {
- "children": [
{
"children": [
{
"children": [
{
"children": [
- {
- "children": [
- "nestedObjectOptional",
- ],
- "props": {
- "className": "m_8a5d1357",
- "data-order": 3,
- "data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedObjectOptional__title",
- "size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h3-font-weight)",
- "--title-fz": "var(--mantine-h3-font-size)",
- "--title-lh": "var(--mantine-h3-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h3",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "dangerouslySetInnerHTML": {
- "__html": ".__m__-rvh{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
- },
- "data-mantine-styles": "inline",
- "nonce": undefined,
- },
- "type": "style",
- Symbol(cleaned): true,
- },
{
"children": [
{
"children": [
- "No data for optional field",
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rn6{--grid-gutter:var(--mantine-spacing-md);}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rn8{--col-flex-grow:1;--col-flex-basis:0rem;--col-max-width:100%;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ "optionalObjectWithOneofs",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_optionalObjectWithOneofs__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_96bdd299 __m__-rn8",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rnb{--col-flex-grow:auto;--col-flex-basis:auto;--col-width:auto;--col-max-width:unset;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-add-optional-data m_8d3f4000 m_87cf2631",
+ "data-size": "sm",
+ "data-variant": "subtle",
+ "id": "root_optionalObjectWithOneofs__optionalAdd",
+ "onClick": [Function],
+ "size": undefined,
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-sm)",
+ },
+ "title": "Add data for optional field",
+ "type": "button",
+ },
+ "type": "button",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_96bdd299 __m__-rnb",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_dee7bd2f",
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_410352e9 __m__-rn6",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-rnf{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "m_2415a157 __m__-rnf",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
],
"props": {
- "id": "root_nestedObjectOptional__optionalMsg",
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root_optionalObjectWithOneofs",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
},
- "type": "em",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_2415a157 __m__-rvh",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "marginBottom": "var(--mantine-spacing-sm)",
- },
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_7485cace",
+ "className": "m_6d731127",
"data-size": undefined,
- "data-strategy": "block",
"data-variant": undefined,
- "id": "root_nestedObjectOptional",
"size": undefined,
"style": {
- "padding": "0rem",
+ "--stack-align": "stretch",
+ "--stack-gap": "var(--mantine-spacing-md)",
+ "--stack-justify": "flex-start",
+ "marginBottom": "1rem",
},
},
"type": "div",
@@ -16512,7 +16540,7 @@ exports[`single fields optional data controls shows "add" optional controls when
},
],
"props": {
- "className": "rjsf-field rjsf-field-object",
+ "className": "rjsf-field rjsf-field-undefined",
"style": undefined,
},
"type": "div",
@@ -16539,71 +16567,88 @@ exports[`single fields optional data controls shows "add" optional controls when
"children": [
{
"children": [
- "nestedArrayOptional",
+ {
+ "children": [
+ {
+ "children": [
+ "optionalArrayWithAnyofs",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_optionalArrayWithAnyofs__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h4",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
],
"props": {
- "className": "m_8a5d1357",
- "data-order": 4,
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
"data-size": undefined,
- "data-variant": undefined,
- "id": "root_nestedArrayOptional__title",
+ "data-variant": "default",
+ "id": "root_optionalArrayWithAnyofs",
"size": undefined,
- "style": {
- "--title-fw": "var(--mantine-h4-font-weight)",
- "--title-fz": "var(--mantine-h4-font-size)",
- "--title-lh": "var(--mantine-h4-line-height)",
- "fontWeight": "normal",
- },
- },
- "type": "h4",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_90794832",
- "style": {},
- },
- "type": "legend",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- "No data for optional field",
- ],
- "props": {
- "id": "root_nestedArrayOptional__optionalMsg",
+ "style": {},
},
- "type": "em",
+ "type": "fieldset",
Symbol(cleaned): true,
},
],
"props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
+ "className": "m_6d731127",
"data-size": undefined,
- "data-variant": "default",
- "id": "root_nestedArrayOptional",
+ "data-variant": undefined,
"size": undefined,
- "style": {},
+ "style": {
+ "--stack-align": "stretch",
+ "--stack-gap": "var(--mantine-spacing-md)",
+ "--stack-justify": "flex-start",
+ "marginBottom": "1rem",
+ },
},
- "type": "fieldset",
+ "type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "rjsf-field rjsf-field-array",
+ "className": "rjsf-field rjsf-field-undefined",
"style": undefined,
},
"type": "div",
@@ -16620,6 +16665,169 @@ exports[`single fields optional data controls shows "add" optional controls when
"type": "div",
Symbol(cleaned): true,
},
+ ],
+ "props": {
+ "className": "m_2415a157 __m__-rlu",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "Submit",
+ ],
+ "props": {
+ "className": "m_811560b9",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_80f1301b",
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_77c9d27d m_87cf2631",
+ "data-size": undefined,
+ "data-variant": "filled",
+ "size": undefined,
+ "style": {
+ "--button-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--button-bg": "var(--mantine-color-blue-filled)",
+ "--button-color": "var(--mantine-color-white)",
+ "--button-hover": "var(--mantine-color-blue-filled-hover)",
+ },
+ "type": "submit",
+ },
+ "type": "button",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "acceptCharset": undefined,
+ "action": undefined,
+ "as": undefined,
+ "autoComplete": undefined,
+ "className": "rjsf",
+ "encType": undefined,
+ "id": undefined,
+ "method": undefined,
+ "name": undefined,
+ "noValidate": false,
+ "onSubmit": [Function],
+ "target": undefined,
+ },
+ "type": "form",
+ Symbol(cleaned): true,
+ },
+]
+`;
+
+exports[`single fields optional data controls shows "add" optional controls when turned on in uiSchema, disabled and no formData 1`] = `
+[
+ ,
+ ,
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "test",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-r10a{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
{
"children": [
{
@@ -16628,14 +16836,14 @@ exports[`single fields optional data controls shows "add" optional controls when
"children": [
{
"children": [
- "nestedObject",
+ "nestedObjectOptional",
],
"props": {
"className": "m_8a5d1357",
"data-order": 3,
"data-size": undefined,
"data-variant": undefined,
- "id": "root_nestedObject__title",
+ "id": "root_nestedObjectOptional__title",
"size": undefined,
"style": {
"--title-fw": "var(--mantine-h3-font-weight)",
@@ -16651,7 +16859,7 @@ exports[`single fields optional data controls shows "add" optional controls when
"children": null,
"props": {
"dangerouslySetInnerHTML": {
- "__html": ".__m__-rvq{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ "__html": ".__m__-r10f{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
},
"data-mantine-styles": "inline",
"nonce": undefined,
@@ -16662,105 +16870,18 @@ exports[`single fields optional data controls shows "add" optional controls when
{
"children": [
{
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "test",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_nestedObject_test",
- "id": "root_nestedObject_test-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "id": "root_nestedObject_test",
- "name": "root_nestedObject_test",
- "onBlur": [Function],
- "onChange": [Function],
- "onFocus": [Function],
- "placeholder": "",
- "required": false,
- "size": undefined,
- "style": {},
- "type": "text",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_46b77525",
- "data-size": "sm",
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
+ "children": [
+ "No data for optional field",
],
"props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "id": "root_nestedObjectOptional__optionalMsg",
},
- "type": "div",
+ "type": "em",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_2415a157 __m__-rvq",
+ "className": "m_2415a157 __m__-r10f",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
@@ -16777,7 +16898,7 @@ exports[`single fields optional data controls shows "add" optional controls when
"data-size": undefined,
"data-strategy": "block",
"data-variant": undefined,
- "id": "root_nestedObject",
+ "id": "root_nestedObjectOptional",
"size": undefined,
"style": {
"padding": "0rem",
@@ -16815,14 +16936,14 @@ exports[`single fields optional data controls shows "add" optional controls when
"children": [
{
"children": [
- "nestedArray",
+ "nestedArrayOptional",
],
"props": {
"className": "m_8a5d1357",
"data-order": 4,
"data-size": undefined,
"data-variant": undefined,
- "id": "root_nestedArray__title",
+ "id": "root_nestedArrayOptional__title",
"size": undefined,
"style": {
"--title-fw": "var(--mantine-h4-font-weight)",
@@ -16842,275 +16963,97 @@ exports[`single fields optional data controls shows "add" optional controls when
"type": "legend",
Symbol(cleaned): true,
},
- {
- "children": null,
- "props": {
- "className": "row rjsf-array-item-list",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
{
"children": [
{
"children": [
- {
- "children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "d": "M0 0h24v24H0z",
- "fill": "none",
- "stroke": "none",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M12 5l0 14",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "d": "M5 12l14 0",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
- "fill": "none",
- "height": "24",
- "stroke": "currentColor",
- "strokeLinecap": "round",
- "strokeLinejoin": "round",
- "strokeWidth": "2",
- "style": {
- "height": undefined,
- "width": undefined,
- },
- "viewBox": "0 0 24 24",
- "width": "24",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- "type": "svg",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_8d3afb97",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "span",
- Symbol(cleaned): true,
- },
+ "No data for optional field",
],
"props": {
- "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
- "data-disabled": true,
- "data-size": "md",
- "data-variant": "subtle",
- "disabled": true,
- "id": "root_nestedArray__add",
- "onClick": [Function],
- "size": undefined,
- "style": {
- "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
- "--ai-bg": "transparent",
- "--ai-color": "var(--mantine-color-blue-light-color)",
- "--ai-hover": "var(--mantine-color-blue-light-hover)",
- "--ai-size": "var(--ai-size-md)",
- },
- "title": "Add Item",
- "type": "button",
+ "id": "root_nestedArrayOptional__optionalMsg",
},
- "type": "button",
+ "type": "em",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_4081bf90",
+ "className": "row rjsf-array-item-list",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
- "style": {
- "--group-align": "center",
- "--group-gap": "var(--mantine-spacing-md)",
- "--group-justify": "flex-end",
- "--group-wrap": "wrap",
- },
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
"data-size": undefined,
"data-variant": "default",
- "id": "root_nestedArray",
+ "id": "root_nestedArrayOptional",
"size": undefined,
"style": {},
},
"type": "fieldset",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-array",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "optionalObjectWithOneofs",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_optionalObjectWithOneofs__oneof_select",
- "id": "root_optionalObjectWithOneofs__oneof_select-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-haspopup": "listbox",
- "aria-invalid": false,
- "autoComplete": "off",
- "className": "m_8fb7ebe7",
- "data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "enableOptionalDataFieldForType": [],
- "id": "root_optionalObjectWithOneofs__oneof_select",
- "onBlur": [Function],
- "onChange": [Function],
- "onClick": [Function],
- "onFocus": [Function],
- "onKeyDown": [Function],
- "readOnly": false,
- "required": undefined,
- "size": undefined,
- "style": {},
- "value": "Option 1",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "clipRule": "evenodd",
- "d": "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",
- "fill": "currentColor",
- "fillRule": "evenodd",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_2943220b",
- "data-combobox-chevron": true,
- "data-size": undefined,
- "data-variant": undefined,
- "fill": "none",
- "size": undefined,
- "style": {},
- "viewBox": "0 0 15 15",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- "type": "svg",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_82577fc2",
- "data-position": "right",
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
- "data-with-right-section": true,
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- "--input-right-section-pointer-events": "none",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "nestedObject",
],
"props": {
- "className": "m_46b77525",
- "data-size": "sm",
+ "className": "m_8a5d1357",
+ "data-order": 3,
+ "data-size": undefined,
"data-variant": undefined,
+ "id": "root_nestedObject__title",
"size": undefined,
- "style": {},
+ "style": {
+ "--title-fw": "var(--mantine-h3-font-weight)",
+ "--title-fz": "var(--mantine-h3-font-size)",
+ "--title-lh": "var(--mantine-h3-line-height)",
+ "fontWeight": "normal",
+ },
},
- "type": "div",
+ "type": "h3",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "dangerouslySetInnerHTML": {
+ "__html": ".__m__-r10o{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ },
+ "data-mantine-styles": "inline",
+ "nonce": undefined,
+ },
+ "type": "style",
Symbol(cleaned): true,
},
{
@@ -17123,210 +17066,60 @@ exports[`single fields optional data controls shows "add" optional controls when
"children": [
{
"children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": null,
- "props": {
- "clipRule": "evenodd",
- "d": "M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",
- "fill": "currentColor",
- "fillRule": "evenodd",
- },
- "type": "path",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "aria-hidden": true,
- "className": "m_8ee53fc2",
- "fill": "none",
- "style": undefined,
- "viewBox": "0 0 10 7",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- "type": "svg",
- Symbol(cleaned): true,
- },
- {
- "children": [
- "Option 1",
- ],
- "props": {},
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "aria-selected": true,
- "className": "m_92253aa5 m_390b5f4",
- "data-checked": true,
- "data-combobox-active": true,
- "data-combobox-option": true,
- "data-size": undefined,
- "data-variant": undefined,
- "id": ":r10r:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
- "size": undefined,
- "style": {},
- "value": "0",
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- "Option 2",
- ],
- "props": {},
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "aria-selected": false,
- "className": "m_92253aa5 m_390b5f4",
- "data-combobox-option": true,
- "data-size": undefined,
- "data-variant": undefined,
- "id": ":r10t:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
- "size": undefined,
- "style": {},
- "value": "1",
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": [
- "Option 3",
- ],
- "props": {},
- "type": "span",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "aria-selected": false,
- "className": "m_92253aa5 m_390b5f4",
- "data-combobox-option": true,
- "data-size": undefined,
- "data-variant": undefined,
- "id": ":r10v:",
- "onClick": [Function],
- "onMouseDown": [Function],
- "onMouseOver": [Function],
- "role": "option",
- "size": undefined,
- "style": {},
- "value": "2",
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_b1336c6",
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_c0783ff9",
- "data-horizontal-hidden": undefined,
- "data-offset-scrollbars": "y",
- "data-scrollbars": "xy",
- "data-size": undefined,
- "data-variant": undefined,
- "data-vertical-hidden": undefined,
- "onScroll": [Function],
- "size": undefined,
- "style": {
- "overflowX": "scroll",
- "overflowY": "scroll",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- {
- "children": null,
- "props": {
- "className": "m_c44ba933",
- "data-hidden": undefined,
- "data-mantine-scrollbar": true,
- "data-orientation": "horizontal",
- "data-state": "hidden",
- "onLostPointerCapture": [Function],
- "onMouseEnter": [Function],
- "onMouseLeave": [Function],
- "onPointerDown": [Function],
- "onPointerEnter": [Function],
- "onPointerLeave": [Function],
- "onPointerMove": [Function],
- "onPointerUp": [Function],
- "style": {
- "--sa-thumb-width": "18px",
- "position": "absolute",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
+ "test",
+ ],
+ "props": {
+ "className": "m_8fdc1311",
+ "data-size": "sm",
+ "data-variant": undefined,
+ "htmlFor": "root_nestedObject_test",
+ "id": "root_nestedObject_test-label",
+ "onMouseDown": [Function],
+ "size": undefined,
+ "style": {
+ "--input-label-size": "var(--mantine-font-size-sm)",
},
- {
- "children": null,
- "props": {
- "className": "m_c44ba933",
- "data-hidden": undefined,
- "data-mantine-scrollbar": true,
- "data-orientation": "vertical",
- "data-state": "hidden",
- "onLostPointerCapture": [Function],
- "onMouseEnter": [Function],
- "onMouseLeave": [Function],
- "onPointerDown": [Function],
- "onPointerEnter": [Function],
- "onPointerLeave": [Function],
- "onPointerMove": [Function],
- "onPointerUp": [Function],
- "style": {
- "--sa-thumb-height": "18px",
- "position": "absolute",
- },
+ },
+ "type": "label",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "aria-describedby": undefined,
+ "aria-invalid": false,
+ "autoFocus": false,
+ "className": "m_8fb7ebe7",
+ "data-disabled": true,
+ "data-size": undefined,
+ "data-variant": "default",
+ "disabled": true,
+ "id": "root_nestedObject_test",
+ "name": "root_nestedObject_test",
+ "onBlur": [Function],
+ "onChange": [Function],
+ "onFocus": [Function],
+ "placeholder": "",
+ "required": false,
+ "size": undefined,
+ "style": {},
+ "type": "text",
},
- "type": "div",
+ "type": "input",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_d57069b5",
- "data-autosize": "true",
- "data-size": undefined,
- "data-variant": undefined,
+ "className": "m_6c018570",
+ "data-disabled": true,
+ "data-size": "sm",
+ "data-variant": "default",
"size": undefined,
"style": {
- "--sa-corner-height": "0px",
- "--sa-corner-width": "0px",
- "--scrollarea-scrollbar-size": "var(--combobox-padding)",
+ "--input-fz": "var(--mantine-font-size-sm)",
+ "--input-height": "var(--input-height-sm)",
},
},
"type": "div",
@@ -17334,92 +17127,271 @@ exports[`single fields optional data controls shows "add" optional controls when
},
],
"props": {
- "className": "",
- "data-size": undefined,
+ "className": "m_46b77525",
+ "data-size": "sm",
"data-variant": undefined,
"size": undefined,
- "style": {
- "display": "flex",
- "flex": 1,
- "flexDirection": "column",
- "minHeight": 0,
- "minWidth": 0,
- "overflow": "hidden",
- },
+ "style": {},
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {
- "display": "flex",
- "maxHeight": "calc(13.75rem * var(--mantine-scale))",
- "overflow": "hidden",
- },
+ "className": "rjsf-field rjsf-field-string",
+ "style": undefined,
},
"type": "div",
Symbol(cleaned): true,
},
],
"props": {
- "aria-labelledby": "root_optionalObjectWithOneofs__oneof_select-label",
- "className": "m_b2821a6e",
+ "className": "",
"data-size": undefined,
"data-variant": undefined,
- "id": "",
- "onMouseDown": [Function],
- "role": "listbox",
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_2415a157 __m__-r10o",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "marginBottom": "var(--mantine-spacing-sm)",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_7485cace",
+ "data-size": undefined,
+ "data-strategy": "block",
+ "data-variant": undefined,
+ "id": "root_nestedObject",
+ "size": undefined,
+ "style": {
+ "padding": "0rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-object",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "nestedArray",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_nestedArray__title",
"size": undefined,
"style": {
- "--combobox-option-fz": "var(--mantine-font-size-sm)",
- "--combobox-option-padding": "var(--combobox-option-padding-sm)",
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
},
},
- "type": "div",
+ "type": "h4",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_38a85659 m_88b62a41",
- "data-composed": true,
- "data-fixed": undefined,
- "data-hidden": true,
- "data-position": "bottom",
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": null,
+ "props": {
+ "d": "M0 0h24v24H0z",
+ "fill": "none",
+ "stroke": "none",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M12 5l0 14",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": null,
+ "props": {
+ "d": "M5 12l14 0",
+ },
+ "type": "path",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "icon icon-tabler icons-tabler-outline icon-tabler-plus",
+ "fill": "none",
+ "height": "24",
+ "stroke": "currentColor",
+ "strokeLinecap": "round",
+ "strokeLinejoin": "round",
+ "strokeWidth": "2",
+ "style": {
+ "height": undefined,
+ "width": undefined,
+ },
+ "viewBox": "0 0 24 24",
+ "width": "24",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ "type": "svg",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_8d3afb97",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "span",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-array-item-add m_8d3f4000 m_87cf2631",
+ "data-disabled": true,
+ "data-size": "md",
+ "data-variant": "subtle",
+ "disabled": true,
+ "id": "root_nestedArray__add",
+ "onClick": [Function],
+ "size": undefined,
+ "style": {
+ "--ai-bd": "calc(0.0625rem * var(--mantine-scale)) solid transparent",
+ "--ai-bg": "transparent",
+ "--ai-color": "var(--mantine-color-blue-light-color)",
+ "--ai-hover": "var(--mantine-color-blue-light-hover)",
+ "--ai-size": "var(--ai-size-md)",
+ },
+ "title": "Add Item",
+ "type": "button",
+ },
+ "type": "button",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_4081bf90",
"data-size": undefined,
"data-variant": undefined,
- "onKeyDownCapture": [Function],
- "role": "presentation",
"size": undefined,
"style": {
- "--combobox-option-fz": "var(--mantine-font-size-sm)",
- "--combobox-option-padding": "var(--combobox-option-padding-sm)",
- "display": "none",
- "left": 0,
- "top": 0,
- "width": undefined,
- "zIndex": 300,
+ "--group-align": "center",
+ "--group-gap": "var(--mantine-spacing-md)",
+ "--group-justify": "flex-end",
+ "--group-wrap": "wrap",
},
},
"type": "div",
Symbol(cleaned): true,
},
- {
- "children": null,
- "props": {
- "disabled": true,
- "form": undefined,
- "name": "root_optionalObjectWithOneofs__oneof_select",
- "type": "hidden",
- "value": "0",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
+ ],
+ "props": {
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string m_e9408a47",
+ "data-size": undefined,
+ "data-variant": "default",
+ "id": "root_nestedArray",
+ "size": undefined,
+ "style": {},
+ },
+ "type": "fieldset",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
{
"children": [
{
@@ -17449,7 +17421,7 @@ exports[`single fields optional data controls shows "add" optional controls when
"children": null,
"props": {
"dangerouslySetInnerHTML": {
- "__html": ".__m__-r113{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
+ "__html": ".__m__-r11b{--sg-spacing-x:var(--mantine-spacing-md);--sg-spacing-y:var(--mantine-spacing-md);--sg-cols:1;}",
},
"data-mantine-styles": "inline",
"nonce": undefined,
@@ -17461,101 +17433,17 @@ exports[`single fields optional data controls shows "add" optional controls when
"children": [
{
"children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- "name",
- ],
- "props": {
- "className": "m_8fdc1311",
- "data-size": "sm",
- "data-variant": undefined,
- "htmlFor": "root_optionalObjectWithOneofs_name",
- "id": "root_optionalObjectWithOneofs_name-label",
- "onMouseDown": [Function],
- "size": undefined,
- "style": {
- "--input-label-size": "var(--mantine-font-size-sm)",
- },
- },
- "type": "label",
- Symbol(cleaned): true,
- },
- {
- "children": [
- {
- "children": null,
- "props": {
- "aria-describedby": undefined,
- "aria-invalid": false,
- "autoFocus": false,
- "className": "m_8fb7ebe7",
- "data-disabled": true,
- "data-size": undefined,
- "data-variant": "default",
- "disabled": true,
- "id": "root_optionalObjectWithOneofs_name",
- "name": "root_optionalObjectWithOneofs_name",
- "placeholder": "",
- "required": false,
- "size": undefined,
- "style": {},
- "type": "text",
- },
- "type": "input",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_6c018570",
- "data-disabled": true,
- "data-size": "sm",
- "data-variant": "default",
- "size": undefined,
- "style": {
- "--input-fz": "var(--mantine-font-size-sm)",
- "--input-height": "var(--input-height-sm)",
- },
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "m_46b77525",
- "data-size": "sm",
- "data-variant": undefined,
- "size": undefined,
- "style": {},
- },
- "type": "div",
- Symbol(cleaned): true,
- },
- ],
- "props": {
- "className": "rjsf-field rjsf-field-string",
- "style": undefined,
- },
- "type": "div",
- Symbol(cleaned): true,
- },
+ "No data for optional field",
],
"props": {
- "className": "",
- "data-size": undefined,
- "data-variant": undefined,
- "size": undefined,
- "style": {},
+ "id": "root_optionalObjectWithOneofs__optionalMsg",
},
- "type": "div",
+ "type": "em",
Symbol(cleaned): true,
},
],
"props": {
- "className": "m_2415a157 __m__-r113",
+ "className": "m_2415a157 __m__-r11b",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
@@ -17624,9 +17512,128 @@ exports[`single fields optional data controls shows "add" optional controls when
"type": "div",
Symbol(cleaned): true,
},
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ {
+ "children": [
+ "optionalArrayWithAnyofs",
+ ],
+ "props": {
+ "className": "m_8a5d1357",
+ "data-order": 4,
+ "data-size": undefined,
+ "data-variant": undefined,
+ "id": "root_optionalArrayWithAnyofs__title",
+ "size": undefined,
+ "style": {
+ "--title-fw": "var(--mantine-h4-font-weight)",
+ "--title-fz": "var(--mantine-h4-font-size)",
+ "--title-lh": "var(--mantine-h4-line-height)",
+ "fontWeight": "normal",
+ },
+ },
+ "type": "h4",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_90794832",
+ "style": {},
+ },
+ "type": "legend",
+ Symbol(cleaned): true,
+ },
+ {
+ "children": [
+ {
+ "children": [
+ "No data for optional field",
+ ],
+ "props": {
+ "id": "root_optionalArrayWithAnyofs__optionalMsg",
+ },
+ "type": "em",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "row rjsf-array-item-list",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_84c9523a rjsf-field rjsf-field-array rjsf-field-array-of-string rjsf-optional-array-field m_e9408a47",
+ "data-size": undefined,
+ "data-variant": "default",
+ "id": "root_optionalArrayWithAnyofs",
+ "size": undefined,
+ "style": {},
+ },
+ "type": "fieldset",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-array",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "m_6d731127",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {
+ "--stack-align": "stretch",
+ "--stack-gap": "var(--mantine-spacing-md)",
+ "--stack-justify": "flex-start",
+ "marginBottom": "1rem",
+ },
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "rjsf-field rjsf-field-undefined",
+ "style": undefined,
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
+ ],
+ "props": {
+ "className": "",
+ "data-size": undefined,
+ "data-variant": undefined,
+ "size": undefined,
+ "style": {},
+ },
+ "type": "div",
+ Symbol(cleaned): true,
+ },
],
"props": {
- "className": "m_2415a157 __m__-rvc",
+ "className": "m_2415a157 __m__-r10a",
"data-size": undefined,
"data-variant": undefined,
"size": undefined,
diff --git a/packages/mui/test/__snapshots__/Form.test.tsx.snap b/packages/mui/test/__snapshots__/Form.test.tsx.snap
index b6f1877ca7..b9360e0929 100644
--- a/packages/mui/test/__snapshots__/Form.test.tsx.snap
+++ b/packages/mui/test/__snapshots__/Form.test.tsx.snap
@@ -9168,11 +9168,11 @@ label[data-shrink=false]+.MuiInputBase-formControl .emotion-128:focus::-ms-input
visibility: visible;
}
-.emotion-146 {
+.emotion-169 {
margin-top: 24px;
}
-.emotion-147 {
+.emotion-170 {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
@@ -9229,57 +9229,57 @@ label[data-shrink=false]+.MuiInputBase-formControl .emotion-128:focus::-ms-input
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}
-.emotion-147::-moz-focus-inner {
+.emotion-170::-moz-focus-inner {
border-style: none;
}
-.emotion-147.Mui-disabled {
+.emotion-170.Mui-disabled {
pointer-events: none;
cursor: default;
}
@media print {
- .emotion-147 {
+ .emotion-170 {
-webkit-print-color-adjust: exact;
color-adjust: exact;
}
}
-.emotion-147:hover {
+.emotion-170:hover {
-webkit-text-decoration: none;
text-decoration: none;
}
-.emotion-147.Mui-disabled {
+.emotion-170.Mui-disabled {
color: rgba(0, 0, 0, 0.26);
}
-.emotion-147:hover {
+.emotion-170:hover {
box-shadow: 0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12);
}
@media (hover: none) {
- .emotion-147:hover {
+ .emotion-170:hover {
box-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12);
}
}
-.emotion-147:active {
+.emotion-170:active {
box-shadow: 0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12);
}
-.emotion-147.Mui-focusVisible {
+.emotion-170.Mui-focusVisible {
box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12);
}
-.emotion-147.Mui-disabled {
+.emotion-170.Mui-disabled {
color: rgba(0, 0, 0, 0.26);
box-shadow: none;
background-color: rgba(0, 0, 0, 0.12);
}
@media (hover: hover) {
- .emotion-147:hover {
+ .emotion-170:hover {
--variant-containedBg: #1565c0;
--variant-textBg: rgba(25, 118, 210, 0.04);
--variant-outlinedBorder: #1976d2;
@@ -9287,7 +9287,7 @@ label[data-shrink=false]+.MuiInputBase-formControl .emotion-128:focus::-ms-input
}
}
-.emotion-147.MuiButton-loading {
+.emotion-170.MuiButton-loading {
color: transparent;
}
@@ -10369,14 +10369,188 @@ label[data-shrink=false]+.MuiInputBase-formControl .emotion-128:focus::-ms-input