@rjsf/react-bootstrap 6.5.3 → 6.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/index.cjs +152 -152
  2. package/dist/index.cjs.map +4 -4
  3. package/dist/react-bootstrap.esm.js +153 -153
  4. package/dist/react-bootstrap.esm.js.map +4 -4
  5. package/dist/react-bootstrap.umd.js +96 -96
  6. package/lib/AddButton/AddButton.js +1 -1
  7. package/lib/AddButton/AddButton.js.map +1 -1
  8. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +2 -2
  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/BaseInputTemplate/BaseInputTemplate.js +2 -2
  13. package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
  14. package/lib/CheckboxesWidget/CheckboxesWidget.js +1 -1
  15. package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
  16. package/lib/DescriptionField/DescriptionField.js.map +1 -1
  17. package/lib/ErrorList/ErrorList.js +1 -1
  18. package/lib/ErrorList/ErrorList.js.map +1 -1
  19. package/lib/FieldHelpTemplate/FieldHelpTemplate.js +1 -1
  20. package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
  21. package/lib/Form/Form.js.map +1 -1
  22. package/lib/GridTemplate/GridTemplate.js +1 -1
  23. package/lib/GridTemplate/GridTemplate.js.map +1 -1
  24. package/lib/IconButton/IconButton.js +4 -4
  25. package/lib/IconButton/IconButton.js.map +1 -1
  26. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +2 -2
  27. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
  28. package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js.map +1 -1
  29. package/lib/RadioWidget/RadioWidget.js +1 -1
  30. package/lib/RadioWidget/RadioWidget.js.map +1 -1
  31. package/lib/RangeWidget/RangeWidget.js.map +1 -1
  32. package/lib/SelectWidget/SelectWidget.js +1 -1
  33. package/lib/SelectWidget/SelectWidget.js.map +1 -1
  34. package/lib/SubmitButton/SubmitButton.js +1 -1
  35. package/lib/SubmitButton/SubmitButton.js.map +1 -1
  36. package/lib/Templates/Templates.js +1 -1
  37. package/lib/Templates/Templates.js.map +1 -1
  38. package/lib/Theme/Theme.js.map +1 -1
  39. package/lib/TitleField/TitleField.js +1 -1
  40. package/lib/TitleField/TitleField.js.map +1 -1
  41. package/lib/Widgets/Widgets.js +1 -1
  42. package/lib/Widgets/Widgets.js.map +1 -1
  43. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +1 -1
  44. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
  45. package/lib/tsconfig.tsbuildinfo +1 -1
  46. package/package.json +13 -13
  47. package/src/AddButton/AddButton.tsx +1 -1
  48. package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +2 -2
  49. package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +3 -3
  50. package/src/BaseInputTemplate/BaseInputTemplate.tsx +2 -2
  51. package/src/CheckboxesWidget/CheckboxesWidget.tsx +1 -1
  52. package/src/DescriptionField/DescriptionField.tsx +1 -1
  53. package/src/ErrorList/ErrorList.tsx +1 -2
  54. package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +1 -1
  55. package/src/Form/Form.tsx +2 -2
  56. package/src/GridTemplate/GridTemplate.tsx +2 -2
  57. package/src/IconButton/IconButton.tsx +4 -4
  58. package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +3 -4
  59. package/src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx +1 -1
  60. package/src/RadioWidget/RadioWidget.tsx +1 -1
  61. package/src/RangeWidget/RangeWidget.tsx +1 -1
  62. package/src/SelectWidget/SelectWidget.tsx +1 -1
  63. package/src/SubmitButton/SubmitButton.tsx +1 -1
  64. package/src/Templates/Templates.ts +3 -2
  65. package/src/Theme/Theme.tsx +1 -1
  66. package/src/TitleField/TitleField.tsx +1 -1
  67. package/src/Widgets/Widgets.ts +3 -2
  68. package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +1 -2
  69. package/src/tsconfig.json +0 -1
@@ -2,9 +2,9 @@
2
2
  import { withTheme } from "@rjsf/core";
3
3
 
4
4
  // src/AddButton/AddButton.tsx
5
+ import { BsPlus } from "@react-icons/all-files/bs/BsPlus";
5
6
  import { TranslatableString } from "@rjsf/utils";
6
7
  import Button from "react-bootstrap/Button";
7
- import { BsPlus } from "@react-icons/all-files/bs/BsPlus";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  function AddButton({
10
10
  uiSchema,
@@ -25,12 +25,12 @@ function AddButton({
25
25
  }
26
26
 
27
27
  // src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx
28
- import Row from "react-bootstrap/Row";
29
- import Col from "react-bootstrap/Col";
30
28
  import {
31
29
  getTemplate,
32
30
  getUiOptions
33
31
  } from "@rjsf/utils";
32
+ import Col from "react-bootstrap/Col";
33
+ import Row from "react-bootstrap/Row";
34
34
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
35
35
  function ArrayFieldItemTemplate(props) {
36
36
  const { children, buttonsProps, displayLabel, hasDescription, hasToolbar, uiSchema, registry } = props;
@@ -54,14 +54,14 @@ function ArrayFieldItemTemplate(props) {
54
54
  }
55
55
 
56
56
  // src/ArrayFieldTemplate/ArrayFieldTemplate.tsx
57
- import Row2 from "react-bootstrap/Row";
58
- import Col2 from "react-bootstrap/Col";
59
- import Container from "react-bootstrap/Container";
60
57
  import {
61
58
  buttonId,
62
59
  getTemplate as getTemplate2,
63
60
  getUiOptions as getUiOptions2
64
61
  } from "@rjsf/utils";
62
+ import Col2 from "react-bootstrap/Col";
63
+ import Container from "react-bootstrap/Container";
64
+ import Row2 from "react-bootstrap/Row";
65
65
  import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
66
66
  function ArrayFieldTemplate(props) {
67
67
  const {
@@ -139,13 +139,13 @@ function ArrayFieldTemplate(props) {
139
139
 
140
140
  // src/BaseInputTemplate/BaseInputTemplate.tsx
141
141
  import { useCallback } from "react";
142
- import Form from "react-bootstrap/Form";
142
+ import { SchemaExamples } from "@rjsf/core";
143
143
  import {
144
144
  ariaDescribedByIds,
145
145
  examplesId,
146
146
  getInputProps
147
147
  } from "@rjsf/utils";
148
- import { SchemaExamples } from "@rjsf/core";
148
+ import Form from "react-bootstrap/Form";
149
149
  import { Fragment, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
150
150
  function BaseInputTemplate({
151
151
  id,
@@ -222,9 +222,9 @@ function DescriptionField({ id, description, registry, uiSchema }) {
222
222
  }
223
223
 
224
224
  // src/ErrorList/ErrorList.tsx
225
+ import { TranslatableString as TranslatableString2 } from "@rjsf/utils";
225
226
  import Card from "react-bootstrap/Card";
226
227
  import ListGroup from "react-bootstrap/ListGroup";
227
- import { TranslatableString as TranslatableString2 } from "@rjsf/utils";
228
228
  import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
229
229
  function ErrorList({
230
230
  errors,
@@ -239,84 +239,32 @@ function ErrorList({
239
239
  ] });
240
240
  }
241
241
 
242
- // src/IconButton/IconButton.tsx
243
- import { TranslatableString as TranslatableString3 } from "@rjsf/utils";
244
- import Button2 from "react-bootstrap/Button";
245
- import { IoIosCopy } from "@react-icons/all-files/io/IoIosCopy";
246
- import { IoIosRemove } from "@react-icons/all-files/io/IoIosRemove";
247
- import { AiOutlineArrowUp } from "@react-icons/all-files/ai/AiOutlineArrowUp";
248
- import { AiOutlineArrowDown } from "@react-icons/all-files/ai/AiOutlineArrowDown";
249
- import { IoMdClose } from "@react-icons/all-files/io/IoMdClose";
250
- import { jsx as jsx7 } from "react/jsx-runtime";
251
- function IconButton(props) {
252
- const { icon, iconType, className, uiSchema, registry, ...otherProps } = props;
253
- return /* @__PURE__ */ jsx7(Button2, { ...otherProps, variant: props.variant || "light", size: "sm", children: icon });
254
- }
255
- function CopyButton(props) {
256
- const {
257
- registry: { translateString }
258
- } = props;
259
- return /* @__PURE__ */ jsx7(IconButton, { title: translateString(TranslatableString3.CopyButton), ...props, icon: /* @__PURE__ */ jsx7(IoIosCopy, {}) });
260
- }
261
- function MoveDownButton(props) {
262
- const {
263
- registry: { translateString }
264
- } = props;
265
- return /* @__PURE__ */ jsx7(IconButton, { title: translateString(TranslatableString3.MoveDownButton), ...props, icon: /* @__PURE__ */ jsx7(AiOutlineArrowDown, {}) });
266
- }
267
- function MoveUpButton(props) {
268
- const {
269
- registry: { translateString }
270
- } = props;
271
- return /* @__PURE__ */ jsx7(IconButton, { title: translateString(TranslatableString3.MoveUpButton), ...props, icon: /* @__PURE__ */ jsx7(AiOutlineArrowUp, {}) });
272
- }
273
- function RemoveButton(props) {
274
- const {
275
- registry: { translateString }
276
- } = props;
277
- return /* @__PURE__ */ jsx7(
278
- IconButton,
279
- {
280
- title: translateString(TranslatableString3.RemoveButton),
281
- variant: "danger",
282
- ...props,
283
- icon: /* @__PURE__ */ jsx7(IoIosRemove, {})
284
- }
285
- );
286
- }
287
- function ClearButton(props) {
288
- const {
289
- registry: { translateString }
290
- } = props;
291
- return /* @__PURE__ */ jsx7(IconButton, { title: translateString(TranslatableString3.ClearButton), ...props, icon: /* @__PURE__ */ jsx7(IoMdClose, {}) });
292
- }
293
-
294
242
  // src/FieldErrorTemplate/FieldErrorTemplate.tsx
295
243
  import { errorId } from "@rjsf/utils";
296
244
  import ListGroup2 from "react-bootstrap/ListGroup";
297
- import { jsx as jsx8 } from "react/jsx-runtime";
245
+ import { jsx as jsx7 } from "react/jsx-runtime";
298
246
  function FieldErrorTemplate(props) {
299
247
  const { errors = [], fieldPathId } = props;
300
248
  if (errors.length === 0) {
301
249
  return null;
302
250
  }
303
251
  const id = errorId(fieldPathId);
304
- return /* @__PURE__ */ jsx8(ListGroup2, { as: "ul", id, children: errors.map((error, i) => {
305
- return /* @__PURE__ */ jsx8(ListGroup2.Item, { as: "li", className: "border-0 m-0 p-0", children: /* @__PURE__ */ jsx8("small", { className: "m-0 text-danger", children: error }) }, i);
252
+ return /* @__PURE__ */ jsx7(ListGroup2, { as: "ul", id, children: errors.map((error, i) => {
253
+ return /* @__PURE__ */ jsx7(ListGroup2.Item, { as: "li", className: "border-0 m-0 p-0", children: /* @__PURE__ */ jsx7("small", { className: "m-0 text-danger", children: error }) }, i);
306
254
  }) });
307
255
  }
308
256
 
309
257
  // src/FieldHelpTemplate/FieldHelpTemplate.tsx
310
- import { helpId } from "@rjsf/utils";
311
258
  import { RichHelp } from "@rjsf/core";
259
+ import { helpId } from "@rjsf/utils";
312
260
  import Form2 from "react-bootstrap/Form";
313
- import { jsx as jsx9 } from "react/jsx-runtime";
261
+ import { jsx as jsx8 } from "react/jsx-runtime";
314
262
  function FieldHelpTemplate(props) {
315
263
  const { fieldPathId, help, uiSchema, registry, hasErrors } = props;
316
264
  if (!help) {
317
265
  return null;
318
266
  }
319
- return /* @__PURE__ */ jsx9(Form2.Text, { id: helpId(fieldPathId), className: hasErrors ? "text-danger" : "text-muted", children: /* @__PURE__ */ jsx9(RichHelp, { help, registry, uiSchema }) });
267
+ return /* @__PURE__ */ jsx8(Form2.Text, { id: helpId(fieldPathId), className: hasErrors ? "text-danger" : "text-muted", children: /* @__PURE__ */ jsx8(RichHelp, { help, registry, uiSchema }) });
320
268
  }
321
269
 
322
270
  // src/FieldTemplate/FieldTemplate.tsx
@@ -325,7 +273,7 @@ import {
325
273
  getUiOptions as getUiOptions3
326
274
  } from "@rjsf/utils";
327
275
  import Form3 from "react-bootstrap/Form";
328
- import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
276
+ import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
329
277
  function FieldTemplate({
330
278
  id,
331
279
  children,
@@ -356,10 +304,10 @@ function FieldTemplate({
356
304
  uiOptions
357
305
  );
358
306
  if (hidden) {
359
- return /* @__PURE__ */ jsx10("div", { className: "hidden", children });
307
+ return /* @__PURE__ */ jsx9("div", { className: "hidden", children });
360
308
  }
361
309
  const isCheckbox = uiOptions.widget === "checkbox";
362
- return /* @__PURE__ */ jsx10(
310
+ return /* @__PURE__ */ jsx9(
363
311
  WrapIfAdditionalTemplate2,
364
312
  {
365
313
  classNames,
@@ -383,7 +331,7 @@ function FieldTemplate({
383
331
  required ? "*" : null
384
332
  ] }),
385
333
  children,
386
- displayLabel && rawDescription && !isCheckbox && /* @__PURE__ */ jsx10(Form3.Text, { className: rawErrors.length > 0 ? "text-danger" : "text-muted", children: description }),
334
+ displayLabel && rawDescription && !isCheckbox && /* @__PURE__ */ jsx9(Form3.Text, { className: rawErrors.length > 0 ? "text-danger" : "text-muted", children: description }),
387
335
  errors,
388
336
  help
389
337
  ] })
@@ -392,15 +340,67 @@ function FieldTemplate({
392
340
  }
393
341
 
394
342
  // src/GridTemplate/GridTemplate.tsx
395
- import Row3 from "react-bootstrap/Row";
396
343
  import Col3 from "react-bootstrap/Col";
397
- import { jsx as jsx11 } from "react/jsx-runtime";
344
+ import Row3 from "react-bootstrap/Row";
345
+ import { jsx as jsx10 } from "react/jsx-runtime";
398
346
  function GridTemplate(props) {
399
347
  const { children, column, ...rest } = props;
400
348
  if (column) {
401
- return /* @__PURE__ */ jsx11(Col3, { ...rest, children });
349
+ return /* @__PURE__ */ jsx10(Col3, { ...rest, children });
402
350
  }
403
- return /* @__PURE__ */ jsx11(Row3, { ...rest, children });
351
+ return /* @__PURE__ */ jsx10(Row3, { ...rest, children });
352
+ }
353
+
354
+ // src/IconButton/IconButton.tsx
355
+ import { AiOutlineArrowDown } from "@react-icons/all-files/ai/AiOutlineArrowDown";
356
+ import { AiOutlineArrowUp } from "@react-icons/all-files/ai/AiOutlineArrowUp";
357
+ import { IoIosCopy } from "@react-icons/all-files/io/IoIosCopy";
358
+ import { IoIosRemove } from "@react-icons/all-files/io/IoIosRemove";
359
+ import { IoMdClose } from "@react-icons/all-files/io/IoMdClose";
360
+ import { TranslatableString as TranslatableString3 } from "@rjsf/utils";
361
+ import Button2 from "react-bootstrap/Button";
362
+ import { jsx as jsx11 } from "react/jsx-runtime";
363
+ function IconButton(props) {
364
+ const { icon, iconType, className, uiSchema, registry, ...otherProps } = props;
365
+ return /* @__PURE__ */ jsx11(Button2, { ...otherProps, variant: props.variant || "light", size: "sm", children: icon });
366
+ }
367
+ function CopyButton(props) {
368
+ const {
369
+ registry: { translateString }
370
+ } = props;
371
+ return /* @__PURE__ */ jsx11(IconButton, { title: translateString(TranslatableString3.CopyButton), ...props, icon: /* @__PURE__ */ jsx11(IoIosCopy, {}) });
372
+ }
373
+ function MoveDownButton(props) {
374
+ const {
375
+ registry: { translateString }
376
+ } = props;
377
+ return /* @__PURE__ */ jsx11(IconButton, { title: translateString(TranslatableString3.MoveDownButton), ...props, icon: /* @__PURE__ */ jsx11(AiOutlineArrowDown, {}) });
378
+ }
379
+ function MoveUpButton(props) {
380
+ const {
381
+ registry: { translateString }
382
+ } = props;
383
+ return /* @__PURE__ */ jsx11(IconButton, { title: translateString(TranslatableString3.MoveUpButton), ...props, icon: /* @__PURE__ */ jsx11(AiOutlineArrowUp, {}) });
384
+ }
385
+ function RemoveButton(props) {
386
+ const {
387
+ registry: { translateString }
388
+ } = props;
389
+ return /* @__PURE__ */ jsx11(
390
+ IconButton,
391
+ {
392
+ title: translateString(TranslatableString3.RemoveButton),
393
+ variant: "danger",
394
+ ...props,
395
+ icon: /* @__PURE__ */ jsx11(IoIosRemove, {})
396
+ }
397
+ );
398
+ }
399
+ function ClearButton(props) {
400
+ const {
401
+ registry: { translateString }
402
+ } = props;
403
+ return /* @__PURE__ */ jsx11(IconButton, { title: translateString(TranslatableString3.ClearButton), ...props, icon: /* @__PURE__ */ jsx11(IoMdClose, {}) });
404
404
  }
405
405
 
406
406
  // src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx
@@ -414,9 +414,6 @@ function MultiSchemaFieldTemplate({ selector, optionSchemaField }) {
414
414
  }
415
415
 
416
416
  // src/ObjectFieldTemplate/ObjectFieldTemplate.tsx
417
- import Row4 from "react-bootstrap/Row";
418
- import Col4 from "react-bootstrap/Col";
419
- import Container2 from "react-bootstrap/Container";
420
417
  import {
421
418
  buttonId as buttonId2,
422
419
  canExpand,
@@ -425,6 +422,9 @@ import {
425
422
  getUiOptions as getUiOptions4,
426
423
  titleId
427
424
  } from "@rjsf/utils";
425
+ import Col4 from "react-bootstrap/Col";
426
+ import Container2 from "react-bootstrap/Container";
427
+ import Row4 from "react-bootstrap/Row";
428
428
  import { Fragment as Fragment2, jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
429
429
  function ObjectFieldTemplate({
430
430
  description,
@@ -533,8 +533,8 @@ function OptionalDataControlsTemplate(props) {
533
533
  }
534
534
 
535
535
  // src/SubmitButton/SubmitButton.tsx
536
- import Button3 from "react-bootstrap/Button";
537
536
  import { getSubmitButtonOptions } from "@rjsf/utils";
537
+ import Button3 from "react-bootstrap/Button";
538
538
  import { jsx as jsx15 } from "react/jsx-runtime";
539
539
  function SubmitButton(props) {
540
540
  const { submitText, norender, props: submitButtonProps } = getSubmitButtonOptions(props.uiSchema);
@@ -546,9 +546,9 @@ function SubmitButton(props) {
546
546
 
547
547
  // src/TitleField/TitleField.tsx
548
548
  import { getUiOptions as getUiOptions5 } from "@rjsf/utils";
549
- import Row5 from "react-bootstrap/Row";
550
549
  import Col5 from "react-bootstrap/Col";
551
550
  import Container3 from "react-bootstrap/Container";
551
+ import Row5 from "react-bootstrap/Row";
552
552
  import { jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
553
553
  function TitleField({
554
554
  id,
@@ -576,9 +576,9 @@ import {
576
576
  buttonId as buttonId3,
577
577
  TranslatableString as TranslatableString4
578
578
  } from "@rjsf/utils";
579
- import Row6 from "react-bootstrap/Row";
580
579
  import Col6 from "react-bootstrap/Col";
581
580
  import Form4 from "react-bootstrap/Form";
581
+ import Row6 from "react-bootstrap/Row";
582
582
  import { jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
583
583
  function WrapIfAdditionalTemplate({
584
584
  classNames,
@@ -671,16 +671,79 @@ function generateTemplates() {
671
671
  }
672
672
  var Templates_default = generateTemplates();
673
673
 
674
- // src/CheckboxWidget/CheckboxWidget.tsx
674
+ // src/CheckboxesWidget/CheckboxesWidget.tsx
675
675
  import {
676
676
  ariaDescribedByIds as ariaDescribedByIds2,
677
+ enumOptionValueDecoder,
678
+ enumOptionsDeselectValue,
679
+ enumOptionsIsSelected,
680
+ enumOptionsSelectValue,
681
+ getOptionValueFormat,
682
+ optionId
683
+ } from "@rjsf/utils";
684
+ import Form5 from "react-bootstrap/Form";
685
+ import { jsx as jsx18 } from "react/jsx-runtime";
686
+ function CheckboxesWidget({
687
+ id,
688
+ htmlName,
689
+ disabled,
690
+ options,
691
+ value,
692
+ autofocus,
693
+ readonly,
694
+ required,
695
+ onChange,
696
+ onBlur,
697
+ onFocus
698
+ }) {
699
+ const { enumOptions, enumDisabled, inline, emptyValue } = options;
700
+ const optionValueFormat = getOptionValueFormat(options);
701
+ const checkboxesValues = Array.isArray(value) ? value : [value];
702
+ const _onChange = (index) => ({ target: { checked } }) => {
703
+ if (checked) {
704
+ onChange(enumOptionsSelectValue(index, checkboxesValues, enumOptions));
705
+ } else {
706
+ onChange(enumOptionsDeselectValue(index, checkboxesValues, enumOptions));
707
+ }
708
+ };
709
+ const _onBlur = ({ target }) => onBlur(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
710
+ const _onFocus = ({ target }) => onFocus(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
711
+ return /* @__PURE__ */ jsx18(Form5.Group, { children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
712
+ const checked = enumOptionsIsSelected(option.value, checkboxesValues);
713
+ const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
714
+ return /* @__PURE__ */ jsx18(
715
+ Form5.Check,
716
+ {
717
+ inline,
718
+ required,
719
+ checked,
720
+ className: "bg-transparent border-0",
721
+ type: "checkbox",
722
+ id: optionId(id, index),
723
+ name: htmlName || id,
724
+ label: option.label,
725
+ autoFocus: autofocus && index === 0,
726
+ onChange: _onChange(index),
727
+ onBlur: _onBlur,
728
+ onFocus: _onFocus,
729
+ disabled: disabled || itemDisabled || readonly,
730
+ "aria-describedby": ariaDescribedByIds2(id)
731
+ },
732
+ option.value
733
+ );
734
+ }) });
735
+ }
736
+
737
+ // src/CheckboxWidget/CheckboxWidget.tsx
738
+ import {
739
+ ariaDescribedByIds as ariaDescribedByIds3,
677
740
  descriptionId as descriptionId2,
678
741
  getTemplate as getTemplate5,
679
742
  labelValue,
680
743
  schemaRequiresTrueValue
681
744
  } from "@rjsf/utils";
682
- import Form5 from "react-bootstrap/Form";
683
- import { jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
745
+ import Form6 from "react-bootstrap/Form";
746
+ import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
684
747
  function CheckboxWidget(props) {
685
748
  const {
686
749
  id,
@@ -709,8 +772,8 @@ function CheckboxWidget(props) {
709
772
  const _onBlur = ({ target }) => onBlur(id, target && target.checked);
710
773
  const _onFocus = ({ target }) => onFocus(id, target && target.checked);
711
774
  const description = options.description || schema.description;
712
- return /* @__PURE__ */ jsxs10(Form5.Group, { className: disabled || readonly ? "disabled" : "", "aria-describedby": ariaDescribedByIds2(id), children: [
713
- !hideLabel && description && /* @__PURE__ */ jsx18(
775
+ return /* @__PURE__ */ jsxs10(Form6.Group, { className: disabled || readonly ? "disabled" : "", "aria-describedby": ariaDescribedByIds3(id), children: [
776
+ !hideLabel && description && /* @__PURE__ */ jsx19(
714
777
  DescriptionFieldTemplate,
715
778
  {
716
779
  id: descriptionId2(id),
@@ -720,8 +783,8 @@ function CheckboxWidget(props) {
720
783
  registry
721
784
  }
722
785
  ),
723
- /* @__PURE__ */ jsx18(
724
- Form5.Check,
786
+ /* @__PURE__ */ jsx19(
787
+ Form6.Check,
725
788
  {
726
789
  id,
727
790
  name: htmlName || id,
@@ -739,71 +802,7 @@ function CheckboxWidget(props) {
739
802
  ] });
740
803
  }
741
804
 
742
- // src/CheckboxesWidget/CheckboxesWidget.tsx
743
- import Form6 from "react-bootstrap/Form";
744
- import {
745
- ariaDescribedByIds as ariaDescribedByIds3,
746
- enumOptionValueDecoder,
747
- enumOptionsDeselectValue,
748
- enumOptionsIsSelected,
749
- enumOptionsSelectValue,
750
- getOptionValueFormat,
751
- optionId
752
- } from "@rjsf/utils";
753
- import { jsx as jsx19 } from "react/jsx-runtime";
754
- function CheckboxesWidget({
755
- id,
756
- htmlName,
757
- disabled,
758
- options,
759
- value,
760
- autofocus,
761
- readonly,
762
- required,
763
- onChange,
764
- onBlur,
765
- onFocus
766
- }) {
767
- const { enumOptions, enumDisabled, inline, emptyValue } = options;
768
- const optionValueFormat = getOptionValueFormat(options);
769
- const checkboxesValues = Array.isArray(value) ? value : [value];
770
- const _onChange = (index) => ({ target: { checked } }) => {
771
- if (checked) {
772
- onChange(enumOptionsSelectValue(index, checkboxesValues, enumOptions));
773
- } else {
774
- onChange(enumOptionsDeselectValue(index, checkboxesValues, enumOptions));
775
- }
776
- };
777
- const _onBlur = ({ target }) => onBlur(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
778
- const _onFocus = ({ target }) => onFocus(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
779
- return /* @__PURE__ */ jsx19(Form6.Group, { children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
780
- const checked = enumOptionsIsSelected(option.value, checkboxesValues);
781
- const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
782
- return /* @__PURE__ */ jsx19(
783
- Form6.Check,
784
- {
785
- inline,
786
- required,
787
- checked,
788
- className: "bg-transparent border-0",
789
- type: "checkbox",
790
- id: optionId(id, index),
791
- name: htmlName || id,
792
- label: option.label,
793
- autoFocus: autofocus && index === 0,
794
- onChange: _onChange(index),
795
- onBlur: _onBlur,
796
- onFocus: _onFocus,
797
- disabled: disabled || itemDisabled || readonly,
798
- "aria-describedby": ariaDescribedByIds3(id)
799
- },
800
- option.value
801
- );
802
- }) });
803
- }
804
-
805
805
  // src/RadioWidget/RadioWidget.tsx
806
- import Form7 from "react-bootstrap/Form";
807
806
  import {
808
807
  ariaDescribedByIds as ariaDescribedByIds4,
809
808
  enumOptionValueDecoder as enumOptionValueDecoder2,
@@ -812,6 +811,7 @@ import {
812
811
  getOptionValueFormat as getOptionValueFormat2,
813
812
  optionId as optionId2
814
813
  } from "@rjsf/utils";
814
+ import Form7 from "react-bootstrap/Form";
815
815
  import { jsx as jsx20 } from "react/jsx-runtime";
816
816
  function RadioWidget({
817
817
  id,
@@ -883,7 +883,6 @@ function RangeWidget(props) {
883
883
  }
884
884
 
885
885
  // src/SelectWidget/SelectWidget.tsx
886
- import FormSelect from "react-bootstrap/FormSelect";
887
886
  import {
888
887
  ariaDescribedByIds as ariaDescribedByIds5,
889
888
  enumOptionSelectedValue,
@@ -891,6 +890,7 @@ import {
891
890
  enumOptionValueEncoder as enumOptionValueEncoder2,
892
891
  getOptionValueFormat as getOptionValueFormat3
893
892
  } from "@rjsf/utils";
893
+ import FormSelect from "react-bootstrap/FormSelect";
894
894
  import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
895
895
  function SelectWidget({
896
896
  schema,