@rjsf/core 6.0.0-beta.1 → 6.0.0-beta.3

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.
package/dist/index.esm.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  deepEquals as deepEquals3,
6
6
  getChangedFields,
7
7
  getTemplate as getTemplate24,
8
- getUiOptions as getUiOptions16,
8
+ getUiOptions as getUiOptions17,
9
9
  isObject as isObject6,
10
10
  mergeObjects as mergeObjects3,
11
11
  NAME_KEY,
@@ -2212,7 +2212,6 @@ import {
2212
2212
  } from "@rjsf/utils";
2213
2213
  import isObject5 from "lodash/isObject";
2214
2214
  import omit3 from "lodash/omit";
2215
- import Markdown2 from "markdown-to-jsx";
2216
2215
  import { Fragment, jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
2217
2216
  var COMPONENT_TYPES = {
2218
2217
  array: "ArrayField",
@@ -2339,7 +2338,6 @@ function SchemaFieldRender(props) {
2339
2338
  label = ADDITIONAL_PROPERTY_FLAG2 in schema ? name : uiOptions.title || props.schema.title || schema.title || props.title || name;
2340
2339
  }
2341
2340
  const description = uiOptions.description || props.schema.description || schema.description || "";
2342
- const richDescription = uiOptions.enableMarkdownInDescription ? /* @__PURE__ */ jsx9(Markdown2, { options: { disableParsingRawHTML: true }, children: description }) : description;
2343
2341
  const help = uiOptions.help;
2344
2342
  const hidden = uiOptions.widget === "hidden";
2345
2343
  const classNames = ["rjsf-field", `rjsf-field-${getSchemaType(schema)}`];
@@ -2376,7 +2374,7 @@ function SchemaFieldRender(props) {
2376
2374
  DescriptionFieldTemplate,
2377
2375
  {
2378
2376
  id: descriptionId(id),
2379
- description: richDescription,
2377
+ description,
2380
2378
  schema,
2381
2379
  uiSchema,
2382
2380
  registry
@@ -2990,34 +2988,48 @@ function buttonTemplates() {
2990
2988
  }
2991
2989
  var ButtonTemplates_default = buttonTemplates;
2992
2990
 
2993
- // src/components/templates/DescriptionField.tsx
2991
+ // src/components/RichDescription.tsx
2992
+ import {
2993
+ getTestIds as getTestIds2,
2994
+ getUiOptions as getUiOptions14
2995
+ } from "@rjsf/utils";
2996
+ import Markdown2 from "markdown-to-jsx";
2994
2997
  import { jsx as jsx20 } from "react/jsx-runtime";
2998
+ var TEST_IDS = getTestIds2();
2999
+ function RichDescription({ description, registry, uiSchema = {} }) {
3000
+ const { globalUiOptions } = registry;
3001
+ const uiOptions = getUiOptions14(uiSchema, globalUiOptions);
3002
+ if (uiOptions.enableMarkdownInDescription && typeof description === "string") {
3003
+ return /* @__PURE__ */ jsx20(Markdown2, { options: { disableParsingRawHTML: true }, "data-testid": TEST_IDS.markdown, children: description });
3004
+ }
3005
+ return description;
3006
+ }
3007
+ RichDescription.TEST_IDS = TEST_IDS;
3008
+
3009
+ // src/components/templates/DescriptionField.tsx
3010
+ import { jsx as jsx21 } from "react/jsx-runtime";
2995
3011
  function DescriptionField(props) {
2996
- const { id, description } = props;
3012
+ const { id, description, registry, uiSchema } = props;
2997
3013
  if (!description) {
2998
3014
  return null;
2999
3015
  }
3000
- if (typeof description === "string") {
3001
- return /* @__PURE__ */ jsx20("p", { id, className: "field-description", children: description });
3002
- } else {
3003
- return /* @__PURE__ */ jsx20("div", { id, className: "field-description", children: description });
3004
- }
3016
+ return /* @__PURE__ */ jsx21("div", { id, className: "field-description", children: /* @__PURE__ */ jsx21(RichDescription, { description, registry, uiSchema }) });
3005
3017
  }
3006
3018
 
3007
3019
  // src/components/templates/ErrorList.tsx
3008
3020
  import {
3009
3021
  TranslatableString as TranslatableString8
3010
3022
  } from "@rjsf/utils";
3011
- import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
3023
+ import { jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
3012
3024
  function ErrorList({
3013
3025
  errors,
3014
3026
  registry
3015
3027
  }) {
3016
3028
  const { translateString } = registry;
3017
3029
  return /* @__PURE__ */ jsxs8("div", { className: "panel panel-danger errors", children: [
3018
- /* @__PURE__ */ jsx21("div", { className: "panel-heading", children: /* @__PURE__ */ jsx21("h3", { className: "panel-title", children: translateString(TranslatableString8.ErrorsLabel) }) }),
3019
- /* @__PURE__ */ jsx21("ul", { className: "list-group", children: errors.map((error, i) => {
3020
- return /* @__PURE__ */ jsx21("li", { className: "list-group-item text-danger", children: error.stack }, i);
3030
+ /* @__PURE__ */ jsx22("div", { className: "panel-heading", children: /* @__PURE__ */ jsx22("h3", { className: "panel-title", children: translateString(TranslatableString8.ErrorsLabel) }) }),
3031
+ /* @__PURE__ */ jsx22("ul", { className: "list-group", children: errors.map((error, i) => {
3032
+ return /* @__PURE__ */ jsx22("li", { className: "list-group-item text-danger", children: error.stack }, i);
3021
3033
  }) })
3022
3034
  ] });
3023
3035
  }
@@ -3025,11 +3037,11 @@ function ErrorList({
3025
3037
  // src/components/templates/FieldTemplate/FieldTemplate.tsx
3026
3038
  import {
3027
3039
  getTemplate as getTemplate11,
3028
- getUiOptions as getUiOptions14
3040
+ getUiOptions as getUiOptions15
3029
3041
  } from "@rjsf/utils";
3030
3042
 
3031
3043
  // src/components/templates/FieldTemplate/Label.tsx
3032
- import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
3044
+ import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
3033
3045
  var REQUIRED_FIELD_SYMBOL = "*";
3034
3046
  function Label(props) {
3035
3047
  const { label, required, id } = props;
@@ -3038,25 +3050,25 @@ function Label(props) {
3038
3050
  }
3039
3051
  return /* @__PURE__ */ jsxs9("label", { className: "control-label", htmlFor: id, children: [
3040
3052
  label,
3041
- required && /* @__PURE__ */ jsx22("span", { className: "required", children: REQUIRED_FIELD_SYMBOL })
3053
+ required && /* @__PURE__ */ jsx23("span", { className: "required", children: REQUIRED_FIELD_SYMBOL })
3042
3054
  ] });
3043
3055
  }
3044
3056
 
3045
3057
  // src/components/templates/FieldTemplate/FieldTemplate.tsx
3046
- import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
3058
+ import { jsx as jsx24, jsxs as jsxs10 } from "react/jsx-runtime";
3047
3059
  function FieldTemplate(props) {
3048
3060
  const { id, label, children, errors, help, description, hidden, required, displayLabel, registry, uiSchema } = props;
3049
- const uiOptions = getUiOptions14(uiSchema);
3061
+ const uiOptions = getUiOptions15(uiSchema);
3050
3062
  const WrapIfAdditionalTemplate2 = getTemplate11(
3051
3063
  "WrapIfAdditionalTemplate",
3052
3064
  registry,
3053
3065
  uiOptions
3054
3066
  );
3055
3067
  if (hidden) {
3056
- return /* @__PURE__ */ jsx23("div", { className: "hidden", children });
3068
+ return /* @__PURE__ */ jsx24("div", { className: "hidden", children });
3057
3069
  }
3058
3070
  return /* @__PURE__ */ jsxs10(WrapIfAdditionalTemplate2, { ...props, children: [
3059
- displayLabel && /* @__PURE__ */ jsx23(Label, { label, required, id }),
3071
+ displayLabel && /* @__PURE__ */ jsx24(Label, { label, required, id }),
3060
3072
  displayLabel && description ? description : null,
3061
3073
  children,
3062
3074
  errors,
@@ -3069,21 +3081,21 @@ var FieldTemplate_default = FieldTemplate;
3069
3081
 
3070
3082
  // src/components/templates/FieldErrorTemplate.tsx
3071
3083
  import { errorId } from "@rjsf/utils";
3072
- import { jsx as jsx24 } from "react/jsx-runtime";
3084
+ import { jsx as jsx25 } from "react/jsx-runtime";
3073
3085
  function FieldErrorTemplate(props) {
3074
3086
  const { errors = [], idSchema } = props;
3075
3087
  if (errors.length === 0) {
3076
3088
  return null;
3077
3089
  }
3078
3090
  const id = errorId(idSchema);
3079
- return /* @__PURE__ */ jsx24("div", { children: /* @__PURE__ */ jsx24("ul", { id, className: "error-detail bs-callout bs-callout-info", children: errors.filter((elem) => !!elem).map((error, index) => {
3080
- return /* @__PURE__ */ jsx24("li", { className: "text-danger", children: error }, index);
3091
+ return /* @__PURE__ */ jsx25("div", { children: /* @__PURE__ */ jsx25("ul", { id, className: "error-detail bs-callout bs-callout-info", children: errors.filter((elem) => !!elem).map((error, index) => {
3092
+ return /* @__PURE__ */ jsx25("li", { className: "text-danger", children: error }, index);
3081
3093
  }) }) });
3082
3094
  }
3083
3095
 
3084
3096
  // src/components/templates/FieldHelpTemplate.tsx
3085
3097
  import { helpId } from "@rjsf/utils";
3086
- import { jsx as jsx25 } from "react/jsx-runtime";
3098
+ import { jsx as jsx26 } from "react/jsx-runtime";
3087
3099
  function FieldHelpTemplate(props) {
3088
3100
  const { idSchema, help } = props;
3089
3101
  if (!help) {
@@ -3091,16 +3103,16 @@ function FieldHelpTemplate(props) {
3091
3103
  }
3092
3104
  const id = helpId(idSchema);
3093
3105
  if (typeof help === "string") {
3094
- return /* @__PURE__ */ jsx25("p", { id, className: "help-block", children: help });
3106
+ return /* @__PURE__ */ jsx26("p", { id, className: "help-block", children: help });
3095
3107
  }
3096
- return /* @__PURE__ */ jsx25("div", { id, className: "help-block", children: help });
3108
+ return /* @__PURE__ */ jsx26("div", { id, className: "help-block", children: help });
3097
3109
  }
3098
3110
 
3099
3111
  // src/components/templates/GridTemplate.tsx
3100
- import { jsx as jsx26 } from "react/jsx-runtime";
3112
+ import { jsx as jsx27 } from "react/jsx-runtime";
3101
3113
  function GridTemplate(props) {
3102
3114
  const { children, column, className, ...rest } = props;
3103
- return /* @__PURE__ */ jsx26("div", { className, ...rest, children });
3115
+ return /* @__PURE__ */ jsx27("div", { className, ...rest, children });
3104
3116
  }
3105
3117
 
3106
3118
  // src/components/templates/ObjectFieldTemplate.tsx
@@ -3108,11 +3120,11 @@ import {
3108
3120
  canExpand,
3109
3121
  descriptionId as descriptionId3,
3110
3122
  getTemplate as getTemplate12,
3111
- getUiOptions as getUiOptions15,
3123
+ getUiOptions as getUiOptions16,
3112
3124
  titleId as titleId3,
3113
3125
  buttonId as buttonId3
3114
3126
  } from "@rjsf/utils";
3115
- import { jsx as jsx27, jsxs as jsxs11 } from "react/jsx-runtime";
3127
+ import { jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
3116
3128
  function ObjectFieldTemplate(props) {
3117
3129
  const {
3118
3130
  description,
@@ -3128,7 +3140,7 @@ function ObjectFieldTemplate(props) {
3128
3140
  title,
3129
3141
  uiSchema
3130
3142
  } = props;
3131
- const options = getUiOptions15(uiSchema);
3143
+ const options = getUiOptions16(uiSchema);
3132
3144
  const TitleFieldTemplate = getTemplate12("TitleFieldTemplate", registry, options);
3133
3145
  const DescriptionFieldTemplate = getTemplate12(
3134
3146
  "DescriptionFieldTemplate",
@@ -3139,7 +3151,7 @@ function ObjectFieldTemplate(props) {
3139
3151
  ButtonTemplates: { AddButton: AddButton2 }
3140
3152
  } = registry.templates;
3141
3153
  return /* @__PURE__ */ jsxs11("fieldset", { id: idSchema.$id, children: [
3142
- title && /* @__PURE__ */ jsx27(
3154
+ title && /* @__PURE__ */ jsx28(
3143
3155
  TitleFieldTemplate,
3144
3156
  {
3145
3157
  id: titleId3(idSchema),
@@ -3150,7 +3162,7 @@ function ObjectFieldTemplate(props) {
3150
3162
  registry
3151
3163
  }
3152
3164
  ),
3153
- description && /* @__PURE__ */ jsx27(
3165
+ description && /* @__PURE__ */ jsx28(
3154
3166
  DescriptionFieldTemplate,
3155
3167
  {
3156
3168
  id: descriptionId3(idSchema),
@@ -3161,7 +3173,7 @@ function ObjectFieldTemplate(props) {
3161
3173
  }
3162
3174
  ),
3163
3175
  properties.map((prop) => prop.content),
3164
- canExpand(schema, uiSchema, formData) && /* @__PURE__ */ jsx27(
3176
+ canExpand(schema, uiSchema, formData) && /* @__PURE__ */ jsx28(
3165
3177
  AddButton2,
3166
3178
  {
3167
3179
  id: buttonId3(idSchema, "add"),
@@ -3176,20 +3188,20 @@ function ObjectFieldTemplate(props) {
3176
3188
  }
3177
3189
 
3178
3190
  // src/components/templates/TitleField.tsx
3179
- import { jsx as jsx28, jsxs as jsxs12 } from "react/jsx-runtime";
3191
+ import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
3180
3192
  var REQUIRED_FIELD_SYMBOL2 = "*";
3181
3193
  function TitleField(props) {
3182
3194
  const { id, title, required } = props;
3183
3195
  return /* @__PURE__ */ jsxs12("legend", { id, children: [
3184
3196
  title,
3185
- required && /* @__PURE__ */ jsx28("span", { className: "required", children: REQUIRED_FIELD_SYMBOL2 })
3197
+ required && /* @__PURE__ */ jsx29("span", { className: "required", children: REQUIRED_FIELD_SYMBOL2 })
3186
3198
  ] });
3187
3199
  }
3188
3200
 
3189
3201
  // src/components/templates/UnsupportedField.tsx
3190
3202
  import { TranslatableString as TranslatableString9 } from "@rjsf/utils";
3191
3203
  import Markdown3 from "markdown-to-jsx";
3192
- import { jsx as jsx29, jsxs as jsxs13 } from "react/jsx-runtime";
3204
+ import { jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
3193
3205
  function UnsupportedField(props) {
3194
3206
  const { schema, idSchema, reason, registry } = props;
3195
3207
  const { translateString } = registry;
@@ -3204,8 +3216,8 @@ function UnsupportedField(props) {
3204
3216
  translateParams.push(reason);
3205
3217
  }
3206
3218
  return /* @__PURE__ */ jsxs13("div", { className: "unsupported-field", children: [
3207
- /* @__PURE__ */ jsx29("p", { children: /* @__PURE__ */ jsx29(Markdown3, { options: { disableParsingRawHTML: true }, children: translateString(translateEnum, translateParams) }) }),
3208
- schema && /* @__PURE__ */ jsx29("pre", { children: JSON.stringify(schema, null, 2) })
3219
+ /* @__PURE__ */ jsx30("p", { children: /* @__PURE__ */ jsx30(Markdown3, { options: { disableParsingRawHTML: true }, children: translateString(translateEnum, translateParams) }) }),
3220
+ schema && /* @__PURE__ */ jsx30("pre", { children: JSON.stringify(schema, null, 2) })
3209
3221
  ] });
3210
3222
  }
3211
3223
  var UnsupportedField_default = UnsupportedField;
@@ -3216,7 +3228,7 @@ import {
3216
3228
  buttonId as buttonId4,
3217
3229
  TranslatableString as TranslatableString10
3218
3230
  } from "@rjsf/utils";
3219
- import { jsx as jsx30, jsxs as jsxs14 } from "react/jsx-runtime";
3231
+ import { jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
3220
3232
  function WrapIfAdditionalTemplate(props) {
3221
3233
  const {
3222
3234
  id,
@@ -3245,12 +3257,12 @@ function WrapIfAdditionalTemplate(props) {
3245
3257
  }
3246
3258
  const uiClassNames = classNamesList.join(" ").trim();
3247
3259
  if (!additional) {
3248
- return /* @__PURE__ */ jsx30("div", { className: uiClassNames, style, children });
3260
+ return /* @__PURE__ */ jsx31("div", { className: uiClassNames, style, children });
3249
3261
  }
3250
- return /* @__PURE__ */ jsx30("div", { className: uiClassNames, style, children: /* @__PURE__ */ jsxs14("div", { className: "row", children: [
3251
- /* @__PURE__ */ jsx30("div", { className: "col-xs-5 form-additional", children: /* @__PURE__ */ jsxs14("div", { className: "form-group", children: [
3252
- /* @__PURE__ */ jsx30(Label, { label: keyLabel, required, id: `${id}-key` }),
3253
- /* @__PURE__ */ jsx30(
3262
+ return /* @__PURE__ */ jsx31("div", { className: uiClassNames, style, children: /* @__PURE__ */ jsxs14("div", { className: "row", children: [
3263
+ /* @__PURE__ */ jsx31("div", { className: "col-xs-5 form-additional", children: /* @__PURE__ */ jsxs14("div", { className: "form-group", children: [
3264
+ /* @__PURE__ */ jsx31(Label, { label: keyLabel, required, id: `${id}-key` }),
3265
+ /* @__PURE__ */ jsx31(
3254
3266
  "input",
3255
3267
  {
3256
3268
  className: "form-control",
@@ -3261,8 +3273,8 @@ function WrapIfAdditionalTemplate(props) {
3261
3273
  }
3262
3274
  )
3263
3275
  ] }) }),
3264
- /* @__PURE__ */ jsx30("div", { className: "form-additional form-group col-xs-5", children }),
3265
- /* @__PURE__ */ jsx30("div", { className: "col-xs-2", children: /* @__PURE__ */ jsx30(
3276
+ /* @__PURE__ */ jsx31("div", { className: "form-additional form-group col-xs-5", children }),
3277
+ /* @__PURE__ */ jsx31("div", { className: "col-xs-2", children: /* @__PURE__ */ jsx31(
3266
3278
  RemoveButton2,
3267
3279
  {
3268
3280
  id: buttonId4(id, "remove"),
@@ -3311,7 +3323,7 @@ import {
3311
3323
  TranslatableString as TranslatableString11,
3312
3324
  getDateElementProps
3313
3325
  } from "@rjsf/utils";
3314
- import { jsx as jsx31, jsxs as jsxs15 } from "react/jsx-runtime";
3326
+ import { jsx as jsx32, jsxs as jsxs15 } from "react/jsx-runtime";
3315
3327
  function readyForChange(state) {
3316
3328
  return Object.values(state).every((value) => value !== -1);
3317
3329
  }
@@ -3331,7 +3343,7 @@ function DateElement({
3331
3343
  }) {
3332
3344
  const id = rootId + "_" + type;
3333
3345
  const { SelectWidget: SelectWidget2 } = registry.widgets;
3334
- return /* @__PURE__ */ jsx31(
3346
+ return /* @__PURE__ */ jsx32(
3335
3347
  SelectWidget2,
3336
3348
  {
3337
3349
  schema: { type: "integer" },
@@ -3414,7 +3426,7 @@ function AltDateWidget({
3414
3426
  time,
3415
3427
  options.yearsRange,
3416
3428
  options.format
3417
- ).map((elemProps, i) => /* @__PURE__ */ jsx31("li", { className: "list-inline-item", children: /* @__PURE__ */ jsx31(
3429
+ ).map((elemProps, i) => /* @__PURE__ */ jsx32("li", { className: "list-inline-item", children: /* @__PURE__ */ jsx32(
3418
3430
  DateElement,
3419
3431
  {
3420
3432
  rootId: id,
@@ -3429,20 +3441,20 @@ function AltDateWidget({
3429
3441
  autofocus: autofocus && i === 0
3430
3442
  }
3431
3443
  ) }, i)),
3432
- (options.hideNowButton !== "undefined" ? !options.hideNowButton : true) && /* @__PURE__ */ jsx31("li", { className: "list-inline-item", children: /* @__PURE__ */ jsx31("a", { href: "#", className: "btn btn-info btn-now", onClick: handleSetNow, children: translateString(TranslatableString11.NowLabel) }) }),
3433
- (options.hideClearButton !== "undefined" ? !options.hideClearButton : true) && /* @__PURE__ */ jsx31("li", { className: "list-inline-item", children: /* @__PURE__ */ jsx31("a", { href: "#", className: "btn btn-warning btn-clear", onClick: handleClear, children: translateString(TranslatableString11.ClearLabel) }) })
3444
+ (options.hideNowButton !== "undefined" ? !options.hideNowButton : true) && /* @__PURE__ */ jsx32("li", { className: "list-inline-item", children: /* @__PURE__ */ jsx32("a", { href: "#", className: "btn btn-info btn-now", onClick: handleSetNow, children: translateString(TranslatableString11.NowLabel) }) }),
3445
+ (options.hideClearButton !== "undefined" ? !options.hideClearButton : true) && /* @__PURE__ */ jsx32("li", { className: "list-inline-item", children: /* @__PURE__ */ jsx32("a", { href: "#", className: "btn btn-warning btn-clear", onClick: handleClear, children: translateString(TranslatableString11.ClearLabel) }) })
3434
3446
  ] });
3435
3447
  }
3436
3448
  var AltDateWidget_default = AltDateWidget;
3437
3449
 
3438
3450
  // src/components/widgets/AltDateTimeWidget.tsx
3439
- import { jsx as jsx32 } from "react/jsx-runtime";
3451
+ import { jsx as jsx33 } from "react/jsx-runtime";
3440
3452
  function AltDateTimeWidget({
3441
3453
  time = true,
3442
3454
  ...props
3443
3455
  }) {
3444
3456
  const { AltDateWidget: AltDateWidget2 } = props.registry.widgets;
3445
- return /* @__PURE__ */ jsx32(AltDateWidget2, { time, ...props });
3457
+ return /* @__PURE__ */ jsx33(AltDateWidget2, { time, ...props });
3446
3458
  }
3447
3459
  var AltDateTimeWidget_default = AltDateTimeWidget;
3448
3460
 
@@ -3455,7 +3467,7 @@ import {
3455
3467
  labelValue,
3456
3468
  schemaRequiresTrueValue
3457
3469
  } from "@rjsf/utils";
3458
- import { jsx as jsx33, jsxs as jsxs16 } from "react/jsx-runtime";
3470
+ import { jsx as jsx34, jsxs as jsxs16 } from "react/jsx-runtime";
3459
3471
  function CheckboxWidget({
3460
3472
  schema,
3461
3473
  uiSchema,
@@ -3492,7 +3504,7 @@ function CheckboxWidget({
3492
3504
  );
3493
3505
  const description = options.description ?? schema.description;
3494
3506
  return /* @__PURE__ */ jsxs16("div", { className: `checkbox ${disabled || readonly ? "disabled" : ""}`, children: [
3495
- !hideLabel && !!description && /* @__PURE__ */ jsx33(
3507
+ !hideLabel && description && /* @__PURE__ */ jsx34(
3496
3508
  DescriptionFieldTemplate,
3497
3509
  {
3498
3510
  id: descriptionId4(id),
@@ -3503,7 +3515,7 @@ function CheckboxWidget({
3503
3515
  }
3504
3516
  ),
3505
3517
  /* @__PURE__ */ jsxs16("label", { children: [
3506
- /* @__PURE__ */ jsx33(
3518
+ /* @__PURE__ */ jsx34(
3507
3519
  "input",
3508
3520
  {
3509
3521
  type: "checkbox",
@@ -3519,7 +3531,7 @@ function CheckboxWidget({
3519
3531
  "aria-describedby": ariaDescribedByIds3(id)
3520
3532
  }
3521
3533
  ),
3522
- labelValue(/* @__PURE__ */ jsx33("span", { children: label }), hideLabel)
3534
+ labelValue(/* @__PURE__ */ jsx34("span", { children: label }), hideLabel)
3523
3535
  ] })
3524
3536
  ] });
3525
3537
  }
@@ -3535,7 +3547,7 @@ import {
3535
3547
  enumOptionsValueForIndex,
3536
3548
  optionId
3537
3549
  } from "@rjsf/utils";
3538
- import { jsx as jsx34, jsxs as jsxs17 } from "react/jsx-runtime";
3550
+ import { jsx as jsx35, jsxs as jsxs17 } from "react/jsx-runtime";
3539
3551
  function CheckboxesWidget({
3540
3552
  id,
3541
3553
  disabled,
@@ -3556,7 +3568,7 @@ function CheckboxesWidget({
3556
3568
  ({ target }) => onFocus(id, enumOptionsValueForIndex(target && target.value, enumOptions, emptyValue)),
3557
3569
  [onFocus, id]
3558
3570
  );
3559
- return /* @__PURE__ */ jsx34("div", { className: "checkboxes", id, children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
3571
+ return /* @__PURE__ */ jsx35("div", { className: "checkboxes", id, children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
3560
3572
  const checked = enumOptionsIsSelected(option.value, checkboxesValues);
3561
3573
  const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
3562
3574
  const disabledCls = disabled || itemDisabled || readonly ? "disabled" : "";
@@ -3568,7 +3580,7 @@ function CheckboxesWidget({
3568
3580
  }
3569
3581
  };
3570
3582
  const checkbox = /* @__PURE__ */ jsxs17("span", { children: [
3571
- /* @__PURE__ */ jsx34(
3583
+ /* @__PURE__ */ jsx35(
3572
3584
  "input",
3573
3585
  {
3574
3586
  type: "checkbox",
@@ -3584,31 +3596,31 @@ function CheckboxesWidget({
3584
3596
  "aria-describedby": ariaDescribedByIds4(id)
3585
3597
  }
3586
3598
  ),
3587
- /* @__PURE__ */ jsx34("span", { children: option.label })
3599
+ /* @__PURE__ */ jsx35("span", { children: option.label })
3588
3600
  ] });
3589
- return inline ? /* @__PURE__ */ jsx34("label", { className: `checkbox-inline ${disabledCls}`, children: checkbox }, index) : /* @__PURE__ */ jsx34("div", { className: `checkbox ${disabledCls}`, children: /* @__PURE__ */ jsx34("label", { children: checkbox }) }, index);
3601
+ return inline ? /* @__PURE__ */ jsx35("label", { className: `checkbox-inline ${disabledCls}`, children: checkbox }, index) : /* @__PURE__ */ jsx35("div", { className: `checkbox ${disabledCls}`, children: /* @__PURE__ */ jsx35("label", { children: checkbox }) }, index);
3590
3602
  }) });
3591
3603
  }
3592
3604
  var CheckboxesWidget_default = CheckboxesWidget;
3593
3605
 
3594
3606
  // src/components/widgets/ColorWidget.tsx
3595
3607
  import { getTemplate as getTemplate14 } from "@rjsf/utils";
3596
- import { jsx as jsx35 } from "react/jsx-runtime";
3608
+ import { jsx as jsx36 } from "react/jsx-runtime";
3597
3609
  function ColorWidget(props) {
3598
3610
  const { disabled, readonly, options, registry } = props;
3599
3611
  const BaseInputTemplate2 = getTemplate14("BaseInputTemplate", registry, options);
3600
- return /* @__PURE__ */ jsx35(BaseInputTemplate2, { type: "color", ...props, disabled: disabled || readonly });
3612
+ return /* @__PURE__ */ jsx36(BaseInputTemplate2, { type: "color", ...props, disabled: disabled || readonly });
3601
3613
  }
3602
3614
 
3603
3615
  // src/components/widgets/DateWidget.tsx
3604
3616
  import { useCallback as useCallback7 } from "react";
3605
3617
  import { getTemplate as getTemplate15 } from "@rjsf/utils";
3606
- import { jsx as jsx36 } from "react/jsx-runtime";
3618
+ import { jsx as jsx37 } from "react/jsx-runtime";
3607
3619
  function DateWidget(props) {
3608
3620
  const { onChange, options, registry } = props;
3609
3621
  const BaseInputTemplate2 = getTemplate15("BaseInputTemplate", registry, options);
3610
3622
  const handleChange = useCallback7((value) => onChange(value || void 0), [onChange]);
3611
- return /* @__PURE__ */ jsx36(BaseInputTemplate2, { type: "date", ...props, onChange: handleChange });
3623
+ return /* @__PURE__ */ jsx37(BaseInputTemplate2, { type: "date", ...props, onChange: handleChange });
3612
3624
  }
3613
3625
 
3614
3626
  // src/components/widgets/DateTimeWidget.tsx
@@ -3617,11 +3629,11 @@ import {
3617
3629
  localToUTC,
3618
3630
  utcToLocal
3619
3631
  } from "@rjsf/utils";
3620
- import { jsx as jsx37 } from "react/jsx-runtime";
3632
+ import { jsx as jsx38 } from "react/jsx-runtime";
3621
3633
  function DateTimeWidget(props) {
3622
3634
  const { onChange, value, options, registry } = props;
3623
3635
  const BaseInputTemplate2 = getTemplate16("BaseInputTemplate", registry, options);
3624
- return /* @__PURE__ */ jsx37(
3636
+ return /* @__PURE__ */ jsx38(
3625
3637
  BaseInputTemplate2,
3626
3638
  {
3627
3639
  type: "datetime-local",
@@ -3634,11 +3646,11 @@ function DateTimeWidget(props) {
3634
3646
 
3635
3647
  // src/components/widgets/EmailWidget.tsx
3636
3648
  import { getTemplate as getTemplate17 } from "@rjsf/utils";
3637
- import { jsx as jsx38 } from "react/jsx-runtime";
3649
+ import { jsx as jsx39 } from "react/jsx-runtime";
3638
3650
  function EmailWidget(props) {
3639
3651
  const { options, registry } = props;
3640
3652
  const BaseInputTemplate2 = getTemplate17("BaseInputTemplate", registry, options);
3641
- return /* @__PURE__ */ jsx38(BaseInputTemplate2, { type: "email", ...props });
3653
+ return /* @__PURE__ */ jsx39(BaseInputTemplate2, { type: "email", ...props });
3642
3654
  }
3643
3655
 
3644
3656
  // src/components/widgets/FileWidget.tsx
@@ -3649,7 +3661,7 @@ import {
3649
3661
  TranslatableString as TranslatableString12
3650
3662
  } from "@rjsf/utils";
3651
3663
  import Markdown4 from "markdown-to-jsx";
3652
- import { Fragment as Fragment4, jsx as jsx39, jsxs as jsxs18 } from "react/jsx-runtime";
3664
+ import { Fragment as Fragment4, jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
3653
3665
  function addNameToDataURL(dataURL, name) {
3654
3666
  if (dataURL === null) {
3655
3667
  return null;
@@ -3694,11 +3706,11 @@ function FileInfoPreview({
3694
3706
  return null;
3695
3707
  }
3696
3708
  if (["image/jpeg", "image/png"].includes(type)) {
3697
- return /* @__PURE__ */ jsx39("img", { src: dataURL, style: { maxWidth: "100%" }, className: "file-preview" });
3709
+ return /* @__PURE__ */ jsx40("img", { src: dataURL, style: { maxWidth: "100%" }, className: "file-preview" });
3698
3710
  }
3699
3711
  return /* @__PURE__ */ jsxs18(Fragment4, { children: [
3700
3712
  " ",
3701
- /* @__PURE__ */ jsx39("a", { download: `preview-${name}`, href: dataURL, className: "file-download", children: translateString(TranslatableString12.PreviewLabel) })
3713
+ /* @__PURE__ */ jsx40("a", { download: `preview-${name}`, href: dataURL, className: "file-download", children: translateString(TranslatableString12.PreviewLabel) })
3702
3714
  ] });
3703
3715
  }
3704
3716
  function FilesInfo({
@@ -3713,13 +3725,13 @@ function FilesInfo({
3713
3725
  }
3714
3726
  const { translateString } = registry;
3715
3727
  const { RemoveButton: RemoveButton2 } = getTemplate18("ButtonTemplates", registry, options);
3716
- return /* @__PURE__ */ jsx39("ul", { className: "file-info", children: filesInfo.map((fileInfo, key) => {
3728
+ return /* @__PURE__ */ jsx40("ul", { className: "file-info", children: filesInfo.map((fileInfo, key) => {
3717
3729
  const { name, size, type } = fileInfo;
3718
3730
  const handleRemove = () => onRemove(key);
3719
3731
  return /* @__PURE__ */ jsxs18("li", { children: [
3720
- /* @__PURE__ */ jsx39(Markdown4, { children: translateString(TranslatableString12.FilesInfo, [name, type, String(size)]) }),
3721
- preview && /* @__PURE__ */ jsx39(FileInfoPreview, { fileInfo, registry }),
3722
- /* @__PURE__ */ jsx39(RemoveButton2, { onClick: handleRemove, registry })
3732
+ /* @__PURE__ */ jsx40(Markdown4, { children: translateString(TranslatableString12.FilesInfo, [name, type, String(size)]) }),
3733
+ preview && /* @__PURE__ */ jsx40(FileInfoPreview, { fileInfo, registry }),
3734
+ /* @__PURE__ */ jsx40(RemoveButton2, { onClick: handleRemove, registry })
3723
3735
  ] }, key);
3724
3736
  }) });
3725
3737
  }
@@ -3776,7 +3788,7 @@ function FileWidget(props) {
3776
3788
  [multiple, value, onChange]
3777
3789
  );
3778
3790
  return /* @__PURE__ */ jsxs18("div", { children: [
3779
- /* @__PURE__ */ jsx39(
3791
+ /* @__PURE__ */ jsx40(
3780
3792
  BaseInputTemplate2,
3781
3793
  {
3782
3794
  ...props,
@@ -3788,7 +3800,7 @@ function FileWidget(props) {
3788
3800
  accept: options.accept ? String(options.accept) : void 0
3789
3801
  }
3790
3802
  ),
3791
- /* @__PURE__ */ jsx39(
3803
+ /* @__PURE__ */ jsx40(
3792
3804
  FilesInfo,
3793
3805
  {
3794
3806
  filesInfo,
@@ -3803,22 +3815,22 @@ function FileWidget(props) {
3803
3815
  var FileWidget_default = FileWidget;
3804
3816
 
3805
3817
  // src/components/widgets/HiddenWidget.tsx
3806
- import { jsx as jsx40 } from "react/jsx-runtime";
3818
+ import { jsx as jsx41 } from "react/jsx-runtime";
3807
3819
  function HiddenWidget({
3808
3820
  id,
3809
3821
  value
3810
3822
  }) {
3811
- return /* @__PURE__ */ jsx40("input", { type: "hidden", id, name: id, value: typeof value === "undefined" ? "" : value });
3823
+ return /* @__PURE__ */ jsx41("input", { type: "hidden", id, name: id, value: typeof value === "undefined" ? "" : value });
3812
3824
  }
3813
3825
  var HiddenWidget_default = HiddenWidget;
3814
3826
 
3815
3827
  // src/components/widgets/PasswordWidget.tsx
3816
3828
  import { getTemplate as getTemplate19 } from "@rjsf/utils";
3817
- import { jsx as jsx41 } from "react/jsx-runtime";
3829
+ import { jsx as jsx42 } from "react/jsx-runtime";
3818
3830
  function PasswordWidget(props) {
3819
3831
  const { options, registry } = props;
3820
3832
  const BaseInputTemplate2 = getTemplate19("BaseInputTemplate", registry, options);
3821
- return /* @__PURE__ */ jsx41(BaseInputTemplate2, { type: "password", ...props });
3833
+ return /* @__PURE__ */ jsx42(BaseInputTemplate2, { type: "password", ...props });
3822
3834
  }
3823
3835
 
3824
3836
  // src/components/widgets/RadioWidget.tsx
@@ -3829,7 +3841,7 @@ import {
3829
3841
  enumOptionsValueForIndex as enumOptionsValueForIndex2,
3830
3842
  optionId as optionId2
3831
3843
  } from "@rjsf/utils";
3832
- import { jsx as jsx42, jsxs as jsxs19 } from "react/jsx-runtime";
3844
+ import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
3833
3845
  function RadioWidget({
3834
3846
  options,
3835
3847
  value,
@@ -3851,13 +3863,13 @@ function RadioWidget({
3851
3863
  ({ target }) => onFocus(id, enumOptionsValueForIndex2(target && target.value, enumOptions, emptyValue)),
3852
3864
  [onFocus, enumOptions, emptyValue, id]
3853
3865
  );
3854
- return /* @__PURE__ */ jsx42("div", { className: "field-radio-group", id, role: "radiogroup", children: Array.isArray(enumOptions) && enumOptions.map((option, i) => {
3866
+ return /* @__PURE__ */ jsx43("div", { className: "field-radio-group", id, role: "radiogroup", children: Array.isArray(enumOptions) && enumOptions.map((option, i) => {
3855
3867
  const checked = enumOptionsIsSelected2(option.value, value);
3856
3868
  const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
3857
3869
  const disabledCls = disabled || itemDisabled || readonly ? "disabled" : "";
3858
3870
  const handleChange = () => onChange(option.value);
3859
3871
  const radio = /* @__PURE__ */ jsxs19("span", { children: [
3860
- /* @__PURE__ */ jsx42(
3872
+ /* @__PURE__ */ jsx43(
3861
3873
  "input",
3862
3874
  {
3863
3875
  type: "radio",
@@ -3874,15 +3886,15 @@ function RadioWidget({
3874
3886
  "aria-describedby": ariaDescribedByIds5(id)
3875
3887
  }
3876
3888
  ),
3877
- /* @__PURE__ */ jsx42("span", { children: option.label })
3889
+ /* @__PURE__ */ jsx43("span", { children: option.label })
3878
3890
  ] });
3879
- return inline ? /* @__PURE__ */ jsx42("label", { className: `radio-inline ${disabledCls}`, children: radio }, i) : /* @__PURE__ */ jsx42("div", { className: `radio ${disabledCls}`, children: /* @__PURE__ */ jsx42("label", { children: radio }) }, i);
3891
+ return inline ? /* @__PURE__ */ jsx43("label", { className: `radio-inline ${disabledCls}`, children: radio }, i) : /* @__PURE__ */ jsx43("div", { className: `radio ${disabledCls}`, children: /* @__PURE__ */ jsx43("label", { children: radio }) }, i);
3880
3892
  }) });
3881
3893
  }
3882
3894
  var RadioWidget_default = RadioWidget;
3883
3895
 
3884
3896
  // src/components/widgets/RangeWidget.tsx
3885
- import { jsx as jsx43, jsxs as jsxs20 } from "react/jsx-runtime";
3897
+ import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
3886
3898
  function RangeWidget(props) {
3887
3899
  const {
3888
3900
  value,
@@ -3891,14 +3903,14 @@ function RangeWidget(props) {
3891
3903
  }
3892
3904
  } = props;
3893
3905
  return /* @__PURE__ */ jsxs20("div", { className: "field-range-wrapper", children: [
3894
- /* @__PURE__ */ jsx43(BaseInputTemplate2, { type: "range", ...props }),
3895
- /* @__PURE__ */ jsx43("span", { className: "range-view", children: value })
3906
+ /* @__PURE__ */ jsx44(BaseInputTemplate2, { type: "range", ...props }),
3907
+ /* @__PURE__ */ jsx44("span", { className: "range-view", children: value })
3896
3908
  ] });
3897
3909
  }
3898
3910
 
3899
3911
  // src/components/widgets/RatingWidget.tsx
3900
3912
  import { useCallback as useCallback10 } from "react";
3901
- import { Fragment as Fragment5, jsx as jsx44, jsxs as jsxs21 } from "react/jsx-runtime";
3913
+ import { Fragment as Fragment5, jsx as jsx45, jsxs as jsxs21 } from "react/jsx-runtime";
3902
3914
  function RatingWidget({
3903
3915
  id,
3904
3916
  value,
@@ -3947,7 +3959,7 @@ function RatingWidget({
3947
3959
  }
3948
3960
  return isFilled ? "\u2605" : "\u2606";
3949
3961
  };
3950
- return /* @__PURE__ */ jsx44(Fragment5, { children: /* @__PURE__ */ jsxs21(
3962
+ return /* @__PURE__ */ jsx45(Fragment5, { children: /* @__PURE__ */ jsxs21(
3951
3963
  "div",
3952
3964
  {
3953
3965
  className: "rating-widget",
@@ -3960,7 +3972,7 @@ function RatingWidget({
3960
3972
  [...Array(numStars)].map((_, index) => {
3961
3973
  const starValue = min + index;
3962
3974
  const isFilled = starValue <= value;
3963
- return /* @__PURE__ */ jsx44(
3975
+ return /* @__PURE__ */ jsx45(
3964
3976
  "span",
3965
3977
  {
3966
3978
  onClick: () => handleStarClick(starValue),
@@ -3982,7 +3994,7 @@ function RatingWidget({
3982
3994
  index
3983
3995
  );
3984
3996
  }),
3985
- /* @__PURE__ */ jsx44(
3997
+ /* @__PURE__ */ jsx45(
3986
3998
  "input",
3987
3999
  {
3988
4000
  type: "hidden",
@@ -4006,7 +4018,7 @@ import {
4006
4018
  enumOptionsIndexForValue,
4007
4019
  enumOptionsValueForIndex as enumOptionsValueForIndex3
4008
4020
  } from "@rjsf/utils";
4009
- import { jsx as jsx45, jsxs as jsxs22 } from "react/jsx-runtime";
4021
+ import { jsx as jsx46, jsxs as jsxs22 } from "react/jsx-runtime";
4010
4022
  function getValue(event, multiple) {
4011
4023
  if (multiple) {
4012
4024
  return Array.from(event.target.options).slice().filter((o) => o.selected).map((o) => o.value);
@@ -4070,10 +4082,10 @@ function SelectWidget({
4070
4082
  onChange: handleChange,
4071
4083
  "aria-describedby": ariaDescribedByIds6(id),
4072
4084
  children: [
4073
- showPlaceholderOption && /* @__PURE__ */ jsx45("option", { value: "", children: placeholder }),
4085
+ showPlaceholderOption && /* @__PURE__ */ jsx46("option", { value: "", children: placeholder }),
4074
4086
  Array.isArray(enumOptions) && enumOptions.map(({ value: value2, label }, i) => {
4075
4087
  const disabled2 = enumDisabled && enumDisabled.indexOf(value2) !== -1;
4076
- return /* @__PURE__ */ jsx45("option", { value: String(i), disabled: disabled2, children: label }, i);
4088
+ return /* @__PURE__ */ jsx46("option", { value: String(i), disabled: disabled2, children: label }, i);
4077
4089
  })
4078
4090
  ]
4079
4091
  }
@@ -4084,7 +4096,7 @@ var SelectWidget_default = SelectWidget;
4084
4096
  // src/components/widgets/TextareaWidget.tsx
4085
4097
  import { useCallback as useCallback12 } from "react";
4086
4098
  import { ariaDescribedByIds as ariaDescribedByIds7 } from "@rjsf/utils";
4087
- import { jsx as jsx46 } from "react/jsx-runtime";
4099
+ import { jsx as jsx47 } from "react/jsx-runtime";
4088
4100
  function TextareaWidget({
4089
4101
  id,
4090
4102
  options = {},
@@ -4110,7 +4122,7 @@ function TextareaWidget({
4110
4122
  ({ target }) => onFocus(id, target && target.value),
4111
4123
  [id, onFocus]
4112
4124
  );
4113
- return /* @__PURE__ */ jsx46(
4125
+ return /* @__PURE__ */ jsx47(
4114
4126
  "textarea",
4115
4127
  {
4116
4128
  id,
@@ -4138,40 +4150,40 @@ var TextareaWidget_default = TextareaWidget;
4138
4150
 
4139
4151
  // src/components/widgets/TextWidget.tsx
4140
4152
  import { getTemplate as getTemplate20 } from "@rjsf/utils";
4141
- import { jsx as jsx47 } from "react/jsx-runtime";
4153
+ import { jsx as jsx48 } from "react/jsx-runtime";
4142
4154
  function TextWidget(props) {
4143
4155
  const { options, registry } = props;
4144
4156
  const BaseInputTemplate2 = getTemplate20("BaseInputTemplate", registry, options);
4145
- return /* @__PURE__ */ jsx47(BaseInputTemplate2, { ...props });
4157
+ return /* @__PURE__ */ jsx48(BaseInputTemplate2, { ...props });
4146
4158
  }
4147
4159
 
4148
4160
  // src/components/widgets/TimeWidget.tsx
4149
4161
  import { useCallback as useCallback13 } from "react";
4150
4162
  import { getTemplate as getTemplate21 } from "@rjsf/utils";
4151
- import { jsx as jsx48 } from "react/jsx-runtime";
4163
+ import { jsx as jsx49 } from "react/jsx-runtime";
4152
4164
  function TimeWidget(props) {
4153
4165
  const { onChange, options, registry } = props;
4154
4166
  const BaseInputTemplate2 = getTemplate21("BaseInputTemplate", registry, options);
4155
4167
  const handleChange = useCallback13((value) => onChange(value ? `${value}:00` : void 0), [onChange]);
4156
- return /* @__PURE__ */ jsx48(BaseInputTemplate2, { type: "time", ...props, onChange: handleChange });
4168
+ return /* @__PURE__ */ jsx49(BaseInputTemplate2, { type: "time", ...props, onChange: handleChange });
4157
4169
  }
4158
4170
 
4159
4171
  // src/components/widgets/URLWidget.tsx
4160
4172
  import { getTemplate as getTemplate22 } from "@rjsf/utils";
4161
- import { jsx as jsx49 } from "react/jsx-runtime";
4173
+ import { jsx as jsx50 } from "react/jsx-runtime";
4162
4174
  function URLWidget(props) {
4163
4175
  const { options, registry } = props;
4164
4176
  const BaseInputTemplate2 = getTemplate22("BaseInputTemplate", registry, options);
4165
- return /* @__PURE__ */ jsx49(BaseInputTemplate2, { type: "url", ...props });
4177
+ return /* @__PURE__ */ jsx50(BaseInputTemplate2, { type: "url", ...props });
4166
4178
  }
4167
4179
 
4168
4180
  // src/components/widgets/UpDownWidget.tsx
4169
4181
  import { getTemplate as getTemplate23 } from "@rjsf/utils";
4170
- import { jsx as jsx50 } from "react/jsx-runtime";
4182
+ import { jsx as jsx51 } from "react/jsx-runtime";
4171
4183
  function UpDownWidget(props) {
4172
4184
  const { options, registry } = props;
4173
4185
  const BaseInputTemplate2 = getTemplate23("BaseInputTemplate", registry, options);
4174
- return /* @__PURE__ */ jsx50(BaseInputTemplate2, { type: "number", ...props });
4186
+ return /* @__PURE__ */ jsx51(BaseInputTemplate2, { type: "number", ...props });
4175
4187
  }
4176
4188
 
4177
4189
  // src/components/widgets/index.ts
@@ -4214,7 +4226,7 @@ function getDefaultRegistry() {
4214
4226
  }
4215
4227
 
4216
4228
  // src/components/Form.tsx
4217
- import { jsx as jsx51, jsxs as jsxs23 } from "react/jsx-runtime";
4229
+ import { jsx as jsx52, jsxs as jsxs23 } from "react/jsx-runtime";
4218
4230
  var Form = class extends Component5 {
4219
4231
  /** The ref used to hold the `form` element, this needs to be `any` because `tagName` or `_internalFormWrapper` can
4220
4232
  * provide any possible type here
@@ -4454,10 +4466,10 @@ var Form = class extends Component5 {
4454
4466
  renderErrors(registry) {
4455
4467
  const { errors, errorSchema, schema, uiSchema } = this.state;
4456
4468
  const { formContext } = this.props;
4457
- const options = getUiOptions16(uiSchema);
4469
+ const options = getUiOptions17(uiSchema);
4458
4470
  const ErrorListTemplate = getTemplate24("ErrorListTemplate", registry, options);
4459
4471
  if (errors && errors.length) {
4460
- return /* @__PURE__ */ jsx51(
4472
+ return /* @__PURE__ */ jsx52(
4461
4473
  ErrorListTemplate,
4462
4474
  {
4463
4475
  errors,
@@ -4875,7 +4887,7 @@ var Form = class extends Component5 {
4875
4887
  const { SubmitButton: SubmitButton2 } = registry.templates.ButtonTemplates;
4876
4888
  const as = _internalFormWrapper ? tagName : void 0;
4877
4889
  const FormTag = _internalFormWrapper || tagName || "form";
4878
- let { [SUBMIT_BTN_OPTIONS_KEY]: submitOptions = {} } = getUiOptions16(uiSchema);
4890
+ let { [SUBMIT_BTN_OPTIONS_KEY]: submitOptions = {} } = getUiOptions17(uiSchema);
4879
4891
  if (disabled) {
4880
4892
  submitOptions = { ...submitOptions, props: { ...submitOptions.props, disabled: true } };
4881
4893
  }
@@ -4898,7 +4910,7 @@ var Form = class extends Component5 {
4898
4910
  ref: this.formElement,
4899
4911
  children: [
4900
4912
  showErrorList === "top" && this.renderErrors(registry),
4901
- /* @__PURE__ */ jsx51(
4913
+ /* @__PURE__ */ jsx52(
4902
4914
  _SchemaField,
4903
4915
  {
4904
4916
  name: "",
@@ -4918,7 +4930,7 @@ var Form = class extends Component5 {
4918
4930
  readonly
4919
4931
  }
4920
4932
  ),
4921
- children ? children : /* @__PURE__ */ jsx51(SubmitButton2, { uiSchema: submitUiSchema, registry }),
4933
+ children ? children : /* @__PURE__ */ jsx52(SubmitButton2, { uiSchema: submitUiSchema, registry }),
4922
4934
  showErrorList === "bottom" && this.renderErrors(registry)
4923
4935
  ]
4924
4936
  }
@@ -4928,7 +4940,7 @@ var Form = class extends Component5 {
4928
4940
 
4929
4941
  // src/withTheme.tsx
4930
4942
  import { forwardRef } from "react";
4931
- import { jsx as jsx52 } from "react/jsx-runtime";
4943
+ import { jsx as jsx53 } from "react/jsx-runtime";
4932
4944
  function withTheme(themeProps) {
4933
4945
  return forwardRef(
4934
4946
  ({ fields: fields2, widgets: widgets2, templates: templates2, ...directProps }, ref) => {
@@ -4942,7 +4954,7 @@ function withTheme(themeProps) {
4942
4954
  ...templates2?.ButtonTemplates
4943
4955
  }
4944
4956
  };
4945
- return /* @__PURE__ */ jsx52(
4957
+ return /* @__PURE__ */ jsx53(
4946
4958
  Form,
4947
4959
  {
4948
4960
  ...themeProps,
@@ -4960,6 +4972,7 @@ function withTheme(themeProps) {
4960
4972
  // src/index.ts
4961
4973
  var index_default = Form;
4962
4974
  export {
4975
+ RichDescription,
4963
4976
  index_default as default,
4964
4977
  getDefaultRegistry,
4965
4978
  withTheme