@rjsf/core 6.7.0 → 6.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  ErrorSchemaBuilder,
7
7
  getChangedFields,
8
8
  getTemplate as getTemplate29,
9
- getUiOptions as getUiOptions22,
9
+ getUiOptions as getUiOptions23,
10
10
  hashObject as hashObject6,
11
11
  isObject as isObject6,
12
12
  mergeObjects,
@@ -1909,7 +1909,7 @@ var NullField_default = NullField;
1909
1909
 
1910
1910
  // src/components/fields/NumberField.tsx
1911
1911
  import { useState as useState6, useCallback as useCallback4 } from "react";
1912
- import { asNumber } from "@rjsf/utils";
1912
+ import { asNumber, getDecimalSeparator, getUiOptions as getUiOptions9, optionsList as optionsList4 } from "@rjsf/utils";
1913
1913
  import { jsx as jsx9 } from "react/jsx-runtime";
1914
1914
  var trailingCharMatcherWithPrefix = /\.([0-9]*0)*$/;
1915
1915
  var trailingCharMatcher = /[0.]0*$/;
@@ -1917,23 +1917,37 @@ function NumberField(props) {
1917
1917
  const { registry, onChange, formData, value: initialValue } = props;
1918
1918
  const [lastValue, setLastValue] = useState6(initialValue);
1919
1919
  const { StringField: StringField2 } = registry.fields;
1920
+ const separator = getDecimalSeparator();
1921
+ const escapedSeparator = separator === "." ? "\\." : separator;
1920
1922
  let value = formData;
1921
1923
  const handleChange = useCallback4(
1922
1924
  (newValue, path, errorSchema, id) => {
1923
1925
  setLastValue(newValue);
1924
- const normalizedValue = `${newValue}`.startsWith(".") ? `0${newValue}` : newValue;
1926
+ const standardValue = typeof newValue === "string" ? newValue.replace(separator, ".") : newValue;
1927
+ const normalizedValue = `${standardValue}`.startsWith(".") ? `0${standardValue}` : standardValue;
1925
1928
  const processed = typeof normalizedValue === "string" && trailingCharMatcherWithPrefix.exec(normalizedValue) ? asNumber(normalizedValue.replace(trailingCharMatcher, "")) : asNumber(normalizedValue);
1926
1929
  onChange(processed, path, errorSchema, id);
1927
1930
  },
1928
- [onChange]
1931
+ [onChange, separator]
1929
1932
  );
1930
1933
  if (typeof lastValue === "string" && typeof value === "number") {
1931
- const re = new RegExp(`^(${String(value).replace(".", "\\.")})?\\.?0*$`);
1934
+ const re = new RegExp(`^(${String(value).replace(".", escapedSeparator)})?${escapedSeparator}?0*$`);
1932
1935
  if (lastValue.match(re)) {
1933
1936
  value = lastValue;
1934
1937
  }
1935
1938
  }
1936
- return /* @__PURE__ */ jsx9(StringField2, { ...props, formData: value, onChange: handleChange });
1939
+ let displayValue = value;
1940
+ if (typeof value === "number" && separator !== ".") {
1941
+ const { schema, uiSchema } = props;
1942
+ const { schemaUtils } = registry;
1943
+ const enumOptions = schemaUtils.isSelect(schema) ? optionsList4(schema, uiSchema) : void 0;
1944
+ const defaultWidget = enumOptions ? "select" : "text";
1945
+ const { widget = defaultWidget } = getUiOptions9(uiSchema);
1946
+ if (widget !== "radio" && widget !== "select" && widget !== "hidden") {
1947
+ displayValue = String(value).replace(".", separator);
1948
+ }
1949
+ }
1950
+ return /* @__PURE__ */ jsx9(StringField2, { ...props, formData: displayValue, onChange: handleChange });
1937
1951
  }
1938
1952
  var NumberField_default = NumberField;
1939
1953
 
@@ -1943,7 +1957,7 @@ import {
1943
1957
  ADDITIONAL_PROPERTY_FLAG,
1944
1958
  ANY_OF_KEY as ANY_OF_KEY4,
1945
1959
  getTemplate as getTemplate8,
1946
- getUiOptions as getUiOptions9,
1960
+ getUiOptions as getUiOptions10,
1947
1961
  isFormDataAvailable as isFormDataAvailable3,
1948
1962
  orderProperties,
1949
1963
  shouldRenderOptionalField as shouldRenderOptionalField3,
@@ -1986,6 +2000,12 @@ function getDefaultValue(translateString, type) {
1986
2000
  return translateString(TranslatableString5.NewStringDefault);
1987
2001
  }
1988
2002
  }
2003
+ function isAdditionalPropertySchema(schema) {
2004
+ return Boolean(schema?.[ADDITIONAL_PROPERTY_FLAG]);
2005
+ }
2006
+ function getAdditionalPropertyOrder(schemaProperties) {
2007
+ return Object.keys(schemaProperties).filter((property) => isAdditionalPropertySchema(schemaProperties[property]));
2008
+ }
1989
2009
  function ObjectFieldPropertyFn(props) {
1990
2010
  const {
1991
2011
  fieldPathId,
@@ -2094,10 +2114,17 @@ function ObjectField(props) {
2094
2114
  () => schemaUtils.retrieveSchema(rawSchema, formData, true),
2095
2115
  [schemaUtils, rawSchema, formData]
2096
2116
  );
2097
- const uiOptions = useMemo4(() => getUiOptions9(uiSchema, globalUiOptions), [uiSchema, globalUiOptions]);
2098
- const { properties: schemaProperties = {} } = schema;
2117
+ const uiOptions = useMemo4(() => getUiOptions10(uiSchema, globalUiOptions), [uiSchema, globalUiOptions]);
2118
+ const schemaProperties = useMemo4(() => schema.properties ?? {}, [schema.properties]);
2099
2119
  const childFieldPathId = props.childFieldPathId ?? fieldPathId;
2100
2120
  const lastRenamedProperty = useRef3({ previousKey: "", currentKey: void 0 });
2121
+ const [additionalPropertyOrder, setAdditionalPropertyOrder] = useState7(
2122
+ () => getAdditionalPropertyOrder(schemaProperties)
2123
+ );
2124
+ const definedPropertyOrder = useMemo4(() => {
2125
+ const additionalPropertySet = new Set(getAdditionalPropertyOrder(schemaProperties));
2126
+ return Object.keys(schemaProperties).filter((property) => !additionalPropertySet.has(property));
2127
+ }, [schemaProperties]);
2101
2128
  const templateTitle = uiOptions.title ?? schema.title ?? title ?? name;
2102
2129
  const description = uiOptions.description ?? schema.description;
2103
2130
  const renderOptionalField = shouldRenderOptionalField3(registry, schema, required, uiSchema);
@@ -2105,7 +2132,7 @@ function ObjectField(props) {
2105
2132
  let orderedProperties = [];
2106
2133
  const getAvailableKey = useCallback5(
2107
2134
  (preferredKey, existingFormData) => {
2108
- const { duplicateKeySuffixSeparator = "-" } = getUiOptions9(uiSchema, globalUiOptions);
2135
+ const { duplicateKeySuffixSeparator = "-" } = getUiOptions10(uiSchema, globalUiOptions);
2109
2136
  let index = 0;
2110
2137
  let newKey = preferredKey;
2111
2138
  while (has3(existingFormData, newKey)) {
@@ -2150,6 +2177,7 @@ function ObjectField(props) {
2150
2177
  lastRenamedProperty.current.currentKey = newKey;
2151
2178
  lastRenamedProperty.current.previousKey = getAvailableKey(newKey, newFormData);
2152
2179
  }
2180
+ setAdditionalPropertyOrder((order) => [...order, newKey]);
2153
2181
  onChange(newFormData, childFieldPathId.path);
2154
2182
  }, [formData, onChange, translateString, schemaUtils, childFieldPathId, getAvailableKey, schema]);
2155
2183
  const handleKeyRename = useCallback5(
@@ -2171,6 +2199,7 @@ function ObjectField(props) {
2171
2199
  lastRenamedProperty.current.previousKey = oldKey;
2172
2200
  }
2173
2201
  lastRenamedProperty.current.currentKey = actualNewKey;
2202
+ setAdditionalPropertyOrder((order) => order.map((property) => property === oldKey ? actualNewKey : property));
2174
2203
  onChange(renamedObj, childFieldPathId.path);
2175
2204
  }
2176
2205
  },
@@ -2178,6 +2207,7 @@ function ObjectField(props) {
2178
2207
  );
2179
2208
  const handleRemoveProperty = useCallback5(
2180
2209
  (key) => {
2210
+ setAdditionalPropertyOrder((order) => order.filter((property) => property !== key));
2181
2211
  onChange(ADDITIONAL_PROPERTY_KEY_REMOVE, [...childFieldPathId.path, key]);
2182
2212
  },
2183
2213
  [onChange, childFieldPathId]
@@ -2190,8 +2220,11 @@ function ObjectField(props) {
2190
2220
  }, []);
2191
2221
  if (!renderOptionalField || hasFormData) {
2192
2222
  try {
2193
- const properties = Object.keys(schemaProperties);
2194
- orderedProperties = orderProperties(properties, uiOptions.order);
2223
+ const definedPropertySet = new Set(definedPropertyOrder);
2224
+ const currentAdditionalProperties = additionalPropertyOrder.filter(
2225
+ (property) => Object.hasOwn(schemaProperties, property) && !definedPropertySet.has(property)
2226
+ );
2227
+ orderedProperties = orderProperties([...definedPropertyOrder, ...currentAdditionalProperties], uiOptions.order);
2195
2228
  } catch (err) {
2196
2229
  return /* @__PURE__ */ jsxs("div", { children: [
2197
2230
  /* @__PURE__ */ jsx10("p", { className: "rjsf-config-error", style: { color: "red" }, children: /* @__PURE__ */ jsx10(Markdown, { options: { disableParsingRawHTML: true }, children: translateString(TranslatableString5.InvalidObjectField, [name || "root", err.message]) }) }),
@@ -2206,11 +2239,9 @@ function ObjectField(props) {
2206
2239
  title: uiOptions.label === false ? "" : templateTitle,
2207
2240
  description: uiOptions.label === false ? void 0 : description,
2208
2241
  properties: orderedProperties.map((propertyName) => {
2209
- const addedByAdditionalProperties = Boolean(
2210
- schema.properties?.[propertyName]?.[ADDITIONAL_PROPERTY_FLAG]
2211
- );
2242
+ const addedByAdditionalProperties = isAdditionalPropertySchema(schema.properties?.[propertyName]);
2212
2243
  const fieldUiSchema = addedByAdditionalProperties ? uiSchema.additionalProperties : uiSchema[propertyName];
2213
- const hidden = getUiOptions9(fieldUiSchema).widget === "hidden";
2244
+ const hidden = getUiOptions10(fieldUiSchema).widget === "hidden";
2214
2245
  const content = /* @__PURE__ */ jsx10(
2215
2246
  ObjectFieldProperty,
2216
2247
  {
@@ -2262,7 +2293,7 @@ function ObjectField(props) {
2262
2293
  import {
2263
2294
  getSchemaType,
2264
2295
  getTemplate as getTemplate9,
2265
- getUiOptions as getUiOptions10,
2296
+ getUiOptions as getUiOptions11,
2266
2297
  isFormDataAvailable as isFormDataAvailable4,
2267
2298
  optionalControlsId,
2268
2299
  TranslatableString as TranslatableString6
@@ -2281,7 +2312,7 @@ function OptionalDataControlsField(props) {
2281
2312
  registry
2282
2313
  } = props;
2283
2314
  const { globalUiOptions = {}, schemaUtils, translateString } = registry;
2284
- const uiOptions = getUiOptions10(uiSchema, globalUiOptions);
2315
+ const uiOptions = getUiOptions11(uiSchema, globalUiOptions);
2285
2316
  const OptionalDataControlsTemplate2 = getTemplate9(
2286
2317
  "OptionalDataControlsTemplate",
2287
2318
  registry,
@@ -2335,7 +2366,7 @@ import {
2335
2366
  descriptionId,
2336
2367
  getSchemaType as getSchemaType2,
2337
2368
  getTemplate as getTemplate10,
2338
- getUiOptions as getUiOptions11,
2369
+ getUiOptions as getUiOptions12,
2339
2370
  ID_KEY as ID_KEY4,
2340
2371
  isFormDataAvailable as isFormDataAvailable5,
2341
2372
  ONE_OF_KEY as ONE_OF_KEY5,
@@ -2410,7 +2441,7 @@ function SchemaFieldRender(props) {
2410
2441
  return /* @__PURE__ */ jsx12(CyclicSchemaField2, { ...props });
2411
2442
  }
2412
2443
  const uiSchema = resolveUiSchema(_schema, _uiSchema, registry);
2413
- const uiOptions = getUiOptions11(uiSchema, globalUiOptions);
2444
+ const uiOptions = getUiOptions12(uiSchema, globalUiOptions);
2414
2445
  const FieldTemplate2 = getTemplate10("FieldTemplate", registry, uiOptions);
2415
2446
  const DescriptionFieldTemplate = getTemplate10(
2416
2447
  "DescriptionFieldTemplate",
@@ -2595,7 +2626,7 @@ var SchemaField_default = SchemaField;
2595
2626
 
2596
2627
  // src/components/fields/StringField.tsx
2597
2628
  import { useCallback as useCallback7 } from "react";
2598
- import { getWidget as getWidget5, getUiOptions as getUiOptions12, optionsList as optionsList4, hasWidget } from "@rjsf/utils";
2629
+ import { getWidget as getWidget5, getUiOptions as getUiOptions13, optionsList as optionsList5, hasWidget } from "@rjsf/utils";
2599
2630
  import { jsx as jsx13 } from "react/jsx-runtime";
2600
2631
  function StringField(props) {
2601
2632
  const {
@@ -2618,12 +2649,12 @@ function StringField(props) {
2618
2649
  } = props;
2619
2650
  const { title: schemaTitle, format } = schema;
2620
2651
  const { widgets: widgets2, schemaUtils, globalUiOptions } = registry;
2621
- const enumOptions = schemaUtils.isSelect(schema) ? optionsList4(schema, uiSchema) : void 0;
2652
+ const enumOptions = schemaUtils.isSelect(schema) ? optionsList5(schema, uiSchema) : void 0;
2622
2653
  let defaultWidget = enumOptions ? "select" : "text";
2623
2654
  if (format && hasWidget(schema, format, widgets2)) {
2624
2655
  defaultWidget = format;
2625
2656
  }
2626
- const { widget = defaultWidget, placeholder = "", title: uiTitle, ...options } = getUiOptions12(uiSchema);
2657
+ const { widget = defaultWidget, placeholder = "", title: uiTitle, ...options } = getUiOptions13(uiSchema);
2627
2658
  const displayLabel = schemaUtils.getDisplayLabel(schema, uiSchema, globalUiOptions);
2628
2659
  const label = uiTitle ?? title ?? schemaTitle ?? name;
2629
2660
  const Widget = getWidget5(schema, widget, widgets2);
@@ -2683,11 +2714,11 @@ function fields() {
2683
2714
  var fields_default = fields;
2684
2715
 
2685
2716
  // src/components/templates/ArrayFieldDescriptionTemplate.tsx
2686
- import { descriptionId as descriptionId2, getTemplate as getTemplate11, getUiOptions as getUiOptions13 } from "@rjsf/utils";
2717
+ import { descriptionId as descriptionId2, getTemplate as getTemplate11, getUiOptions as getUiOptions14 } from "@rjsf/utils";
2687
2718
  import { jsx as jsx14 } from "react/jsx-runtime";
2688
2719
  function ArrayFieldDescriptionTemplate(props) {
2689
2720
  const { fieldPathId, description, registry, schema, uiSchema } = props;
2690
- const options = getUiOptions13(uiSchema, registry.globalUiOptions);
2721
+ const options = getUiOptions14(uiSchema, registry.globalUiOptions);
2691
2722
  const { label: displayLabel = true } = options;
2692
2723
  if (!description || !displayLabel) {
2693
2724
  return null;
@@ -2778,11 +2809,11 @@ function ArrayFieldItemButtonsTemplate(props) {
2778
2809
  }
2779
2810
 
2780
2811
  // src/components/templates/ArrayFieldItemTemplate.tsx
2781
- import { getTemplate as getTemplate12, getUiOptions as getUiOptions14 } from "@rjsf/utils";
2812
+ import { getTemplate as getTemplate12, getUiOptions as getUiOptions15 } from "@rjsf/utils";
2782
2813
  import { jsx as jsx16, jsxs as jsxs4 } from "react/jsx-runtime";
2783
2814
  function ArrayFieldItemTemplate(props) {
2784
2815
  const { children, className, buttonsProps, displayLabel, hasDescription, hasToolbar, registry, uiSchema } = props;
2785
- const uiOptions = getUiOptions14(uiSchema);
2816
+ const uiOptions = getUiOptions15(uiSchema);
2786
2817
  const ArrayFieldItemButtonsTemplate2 = getTemplate12(
2787
2818
  "ArrayFieldItemButtonsTemplate",
2788
2819
  registry,
@@ -2804,7 +2835,7 @@ function ArrayFieldItemTemplate(props) {
2804
2835
  }
2805
2836
 
2806
2837
  // src/components/templates/ArrayFieldTemplate.tsx
2807
- import { getTemplate as getTemplate13, getUiOptions as getUiOptions15, buttonId as buttonId2 } from "@rjsf/utils";
2838
+ import { getTemplate as getTemplate13, getUiOptions as getUiOptions16, buttonId as buttonId2 } from "@rjsf/utils";
2808
2839
  import { jsx as jsx17, jsxs as jsxs5 } from "react/jsx-runtime";
2809
2840
  function ArrayFieldTemplate(props) {
2810
2841
  const {
@@ -2822,7 +2853,7 @@ function ArrayFieldTemplate(props) {
2822
2853
  schema,
2823
2854
  title
2824
2855
  } = props;
2825
- const uiOptions = getUiOptions15(uiSchema);
2856
+ const uiOptions = getUiOptions16(uiSchema);
2826
2857
  const ArrayFieldDescriptionTemplate2 = getTemplate13(
2827
2858
  "ArrayFieldDescriptionTemplate",
2828
2859
  registry,
@@ -2877,11 +2908,11 @@ function ArrayFieldTemplate(props) {
2877
2908
  }
2878
2909
 
2879
2910
  // src/components/templates/ArrayFieldTitleTemplate.tsx
2880
- import { getTemplate as getTemplate14, getUiOptions as getUiOptions16, titleId as titleId2 } from "@rjsf/utils";
2911
+ import { getTemplate as getTemplate14, getUiOptions as getUiOptions17, titleId as titleId2 } from "@rjsf/utils";
2881
2912
  import { jsx as jsx18 } from "react/jsx-runtime";
2882
2913
  function ArrayFieldTitleTemplate(props) {
2883
2914
  const { fieldPathId, title, schema, uiSchema, required, registry, optionalDataControl } = props;
2884
- const options = getUiOptions16(uiSchema, registry.globalUiOptions);
2915
+ const options = getUiOptions17(uiSchema, registry.globalUiOptions);
2885
2916
  const { label: displayLabel = true } = options;
2886
2917
  if (!title || !displayLabel) {
2887
2918
  return null;
@@ -3159,13 +3190,13 @@ function CyclicSchemaExpandTemplate(props) {
3159
3190
  }
3160
3191
 
3161
3192
  // src/components/RichDescription.tsx
3162
- import { getTestIds as getTestIds2, getUiOptions as getUiOptions17 } from "@rjsf/utils";
3193
+ import { getTestIds as getTestIds2, getUiOptions as getUiOptions18 } from "@rjsf/utils";
3163
3194
  import { Markdown as Markdown2 } from "markdown-to-jsx/react";
3164
3195
  import { jsx as jsx25 } from "react/jsx-runtime";
3165
3196
  var TEST_IDS = getTestIds2();
3166
3197
  function RichDescription({ description, registry, uiSchema = {} }) {
3167
3198
  const { globalUiOptions } = registry;
3168
- const uiOptions = getUiOptions17(uiSchema, globalUiOptions);
3199
+ const uiOptions = getUiOptions18(uiSchema, globalUiOptions);
3169
3200
  if (uiOptions.enableMarkdownInDescription && typeof description === "string") {
3170
3201
  return /* @__PURE__ */ jsx25(Markdown2, { options: { disableParsingRawHTML: true }, "data-testid": TEST_IDS.markdown, children: description });
3171
3202
  }
@@ -3239,7 +3270,7 @@ function FieldErrorTemplate(props) {
3239
3270
  import { helpId } from "@rjsf/utils";
3240
3271
 
3241
3272
  // src/components/RichHelp.tsx
3242
- import { getTestIds as getTestIds3, getUiOptions as getUiOptions18 } from "@rjsf/utils";
3273
+ import { getTestIds as getTestIds3, getUiOptions as getUiOptions19 } from "@rjsf/utils";
3243
3274
  import { Markdown as Markdown3 } from "markdown-to-jsx/react";
3244
3275
  import { jsx as jsx30 } from "react/jsx-runtime";
3245
3276
  var TEST_IDS2 = getTestIds3();
@@ -3249,7 +3280,7 @@ function RichHelp({
3249
3280
  uiSchema = {}
3250
3281
  }) {
3251
3282
  const { globalUiOptions } = registry;
3252
- const uiOptions = getUiOptions18(uiSchema, globalUiOptions);
3283
+ const uiOptions = getUiOptions19(uiSchema, globalUiOptions);
3253
3284
  if (uiOptions.enableMarkdownInHelp && typeof help === "string") {
3254
3285
  return /* @__PURE__ */ jsx30(Markdown3, { options: { disableParsingRawHTML: true }, "data-testid": TEST_IDS2.markdown, children: help });
3255
3286
  }
@@ -3268,7 +3299,7 @@ function FieldHelpTemplate(props) {
3268
3299
  }
3269
3300
 
3270
3301
  // src/components/templates/FieldTemplate/FieldTemplate.tsx
3271
- import { getTemplate as getTemplate16, getUiOptions as getUiOptions19 } from "@rjsf/utils";
3302
+ import { getTemplate as getTemplate16, getUiOptions as getUiOptions20 } from "@rjsf/utils";
3272
3303
 
3273
3304
  // src/components/templates/FieldTemplate/Label.tsx
3274
3305
  import { jsx as jsx32, jsxs as jsxs9 } from "react/jsx-runtime";
@@ -3288,7 +3319,7 @@ function Label(props) {
3288
3319
  import { jsx as jsx33, jsxs as jsxs10 } from "react/jsx-runtime";
3289
3320
  function FieldTemplate(props) {
3290
3321
  const { id, label, children, errors, help, description, hidden, required, displayLabel, registry, uiSchema } = props;
3291
- const uiOptions = getUiOptions19(uiSchema);
3322
+ const uiOptions = getUiOptions20(uiSchema);
3292
3323
  const WrapIfAdditionalTemplate2 = getTemplate16(
3293
3324
  "WrapIfAdditionalTemplate",
3294
3325
  registry,
@@ -3328,7 +3359,7 @@ function MultiSchemaFieldTemplate(props) {
3328
3359
  }
3329
3360
 
3330
3361
  // src/components/templates/ObjectFieldTemplate.tsx
3331
- import { canExpand, descriptionId as descriptionId3, getTemplate as getTemplate17, getUiOptions as getUiOptions20, titleId as titleId3, buttonId as buttonId3 } from "@rjsf/utils";
3362
+ import { canExpand, descriptionId as descriptionId3, getTemplate as getTemplate17, getUiOptions as getUiOptions21, titleId as titleId3, buttonId as buttonId3 } from "@rjsf/utils";
3332
3363
  import { jsx as jsx36, jsxs as jsxs12 } from "react/jsx-runtime";
3333
3364
  function ObjectFieldTemplate(props) {
3334
3365
  const {
@@ -3347,7 +3378,7 @@ function ObjectFieldTemplate(props) {
3347
3378
  title,
3348
3379
  uiSchema
3349
3380
  } = props;
3350
- const options = getUiOptions20(uiSchema);
3381
+ const options = getUiOptions21(uiSchema);
3351
3382
  const TitleFieldTemplate = getTemplate17("TitleFieldTemplate", registry, options);
3352
3383
  const DescriptionFieldTemplate = getTemplate17(
3353
3384
  "DescriptionFieldTemplate",
@@ -3689,7 +3720,7 @@ import {
3689
3720
  getTemplate as getTemplate18,
3690
3721
  labelValue,
3691
3722
  schemaRequiresTrueValue,
3692
- getUiOptions as getUiOptions21
3723
+ getUiOptions as getUiOptions22
3693
3724
  } from "@rjsf/utils";
3694
3725
  import { jsx as jsx44, jsxs as jsxs18 } from "react/jsx-runtime";
3695
3726
  function CheckboxWidget({
@@ -3727,7 +3758,7 @@ function CheckboxWidget({
3727
3758
  (event) => onFocus(id, event.target.checked),
3728
3759
  [onFocus, id]
3729
3760
  );
3730
- const uiOptions = getUiOptions21(uiSchema);
3761
+ const uiOptions = getUiOptions22(uiSchema);
3731
3762
  const isCheckboxWidget = uiOptions.widget === "checkbox";
3732
3763
  const description = isCheckboxWidget ? void 0 : options.description ?? schema.description;
3733
3764
  return /* @__PURE__ */ jsxs18("div", { className: `checkbox ${disabled || readonly ? "disabled" : ""}`, children: [
@@ -4663,7 +4694,7 @@ var Form = class _Form extends Component {
4663
4694
  /** Renders any errors contained in the `state` in using the `ErrorList`, if not disabled by `showErrorList`. */
4664
4695
  renderErrors(registry) {
4665
4696
  const { errors, errorSchema, schema, uiSchema } = this.state;
4666
- const options = getUiOptions22(uiSchema);
4697
+ const options = getUiOptions23(uiSchema);
4667
4698
  const ErrorListTemplate = getTemplate29("ErrorListTemplate", registry, options);
4668
4699
  if (errors?.length) {
4669
4700
  return /* @__PURE__ */ jsx61(
@@ -5227,7 +5258,7 @@ var Form = class _Form extends Component {
5227
5258
  const { SubmitButton: SubmitButton2 } = registry.templates.ButtonTemplates;
5228
5259
  const as = _internalFormWrapper ? tagName : void 0;
5229
5260
  const FormTag = _internalFormWrapper || tagName || "form";
5230
- let { [SUBMIT_BTN_OPTIONS_KEY]: submitOptions = {} } = getUiOptions22(uiSchema);
5261
+ let { [SUBMIT_BTN_OPTIONS_KEY]: submitOptions = {} } = getUiOptions23(uiSchema);
5231
5262
  if (disabled) {
5232
5263
  submitOptions = { ...submitOptions, props: { ...submitOptions.props, disabled: true } };
5233
5264
  }