@rjsf/mantine 6.0.0-beta.20 → 6.0.0-beta.21

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.
@@ -37,6 +37,7 @@ function ArrayFieldTemplate(props) {
37
37
  disabled,
38
38
  fieldPathId,
39
39
  items,
40
+ optionalDataControl,
40
41
  onAddClick,
41
42
  readonly,
42
43
  required,
@@ -61,6 +62,7 @@ function ArrayFieldTemplate(props) {
61
62
  registry,
62
63
  uiOptions
63
64
  );
65
+ const showOptionalDataControlInTitle = !readonly && !disabled;
64
66
  const {
65
67
  ButtonTemplates: { AddButton: AddButton2 }
66
68
  } = registry.templates;
@@ -72,7 +74,8 @@ function ArrayFieldTemplate(props) {
72
74
  title: uiOptions.title || title,
73
75
  schema,
74
76
  uiSchema,
75
- registry
77
+ registry,
78
+ optionalDataControl: showOptionalDataControlInTitle ? optionalDataControl : void 0
76
79
  }
77
80
  );
78
81
  return /* @__PURE__ */ jsxs2(Fieldset, { legend, className, id: fieldPathId.$id, children: [
@@ -86,7 +89,10 @@ function ArrayFieldTemplate(props) {
86
89
  registry
87
90
  }
88
91
  ),
89
- /* @__PURE__ */ jsx2(Box2, { className: "row rjsf-array-item-list", children: items && items.map(({ key, ...itemProps }) => /* @__PURE__ */ jsx2(ArrayFieldItemTemplate2, { ...itemProps }, key)) }),
92
+ /* @__PURE__ */ jsxs2(Box2, { className: "row rjsf-array-item-list", children: [
93
+ !showOptionalDataControlInTitle ? optionalDataControl : void 0,
94
+ items.map(({ key, ...itemProps }) => /* @__PURE__ */ jsx2(ArrayFieldItemTemplate2, { ...itemProps }, key))
95
+ ] }),
90
96
  canAdd && /* @__PURE__ */ jsx2(Group2, { justify: "flex-end", children: /* @__PURE__ */ jsx2(
91
97
  AddButton2,
92
98
  {
@@ -654,6 +660,7 @@ function ObjectFieldTemplate(props) {
654
660
  description,
655
661
  disabled,
656
662
  properties,
663
+ optionalDataControl,
657
664
  onAddClick,
658
665
  readonly,
659
666
  required,
@@ -670,6 +677,7 @@ function ObjectFieldTemplate(props) {
670
677
  registry,
671
678
  uiOptions
672
679
  );
680
+ const showOptionalDataControlInTitle = !readonly && !disabled;
673
681
  const {
674
682
  ButtonTemplates: { AddButton: AddButton2 }
675
683
  } = registry.templates;
@@ -685,7 +693,8 @@ function ObjectFieldTemplate(props) {
685
693
  required,
686
694
  schema,
687
695
  uiSchema,
688
- registry
696
+ registry,
697
+ optionalDataControl: showOptionalDataControlInTitle ? optionalDataControl : void 0
689
698
  }
690
699
  ),
691
700
  description && /* @__PURE__ */ jsx15(
@@ -698,14 +707,17 @@ function ObjectFieldTemplate(props) {
698
707
  registry
699
708
  }
700
709
  ),
701
- /* @__PURE__ */ jsx15(
710
+ /* @__PURE__ */ jsxs6(
702
711
  SimpleGrid,
703
712
  {
704
713
  cols: gridCols,
705
714
  spacing: gridSpacing,
706
715
  verticalSpacing: gridVerticalSpacing,
707
716
  mb: "sm",
708
- children: properties.filter((e) => !e.hidden).map((element) => /* @__PURE__ */ jsx15(Box5, { children: element.content }, element.name))
717
+ children: [
718
+ !showOptionalDataControlInTitle ? optionalDataControl : void 0,
719
+ properties.filter((e) => !e.hidden).map((element) => /* @__PURE__ */ jsx15(Box5, { children: element.content }, element.name))
720
+ ]
709
721
  }
710
722
  ),
711
723
  canExpand(schema, uiSchema, formData) && /* @__PURE__ */ jsx15(Group3, { mt: "xs", justify: "flex-end", children: /* @__PURE__ */ jsx15(
@@ -722,12 +734,51 @@ function ObjectFieldTemplate(props) {
722
734
  ] });
723
735
  }
724
736
 
725
- // src/templates/TitleField.tsx
726
- import { Title as Title3 } from "@mantine/core";
737
+ // src/templates/OptionalDataControlsTemplate.tsx
727
738
  import { jsx as jsx16 } from "react/jsx-runtime";
739
+ function OptionalDataControlsTemplate(props) {
740
+ const { id, registry, label, onAddClick, onRemoveClick } = props;
741
+ if (onAddClick) {
742
+ return /* @__PURE__ */ jsx16(
743
+ AddButton,
744
+ {
745
+ id,
746
+ registry,
747
+ icon: "plus",
748
+ className: "rjsf-add-optional-data",
749
+ onClick: onAddClick,
750
+ title: label
751
+ }
752
+ );
753
+ } else if (onRemoveClick) {
754
+ return /* @__PURE__ */ jsx16(
755
+ RemoveButton,
756
+ {
757
+ id,
758
+ registry,
759
+ icon: "remove",
760
+ className: "rjsf-remove-optional-data",
761
+ onClick: onRemoveClick,
762
+ title: label
763
+ }
764
+ );
765
+ }
766
+ return /* @__PURE__ */ jsx16("em", { id, children: label });
767
+ }
768
+
769
+ // src/templates/TitleField.tsx
770
+ import { Grid as Grid2, Title as Title3 } from "@mantine/core";
771
+ import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
728
772
  function TitleField(props) {
729
- const { id, title } = props;
730
- return title ? /* @__PURE__ */ jsx16(Title3, { id, order: 3, fw: "normal", children: title }) : null;
773
+ const { id, title, optionalDataControl } = props;
774
+ let heading = title ? /* @__PURE__ */ jsx17(Title3, { id, order: 3, fw: "normal", children: title }) : null;
775
+ if (optionalDataControl) {
776
+ heading = /* @__PURE__ */ jsxs7(Grid2, { children: [
777
+ /* @__PURE__ */ jsx17(Grid2.Col, { span: "auto", children: heading }),
778
+ /* @__PURE__ */ jsx17(Grid2.Col, { span: "content", children: optionalDataControl })
779
+ ] });
780
+ }
781
+ return heading;
731
782
  }
732
783
 
733
784
  // src/templates/WrapIfAdditionalTemplate.tsx
@@ -738,8 +789,8 @@ import {
738
789
  buttonId as buttonId3,
739
790
  TranslatableString as TranslatableString4
740
791
  } from "@rjsf/utils";
741
- import { Flex as Flex2, Grid as Grid2, TextInput as TextInput2 } from "@mantine/core";
742
- import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
792
+ import { Flex as Flex2, Grid as Grid3, TextInput as TextInput2 } from "@mantine/core";
793
+ import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
743
794
  function WrapIfAdditionalTemplate(props) {
744
795
  const {
745
796
  id,
@@ -765,16 +816,16 @@ function WrapIfAdditionalTemplate(props) {
765
816
  [onKeyChange]
766
817
  );
767
818
  if (!additional) {
768
- return /* @__PURE__ */ jsx17("div", { className: classNames, style, children });
819
+ return /* @__PURE__ */ jsx18("div", { className: classNames, style, children });
769
820
  }
770
821
  const uiOptions = uiSchema ? uiSchema[UI_OPTIONS_KEY] : {};
771
822
  const buttonUiOptions = {
772
823
  ...uiSchema,
773
824
  [UI_OPTIONS_KEY]: { ...uiOptions, block: true }
774
825
  };
775
- return /* @__PURE__ */ jsx17("div", { className: classNames, style, children: /* @__PURE__ */ jsxs7(Flex2, { gap: "xs", align: "end", justify: "center", children: [
776
- /* @__PURE__ */ jsxs7(Grid2, { w: "100%", align: "center", children: [
777
- /* @__PURE__ */ jsx17(Grid2.Col, { span: 6, className: "form-additional", children: /* @__PURE__ */ jsx17("div", { className: "form-group", children: /* @__PURE__ */ jsx17(
826
+ return /* @__PURE__ */ jsx18("div", { className: classNames, style, children: /* @__PURE__ */ jsxs8(Flex2, { gap: "xs", align: "end", justify: "center", children: [
827
+ /* @__PURE__ */ jsxs8(Grid3, { w: "100%", align: "center", children: [
828
+ /* @__PURE__ */ jsx18(Grid3.Col, { span: 6, className: "form-additional", children: /* @__PURE__ */ jsx18("div", { className: "form-group", children: /* @__PURE__ */ jsx18(
778
829
  TextInput2,
779
830
  {
780
831
  className: "form-group",
@@ -787,9 +838,9 @@ function WrapIfAdditionalTemplate(props) {
787
838
  onBlur: !readonly ? handleBlur : void 0
788
839
  }
789
840
  ) }) }),
790
- /* @__PURE__ */ jsx17(Grid2.Col, { span: 6, className: "form-additional", children })
841
+ /* @__PURE__ */ jsx18(Grid3.Col, { span: 6, className: "form-additional", children })
791
842
  ] }),
792
- /* @__PURE__ */ jsx17(
843
+ /* @__PURE__ */ jsx18(
793
844
  RemoveButton2,
794
845
  {
795
846
  id: buttonId3(id, "remove"),
@@ -806,9 +857,9 @@ function WrapIfAdditionalTemplate(props) {
806
857
 
807
858
  // src/templates/MultiSchemaFieldTemplate.tsx
808
859
  import { Stack } from "@mantine/core";
809
- import { jsxs as jsxs8 } from "react/jsx-runtime";
860
+ import { jsxs as jsxs9 } from "react/jsx-runtime";
810
861
  function MultiSchemaFieldTemplate({ selector, optionSchemaField }) {
811
- return /* @__PURE__ */ jsxs8(Stack, { style: { marginBottom: "1rem" }, children: [
862
+ return /* @__PURE__ */ jsxs9(Stack, { style: { marginBottom: "1rem" }, children: [
812
863
  selector,
813
864
  optionSchemaField
814
865
  ] });
@@ -829,6 +880,7 @@ function generateTemplates() {
829
880
  FieldHelpTemplate,
830
881
  GridTemplate,
831
882
  ObjectFieldTemplate,
883
+ OptionalDataControlsTemplate,
832
884
  TitleFieldTemplate: TitleField,
833
885
  WrapIfAdditionalTemplate,
834
886
  MultiSchemaFieldTemplate
@@ -852,7 +904,7 @@ import {
852
904
  TranslatableString as TranslatableString5
853
905
  } from "@rjsf/utils";
854
906
  import { Flex as Flex3, Box as Box6, Group as Group4, Button as Button2, Select, Input } from "@mantine/core";
855
- import { Fragment as Fragment2, jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
907
+ import { Fragment as Fragment2, jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
856
908
  function readyForChange(state) {
857
909
  return Object.values(state).every((value) => value !== -1);
858
910
  }
@@ -901,9 +953,9 @@ function AltDateWidget(props) {
901
953
  onChange("");
902
954
  }
903
955
  }, [disabled, readonly, onChange]);
904
- return /* @__PURE__ */ jsxs9(Fragment2, { children: [
905
- !hideLabel && !!label && /* @__PURE__ */ jsx18(Input.Label, { id: titleId3(id), required, children: label }),
906
- /* @__PURE__ */ jsxs9(Flex3, { gap: "xs", align: "center", wrap: "nowrap", children: [
956
+ return /* @__PURE__ */ jsxs10(Fragment2, { children: [
957
+ !hideLabel && !!label && /* @__PURE__ */ jsx19(Input.Label, { id: titleId3(id), required, children: label }),
958
+ /* @__PURE__ */ jsxs10(Flex3, { gap: "xs", align: "center", wrap: "nowrap", children: [
907
959
  getDateElementProps(
908
960
  state,
909
961
  showTime,
@@ -911,7 +963,7 @@ function AltDateWidget(props) {
911
963
  options.format
912
964
  ).map((elemProps, i) => {
913
965
  const elemId = id + "_" + elemProps.type;
914
- return /* @__PURE__ */ jsx18(Box6, { children: /* @__PURE__ */ jsx18(
966
+ return /* @__PURE__ */ jsx19(Box6, { children: /* @__PURE__ */ jsx19(
915
967
  Select,
916
968
  {
917
969
  id: elemId,
@@ -928,12 +980,12 @@ function AltDateWidget(props) {
928
980
  }
929
981
  ) }, i);
930
982
  }),
931
- /* @__PURE__ */ jsxs9(Group4, { wrap: "nowrap", gap: 3, children: [
932
- (options.hideNowButton !== "undefined" ? !options.hideNowButton : true) && /* @__PURE__ */ jsx18(Button2, { variant: "subtle", size: "xs", onClick: handleSetNow, children: translateString(TranslatableString5.NowLabel) }),
933
- (options.hideClearButton !== "undefined" ? !options.hideClearButton : true) && /* @__PURE__ */ jsx18(Button2, { variant: "subtle", size: "xs", onClick: handleClear, children: translateString(TranslatableString5.ClearLabel) })
983
+ /* @__PURE__ */ jsxs10(Group4, { wrap: "nowrap", gap: 3, children: [
984
+ (options.hideNowButton !== "undefined" ? !options.hideNowButton : true) && /* @__PURE__ */ jsx19(Button2, { variant: "subtle", size: "xs", onClick: handleSetNow, children: translateString(TranslatableString5.NowLabel) }),
985
+ (options.hideClearButton !== "undefined" ? !options.hideClearButton : true) && /* @__PURE__ */ jsx19(Button2, { variant: "subtle", size: "xs", onClick: handleClear, children: translateString(TranslatableString5.ClearLabel) })
934
986
  ] })
935
987
  ] }),
936
- rawErrors && rawErrors?.length > 0 && rawErrors.map((error, index) => /* @__PURE__ */ jsx18(Input.Error, { children: error }, `alt-date-widget-input-errors-${index}`))
988
+ rawErrors && rawErrors?.length > 0 && rawErrors.map((error, index) => /* @__PURE__ */ jsx19(Input.Error, { children: error }, `alt-date-widget-input-errors-${index}`))
937
989
  ] });
938
990
  }
939
991
  AltDateWidget.defaultProps = {
@@ -941,10 +993,10 @@ AltDateWidget.defaultProps = {
941
993
  };
942
994
 
943
995
  // src/widgets/DateTime/AltDateTimeWidget.tsx
944
- import { jsx as jsx19 } from "react/jsx-runtime";
996
+ import { jsx as jsx20 } from "react/jsx-runtime";
945
997
  function AltDateTimeWidget(props) {
946
998
  const { AltDateWidget: AltDateWidget2 } = props.registry.widgets;
947
- return /* @__PURE__ */ jsx19(AltDateWidget2, { showTime: true, ...props });
999
+ return /* @__PURE__ */ jsx20(AltDateWidget2, { showTime: true, ...props });
948
1000
  }
949
1001
  AltDateTimeWidget.defaultProps = {
950
1002
  ...AltDateWidget?.defaultProps,
@@ -959,7 +1011,7 @@ import {
959
1011
  } from "@rjsf/utils";
960
1012
  import dayjs from "dayjs";
961
1013
  import { DateInput } from "@mantine/dates";
962
- import { jsx as jsx20 } from "react/jsx-runtime";
1014
+ import { jsx as jsx21 } from "react/jsx-runtime";
963
1015
  var dateParser = (input, format) => {
964
1016
  if (!input) {
965
1017
  return null;
@@ -1009,7 +1061,7 @@ function DateTimeInput(props) {
1009
1061
  onFocus(id, value);
1010
1062
  }
1011
1063
  }, [onFocus, id, value]);
1012
- return /* @__PURE__ */ jsx20(
1064
+ return /* @__PURE__ */ jsx21(
1013
1065
  DateInput,
1014
1066
  {
1015
1067
  id,
@@ -1035,10 +1087,10 @@ function DateTimeInput(props) {
1035
1087
  }
1036
1088
 
1037
1089
  // src/widgets/DateTime/DateWidget.tsx
1038
- import { jsx as jsx21 } from "react/jsx-runtime";
1090
+ import { jsx as jsx22 } from "react/jsx-runtime";
1039
1091
  function DateWidget(props) {
1040
1092
  const { valueFormat = "YYYY-MM-DD", displayFormat, ...otherOptions } = props.options;
1041
- return /* @__PURE__ */ jsx21(
1093
+ return /* @__PURE__ */ jsx22(
1042
1094
  DateTimeInput,
1043
1095
  {
1044
1096
  ...props,
@@ -1050,10 +1102,10 @@ function DateWidget(props) {
1050
1102
  }
1051
1103
 
1052
1104
  // src/widgets/DateTime/DateTimeWidget.tsx
1053
- import { jsx as jsx22 } from "react/jsx-runtime";
1105
+ import { jsx as jsx23 } from "react/jsx-runtime";
1054
1106
  function DateTimeWidget(props) {
1055
1107
  const { valueFormat = "YYYY-MM-DD HH:mm:ss", displayFormat, ...otherOptions } = props.options;
1056
- return /* @__PURE__ */ jsx22(
1108
+ return /* @__PURE__ */ jsx23(
1057
1109
  DateTimeInput,
1058
1110
  {
1059
1111
  ...props,
@@ -1071,7 +1123,7 @@ import {
1071
1123
  ariaDescribedByIds as ariaDescribedByIds4
1072
1124
  } from "@rjsf/utils";
1073
1125
  import { TimeInput } from "@mantine/dates";
1074
- import { jsx as jsx23 } from "react/jsx-runtime";
1126
+ import { jsx as jsx24 } from "react/jsx-runtime";
1075
1127
  function TimeWidget(props) {
1076
1128
  const {
1077
1129
  id,
@@ -1113,7 +1165,7 @@ function TimeWidget(props) {
1113
1165
  },
1114
1166
  [onFocus, id]
1115
1167
  );
1116
- return /* @__PURE__ */ jsx23(
1168
+ return /* @__PURE__ */ jsx24(
1117
1169
  TimeInput,
1118
1170
  {
1119
1171
  id,
@@ -1145,7 +1197,7 @@ import {
1145
1197
  titleId as titleId4
1146
1198
  } from "@rjsf/utils";
1147
1199
  import { Checkbox, Flex as Flex4, Input as Input2 } from "@mantine/core";
1148
- import { Fragment as Fragment3, jsx as jsx24, jsxs as jsxs10 } from "react/jsx-runtime";
1200
+ import { Fragment as Fragment3, jsx as jsx25, jsxs as jsxs11 } from "react/jsx-runtime";
1149
1201
  function CheckboxesWidget(props) {
1150
1202
  const {
1151
1203
  id,
@@ -1189,9 +1241,9 @@ function CheckboxesWidget(props) {
1189
1241
  [onFocus, id, enumOptions, emptyValue]
1190
1242
  );
1191
1243
  const selectedIndexes = enumOptionsIndexForValue(value, enumOptions, true);
1192
- return Array.isArray(enumOptions) && enumOptions.length > 0 ? /* @__PURE__ */ jsxs10(Fragment3, { children: [
1193
- !hideLabel && !!label && /* @__PURE__ */ jsx24(Input2.Label, { id: titleId4(id), required, children: label }),
1194
- /* @__PURE__ */ jsx24(
1244
+ return Array.isArray(enumOptions) && enumOptions.length > 0 ? /* @__PURE__ */ jsxs11(Fragment3, { children: [
1245
+ !hideLabel && !!label && /* @__PURE__ */ jsx25(Input2.Label, { id: titleId4(id), required, children: label }),
1246
+ /* @__PURE__ */ jsx25(
1195
1247
  Checkbox.Group,
1196
1248
  {
1197
1249
  id,
@@ -1202,7 +1254,7 @@ function CheckboxesWidget(props) {
1202
1254
  error: rawErrors && rawErrors.length > 0 ? rawErrors.join("\n") : void 0,
1203
1255
  "aria-describedby": ariaDescribedByIds5(id),
1204
1256
  ...themeProps,
1205
- children: Array.isArray(enumOptions) ? /* @__PURE__ */ jsx24(Flex4, { mt: "xs", direction: inline ? "row" : "column", gap: "xs", wrap: "wrap", children: enumOptions.map((option, i) => /* @__PURE__ */ jsx24(
1257
+ children: Array.isArray(enumOptions) ? /* @__PURE__ */ jsx25(Flex4, { mt: "xs", direction: inline ? "row" : "column", gap: "xs", wrap: "wrap", children: enumOptions.map((option, i) => /* @__PURE__ */ jsx25(
1206
1258
  Checkbox,
1207
1259
  {
1208
1260
  id: optionId(id, i),
@@ -1230,7 +1282,7 @@ import {
1230
1282
  ariaDescribedByIds as ariaDescribedByIds6
1231
1283
  } from "@rjsf/utils";
1232
1284
  import { Checkbox as Checkbox2 } from "@mantine/core";
1233
- import { Fragment as Fragment4, jsx as jsx25, jsxs as jsxs11 } from "react/jsx-runtime";
1285
+ import { Fragment as Fragment4, jsx as jsx26, jsxs as jsxs12 } from "react/jsx-runtime";
1234
1286
  function CheckboxWidget(props) {
1235
1287
  const {
1236
1288
  id,
@@ -1282,8 +1334,8 @@ function CheckboxWidget(props) {
1282
1334
  [onFocus, id]
1283
1335
  );
1284
1336
  const description = options.description || schema.description;
1285
- return /* @__PURE__ */ jsxs11(Fragment4, { children: [
1286
- !hideLabel && !!description && /* @__PURE__ */ jsx25(
1337
+ return /* @__PURE__ */ jsxs12(Fragment4, { children: [
1338
+ !hideLabel && !!description && /* @__PURE__ */ jsx26(
1287
1339
  DescriptionFieldTemplate,
1288
1340
  {
1289
1341
  id: descriptionId2(id),
@@ -1293,7 +1345,7 @@ function CheckboxWidget(props) {
1293
1345
  registry
1294
1346
  }
1295
1347
  ),
1296
- /* @__PURE__ */ jsx25(
1348
+ /* @__PURE__ */ jsx26(
1297
1349
  Checkbox2,
1298
1350
  {
1299
1351
  id,
@@ -1321,7 +1373,7 @@ import {
1321
1373
  ariaDescribedByIds as ariaDescribedByIds7
1322
1374
  } from "@rjsf/utils";
1323
1375
  import { ColorInput } from "@mantine/core";
1324
- import { jsx as jsx26 } from "react/jsx-runtime";
1376
+ import { jsx as jsx27 } from "react/jsx-runtime";
1325
1377
  function ColorWidget(props) {
1326
1378
  const {
1327
1379
  id,
@@ -1363,7 +1415,7 @@ function ColorWidget(props) {
1363
1415
  },
1364
1416
  [onFocus, id]
1365
1417
  );
1366
- return /* @__PURE__ */ jsx26(
1418
+ return /* @__PURE__ */ jsx27(
1367
1419
  ColorInput,
1368
1420
  {
1369
1421
  id,
@@ -1393,7 +1445,7 @@ import {
1393
1445
  labelValue as labelValue6
1394
1446
  } from "@rjsf/utils";
1395
1447
  import { FileInput, Pill } from "@mantine/core";
1396
- import { jsx as jsx27 } from "react/jsx-runtime";
1448
+ import { jsx as jsx28 } from "react/jsx-runtime";
1397
1449
  function addNameToDataURL(dataURL, name) {
1398
1450
  if (dataURL === null) {
1399
1451
  return null;
@@ -1499,13 +1551,13 @@ function FileWidget(props) {
1499
1551
  (props2) => {
1500
1552
  const filesInfo = props2.value ? extractFileInfo(Array.isArray(props2.value) ? props2.value : [props2.value]) : null;
1501
1553
  if (Array.isArray(filesInfo) && filesInfo.length > 0) {
1502
- return /* @__PURE__ */ jsx27(Pill.Group, { children: filesInfo.map((file, index) => /* @__PURE__ */ jsx27(Pill, { withRemoveButton: true, onRemove: () => handleRemoveFile(index), children: file.name }, index)) });
1554
+ return /* @__PURE__ */ jsx28(Pill.Group, { children: filesInfo.map((file, index) => /* @__PURE__ */ jsx28(Pill, { withRemoveButton: true, onRemove: () => handleRemoveFile(index), children: file.name }, index)) });
1503
1555
  }
1504
1556
  return null;
1505
1557
  },
1506
1558
  [handleRemoveFile]
1507
1559
  );
1508
- return /* @__PURE__ */ jsx27(
1560
+ return /* @__PURE__ */ jsx28(
1509
1561
  FileInput,
1510
1562
  {
1511
1563
  id,
@@ -1533,7 +1585,7 @@ import {
1533
1585
  labelValue as labelValue7
1534
1586
  } from "@rjsf/utils";
1535
1587
  import { PasswordInput } from "@mantine/core";
1536
- import { jsx as jsx28 } from "react/jsx-runtime";
1588
+ import { jsx as jsx29 } from "react/jsx-runtime";
1537
1589
  function PasswordWidget(props) {
1538
1590
  const {
1539
1591
  id,
@@ -1576,7 +1628,7 @@ function PasswordWidget(props) {
1576
1628
  },
1577
1629
  [onFocus, id]
1578
1630
  );
1579
- return /* @__PURE__ */ jsx28(
1631
+ return /* @__PURE__ */ jsx29(
1580
1632
  PasswordInput,
1581
1633
  {
1582
1634
  id,
@@ -1606,7 +1658,7 @@ import {
1606
1658
  optionId as optionId2
1607
1659
  } from "@rjsf/utils";
1608
1660
  import { Radio, Flex as Flex5 } from "@mantine/core";
1609
- import { jsx as jsx29 } from "react/jsx-runtime";
1661
+ import { jsx as jsx30 } from "react/jsx-runtime";
1610
1662
  function RadioWidget(props) {
1611
1663
  const {
1612
1664
  id,
@@ -1650,7 +1702,7 @@ function RadioWidget(props) {
1650
1702
  [onFocus, id, enumOptions, emptyValue]
1651
1703
  );
1652
1704
  const selected = enumOptionsIndexForValue2(value, enumOptions);
1653
- return /* @__PURE__ */ jsx29(
1705
+ return /* @__PURE__ */ jsx30(
1654
1706
  Radio.Group,
1655
1707
  {
1656
1708
  id,
@@ -1663,7 +1715,7 @@ function RadioWidget(props) {
1663
1715
  error: rawErrors && rawErrors.length > 0 ? rawErrors.join("\n") : void 0,
1664
1716
  "aria-describedby": ariaDescribedByIds10(id),
1665
1717
  ...themeProps,
1666
- children: Array.isArray(enumOptions) ? /* @__PURE__ */ jsx29(Flex5, { mt: "xs", direction: inline ? "row" : "column", gap: "xs", wrap: "wrap", children: enumOptions.map((option, i) => /* @__PURE__ */ jsx29(
1718
+ children: Array.isArray(enumOptions) ? /* @__PURE__ */ jsx30(Flex5, { mt: "xs", direction: inline ? "row" : "column", gap: "xs", wrap: "wrap", children: enumOptions.map((option, i) => /* @__PURE__ */ jsx30(
1667
1719
  Radio,
1668
1720
  {
1669
1721
  id: optionId2(id, i),
@@ -1688,7 +1740,7 @@ import {
1688
1740
  titleId as titleId5
1689
1741
  } from "@rjsf/utils";
1690
1742
  import { Slider, Input as Input3 } from "@mantine/core";
1691
- import { Fragment as Fragment5, jsx as jsx30, jsxs as jsxs12 } from "react/jsx-runtime";
1743
+ import { Fragment as Fragment5, jsx as jsx31, jsxs as jsxs13 } from "react/jsx-runtime";
1692
1744
  function RangeWidget(props) {
1693
1745
  const {
1694
1746
  id,
@@ -1727,10 +1779,10 @@ function RangeWidget(props) {
1727
1779
  onFocus(id, value);
1728
1780
  }
1729
1781
  }, [onFocus, id, value]);
1730
- return /* @__PURE__ */ jsxs12(Fragment5, { children: [
1731
- !hideLabel && !!label && /* @__PURE__ */ jsx30(Input3.Label, { id: titleId5(id), required, children: label }),
1732
- options?.description && /* @__PURE__ */ jsx30(Input3.Description, { children: options.description }),
1733
- /* @__PURE__ */ jsx30(
1782
+ return /* @__PURE__ */ jsxs13(Fragment5, { children: [
1783
+ !hideLabel && !!label && /* @__PURE__ */ jsx31(Input3.Label, { id: titleId5(id), required, children: label }),
1784
+ options?.description && /* @__PURE__ */ jsx31(Input3.Description, { children: options.description }),
1785
+ /* @__PURE__ */ jsx31(
1734
1786
  Slider,
1735
1787
  {
1736
1788
  id,
@@ -1748,7 +1800,7 @@ function RangeWidget(props) {
1748
1800
  "aria-describedby": ariaDescribedByIds11(id)
1749
1801
  }
1750
1802
  ),
1751
- rawErrors && rawErrors?.length > 0 && rawErrors.map((error, index) => /* @__PURE__ */ jsx30(Input3.Error, { children: error }, `range-widget-input-errors-${index}`))
1803
+ rawErrors && rawErrors?.length > 0 && rawErrors.map((error, index) => /* @__PURE__ */ jsx31(Input3.Error, { children: error }, `range-widget-input-errors-${index}`))
1752
1804
  ] });
1753
1805
  }
1754
1806
 
@@ -1761,7 +1813,7 @@ import {
1761
1813
  labelValue as labelValue8
1762
1814
  } from "@rjsf/utils";
1763
1815
  import { Select as Select2, MultiSelect } from "@mantine/core";
1764
- import { jsx as jsx31 } from "react/jsx-runtime";
1816
+ import { jsx as jsx32 } from "react/jsx-runtime";
1765
1817
  function SelectWidget(props) {
1766
1818
  const {
1767
1819
  id,
@@ -1819,7 +1871,7 @@ function SelectWidget(props) {
1819
1871
  return [];
1820
1872
  }, [enumDisabled, enumOptions]);
1821
1873
  const Component = multiple ? MultiSelect : Select2;
1822
- return /* @__PURE__ */ jsx31(
1874
+ return /* @__PURE__ */ jsx32(
1823
1875
  Component,
1824
1876
  {
1825
1877
  id,
@@ -1850,7 +1902,7 @@ import {
1850
1902
  ariaDescribedByIds as ariaDescribedByIds13
1851
1903
  } from "@rjsf/utils";
1852
1904
  import { Textarea } from "@mantine/core";
1853
- import { jsx as jsx32 } from "react/jsx-runtime";
1905
+ import { jsx as jsx33 } from "react/jsx-runtime";
1854
1906
  function TextareaWidget(props) {
1855
1907
  const {
1856
1908
  id,
@@ -1893,7 +1945,7 @@ function TextareaWidget(props) {
1893
1945
  },
1894
1946
  [onFocus, id]
1895
1947
  );
1896
- return /* @__PURE__ */ jsx32(
1948
+ return /* @__PURE__ */ jsx33(
1897
1949
  Textarea,
1898
1950
  {
1899
1951
  id,