@rjsf/mantine 6.6.2 → 6.7.0

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 (71) hide show
  1. package/LICENSE.md +201 -0
  2. package/dist/index.cjs +256 -229
  3. package/dist/index.cjs.map +4 -4
  4. package/dist/mantine.esm.js +147 -118
  5. package/dist/mantine.esm.js.map +4 -4
  6. package/dist/mantine.umd.js +50 -28
  7. package/lib/templates/ArrayFieldItemTemplate.d.ts +1 -1
  8. package/lib/templates/ArrayFieldTemplate.d.ts +1 -1
  9. package/lib/templates/ArrayFieldTitleTemplate.d.ts +1 -1
  10. package/lib/templates/BaseInputTemplate.d.ts +1 -1
  11. package/lib/templates/BaseInputTemplate.js +4 -2
  12. package/lib/templates/BaseInputTemplate.js.map +1 -1
  13. package/lib/templates/ButtonTemplates/AddButton.d.ts +1 -1
  14. package/lib/templates/ButtonTemplates/IconButton.d.ts +6 -6
  15. package/lib/templates/ButtonTemplates/SubmitButton.d.ts +1 -1
  16. package/lib/templates/CyclicSchemaExpandTemplate.d.ts +6 -0
  17. package/lib/templates/CyclicSchemaExpandTemplate.js +15 -0
  18. package/lib/templates/CyclicSchemaExpandTemplate.js.map +1 -0
  19. package/lib/templates/DescriptionField.d.ts +1 -1
  20. package/lib/templates/ErrorList.d.ts +1 -1
  21. package/lib/templates/FieldErrorTemplate.d.ts +1 -1
  22. package/lib/templates/FieldErrorTemplate.js +1 -1
  23. package/lib/templates/FieldErrorTemplate.js.map +1 -1
  24. package/lib/templates/FieldHelpTemplate.d.ts +1 -1
  25. package/lib/templates/FieldTemplate.d.ts +1 -1
  26. package/lib/templates/GridTemplate.d.ts +1 -1
  27. package/lib/templates/MultiSchemaFieldTemplate.d.ts +1 -1
  28. package/lib/templates/ObjectFieldTemplate.d.ts +1 -1
  29. package/lib/templates/OptionalDataControlsTemplate.d.ts +1 -1
  30. package/lib/templates/TitleField.d.ts +1 -1
  31. package/lib/templates/WrapIfAdditionalTemplate.d.ts +1 -1
  32. package/lib/templates/icons.d.ts +6 -6
  33. package/lib/templates/index.js +2 -0
  34. package/lib/templates/index.js.map +1 -1
  35. package/lib/tsconfig.tsbuildinfo +1 -1
  36. package/lib/widgets/CheckboxesWidget.d.ts +1 -1
  37. package/lib/widgets/ColorWidget.d.ts +1 -1
  38. package/lib/widgets/ColorWidget.js +2 -2
  39. package/lib/widgets/ColorWidget.js.map +1 -1
  40. package/lib/widgets/DateTime/AltDateTimeWidget.d.ts +1 -1
  41. package/lib/widgets/DateTime/AltDateWidget.d.ts +1 -1
  42. package/lib/widgets/DateTime/DateTimeInput.d.ts +1 -1
  43. package/lib/widgets/DateTime/DateTimeWidget.d.ts +1 -1
  44. package/lib/widgets/DateTime/DateWidget.d.ts +1 -1
  45. package/lib/widgets/DateTime/TimeWidget.d.ts +1 -1
  46. package/lib/widgets/DateTime/TimeWidget.js +2 -2
  47. package/lib/widgets/DateTime/TimeWidget.js.map +1 -1
  48. package/lib/widgets/FileWidget.d.ts +1 -1
  49. package/lib/widgets/PasswordWidget.d.ts +1 -1
  50. package/lib/widgets/PasswordWidget.js +2 -2
  51. package/lib/widgets/PasswordWidget.js.map +1 -1
  52. package/lib/widgets/RadioWidget.d.ts +1 -1
  53. package/lib/widgets/RadioWidget.js +2 -2
  54. package/lib/widgets/RadioWidget.js.map +1 -1
  55. package/lib/widgets/RangeWidget.d.ts +1 -1
  56. package/lib/widgets/SelectWidget.d.ts +1 -1
  57. package/lib/widgets/SelectWidget.js +7 -6
  58. package/lib/widgets/SelectWidget.js.map +1 -1
  59. package/lib/widgets/TextareaWidget.js +2 -2
  60. package/lib/widgets/TextareaWidget.js.map +1 -1
  61. package/package.json +27 -24
  62. package/src/templates/BaseInputTemplate.tsx +2 -2
  63. package/src/templates/CyclicSchemaExpandTemplate.tsx +34 -0
  64. package/src/templates/FieldErrorTemplate.tsx +1 -1
  65. package/src/templates/index.ts +2 -0
  66. package/src/widgets/ColorWidget.tsx +2 -2
  67. package/src/widgets/DateTime/TimeWidget.tsx +2 -2
  68. package/src/widgets/PasswordWidget.tsx +2 -2
  69. package/src/widgets/RadioWidget.tsx +2 -2
  70. package/src/widgets/SelectWidget.tsx +21 -12
  71. package/src/widgets/TextareaWidget.tsx +2 -2
@@ -183,13 +183,13 @@
183
183
  );
184
184
  const handleBlur = react.useCallback(
185
185
  (e) => {
186
- onBlur(id, e.target && e.target.value);
186
+ onBlur(id, e.target?.value);
187
187
  },
188
188
  [onBlur, id]
189
189
  );
190
190
  const handleFocus = react.useCallback(
191
191
  (e) => {
192
- onFocus(id, e.target && e.target.value);
192
+ onFocus(id, e.target?.value);
193
193
  },
194
194
  [onFocus, id]
195
195
  );
@@ -493,6 +493,22 @@
493
493
  };
494
494
  }
495
495
  var ButtonTemplates_default = buttonTemplates;
496
+ function CyclicSchemaExpandTemplate(props) {
497
+ const { name, fieldPathId, registry, onExpand } = props;
498
+ const { translateString } = registry;
499
+ const buttonId4 = `${fieldPathId[utils.ID_KEY]}-button`;
500
+ return /* @__PURE__ */ jsxRuntime.jsx(
501
+ core.Alert,
502
+ {
503
+ color: "yellow",
504
+ variant: "transparent",
505
+ title: translateString(utils.TranslatableString.CycleDetected, [name]),
506
+ icon: /* @__PURE__ */ jsxRuntime.jsx(ExclamationCircle, {}),
507
+ mt: "md",
508
+ children: /* @__PURE__ */ jsxRuntime.jsx(core.Group, { children: /* @__PURE__ */ jsxRuntime.jsx(core.Button, { id: buttonId4, size: "xs", variant: "outline", color: "yellow", onClick: () => onExpand(fieldPathId[utils.ID_KEY]), children: translateString(utils.TranslatableString.ExpandButton) }) })
509
+ }
510
+ );
511
+ }
496
512
  function DescriptionField(props) {
497
513
  const { id, description, registry, uiSchema } = props;
498
514
  if (description) {
@@ -520,7 +536,7 @@
520
536
  );
521
537
  }
522
538
  function FieldErrorTemplate({ errors, fieldPathId }) {
523
- if (!errors || !errors.length) {
539
+ if (!errors?.length) {
524
540
  return null;
525
541
  }
526
542
  const id = utils.errorId(fieldPathId);
@@ -791,6 +807,7 @@
791
807
  ArrayFieldTemplate,
792
808
  ArrayFieldTitleTemplate,
793
809
  BaseInputTemplate,
810
+ CyclicSchemaExpandTemplate,
794
811
  ButtonTemplates: ButtonTemplates_default(),
795
812
  DescriptionFieldTemplate: DescriptionField,
796
813
  ErrorListTemplate: ErrorList,
@@ -991,7 +1008,7 @@
991
1008
  const handleBlur = react.useCallback(
992
1009
  ({ target }) => {
993
1010
  if (onBlur) {
994
- onBlur(id, target && target.value);
1011
+ onBlur(id, target?.value);
995
1012
  }
996
1013
  },
997
1014
  [onBlur, id]
@@ -999,7 +1016,7 @@
999
1016
  const handleFocus = react.useCallback(
1000
1017
  ({ target }) => {
1001
1018
  if (onFocus) {
1002
- onFocus(id, target && target.value);
1019
+ onFocus(id, target?.value);
1003
1020
  }
1004
1021
  },
1005
1022
  [onFocus, id]
@@ -1194,7 +1211,7 @@
1194
1211
  const handleBlur = react.useCallback(
1195
1212
  ({ target }) => {
1196
1213
  if (onBlur) {
1197
- onBlur(id, target && target.value);
1214
+ onBlur(id, target?.value);
1198
1215
  }
1199
1216
  },
1200
1217
  [onBlur, id]
@@ -1202,7 +1219,7 @@
1202
1219
  const handleFocus = react.useCallback(
1203
1220
  ({ target }) => {
1204
1221
  if (onFocus) {
1205
- onFocus(id, target && target.value);
1222
+ onFocus(id, target?.value);
1206
1223
  }
1207
1224
  },
1208
1225
  [onFocus, id]
@@ -1313,7 +1330,7 @@
1313
1330
  const handleBlur = react.useCallback(
1314
1331
  ({ target }) => {
1315
1332
  if (onBlur) {
1316
- onBlur(id, target && target.value);
1333
+ onBlur(id, target?.value);
1317
1334
  }
1318
1335
  },
1319
1336
  [onBlur, id]
@@ -1321,7 +1338,7 @@
1321
1338
  const handleFocus = react.useCallback(
1322
1339
  ({ target }) => {
1323
1340
  if (onFocus) {
1324
- onFocus(id, target && target.value);
1341
+ onFocus(id, target?.value);
1325
1342
  }
1326
1343
  },
1327
1344
  [onFocus, id]
@@ -1377,7 +1394,7 @@
1377
1394
  const handleBlur = react.useCallback(
1378
1395
  ({ target }) => {
1379
1396
  if (onBlur) {
1380
- onBlur(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
1397
+ onBlur(id, utils.enumOptionValueDecoder(target?.value, enumOptions, optionValueFormat, emptyValue));
1381
1398
  }
1382
1399
  },
1383
1400
  [onBlur, id, enumOptions, emptyValue, optionValueFormat]
@@ -1385,7 +1402,7 @@
1385
1402
  const handleFocus = react.useCallback(
1386
1403
  ({ target }) => {
1387
1404
  if (onFocus) {
1388
- onFocus(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
1405
+ onFocus(id, utils.enumOptionValueDecoder(target?.value, enumOptions, optionValueFormat, emptyValue));
1389
1406
  }
1390
1407
  },
1391
1408
  [onFocus, id, enumOptions, emptyValue, optionValueFormat]
@@ -1499,6 +1516,7 @@
1499
1516
  hideLabel,
1500
1517
  multiple,
1501
1518
  rawErrors,
1519
+ schema,
1502
1520
  options,
1503
1521
  onChange,
1504
1522
  onBlur,
@@ -1507,6 +1525,7 @@
1507
1525
  const { enumOptions, enumDisabled, emptyValue } = options;
1508
1526
  const optionValueFormat = utils.getOptionValueFormat(options);
1509
1527
  const themeProps = cleanupOptions(options);
1528
+ utils.logUnsupportedDefaultForEnum(id, schema, enumOptions, multiple);
1510
1529
  const handleChange = react.useCallback(
1511
1530
  (nextValue) => {
1512
1531
  if (!disabled && !readonly && onChange) {
@@ -1518,7 +1537,7 @@
1518
1537
  const handleBlur = react.useCallback(
1519
1538
  ({ target }) => {
1520
1539
  if (onBlur) {
1521
- onBlur(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
1540
+ onBlur(id, utils.enumOptionValueDecoder(target?.value, enumOptions, optionValueFormat, emptyValue));
1522
1541
  }
1523
1542
  },
1524
1543
  [onBlur, id, enumOptions, emptyValue, optionValueFormat]
@@ -1526,7 +1545,7 @@
1526
1545
  const handleFocus = react.useCallback(
1527
1546
  ({ target }) => {
1528
1547
  if (onFocus) {
1529
- onFocus(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
1548
+ onFocus(id, utils.enumOptionValueDecoder(target?.value, enumOptions, optionValueFormat, emptyValue));
1530
1549
  }
1531
1550
  },
1532
1551
  [onFocus, id, enumOptions, emptyValue, optionValueFormat]
@@ -1560,19 +1579,22 @@
1560
1579
  comboboxProps: { withinPortal: false },
1561
1580
  ...themeProps
1562
1581
  };
1563
- return multiple ? /* @__PURE__ */ jsxRuntime.jsx(
1564
- core.MultiSelect,
1565
- {
1566
- ...sharedProps,
1567
- value: utils.enumOptionSelectedValue(value, enumOptions, true, optionValueFormat, [])
1568
- }
1569
- ) : /* @__PURE__ */ jsxRuntime.jsx(
1570
- core.Select,
1571
- {
1572
- ...sharedProps,
1573
- value: utils.enumOptionSelectedValue(value, enumOptions, false, optionValueFormat, null)
1574
- }
1575
- );
1582
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1583
+ /* @__PURE__ */ jsxRuntime.jsx(utils.SelectedOptionDescription, { ...props }),
1584
+ multiple ? /* @__PURE__ */ jsxRuntime.jsx(
1585
+ core.MultiSelect,
1586
+ {
1587
+ ...sharedProps,
1588
+ value: utils.enumOptionSelectedValue(value, enumOptions, true, optionValueFormat, [])
1589
+ }
1590
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
1591
+ core.Select,
1592
+ {
1593
+ ...sharedProps,
1594
+ value: utils.enumOptionSelectedValue(value, enumOptions, false, optionValueFormat, null)
1595
+ }
1596
+ )
1597
+ ] });
1576
1598
  }
1577
1599
  function TextareaWidget(props) {
1578
1600
  const {
@@ -1604,7 +1626,7 @@
1604
1626
  const handleBlur = react.useCallback(
1605
1627
  ({ target }) => {
1606
1628
  if (onBlur) {
1607
- onBlur(id, target && target.value);
1629
+ onBlur(id, target?.value);
1608
1630
  }
1609
1631
  },
1610
1632
  [onBlur, id]
@@ -1612,7 +1634,7 @@
1612
1634
  const handleFocus = react.useCallback(
1613
1635
  ({ target }) => {
1614
1636
  if (onFocus) {
1615
- onFocus(id, target && target.value);
1637
+ onFocus(id, target?.value);
1616
1638
  }
1617
1639
  },
1618
1640
  [onFocus, id]
@@ -3,4 +3,4 @@ import type { ArrayFieldItemTemplateProps, FormContextType, RJSFSchema, StrictRJ
3
3
  *
4
4
  * @param props - The `ArrayFieldItemTemplateProps` props for the component
5
5
  */
6
- export default function ArrayFieldItemTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldItemTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
6
+ export default function ArrayFieldItemTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldItemTemplateProps<T, S, F>): import("react").JSX.Element;
@@ -3,4 +3,4 @@ import type { ArrayFieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSc
3
3
  *
4
4
  * @param props - The `ArrayFieldTemplateProps` props for the component
5
5
  */
6
- export default function ArrayFieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
6
+ export default function ArrayFieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldTemplateProps<T, S, F>): import("react").JSX.Element;
@@ -4,4 +4,4 @@ import type { ArrayFieldTitleProps, FormContextType, RJSFSchema, StrictRJSFSchem
4
4
  *
5
5
  * @param props - The `ArrayFieldTitleProps` for the component
6
6
  */
7
- export default function ArrayFieldTitleTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldTitleProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
7
+ export default function ArrayFieldTitleTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldTitleProps<T, S, F>): import("react").JSX.Element | null;
@@ -5,4 +5,4 @@ import type { BaseInputTemplateProps, FormContextType, RJSFSchema, StrictRJSFSch
5
5
  *
6
6
  * @param props - The `WidgetProps` for this template
7
7
  */
8
- export default function BaseInputTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: BaseInputTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
8
+ export default function BaseInputTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: BaseInputTemplateProps<T, S, F>): import("react").JSX.Element;
@@ -23,10 +23,12 @@ export default function BaseInputTemplate(props) {
23
23
  handler(newValue);
24
24
  }, [onChange, onChangeOverride, options]);
25
25
  const handleBlur = useCallback((e) => {
26
- onBlur(id, e.target && e.target.value);
26
+ var _a;
27
+ onBlur(id, (_a = e.target) === null || _a === void 0 ? void 0 : _a.value);
27
28
  }, [onBlur, id]);
28
29
  const handleFocus = useCallback((e) => {
29
- onFocus(id, e.target && e.target.value);
30
+ var _a;
31
+ onFocus(id, (_a = e.target) === null || _a === void 0 ? void 0 : _a.value);
30
32
  }, [onFocus, id]);
31
33
  const handleClear = useCallback((e) => {
32
34
  var _a;
@@ -1 +1 @@
1
- {"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/templates/BaseInputTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAExF,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAIvC,KAAsC;IACtC,MAAM,EACJ,EAAE,EACF,QAAQ,E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AAC,GAAG,CAAC,CAAC,CAAC,SAAS,sBAC5B,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,GAC3D,CACH,CAAC,CAAC,CAAC,CACF,KAAC,SAAS,IACR,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,KAC1C,cAAc,KACd,UAAU,KACV,UAAU,EACd,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,sBACM,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,GAC3D,CACH,CAAC;IAEJ,OAAO,CACL,8BACG,KAAK,EACL,OAAO,CAAC,oBAAoB,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,IAAI,KAAK,IAAI,CAClE,KAAC,WAAW,IAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,GAAI,CAC1D,EACA,QAAQ,EACT,KAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,GAAI,IACzC,CACJ,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
2
  /** The `AddButton` renders a button that represent the `Add` action on a form
3
3
  */
4
- export default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: IconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
4
+ export default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: IconButtonProps<T, S, F>): import("react").JSX.Element;
@@ -1,16 +1,16 @@
1
1
  import type { ActionIconProps } from '@mantine/core';
2
2
  import type { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
3
3
  export type MantineIconButtonProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> = IconButtonProps<T, S, F> & Omit<ActionIconProps, 'onClick'>;
4
- declare function IconButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
4
+ declare function IconButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react").JSX.Element;
5
5
  declare const IconButton: typeof IconButtonFn;
6
6
  export default IconButton;
7
- declare function CopyButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
7
+ declare function CopyButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react").JSX.Element;
8
8
  export declare const CopyButton: typeof CopyButtonFn;
9
- declare function MoveDownButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
9
+ declare function MoveDownButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react").JSX.Element;
10
10
  export declare const MoveDownButton: typeof MoveDownButtonFn;
11
- declare function MoveUpButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
11
+ declare function MoveUpButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react").JSX.Element;
12
12
  export declare const MoveUpButton: typeof MoveUpButtonFn;
13
- declare function RemoveButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
13
+ declare function RemoveButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react").JSX.Element;
14
14
  export declare const RemoveButton: typeof RemoveButtonFn;
15
- declare function ClearButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
15
+ declare function ClearButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MantineIconButtonProps<T, S, F>): import("react").JSX.Element;
16
16
  export declare const ClearButton: typeof ClearButtonFn;
@@ -1,4 +1,4 @@
1
1
  import type { FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';
2
2
  /** The `SubmitButton` renders a button that represent the `Submit` action on a form
3
3
  */
4
- export default function SubmitButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ uiSchema }: SubmitButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
4
+ export default function SubmitButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ uiSchema }: SubmitButtonProps<T, S, F>): import("react").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ import type { CyclicSchemaExpandProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `CyclicSchemaExpandTemplate` is the template to use to render the cyclic schema expand message and controls
3
+ *
4
+ * @param props - The `CyclicSchemaExpandProps` for this component
5
+ */
6
+ export default function CyclicSchemaExpandTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: CyclicSchemaExpandProps<T, S, F>): import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Alert, Button, Group } from '@mantine/core';
3
+ import { ID_KEY, TranslatableString } from '@rjsf/utils';
4
+ import { ExclamationCircle } from './icons.js';
5
+ /** The `CyclicSchemaExpandTemplate` is the template to use to render the cyclic schema expand message and controls
6
+ *
7
+ * @param props - The `CyclicSchemaExpandProps` for this component
8
+ */
9
+ export default function CyclicSchemaExpandTemplate(props) {
10
+ const { name, fieldPathId, registry, onExpand } = props;
11
+ const { translateString } = registry;
12
+ const buttonId = `${fieldPathId[ID_KEY]}-button`;
13
+ return (_jsx(Alert, { color: 'yellow', variant: 'transparent', title: translateString(TranslatableString.CycleDetected, [name]), icon: _jsx(ExclamationCircle, {}), mt: 'md', children: _jsx(Group, { children: _jsx(Button, { id: buttonId, size: 'xs', variant: 'outline', color: 'yellow', onClick: () => onExpand(fieldPathId[ID_KEY]), children: translateString(TranslatableString.ExpandButton) }) }) }));
14
+ }
15
+ //# sourceMappingURL=CyclicSchemaExpandTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CyclicSchemaExpandTemplate.js","sourceRoot":"","sources":["../../src/templates/CyclicSchemaExpandTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAIhD,KAAuC;IACvC,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACxD,MAAM,EAAE,eAAe,EAAE,GAAG,QAAQ,CAAC;IACrC,MAAM,QAAQ,GAAG,GAAG,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC;IACjD,OAAO,CACL,KAAC,KAAK,IACJ,KAAK,EAAC,QAAQ,EACd,OAAO,EAAC,aAAa,EACrB,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC,EAChE,IAAI,EAAE,KAAC,iBAAiB,KAAG,EAC3B,EAAE,EAAC,IAAI,YAEP,KAAC,KAAK,cACJ,KAAC,MAAM,IAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,YAC1G,eAAe,CAAC,kBAAkB,CAAC,YAAY,CAAC,GAC1C,GACH,GACF,CACT,CAAC;AACJ,CAAC"}
@@ -3,4 +3,4 @@ import type { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSche
3
3
  *
4
4
  * @param props - The `DescriptionFieldProps` for this component
5
5
  */
6
- export default function DescriptionField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: DescriptionFieldProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
6
+ export default function DescriptionField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: DescriptionFieldProps<T, S, F>): import("react").JSX.Element | null;
@@ -3,4 +3,4 @@ import type { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema } fr
3
3
  *
4
4
  * @param props - The `ErrorListProps` for this component
5
5
  */
6
- export default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ errors, registry, }: ErrorListProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
6
+ export default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ errors, registry, }: ErrorListProps<T, S, F>): import("react").JSX.Element;
@@ -3,4 +3,4 @@ import type { FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } f
3
3
  *
4
4
  * @param props - The `FieldErrorProps` for the errors being rendered
5
5
  */
6
- export default function FieldErrorTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ errors, fieldPathId }: FieldErrorProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
6
+ export default function FieldErrorTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ errors, fieldPathId }: FieldErrorProps<T, S, F>): import("react").JSX.Element | null;
@@ -6,7 +6,7 @@ import { errorId } from '@rjsf/utils';
6
6
  * @param props - The `FieldErrorProps` for the errors being rendered
7
7
  */
8
8
  export default function FieldErrorTemplate({ errors, fieldPathId }) {
9
- if (!errors || !errors.length) {
9
+ if (!(errors === null || errors === void 0 ? void 0 : errors.length)) {
10
10
  return null;
11
11
  }
12
12
  // In mantine, errors are handled directly in each component, so there is no need to render a separate error template.
@@ -1 +1 @@
1
- {"version":3,"file":"FieldErrorTemplate.js","sourceRoot":"","sources":["../../src/templates/FieldErrorTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,EAAE,MAAM,EAAE,WAAW,EAA4B;IACjD,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QAC9B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,sHAAsH;IACtH,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAChC,OAAO,CACL,KAAC,GAAG,IAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,YACjC,KAAC,IAAI,cACF,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAE5B,KAAC,IAAI,CAAC,IAAI,cAA+B,KAAK,IAA9B,eAAe,KAAK,EAAE,CAAqB,CAC5D,CAAC,GACG,GACH,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"FieldErrorTemplate.js","sourceRoot":"","sources":["../../src/templates/FieldErrorTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,EAAE,MAAM,EAAE,WAAW,EAA4B;IACjD,IAAI,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAA,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,sHAAsH;IACtH,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAChC,OAAO,CACL,KAAC,GAAG,IAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,YACjC,KAAC,IAAI,cACF,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAE5B,KAAC,IAAI,CAAC,IAAI,cAA+B,KAAK,IAA9B,eAAe,KAAK,EAAE,CAAqB,CAC5D,CAAC,GACG,GACH,CACP,CAAC;AACJ,CAAC"}
@@ -3,4 +3,4 @@ import type { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema } fr
3
3
  *
4
4
  * @param props - The `FieldHelpProps` to be rendered
5
5
  */
6
- export default function FieldHelpTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: FieldHelpProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
6
+ export default function FieldHelpTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: FieldHelpProps<T, S, F>): import("react").JSX.Element | null;
@@ -4,4 +4,4 @@ import type { FieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema
4
4
  *
5
5
  * @param props - The `FieldTemplateProps` for this component
6
6
  */
7
- export default function FieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: FieldTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
7
+ export default function FieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: FieldTemplateProps<T, S, F>): import("react").JSX.Element;
@@ -4,4 +4,4 @@ import type { GridTemplateProps } from '@rjsf/utils';
4
4
  *
5
5
  * @param props - The GridTemplateProps, including the extra props containing the Mantine grid positioning details
6
6
  */
7
- export default function GridTemplate(props: GridTemplateProps): import("react/jsx-runtime").JSX.Element;
7
+ export default function GridTemplate(props: GridTemplateProps): import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
- export default function MultiSchemaFieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ selector, optionSchemaField }: MultiSchemaFieldTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
2
+ export default function MultiSchemaFieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ selector, optionSchemaField }: MultiSchemaFieldTemplateProps<T, S, F>): import("react").JSX.Element;
@@ -5,4 +5,4 @@ import type { FormContextType, ObjectFieldTemplateProps, RJSFSchema, StrictRJSFS
5
5
  *
6
6
  * @param props - The `ObjectFieldTemplateProps` for this component
7
7
  */
8
- export default function ObjectFieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ObjectFieldTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
8
+ export default function ObjectFieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ObjectFieldTemplateProps<T, S, F>): import("react").JSX.Element;
@@ -7,4 +7,4 @@ import type { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, St
7
7
  *
8
8
  * @param props - The `OptionalDataControlsTemplateProps` for the template
9
9
  */
10
- export default function OptionalDataControlsTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: OptionalDataControlsTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
10
+ export default function OptionalDataControlsTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: OptionalDataControlsTemplateProps<T, S, F>): import("react").JSX.Element;
@@ -3,4 +3,4 @@ import type { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } f
3
3
  *
4
4
  * @param props - The `TitleFieldProps` for this component
5
5
  */
6
- export default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: TitleFieldProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
6
+ export default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: TitleFieldProps<T, S, F>): import("react").JSX.Element | null;
@@ -4,4 +4,4 @@ import type { FormContextType, RJSFSchema, StrictRJSFSchema, WrapIfAdditionalTem
4
4
  *
5
5
  * @param props - The `WrapIfAdditionalProps` for this component
6
6
  */
7
- export default function WrapIfAdditionalTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WrapIfAdditionalTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
7
+ export default function WrapIfAdditionalTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WrapIfAdditionalTemplateProps<T, S, F>): import("react").JSX.Element;
@@ -2,10 +2,10 @@ import type { ComponentPropsWithoutRef } from 'react';
2
2
  interface IconProps extends ComponentPropsWithoutRef<'svg'> {
3
3
  size?: number | string;
4
4
  }
5
- export declare function Plus({ size, style, ...others }: IconProps): import("react/jsx-runtime").JSX.Element;
6
- export declare function Copy({ size, style, ...others }: IconProps): import("react/jsx-runtime").JSX.Element;
7
- export declare function ChevronDown({ size, style, ...others }: IconProps): import("react/jsx-runtime").JSX.Element;
8
- export declare function ChevronUp({ size, style, ...others }: IconProps): import("react/jsx-runtime").JSX.Element;
9
- export declare function X({ size, style, ...others }: IconProps): import("react/jsx-runtime").JSX.Element;
10
- export declare function ExclamationCircle({ size, style, ...others }: IconProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function Plus({ size, style, ...others }: IconProps): import("react").JSX.Element;
6
+ export declare function Copy({ size, style, ...others }: IconProps): import("react").JSX.Element;
7
+ export declare function ChevronDown({ size, style, ...others }: IconProps): import("react").JSX.Element;
8
+ export declare function ChevronUp({ size, style, ...others }: IconProps): import("react").JSX.Element;
9
+ export declare function X({ size, style, ...others }: IconProps): import("react").JSX.Element;
10
+ export declare function ExclamationCircle({ size, style, ...others }: IconProps): import("react").JSX.Element;
11
11
  export {};
@@ -3,6 +3,7 @@ import ArrayFieldTemplate from './ArrayFieldTemplate.js';
3
3
  import ArrayFieldTitleTemplate from './ArrayFieldTitleTemplate.js';
4
4
  import BaseInputTemplate from './BaseInputTemplate.js';
5
5
  import ButtonTemplates from './ButtonTemplates/index.js';
6
+ import CyclicSchemaExpandTemplate from './CyclicSchemaExpandTemplate.js';
6
7
  import DescriptionField from './DescriptionField.js';
7
8
  import ErrorList from './ErrorList.js';
8
9
  import FieldErrorTemplate from './FieldErrorTemplate.js';
@@ -20,6 +21,7 @@ export function generateTemplates() {
20
21
  ArrayFieldTemplate,
21
22
  ArrayFieldTitleTemplate,
22
23
  BaseInputTemplate,
24
+ CyclicSchemaExpandTemplate,
23
25
  ButtonTemplates: ButtonTemplates(),
24
26
  DescriptionFieldTemplate: DescriptionField,
25
27
  ErrorListTemplate: ErrorList,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/templates/index.ts"],"names":[],"mappings":"AAEA,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,SAAS,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