@rjsf/daisyui 6.0.0-beta.19 → 6.0.0-beta.20

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 (27) hide show
  1. package/dist/chakra-ui.esm.js +17 -16
  2. package/dist/chakra-ui.esm.js.map +2 -2
  3. package/dist/chakra-ui.umd.js +17 -16
  4. package/dist/index.cjs +17 -16
  5. package/dist/index.cjs.map +2 -2
  6. package/lib/templates/ArrayFieldItemButtonsTemplate/ArrayFieldItemButtonsTemplate.js +2 -2
  7. package/lib/templates/ArrayFieldItemButtonsTemplate/ArrayFieldItemButtonsTemplate.js.map +1 -1
  8. package/lib/templates/ArrayFieldTemplate/ArrayFieldTemplate.js +3 -3
  9. package/lib/templates/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
  10. package/lib/templates/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
  11. package/lib/templates/FieldTemplate/FieldTemplate.js +1 -1
  12. package/lib/templates/FieldTemplate/FieldTemplate.js.map +1 -1
  13. package/lib/templates/ObjectFieldTemplate/ObjectFieldTemplate.js +3 -3
  14. package/lib/templates/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
  15. package/lib/templates/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
  16. package/lib/tsconfig.tsbuildinfo +1 -1
  17. package/lib/widgets/AltDateWidget/AltDateWidget.js.map +1 -1
  18. package/lib/widgets/CheckboxWidget/CheckboxWidget.js.map +1 -1
  19. package/package.json +9 -9
  20. package/src/templates/ArrayFieldItemButtonsTemplate/ArrayFieldItemButtonsTemplate.tsx +5 -5
  21. package/src/templates/ArrayFieldTemplate/ArrayFieldTemplate.tsx +4 -4
  22. package/src/templates/BaseInputTemplate/BaseInputTemplate.tsx +3 -3
  23. package/src/templates/FieldTemplate/FieldTemplate.tsx +1 -0
  24. package/src/templates/ObjectFieldTemplate/ObjectFieldTemplate.tsx +7 -7
  25. package/src/templates/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +1 -1
  26. package/src/widgets/AltDateWidget/AltDateWidget.tsx +1 -1
  27. package/src/widgets/CheckboxWidget/CheckboxWidget.tsx +1 -1
@@ -18,7 +18,7 @@ function ArrayFieldItemButtonsTemplate(props) {
18
18
  hasMoveDown,
19
19
  hasMoveUp,
20
20
  hasRemove,
21
- idSchema,
21
+ fieldPathId,
22
22
  index,
23
23
  onCopyIndexClick,
24
24
  onDropIndexClick,
@@ -40,7 +40,7 @@ function ArrayFieldItemButtonsTemplate(props) {
40
40
  /* @__PURE__ */ jsx(
41
41
  MoveUpButton2,
42
42
  {
43
- id: buttonId(idSchema, "moveUp"),
43
+ id: buttonId(fieldPathId, "moveUp"),
44
44
  className: `rjsf-array-item-move-up ${btnClass}`,
45
45
  disabled: disabled || readonly || !hasMoveUp,
46
46
  onClick: onArrowUpClick,
@@ -51,7 +51,7 @@ function ArrayFieldItemButtonsTemplate(props) {
51
51
  /* @__PURE__ */ jsx(
52
52
  MoveDownButton2,
53
53
  {
54
- id: buttonId(idSchema, "moveDown"),
54
+ id: buttonId(fieldPathId, "moveDown"),
55
55
  className: `rjsf-array-item-move-down ${btnClass}`,
56
56
  disabled: disabled || readonly || !hasMoveDown,
57
57
  onClick: onArrowDownClick,
@@ -63,7 +63,7 @@ function ArrayFieldItemButtonsTemplate(props) {
63
63
  hasCopy && /* @__PURE__ */ jsx(
64
64
  CopyButton2,
65
65
  {
66
- id: buttonId(idSchema, "copy"),
66
+ id: buttonId(fieldPathId, "copy"),
67
67
  className: `rjsf-array-item-copy ${btnClass}`,
68
68
  disabled: disabled || readonly,
69
69
  onClick: onCopyClick,
@@ -74,7 +74,7 @@ function ArrayFieldItemButtonsTemplate(props) {
74
74
  hasRemove && /* @__PURE__ */ jsx(
75
75
  RemoveButton2,
76
76
  {
77
- id: buttonId(idSchema, "remove"),
77
+ id: buttonId(fieldPathId, "remove"),
78
78
  className: `rjsf-array-item-remove ${removeBtnClass}`,
79
79
  disabled: disabled || readonly,
80
80
  onClick: onRemoveClick,
@@ -125,7 +125,7 @@ function ArrayFieldTemplate(props) {
125
125
  canAdd,
126
126
  className,
127
127
  disabled,
128
- idSchema,
128
+ fieldPathId,
129
129
  items,
130
130
  onAddClick,
131
131
  readonly,
@@ -166,7 +166,7 @@ function ArrayFieldTemplate(props) {
166
166
  /* @__PURE__ */ jsx3(
167
167
  ArrayFieldTitleTemplate,
168
168
  {
169
- idSchema,
169
+ fieldPathId,
170
170
  title: uiOptions.title || title,
171
171
  schema,
172
172
  uiSchema,
@@ -177,7 +177,7 @@ function ArrayFieldTemplate(props) {
177
177
  /* @__PURE__ */ jsx3(
178
178
  ArrayFieldDescriptionTemplate,
179
179
  {
180
- idSchema,
180
+ fieldPathId,
181
181
  description: uiOptions.description || schema.description,
182
182
  schema,
183
183
  uiSchema,
@@ -192,7 +192,7 @@ function ArrayFieldTemplate(props) {
192
192
  canAdd && /* @__PURE__ */ jsx3("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx3(
193
193
  AddButton2,
194
194
  {
195
- id: buttonId2(idSchema, "add"),
195
+ id: buttonId2(fieldPathId, "add"),
196
196
  className: "rjsf-array-item-add btn btn-primary btn-sm",
197
197
  onClick: handleAddClick,
198
198
  disabled: disabled || readonly,
@@ -436,6 +436,7 @@ function FieldTemplate(props) {
436
436
  displayLabel,
437
437
  classNames,
438
438
  // Destructure props we don't want to pass to div
439
+ description,
439
440
  onKeyChange,
440
441
  onDropPropertyClick,
441
442
  uiSchema,
@@ -523,7 +524,7 @@ function ObjectFieldTemplate(props) {
523
524
  disabled,
524
525
  readonly,
525
526
  uiSchema,
526
- idSchema,
527
+ fieldPathId,
527
528
  schema,
528
529
  formData,
529
530
  onAddClick,
@@ -539,12 +540,12 @@ function ObjectFieldTemplate(props) {
539
540
  const {
540
541
  ButtonTemplates: { AddButton: AddButton2 }
541
542
  } = registry.templates;
542
- const isRoot = idSchema.$id === "root";
543
+ const isRoot = fieldPathId.$id === "root";
543
544
  return /* @__PURE__ */ jsxs7("div", { className: `form-control ${isRoot ? "bg-base-100 p-6 rounded-xl shadow-lg" : ""}`, children: [
544
545
  title && /* @__PURE__ */ jsx16(
545
546
  TitleFieldTemplate,
546
547
  {
547
- id: titleId(idSchema),
548
+ id: titleId(fieldPathId),
548
549
  title,
549
550
  required,
550
551
  schema,
@@ -555,7 +556,7 @@ function ObjectFieldTemplate(props) {
555
556
  description && /* @__PURE__ */ jsx16(
556
557
  DescriptionFieldTemplate,
557
558
  {
558
- id: descriptionId(idSchema),
559
+ id: descriptionId(fieldPathId),
559
560
  description,
560
561
  schema,
561
562
  uiSchema,
@@ -567,16 +568,16 @@ function ObjectFieldTemplate(props) {
567
568
  (element, index) => element.hidden ? element.content : /* @__PURE__ */ jsx16(
568
569
  "div",
569
570
  {
570
- className: idSchema.$id === "root" && element.name === "tasks" ? "mt-2" : "",
571
+ className: fieldPathId.$id === "root" && element.name === "tasks" ? "mt-2" : "",
571
572
  children: element.content
572
573
  },
573
- `${idSchema.$id}-${element.name}-${index}`
574
+ `${fieldPathId.$id}-${element.name}-${index}`
574
575
  )
575
576
  ),
576
577
  canExpand(schema, uiSchema, formData) && /* @__PURE__ */ jsx16("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx16(
577
578
  AddButton2,
578
579
  {
579
- id: buttonId3(idSchema, "add"),
580
+ id: buttonId3(fieldPathId, "add"),
580
581
  className: "rjsf-object-property-expand btn btn-primary btn-sm",
581
582
  onClick: onAddClick(schema),
582
583
  disabled: disabled || readonly,