@rjsf/react-bootstrap 6.0.0-alpha.0 → 6.0.0-beta.1

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 (55) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +168 -203
  3. package/dist/index.js.map +4 -4
  4. package/dist/react-bootstrap.esm.js +92 -121
  5. package/dist/react-bootstrap.esm.js.map +4 -4
  6. package/dist/react-bootstrap.umd.js +23 -64
  7. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts +2 -2
  8. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +5 -3
  9. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -1
  10. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +2 -2
  11. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
  12. package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
  13. package/lib/DescriptionField/DescriptionField.js.map +1 -1
  14. package/lib/FieldErrorTemplate/FieldErrorTemplate.js.map +1 -1
  15. package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
  16. package/lib/FieldTemplate/FieldTemplate.js.map +1 -1
  17. package/lib/GridTemplate/GridTemplate.d.ts +7 -0
  18. package/lib/GridTemplate/GridTemplate.js +16 -0
  19. package/lib/GridTemplate/GridTemplate.js.map +1 -0
  20. package/lib/GridTemplate/index.d.ts +2 -0
  21. package/lib/GridTemplate/index.js +3 -0
  22. package/lib/GridTemplate/index.js.map +1 -0
  23. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +2 -2
  24. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
  25. package/lib/SelectWidget/SelectWidget.js.map +1 -1
  26. package/lib/SubmitButton/SubmitButton.js.map +1 -1
  27. package/lib/Templates/Templates.js +2 -0
  28. package/lib/Templates/Templates.js.map +1 -1
  29. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +2 -2
  30. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
  31. package/lib/tsconfig.tsbuildinfo +1 -1
  32. package/package.json +41 -34
  33. package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +17 -64
  34. package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +9 -7
  35. package/src/BaseInputTemplate/BaseInputTemplate.tsx +1 -1
  36. package/src/CheckboxWidget/CheckboxWidget.tsx +2 -2
  37. package/src/CheckboxesWidget/CheckboxesWidget.tsx +1 -1
  38. package/src/DescriptionField/DescriptionField.tsx +1 -1
  39. package/src/FieldErrorTemplate/FieldErrorTemplate.tsx +1 -1
  40. package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +1 -1
  41. package/src/FieldTemplate/FieldTemplate.tsx +2 -2
  42. package/src/Form/Form.tsx +1 -1
  43. package/src/GridTemplate/GridTemplate.tsx +16 -0
  44. package/src/GridTemplate/index.ts +2 -0
  45. package/src/IconButton/IconButton.tsx +5 -5
  46. package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +5 -3
  47. package/src/RangeWidget/RangeWidget.tsx +1 -1
  48. package/src/SelectWidget/SelectWidget.tsx +1 -1
  49. package/src/SubmitButton/SubmitButton.tsx +1 -1
  50. package/src/Templates/Templates.ts +3 -1
  51. package/src/TextareaWidget/TextareaWidget.tsx +1 -1
  52. package/src/Theme/Theme.tsx +1 -1
  53. package/src/Widgets/Widgets.ts +1 -1
  54. package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +4 -2
  55. package/LICENSE.md +0 -201
@@ -27,25 +27,19 @@ function AddButton({
27
27
  // src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx
28
28
  import Row from "react-bootstrap/Row";
29
29
  import Col from "react-bootstrap/Col";
30
+ import {
31
+ getTemplate,
32
+ getUiOptions
33
+ } from "@rjsf/utils";
30
34
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
31
35
  function ArrayFieldItemTemplate(props) {
32
- const {
33
- children,
34
- disabled,
35
- hasToolbar,
36
- hasCopy,
37
- hasMoveDown,
38
- hasMoveUp,
39
- hasRemove,
40
- index,
41
- onCopyIndexClick,
42
- onDropIndexClick,
43
- onReorderClick,
44
- readonly,
36
+ const { children, buttonsProps, hasToolbar, uiSchema, registry } = props;
37
+ const uiOptions = getUiOptions(uiSchema);
38
+ const ArrayFieldItemButtonsTemplate = getTemplate(
39
+ "ArrayFieldItemButtonsTemplate",
45
40
  registry,
46
- uiSchema
47
- } = props;
48
- const { CopyButton: CopyButton2, MoveDownButton: MoveDownButton2, MoveUpButton: MoveUpButton2, RemoveButton: RemoveButton2 } = registry.templates.ButtonTemplates;
41
+ uiOptions
42
+ );
49
43
  const btnStyle = {
50
44
  flex: 1,
51
45
  paddingLeft: 6,
@@ -54,49 +48,7 @@ function ArrayFieldItemTemplate(props) {
54
48
  };
55
49
  return /* @__PURE__ */ jsx2("div", { children: /* @__PURE__ */ jsxs(Row, { className: "mb-2 d-flex align-items-center", children: [
56
50
  /* @__PURE__ */ jsx2(Col, { xs: "9", lg: "9", children }),
57
- /* @__PURE__ */ jsx2(Col, { xs: "3", lg: "3", className: "py-4", children: hasToolbar && /* @__PURE__ */ jsxs("div", { className: "d-flex flex-row", children: [
58
- (hasMoveUp || hasMoveDown) && /* @__PURE__ */ jsx2("div", { className: "m-0 p-0", children: /* @__PURE__ */ jsx2(
59
- MoveUpButton2,
60
- {
61
- className: "array-item-move-up",
62
- style: btnStyle,
63
- disabled: disabled || readonly || !hasMoveUp,
64
- onClick: onReorderClick(index, index - 1),
65
- uiSchema,
66
- registry
67
- }
68
- ) }),
69
- (hasMoveUp || hasMoveDown) && /* @__PURE__ */ jsx2("div", { className: "m-0 p-0", children: /* @__PURE__ */ jsx2(
70
- MoveDownButton2,
71
- {
72
- style: btnStyle,
73
- disabled: disabled || readonly || !hasMoveDown,
74
- onClick: onReorderClick(index, index + 1),
75
- uiSchema,
76
- registry
77
- }
78
- ) }),
79
- hasCopy && /* @__PURE__ */ jsx2("div", { className: "m-0 p-0", children: /* @__PURE__ */ jsx2(
80
- CopyButton2,
81
- {
82
- style: btnStyle,
83
- disabled: disabled || readonly,
84
- onClick: onCopyIndexClick(index),
85
- uiSchema,
86
- registry
87
- }
88
- ) }),
89
- hasRemove && /* @__PURE__ */ jsx2("div", { className: "m-0 p-0", children: /* @__PURE__ */ jsx2(
90
- RemoveButton2,
91
- {
92
- style: btnStyle,
93
- disabled: disabled || readonly,
94
- onClick: onDropIndexClick(index),
95
- uiSchema,
96
- registry
97
- }
98
- ) })
99
- ] }) })
51
+ /* @__PURE__ */ jsx2(Col, { xs: "3", lg: "3", className: "py-4", children: hasToolbar && /* @__PURE__ */ jsx2("div", { className: "d-flex flex-row", children: /* @__PURE__ */ jsx2(ArrayFieldItemButtonsTemplate, { ...buttonsProps, style: btnStyle }) }) })
100
52
  ] }) });
101
53
  }
102
54
 
@@ -105,24 +57,25 @@ import Row2 from "react-bootstrap/Row";
105
57
  import Col2 from "react-bootstrap/Col";
106
58
  import Container from "react-bootstrap/Container";
107
59
  import {
108
- getTemplate,
109
- getUiOptions
60
+ buttonId,
61
+ getTemplate as getTemplate2,
62
+ getUiOptions as getUiOptions2
110
63
  } from "@rjsf/utils";
111
64
  import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
112
65
  function ArrayFieldTemplate(props) {
113
66
  const { canAdd, disabled, idSchema, uiSchema, items, onAddClick, readonly, registry, required, schema, title } = props;
114
- const uiOptions = getUiOptions(uiSchema);
115
- const ArrayFieldDescriptionTemplate = getTemplate(
67
+ const uiOptions = getUiOptions2(uiSchema);
68
+ const ArrayFieldDescriptionTemplate = getTemplate2(
116
69
  "ArrayFieldDescriptionTemplate",
117
70
  registry,
118
71
  uiOptions
119
72
  );
120
- const ArrayFieldItemTemplate2 = getTemplate(
73
+ const ArrayFieldItemTemplate2 = getTemplate2(
121
74
  "ArrayFieldItemTemplate",
122
75
  registry,
123
76
  uiOptions
124
77
  );
125
- const ArrayFieldTitleTemplate = getTemplate(
78
+ const ArrayFieldTitleTemplate = getTemplate2(
126
79
  "ArrayFieldTitleTemplate",
127
80
  registry,
128
81
  uiOptions
@@ -159,7 +112,8 @@ function ArrayFieldTemplate(props) {
159
112
  /* @__PURE__ */ jsx3(Col2, { xs: 3, className: "py-4 col-lg-3 col-3", children: /* @__PURE__ */ jsx3(
160
113
  AddButton2,
161
114
  {
162
- className: "array-item-add",
115
+ id: buttonId(idSchema, "add"),
116
+ className: "rjsf-array-item-add",
163
117
  onClick: onAddClick,
164
118
  disabled: disabled || readonly,
165
119
  uiSchema,
@@ -335,8 +289,8 @@ function FieldHelpTemplate(props) {
335
289
 
336
290
  // src/FieldTemplate/FieldTemplate.tsx
337
291
  import {
338
- getTemplate as getTemplate2,
339
- getUiOptions as getUiOptions2
292
+ getTemplate as getTemplate3,
293
+ getUiOptions as getUiOptions3
340
294
  } from "@rjsf/utils";
341
295
  import Form3 from "react-bootstrap/Form";
342
296
  import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
@@ -362,8 +316,8 @@ function FieldTemplate({
362
316
  uiSchema,
363
317
  registry
364
318
  }) {
365
- const uiOptions = getUiOptions2(uiSchema);
366
- const WrapIfAdditionalTemplate2 = getTemplate2(
319
+ const uiOptions = getUiOptions3(uiSchema);
320
+ const WrapIfAdditionalTemplate2 = getTemplate3(
367
321
  "WrapIfAdditionalTemplate",
368
322
  registry,
369
323
  uiOptions
@@ -400,18 +354,31 @@ function FieldTemplate({
400
354
  );
401
355
  }
402
356
 
403
- // src/ObjectFieldTemplate/ObjectFieldTemplate.tsx
357
+ // src/GridTemplate/GridTemplate.tsx
404
358
  import Row3 from "react-bootstrap/Row";
405
359
  import Col3 from "react-bootstrap/Col";
360
+ import { jsx as jsx11 } from "react/jsx-runtime";
361
+ function GridTemplate(props) {
362
+ const { children, column, ...rest } = props;
363
+ if (column) {
364
+ return /* @__PURE__ */ jsx11(Col3, { ...rest, children });
365
+ }
366
+ return /* @__PURE__ */ jsx11(Row3, { ...rest, children });
367
+ }
368
+
369
+ // src/ObjectFieldTemplate/ObjectFieldTemplate.tsx
370
+ import Row4 from "react-bootstrap/Row";
371
+ import Col4 from "react-bootstrap/Col";
406
372
  import Container2 from "react-bootstrap/Container";
407
373
  import {
374
+ buttonId as buttonId2,
408
375
  canExpand,
409
376
  descriptionId,
410
- getTemplate as getTemplate3,
411
- getUiOptions as getUiOptions3,
377
+ getTemplate as getTemplate4,
378
+ getUiOptions as getUiOptions4,
412
379
  titleId
413
380
  } from "@rjsf/utils";
414
- import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
381
+ import { Fragment as Fragment2, jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
415
382
  function ObjectFieldTemplate({
416
383
  description,
417
384
  title,
@@ -426,9 +393,9 @@ function ObjectFieldTemplate({
426
393
  readonly,
427
394
  registry
428
395
  }) {
429
- const uiOptions = getUiOptions3(uiSchema);
430
- const TitleFieldTemplate = getTemplate3("TitleFieldTemplate", registry, uiOptions);
431
- const DescriptionFieldTemplate = getTemplate3(
396
+ const uiOptions = getUiOptions4(uiSchema);
397
+ const TitleFieldTemplate = getTemplate4("TitleFieldTemplate", registry, uiOptions);
398
+ const DescriptionFieldTemplate = getTemplate4(
432
399
  "DescriptionFieldTemplate",
433
400
  registry,
434
401
  uiOptions
@@ -437,7 +404,7 @@ function ObjectFieldTemplate({
437
404
  ButtonTemplates: { AddButton: AddButton2 }
438
405
  } = registry.templates;
439
406
  return /* @__PURE__ */ jsxs6(Fragment2, { children: [
440
- title && /* @__PURE__ */ jsx11(
407
+ title && /* @__PURE__ */ jsx12(
441
408
  TitleFieldTemplate,
442
409
  {
443
410
  id: titleId(idSchema),
@@ -448,7 +415,7 @@ function ObjectFieldTemplate({
448
415
  registry
449
416
  }
450
417
  ),
451
- description && /* @__PURE__ */ jsx11(
418
+ description && /* @__PURE__ */ jsx12(
452
419
  DescriptionFieldTemplate,
453
420
  {
454
421
  id: descriptionId(idSchema),
@@ -459,16 +426,17 @@ function ObjectFieldTemplate({
459
426
  }
460
427
  ),
461
428
  /* @__PURE__ */ jsxs6(Container2, { fluid: true, className: "p-0", children: [
462
- properties.map((element, index) => /* @__PURE__ */ jsx11(Row3, { style: { marginBottom: "10px" }, className: element.hidden ? "d-none" : void 0, children: /* @__PURE__ */ jsxs6(Col3, { xs: 12, children: [
429
+ properties.map((element, index) => /* @__PURE__ */ jsx12(Row4, { style: { marginBottom: "10px" }, className: element.hidden ? "d-none" : void 0, children: /* @__PURE__ */ jsxs6(Col4, { xs: 12, children: [
463
430
  " ",
464
431
  element.content
465
432
  ] }) }, index)),
466
- canExpand(schema, uiSchema, formData) ? /* @__PURE__ */ jsx11(Row3, { children: /* @__PURE__ */ jsx11(Col3, { xs: { offset: 9, span: 3 }, className: "py-4", children: /* @__PURE__ */ jsx11(
433
+ canExpand(schema, uiSchema, formData) ? /* @__PURE__ */ jsx12(Row4, { children: /* @__PURE__ */ jsx12(Col4, { xs: { offset: 9, span: 3 }, className: "py-4", children: /* @__PURE__ */ jsx12(
467
434
  AddButton2,
468
435
  {
436
+ id: buttonId2(idSchema, "add"),
469
437
  onClick: onAddClick(schema),
470
438
  disabled: disabled || readonly,
471
- className: "object-property-expand",
439
+ className: "rjsf-object-property-expand",
472
440
  uiSchema,
473
441
  registry
474
442
  }
@@ -480,39 +448,40 @@ function ObjectFieldTemplate({
480
448
  // src/SubmitButton/SubmitButton.tsx
481
449
  import Button3 from "react-bootstrap/Button";
482
450
  import { getSubmitButtonOptions } from "@rjsf/utils";
483
- import { jsx as jsx12 } from "react/jsx-runtime";
451
+ import { jsx as jsx13 } from "react/jsx-runtime";
484
452
  function SubmitButton(props) {
485
453
  const { submitText, norender, props: submitButtonProps } = getSubmitButtonOptions(props.uiSchema);
486
454
  if (norender) {
487
455
  return null;
488
456
  }
489
- return /* @__PURE__ */ jsx12("div", { children: /* @__PURE__ */ jsx12(Button3, { variant: "primary", type: "submit", ...submitButtonProps, children: submitText }) });
457
+ return /* @__PURE__ */ jsx13("div", { children: /* @__PURE__ */ jsx13(Button3, { variant: "primary", type: "submit", ...submitButtonProps, children: submitText }) });
490
458
  }
491
459
 
492
460
  // src/TitleField/TitleField.tsx
493
- import { getUiOptions as getUiOptions4 } from "@rjsf/utils";
494
- import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
461
+ import { getUiOptions as getUiOptions5 } from "@rjsf/utils";
462
+ import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
495
463
  function TitleField({
496
464
  id,
497
465
  title,
498
466
  uiSchema
499
467
  }) {
500
- const uiOptions = getUiOptions4(uiSchema);
468
+ const uiOptions = getUiOptions5(uiSchema);
501
469
  return /* @__PURE__ */ jsxs7("div", { id, className: "my-1", children: [
502
- /* @__PURE__ */ jsx13("h5", { children: uiOptions.title || title }),
503
- /* @__PURE__ */ jsx13("hr", { className: "border-0 bg-secondary", style: { height: "1px" } })
470
+ /* @__PURE__ */ jsx14("h5", { children: uiOptions.title || title }),
471
+ /* @__PURE__ */ jsx14("hr", { className: "border-0 bg-secondary", style: { height: "1px" } })
504
472
  ] });
505
473
  }
506
474
 
507
475
  // src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx
508
476
  import {
509
477
  ADDITIONAL_PROPERTY_FLAG,
478
+ buttonId as buttonId3,
510
479
  TranslatableString as TranslatableString4
511
480
  } from "@rjsf/utils";
512
- import Row4 from "react-bootstrap/Row";
513
- import Col4 from "react-bootstrap/Col";
481
+ import Row5 from "react-bootstrap/Row";
482
+ import Col5 from "react-bootstrap/Col";
514
483
  import Form4 from "react-bootstrap/Form";
515
- import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
484
+ import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
516
485
  function WrapIfAdditionalTemplate({
517
486
  classNames,
518
487
  style,
@@ -533,14 +502,14 @@ function WrapIfAdditionalTemplate({
533
502
  const keyLabel = translateString(TranslatableString4.KeyLabel, [label]);
534
503
  const additional = ADDITIONAL_PROPERTY_FLAG in schema;
535
504
  if (!additional) {
536
- return /* @__PURE__ */ jsx14("div", { className: classNames, style, children });
505
+ return /* @__PURE__ */ jsx15("div", { className: classNames, style, children });
537
506
  }
538
507
  const handleBlur = ({ target }) => onKeyChange(target.value);
539
508
  const keyId = `${id}-key`;
540
- return /* @__PURE__ */ jsxs8(Row4, { className: classNames, style, children: [
541
- /* @__PURE__ */ jsx14(Col4, { xs: 5, children: /* @__PURE__ */ jsxs8(Form4.Group, { children: [
542
- /* @__PURE__ */ jsx14(Form4.Label, { htmlFor: keyId, children: keyLabel }),
543
- /* @__PURE__ */ jsx14(
509
+ return /* @__PURE__ */ jsxs8(Row5, { className: classNames, style, children: [
510
+ /* @__PURE__ */ jsx15(Col5, { xs: 5, children: /* @__PURE__ */ jsxs8(Form4.Group, { children: [
511
+ /* @__PURE__ */ jsx15(Form4.Label, { htmlFor: keyId, children: keyLabel }),
512
+ /* @__PURE__ */ jsx15(
544
513
  Form4.Control,
545
514
  {
546
515
  required,
@@ -553,11 +522,12 @@ function WrapIfAdditionalTemplate({
553
522
  }
554
523
  )
555
524
  ] }) }),
556
- /* @__PURE__ */ jsx14(Col4, { xs: 5, children }),
557
- /* @__PURE__ */ jsx14(Col4, { xs: 2, className: "py-4 d-grid gap-2", children: /* @__PURE__ */ jsx14(
525
+ /* @__PURE__ */ jsx15(Col5, { xs: 5, children }),
526
+ /* @__PURE__ */ jsx15(Col5, { xs: 2, className: "py-4 d-grid gap-2", children: /* @__PURE__ */ jsx15(
558
527
  RemoveButton2,
559
528
  {
560
- className: "w-100",
529
+ id: buttonId3(id, "remove"),
530
+ className: "rjsf-object-property-remove w-100",
561
531
  disabled: disabled || readonly,
562
532
  onClick: onDropPropertyClick(label),
563
533
  uiSchema,
@@ -586,6 +556,7 @@ function generateTemplates() {
586
556
  FieldErrorTemplate,
587
557
  FieldHelpTemplate,
588
558
  FieldTemplate,
559
+ GridTemplate,
589
560
  ObjectFieldTemplate,
590
561
  TitleFieldTemplate: TitleField,
591
562
  WrapIfAdditionalTemplate
@@ -597,12 +568,12 @@ var Templates_default = generateTemplates();
597
568
  import {
598
569
  ariaDescribedByIds as ariaDescribedByIds2,
599
570
  descriptionId as descriptionId2,
600
- getTemplate as getTemplate4,
571
+ getTemplate as getTemplate5,
601
572
  labelValue,
602
573
  schemaRequiresTrueValue
603
574
  } from "@rjsf/utils";
604
575
  import Form5 from "react-bootstrap/Form";
605
- import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
576
+ import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
606
577
  function CheckboxWidget(props) {
607
578
  const {
608
579
  id,
@@ -621,7 +592,7 @@ function CheckboxWidget(props) {
621
592
  uiSchema
622
593
  } = props;
623
594
  const required = schemaRequiresTrueValue(schema);
624
- const DescriptionFieldTemplate = getTemplate4(
595
+ const DescriptionFieldTemplate = getTemplate5(
625
596
  "DescriptionFieldTemplate",
626
597
  registry,
627
598
  options
@@ -636,7 +607,7 @@ function CheckboxWidget(props) {
636
607
  className: `checkbox ${disabled || readonly ? "disabled" : ""}`,
637
608
  "aria-describedby": ariaDescribedByIds2(id),
638
609
  children: [
639
- !hideLabel && !!description && /* @__PURE__ */ jsx15(
610
+ !hideLabel && !!description && /* @__PURE__ */ jsx16(
640
611
  DescriptionFieldTemplate,
641
612
  {
642
613
  id: descriptionId2(id),
@@ -646,7 +617,7 @@ function CheckboxWidget(props) {
646
617
  registry
647
618
  }
648
619
  ),
649
- /* @__PURE__ */ jsx15(
620
+ /* @__PURE__ */ jsx16(
650
621
  Form5.Check,
651
622
  {
652
623
  id,
@@ -677,7 +648,7 @@ import {
677
648
  enumOptionsValueForIndex,
678
649
  optionId
679
650
  } from "@rjsf/utils";
680
- import { jsx as jsx16 } from "react/jsx-runtime";
651
+ import { jsx as jsx17 } from "react/jsx-runtime";
681
652
  function CheckboxesWidget({ id, disabled, options, value, autofocus, readonly, required, onChange, onBlur, onFocus }) {
682
653
  const { enumOptions, enumDisabled, inline, emptyValue } = options;
683
654
  const checkboxesValues = Array.isArray(value) ? value : [value];
@@ -690,10 +661,10 @@ function CheckboxesWidget({ id, disabled, options, value, autofocus, readonly, r
690
661
  };
691
662
  const _onBlur = ({ target }) => onBlur(id, enumOptionsValueForIndex(target && target.value, enumOptions, emptyValue));
692
663
  const _onFocus = ({ target }) => onFocus(id, enumOptionsValueForIndex(target && target.value, enumOptions, emptyValue));
693
- return /* @__PURE__ */ jsx16(Form6.Group, { children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
664
+ return /* @__PURE__ */ jsx17(Form6.Group, { children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
694
665
  const checked = enumOptionsIsSelected(option.value, checkboxesValues);
695
666
  const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
696
- return /* @__PURE__ */ jsx16(
667
+ return /* @__PURE__ */ jsx17(
697
668
  Form6.Check,
698
669
  {
699
670
  inline,
@@ -724,7 +695,7 @@ import {
724
695
  enumOptionsValueForIndex as enumOptionsValueForIndex2,
725
696
  optionId as optionId2
726
697
  } from "@rjsf/utils";
727
- import { jsx as jsx17 } from "react/jsx-runtime";
698
+ import { jsx as jsx18 } from "react/jsx-runtime";
728
699
  function RadioWidget({
729
700
  id,
730
701
  options,
@@ -741,10 +712,10 @@ function RadioWidget({
741
712
  const _onBlur = ({ target }) => onBlur(id, enumOptionsValueForIndex2(target && target.value, enumOptions, emptyValue));
742
713
  const _onFocus = ({ target }) => onFocus(id, enumOptionsValueForIndex2(target && target.value, enumOptions, emptyValue));
743
714
  const inline = Boolean(options && options.inline);
744
- return /* @__PURE__ */ jsx17(Form7.Group, { className: "mb-0", children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
715
+ return /* @__PURE__ */ jsx18(Form7.Group, { className: "mb-0", children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
745
716
  const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
746
717
  const checked = enumOptionsIsSelected2(option.value, value);
747
- const radio = /* @__PURE__ */ jsx17(
718
+ const radio = /* @__PURE__ */ jsx18(
748
719
  Form7.Check,
749
720
  {
750
721
  inline,
@@ -770,7 +741,7 @@ function RadioWidget({
770
741
  // src/RangeWidget/RangeWidget.tsx
771
742
  import { rangeSpec } from "@rjsf/utils";
772
743
  import FormRange from "react-bootstrap/FormRange";
773
- import { Fragment as Fragment3, jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
744
+ import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
774
745
  function RangeWidget(props) {
775
746
  const { id, value, disabled, onChange, onBlur, onFocus, schema } = props;
776
747
  const _onChange = ({ target: { value: value2 } }) => onChange(value2);
@@ -787,8 +758,8 @@ function RangeWidget(props) {
787
758
  ...rangeSpec(schema)
788
759
  };
789
760
  return /* @__PURE__ */ jsxs10(Fragment3, { children: [
790
- /* @__PURE__ */ jsx18(FormRange, { ...rangeProps }),
791
- /* @__PURE__ */ jsx18("span", { className: "range-view", children: value })
761
+ /* @__PURE__ */ jsx19(FormRange, { ...rangeProps }),
762
+ /* @__PURE__ */ jsx19("span", { className: "range-view", children: value })
792
763
  ] });
793
764
  }
794
765
 
@@ -799,7 +770,7 @@ import {
799
770
  enumOptionsIndexForValue,
800
771
  enumOptionsValueForIndex as enumOptionsValueForIndex3
801
772
  } from "@rjsf/utils";
802
- import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
773
+ import { jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
803
774
  function SelectWidget({
804
775
  schema,
805
776
  id,
@@ -852,10 +823,10 @@ function SelectWidget({
852
823
  },
853
824
  "aria-describedby": ariaDescribedByIds5(id),
854
825
  children: [
855
- showPlaceholderOption && /* @__PURE__ */ jsx19("option", { value: "", children: placeholder }),
826
+ showPlaceholderOption && /* @__PURE__ */ jsx20("option", { value: "", children: placeholder }),
856
827
  enumOptions.map(({ value: value2, label }, i) => {
857
828
  const disabled2 = Array.isArray(enumDisabled) && enumDisabled.indexOf(value2) != -1;
858
- return /* @__PURE__ */ jsx19("option", { id: label, value: String(i), disabled: disabled2, children: label }, i);
829
+ return /* @__PURE__ */ jsx20("option", { id: label, value: String(i), disabled: disabled2, children: label }, i);
859
830
  })
860
831
  ]
861
832
  }
@@ -866,7 +837,7 @@ function SelectWidget({
866
837
  import { ariaDescribedByIds as ariaDescribedByIds6 } from "@rjsf/utils";
867
838
  import FormControl from "react-bootstrap/FormControl";
868
839
  import InputGroup from "react-bootstrap/InputGroup";
869
- import { jsx as jsx20 } from "react/jsx-runtime";
840
+ import { jsx as jsx21 } from "react/jsx-runtime";
870
841
  function TextareaWidget({
871
842
  id,
872
843
  placeholder,
@@ -883,7 +854,7 @@ function TextareaWidget({
883
854
  const _onChange = ({ target: { value: value2 } }) => onChange(value2 === "" ? options.emptyValue : value2);
884
855
  const _onBlur = ({ target }) => onBlur(id, target && target.value);
885
856
  const _onFocus = ({ target }) => onFocus(id, target && target.value);
886
- return /* @__PURE__ */ jsx20(InputGroup, { children: /* @__PURE__ */ jsx20(
857
+ return /* @__PURE__ */ jsx21(InputGroup, { children: /* @__PURE__ */ jsx21(
887
858
  FormControl,
888
859
  {
889
860
  id,
@@ -933,13 +904,13 @@ function generateForm() {
933
904
  var Form_default = generateForm();
934
905
 
935
906
  // src/index.ts
936
- var src_default = Form_default;
907
+ var index_default = Form_default;
937
908
  export {
938
909
  Form_default as Form,
939
910
  Templates_default as Templates,
940
911
  Theme_default as Theme,
941
912
  Widgets_default as Widgets,
942
- src_default as default,
913
+ index_default as default,
943
914
  generateForm,
944
915
  generateTemplates,
945
916
  generateTheme,