@rjsf/mantine 6.6.0 → 6.6.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 (136) hide show
  1. package/dist/index.cjs +110 -83
  2. package/dist/index.cjs.map +3 -3
  3. package/dist/mantine.esm.js +82 -119
  4. package/dist/mantine.esm.js.map +3 -3
  5. package/dist/mantine.umd.js +127 -101
  6. package/lib/Form/index.d.ts +3 -3
  7. package/lib/Form/index.js.map +1 -1
  8. package/lib/Theme/index.d.ts +2 -2
  9. package/lib/templates/ArrayFieldItemTemplate.d.ts +1 -1
  10. package/lib/templates/ArrayFieldItemTemplate.js +1 -1
  11. package/lib/templates/ArrayFieldItemTemplate.js.map +1 -1
  12. package/lib/templates/ArrayFieldTemplate.d.ts +1 -1
  13. package/lib/templates/ArrayFieldTemplate.js +1 -1
  14. package/lib/templates/ArrayFieldTemplate.js.map +1 -1
  15. package/lib/templates/ArrayFieldTitleTemplate.d.ts +1 -1
  16. package/lib/templates/ArrayFieldTitleTemplate.js +1 -1
  17. package/lib/templates/ArrayFieldTitleTemplate.js.map +1 -1
  18. package/lib/templates/BaseInputTemplate.d.ts +1 -1
  19. package/lib/templates/BaseInputTemplate.js +5 -5
  20. package/lib/templates/BaseInputTemplate.js.map +1 -1
  21. package/lib/templates/ButtonTemplates/AddButton.d.ts +1 -1
  22. package/lib/templates/ButtonTemplates/AddButton.js.map +1 -1
  23. package/lib/templates/ButtonTemplates/IconButton.d.ts +15 -8
  24. package/lib/templates/ButtonTemplates/IconButton.js +14 -6
  25. package/lib/templates/ButtonTemplates/IconButton.js.map +1 -1
  26. package/lib/templates/ButtonTemplates/SubmitButton.d.ts +1 -1
  27. package/lib/templates/ButtonTemplates/SubmitButton.js.map +1 -1
  28. package/lib/templates/ButtonTemplates/index.d.ts +1 -1
  29. package/lib/templates/DescriptionField.d.ts +1 -1
  30. package/lib/templates/ErrorList.d.ts +1 -1
  31. package/lib/templates/ErrorList.js.map +1 -1
  32. package/lib/templates/FieldErrorTemplate.d.ts +1 -1
  33. package/lib/templates/FieldErrorTemplate.js.map +1 -1
  34. package/lib/templates/FieldHelpTemplate.d.ts +1 -1
  35. package/lib/templates/FieldHelpTemplate.js.map +1 -1
  36. package/lib/templates/FieldTemplate.d.ts +1 -1
  37. package/lib/templates/FieldTemplate.js +1 -1
  38. package/lib/templates/FieldTemplate.js.map +1 -1
  39. package/lib/templates/GridTemplate.d.ts +1 -1
  40. package/lib/templates/MultiSchemaFieldTemplate.d.ts +1 -1
  41. package/lib/templates/ObjectFieldTemplate.d.ts +1 -1
  42. package/lib/templates/ObjectFieldTemplate.js +1 -1
  43. package/lib/templates/ObjectFieldTemplate.js.map +1 -1
  44. package/lib/templates/OptionalDataControlsTemplate.d.ts +1 -1
  45. package/lib/templates/OptionalDataControlsTemplate.js +1 -1
  46. package/lib/templates/OptionalDataControlsTemplate.js.map +1 -1
  47. package/lib/templates/TitleField.d.ts +1 -1
  48. package/lib/templates/WrapIfAdditionalTemplate.d.ts +1 -1
  49. package/lib/templates/WrapIfAdditionalTemplate.js +1 -1
  50. package/lib/templates/WrapIfAdditionalTemplate.js.map +1 -1
  51. package/lib/templates/icons.d.ts +1 -1
  52. package/lib/templates/index.d.ts +1 -1
  53. package/lib/tsconfig.tsbuildinfo +1 -1
  54. package/lib/utils.d.ts +1 -1
  55. package/lib/utils.js.map +1 -1
  56. package/lib/widgets/CheckboxWidget.d.ts +2 -2
  57. package/lib/widgets/CheckboxWidget.js +1 -1
  58. package/lib/widgets/CheckboxWidget.js.map +1 -1
  59. package/lib/widgets/CheckboxesWidget.d.ts +1 -1
  60. package/lib/widgets/CheckboxesWidget.js +1 -1
  61. package/lib/widgets/CheckboxesWidget.js.map +1 -1
  62. package/lib/widgets/ColorWidget.d.ts +1 -1
  63. package/lib/widgets/ColorWidget.js +1 -1
  64. package/lib/widgets/ColorWidget.js.map +1 -1
  65. package/lib/widgets/DateTime/AltDateTimeWidget.d.ts +1 -1
  66. package/lib/widgets/DateTime/AltDateWidget.d.ts +1 -1
  67. package/lib/widgets/DateTime/AltDateWidget.js +1 -1
  68. package/lib/widgets/DateTime/AltDateWidget.js.map +1 -1
  69. package/lib/widgets/DateTime/DateTimeInput.d.ts +1 -1
  70. package/lib/widgets/DateTime/DateTimeInput.js +1 -1
  71. package/lib/widgets/DateTime/DateTimeInput.js.map +1 -1
  72. package/lib/widgets/DateTime/DateTimeWidget.d.ts +1 -1
  73. package/lib/widgets/DateTime/DateWidget.d.ts +1 -1
  74. package/lib/widgets/DateTime/TimeWidget.d.ts +1 -1
  75. package/lib/widgets/DateTime/TimeWidget.js +1 -1
  76. package/lib/widgets/DateTime/TimeWidget.js.map +1 -1
  77. package/lib/widgets/FileWidget.d.ts +1 -1
  78. package/lib/widgets/FileWidget.js +2 -1
  79. package/lib/widgets/FileWidget.js.map +1 -1
  80. package/lib/widgets/PasswordWidget.d.ts +1 -1
  81. package/lib/widgets/PasswordWidget.js +2 -2
  82. package/lib/widgets/PasswordWidget.js.map +1 -1
  83. package/lib/widgets/RadioWidget.d.ts +1 -1
  84. package/lib/widgets/RadioWidget.js +1 -1
  85. package/lib/widgets/RadioWidget.js.map +1 -1
  86. package/lib/widgets/RangeWidget.d.ts +1 -1
  87. package/lib/widgets/RangeWidget.js +1 -1
  88. package/lib/widgets/RangeWidget.js.map +1 -1
  89. package/lib/widgets/SelectWidget.d.ts +1 -1
  90. package/lib/widgets/SelectWidget.js +1 -1
  91. package/lib/widgets/SelectWidget.js.map +1 -1
  92. package/lib/widgets/TextareaWidget.d.ts +2 -2
  93. package/lib/widgets/TextareaWidget.js +1 -1
  94. package/lib/widgets/TextareaWidget.js.map +1 -1
  95. package/lib/widgets/index.d.ts +1 -1
  96. package/package.json +8 -8
  97. package/src/Form/index.ts +4 -3
  98. package/src/Theme/index.ts +2 -2
  99. package/src/templates/ArrayFieldItemTemplate.tsx +2 -8
  100. package/src/templates/ArrayFieldTemplate.tsx +2 -9
  101. package/src/templates/ArrayFieldTitleTemplate.tsx +2 -8
  102. package/src/templates/BaseInputTemplate.tsx +8 -15
  103. package/src/templates/ButtonTemplates/AddButton.tsx +2 -1
  104. package/src/templates/ButtonTemplates/IconButton.tsx +19 -10
  105. package/src/templates/ButtonTemplates/SubmitButton.tsx +2 -1
  106. package/src/templates/ButtonTemplates/index.ts +1 -1
  107. package/src/templates/DescriptionField.tsx +1 -1
  108. package/src/templates/ErrorList.tsx +3 -1
  109. package/src/templates/FieldErrorTemplate.tsx +3 -1
  110. package/src/templates/FieldHelpTemplate.tsx +2 -1
  111. package/src/templates/FieldTemplate.tsx +2 -8
  112. package/src/templates/GridTemplate.tsx +1 -1
  113. package/src/templates/MultiSchemaFieldTemplate.tsx +1 -1
  114. package/src/templates/ObjectFieldTemplate.tsx +4 -8
  115. package/src/templates/OptionalDataControlsTemplate.tsx +3 -2
  116. package/src/templates/TitleField.tsx +1 -1
  117. package/src/templates/WrapIfAdditionalTemplate.tsx +2 -10
  118. package/src/templates/icons.tsx +1 -1
  119. package/src/templates/index.ts +1 -1
  120. package/src/utils.ts +2 -2
  121. package/src/widgets/CheckboxWidget.tsx +4 -11
  122. package/src/widgets/CheckboxesWidget.tsx +5 -7
  123. package/src/widgets/ColorWidget.tsx +4 -9
  124. package/src/widgets/DateTime/AltDateTimeWidget.tsx +1 -1
  125. package/src/widgets/DateTime/AltDateWidget.tsx +4 -12
  126. package/src/widgets/DateTime/DateTimeInput.tsx +2 -8
  127. package/src/widgets/DateTime/DateTimeWidget.tsx +1 -1
  128. package/src/widgets/DateTime/DateWidget.tsx +1 -1
  129. package/src/widgets/DateTime/TimeWidget.tsx +4 -9
  130. package/src/widgets/FileWidget.tsx +4 -9
  131. package/src/widgets/PasswordWidget.tsx +5 -10
  132. package/src/widgets/RadioWidget.tsx +5 -7
  133. package/src/widgets/RangeWidget.tsx +3 -9
  134. package/src/widgets/SelectWidget.tsx +4 -6
  135. package/src/widgets/TextareaWidget.tsx +4 -9
  136. package/src/widgets/index.ts +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@rjsf/core'), require('@mantine/core'), require('@rjsf/utils'), require('react/jsx-runtime'), require('react'), require('dayjs'), require('dayjs/plugin/customParseFormat'), require('@mantine/dates')) :
3
3
  typeof define === 'function' && define.amd ? define(['exports', '@rjsf/core', '@mantine/core', '@rjsf/utils', 'react/jsx-runtime', 'react', 'dayjs', 'dayjs/plugin/customParseFormat', '@mantine/dates'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@rjsf/mantine"] = {}, global.core, global.core$1, global.utils, global.jsxRuntime, global.react, global.dayjs, global.customParseFormat, global.dates));
5
- })(this, (function (exports, core, core$1, utils, jsxRuntime, react, dayjs, customParseFormat, dates) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@rjsf/mantine"] = {}, global.core$1, global.core, global.utils, global.jsxRuntime, global.react, global.dayjs, global.customParseFormat, global.dates));
5
+ })(this, (function (exports, core$1, core, utils, jsxRuntime, react, dayjs, customParseFormat, dates) { 'use strict';
6
6
 
7
7
  // src/Form/index.ts
8
8
  function ArrayFieldItemTemplate(props) {
@@ -13,9 +13,9 @@
13
13
  registry,
14
14
  uiOptions
15
15
  );
16
- return /* @__PURE__ */ jsxRuntime.jsx(core$1.Box, { className: className || "rjsf-array-item", mb: "xs", children: /* @__PURE__ */ jsxRuntime.jsxs(core$1.Flex, { gap: "xs", align: "end", justify: "center", children: [
17
- /* @__PURE__ */ jsxRuntime.jsx(core$1.Box, { w: "100%", children }),
18
- hasToolbar && /* @__PURE__ */ jsxRuntime.jsx(core$1.Group, { wrap: "nowrap", gap: 2, mb: 7, children: /* @__PURE__ */ jsxRuntime.jsx(ArrayFieldItemButtonsTemplate, { ...buttonsProps }) })
16
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Box, { className: className || "rjsf-array-item", mb: "xs", children: /* @__PURE__ */ jsxRuntime.jsxs(core.Flex, { gap: "xs", align: "end", justify: "center", children: [
17
+ /* @__PURE__ */ jsxRuntime.jsx(core.Box, { w: "100%", children }),
18
+ hasToolbar && /* @__PURE__ */ jsxRuntime.jsx(core.Group, { wrap: "nowrap", gap: 2, mb: 7, children: /* @__PURE__ */ jsxRuntime.jsx(ArrayFieldItemButtonsTemplate, { ...buttonsProps }) })
19
19
  ] }) }, `array-item-${index}`);
20
20
  }
21
21
  function ArrayFieldTemplate(props) {
@@ -61,7 +61,7 @@
61
61
  optionalDataControl: showOptionalDataControlInTitle ? optionalDataControl : void 0
62
62
  }
63
63
  );
64
- return /* @__PURE__ */ jsxRuntime.jsxs(core$1.Fieldset, { legend, className, id: fieldPathId.$id, children: [
64
+ return /* @__PURE__ */ jsxRuntime.jsxs(core.Fieldset, { legend, className, id: fieldPathId.$id, children: [
65
65
  (uiOptions.description || schema.description) && /* @__PURE__ */ jsxRuntime.jsx(
66
66
  ArrayFieldDescriptionTemplate,
67
67
  {
@@ -72,11 +72,11 @@
72
72
  registry
73
73
  }
74
74
  ),
75
- /* @__PURE__ */ jsxRuntime.jsxs(core$1.Box, { className: "row rjsf-array-item-list", children: [
75
+ /* @__PURE__ */ jsxRuntime.jsxs(core.Box, { className: "row rjsf-array-item-list", children: [
76
76
  !showOptionalDataControlInTitle ? optionalDataControl : void 0,
77
77
  items
78
78
  ] }),
79
- canAdd && /* @__PURE__ */ jsxRuntime.jsx(core$1.Group, { justify: "flex-end", children: /* @__PURE__ */ jsxRuntime.jsx(
79
+ canAdd && /* @__PURE__ */ jsxRuntime.jsx(core.Group, { justify: "flex-end", children: /* @__PURE__ */ jsxRuntime.jsx(
80
80
  AddButton2,
81
81
  {
82
82
  id: utils.buttonId(fieldPathId, "add"),
@@ -97,11 +97,11 @@
97
97
  if (!title || !displayLabel) {
98
98
  return null;
99
99
  }
100
- let heading = title ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Title, { id: utils.titleId(fieldPathId), order: 4, fw: "normal", children: title }) : null;
100
+ let heading = title ? /* @__PURE__ */ jsxRuntime.jsx(core.Title, { id: utils.titleId(fieldPathId), order: 4, fw: "normal", children: title }) : null;
101
101
  if (optionalDataControl) {
102
- heading = /* @__PURE__ */ jsxRuntime.jsxs(core$1.Grid, { children: [
103
- /* @__PURE__ */ jsxRuntime.jsx(core$1.Grid.Col, { span: "auto", children: heading }),
104
- /* @__PURE__ */ jsxRuntime.jsx(core$1.Grid.Col, { span: "content", children: optionalDataControl })
102
+ heading = /* @__PURE__ */ jsxRuntime.jsxs(core.Grid, { children: [
103
+ /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { span: "auto", children: heading }),
104
+ /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { span: "content", children: optionalDataControl })
105
105
  ] });
106
106
  }
107
107
  return heading;
@@ -172,12 +172,12 @@
172
172
  const inputProps = utils.getInputProps(schema, type, options, false);
173
173
  const description = hideLabel ? void 0 : options.description || schema.description;
174
174
  const themeProps = cleanupOptions(options);
175
- const handleNumberChange = react.useCallback((value2) => onChange(value2), [onChange]);
175
+ const handleNumberChange = react.useCallback((newValue) => onChange(newValue), [onChange]);
176
176
  const handleChange = react.useCallback(
177
177
  (e) => {
178
- const handler = onChangeOverride ? onChangeOverride : onChange;
179
- const value2 = e.target.value === "" ? options.emptyValue : e.target.value;
180
- handler(value2);
178
+ const handler = onChangeOverride || onChange;
179
+ const newValue = e.target.value === "" ? options.emptyValue : e.target.value;
180
+ handler(newValue);
181
181
  },
182
182
  [onChange, onChangeOverride, options]
183
183
  );
@@ -216,7 +216,7 @@
216
216
  };
217
217
  const { min, max, ...restInputProps } = inputProps;
218
218
  const input = inputProps.type === "number" || inputProps.type === "integer" ? /* @__PURE__ */ jsxRuntime.jsx(
219
- core$1.NumberInput,
219
+ core.NumberInput,
220
220
  {
221
221
  onChange: !readonly ? handleNumberChange : void 0,
222
222
  ...componentProps,
@@ -231,7 +231,7 @@
231
231
  "aria-describedby": utils.ariaDescribedByIds(id, !!schema.examples)
232
232
  }
233
233
  ) : /* @__PURE__ */ jsxRuntime.jsx(
234
- core$1.TextInput,
234
+ core.TextInput,
235
235
  {
236
236
  onChange: !readonly ? handleChange : void 0,
237
237
  ...componentProps,
@@ -246,7 +246,7 @@
246
246
  input,
247
247
  options.allowClearTextInputs && !readonly && !disabled && value && /* @__PURE__ */ jsxRuntime.jsx(ClearButton2, { registry, onClick: handleClear }),
248
248
  children,
249
- /* @__PURE__ */ jsxRuntime.jsx(core.SchemaExamples, { id, schema })
249
+ /* @__PURE__ */ jsxRuntime.jsx(core$1.SchemaExamples, { id, schema })
250
250
  ] });
251
251
  }
252
252
  function Plus({ size, style, ...others }) {
@@ -391,10 +391,10 @@
391
391
  }
392
392
  );
393
393
  }
394
- function IconButton(props) {
394
+ function IconButtonFn(props) {
395
395
  const { icon, iconType = "sm", color, onClick, uiSchema, registry, ...otherProps } = props;
396
396
  return /* @__PURE__ */ jsxRuntime.jsx(
397
- core$1.ActionIcon,
397
+ core.ActionIcon,
398
398
  {
399
399
  size: iconType,
400
400
  color,
@@ -404,13 +404,16 @@
404
404
  }
405
405
  );
406
406
  }
407
- function CopyButton(props) {
407
+ var IconButton = react.memo(IconButtonFn);
408
+ var IconButton_default = IconButton;
409
+ function CopyButtonFn(props) {
408
410
  const {
409
411
  registry: { translateString }
410
412
  } = props;
411
413
  return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { title: translateString(utils.TranslatableString.CopyButton), variant: "subtle", ...props, icon: /* @__PURE__ */ jsxRuntime.jsx(Copy, {}) });
412
414
  }
413
- function MoveDownButton(props) {
415
+ var CopyButton = react.memo(CopyButtonFn);
416
+ function MoveDownButtonFn(props) {
414
417
  const {
415
418
  registry: { translateString }
416
419
  } = props;
@@ -424,7 +427,8 @@
424
427
  }
425
428
  );
426
429
  }
427
- function MoveUpButton(props) {
430
+ var MoveDownButton = react.memo(MoveDownButtonFn);
431
+ function MoveUpButtonFn(props) {
428
432
  const {
429
433
  registry: { translateString }
430
434
  } = props;
@@ -438,7 +442,8 @@
438
442
  }
439
443
  );
440
444
  }
441
- function RemoveButton(props) {
445
+ var MoveUpButton = react.memo(MoveUpButtonFn);
446
+ function RemoveButtonFn(props) {
442
447
  const {
443
448
  registry: { translateString }
444
449
  } = props;
@@ -453,24 +458,26 @@
453
458
  }
454
459
  );
455
460
  }
456
- function ClearButton(props) {
461
+ var RemoveButton = react.memo(RemoveButtonFn);
462
+ function ClearButtonFn(props) {
457
463
  const {
458
464
  registry: { translateString }
459
465
  } = props;
460
466
  return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { title: translateString(utils.TranslatableString.ClearButton), variant: "subtle", ...props, icon: /* @__PURE__ */ jsxRuntime.jsx(X, {}) });
461
467
  }
468
+ var ClearButton = react.memo(ClearButtonFn);
462
469
  function AddButton(props) {
463
470
  const {
464
471
  registry: { translateString }
465
472
  } = props;
466
- return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { title: translateString(utils.TranslatableString.AddItemButton), variant: "subtle", ...props, icon: /* @__PURE__ */ jsxRuntime.jsx(Plus, {}) });
473
+ return /* @__PURE__ */ jsxRuntime.jsx(IconButton_default, { title: translateString(utils.TranslatableString.AddItemButton), variant: "subtle", ...props, icon: /* @__PURE__ */ jsxRuntime.jsx(Plus, {}) });
467
474
  }
468
475
  function SubmitButton({ uiSchema }) {
469
476
  const { submitText, norender, props: submitButtonProps = {} } = utils.getSubmitButtonOptions(uiSchema);
470
477
  if (norender) {
471
478
  return null;
472
479
  }
473
- return /* @__PURE__ */ jsxRuntime.jsx(core$1.Button, { type: "submit", variant: "filled", ...submitButtonProps, children: submitText });
480
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Button, { type: "submit", variant: "filled", ...submitButtonProps, children: submitText });
474
481
  }
475
482
 
476
483
  // src/templates/ButtonTemplates/index.ts
@@ -489,7 +496,7 @@
489
496
  function DescriptionField(props) {
490
497
  const { id, description, registry, uiSchema } = props;
491
498
  if (description) {
492
- return /* @__PURE__ */ jsxRuntime.jsx(core$1.Text, { id, mt: 3, mb: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(core.RichDescription, { description, registry, uiSchema }) });
499
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Text, { id, mt: 3, mb: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(core$1.RichDescription, { description, registry, uiSchema }) });
493
500
  }
494
501
  return null;
495
502
  }
@@ -499,13 +506,16 @@
499
506
  }) {
500
507
  const { translateString } = registry;
501
508
  return /* @__PURE__ */ jsxRuntime.jsx(
502
- core$1.Alert,
509
+ core.Alert,
503
510
  {
504
511
  color: "red",
505
512
  variant: "transparent",
506
- title: /* @__PURE__ */ jsxRuntime.jsx(core$1.Title, { order: 5, fw: "normal", children: translateString(utils.TranslatableString.ErrorsLabel) }),
513
+ title: /* @__PURE__ */ jsxRuntime.jsx(core.Title, { order: 5, fw: "normal", children: translateString(utils.TranslatableString.ErrorsLabel) }),
507
514
  icon: /* @__PURE__ */ jsxRuntime.jsx(ExclamationCircle, {}),
508
- children: /* @__PURE__ */ jsxRuntime.jsx(core$1.List, { children: errors.map((error, index) => /* @__PURE__ */ jsxRuntime.jsx(core$1.List.Item, { c: "red", children: error.stack }, `error-${index}`)) })
515
+ children: /* @__PURE__ */ jsxRuntime.jsx(core.List, { children: errors.map((error, index) => (
516
+ // oxlint-disable-next-line react/no-array-index-key
517
+ /* @__PURE__ */ jsxRuntime.jsx(core.List.Item, { c: "red", children: error.stack }, `error-${index}`)
518
+ )) })
509
519
  }
510
520
  );
511
521
  }
@@ -514,14 +524,17 @@
514
524
  return null;
515
525
  }
516
526
  const id = utils.errorId(fieldPathId);
517
- return /* @__PURE__ */ jsxRuntime.jsx(core$1.Box, { id, c: "red", display: "none", children: /* @__PURE__ */ jsxRuntime.jsx(core$1.List, { children: errors.map((error, index) => /* @__PURE__ */ jsxRuntime.jsx(core$1.List.Item, { children: error }, `field-error-${index}`)) }) });
527
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Box, { id, c: "red", display: "none", children: /* @__PURE__ */ jsxRuntime.jsx(core.List, { children: errors.map((error, index) => (
528
+ // oxlint-disable-next-line react/no-array-index-key
529
+ /* @__PURE__ */ jsxRuntime.jsx(core.List.Item, { children: error }, `field-error-${index}`)
530
+ )) }) });
518
531
  }
519
532
  function FieldHelpTemplate(props) {
520
533
  const { fieldPathId, help, uiSchema, registry } = props;
521
534
  if (!help) {
522
535
  return null;
523
536
  }
524
- return /* @__PURE__ */ jsxRuntime.jsx(core$1.Text, { id: utils.helpId(fieldPathId), size: "sm", my: "xs", c: "dimmed", children: /* @__PURE__ */ jsxRuntime.jsx(core.RichHelp, { help, registry, uiSchema }) });
537
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Text, { id: utils.helpId(fieldPathId), size: "sm", my: "xs", c: "dimmed", children: /* @__PURE__ */ jsxRuntime.jsx(core$1.RichHelp, { help, registry, uiSchema }) });
525
538
  }
526
539
  function FieldTemplate(props) {
527
540
  const {
@@ -548,7 +561,7 @@
548
561
  uiOptions
549
562
  );
550
563
  if (hidden) {
551
- return /* @__PURE__ */ jsxRuntime.jsx(core$1.Box, { display: "none", children });
564
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Box, { display: "none", children });
552
565
  }
553
566
  return /* @__PURE__ */ jsxRuntime.jsxs(
554
567
  WrapIfAdditionalTemplate2,
@@ -574,15 +587,15 @@
574
587
  function GridTemplate(props) {
575
588
  const { children, column, fluid = true, ...rest } = props;
576
589
  if (column) {
577
- return /* @__PURE__ */ jsxRuntime.jsx(core$1.Grid.Col, { ...rest, children });
590
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { ...rest, children });
578
591
  }
579
592
  if (fluid) {
580
- return /* @__PURE__ */ jsxRuntime.jsx(core$1.Container, { p: "4", mx: 0, w: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(core$1.Grid, { ...rest, children }) });
593
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Container, { p: "4", mx: 0, w: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(core.Grid, { ...rest, children }) });
581
594
  }
582
- return /* @__PURE__ */ jsxRuntime.jsx(core$1.Grid, { grow: true, ...rest, children });
595
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Grid, { grow: true, ...rest, children });
583
596
  }
584
597
  function MultiSchemaFieldTemplate({ selector, optionSchemaField }) {
585
- return /* @__PURE__ */ jsxRuntime.jsxs(core$1.Stack, { style: { marginBottom: "1rem" }, children: [
598
+ return /* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { style: { marginBottom: "1rem" }, children: [
586
599
  selector,
587
600
  optionSchemaField
588
601
  ] });
@@ -617,7 +630,7 @@
617
630
  const gridCols = typeof uiOptions?.gridCols === "number" && uiOptions?.gridCols || void 0;
618
631
  const gridSpacing = uiOptions?.gridSpacing;
619
632
  const gridVerticalSpacing = uiOptions?.gridVerticalSpacing;
620
- return /* @__PURE__ */ jsxRuntime.jsxs(core$1.Container, { id: fieldPathId.$id, p: 0, children: [
633
+ return /* @__PURE__ */ jsxRuntime.jsxs(core.Container, { id: fieldPathId.$id, p: 0, children: [
621
634
  title && /* @__PURE__ */ jsxRuntime.jsx(
622
635
  TitleFieldTemplate,
623
636
  {
@@ -641,7 +654,7 @@
641
654
  }
642
655
  ),
643
656
  /* @__PURE__ */ jsxRuntime.jsxs(
644
- core$1.SimpleGrid,
657
+ core.SimpleGrid,
645
658
  {
646
659
  cols: gridCols,
647
660
  spacing: gridSpacing,
@@ -649,11 +662,11 @@
649
662
  mb: "sm",
650
663
  children: [
651
664
  !showOptionalDataControlInTitle ? optionalDataControl : void 0,
652
- properties.filter((e) => !e.hidden).map((element) => /* @__PURE__ */ jsxRuntime.jsx(core$1.Box, { children: element.content }, element.name))
665
+ properties.filter((e) => !e.hidden).map((element) => /* @__PURE__ */ jsxRuntime.jsx(core.Box, { children: element.content }, element.name))
653
666
  ]
654
667
  }
655
668
  ),
656
- utils.canExpand(schema, uiSchema, formData) && /* @__PURE__ */ jsxRuntime.jsx(core$1.Group, { mt: "xs", justify: "flex-end", children: /* @__PURE__ */ jsxRuntime.jsx(
669
+ utils.canExpand(schema, uiSchema, formData) && /* @__PURE__ */ jsxRuntime.jsx(core.Group, { mt: "xs", justify: "flex-end", children: /* @__PURE__ */ jsxRuntime.jsx(
657
670
  AddButton2,
658
671
  {
659
672
  id: utils.buttonId(fieldPathId, "add"),
@@ -680,7 +693,8 @@
680
693
  title: label
681
694
  }
682
695
  );
683
- } else if (onRemoveClick) {
696
+ }
697
+ if (onRemoveClick) {
684
698
  return /* @__PURE__ */ jsxRuntime.jsx(
685
699
  RemoveButton,
686
700
  {
@@ -697,11 +711,11 @@
697
711
  }
698
712
  function TitleField(props) {
699
713
  const { id, title, optionalDataControl } = props;
700
- let heading = title ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Title, { id, order: 3, fw: "normal", children: title }) : null;
714
+ let heading = title ? /* @__PURE__ */ jsxRuntime.jsx(core.Title, { id, order: 3, fw: "normal", children: title }) : null;
701
715
  if (optionalDataControl) {
702
- heading = /* @__PURE__ */ jsxRuntime.jsxs(core$1.Grid, { children: [
703
- /* @__PURE__ */ jsxRuntime.jsx(core$1.Grid.Col, { span: "auto", children: heading }),
704
- /* @__PURE__ */ jsxRuntime.jsx(core$1.Grid.Col, { span: "content", children: optionalDataControl })
716
+ heading = /* @__PURE__ */ jsxRuntime.jsxs(core.Grid, { children: [
717
+ /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { span: "auto", children: heading }),
718
+ /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { span: "content", children: optionalDataControl })
705
719
  ] });
706
720
  }
707
721
  return heading;
@@ -736,10 +750,10 @@
736
750
  ...uiSchema,
737
751
  [utils.UI_OPTIONS_KEY]: { ...uiOptions, block: true }
738
752
  };
739
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames, style, children: /* @__PURE__ */ jsxRuntime.jsxs(core$1.Flex, { gap: "xs", align: "end", justify: "center", children: [
740
- /* @__PURE__ */ jsxRuntime.jsxs(core$1.Grid, { w: "100%", align: "center", children: [
741
- /* @__PURE__ */ jsxRuntime.jsx(core$1.Grid.Col, { span: 6, className: "form-additional", children: /* @__PURE__ */ jsxRuntime.jsx(
742
- core$1.TextInput,
753
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames, style, children: /* @__PURE__ */ jsxRuntime.jsxs(core.Flex, { gap: "xs", align: "end", justify: "center", children: [
754
+ /* @__PURE__ */ jsxRuntime.jsxs(core.Grid, { w: "100%", align: "center", children: [
755
+ /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { span: 6, className: "form-additional", children: /* @__PURE__ */ jsxRuntime.jsx(
756
+ core.TextInput,
743
757
  {
744
758
  className: "form-group",
745
759
  label: displayLabel ? keyLabel : void 0,
@@ -753,7 +767,7 @@
753
767
  },
754
768
  label
755
769
  ) }),
756
- /* @__PURE__ */ jsxRuntime.jsx(core$1.Grid.Col, { span: 6, className: "form-additional", children })
770
+ /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { span: 6, className: "form-additional", children })
757
771
  ] }),
758
772
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
759
773
  RemoveButton2,
@@ -838,9 +852,9 @@
838
852
  );
839
853
  const selectedIndexes = utils.enumOptionsIndexForValue(value, enumOptions, true);
840
854
  return Array.isArray(enumOptions) && enumOptions.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
841
- !hideLabel && !!label && /* @__PURE__ */ jsxRuntime.jsx(core$1.Input.Label, { id: utils.titleId(id), required, children: label }),
855
+ !hideLabel && !!label && /* @__PURE__ */ jsxRuntime.jsx(core.Input.Label, { id: utils.titleId(id), required, children: label }),
842
856
  /* @__PURE__ */ jsxRuntime.jsx(
843
- core$1.Checkbox.Group,
857
+ core.Checkbox.Group,
844
858
  {
845
859
  id,
846
860
  value: selectedIndexes,
@@ -850,19 +864,19 @@
850
864
  error: rawErrors && rawErrors.length > 0 ? rawErrors.join("\n") : void 0,
851
865
  "aria-describedby": utils.ariaDescribedByIds(id),
852
866
  ...themeProps,
853
- children: Array.isArray(enumOptions) ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Flex, { mt: "xs", direction: inline ? "row" : "column", gap: "xs", wrap: "wrap", children: enumOptions.map((option, i) => /* @__PURE__ */ jsxRuntime.jsx(
854
- core$1.Checkbox,
867
+ children: Array.isArray(enumOptions) ? /* @__PURE__ */ jsxRuntime.jsx(core.Flex, { mt: "xs", direction: inline ? "row" : "column", gap: "xs", wrap: "wrap", children: enumOptions.map((option, i) => /* @__PURE__ */ jsxRuntime.jsx(
868
+ core.Checkbox,
855
869
  {
856
870
  id: utils.optionId(id, i),
857
871
  name: htmlName || id,
858
872
  value: utils.enumOptionValueEncoder(option.value, i, optionValueFormat),
859
873
  label: option.label,
860
- disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1,
874
+ disabled: Array.isArray(enumDisabled) && enumDisabled.includes(option.value),
861
875
  autoFocus: i === 0 && autofocus,
862
876
  onBlur: handleBlur,
863
877
  onFocus: handleFocus
864
878
  },
865
- i
879
+ String(option.value)
866
880
  )) }) : null
867
881
  }
868
882
  )
@@ -931,7 +945,7 @@
931
945
  }
932
946
  ),
933
947
  /* @__PURE__ */ jsxRuntime.jsx(
934
- core$1.Checkbox,
948
+ core.Checkbox,
935
949
  {
936
950
  id,
937
951
  name: htmlName || name,
@@ -991,7 +1005,7 @@
991
1005
  [onFocus, id]
992
1006
  );
993
1007
  return /* @__PURE__ */ jsxRuntime.jsx(
994
- core$1.ColorInput,
1008
+ core.ColorInput,
995
1009
  {
996
1010
  id,
997
1011
  name,
@@ -1020,33 +1034,39 @@
1020
1034
  const { translateString } = registry;
1021
1035
  const { elements, handleChange, handleClear, handleSetNow } = utils.useAltDateWidgetProps(props);
1022
1036
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1023
- !hideLabel && !!label && /* @__PURE__ */ jsxRuntime.jsx(core$1.Input.Label, { id: utils.titleId(id), required, children: label }),
1024
- /* @__PURE__ */ jsxRuntime.jsxs(core$1.Flex, { gap: "xs", align: "center", wrap: "nowrap", children: [
1037
+ !hideLabel && !!label && /* @__PURE__ */ jsxRuntime.jsx(core.Input.Label, { id: utils.titleId(id), required, children: label }),
1038
+ /* @__PURE__ */ jsxRuntime.jsxs(core.Flex, { gap: "xs", align: "center", wrap: "nowrap", children: [
1025
1039
  elements.map((elemProps, i) => {
1026
1040
  const elemId = `${id}_${elemProps.type}`;
1027
- return /* @__PURE__ */ jsxRuntime.jsx(core$1.Box, { children: /* @__PURE__ */ jsxRuntime.jsx(
1028
- core$1.Select,
1029
- {
1030
- id: elemId,
1031
- name: elemId,
1032
- placeholder: elemProps.type,
1033
- disabled: disabled || readonly,
1034
- data: utils.dateRangeOptions(elemProps.range[0], elemProps.range[1]).map((item) => item.value.toString()),
1035
- value: !elemProps.value || elemProps.value < 0 ? null : elemProps.value.toString(),
1036
- onChange: (v) => handleChange(elemProps.type, v || void 0),
1037
- searchable: false,
1038
- allowDeselect: false,
1039
- comboboxProps: { withinPortal: false },
1040
- "aria-describedby": utils.ariaDescribedByIds(elemId)
1041
- }
1042
- ) }, i);
1041
+ return (
1042
+ // oxlint-disable-next-line react/no-array-index-key
1043
+ /* @__PURE__ */ jsxRuntime.jsx(core.Box, { children: /* @__PURE__ */ jsxRuntime.jsx(
1044
+ core.Select,
1045
+ {
1046
+ id: elemId,
1047
+ name: elemId,
1048
+ placeholder: elemProps.type,
1049
+ disabled: disabled || readonly,
1050
+ data: utils.dateRangeOptions(elemProps.range[0], elemProps.range[1]).map((item) => item.value.toString()),
1051
+ value: !elemProps.value || elemProps.value < 0 ? null : elemProps.value.toString(),
1052
+ onChange: (v) => handleChange(elemProps.type, v || void 0),
1053
+ searchable: false,
1054
+ allowDeselect: false,
1055
+ comboboxProps: { withinPortal: false },
1056
+ "aria-describedby": utils.ariaDescribedByIds(elemId)
1057
+ }
1058
+ ) }, i)
1059
+ );
1043
1060
  }),
1044
- /* @__PURE__ */ jsxRuntime.jsxs(core$1.Group, { wrap: "nowrap", gap: 3, children: [
1045
- (options.hideNowButton !== "undefined" ? !options.hideNowButton : true) && /* @__PURE__ */ jsxRuntime.jsx(core$1.Button, { variant: "subtle", size: "xs", onClick: handleSetNow, children: translateString(utils.TranslatableString.NowLabel) }),
1046
- (options.hideClearButton !== "undefined" ? !options.hideClearButton : true) && /* @__PURE__ */ jsxRuntime.jsx(core$1.Button, { variant: "subtle", size: "xs", onClick: handleClear, children: translateString(utils.TranslatableString.ClearLabel) })
1061
+ /* @__PURE__ */ jsxRuntime.jsxs(core.Group, { wrap: "nowrap", gap: 3, children: [
1062
+ (options.hideNowButton !== "undefined" ? !options.hideNowButton : true) && /* @__PURE__ */ jsxRuntime.jsx(core.Button, { variant: "subtle", size: "xs", onClick: handleSetNow, children: translateString(utils.TranslatableString.NowLabel) }),
1063
+ (options.hideClearButton !== "undefined" ? !options.hideClearButton : true) && /* @__PURE__ */ jsxRuntime.jsx(core.Button, { variant: "subtle", size: "xs", onClick: handleClear, children: translateString(utils.TranslatableString.ClearLabel) })
1047
1064
  ] })
1048
1065
  ] }),
1049
- rawErrors && rawErrors?.length > 0 && rawErrors.map((error, index) => /* @__PURE__ */ jsxRuntime.jsx(core$1.Input.Error, { children: error }, `alt-date-widget-input-errors-${index}`))
1066
+ rawErrors && rawErrors?.length > 0 && rawErrors.map((error, index) => (
1067
+ // oxlint-disable-next-line react/no-array-index-key
1068
+ /* @__PURE__ */ jsxRuntime.jsx(core.Input.Error, { children: error }, `alt-date-widget-input-errors-${index}`)
1069
+ ))
1050
1070
  ] });
1051
1071
  }
1052
1072
  var dateParser = (input, format) => {
@@ -1237,12 +1257,15 @@
1237
1257
  );
1238
1258
  const ValueComponent = react.useCallback(() => {
1239
1259
  if (Array.isArray(filesInfo) && filesInfo.length > 0) {
1240
- return /* @__PURE__ */ jsxRuntime.jsx(core$1.Pill.Group, { children: filesInfo.map((file, index) => /* @__PURE__ */ jsxRuntime.jsx(core$1.Pill, { withRemoveButton: true, onRemove: () => handleRemove(index), children: file.name }, index)) });
1260
+ return /* @__PURE__ */ jsxRuntime.jsx(core.Pill.Group, { children: filesInfo.map((file, index) => (
1261
+ // oxlint-disable-next-line react/no-array-index-key
1262
+ /* @__PURE__ */ jsxRuntime.jsx(core.Pill, { withRemoveButton: true, onRemove: () => handleRemove(index), children: file.name }, index)
1263
+ )) });
1241
1264
  }
1242
1265
  return null;
1243
1266
  }, [handleRemove, filesInfo]);
1244
1267
  return /* @__PURE__ */ jsxRuntime.jsx(
1245
- core$1.FileInput,
1268
+ core.FileInput,
1246
1269
  {
1247
1270
  id,
1248
1271
  name,
@@ -1279,7 +1302,7 @@
1279
1302
  onBlur,
1280
1303
  onFocus
1281
1304
  } = props;
1282
- const emptyValue = options.emptyValue;
1305
+ const { emptyValue } = options;
1283
1306
  const themeProps = cleanupOptions(options);
1284
1307
  const handleChange = react.useCallback(
1285
1308
  (e) => {
@@ -1304,7 +1327,7 @@
1304
1327
  [onFocus, id]
1305
1328
  );
1306
1329
  return /* @__PURE__ */ jsxRuntime.jsx(
1307
- core$1.PasswordInput,
1330
+ core.PasswordInput,
1308
1331
  {
1309
1332
  id,
1310
1333
  name,
@@ -1369,7 +1392,7 @@
1369
1392
  );
1370
1393
  const selected = utils.enumOptionsIndexForValue(value, enumOptions);
1371
1394
  return /* @__PURE__ */ jsxRuntime.jsx(
1372
- core$1.Radio.Group,
1395
+ core.Radio.Group,
1373
1396
  {
1374
1397
  id,
1375
1398
  name: htmlName || id,
@@ -1381,18 +1404,18 @@
1381
1404
  error: rawErrors && rawErrors.length > 0 ? rawErrors.join("\n") : void 0,
1382
1405
  "aria-describedby": utils.ariaDescribedByIds(id),
1383
1406
  ...themeProps,
1384
- children: Array.isArray(enumOptions) ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Flex, { mt: "xs", direction: inline ? "row" : "column", gap: "xs", wrap: "wrap", children: enumOptions.map((option, i) => /* @__PURE__ */ jsxRuntime.jsx(
1385
- core$1.Radio,
1407
+ children: Array.isArray(enumOptions) ? /* @__PURE__ */ jsxRuntime.jsx(core.Flex, { mt: "xs", direction: inline ? "row" : "column", gap: "xs", wrap: "wrap", children: enumOptions.map((option, i) => /* @__PURE__ */ jsxRuntime.jsx(
1408
+ core.Radio,
1386
1409
  {
1387
1410
  id: utils.optionId(id, i),
1388
1411
  value: utils.enumOptionValueEncoder(option.value, i, optionValueFormat),
1389
1412
  label: option.label,
1390
- disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1,
1413
+ disabled: Array.isArray(enumDisabled) && enumDisabled.includes(option.value),
1391
1414
  autoFocus: i === 0 && autofocus,
1392
1415
  onBlur: handleBlur,
1393
1416
  onFocus: handleFocus
1394
1417
  },
1395
- i
1418
+ String(option.value)
1396
1419
  )) }) : null
1397
1420
  }
1398
1421
  );
@@ -1436,10 +1459,10 @@
1436
1459
  }
1437
1460
  }, [onFocus, id, value]);
1438
1461
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1439
- !hideLabel && !!label && /* @__PURE__ */ jsxRuntime.jsx(core$1.Input.Label, { id: utils.titleId(id), required, children: label }),
1440
- options?.description && /* @__PURE__ */ jsxRuntime.jsx(core$1.Input.Description, { children: options.description }),
1462
+ !hideLabel && !!label && /* @__PURE__ */ jsxRuntime.jsx(core.Input.Label, { id: utils.titleId(id), required, children: label }),
1463
+ options?.description && /* @__PURE__ */ jsxRuntime.jsx(core.Input.Description, { children: options.description }),
1441
1464
  /* @__PURE__ */ jsxRuntime.jsx(
1442
- core$1.Slider,
1465
+ core.Slider,
1443
1466
  {
1444
1467
  id,
1445
1468
  name,
@@ -1456,7 +1479,10 @@
1456
1479
  "aria-describedby": utils.ariaDescribedByIds(id)
1457
1480
  }
1458
1481
  ),
1459
- rawErrors && rawErrors?.length > 0 && rawErrors.map((error, index) => /* @__PURE__ */ jsxRuntime.jsx(core$1.Input.Error, { children: error }, `range-widget-input-errors-${index}`))
1482
+ rawErrors && rawErrors?.length > 0 && rawErrors.map((error, index) => (
1483
+ // oxlint-disable-next-line react/no-array-index-key
1484
+ /* @__PURE__ */ jsxRuntime.jsx(core.Input.Error, { children: error }, `range-widget-input-errors-${index}`)
1485
+ ))
1460
1486
  ] });
1461
1487
  }
1462
1488
  function SelectWidget(props) {
@@ -1511,7 +1537,7 @@
1511
1537
  key: String(index),
1512
1538
  value: utils.enumOptionValueEncoder(option.value, index, optionValueFormat),
1513
1539
  label: option.label,
1514
- disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1
1540
+ disabled: Array.isArray(enumDisabled) && enumDisabled.includes(option.value)
1515
1541
  }));
1516
1542
  }
1517
1543
  return [];
@@ -1535,13 +1561,13 @@
1535
1561
  ...themeProps
1536
1562
  };
1537
1563
  return multiple ? /* @__PURE__ */ jsxRuntime.jsx(
1538
- core$1.MultiSelect,
1564
+ core.MultiSelect,
1539
1565
  {
1540
1566
  ...sharedProps,
1541
1567
  value: utils.enumOptionSelectedValue(value, enumOptions, true, optionValueFormat, [])
1542
1568
  }
1543
1569
  ) : /* @__PURE__ */ jsxRuntime.jsx(
1544
- core$1.Select,
1570
+ core.Select,
1545
1571
  {
1546
1572
  ...sharedProps,
1547
1573
  value: utils.enumOptionSelectedValue(value, enumOptions, false, optionValueFormat, null)
@@ -1592,7 +1618,7 @@
1592
1618
  [onFocus, id]
1593
1619
  );
1594
1620
  return /* @__PURE__ */ jsxRuntime.jsx(
1595
- core$1.Textarea,
1621
+ core.Textarea,
1596
1622
  {
1597
1623
  id,
1598
1624
  name: htmlName || name,
@@ -1645,7 +1671,7 @@
1645
1671
 
1646
1672
  // src/Form/index.ts
1647
1673
  function generateForm() {
1648
- return core.withTheme(generateTheme());
1674
+ return core$1.withTheme(generateTheme());
1649
1675
  }
1650
1676
  var Form_default = generateForm();
1651
1677
 
@@ -1,6 +1,6 @@
1
- import { ComponentType } from 'react';
2
- import { FormProps } from '@rjsf/core';
3
- import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { ComponentType } from 'react';
2
+ import type { FormProps } from '@rjsf/core';
3
+ import type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
4
4
  export declare function generateForm<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(): ComponentType<FormProps<T, S, F>>;
5
5
  declare const _default: ComponentType<FormProps<any, RJSFSchema, any>>;
6
6
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Form/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,SAAS,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,YAAY;IAK1B,OAAO,SAAS,CAAU,aAAa,EAAW,CAAC,CAAC;AACtD,CAAC;AAED,eAAe,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Form/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,YAAY;IAK1B,OAAO,SAAS,CAAU,aAAa,EAAW,CAAC,CAAC;AACtD,CAAC;AAED,eAAe,YAAY,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ThemeProps } from '@rjsf/core';
2
- import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { ThemeProps } from '@rjsf/core';
2
+ import type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
3
3
  export declare function generateTheme<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(): ThemeProps<T, S, F>;
4
4
  declare const _default: ThemeProps<any, RJSFSchema, any>;
5
5
  export default _default;
@@ -1,4 +1,4 @@
1
- import { ArrayFieldItemTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { ArrayFieldItemTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
2
  /** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.
3
3
  *
4
4
  * @param props - The `ArrayFieldItemTemplateProps` props for the component
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Box, Flex, Group } from '@mantine/core';
3
- import { getTemplate, getUiOptions, } from '@rjsf/utils';
3
+ import { getTemplate, getUiOptions } from '@rjsf/utils';
4
4
  /** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.
5
5
  *
6
6
  * @param props - The `ArrayFieldItemTemplateProps` props for the component
@@ -1 +1 @@
1
- {"version":3,"file":"ArrayFieldItemTemplate.js","sourceRoot":"","sources":["../../src/templates/ArrayFieldItemTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAGL,WAAW,EACX,YAAY,GAGb,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAI5C,KAA2C;IAC3C,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3F,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAClD,MAAM,6BAA6B,GAAG,WAAW,CAC/C,+BAA+B,EAC/B,QAAQ,EACR,SAAS,CACV,CAAC;IAEF,OAAO,CACL,KAAC,GAAG,IAA6B,SAAS,EAAE,SAAS,IAAI,iBAAiB,EAAE,EAAE,EAAC,IAAI,YACjF,MAAC,IAAI,IAAC,GAAG,EAAC,IAAI,EAAC,KAAK,EAAC,KAAK,EAAC,OAAO,EAAC,QAAQ,aACzC,KAAC,GAAG,IAAC,CAAC,EAAC,MAAM,YAAE,QAAQ,GAAO,EAC7B,UAAU,IAAI,CACb,KAAC,KAAK,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,YAChC,KAAC,6BAA6B,OAAK,YAAY,GAAI,GAC7C,CACT,IACI,IARC,cAAc,KAAK,EAAE,CASzB,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"ArrayFieldItemTemplate.js","sourceRoot":"","sources":["../../src/templates/ArrayFieldItemTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAExD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAI5C,KAA2C;IAC3C,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3F,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAClD,MAAM,6BAA6B,GAAG,WAAW,CAC/C,+BAA+B,EAC/B,QAAQ,EACR,SAAS,CACV,CAAC;IAEF,OAAO,CACL,KAAC,GAAG,IAA6B,SAAS,EAAE,SAAS,IAAI,iBAAiB,EAAE,EAAE,EAAC,IAAI,YACjF,MAAC,IAAI,IAAC,GAAG,EAAC,IAAI,EAAC,KAAK,EAAC,KAAK,EAAC,OAAO,EAAC,QAAQ,aACzC,KAAC,GAAG,IAAC,CAAC,EAAC,MAAM,YAAE,QAAQ,GAAO,EAC7B,UAAU,IAAI,CACb,KAAC,KAAK,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,YAChC,KAAC,6BAA6B,OAAK,YAAY,GAAI,GAC7C,CACT,IACI,IARC,cAAc,KAAK,EAAE,CASzB,CACP,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ArrayFieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { ArrayFieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
2
  /** The `ArrayFieldTemplate` component is the template used to render all items in an array.
3
3
  *
4
4
  * @param props - The `ArrayFieldTemplateProps` props for the component