@rjsf/chakra-ui 6.5.2 → 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 (61) hide show
  1. package/dist/chakra-ui.esm.js +309 -309
  2. package/dist/chakra-ui.esm.js.map +4 -4
  3. package/dist/chakra-ui.umd.js +188 -188
  4. package/dist/index.cjs +339 -339
  5. package/dist/index.cjs.map +4 -4
  6. package/lib/AddButton/AddButton.js +1 -1
  7. package/lib/AddButton/AddButton.js.map +1 -1
  8. package/lib/AltDateWidget/AltDateWidget.js.map +1 -1
  9. package/lib/BaseInputTemplate/BaseInputTemplate.js +1 -1
  10. package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
  11. package/lib/ChakraFrameProvider.js +2 -2
  12. package/lib/ChakraFrameProvider.js.map +1 -1
  13. package/lib/CheckboxWidget/CheckboxWidget.js +1 -1
  14. package/lib/CheckboxWidget/CheckboxWidget.js.map +1 -1
  15. package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
  16. package/lib/DescriptionField/DescriptionField.js +1 -1
  17. package/lib/DescriptionField/DescriptionField.js.map +1 -1
  18. package/lib/ErrorList/ErrorList.js +1 -1
  19. package/lib/ErrorList/ErrorList.js.map +1 -1
  20. package/lib/FieldErrorTemplate/FieldErrorTemplate.js +1 -1
  21. package/lib/FieldErrorTemplate/FieldErrorTemplate.js.map +1 -1
  22. package/lib/FieldHelpTemplate/FieldHelpTemplate.js +1 -1
  23. package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
  24. package/lib/Form/Form.js.map +1 -1
  25. package/lib/NativeSelectWidget/NativeSelectWidget.js +1 -1
  26. package/lib/NativeSelectWidget/NativeSelectWidget.js.map +1 -1
  27. package/lib/SelectWidget/SelectWidget.js +1 -1
  28. package/lib/SelectWidget/SelectWidget.js.map +1 -1
  29. package/lib/Templates/Templates.js +1 -1
  30. package/lib/Templates/Templates.js.map +1 -1
  31. package/lib/Theme/Theme.js.map +1 -1
  32. package/lib/TitleField/TitleField.js.map +1 -1
  33. package/lib/UpDownWidget/UpDownWidget.js.map +1 -1
  34. package/lib/Widgets/Widgets.js +2 -2
  35. package/lib/Widgets/Widgets.js.map +1 -1
  36. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +1 -1
  37. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
  38. package/lib/tsconfig.tsbuildinfo +1 -1
  39. package/lib/utils.js.map +1 -1
  40. package/package.json +18 -19
  41. package/src/AddButton/AddButton.tsx +1 -1
  42. package/src/AltDateWidget/AltDateWidget.tsx +1 -0
  43. package/src/BaseInputTemplate/BaseInputTemplate.tsx +1 -1
  44. package/src/ChakraFrameProvider.tsx +2 -2
  45. package/src/CheckboxWidget/CheckboxWidget.tsx +1 -1
  46. package/src/CheckboxesWidget/CheckboxesWidget.tsx +1 -1
  47. package/src/DescriptionField/DescriptionField.tsx +1 -1
  48. package/src/ErrorList/ErrorList.tsx +1 -1
  49. package/src/FieldErrorTemplate/FieldErrorTemplate.tsx +1 -1
  50. package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +1 -1
  51. package/src/Form/Form.tsx +2 -1
  52. package/src/NativeSelectWidget/NativeSelectWidget.tsx +1 -1
  53. package/src/SelectWidget/SelectWidget.tsx +1 -2
  54. package/src/Templates/Templates.ts +3 -2
  55. package/src/Theme/Theme.tsx +1 -1
  56. package/src/TitleField/TitleField.tsx +1 -1
  57. package/src/UpDownWidget/UpDownWidget.tsx +1 -2
  58. package/src/Widgets/Widgets.ts +4 -3
  59. package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +1 -1
  60. package/src/tsconfig.json +0 -1
  61. package/src/utils.ts +1 -1
package/dist/index.cjs CHANGED
@@ -48,8 +48,8 @@ module.exports = __toCommonJS(index_exports);
48
48
  var import_core4 = require("@rjsf/core");
49
49
 
50
50
  // src/AddButton/AddButton.tsx
51
- var import_utils = require("@rjsf/utils");
52
51
  var import_react = require("@chakra-ui/react");
52
+ var import_utils = require("@rjsf/utils");
53
53
  var import_lucide_react = require("lucide-react");
54
54
  var import_jsx_runtime = require("react/jsx-runtime");
55
55
  function AddButton({
@@ -161,8 +161,8 @@ function ArrayFieldTemplate(props) {
161
161
  // src/BaseInputTemplate/BaseInputTemplate.tsx
162
162
  var import_react7 = require("react");
163
163
  var import_react8 = require("@chakra-ui/react");
164
- var import_utils4 = require("@rjsf/utils");
165
164
  var import_core = require("@rjsf/core");
165
+ var import_utils4 = require("@rjsf/utils");
166
166
 
167
167
  // src/components/ui/field.tsx
168
168
  var import_react4 = require("react");
@@ -269,8 +269,8 @@ function BaseInputTemplate(props) {
269
269
  }
270
270
 
271
271
  // src/DescriptionField/DescriptionField.tsx
272
- var import_core2 = require("@rjsf/core");
273
272
  var import_react9 = require("@chakra-ui/react");
273
+ var import_core2 = require("@rjsf/core");
274
274
  var import_jsx_runtime6 = require("react/jsx-runtime");
275
275
  function DescriptionField({ description, id, registry, uiSchema }) {
276
276
  if (!description) {
@@ -280,8 +280,8 @@ function DescriptionField({ description, id, registry, uiSchema }) {
280
280
  }
281
281
 
282
282
  // src/ErrorList/ErrorList.tsx
283
- var import_utils6 = require("@rjsf/utils");
284
283
  var import_react14 = require("@chakra-ui/react");
284
+ var import_utils6 = require("@rjsf/utils");
285
285
 
286
286
  // src/components/ui/alert.tsx
287
287
  var import_react12 = require("react");
@@ -321,105 +321,38 @@ function ErrorList({
321
321
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Alert, { status: "error", title: translateString(import_utils6.TranslatableString.ErrorsLabel), mb: 3, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react14.ListRoot, { listStylePosition: "inside", children: errors.map((error, i) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react14.ListItem, { children: error.stack }, i)) }) });
322
322
  }
323
323
 
324
- // src/IconButton/ChakraIconButton.tsx
325
- var import_react15 = require("react");
326
- var import_react16 = require("@chakra-ui/react");
327
- var import_jsx_runtime10 = require("react/jsx-runtime");
328
- function ChakraIconButton2(props) {
329
- const { icon, iconType, uiSchema, registry, ...otherProps } = props;
330
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react16.IconButton, { "aria-label": props.title, ...otherProps, children: icon });
331
- }
332
- ChakraIconButton2.displayName = "ChakraIconButton";
333
- var ChakraIconButton_default = (0, import_react15.memo)(ChakraIconButton2);
334
-
335
- // src/IconButton/IconButton.tsx
336
- var import_utils7 = require("@rjsf/utils");
337
- var import_lucide_react2 = require("lucide-react");
338
- var import_jsx_runtime11 = require("react/jsx-runtime");
339
- function CopyButton(props) {
340
- const {
341
- registry: { translateString }
342
- } = props;
343
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ChakraIconButton_default, { title: translateString(import_utils7.TranslatableString.CopyButton), ...props, icon: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react2.CopyIcon, {}) });
344
- }
345
- function MoveDownButton(props) {
346
- const {
347
- registry: { translateString }
348
- } = props;
349
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
350
- ChakraIconButton_default,
351
- {
352
- title: translateString(import_utils7.TranslatableString.MoveDownButton),
353
- ...props,
354
- icon: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react2.ArrowDownIcon, {})
355
- }
356
- );
357
- }
358
- function MoveUpButton(props) {
359
- const {
360
- registry: { translateString }
361
- } = props;
362
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
363
- ChakraIconButton_default,
364
- {
365
- title: translateString(import_utils7.TranslatableString.MoveUpButton),
366
- ...props,
367
- icon: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react2.ArrowUpIcon, {})
368
- }
369
- );
370
- }
371
- function RemoveButton(props) {
372
- const {
373
- registry: { translateString }
374
- } = props;
375
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
376
- ChakraIconButton_default,
377
- {
378
- title: translateString(import_utils7.TranslatableString.RemoveButton),
379
- ...props,
380
- icon: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react2.DeleteIcon, {})
381
- }
382
- );
383
- }
384
- function ClearButton(props) {
385
- const {
386
- registry: { translateString }
387
- } = props;
388
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ChakraIconButton_default, { title: translateString(import_utils7.TranslatableString.ClearButton), ...props, icon: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react2.X, {}) });
389
- }
390
-
391
324
  // src/FieldErrorTemplate/FieldErrorTemplate.tsx
392
- var import_utils8 = require("@rjsf/utils");
393
- var import_react17 = require("@chakra-ui/react");
394
- var import_jsx_runtime12 = require("react/jsx-runtime");
325
+ var import_react15 = require("@chakra-ui/react");
326
+ var import_utils7 = require("@rjsf/utils");
327
+ var import_jsx_runtime10 = require("react/jsx-runtime");
395
328
  function FieldErrorTemplate(props) {
396
329
  const { errors = [], fieldPathId } = props;
397
330
  if (errors.length === 0) {
398
331
  return null;
399
332
  }
400
- const id = (0, import_utils8.errorId)(fieldPathId);
333
+ const id = (0, import_utils7.errorId)(fieldPathId);
401
334
  return errors.map((error, i) => {
402
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react17.Fieldset.ErrorText, { mt: 0, id, children: error }, i);
335
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react15.Fieldset.ErrorText, { mt: 0, id, children: error }, i);
403
336
  });
404
337
  }
405
338
 
406
339
  // src/FieldHelpTemplate/FieldHelpTemplate.tsx
407
- var import_react18 = require("@chakra-ui/react");
408
- var import_utils9 = require("@rjsf/utils");
340
+ var import_react16 = require("@chakra-ui/react");
409
341
  var import_core3 = require("@rjsf/core");
410
- var import_jsx_runtime13 = require("react/jsx-runtime");
342
+ var import_utils8 = require("@rjsf/utils");
343
+ var import_jsx_runtime11 = require("react/jsx-runtime");
411
344
  function FieldHelpTemplate(props) {
412
345
  const { fieldPathId, help, uiSchema, registry } = props;
413
346
  if (!help) {
414
347
  return null;
415
348
  }
416
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react18.Text, { as: "sup", fontSize: "md", id: (0, import_utils9.helpId)(fieldPathId), children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_core3.RichHelp, { help, registry, uiSchema }) });
349
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react16.Text, { as: "sup", fontSize: "md", id: (0, import_utils8.helpId)(fieldPathId), children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_core3.RichHelp, { help, registry, uiSchema }) });
417
350
  }
418
351
 
419
352
  // src/FieldTemplate/FieldTemplate.tsx
420
- var import_react19 = require("@chakra-ui/react");
421
- var import_utils10 = require("@rjsf/utils");
422
- var import_jsx_runtime14 = require("react/jsx-runtime");
353
+ var import_react17 = require("@chakra-ui/react");
354
+ var import_utils9 = require("@rjsf/utils");
355
+ var import_jsx_runtime12 = require("react/jsx-runtime");
423
356
  function FieldTemplate(props) {
424
357
  const {
425
358
  id,
@@ -444,16 +377,16 @@ function FieldTemplate(props) {
444
377
  schema,
445
378
  uiSchema
446
379
  } = props;
447
- const uiOptions = (0, import_utils10.getUiOptions)(uiSchema);
448
- const WrapIfAdditionalTemplate2 = (0, import_utils10.getTemplate)(
380
+ const uiOptions = (0, import_utils9.getUiOptions)(uiSchema);
381
+ const WrapIfAdditionalTemplate2 = (0, import_utils9.getTemplate)(
449
382
  "WrapIfAdditionalTemplate",
450
383
  registry,
451
384
  uiOptions
452
385
  );
453
386
  if (hidden) {
454
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { display: "none" }, children });
387
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { style: { display: "none" }, children });
455
388
  }
456
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
389
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
457
390
  WrapIfAdditionalTemplate2,
458
391
  {
459
392
  classNames,
@@ -471,10 +404,10 @@ function FieldTemplate(props) {
471
404
  schema,
472
405
  uiSchema,
473
406
  registry,
474
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react19.Fieldset.Root, { disabled, invalid: rawErrors && rawErrors.length > 0, children: [
475
- displayLabel && rawDescription ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react19.Fieldset.Legend, { mt: 2, children: description }) : null,
407
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_react17.Fieldset.Root, { disabled, invalid: rawErrors && rawErrors.length > 0, children: [
408
+ displayLabel && rawDescription ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react17.Fieldset.Legend, { mt: 2, children: description }) : null,
476
409
  help,
477
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react19.Fieldset.Content, { children }),
410
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react17.Fieldset.Content, { children }),
478
411
  errors
479
412
  ] })
480
413
  }
@@ -482,14 +415,81 @@ function FieldTemplate(props) {
482
415
  }
483
416
 
484
417
  // src/GridTemplate/GridTemplate.tsx
485
- var import_react20 = require("@chakra-ui/react");
486
- var import_jsx_runtime15 = require("react/jsx-runtime");
418
+ var import_react18 = require("@chakra-ui/react");
419
+ var import_jsx_runtime13 = require("react/jsx-runtime");
487
420
  function GridTemplate(props) {
488
421
  const { children, column, ...rest } = props;
489
422
  if (column) {
490
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react20.GridItem, { ...rest, children });
423
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react18.GridItem, { ...rest, children });
491
424
  }
492
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react20.Grid, { ...rest, children });
425
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react18.Grid, { ...rest, children });
426
+ }
427
+
428
+ // src/IconButton/ChakraIconButton.tsx
429
+ var import_react19 = require("react");
430
+ var import_react20 = require("@chakra-ui/react");
431
+ var import_jsx_runtime14 = require("react/jsx-runtime");
432
+ function ChakraIconButton2(props) {
433
+ const { icon, iconType, uiSchema, registry, ...otherProps } = props;
434
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react20.IconButton, { "aria-label": props.title, ...otherProps, children: icon });
435
+ }
436
+ ChakraIconButton2.displayName = "ChakraIconButton";
437
+ var ChakraIconButton_default = (0, import_react19.memo)(ChakraIconButton2);
438
+
439
+ // src/IconButton/IconButton.tsx
440
+ var import_utils10 = require("@rjsf/utils");
441
+ var import_lucide_react2 = require("lucide-react");
442
+ var import_jsx_runtime15 = require("react/jsx-runtime");
443
+ function CopyButton(props) {
444
+ const {
445
+ registry: { translateString }
446
+ } = props;
447
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ChakraIconButton_default, { title: translateString(import_utils10.TranslatableString.CopyButton), ...props, icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react2.CopyIcon, {}) });
448
+ }
449
+ function MoveDownButton(props) {
450
+ const {
451
+ registry: { translateString }
452
+ } = props;
453
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
454
+ ChakraIconButton_default,
455
+ {
456
+ title: translateString(import_utils10.TranslatableString.MoveDownButton),
457
+ ...props,
458
+ icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react2.ArrowDownIcon, {})
459
+ }
460
+ );
461
+ }
462
+ function MoveUpButton(props) {
463
+ const {
464
+ registry: { translateString }
465
+ } = props;
466
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
467
+ ChakraIconButton_default,
468
+ {
469
+ title: translateString(import_utils10.TranslatableString.MoveUpButton),
470
+ ...props,
471
+ icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react2.ArrowUpIcon, {})
472
+ }
473
+ );
474
+ }
475
+ function RemoveButton(props) {
476
+ const {
477
+ registry: { translateString }
478
+ } = props;
479
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
480
+ ChakraIconButton_default,
481
+ {
482
+ title: translateString(import_utils10.TranslatableString.RemoveButton),
483
+ ...props,
484
+ icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react2.DeleteIcon, {})
485
+ }
486
+ );
487
+ }
488
+ function ClearButton(props) {
489
+ const {
490
+ registry: { translateString }
491
+ } = props;
492
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ChakraIconButton_default, { title: translateString(import_utils10.TranslatableString.ClearButton), ...props, icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react2.X, {}) });
493
493
  }
494
494
 
495
495
  // src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx
@@ -648,8 +648,8 @@ function TitleField({
648
648
  }
649
649
 
650
650
  // src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx
651
- var import_utils13 = require("@rjsf/utils");
652
651
  var import_react25 = require("@chakra-ui/react");
652
+ var import_utils13 = require("@rjsf/utils");
653
653
  var import_jsx_runtime21 = require("react/jsx-runtime");
654
654
  function WrapIfAdditionalTemplate(props) {
655
655
  const {
@@ -808,7 +808,7 @@ function AltDateWidget({
808
808
  }
809
809
  var AltDateWidget_default = AltDateWidget;
810
810
 
811
- // src/CheckboxWidget/CheckboxWidget.tsx
811
+ // src/CheckboxesWidget/CheckboxesWidget.tsx
812
812
  var import_react29 = require("@chakra-ui/react");
813
813
  var import_utils16 = require("@rjsf/utils");
814
814
 
@@ -825,8 +825,76 @@ var Checkbox = (0, import_react27.forwardRef)(function Checkbox2(props, ref) {
825
825
  ] });
826
826
  });
827
827
 
828
- // src/CheckboxWidget/CheckboxWidget.tsx
828
+ // src/CheckboxesWidget/CheckboxesWidget.tsx
829
829
  var import_jsx_runtime25 = require("react/jsx-runtime");
830
+ function CheckboxesWidget(props) {
831
+ const {
832
+ id,
833
+ htmlName,
834
+ disabled,
835
+ options,
836
+ value,
837
+ readonly,
838
+ onChange,
839
+ onBlur,
840
+ onFocus,
841
+ required,
842
+ label,
843
+ rawErrors = [],
844
+ hideLabel,
845
+ uiSchema
846
+ } = props;
847
+ const { enumOptions, enumDisabled, emptyValue } = options;
848
+ const optionValueFormat = (0, import_utils16.getOptionValueFormat)(options);
849
+ const _onBlur = ({ target }) => onBlur(id, (0, import_utils16.enumOptionValueDecoder)(target && target.value, enumOptions, optionValueFormat, emptyValue));
850
+ const _onFocus = ({ target }) => onFocus(id, (0, import_utils16.enumOptionValueDecoder)(target && target.value, enumOptions, optionValueFormat, emptyValue));
851
+ const row = options ? options.inline : false;
852
+ const selectValue = (0, import_utils16.enumOptionSelectedValue)(value, enumOptions, true, optionValueFormat, []);
853
+ const chakraProps = getChakra({ uiSchema });
854
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
855
+ import_react29.FieldsetRoot,
856
+ {
857
+ mb: 1,
858
+ disabled: disabled || readonly,
859
+ invalid: rawErrors && rawErrors.length > 0,
860
+ ...chakraProps,
861
+ children: [
862
+ !hideLabel && label && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react29.FieldsetLegend, { children: (0, import_utils16.labelValue)(label) }),
863
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
864
+ import_react29.CheckboxGroup,
865
+ {
866
+ onValueChange: (option) => onChange((0, import_utils16.enumOptionValueDecoder)(option, enumOptions, optionValueFormat, emptyValue)),
867
+ value: selectValue,
868
+ "aria-describedby": (0, import_utils16.ariaDescribedByIds)(id),
869
+ readOnly: readonly,
870
+ invalid: required && value.length === 0,
871
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react29.Stack, { direction: row ? "row" : "column", children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
872
+ const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
873
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
874
+ Checkbox,
875
+ {
876
+ id: (0, import_utils16.optionId)(id, index),
877
+ name: htmlName || id,
878
+ value: (0, import_utils16.enumOptionValueEncoder)(option.value, index, optionValueFormat),
879
+ disabled: disabled || itemDisabled || readonly,
880
+ onBlur: _onBlur,
881
+ onFocus: _onFocus,
882
+ children: option.label && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react29.Text, { children: option.label })
883
+ },
884
+ index
885
+ );
886
+ }) })
887
+ }
888
+ )
889
+ ]
890
+ }
891
+ );
892
+ }
893
+
894
+ // src/CheckboxWidget/CheckboxWidget.tsx
895
+ var import_react30 = require("@chakra-ui/react");
896
+ var import_utils18 = require("@rjsf/utils");
897
+ var import_jsx_runtime26 = require("react/jsx-runtime");
830
898
  function CheckboxWidget(props) {
831
899
  const {
832
900
  id,
@@ -844,31 +912,31 @@ function CheckboxWidget(props) {
844
912
  uiSchema,
845
913
  schema
846
914
  } = props;
847
- const required = (0, import_utils16.schemaRequiresTrueValue)(schema);
848
- const DescriptionFieldTemplate = (0, import_utils16.getTemplate)(
915
+ const required = (0, import_utils18.schemaRequiresTrueValue)(schema);
916
+ const DescriptionFieldTemplate = (0, import_utils18.getTemplate)(
849
917
  "DescriptionFieldTemplate",
850
918
  registry,
851
919
  options
852
920
  );
853
- const uiOptions = (0, import_utils16.getUiOptions)(uiSchema);
921
+ const uiOptions = (0, import_utils18.getUiOptions)(uiSchema);
854
922
  const isCheckbox = uiOptions.widget === "checkbox";
855
923
  const description = isCheckbox ? void 0 : options.description ?? schema.description;
856
924
  const _onChange = ({ checked }) => onChange(checked);
857
925
  const _onBlur = ({ target }) => onBlur(id, target && target.checked);
858
926
  const _onFocus = ({ target }) => onFocus(id, target && target.checked);
859
927
  const chakraProps = getChakra({ uiSchema });
860
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Field, { mb: 1, required, ...chakraProps, children: [
861
- !hideLabel && description && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
928
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Field, { mb: 1, required, ...chakraProps, children: [
929
+ !hideLabel && description && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
862
930
  DescriptionFieldTemplate,
863
931
  {
864
- id: (0, import_utils16.descriptionId)(id),
932
+ id: (0, import_utils18.descriptionId)(id),
865
933
  description,
866
934
  schema,
867
935
  uiSchema,
868
936
  registry
869
937
  }
870
938
  ),
871
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
939
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
872
940
  Checkbox,
873
941
  {
874
942
  id,
@@ -878,101 +946,126 @@ function CheckboxWidget(props) {
878
946
  onCheckedChange: _onChange,
879
947
  onBlur: _onBlur,
880
948
  onFocus: _onFocus,
881
- "aria-describedby": (0, import_utils16.ariaDescribedByIds)(id),
882
- children: (0, import_utils16.labelValue)(/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react29.Text, { children: label }), hideLabel || !label)
949
+ "aria-describedby": (0, import_utils18.ariaDescribedByIds)(id),
950
+ children: (0, import_utils18.labelValue)(/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react30.Text, { children: label }), hideLabel || !label)
883
951
  }
884
952
  )
885
953
  ] });
886
954
  }
887
955
 
888
- // src/CheckboxesWidget/CheckboxesWidget.tsx
889
- var import_react30 = require("@chakra-ui/react");
890
- var import_utils18 = require("@rjsf/utils");
891
- var import_jsx_runtime26 = require("react/jsx-runtime");
892
- function CheckboxesWidget(props) {
956
+ // src/NativeSelectWidget/NativeSelectWidget.tsx
957
+ var import_react31 = require("react");
958
+ var import_react32 = require("@chakra-ui/react");
959
+ var import_utils20 = require("@rjsf/utils");
960
+ var import_jsx_runtime27 = require("react/jsx-runtime");
961
+ function NativeSelectWidget(props) {
893
962
  const {
894
963
  id,
895
- htmlName,
896
- disabled,
897
964
  options,
898
- value,
965
+ label,
966
+ hideLabel,
967
+ placeholder,
968
+ multiple,
969
+ required,
970
+ disabled,
899
971
  readonly,
972
+ value,
973
+ autofocus,
900
974
  onChange,
901
975
  onBlur,
902
976
  onFocus,
903
- required,
904
- label,
905
977
  rawErrors = [],
906
- hideLabel,
978
+ schema,
907
979
  uiSchema
908
980
  } = props;
909
981
  const { enumOptions, enumDisabled, emptyValue } = options;
910
- const optionValueFormat = (0, import_utils18.getOptionValueFormat)(options);
911
- const _onBlur = ({ target }) => onBlur(id, (0, import_utils18.enumOptionValueDecoder)(target && target.value, enumOptions, optionValueFormat, emptyValue));
912
- const _onFocus = ({ target }) => onFocus(id, (0, import_utils18.enumOptionValueDecoder)(target && target.value, enumOptions, optionValueFormat, emptyValue));
913
- const row = options ? options.inline : false;
914
- const selectValue = (0, import_utils18.enumOptionSelectedValue)(value, enumOptions, true, optionValueFormat, []);
982
+ const _onChange = ({ target }) => {
983
+ return onChange((0, import_utils20.enumOptionsValueForIndex)(target && target.value, enumOptions, emptyValue));
984
+ };
985
+ const _onBlur = ({ target }) => onBlur(id, (0, import_utils20.enumOptionsValueForIndex)(target && target.value, enumOptions, emptyValue));
986
+ const _onFocus = ({ target }) => onFocus(id, (0, import_utils20.enumOptionsValueForIndex)(target && target.value, enumOptions, emptyValue));
987
+ const showPlaceholderOption = !multiple && schema.default === void 0;
988
+ const { valueLabelMap, displayEnumOptions } = (0, import_react31.useMemo)(() => {
989
+ const valueLabelMap2 = {};
990
+ let displayEnumOptions2 = [];
991
+ if (Array.isArray(enumOptions)) {
992
+ displayEnumOptions2 = enumOptions.map((option, index) => {
993
+ const { value: value2, label: label2 } = option;
994
+ valueLabelMap2[index] = label2 || String(value2);
995
+ return {
996
+ label: label2,
997
+ value: String(index),
998
+ disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(value2) !== -1
999
+ };
1000
+ });
1001
+ }
1002
+ return { valueLabelMap: valueLabelMap2, displayEnumOptions: displayEnumOptions2 };
1003
+ }, [enumDisabled, enumOptions]);
1004
+ const selectedIndex = (0, import_utils20.enumOptionsIndexForValue)(value, enumOptions, false);
1005
+ const getSingleValue = () => typeof selectedIndex !== "undefined" ? [
1006
+ {
1007
+ label: valueLabelMap[selectedIndex] || "",
1008
+ value: selectedIndex.toString()
1009
+ }
1010
+ ] : [];
1011
+ const formValue = getSingleValue()[0]?.value || "";
1012
+ const selectOptions = (0, import_react32.createListCollection)({
1013
+ items: displayEnumOptions.filter((item) => item.value)
1014
+ });
915
1015
  const chakraProps = getChakra({ uiSchema });
916
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
917
- import_react30.FieldsetRoot,
1016
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1017
+ Field,
918
1018
  {
919
1019
  mb: 1,
920
1020
  disabled: disabled || readonly,
1021
+ required,
1022
+ readOnly: readonly,
921
1023
  invalid: rawErrors && rawErrors.length > 0,
1024
+ label: (0, import_utils20.labelValue)(label, hideLabel || !label),
922
1025
  ...chakraProps,
923
- children: [
924
- !hideLabel && label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react30.FieldsetLegend, { children: (0, import_utils18.labelValue)(label) }),
925
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
926
- import_react30.CheckboxGroup,
1026
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react32.NativeSelect.Root, { children: [
1027
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
1028
+ import_react32.NativeSelect.Field,
927
1029
  {
928
- onValueChange: (option) => onChange((0, import_utils18.enumOptionValueDecoder)(option, enumOptions, optionValueFormat, emptyValue)),
929
- value: selectValue,
930
- "aria-describedby": (0, import_utils18.ariaDescribedByIds)(id),
931
- readOnly: readonly,
932
- invalid: required && value.length === 0,
933
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react30.Stack, { direction: row ? "row" : "column", children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
934
- const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
935
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
936
- Checkbox,
937
- {
938
- id: (0, import_utils18.optionId)(id, index),
939
- name: htmlName || id,
940
- value: (0, import_utils18.enumOptionValueEncoder)(option.value, index, optionValueFormat),
941
- disabled: disabled || itemDisabled || readonly,
942
- onBlur: _onBlur,
943
- onFocus: _onFocus,
944
- children: option.label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react30.Text, { children: option.label })
945
- },
946
- index
947
- );
948
- }) })
1030
+ id,
1031
+ onBlur: _onBlur,
1032
+ onChange: _onChange,
1033
+ onFocus: _onFocus,
1034
+ autoFocus: autofocus,
1035
+ value: formValue,
1036
+ "aria-describedby": (0, import_utils20.ariaDescribedByIds)(id),
1037
+ children: [
1038
+ showPlaceholderOption ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("option", { value: "", disabled: true, hidden: true, children: placeholder || "" }) : void 0,
1039
+ selectOptions.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("option", { value: item.value, children: item.label }, item.value))
1040
+ ]
949
1041
  }
950
- )
951
- ]
1042
+ ),
1043
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react32.NativeSelect.Indicator, {})
1044
+ ] })
952
1045
  }
953
1046
  );
954
1047
  }
955
1048
 
956
1049
  // src/RadioWidget/RadioWidget.tsx
957
- var import_react33 = require("@chakra-ui/react");
958
- var import_utils20 = require("@rjsf/utils");
1050
+ var import_react35 = require("@chakra-ui/react");
1051
+ var import_utils22 = require("@rjsf/utils");
959
1052
 
960
1053
  // src/components/ui/radio.tsx
961
- var import_react31 = require("react");
962
- var import_react32 = require("@chakra-ui/react");
963
- var import_jsx_runtime27 = require("react/jsx-runtime");
964
- var Radio = (0, import_react31.forwardRef)(function Radio2(props, ref) {
1054
+ var import_react33 = require("react");
1055
+ var import_react34 = require("@chakra-ui/react");
1056
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1057
+ var Radio = (0, import_react33.forwardRef)(function Radio2(props, ref) {
965
1058
  const { children, inputProps, rootRef, ...rest } = props;
966
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react32.RadioGroup.Item, { ref: rootRef, ...rest, children: [
967
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react32.RadioGroup.ItemHiddenInput, { ref, ...inputProps }),
968
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react32.RadioGroup.ItemIndicator, {}),
969
- children && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react32.RadioGroup.ItemText, { children })
1059
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_react34.RadioGroup.Item, { ref: rootRef, ...rest, children: [
1060
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react34.RadioGroup.ItemHiddenInput, { ref, ...inputProps }),
1061
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react34.RadioGroup.ItemIndicator, {}),
1062
+ children && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react34.RadioGroup.ItemText, { children })
970
1063
  ] });
971
1064
  });
972
- var RadioGroup = import_react32.RadioGroup.Root;
1065
+ var RadioGroup = import_react34.RadioGroup.Root;
973
1066
 
974
1067
  // src/RadioWidget/RadioWidget.tsx
975
- var import_jsx_runtime28 = require("react/jsx-runtime");
1068
+ var import_jsx_runtime29 = require("react/jsx-runtime");
976
1069
  function RadioWidget({
977
1070
  id,
978
1071
  htmlName,
@@ -989,23 +1082,23 @@ function RadioWidget({
989
1082
  uiSchema
990
1083
  }) {
991
1084
  const { enumOptions, enumDisabled, emptyValue } = options;
992
- const optionValueFormat = (0, import_utils20.getOptionValueFormat)(options);
993
- const _onChange = ({ target: { value: value2 } }) => onChange((0, import_utils20.enumOptionValueDecoder)(value2, enumOptions, optionValueFormat, emptyValue));
994
- const _onBlur = ({ target: { value: value2 } }) => onBlur(id, (0, import_utils20.enumOptionValueDecoder)(value2, enumOptions, optionValueFormat, emptyValue));
995
- const _onFocus = ({ target: { value: value2 } }) => onFocus(id, (0, import_utils20.enumOptionValueDecoder)(value2, enumOptions, optionValueFormat, emptyValue));
1085
+ const optionValueFormat = (0, import_utils22.getOptionValueFormat)(options);
1086
+ const _onChange = ({ target: { value: value2 } }) => onChange((0, import_utils22.enumOptionValueDecoder)(value2, enumOptions, optionValueFormat, emptyValue));
1087
+ const _onBlur = ({ target: { value: value2 } }) => onBlur(id, (0, import_utils22.enumOptionValueDecoder)(value2, enumOptions, optionValueFormat, emptyValue));
1088
+ const _onFocus = ({ target: { value: value2 } }) => onFocus(id, (0, import_utils22.enumOptionValueDecoder)(value2, enumOptions, optionValueFormat, emptyValue));
996
1089
  const row = options ? options.inline : false;
997
- const selectValue = (0, import_utils20.enumOptionSelectedValue)(value, enumOptions, false, optionValueFormat, null);
1090
+ const selectValue = (0, import_utils22.enumOptionSelectedValue)(value, enumOptions, false, optionValueFormat, null);
998
1091
  const chakraProps = getChakra({ uiSchema });
999
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1092
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1000
1093
  Field,
1001
1094
  {
1002
1095
  mb: 1,
1003
1096
  disabled: disabled || readonly,
1004
1097
  required,
1005
1098
  readOnly: readonly,
1006
- label: (0, import_utils20.labelValue)(label, hideLabel || !label),
1099
+ label: (0, import_utils22.labelValue)(label, hideLabel || !label),
1007
1100
  ...chakraProps,
1008
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1101
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1009
1102
  RadioGroup,
1010
1103
  {
1011
1104
  onChange: _onChange,
@@ -1013,14 +1106,14 @@ function RadioWidget({
1013
1106
  onFocus: _onFocus,
1014
1107
  value: selectValue,
1015
1108
  name: htmlName || id,
1016
- "aria-describedby": (0, import_utils20.ariaDescribedByIds)(id),
1017
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react33.Stack, { direction: row ? "row" : "column", children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
1109
+ "aria-describedby": (0, import_utils22.ariaDescribedByIds)(id),
1110
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react35.Stack, { direction: row ? "row" : "column", children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
1018
1111
  const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
1019
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1112
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1020
1113
  Radio,
1021
1114
  {
1022
- value: (0, import_utils20.enumOptionValueEncoder)(option.value, index, optionValueFormat),
1023
- id: (0, import_utils20.optionId)(id, index),
1115
+ value: (0, import_utils22.enumOptionValueEncoder)(option.value, index, optionValueFormat),
1116
+ id: (0, import_utils22.optionId)(id, index),
1024
1117
  disabled: disabled || itemDisabled || readonly,
1025
1118
  children: option.label
1026
1119
  },
@@ -1034,13 +1127,13 @@ function RadioWidget({
1034
1127
  }
1035
1128
 
1036
1129
  // src/RangeWidget/RangeWidget.tsx
1037
- var import_utils22 = require("@rjsf/utils");
1130
+ var import_utils24 = require("@rjsf/utils");
1038
1131
 
1039
1132
  // src/components/ui/slider.tsx
1040
- var import_react34 = require("react");
1041
- var import_react35 = require("@chakra-ui/react");
1042
- var import_jsx_runtime29 = require("react/jsx-runtime");
1043
- var Slider = (0, import_react34.forwardRef)(function Slider2(props, ref) {
1133
+ var import_react36 = require("react");
1134
+ var import_react37 = require("@chakra-ui/react");
1135
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1136
+ var Slider = (0, import_react36.forwardRef)(function Slider2(props, ref) {
1044
1137
  const { marks: marksProp, showValue, ...rest } = props;
1045
1138
  const value = props.defaultValue ?? props.value;
1046
1139
  const marks = marksProp?.map((mark) => {
@@ -1050,36 +1143,36 @@ var Slider = (0, import_react34.forwardRef)(function Slider2(props, ref) {
1050
1143
  return mark;
1051
1144
  });
1052
1145
  const hasMarkLabel = !!marks?.some((mark) => mark.label);
1053
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_react35.Slider.Root, { ref, width: "200px", thumbAlignment: "center", ...rest, children: [
1054
- showValue && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react35.HStack, { justify: "space-between", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react35.Slider.ValueText, {}) }),
1055
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_react35.Slider.Control, { "data-has-mark-label": hasMarkLabel || void 0, children: [
1056
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react35.Slider.Track, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react35.Slider.Range, {}) }),
1057
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SliderThumbs, { value }),
1058
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SliderMarks, { marks })
1146
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react37.Slider.Root, { ref, width: "200px", thumbAlignment: "center", ...rest, children: [
1147
+ showValue && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react37.HStack, { justify: "space-between", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react37.Slider.ValueText, {}) }),
1148
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react37.Slider.Control, { "data-has-mark-label": hasMarkLabel || void 0, children: [
1149
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react37.Slider.Track, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react37.Slider.Range, {}) }),
1150
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SliderThumbs, { value }),
1151
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SliderMarks, { marks })
1059
1152
  ] })
1060
1153
  ] });
1061
1154
  });
1062
1155
  function SliderThumbs(props) {
1063
1156
  const { value } = props;
1064
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: value?.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react35.Slider.Thumb, { index, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react35.Slider.HiddenInput, {}) }, index)) });
1157
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: value?.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react37.Slider.Thumb, { index, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react37.Slider.HiddenInput, {}) }, index)) });
1065
1158
  }
1066
- var SliderMarks = (0, import_react34.forwardRef)(function SliderMarks2(props, ref) {
1159
+ var SliderMarks = (0, import_react36.forwardRef)(function SliderMarks2(props, ref) {
1067
1160
  const { marks } = props;
1068
1161
  if (!marks?.length) {
1069
1162
  return null;
1070
1163
  }
1071
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react35.Slider.MarkerGroup, { ref, children: marks.map((mark, index) => {
1164
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react37.Slider.MarkerGroup, { ref, children: marks.map((mark, index) => {
1072
1165
  const value = typeof mark === "number" ? mark : mark.value;
1073
1166
  const label = typeof mark === "number" ? void 0 : mark.label;
1074
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_react35.Slider.Marker, { value, children: [
1075
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react35.Slider.MarkerIndicator, {}),
1167
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react37.Slider.Marker, { value, children: [
1168
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react37.Slider.MarkerIndicator, {}),
1076
1169
  label
1077
1170
  ] }, index);
1078
1171
  }) });
1079
1172
  });
1080
1173
 
1081
1174
  // src/RangeWidget/RangeWidget.tsx
1082
- var import_jsx_runtime30 = require("react/jsx-runtime");
1175
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1083
1176
  function RangeWidget({
1084
1177
  value,
1085
1178
  readonly,
@@ -1098,10 +1191,10 @@ function RangeWidget({
1098
1191
  const _onBlur = ({ target }) => onBlur(id, target && target.value);
1099
1192
  const _onFocus = ({ target }) => onFocus(id, target && target.value);
1100
1193
  const chakraProps = getChakra({ uiSchema });
1101
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Field, { mb: 1, label: (0, import_utils22.labelValue)(label, hideLabel || !label), ...chakraProps, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1194
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Field, { mb: 1, label: (0, import_utils24.labelValue)(label, hideLabel || !label), ...chakraProps, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1102
1195
  Slider,
1103
1196
  {
1104
- ...(0, import_utils22.rangeSpec)(schema),
1197
+ ...(0, import_utils24.rangeSpec)(schema),
1105
1198
  id,
1106
1199
  name: id,
1107
1200
  disabled: disabled || readonly,
@@ -1109,49 +1202,49 @@ function RangeWidget({
1109
1202
  onValueChange: _onChange,
1110
1203
  onBlur: _onBlur,
1111
1204
  onFocus: _onFocus,
1112
- "aria-describedby": (0, import_utils22.ariaDescribedByIds)(id)
1205
+ "aria-describedby": (0, import_utils24.ariaDescribedByIds)(id)
1113
1206
  }
1114
1207
  ) });
1115
1208
  }
1116
1209
 
1117
1210
  // src/SelectWidget/SelectWidget.tsx
1118
- var import_react38 = require("react");
1119
- var import_utils24 = require("@rjsf/utils");
1120
- var import_react39 = require("@chakra-ui/react");
1211
+ var import_react40 = require("react");
1212
+ var import_react41 = require("@chakra-ui/react");
1213
+ var import_utils26 = require("@rjsf/utils");
1121
1214
 
1122
1215
  // src/components/ui/select.tsx
1123
- var import_react36 = require("react");
1124
- var import_react37 = require("@chakra-ui/react");
1125
- var import_jsx_runtime31 = require("react/jsx-runtime");
1126
- var SelectTrigger = (0, import_react36.forwardRef)(function SelectTrigger2(props, ref) {
1216
+ var import_react38 = require("react");
1217
+ var import_react39 = require("@chakra-ui/react");
1218
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1219
+ var SelectTrigger = (0, import_react38.forwardRef)(function SelectTrigger2(props, ref) {
1127
1220
  const { children, clearable, ...rest } = props;
1128
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react37.Select.Control, { ...rest, children: [
1129
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react37.Select.Trigger, { ref, children }),
1130
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react37.Select.IndicatorGroup, { children: [
1131
- clearable && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SelectClearTrigger, {}),
1132
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react37.Select.Indicator, {})
1221
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react39.Select.Control, { ...rest, children: [
1222
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.Trigger, { ref, children }),
1223
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react39.Select.IndicatorGroup, { children: [
1224
+ clearable && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectClearTrigger, {}),
1225
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.Indicator, {})
1133
1226
  ] })
1134
1227
  ] });
1135
1228
  });
1136
- var SelectClearTrigger = (0, import_react36.forwardRef)(
1229
+ var SelectClearTrigger = (0, import_react38.forwardRef)(
1137
1230
  function SelectClearTrigger2(props, ref) {
1138
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react37.Select.ClearTrigger, { asChild: true, ...props, ref, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CloseButton, { size: "xs", variant: "plain", focusVisibleRing: "inside", focusRingWidth: "2px", pointerEvents: "auto" }) });
1231
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.ClearTrigger, { asChild: true, ...props, ref, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CloseButton, { size: "xs", variant: "plain", focusVisibleRing: "inside", focusRingWidth: "2px", pointerEvents: "auto" }) });
1139
1232
  }
1140
1233
  );
1141
- var SelectContent = (0, import_react36.forwardRef)(function SelectContent2(props, ref) {
1234
+ var SelectContent = (0, import_react38.forwardRef)(function SelectContent2(props, ref) {
1142
1235
  const { portalled = true, portalRef, ...rest } = props;
1143
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react37.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react37.Select.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react37.Select.Content, { ...rest, ref }) }) });
1236
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.Content, { ...rest, ref }) }) });
1144
1237
  });
1145
- var SelectItem = (0, import_react36.forwardRef)(function SelectItem2(props, ref) {
1238
+ var SelectItem = (0, import_react38.forwardRef)(function SelectItem2(props, ref) {
1146
1239
  const { item, children, ...rest } = props;
1147
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react37.Select.Item, { item, ...rest, ref, children: [
1240
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react39.Select.Item, { item, ...rest, ref, children: [
1148
1241
  children,
1149
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react37.Select.ItemIndicator, {})
1242
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.ItemIndicator, {})
1150
1243
  ] }, item.value);
1151
1244
  });
1152
- var SelectValueText = (0, import_react36.forwardRef)(function SelectValueText2(props, ref) {
1245
+ var SelectValueText = (0, import_react38.forwardRef)(function SelectValueText2(props, ref) {
1153
1246
  const { children, ...rest } = props;
1154
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react37.Select.ValueText, { ...rest, ref, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react37.Select.Context, { children: (select) => {
1247
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.ValueText, { ...rest, ref, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.Context, { children: (select) => {
1155
1248
  const items = select.selectedItems;
1156
1249
  if (items.length === 0) {
1157
1250
  return props.placeholder;
@@ -1165,24 +1258,24 @@ var SelectValueText = (0, import_react36.forwardRef)(function SelectValueText2(p
1165
1258
  return `${items.length} selected`;
1166
1259
  } }) });
1167
1260
  });
1168
- var SelectRoot = (0, import_react36.forwardRef)(function SelectRoot2(props, ref) {
1169
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react37.Select.Root, { ...props, ref, positioning: { sameWidth: true, ...props.positioning }, children: props.asChild ? props.children : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
1170
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react37.Select.HiddenSelect, {}),
1261
+ var SelectRoot = (0, import_react38.forwardRef)(function SelectRoot2(props, ref) {
1262
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.Root, { ...props, ref, positioning: { sameWidth: true, ...props.positioning }, children: props.asChild ? props.children : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
1263
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.HiddenSelect, {}),
1171
1264
  props.children
1172
1265
  ] }) });
1173
1266
  });
1174
- var SelectItemGroup = (0, import_react36.forwardRef)(function SelectItemGroup2(props, ref) {
1267
+ var SelectItemGroup = (0, import_react38.forwardRef)(function SelectItemGroup2(props, ref) {
1175
1268
  const { children, label, ...rest } = props;
1176
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react37.Select.ItemGroup, { ...rest, ref, children: [
1177
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react37.Select.ItemGroupLabel, { children: label }),
1269
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react39.Select.ItemGroup, { ...rest, ref, children: [
1270
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.ItemGroupLabel, { children: label }),
1178
1271
  children
1179
1272
  ] });
1180
1273
  });
1181
- var SelectLabel = import_react37.Select.Label;
1182
- var SelectItemText = import_react37.Select.ItemText;
1274
+ var SelectLabel = import_react39.Select.Label;
1275
+ var SelectItemText = import_react39.Select.ItemText;
1183
1276
 
1184
1277
  // src/SelectWidget/SelectWidget.tsx
1185
- var import_jsx_runtime32 = require("react/jsx-runtime");
1278
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1186
1279
  function SelectWidget(props) {
1187
1280
  const {
1188
1281
  id,
@@ -1205,25 +1298,25 @@ function SelectWidget(props) {
1205
1298
  uiSchema
1206
1299
  } = props;
1207
1300
  const { enumOptions, enumDisabled, emptyValue } = options;
1208
- const optionValueFormat = (0, import_utils24.getOptionValueFormat)(options);
1301
+ const optionValueFormat = (0, import_utils26.getOptionValueFormat)(options);
1209
1302
  const _onMultiChange = ({ value: value2 }) => {
1210
- return onChange((0, import_utils24.enumOptionValueDecoder)(value2, enumOptions, optionValueFormat, emptyValue));
1303
+ return onChange((0, import_utils26.enumOptionValueDecoder)(value2, enumOptions, optionValueFormat, emptyValue));
1211
1304
  };
1212
1305
  const _onSingleChange = ({ value: value2 }) => {
1213
- const selected = (0, import_utils24.enumOptionValueDecoder)(value2, enumOptions, optionValueFormat, emptyValue);
1306
+ const selected = (0, import_utils26.enumOptionValueDecoder)(value2, enumOptions, optionValueFormat, emptyValue);
1214
1307
  return onChange(Array.isArray(selected) && selected.length === 1 ? selected[0] : selected);
1215
1308
  };
1216
- const _onBlur = ({ target }) => onBlur(id, (0, import_utils24.enumOptionValueDecoder)(target && target.value, enumOptions, optionValueFormat, emptyValue));
1217
- const _onFocus = ({ target }) => onFocus(id, (0, import_utils24.enumOptionValueDecoder)(target && target.value, enumOptions, optionValueFormat, emptyValue));
1309
+ const _onBlur = ({ target }) => onBlur(id, (0, import_utils26.enumOptionValueDecoder)(target && target.value, enumOptions, optionValueFormat, emptyValue));
1310
+ const _onFocus = ({ target }) => onFocus(id, (0, import_utils26.enumOptionValueDecoder)(target && target.value, enumOptions, optionValueFormat, emptyValue));
1218
1311
  const showPlaceholderOption = !multiple && schema.default === void 0;
1219
- const displayEnumOptions = (0, import_react38.useMemo)(() => {
1312
+ const displayEnumOptions = (0, import_react40.useMemo)(() => {
1220
1313
  let displayEnumOptions2 = [];
1221
1314
  if (Array.isArray(enumOptions)) {
1222
1315
  displayEnumOptions2 = enumOptions.map((option, index) => {
1223
1316
  const { value: value2, label: label2 } = option;
1224
1317
  return {
1225
1318
  label: label2,
1226
- value: (0, import_utils24.enumOptionValueEncoder)(value2, index, optionValueFormat),
1319
+ value: (0, import_utils26.enumOptionValueEncoder)(value2, index, optionValueFormat),
1227
1320
  disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(value2) !== -1
1228
1321
  };
1229
1322
  });
@@ -1235,14 +1328,14 @@ function SelectWidget(props) {
1235
1328
  }, [enumDisabled, enumOptions, placeholder, showPlaceholderOption, optionValueFormat]);
1236
1329
  const isMultiple = typeof multiple !== "undefined" && multiple !== false && Boolean(enumOptions);
1237
1330
  const formValue = [
1238
- (0, import_utils24.enumOptionSelectedValue)(value, enumOptions, isMultiple, optionValueFormat, isMultiple ? [] : "")
1331
+ (0, import_utils26.enumOptionSelectedValue)(value, enumOptions, isMultiple, optionValueFormat, isMultiple ? [] : "")
1239
1332
  ].flat().filter((v) => v !== "");
1240
- const selectOptions = (0, import_react39.createListCollection)({
1333
+ const selectOptions = (0, import_react41.createListCollection)({
1241
1334
  items: displayEnumOptions.filter((item) => item.value)
1242
1335
  });
1243
- const containerRef = (0, import_react38.useRef)(null);
1336
+ const containerRef = (0, import_react40.useRef)(null);
1244
1337
  const chakraProps = getChakra({ uiSchema });
1245
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1338
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1246
1339
  Field,
1247
1340
  {
1248
1341
  ref: containerRef,
@@ -1251,10 +1344,10 @@ function SelectWidget(props) {
1251
1344
  required,
1252
1345
  readOnly: readonly,
1253
1346
  invalid: rawErrors && rawErrors.length > 0,
1254
- label: (0, import_utils24.labelValue)(label, hideLabel || !label),
1347
+ label: (0, import_utils26.labelValue)(label, hideLabel || !label),
1255
1348
  position: "relative",
1256
1349
  ...chakraProps,
1257
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1350
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1258
1351
  SelectRoot,
1259
1352
  {
1260
1353
  collection: selectOptions,
@@ -1267,13 +1360,13 @@ function SelectWidget(props) {
1267
1360
  onFocus: _onFocus,
1268
1361
  autoFocus: autofocus,
1269
1362
  value: formValue,
1270
- "aria-describedby": (0, import_utils24.ariaDescribedByIds)(id),
1363
+ "aria-describedby": (0, import_utils26.ariaDescribedByIds)(id),
1271
1364
  positioning: { placement: "bottom" },
1272
1365
  children: [
1273
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectValueText, { placeholder }) }) }),
1274
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.Positioner, { minWidth: "100% !important", zIndex: "2 !important", top: "calc(100% + 5px) !important", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.Content, { children: selectOptions.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react39.Select.Item, { item, children: [
1366
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react41.Select.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectValueText, { placeholder }) }) }),
1367
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react41.Select.Positioner, { minWidth: "100% !important", zIndex: "2 !important", top: "calc(100% + 5px) !important", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react41.Select.Content, { children: selectOptions.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_react41.Select.Item, { item, children: [
1275
1368
  item.label,
1276
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react39.Select.ItemIndicator, {})
1369
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react41.Select.ItemIndicator, {})
1277
1370
  ] }, item.value)) }) })
1278
1371
  ]
1279
1372
  }
@@ -1282,99 +1375,6 @@ function SelectWidget(props) {
1282
1375
  );
1283
1376
  }
1284
1377
 
1285
- // src/NativeSelectWidget/NativeSelectWidget.tsx
1286
- var import_react40 = require("react");
1287
- var import_utils26 = require("@rjsf/utils");
1288
- var import_react41 = require("@chakra-ui/react");
1289
- var import_jsx_runtime33 = require("react/jsx-runtime");
1290
- function NativeSelectWidget(props) {
1291
- const {
1292
- id,
1293
- options,
1294
- label,
1295
- hideLabel,
1296
- placeholder,
1297
- multiple,
1298
- required,
1299
- disabled,
1300
- readonly,
1301
- value,
1302
- autofocus,
1303
- onChange,
1304
- onBlur,
1305
- onFocus,
1306
- rawErrors = [],
1307
- schema,
1308
- uiSchema
1309
- } = props;
1310
- const { enumOptions, enumDisabled, emptyValue } = options;
1311
- const _onChange = ({ target }) => {
1312
- return onChange((0, import_utils26.enumOptionsValueForIndex)(target && target.value, enumOptions, emptyValue));
1313
- };
1314
- const _onBlur = ({ target }) => onBlur(id, (0, import_utils26.enumOptionsValueForIndex)(target && target.value, enumOptions, emptyValue));
1315
- const _onFocus = ({ target }) => onFocus(id, (0, import_utils26.enumOptionsValueForIndex)(target && target.value, enumOptions, emptyValue));
1316
- const showPlaceholderOption = !multiple && schema.default === void 0;
1317
- const { valueLabelMap, displayEnumOptions } = (0, import_react40.useMemo)(() => {
1318
- const valueLabelMap2 = {};
1319
- let displayEnumOptions2 = [];
1320
- if (Array.isArray(enumOptions)) {
1321
- displayEnumOptions2 = enumOptions.map((option, index) => {
1322
- const { value: value2, label: label2 } = option;
1323
- valueLabelMap2[index] = label2 || String(value2);
1324
- return {
1325
- label: label2,
1326
- value: String(index),
1327
- disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(value2) !== -1
1328
- };
1329
- });
1330
- }
1331
- return { valueLabelMap: valueLabelMap2, displayEnumOptions: displayEnumOptions2 };
1332
- }, [enumDisabled, enumOptions]);
1333
- const selectedIndex = (0, import_utils26.enumOptionsIndexForValue)(value, enumOptions, false);
1334
- const getSingleValue = () => typeof selectedIndex !== "undefined" ? [
1335
- {
1336
- label: valueLabelMap[selectedIndex] || "",
1337
- value: selectedIndex.toString()
1338
- }
1339
- ] : [];
1340
- const formValue = getSingleValue()[0]?.value || "";
1341
- const selectOptions = (0, import_react41.createListCollection)({
1342
- items: displayEnumOptions.filter((item) => item.value)
1343
- });
1344
- const chakraProps = getChakra({ uiSchema });
1345
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1346
- Field,
1347
- {
1348
- mb: 1,
1349
- disabled: disabled || readonly,
1350
- required,
1351
- readOnly: readonly,
1352
- invalid: rawErrors && rawErrors.length > 0,
1353
- label: (0, import_utils26.labelValue)(label, hideLabel || !label),
1354
- ...chakraProps,
1355
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_react41.NativeSelect.Root, { children: [
1356
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1357
- import_react41.NativeSelect.Field,
1358
- {
1359
- id,
1360
- onBlur: _onBlur,
1361
- onChange: _onChange,
1362
- onFocus: _onFocus,
1363
- autoFocus: autofocus,
1364
- value: formValue,
1365
- "aria-describedby": (0, import_utils26.ariaDescribedByIds)(id),
1366
- children: [
1367
- showPlaceholderOption ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "", disabled: true, hidden: true, children: placeholder || "" }) : void 0,
1368
- selectOptions.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: item.value, children: item.label }, item.value))
1369
- ]
1370
- }
1371
- ),
1372
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react41.NativeSelect.Indicator, {})
1373
- ] })
1374
- }
1375
- );
1376
- }
1377
-
1378
1378
  // src/TextareaWidget/TextareaWidget.tsx
1379
1379
  var import_react42 = require("@chakra-ui/react");
1380
1380
  var import_utils28 = require("@rjsf/utils");
@@ -1520,17 +1520,17 @@ function generateForm() {
1520
1520
  var Form_default = generateForm();
1521
1521
 
1522
1522
  // src/ChakraFrameProvider.tsx
1523
- var import_react45 = require("@emotion/react");
1523
+ var import_react45 = require("@chakra-ui/react");
1524
1524
  var import_cache = __toESM(require("@emotion/cache"), 1);
1525
+ var import_react46 = require("@emotion/react");
1525
1526
  var import_weak_memoize = __toESM(require("@emotion/weak-memoize"), 1);
1526
- var import_react46 = require("@chakra-ui/react");
1527
1527
  var import_jsx_runtime37 = require("react/jsx-runtime");
1528
1528
  var memoizedCreateCacheWithContainer = (0, import_weak_memoize.default)((container) => {
1529
1529
  const newCache = (0, import_cache.default)({ container, key: "rjsf" });
1530
1530
  return newCache;
1531
1531
  });
1532
1532
  var __createChakraFrameProvider = (props) => ({ document }) => {
1533
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { style: { margin: 2 }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react45.CacheProvider, { value: memoizedCreateCacheWithContainer(document.head), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react46.ChakraProvider, { value: import_react46.defaultSystem, children: props.children }) }) });
1533
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { style: { margin: 2 }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react46.CacheProvider, { value: memoizedCreateCacheWithContainer(document.head), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react45.ChakraProvider, { value: import_react45.defaultSystem, children: props.children }) }) });
1534
1534
  };
1535
1535
 
1536
1536
  // src/index.ts