@rjsf/react-bootstrap 6.0.0-beta.20 → 6.0.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/index.cjs +111 -43
  2. package/dist/index.cjs.map +4 -4
  3. package/dist/react-bootstrap.esm.js +107 -39
  4. package/dist/react-bootstrap.esm.js.map +4 -4
  5. package/dist/react-bootstrap.umd.js +70 -9
  6. package/lib/AddButton/AddButton.js +1 -1
  7. package/lib/AddButton/AddButton.js.map +1 -1
  8. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +3 -3
  9. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
  10. package/lib/IconButton/IconButton.d.ts +6 -5
  11. package/lib/IconButton/IconButton.js +1 -1
  12. package/lib/IconButton/IconButton.js.map +1 -1
  13. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +1 -1
  14. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +3 -2
  15. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
  16. package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.d.ts +10 -0
  17. package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js +22 -0
  18. package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js.map +1 -0
  19. package/lib/OptionalDataControlsTemplate/index.d.ts +2 -0
  20. package/lib/OptionalDataControlsTemplate/index.js +3 -0
  21. package/lib/OptionalDataControlsTemplate/index.js.map +1 -0
  22. package/lib/Templates/Templates.js +2 -0
  23. package/lib/Templates/Templates.js.map +1 -1
  24. package/lib/TitleField/TitleField.d.ts +1 -1
  25. package/lib/TitleField/TitleField.js +9 -2
  26. package/lib/TitleField/TitleField.js.map +1 -1
  27. package/lib/tsconfig.tsbuildinfo +1 -1
  28. package/package.json +7 -7
  29. package/src/AddButton/AddButton.tsx +1 -1
  30. package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +20 -6
  31. package/src/IconButton/IconButton.tsx +12 -6
  32. package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +4 -0
  33. package/src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx +47 -0
  34. package/src/OptionalDataControlsTemplate/index.ts +2 -0
  35. package/src/Templates/Templates.ts +2 -0
  36. package/src/TitleField/TitleField.tsx +19 -2
package/dist/index.cjs CHANGED
@@ -59,10 +59,10 @@ function AddButton({
59
59
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
60
60
  import_Button.default,
61
61
  {
62
+ title: translateString(import_utils.TranslatableString.AddItemButton),
62
63
  ...props,
63
64
  style: { width: "100%" },
64
65
  className: `ml-1 ${props.className}`,
65
- title: translateString(import_utils.TranslatableString.AddItemButton),
66
66
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_BsPlus.BsPlus, {})
67
67
  }
68
68
  );
@@ -100,7 +100,20 @@ var import_Container = __toESM(require("react-bootstrap/Container"), 1);
100
100
  var import_utils3 = require("@rjsf/utils");
101
101
  var import_jsx_runtime3 = require("react/jsx-runtime");
102
102
  function ArrayFieldTemplate(props) {
103
- const { canAdd, disabled, fieldPathId, uiSchema, items, onAddClick, readonly, registry, required, schema, title } = props;
103
+ const {
104
+ canAdd,
105
+ disabled,
106
+ fieldPathId,
107
+ uiSchema,
108
+ items,
109
+ optionalDataControl,
110
+ onAddClick,
111
+ readonly,
112
+ registry,
113
+ required,
114
+ schema,
115
+ title
116
+ } = props;
104
117
  const uiOptions = (0, import_utils3.getUiOptions)(uiSchema);
105
118
  const ArrayFieldDescriptionTemplate = (0, import_utils3.getTemplate)(
106
119
  "ArrayFieldDescriptionTemplate",
@@ -117,6 +130,7 @@ function ArrayFieldTemplate(props) {
117
130
  registry,
118
131
  uiOptions
119
132
  );
133
+ const showOptionalDataControlInTitle = !readonly && !disabled;
120
134
  const {
121
135
  ButtonTemplates: { AddButton: AddButton2 }
122
136
  } = registry.templates;
@@ -129,7 +143,8 @@ function ArrayFieldTemplate(props) {
129
143
  schema,
130
144
  uiSchema,
131
145
  required,
132
- registry
146
+ registry,
147
+ optionalDataControl: showOptionalDataControlInTitle ? optionalDataControl : void 0
133
148
  }
134
149
  ),
135
150
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
@@ -143,7 +158,8 @@ function ArrayFieldTemplate(props) {
143
158
  }
144
159
  ),
145
160
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_Container.default, { fluid: true, className: "p-0 m-0", children: [
146
- items && items.map(({ key, ...itemProps }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ArrayFieldItemTemplate2, { ...itemProps }, key)),
161
+ !showOptionalDataControlInTitle ? optionalDataControl : void 0,
162
+ items.map(({ key, ...itemProps }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ArrayFieldItemTemplate2, { ...itemProps }, key)),
147
163
  canAdd && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_Container.default, { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_Row2.default, { className: "mt-2", children: [
148
164
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_Col2.default, { xs: 9 }),
149
165
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_Col2.default, { xs: 3, className: "py-4 col-lg-3 col-3", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
@@ -286,8 +302,8 @@ function RemoveButton(props) {
286
302
  IconButton,
287
303
  {
288
304
  title: translateString(import_utils6.TranslatableString.RemoveButton),
289
- ...props,
290
305
  variant: "danger",
306
+ ...props,
291
307
  icon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_IoIosRemove.IoIosRemove, {})
292
308
  }
293
309
  );
@@ -422,6 +438,7 @@ function ObjectFieldTemplate({
422
438
  fieldPathId,
423
439
  schema,
424
440
  formData,
441
+ optionalDataControl,
425
442
  onAddClick,
426
443
  disabled,
427
444
  readonly,
@@ -434,6 +451,7 @@ function ObjectFieldTemplate({
434
451
  registry,
435
452
  uiOptions
436
453
  );
454
+ const showOptionalDataControlInTitle = !readonly && !disabled;
437
455
  const {
438
456
  ButtonTemplates: { AddButton: AddButton2 }
439
457
  } = registry.templates;
@@ -446,7 +464,8 @@ function ObjectFieldTemplate({
446
464
  required,
447
465
  schema,
448
466
  uiSchema,
449
- registry
467
+ registry,
468
+ optionalDataControl: showOptionalDataControlInTitle ? optionalDataControl : void 0
450
469
  }
451
470
  ),
452
471
  description && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
@@ -460,6 +479,7 @@ function ObjectFieldTemplate({
460
479
  }
461
480
  ),
462
481
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_Container2.default, { fluid: true, className: "p-0", children: [
482
+ !showOptionalDataControlInTitle ? optionalDataControl : void 0,
463
483
  properties.map((element, index) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_Row4.default, { style: { marginBottom: "10px" }, className: element.hidden ? "d-none" : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_Col4.default, { xs: 12, children: [
464
484
  " ",
465
485
  element.content
@@ -479,39 +499,86 @@ function ObjectFieldTemplate({
479
499
  ] });
480
500
  }
481
501
 
502
+ // src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx
503
+ var import_BsPlus2 = require("@react-icons/all-files/bs/BsPlus");
504
+ var import_jsx_runtime14 = require("react/jsx-runtime");
505
+ function OptionalDataControlsTemplate(props) {
506
+ const { id, registry, label, onAddClick, onRemoveClick } = props;
507
+ if (onAddClick) {
508
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
509
+ IconButton,
510
+ {
511
+ id,
512
+ registry,
513
+ className: "rjsf-add-optional-data",
514
+ icon: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_BsPlus2.BsPlus, {}),
515
+ onClick: onAddClick,
516
+ title: label,
517
+ size: "sm",
518
+ variant: "secondary"
519
+ }
520
+ );
521
+ } else if (onRemoveClick) {
522
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
523
+ RemoveButton,
524
+ {
525
+ id,
526
+ registry,
527
+ className: "rjsf-remove-optional-data",
528
+ onClick: onRemoveClick,
529
+ title: label,
530
+ size: "sm",
531
+ variant: "secondary"
532
+ }
533
+ );
534
+ }
535
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("em", { id, children: label });
536
+ }
537
+
482
538
  // src/SubmitButton/SubmitButton.tsx
483
539
  var import_Button3 = __toESM(require("react-bootstrap/Button"), 1);
484
540
  var import_utils11 = require("@rjsf/utils");
485
- var import_jsx_runtime14 = require("react/jsx-runtime");
541
+ var import_jsx_runtime15 = require("react/jsx-runtime");
486
542
  function SubmitButton(props) {
487
543
  const { submitText, norender, props: submitButtonProps } = (0, import_utils11.getSubmitButtonOptions)(props.uiSchema);
488
544
  if (norender) {
489
545
  return null;
490
546
  }
491
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_Button3.default, { variant: "primary", type: "submit", ...submitButtonProps, children: submitText }) });
547
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_Button3.default, { variant: "primary", type: "submit", ...submitButtonProps, children: submitText }) });
492
548
  }
493
549
 
494
550
  // src/TitleField/TitleField.tsx
495
551
  var import_utils12 = require("@rjsf/utils");
496
- var import_jsx_runtime15 = require("react/jsx-runtime");
552
+ var import_Row5 = __toESM(require("react-bootstrap/Row"), 1);
553
+ var import_Col5 = __toESM(require("react-bootstrap/Col"), 1);
554
+ var import_Container3 = __toESM(require("react-bootstrap/Container"), 1);
555
+ var import_jsx_runtime16 = require("react/jsx-runtime");
497
556
  function TitleField({
498
557
  id,
499
558
  title,
500
- uiSchema
559
+ uiSchema,
560
+ optionalDataControl
501
561
  }) {
502
562
  const uiOptions = (0, import_utils12.getUiOptions)(uiSchema);
503
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { id, className: "my-1", children: [
504
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h5", { children: uiOptions.title || title }),
505
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("hr", { className: "border-0 bg-secondary", style: { height: "1px" } })
563
+ let heading = /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h5", { children: uiOptions.title || title });
564
+ if (optionalDataControl) {
565
+ heading = /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_Container3.default, { fluid: true, className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_Row5.default, { children: [
566
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_Col5.default, { xs: "11", children: heading }),
567
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_Col5.default, { xs: "1", style: { marginLeft: "-5px" }, children: optionalDataControl })
568
+ ] }) });
569
+ }
570
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { id, className: "my-1", children: [
571
+ heading,
572
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("hr", { className: "border-0 bg-secondary mt-0", style: { height: "1px" } })
506
573
  ] });
507
574
  }
508
575
 
509
576
  // src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx
510
577
  var import_utils13 = require("@rjsf/utils");
511
- var import_Row5 = __toESM(require("react-bootstrap/Row"), 1);
512
- var import_Col5 = __toESM(require("react-bootstrap/Col"), 1);
578
+ var import_Row6 = __toESM(require("react-bootstrap/Row"), 1);
579
+ var import_Col6 = __toESM(require("react-bootstrap/Col"), 1);
513
580
  var import_Form4 = __toESM(require("react-bootstrap/Form"), 1);
514
- var import_jsx_runtime16 = require("react/jsx-runtime");
581
+ var import_jsx_runtime17 = require("react/jsx-runtime");
515
582
  function WrapIfAdditionalTemplate({
516
583
  classNames,
517
584
  style,
@@ -532,14 +599,14 @@ function WrapIfAdditionalTemplate({
532
599
  const keyLabel = translateString(import_utils13.TranslatableString.KeyLabel, [label]);
533
600
  const additional = import_utils13.ADDITIONAL_PROPERTY_FLAG in schema;
534
601
  if (!additional) {
535
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: classNames, style, children });
602
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: classNames, style, children });
536
603
  }
537
604
  const handleBlur = ({ target }) => onKeyChange(target.value);
538
605
  const keyId = `${id}-key`;
539
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_Row5.default, { className: classNames, style, children: [
540
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_Col5.default, { xs: 5, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_Form4.default.Group, { children: [
541
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_Form4.default.Label, { htmlFor: keyId, children: keyLabel }),
542
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
606
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_Row6.default, { className: classNames, style, children: [
607
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Col6.default, { xs: 5, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_Form4.default.Group, { children: [
608
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Form4.default.Label, { htmlFor: keyId, children: keyLabel }),
609
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
543
610
  import_Form4.default.Control,
544
611
  {
545
612
  required,
@@ -552,8 +619,8 @@ function WrapIfAdditionalTemplate({
552
619
  }
553
620
  )
554
621
  ] }) }),
555
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_Col5.default, { xs: 5, children }),
556
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_Col5.default, { xs: 2, className: "py-4 d-grid gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
622
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Col6.default, { xs: 5, children }),
623
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Col6.default, { xs: 2, className: "py-4 d-grid gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
557
624
  RemoveButton2,
558
625
  {
559
626
  id: (0, import_utils13.buttonId)(id, "remove"),
@@ -589,6 +656,7 @@ function generateTemplates() {
589
656
  GridTemplate,
590
657
  MultiSchemaFieldTemplate,
591
658
  ObjectFieldTemplate,
659
+ OptionalDataControlsTemplate,
592
660
  TitleFieldTemplate: TitleField,
593
661
  WrapIfAdditionalTemplate
594
662
  };
@@ -598,7 +666,7 @@ var Templates_default = generateTemplates();
598
666
  // src/CheckboxWidget/CheckboxWidget.tsx
599
667
  var import_utils14 = require("@rjsf/utils");
600
668
  var import_Form5 = __toESM(require("react-bootstrap/Form"), 1);
601
- var import_jsx_runtime17 = require("react/jsx-runtime");
669
+ var import_jsx_runtime18 = require("react/jsx-runtime");
602
670
  function CheckboxWidget(props) {
603
671
  const {
604
672
  id,
@@ -626,8 +694,8 @@ function CheckboxWidget(props) {
626
694
  const _onBlur = ({ target }) => onBlur(id, target && target.checked);
627
695
  const _onFocus = ({ target }) => onFocus(id, target && target.checked);
628
696
  const description = options.description || schema.description;
629
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_Form5.default.Group, { className: disabled || readonly ? "disabled" : "", "aria-describedby": (0, import_utils14.ariaDescribedByIds)(id), children: [
630
- !hideLabel && description && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
697
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_Form5.default.Group, { className: disabled || readonly ? "disabled" : "", "aria-describedby": (0, import_utils14.ariaDescribedByIds)(id), children: [
698
+ !hideLabel && description && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
631
699
  DescriptionFieldTemplate,
632
700
  {
633
701
  id: (0, import_utils14.descriptionId)(id),
@@ -637,7 +705,7 @@ function CheckboxWidget(props) {
637
705
  registry
638
706
  }
639
707
  ),
640
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
708
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
641
709
  import_Form5.default.Check,
642
710
  {
643
711
  id,
@@ -659,7 +727,7 @@ function CheckboxWidget(props) {
659
727
  // src/CheckboxesWidget/CheckboxesWidget.tsx
660
728
  var import_Form6 = __toESM(require("react-bootstrap/Form"), 1);
661
729
  var import_utils15 = require("@rjsf/utils");
662
- var import_jsx_runtime18 = require("react/jsx-runtime");
730
+ var import_jsx_runtime19 = require("react/jsx-runtime");
663
731
  function CheckboxesWidget({ id, disabled, options, value, autofocus, readonly, required, onChange, onBlur, onFocus }) {
664
732
  const { enumOptions, enumDisabled, inline, emptyValue } = options;
665
733
  const checkboxesValues = Array.isArray(value) ? value : [value];
@@ -672,10 +740,10 @@ function CheckboxesWidget({ id, disabled, options, value, autofocus, readonly, r
672
740
  };
673
741
  const _onBlur = ({ target }) => onBlur(id, (0, import_utils15.enumOptionsValueForIndex)(target && target.value, enumOptions, emptyValue));
674
742
  const _onFocus = ({ target }) => onFocus(id, (0, import_utils15.enumOptionsValueForIndex)(target && target.value, enumOptions, emptyValue));
675
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_Form6.default.Group, { children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
743
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_Form6.default.Group, { children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
676
744
  const checked = (0, import_utils15.enumOptionsIsSelected)(option.value, checkboxesValues);
677
745
  const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
678
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
746
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
679
747
  import_Form6.default.Check,
680
748
  {
681
749
  inline,
@@ -701,7 +769,7 @@ function CheckboxesWidget({ id, disabled, options, value, autofocus, readonly, r
701
769
  // src/RadioWidget/RadioWidget.tsx
702
770
  var import_Form7 = __toESM(require("react-bootstrap/Form"), 1);
703
771
  var import_utils16 = require("@rjsf/utils");
704
- var import_jsx_runtime19 = require("react/jsx-runtime");
772
+ var import_jsx_runtime20 = require("react/jsx-runtime");
705
773
  function RadioWidget({
706
774
  id,
707
775
  options,
@@ -718,10 +786,10 @@ function RadioWidget({
718
786
  const _onBlur = ({ target }) => onBlur(id, (0, import_utils16.enumOptionsValueForIndex)(target && target.value, enumOptions, emptyValue));
719
787
  const _onFocus = ({ target }) => onFocus(id, (0, import_utils16.enumOptionsValueForIndex)(target && target.value, enumOptions, emptyValue));
720
788
  const inline = Boolean(options && options.inline);
721
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_Form7.default.Group, { className: "mb-0", children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
789
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_Form7.default.Group, { className: "mb-0", children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
722
790
  const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
723
791
  const checked = (0, import_utils16.enumOptionsIsSelected)(option.value, value);
724
- const radio = /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
792
+ const radio = /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
725
793
  import_Form7.default.Check,
726
794
  {
727
795
  inline,
@@ -747,7 +815,7 @@ function RadioWidget({
747
815
  // src/RangeWidget/RangeWidget.tsx
748
816
  var import_utils17 = require("@rjsf/utils");
749
817
  var import_FormRange = __toESM(require("react-bootstrap/FormRange"), 1);
750
- var import_jsx_runtime20 = require("react/jsx-runtime");
818
+ var import_jsx_runtime21 = require("react/jsx-runtime");
751
819
  function RangeWidget(props) {
752
820
  const { id, value, disabled, onChange, onBlur, onFocus, schema } = props;
753
821
  const _onChange = ({ target: { value: value2 } }) => onChange(value2);
@@ -763,16 +831,16 @@ function RangeWidget(props) {
763
831
  onFocus: _onFocus,
764
832
  ...(0, import_utils17.rangeSpec)(schema)
765
833
  };
766
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
767
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_FormRange.default, { ...rangeProps }),
768
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "range-view", children: value })
834
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
835
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_FormRange.default, { ...rangeProps }),
836
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "range-view", children: value })
769
837
  ] });
770
838
  }
771
839
 
772
840
  // src/SelectWidget/SelectWidget.tsx
773
841
  var import_FormSelect = __toESM(require("react-bootstrap/FormSelect"), 1);
774
842
  var import_utils18 = require("@rjsf/utils");
775
- var import_jsx_runtime21 = require("react/jsx-runtime");
843
+ var import_jsx_runtime22 = require("react/jsx-runtime");
776
844
  function SelectWidget({
777
845
  schema,
778
846
  id,
@@ -800,7 +868,7 @@ function SelectWidget({
800
868
  }
801
869
  const selectedIndexes = (0, import_utils18.enumOptionsIndexForValue)(value, enumOptions, multiple);
802
870
  const showPlaceholderOption = !multiple && schema.default === void 0;
803
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
871
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
804
872
  import_FormSelect.default,
805
873
  {
806
874
  id,
@@ -825,10 +893,10 @@ function SelectWidget({
825
893
  },
826
894
  "aria-describedby": (0, import_utils18.ariaDescribedByIds)(id),
827
895
  children: [
828
- showPlaceholderOption && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("option", { value: "", children: placeholder }),
896
+ showPlaceholderOption && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { value: "", children: placeholder }),
829
897
  enumOptions.map(({ value: value2, label }, i) => {
830
898
  const disabled2 = Array.isArray(enumDisabled) && enumDisabled.indexOf(value2) != -1;
831
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("option", { id: label, value: String(i), disabled: disabled2, children: label }, i);
899
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { id: label, value: String(i), disabled: disabled2, children: label }, i);
832
900
  })
833
901
  ]
834
902
  }
@@ -839,7 +907,7 @@ function SelectWidget({
839
907
  var import_utils19 = require("@rjsf/utils");
840
908
  var import_FormControl = __toESM(require("react-bootstrap/FormControl"), 1);
841
909
  var import_InputGroup = __toESM(require("react-bootstrap/InputGroup"), 1);
842
- var import_jsx_runtime22 = require("react/jsx-runtime");
910
+ var import_jsx_runtime23 = require("react/jsx-runtime");
843
911
  function TextareaWidget({
844
912
  id,
845
913
  placeholder,
@@ -856,7 +924,7 @@ function TextareaWidget({
856
924
  const _onChange = ({ target: { value: value2 } }) => onChange(value2 === "" ? options.emptyValue : value2);
857
925
  const _onBlur = ({ target }) => onBlur(id, target && target.value);
858
926
  const _onFocus = ({ target }) => onFocus(id, target && target.value);
859
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_InputGroup.default, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
927
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_InputGroup.default, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
860
928
  import_FormControl.default,
861
929
  {
862
930
  id,