@rjsf/daisyui 6.2.4 → 6.3.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.
- package/dist/chakra-ui.esm.js +2 -3
- package/dist/chakra-ui.esm.js.map +2 -2
- package/dist/chakra-ui.umd.js +1 -3
- package/dist/index.cjs +12 -13
- package/dist/index.cjs.map +3 -3
- package/lib/templates/BaseInputTemplate/BaseInputTemplate.js +2 -5
- package/lib/templates/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
- package/lib/templates/ButtonTemplates/DaisyUIButton.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/src/templates/BaseInputTemplate/BaseInputTemplate.tsx +2 -9
- package/src/templates/ButtonTemplates/DaisyUIButton.tsx +5 -2
package/dist/chakra-ui.umd.js
CHANGED
|
@@ -259,9 +259,7 @@
|
|
|
259
259
|
options.allowClearTextInputs && !readonly && !disabled && value && /* @__PURE__ */ jsxRuntime.jsx(ClearButton2, { registry, onClick: _onClear })
|
|
260
260
|
] })
|
|
261
261
|
] }),
|
|
262
|
-
|
|
263
|
-
return /* @__PURE__ */ jsxRuntime.jsx("option", { value: example }, example);
|
|
264
|
-
}) })
|
|
262
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.SchemaExamples, { id, schema })
|
|
265
263
|
] });
|
|
266
264
|
}
|
|
267
265
|
function DaisyUIButton(props) {
|
package/dist/index.cjs
CHANGED
|
@@ -31,11 +31,11 @@ __export(index_exports, {
|
|
|
31
31
|
useTheme: () => useTheme
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(index_exports);
|
|
34
|
-
var
|
|
34
|
+
var import_core6 = require("@rjsf/core");
|
|
35
35
|
|
|
36
36
|
// src/theme/Theme.tsx
|
|
37
37
|
var import_react15 = require("react");
|
|
38
|
-
var
|
|
38
|
+
var import_core4 = require("@rjsf/core");
|
|
39
39
|
|
|
40
40
|
// src/templates/ArrayFieldItemButtonsTemplate/ArrayFieldItemButtonsTemplate.tsx
|
|
41
41
|
var import_utils = require("@rjsf/utils");
|
|
@@ -229,6 +229,7 @@ function ArrayFieldTemplate(props) {
|
|
|
229
229
|
// src/templates/BaseInputTemplate/BaseInputTemplate.tsx
|
|
230
230
|
var import_react2 = require("react");
|
|
231
231
|
var import_utils4 = require("@rjsf/utils");
|
|
232
|
+
var import_core = require("@rjsf/core");
|
|
232
233
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
233
234
|
function BaseInputTemplate(props) {
|
|
234
235
|
const {
|
|
@@ -308,9 +309,7 @@ function BaseInputTemplate(props) {
|
|
|
308
309
|
options.allowClearTextInputs && !readonly && !disabled && value && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ClearButton2, { registry, onClick: _onClear })
|
|
309
310
|
] })
|
|
310
311
|
] }),
|
|
311
|
-
|
|
312
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("option", { value: example }, example);
|
|
313
|
-
}) })
|
|
312
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_core.SchemaExamples, { id, schema })
|
|
314
313
|
] });
|
|
315
314
|
}
|
|
316
315
|
|
|
@@ -441,14 +440,14 @@ function ClearButton(props) {
|
|
|
441
440
|
}
|
|
442
441
|
|
|
443
442
|
// src/templates/DescriptionField/DescriptionField.tsx
|
|
444
|
-
var
|
|
443
|
+
var import_core2 = require("@rjsf/core");
|
|
445
444
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
446
445
|
function DescriptionField(props) {
|
|
447
446
|
const { id, description, registry, uiSchema } = props;
|
|
448
447
|
if (!description) {
|
|
449
448
|
return null;
|
|
450
449
|
}
|
|
451
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { id, className: "description-field my-4", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "text-sm text-base-content/80", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { id, className: "description-field my-4", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "text-sm text-base-content/80", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core2.RichDescription, { description, registry, uiSchema }) }) });
|
|
452
451
|
}
|
|
453
452
|
|
|
454
453
|
// src/templates/ErrorList/ErrorList.tsx
|
|
@@ -467,14 +466,14 @@ function FieldErrorTemplate(props) {
|
|
|
467
466
|
|
|
468
467
|
// src/templates/FieldHelpTemplate/FieldHelpTemplate.tsx
|
|
469
468
|
var import_utils8 = require("@rjsf/utils");
|
|
470
|
-
var
|
|
469
|
+
var import_core3 = require("@rjsf/core");
|
|
471
470
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
472
471
|
function FieldHelpTemplate(props) {
|
|
473
472
|
const { help, uiSchema, registry, fieldPathId } = props;
|
|
474
473
|
if (!help) {
|
|
475
474
|
return null;
|
|
476
475
|
}
|
|
477
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { id: (0, import_utils8.helpId)(fieldPathId), className: "rjsf-field-help-template text-gray-500 text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { id: (0, import_utils8.helpId)(fieldPathId), className: "rjsf-field-help-template text-gray-500 text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_core3.RichHelp, { help, registry, uiSchema }) });
|
|
478
477
|
}
|
|
479
478
|
|
|
480
479
|
// src/templates/FieldTemplate/FieldTemplate.tsx
|
|
@@ -2027,7 +2026,7 @@ var Widgets_default = generateWidgets;
|
|
|
2027
2026
|
// src/theme/Theme.tsx
|
|
2028
2027
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2029
2028
|
function generateTheme() {
|
|
2030
|
-
const { fields } = (0,
|
|
2029
|
+
const { fields } = (0, import_core4.getDefaultRegistry)();
|
|
2031
2030
|
const generatedWidgets = generateWidgets();
|
|
2032
2031
|
const templates = generateTemplates();
|
|
2033
2032
|
return {
|
|
@@ -2066,8 +2065,8 @@ function ThemeProvider({ children }) {
|
|
|
2066
2065
|
var useTheme = () => (0, import_react15.useContext)(ThemeContext);
|
|
2067
2066
|
|
|
2068
2067
|
// src/DaisyUIForm.tsx
|
|
2069
|
-
var
|
|
2070
|
-
var DaisyUIForm = (0,
|
|
2068
|
+
var import_core5 = require("@rjsf/core");
|
|
2069
|
+
var DaisyUIForm = (0, import_core5.withTheme)(Theme_default);
|
|
2071
2070
|
var DaisyUIForm_default = DaisyUIForm;
|
|
2072
2071
|
|
|
2073
2072
|
// src/DaisyUIFrameProvider.tsx
|
|
@@ -2130,5 +2129,5 @@ var __createDaisyUIFrameProvider = (props) => {
|
|
|
2130
2129
|
};
|
|
2131
2130
|
|
|
2132
2131
|
// src/index.ts
|
|
2133
|
-
var index_default = (0,
|
|
2132
|
+
var index_default = (0, import_core6.withTheme)(Theme_default);
|
|
2134
2133
|
//# sourceMappingURL=index.cjs.map
|