@rjsf/mui 6.5.0 → 6.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/index.cjs +181 -73
  2. package/dist/index.cjs.map +2 -2
  3. package/dist/mui.esm.js +181 -73
  4. package/dist/mui.esm.js.map +2 -2
  5. package/dist/mui.umd.js +181 -73
  6. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +3 -3
  7. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -1
  8. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +3 -3
  9. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
  10. package/lib/DescriptionField/DescriptionField.js +3 -4
  11. package/lib/DescriptionField/DescriptionField.js.map +1 -1
  12. package/lib/ErrorList/ErrorList.js +4 -4
  13. package/lib/ErrorList/ErrorList.js.map +1 -1
  14. package/lib/FieldHelpTemplate/FieldHelpTemplate.js +3 -4
  15. package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
  16. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +4 -4
  17. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
  18. package/lib/SubmitButton/SubmitButton.js +3 -3
  19. package/lib/SubmitButton/SubmitButton.js.map +1 -1
  20. package/lib/TitleField/TitleField.js +5 -5
  21. package/lib/TitleField/TitleField.js.map +1 -1
  22. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +3 -5
  23. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
  24. package/lib/tsconfig.tsbuildinfo +1 -1
  25. package/lib/util.d.ts +19 -0
  26. package/lib/util.js +9 -0
  27. package/lib/util.js.map +1 -1
  28. package/package.json +11 -11
  29. package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +25 -9
  30. package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +19 -7
  31. package/src/DescriptionField/DescriptionField.tsx +8 -4
  32. package/src/ErrorList/ErrorList.tsx +19 -9
  33. package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +4 -5
  34. package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +22 -6
  35. package/src/SubmitButton/SubmitButton.tsx +9 -4
  36. package/src/TitleField/TitleField.tsx +20 -8
  37. package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +5 -7
  38. package/src/util.ts +36 -0
package/dist/mui.esm.js CHANGED
@@ -24,6 +24,15 @@ function getMuiProps(options, propsToFilter, rjsfSlotPropsOnly) {
24
24
  }
25
25
  return muiProps;
26
26
  }
27
+ function computeSxProps(sxProps, muiProps) {
28
+ if (!muiProps) {
29
+ return sxProps;
30
+ }
31
+ if (Array.isArray(muiProps?.sx)) {
32
+ return [sxProps, ...muiProps.sx];
33
+ }
34
+ return { ...sxProps, ...muiProps?.sx };
35
+ }
27
36
 
28
37
  // src/AddButton/AddButton.tsx
29
38
  import { jsx } from "react/jsx-runtime";
@@ -69,19 +78,43 @@ function ArrayFieldItemTemplate(props) {
69
78
  fontWeight: "bold",
70
79
  minWidth: 0
71
80
  };
72
- const { rjsfSlotProps: muiSlotProps } = getMuiProps(uiOptions);
73
- return /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", ...muiSlotProps?.arrayItemGridContainer, children: [
74
- /* @__PURE__ */ jsx2(
75
- Grid,
76
- {
77
- size: { xs: 8, sm: 9, md: 10, lg: 11, xl: 11.25 },
78
- style: { overflow: "auto" },
79
- ...muiSlotProps?.arrayItemGridItem,
80
- children: /* @__PURE__ */ jsx2(Box, { mb: 2, ...muiSlotProps?.arrayItemOuterBox, children: /* @__PURE__ */ jsx2(Paper, { elevation: 2, ...muiSlotProps?.arrayItemPaper, children: /* @__PURE__ */ jsx2(Box, { p: 2, ...muiSlotProps?.arrayItemInnerBox, children }) }) })
81
- }
82
- ),
83
- hasToolbar && /* @__PURE__ */ jsx2(Grid, { sx: { mt: hasDescription ? -5 : -1.5 }, ...muiSlotProps?.arrayItemToolbarGrid, children: /* @__PURE__ */ jsx2(ArrayFieldItemButtonsTemplate, { ...buttonsProps, style: btnStyle }) })
84
- ] });
81
+ const {
82
+ rjsfSlotProps: {
83
+ arrayItemGridContainer,
84
+ arrayItemGridItem,
85
+ arrayItemInnerBox,
86
+ arrayItemOuterBox,
87
+ arrayItemPaper,
88
+ arrayItemToolbarGrid
89
+ } = {}
90
+ } = getMuiProps(uiOptions);
91
+ return /* @__PURE__ */ jsxs(
92
+ Grid,
93
+ {
94
+ container: true,
95
+ ...arrayItemGridContainer,
96
+ sx: computeSxProps({ alignItems: "center" }, arrayItemGridContainer),
97
+ children: [
98
+ /* @__PURE__ */ jsx2(
99
+ Grid,
100
+ {
101
+ size: { xs: 8, sm: 9, md: 10, lg: 11, xl: 11.25 },
102
+ ...arrayItemGridItem,
103
+ sx: computeSxProps({ overflow: "auto" }, arrayItemGridItem),
104
+ children: /* @__PURE__ */ jsx2(Box, { ...arrayItemOuterBox, sx: computeSxProps({ mb: 2 }, arrayItemOuterBox), children: /* @__PURE__ */ jsx2(Paper, { elevation: 2, ...arrayItemPaper, children: /* @__PURE__ */ jsx2(Box, { ...arrayItemInnerBox, sx: computeSxProps({ p: 2 }, arrayItemInnerBox), children }) }) })
105
+ }
106
+ ),
107
+ hasToolbar && /* @__PURE__ */ jsx2(
108
+ Grid,
109
+ {
110
+ ...arrayItemToolbarGrid,
111
+ sx: computeSxProps({ mt: hasDescription ? -5 : -1.5 }, arrayItemToolbarGrid),
112
+ children: /* @__PURE__ */ jsx2(ArrayFieldItemButtonsTemplate, { ...buttonsProps, style: btnStyle })
113
+ }
114
+ )
115
+ ]
116
+ }
117
+ );
85
118
  }
86
119
 
87
120
  // src/ArrayFieldTemplate/ArrayFieldTemplate.tsx
@@ -124,8 +157,16 @@ function ArrayFieldTemplate(props) {
124
157
  const {
125
158
  ButtonTemplates: { AddButton: AddButton2 }
126
159
  } = registry.templates;
127
- const { rjsfSlotProps: muiSlotProps } = getMuiProps(uiOptions);
128
- return /* @__PURE__ */ jsx3(Paper2, { elevation: 2, ...muiSlotProps?.arrayPaper, children: /* @__PURE__ */ jsxs2(Box2, { p: 2, ...muiSlotProps?.arrayBox, children: [
160
+ const {
161
+ rjsfSlotProps: {
162
+ arrayPaper,
163
+ arrayBox,
164
+ arrayAddButtonGridContainer,
165
+ arrayAddButtonGridItem,
166
+ arrayAddButtonBox
167
+ } = {}
168
+ } = getMuiProps(uiOptions);
169
+ return /* @__PURE__ */ jsx3(Paper2, { elevation: 2, ...arrayPaper, children: /* @__PURE__ */ jsxs2(Box2, { ...arrayBox, sx: computeSxProps({ p: 2 }, arrayBox), children: [
129
170
  /* @__PURE__ */ jsx3(
130
171
  ArrayFieldTitleTemplate,
131
172
  {
@@ -150,17 +191,25 @@ function ArrayFieldTemplate(props) {
150
191
  ),
151
192
  !showOptionalDataControlInTitle ? optionalDataControl : void 0,
152
193
  items,
153
- canAdd && /* @__PURE__ */ jsx3(Grid2, { container: true, justifyContent: "flex-end", ...muiSlotProps?.arrayAddButtonGridContainer, children: /* @__PURE__ */ jsx3(Grid2, { ...muiSlotProps?.arrayAddButtonGridItem, children: /* @__PURE__ */ jsx3(Box2, { mt: 2, ...muiSlotProps?.arrayAddButtonBox, children: /* @__PURE__ */ jsx3(
154
- AddButton2,
194
+ canAdd && /* @__PURE__ */ jsx3(
195
+ Grid2,
155
196
  {
156
- id: buttonId(fieldPathId, "add"),
157
- className: "rjsf-array-item-add",
158
- onClick: onAddClick,
159
- disabled: disabled || readonly,
160
- uiSchema,
161
- registry
197
+ container: true,
198
+ ...arrayAddButtonGridContainer,
199
+ sx: computeSxProps({ justifyContent: "flex-end" }, arrayAddButtonGridContainer),
200
+ children: /* @__PURE__ */ jsx3(Grid2, { ...arrayAddButtonGridItem, children: /* @__PURE__ */ jsx3(Box2, { ...arrayAddButtonBox, sx: computeSxProps({ mt: 2 }, arrayAddButtonBox), children: /* @__PURE__ */ jsx3(
201
+ AddButton2,
202
+ {
203
+ id: buttonId(fieldPathId, "add"),
204
+ className: "rjsf-array-item-add",
205
+ onClick: onAddClick,
206
+ disabled: disabled || readonly,
207
+ uiSchema,
208
+ registry
209
+ }
210
+ ) }) })
162
211
  }
163
- ) }) }) })
212
+ )
164
213
  ] }) });
165
214
  }
166
215
 
@@ -283,10 +332,18 @@ import { jsx as jsx5 } from "react/jsx-runtime";
283
332
  function DescriptionField(props) {
284
333
  const { id, description, registry, uiSchema } = props;
285
334
  const uiOptions = getUiOptions4(uiSchema);
286
- const muiProps = getMuiProps(uiOptions);
287
- const { rjsfSlotProps: muiSlotProps } = muiProps;
335
+ const { rjsfSlotProps: { descTypography } = {} } = getMuiProps(uiOptions);
288
336
  if (description) {
289
- return /* @__PURE__ */ jsx5(Typography, { id, variant: "subtitle2", style: { marginTop: "5px" }, ...muiSlotProps?.descTypography, children: /* @__PURE__ */ jsx5(RichDescription, { description, registry, uiSchema }) });
337
+ return /* @__PURE__ */ jsx5(
338
+ Typography,
339
+ {
340
+ id,
341
+ variant: "subtitle2",
342
+ ...descTypography,
343
+ sx: computeSxProps({ mt: 0.625 }, descTypography),
344
+ children: /* @__PURE__ */ jsx5(RichDescription, { description, registry, uiSchema })
345
+ }
346
+ );
290
347
  }
291
348
  return null;
292
349
  }
@@ -312,13 +369,23 @@ function ErrorList({
312
369
  }) {
313
370
  const { translateString } = registry;
314
371
  const uiOptions = getUiOptions5(uiSchema);
315
- const { rjsfSlotProps: muiSlotProps } = getMuiProps(uiOptions);
316
- return /* @__PURE__ */ jsx6(Paper3, { elevation: 2, ...muiSlotProps?.errorPaper, children: /* @__PURE__ */ jsxs4(Box3, { mb: 2, p: 2, ...muiSlotProps?.errorBox, children: [
317
- /* @__PURE__ */ jsx6(Typography2, { variant: "h6", ...muiSlotProps?.errorTypography, children: translateString(TranslatableString2.ErrorsLabel) }),
318
- /* @__PURE__ */ jsx6(List, { dense: true, ...muiSlotProps?.errorList, children: errors.map((error, i) => {
319
- return /* @__PURE__ */ jsxs4(ListItem, { ...muiSlotProps?.errorListItem, children: [
320
- /* @__PURE__ */ jsx6(ListItemIcon, { ...muiSlotProps?.errorListItemIcon, children: /* @__PURE__ */ jsx6(ErrorIcon, { color: "error" }) }),
321
- /* @__PURE__ */ jsx6(ListItemText, { primary: error.stack, ...muiSlotProps?.errorListItemText })
372
+ const {
373
+ rjsfSlotProps: {
374
+ errorPaper,
375
+ errorBox,
376
+ errorTypography,
377
+ errorList,
378
+ errorListItem,
379
+ errorListItemIcon,
380
+ errorListItemText
381
+ } = {}
382
+ } = getMuiProps(uiOptions);
383
+ return /* @__PURE__ */ jsx6(Paper3, { elevation: 2, ...errorPaper, children: /* @__PURE__ */ jsxs4(Box3, { ...errorBox, sx: computeSxProps({ mb: 2, p: 2 }, errorBox), children: [
384
+ /* @__PURE__ */ jsx6(Typography2, { variant: "h6", ...errorTypography, children: translateString(TranslatableString2.ErrorsLabel) }),
385
+ /* @__PURE__ */ jsx6(List, { dense: true, ...errorList, children: errors.map((error, i) => {
386
+ return /* @__PURE__ */ jsxs4(ListItem, { ...errorListItem, children: [
387
+ /* @__PURE__ */ jsx6(ListItemIcon, { ...errorListItemIcon, children: /* @__PURE__ */ jsx6(ErrorIcon, { color: "error" }) }),
388
+ /* @__PURE__ */ jsx6(ListItemText, { primary: error.stack, ...errorListItemText })
322
389
  ] }, i);
323
390
  }) })
324
391
  ] }) });
@@ -455,15 +522,14 @@ function FieldHelpTemplate(props) {
455
522
  return null;
456
523
  }
457
524
  const uiOptions = getUiOptions8(uiSchema);
458
- const muiProps = getMuiProps(uiOptions);
459
- const { rjsfSlotProps: muiSlotProps } = muiProps;
525
+ const { rjsfSlotProps: { helpFormHelperText } = {} } = getMuiProps(uiOptions);
460
526
  return /* @__PURE__ */ jsx9(
461
527
  FormHelperText2,
462
528
  {
463
529
  component: "div",
464
530
  id: helpId(fieldPathId),
465
- style: { marginTop: "5px" },
466
- ...muiSlotProps?.helpFormHelperText,
531
+ ...helpFormHelperText,
532
+ sx: computeSxProps({ mt: 0.625 }, helpFormHelperText),
467
533
  children: /* @__PURE__ */ jsx9(RichHelp, { help, registry, uiSchema })
468
534
  }
469
535
  );
@@ -614,7 +680,9 @@ function ObjectFieldTemplate(props) {
614
680
  const {
615
681
  ButtonTemplates: { AddButton: AddButton2 }
616
682
  } = registry.templates;
617
- const { rjsfSlotProps: muiSlotProps } = getMuiProps(uiOptions);
683
+ const {
684
+ rjsfSlotProps: { objectGridContainer, objectGridItem, objectAddButtonGridContainer, objectAddButtonGridItem } = {}
685
+ } = getMuiProps(uiOptions);
618
686
  return /* @__PURE__ */ jsxs7(Fragment2, { children: [
619
687
  title && /* @__PURE__ */ jsx13(
620
688
  TitleFieldTemplate,
@@ -638,27 +706,53 @@ function ObjectFieldTemplate(props) {
638
706
  registry
639
707
  }
640
708
  ),
641
- /* @__PURE__ */ jsxs7(Grid4, { container: true, spacing: 2, style: { marginTop: "10px" }, ...muiSlotProps?.objectGridContainer, children: [
642
- !showOptionalDataControlInTitle ? optionalDataControl : void 0,
643
- properties.map(
644
- (element, index) => (
645
- // Remove the <Grid> if the inner element is hidden as the <Grid>
646
- // itself would otherwise still take up space.
647
- element.hidden ? element.content : /* @__PURE__ */ jsx13(Grid4, { size: { xs: 12 }, style: { marginBottom: "10px" }, ...muiSlotProps?.objectGridItem, children: element.content }, index)
648
- )
649
- )
650
- ] }),
651
- canExpand(schema, uiSchema, formData) && /* @__PURE__ */ jsx13(Grid4, { container: true, justifyContent: "flex-end", ...muiSlotProps?.objectAddButtonGridContainer, children: /* @__PURE__ */ jsx13(Grid4, { ...muiSlotProps?.objectAddButtonGridItem, children: /* @__PURE__ */ jsx13(
652
- AddButton2,
709
+ /* @__PURE__ */ jsxs7(
710
+ Grid4,
653
711
  {
654
- id: buttonId2(fieldPathId, "add"),
655
- className: "rjsf-object-property-expand",
656
- onClick: onAddProperty,
657
- disabled: disabled || readonly,
658
- uiSchema,
659
- registry
712
+ container: true,
713
+ spacing: 2,
714
+ ...objectGridContainer,
715
+ sx: computeSxProps({ mt: 1.25 }, objectGridContainer),
716
+ children: [
717
+ !showOptionalDataControlInTitle ? optionalDataControl : void 0,
718
+ properties.map(
719
+ (element, index) => (
720
+ // Remove the <Grid> if the inner element is hidden as the <Grid>
721
+ // itself would otherwise still take up space.
722
+ element.hidden ? element.content : /* @__PURE__ */ jsx13(
723
+ Grid4,
724
+ {
725
+ size: { xs: 12 },
726
+ ...objectGridItem,
727
+ sx: computeSxProps({ mb: 1.25 }, objectGridItem),
728
+ children: element.content
729
+ },
730
+ index
731
+ )
732
+ )
733
+ )
734
+ ]
660
735
  }
661
- ) }) })
736
+ ),
737
+ canExpand(schema, uiSchema, formData) && /* @__PURE__ */ jsx13(
738
+ Grid4,
739
+ {
740
+ container: true,
741
+ ...objectAddButtonGridContainer,
742
+ sx: computeSxProps({ justifyContent: "flex-end" }, objectAddButtonGridContainer),
743
+ children: /* @__PURE__ */ jsx13(Grid4, { ...objectAddButtonGridItem, children: /* @__PURE__ */ jsx13(
744
+ AddButton2,
745
+ {
746
+ id: buttonId2(fieldPathId, "add"),
747
+ className: "rjsf-object-property-expand",
748
+ onClick: onAddProperty,
749
+ disabled: disabled || readonly,
750
+ uiSchema,
751
+ registry
752
+ }
753
+ ) })
754
+ }
755
+ )
662
756
  ] });
663
757
  }
664
758
 
@@ -710,8 +804,8 @@ function SubmitButton({ uiSchema }) {
710
804
  return null;
711
805
  }
712
806
  const uiOptions = getUiOptions12(uiSchema);
713
- const { rjsfSlotProps: muiSlotProps, ...otherMuiProps } = getMuiProps(uiOptions);
714
- return /* @__PURE__ */ jsx15(Box5, { marginTop: 3, ...muiSlotProps?.submitBox, children: /* @__PURE__ */ jsx15(
807
+ const { rjsfSlotProps: { submitBox, submitButton } = {}, ...otherMuiProps } = getMuiProps(uiOptions);
808
+ return /* @__PURE__ */ jsx15(Box5, { ...submitBox, sx: computeSxProps({ mt: 3 }, submitBox), children: /* @__PURE__ */ jsx15(
715
809
  Button,
716
810
  {
717
811
  type: "submit",
@@ -719,7 +813,7 @@ function SubmitButton({ uiSchema }) {
719
813
  color: "primary",
720
814
  ...submitButtonProps,
721
815
  ...otherMuiProps,
722
- ...muiSlotProps?.submitButton,
816
+ ...submitButton,
723
817
  children: submitText
724
818
  }
725
819
  ) });
@@ -737,17 +831,33 @@ import { jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
737
831
  function TitleField(props) {
738
832
  const { id, title, optionalDataControl, uiSchema } = props;
739
833
  const uiOptions = getUiOptions13(uiSchema);
740
- const { rjsfSlotProps: muiSlotProps } = getMuiProps(uiOptions);
741
- let heading = /* @__PURE__ */ jsx16(Typography4, { variant: "h5", ...muiSlotProps?.titleTypography, children: title });
834
+ const {
835
+ rjsfSlotProps: {
836
+ titleBox,
837
+ titleDivider,
838
+ titleTypography,
839
+ titleGridContainer,
840
+ titleGridItem,
841
+ titleOptionalDataGridItem
842
+ } = {}
843
+ } = getMuiProps(uiOptions);
844
+ let heading = /* @__PURE__ */ jsx16(Typography4, { variant: "h5", ...titleTypography, children: title });
742
845
  if (optionalDataControl) {
743
- heading = /* @__PURE__ */ jsxs8(Grid5, { container: true, spacing: 0, ...muiSlotProps?.titleGridContainer, children: [
744
- /* @__PURE__ */ jsx16(Grid5, { size: "grow", ...muiSlotProps?.titleGridItem, children: heading }),
745
- /* @__PURE__ */ jsx16(Grid5, { justifyContent: "flex-end", ...muiSlotProps?.titleOptionalDataGridItem, children: optionalDataControl })
846
+ heading = /* @__PURE__ */ jsxs8(Grid5, { container: true, spacing: 0, ...titleGridContainer, children: [
847
+ /* @__PURE__ */ jsx16(Grid5, { size: "grow", ...titleGridItem, children: heading }),
848
+ /* @__PURE__ */ jsx16(
849
+ Grid5,
850
+ {
851
+ ...titleOptionalDataGridItem,
852
+ sx: computeSxProps({ justifyContent: "flex-end" }, titleOptionalDataGridItem),
853
+ children: optionalDataControl
854
+ }
855
+ )
746
856
  ] });
747
857
  }
748
- return /* @__PURE__ */ jsxs8(Box6, { id, mb: 1, mt: 1, ...muiSlotProps?.titleBox, children: [
858
+ return /* @__PURE__ */ jsxs8(Box6, { id, ...titleBox, sx: computeSxProps({ mb: 1, mt: 1 }, titleBox), children: [
749
859
  heading,
750
- /* @__PURE__ */ jsx16(Divider, { ...muiSlotProps?.titleDivider })
860
+ /* @__PURE__ */ jsx16(Divider, { ...titleDivider })
751
861
  ] });
752
862
  }
753
863
 
@@ -789,21 +899,19 @@ function WrapIfAdditionalTemplate(props) {
789
899
  fontWeight: "bold"
790
900
  };
791
901
  const uiOptions = getUiOptions14(uiSchema);
792
- const { rjsfSlotProps } = getMuiProps(uiOptions);
793
- const muiSlotProps = rjsfSlotProps;
902
+ const { rjsfSlotProps: { wrapGridContainer, wrapKeyGridItem, wrapChildrenGridItem, wrapRemoveButtonGridItem } = {} } = getMuiProps(uiOptions);
794
903
  if (!additional) {
795
904
  return /* @__PURE__ */ jsx17("div", { className: classNames, style, children });
796
905
  }
797
- const { wrapGridContainer, wrapKeyGridItem, wrapChildrenGridItem, wrapRemoveButtonGridItem } = muiSlotProps || {};
798
906
  return /* @__PURE__ */ jsxs9(
799
907
  Grid6,
800
908
  {
801
909
  container: true,
802
- alignItems: "flex-start",
803
910
  spacing: 2,
804
911
  className: classNames,
805
912
  style,
806
913
  ...wrapGridContainer,
914
+ sx: computeSxProps({ alignItems: "flex-start" }, wrapGridContainer),
807
915
  children: [
808
916
  /* @__PURE__ */ jsx17(Grid6, { size: 5.5, ...wrapKeyGridItem, children: /* @__PURE__ */ jsx17(
809
917
  TextField2,
@@ -821,7 +929,7 @@ function WrapIfAdditionalTemplate(props) {
821
929
  label
822
930
  ) }),
823
931
  /* @__PURE__ */ jsx17(Grid6, { size: 5.5, ...wrapChildrenGridItem, children }),
824
- /* @__PURE__ */ jsx17(Grid6, { sx: { mt: 1.5 }, ...wrapRemoveButtonGridItem, children: /* @__PURE__ */ jsx17(
932
+ /* @__PURE__ */ jsx17(Grid6, { ...wrapRemoveButtonGridItem, sx: computeSxProps({ mt: 1.5 }, wrapRemoveButtonGridItem), children: /* @__PURE__ */ jsx17(
825
933
  RemoveButton2,
826
934
  {
827
935
  id: buttonId3(id, "remove"),