@rjsf/daisyui 6.2.5 → 6.3.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.
@@ -211,6 +211,7 @@ import {
211
211
  ariaDescribedByIds,
212
212
  examplesId
213
213
  } from "@rjsf/utils";
214
+ import { SchemaExamples } from "@rjsf/core";
214
215
  import { Fragment as Fragment2, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
215
216
  function BaseInputTemplate(props) {
216
217
  const {
@@ -290,9 +291,7 @@ function BaseInputTemplate(props) {
290
291
  options.allowClearTextInputs && !readonly && !disabled && value && /* @__PURE__ */ jsx4(ClearButton2, { registry, onClick: _onClear })
291
292
  ] })
292
293
  ] }),
293
- Array.isArray(schema.examples) && /* @__PURE__ */ jsx4("datalist", { id: examplesId(id), children: schema.examples.concat(schema.default && !schema.examples.includes(schema.default) ? [schema.default] : []).map((example) => {
294
- return /* @__PURE__ */ jsx4("option", { value: example }, example);
295
- }) })
294
+ /* @__PURE__ */ jsx4(SchemaExamples, { id, schema })
296
295
  ] });
297
296
  }
298
297