@pixpilot/formily-shadcn 0.23.0 → 0.24.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.
Files changed (54) hide show
  1. package/dist/components/array-base/components/array-item-label.cjs +13 -4
  2. package/dist/components/array-base/components/array-item-label.d.cts +1 -0
  3. package/dist/components/array-base/components/array-item-label.d.ts +1 -0
  4. package/dist/components/array-base/components/array-item-label.js +11 -4
  5. package/dist/components/array-base/components/use-array-components-registry.d.cts +1 -0
  6. package/dist/components/array-base/components/use-array-components-registry.d.ts +1 -0
  7. package/dist/components/array-cards/item.cjs +4 -8
  8. package/dist/components/array-cards/item.js +5 -9
  9. package/dist/components/array-collapse/item.cjs +10 -5
  10. package/dist/components/array-collapse/item.js +10 -5
  11. package/dist/components/array-common/list-item.cjs +9 -3
  12. package/dist/components/array-common/list-item.js +10 -4
  13. package/dist/components/array-dialog/edit-dialog.cjs +1 -3
  14. package/dist/components/array-dialog/edit-dialog.js +2 -4
  15. package/dist/components/array-popover/popover.cjs +1 -3
  16. package/dist/components/array-popover/popover.js +2 -4
  17. package/dist/components/checkbox.d.ts +2 -2
  18. package/dist/components/column.d.ts +2 -2
  19. package/dist/components/date-picker.d.ts +3 -3
  20. package/dist/components/file-upload/file-upload-inline.d.cts +8 -8
  21. package/dist/components/file-upload/file-upload-inline.d.ts +8 -8
  22. package/dist/components/file-upload/file-upload.d.cts +8 -8
  23. package/dist/components/file-upload/file-upload.d.ts +8 -8
  24. package/dist/components/form-grid.d.cts +2 -2
  25. package/dist/components/form-grid.d.ts +2 -2
  26. package/dist/components/form.d.cts +2 -2
  27. package/dist/components/form.d.ts +2 -2
  28. package/dist/components/icon-picker.d.cts +3 -3
  29. package/dist/components/icon-picker.d.ts +3 -3
  30. package/dist/components/input.d.cts +3 -3
  31. package/dist/components/input.d.ts +3 -3
  32. package/dist/components/number/number-input.d.cts +3 -3
  33. package/dist/components/number/number-input.d.ts +3 -3
  34. package/dist/components/radio.d.ts +2 -2
  35. package/dist/components/row.d.ts +2 -2
  36. package/dist/components/schema-field/schema-field-basics.d.cts +233 -233
  37. package/dist/components/schema-field/schema-field-basics.d.ts +248 -248
  38. package/dist/components/schema-field/schema-field-extended.d.cts +544 -544
  39. package/dist/components/schema-field/schema-field-extended.d.ts +530 -530
  40. package/dist/components/schema-field/schema-field.d.cts +324 -324
  41. package/dist/components/schema-field/schema-field.d.ts +325 -325
  42. package/dist/components/separator.d.ts +2 -2
  43. package/dist/components/slider/slider-input.d.cts +3 -3
  44. package/dist/components/slider/slider-input.d.ts +3 -3
  45. package/dist/components/slider/slider-select.d.cts +3 -3
  46. package/dist/components/slider/slider-select.d.ts +3 -3
  47. package/dist/components/slider/slider.d.cts +3 -3
  48. package/dist/components/slider/slider.d.ts +3 -3
  49. package/dist/components/switch.d.cts +2 -2
  50. package/dist/components/switch.d.ts +2 -2
  51. package/dist/components/tags-input-inline.d.cts +2 -2
  52. package/dist/components/tags-input-inline.d.ts +2 -2
  53. package/dist/components/textarea.d.ts +2 -2
  54. package/package.json +4 -4
@@ -2,18 +2,27 @@ const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs
2
2
  const require_array_context = require('../array-context.cjs');
3
3
  const require_use_label = require('../../../hooks/use-label.cjs');
4
4
  require('../../../hooks/index.cjs');
5
+ let __formily_react = require("@formily/react");
6
+ __formily_react = require_rolldown_runtime.__toESM(__formily_react);
7
+ let react = require("react");
8
+ react = require_rolldown_runtime.__toESM(react);
5
9
  let react_jsx_runtime = require("react/jsx-runtime");
6
10
  react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
7
11
 
8
12
  //#region src/components/array-base/components/array-item-label.tsx
9
- const ArrayItemLabel = () => {
13
+ const ArrayItemLabel = (0, __formily_react.observer)(() => {
10
14
  const index = require_array_context.useIndex();
11
15
  const label = require_use_label.useLabel();
16
+ const field = (0, __formily_react.useField)();
17
+ const itemField = field.query(`${field.address.toString()}.${index}`).take();
18
+ const displayLabel = itemField?.title ?? label;
19
+ const indexSuffix = itemField?.title == null && (typeof displayLabel === "string" || displayLabel == null) ? ` ${(index ?? 0) + 1}` : "";
12
20
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
13
- className: "font-medium",
14
- children: [label, typeof label === "string" || label == null ? ` ${(index ?? 0) + 1}` : ""]
21
+ className: "truncate font-medium",
22
+ title: `${displayLabel}${indexSuffix}`,
23
+ children: [displayLabel, indexSuffix]
15
24
  });
16
- };
25
+ });
17
26
 
18
27
  //#endregion
19
28
  exports.ArrayItemLabel = ArrayItemLabel;
@@ -0,0 +1 @@
1
+ import React from "react";
@@ -0,0 +1 @@
1
+ import React from "react";
@@ -1,17 +1,24 @@
1
1
  import { useIndex } from "../array-context.js";
2
2
  import { useLabel } from "../../../hooks/use-label.js";
3
3
  import "../../../hooks/index.js";
4
+ import { observer, useField } from "@formily/react";
5
+ import React from "react";
4
6
  import { jsxs } from "react/jsx-runtime";
5
7
 
6
8
  //#region src/components/array-base/components/array-item-label.tsx
7
- const ArrayItemLabel = () => {
9
+ const ArrayItemLabel = observer(() => {
8
10
  const index = useIndex();
9
11
  const label = useLabel();
12
+ const field = useField();
13
+ const itemField = field.query(`${field.address.toString()}.${index}`).take();
14
+ const displayLabel = itemField?.title ?? label;
15
+ const indexSuffix = itemField?.title == null && (typeof displayLabel === "string" || displayLabel == null) ? ` ${(index ?? 0) + 1}` : "";
10
16
  return /* @__PURE__ */ jsxs("span", {
11
- className: "font-medium",
12
- children: [label, typeof label === "string" || label == null ? ` ${(index ?? 0) + 1}` : ""]
17
+ className: "truncate font-medium",
18
+ title: `${displayLabel}${indexSuffix}`,
19
+ children: [displayLabel, indexSuffix]
13
20
  });
14
- };
21
+ });
15
22
 
16
23
  //#endregion
17
24
  export { ArrayItemLabel };
@@ -1,5 +1,6 @@
1
1
  import "./addition.cjs";
2
2
  import "./empty.cjs";
3
3
  import "./types.cjs";
4
+ import "./array-item-label.cjs";
4
5
  import { Schema } from "@formily/react";
5
6
  import React from "react";
@@ -1,5 +1,6 @@
1
1
  import "./addition.js";
2
2
  import "./empty.js";
3
3
  import "./types.js";
4
+ import "./array-item-label.js";
4
5
  import { Schema } from "@formily/react";
5
6
  import React from "react";
@@ -16,12 +16,10 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
16
16
 
17
17
  //#region src/components/array-cards/item.tsx
18
18
  const ArrayItem = react.default.memo(({ index, record }) => {
19
- const field = (0, __formily_react.useField)();
20
19
  const schema = (0, __formily_react.useFieldSchema)();
21
20
  const Components = require_component_context.useArrayComponents();
22
21
  const items = schema?.items;
23
22
  const { className: itemWrapperClassName,...itemWrapperRestProps } = require_get_x_component_props.getXComponentProps(items);
24
- const fieldAddress = field.address.concat(index).toString();
25
23
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_array_base.ArrayBase.Item, {
26
24
  index,
27
25
  record: record ?? {},
@@ -30,12 +28,12 @@ const ArrayItem = react.default.memo(({ index, record }) => {
30
28
  className: (0, __pixpilot_shadcn_ui.cn)("border rounded-lg p-4 space-y-2", itemWrapperClassName),
31
29
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
32
30
  className: "flex",
33
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
31
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
34
32
  className: "flex-1",
35
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Components.ItemLabel, {
33
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Components.ItemLabel, {
36
34
  index,
37
35
  schema: schema.items
38
- }), " "]
36
+ })
39
37
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Components.OperationComponents, {
40
38
  index,
41
39
  schema: schema.items
@@ -43,14 +41,12 @@ const ArrayItem = react.default.memo(({ index, record }) => {
43
41
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
44
42
  className: "space-y-4",
45
43
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__formily_react.RecursionField, {
46
- basePath: fieldAddress,
47
44
  schema: items,
48
45
  name: index,
49
46
  filterProperties: (s) => {
50
47
  if (require_is_array_component.isOperationComponent(s)) return false;
51
48
  return true;
52
- },
53
- onlyRenderProperties: true
49
+ }
54
50
  })
55
51
  })]
56
52
  })
@@ -4,19 +4,17 @@ import { ArrayBase } from "../array-base/array-base.js";
4
4
  import { isOperationComponent } from "../array-base/utils/is-array-component.js";
5
5
  import { useArrayComponents } from "../array-base/component-context.js";
6
6
  import "../array-base/index.js";
7
- import { RecursionField, useField, useFieldSchema } from "@formily/react";
7
+ import { RecursionField, useFieldSchema } from "@formily/react";
8
8
  import React from "react";
9
9
  import { cn } from "@pixpilot/shadcn-ui";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
11
 
12
12
  //#region src/components/array-cards/item.tsx
13
13
  const ArrayItem = React.memo(({ index, record }) => {
14
- const field = useField();
15
14
  const schema = useFieldSchema();
16
15
  const Components = useArrayComponents();
17
16
  const items = schema?.items;
18
17
  const { className: itemWrapperClassName,...itemWrapperRestProps } = getXComponentProps(items);
19
- const fieldAddress = field.address.concat(index).toString();
20
18
  return /* @__PURE__ */ jsx(ArrayBase.Item, {
21
19
  index,
22
20
  record: record ?? {},
@@ -25,12 +23,12 @@ const ArrayItem = React.memo(({ index, record }) => {
25
23
  className: cn("border rounded-lg p-4 space-y-2", itemWrapperClassName),
26
24
  children: [/* @__PURE__ */ jsxs("div", {
27
25
  className: "flex",
28
- children: [/* @__PURE__ */ jsxs("div", {
26
+ children: [/* @__PURE__ */ jsx("div", {
29
27
  className: "flex-1",
30
- children: [/* @__PURE__ */ jsx(Components.ItemLabel, {
28
+ children: /* @__PURE__ */ jsx(Components.ItemLabel, {
31
29
  index,
32
30
  schema: schema.items
33
- }), " "]
31
+ })
34
32
  }), /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Components.OperationComponents, {
35
33
  index,
36
34
  schema: schema.items
@@ -38,14 +36,12 @@ const ArrayItem = React.memo(({ index, record }) => {
38
36
  }), /* @__PURE__ */ jsx("div", {
39
37
  className: "space-y-4",
40
38
  children: /* @__PURE__ */ jsx(RecursionField, {
41
- basePath: fieldAddress,
42
39
  schema: items,
43
40
  name: index,
44
41
  filterProperties: (s) => {
45
42
  if (isOperationComponent(s)) return false;
46
43
  return true;
47
- },
48
- onlyRenderProperties: true
44
+ }
49
45
  })
50
46
  })]
51
47
  })
@@ -34,10 +34,16 @@ const ArrayCollapseItem = react.default.memo((props) => {
34
34
  itemId,
35
35
  formCollapse
36
36
  ]);
37
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_array_base.ArrayBase.Item, {
37
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_array_base.ArrayBase.Item, {
38
38
  index,
39
39
  record: () => field.value?.[index],
40
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_item_wrapper.ItemWrapper, {
40
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
41
+ style: { display: "none" },
42
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__formily_react.RecursionField, {
43
+ schema: items,
44
+ name: index
45
+ })
46
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_item_wrapper.ItemWrapper, {
41
47
  ...itemWrapperProps,
42
48
  index,
43
49
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -71,13 +77,12 @@ const ArrayCollapseItem = react.default.memo((props) => {
71
77
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
72
78
  className: "space-y-4 pt-4",
73
79
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__formily_react.RecursionField, {
74
- basePath: field.address.concat(index),
75
80
  schema: items,
76
- onlyRenderProperties: true
81
+ name: index
77
82
  })
78
83
  })
79
84
  })]
80
- })
85
+ })]
81
86
  }, index);
82
87
  });
83
88
 
@@ -28,10 +28,16 @@ const ArrayCollapseItem = React.memo((props) => {
28
28
  itemId,
29
29
  formCollapse
30
30
  ]);
31
- return /* @__PURE__ */ jsx(ArrayBase.Item, {
31
+ return /* @__PURE__ */ jsxs(ArrayBase.Item, {
32
32
  index,
33
33
  record: () => field.value?.[index],
34
- children: /* @__PURE__ */ jsxs(ItemWrapper, {
34
+ children: [/* @__PURE__ */ jsx("div", {
35
+ style: { display: "none" },
36
+ children: /* @__PURE__ */ jsx(RecursionField, {
37
+ schema: items,
38
+ name: index
39
+ })
40
+ }), /* @__PURE__ */ jsxs(ItemWrapper, {
35
41
  ...itemWrapperProps,
36
42
  index,
37
43
  children: [/* @__PURE__ */ jsxs("div", {
@@ -65,13 +71,12 @@ const ArrayCollapseItem = React.memo((props) => {
65
71
  children: /* @__PURE__ */ jsx("div", {
66
72
  className: "space-y-4 pt-4",
67
73
  children: /* @__PURE__ */ jsx(RecursionField, {
68
- basePath: field.address.concat(index),
69
74
  schema: items,
70
- onlyRenderProperties: true
75
+ name: index
71
76
  })
72
77
  })
73
78
  })]
74
- })
79
+ })]
75
80
  }, index);
76
81
  });
77
82
 
@@ -21,10 +21,16 @@ const ListItem = react.default.memo(({ itemKey, index, record, isNew }) => {
21
21
  const schema = (0, __formily_react.useFieldSchema)();
22
22
  const { OperationComponents, ItemLabel } = require_component_context.useArrayComponents();
23
23
  const isNewItem = isNew;
24
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_array_base.ArrayBase.Item, {
24
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_array_base.ArrayBase.Item, {
25
25
  index,
26
26
  record,
27
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_item_wrapper.ItemWrapper, {
27
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
28
+ style: { display: "none" },
29
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__formily_react.RecursionField, {
30
+ schema: schema.items,
31
+ name: index
32
+ })
33
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_item_wrapper.ItemWrapper, {
28
34
  className: (0, __pixpilot_shadcn.cn)("flex px-3 pl-4 py-2", isNewItem && "hidden"),
29
35
  index,
30
36
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -40,7 +46,7 @@ const ListItem = react.default.memo(({ itemKey, index, record, isNew }) => {
40
46
  index
41
47
  })
42
48
  })]
43
- })
49
+ })]
44
50
  }, itemKey);
45
51
  });
46
52
  ListItem.displayName = "ListItem";
@@ -2,7 +2,7 @@ import { ArrayBase } from "../array-base/array-base.js";
2
2
  import { useArrayComponents } from "../array-base/component-context.js";
3
3
  import "../array-base/index.js";
4
4
  import { ItemWrapper } from "./item-wrapper.js";
5
- import { useFieldSchema } from "@formily/react";
5
+ import { RecursionField, useFieldSchema } from "@formily/react";
6
6
  import React from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { cn } from "@pixpilot/shadcn";
@@ -16,10 +16,16 @@ const ListItem = React.memo(({ itemKey, index, record, isNew }) => {
16
16
  const schema = useFieldSchema();
17
17
  const { OperationComponents, ItemLabel } = useArrayComponents();
18
18
  const isNewItem = isNew;
19
- return /* @__PURE__ */ jsx(ArrayBase.Item, {
19
+ return /* @__PURE__ */ jsxs(ArrayBase.Item, {
20
20
  index,
21
21
  record,
22
- children: /* @__PURE__ */ jsxs(ItemWrapper, {
22
+ children: [/* @__PURE__ */ jsx("div", {
23
+ style: { display: "none" },
24
+ children: /* @__PURE__ */ jsx(RecursionField, {
25
+ schema: schema.items,
26
+ name: index
27
+ })
28
+ }), /* @__PURE__ */ jsxs(ItemWrapper, {
23
29
  className: cn("flex px-3 pl-4 py-2", isNewItem && "hidden"),
24
30
  index,
25
31
  children: [/* @__PURE__ */ jsx("div", {
@@ -35,7 +41,7 @@ const ListItem = React.memo(({ itemKey, index, record, isNew }) => {
35
41
  index
36
42
  })
37
43
  })]
38
- })
44
+ })]
39
45
  }, itemKey);
40
46
  });
41
47
  ListItem.displayName = "ListItem";
@@ -15,7 +15,6 @@ __pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
15
15
  * RecursionField inherits component registry from parent SchemaField context (preserved through Radix Portal)
16
16
  */
17
17
  const EditDialog = (0, __formily_react.observer)(({ schema, onSave, onCancel, activeItemManager }) => {
18
- const arrayField = (0, __formily_react.useField)();
19
18
  const itemIndex = activeItemManager.activeItem;
20
19
  const { isNew } = activeItemManager;
21
20
  const open = itemIndex !== void 0;
@@ -41,9 +40,8 @@ const EditDialog = (0, __formily_react.observer)(({ schema, onSave, onCancel, ac
41
40
  ...itemWrapperRestProps,
42
41
  className: (0, __pixpilot_shadcn.cn)("grid gap-4 py-4", itemWrapperClassName),
43
42
  children: itemIndex != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__formily_react.RecursionField, {
44
- basePath: arrayField.address.concat(itemIndex),
45
43
  schema,
46
- onlyRenderProperties: true
44
+ name: itemIndex
47
45
  })
48
46
  }),
49
47
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.DialogFooter, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.Button, {
@@ -1,6 +1,6 @@
1
1
  import { getXComponentProps } from "../../utils/get-x-component-props.js";
2
2
  import "../../utils/index.js";
3
- import { RecursionField, observer, useField } from "@formily/react";
3
+ import { RecursionField, observer } from "@formily/react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, cn } from "@pixpilot/shadcn";
6
6
 
@@ -11,7 +11,6 @@ import { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogH
11
11
  * RecursionField inherits component registry from parent SchemaField context (preserved through Radix Portal)
12
12
  */
13
13
  const EditDialog = observer(({ schema, onSave, onCancel, activeItemManager }) => {
14
- const arrayField = useField();
15
14
  const itemIndex = activeItemManager.activeItem;
16
15
  const { isNew } = activeItemManager;
17
16
  const open = itemIndex !== void 0;
@@ -37,9 +36,8 @@ const EditDialog = observer(({ schema, onSave, onCancel, activeItemManager }) =>
37
36
  ...itemWrapperRestProps,
38
37
  className: cn("grid gap-4 py-4", itemWrapperClassName),
39
38
  children: itemIndex != null && /* @__PURE__ */ jsx(RecursionField, {
40
- basePath: arrayField.address.concat(itemIndex),
41
39
  schema,
42
- onlyRenderProperties: true
40
+ name: itemIndex
43
41
  })
44
42
  }),
45
43
  /* @__PURE__ */ jsxs(DialogFooter, { children: [/* @__PURE__ */ jsx(Button, {
@@ -10,7 +10,6 @@ __pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
10
10
 
11
11
  //#region src/components/array-popover/popover.tsx
12
12
  const ArrayItemsEditPopover = (0, __formily_react.observer)(({ schema, onSave, onCancel, children, activeItemManager }) => {
13
- const arrayField = (0, __formily_react.useField)();
14
13
  const activeIndex = activeItemManager.activeItem;
15
14
  const isNewItem = activeItemManager.isNew;
16
15
  const open = activeIndex !== void 0;
@@ -47,9 +46,8 @@ const ArrayItemsEditPopover = (0, __formily_react.observer)(({ schema, onSave, o
47
46
  ...itemWrapperRestProps,
48
47
  className: (0, __pixpilot_shadcn.cn)("space-y-4", itemWrapperClassName),
49
48
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__formily_react.RecursionField, {
50
- basePath: arrayField.address.concat(activeIndex),
51
49
  schema,
52
- onlyRenderProperties: true
50
+ name: activeIndex
53
51
  })
54
52
  }),
55
53
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -1,12 +1,11 @@
1
1
  import { getXComponentProps } from "../../utils/get-x-component-props.js";
2
2
  import "../../utils/index.js";
3
- import { RecursionField, observer, useField } from "@formily/react";
3
+ import { RecursionField, observer } from "@formily/react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { Button, Popover, PopoverContent, PopoverTrigger, cn } from "@pixpilot/shadcn";
6
6
 
7
7
  //#region src/components/array-popover/popover.tsx
8
8
  const ArrayItemsEditPopover = observer(({ schema, onSave, onCancel, children, activeItemManager }) => {
9
- const arrayField = useField();
10
9
  const activeIndex = activeItemManager.activeItem;
11
10
  const isNewItem = activeItemManager.isNew;
12
11
  const open = activeIndex !== void 0;
@@ -43,9 +42,8 @@ const ArrayItemsEditPopover = observer(({ schema, onSave, onCancel, children, ac
43
42
  ...itemWrapperRestProps,
44
43
  className: cn("space-y-4", itemWrapperClassName),
45
44
  children: /* @__PURE__ */ jsx(RecursionField, {
46
- basePath: arrayField.address.concat(activeIndex),
47
45
  schema,
48
- onlyRenderProperties: true
46
+ name: activeIndex
49
47
  })
50
48
  }),
51
49
  /* @__PURE__ */ jsxs("div", {
@@ -1,4 +1,4 @@
1
- import * as react17 from "react";
1
+ import * as react0 from "react";
2
2
  import * as _radix_ui_react_checkbox0 from "@radix-ui/react-checkbox";
3
3
 
4
4
  //#region src/components/checkbox.d.ts
@@ -6,6 +6,6 @@ import * as _radix_ui_react_checkbox0 from "@radix-ui/react-checkbox";
6
6
  * Formily-connected Checkbox component
7
7
  * Maps Formily field checked state to shadcn Checkbox
8
8
  */
9
- declare const Checkbox: react17.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox0.CheckboxProps & react17.RefAttributes<HTMLButtonElement>>, "ref"> & react17.RefAttributes<unknown>>;
9
+ declare const Checkbox: react0.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox0.CheckboxProps & react0.RefAttributes<HTMLButtonElement>>, "ref"> & react0.RefAttributes<unknown>>;
10
10
  //#endregion
11
11
  export { Checkbox };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime1 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/column.d.ts
5
5
  interface IColumnProps {
@@ -36,6 +36,6 @@ interface IColumnProps {
36
36
  declare function Column({
37
37
  className,
38
38
  children
39
- }: IColumnProps): react_jsx_runtime1.JSX.Element;
39
+ }: IColumnProps): react_jsx_runtime0.JSX.Element;
40
40
  //#endregion
41
41
  export { Column };
@@ -1,11 +1,11 @@
1
- import * as react20 from "react";
1
+ import * as react2 from "react";
2
2
  import { DatePickerProps } from "@pixpilot/shadcn-ui";
3
3
 
4
4
  //#region src/components/date-picker.d.ts
5
- declare const DatePicker$1: react20.ForwardRefExoticComponent<Partial<{
5
+ declare const DatePicker$1: react2.ForwardRefExoticComponent<Partial<{
6
6
  value?: Date;
7
7
  onChange?: (date: Date | undefined) => void;
8
8
  placeholder?: string;
9
- } & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> & react20.RefAttributes<unknown>>;
9
+ } & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> & react2.RefAttributes<unknown>>;
10
10
  //#endregion
11
11
  export { DatePicker$1 as DatePicker };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as _pixpilot_shadcn_ui8 from "@pixpilot/shadcn-ui";
2
+ import * as _pixpilot_shadcn_ui0 from "@pixpilot/shadcn-ui";
3
3
 
4
4
  //#region src/components/file-upload/file-upload-inline.d.ts
5
5
 
@@ -7,14 +7,14 @@ import * as _pixpilot_shadcn_ui8 from "@pixpilot/shadcn-ui";
7
7
  * Formily-connected FileUploadInline component
8
8
  * Automatically connects shadcn FileUploadInline to Formily field state
9
9
  */
10
- declare const FileUploadInline: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui8.FileUploadInlineBaseProps & {
10
+ declare const FileUploadInline: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui0.FileUploadInlineBaseProps & {
11
11
  multiple: true;
12
- value?: _pixpilot_shadcn_ui8.FileMetadata[];
13
- onChange?: _pixpilot_shadcn_ui8.OnChangeMultipleFiles;
14
- } & _pixpilot_shadcn_ui8.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui8.FileUploadInlineBaseProps & {
12
+ value?: _pixpilot_shadcn_ui0.FileMetadata[];
13
+ onChange?: _pixpilot_shadcn_ui0.OnChangeMultipleFiles;
14
+ } & _pixpilot_shadcn_ui0.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui0.FileUploadInlineBaseProps & {
15
15
  multiple?: false;
16
- value?: _pixpilot_shadcn_ui8.FileMetadata | null;
17
- onChange?: _pixpilot_shadcn_ui8.OnChangeSingleFile;
18
- } & _pixpilot_shadcn_ui8.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
16
+ value?: _pixpilot_shadcn_ui0.FileMetadata | null;
17
+ onChange?: _pixpilot_shadcn_ui0.OnChangeSingleFile;
18
+ } & _pixpilot_shadcn_ui0.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
19
19
  //#endregion
20
20
  export { FileUploadInline };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as _pixpilot_shadcn_ui366 from "@pixpilot/shadcn-ui";
2
+ import * as _pixpilot_shadcn_ui0 from "@pixpilot/shadcn-ui";
3
3
 
4
4
  //#region src/components/file-upload/file-upload-inline.d.ts
5
5
 
@@ -7,14 +7,14 @@ import * as _pixpilot_shadcn_ui366 from "@pixpilot/shadcn-ui";
7
7
  * Formily-connected FileUploadInline component
8
8
  * Automatically connects shadcn FileUploadInline to Formily field state
9
9
  */
10
- declare const FileUploadInline$1: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui366.FileUploadInlineBaseProps & {
10
+ declare const FileUploadInline$1: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui0.FileUploadInlineBaseProps & {
11
11
  multiple: true;
12
- value?: _pixpilot_shadcn_ui366.FileMetadata[];
13
- onChange?: _pixpilot_shadcn_ui366.OnChangeMultipleFiles;
14
- } & _pixpilot_shadcn_ui366.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui366.FileUploadInlineBaseProps & {
12
+ value?: _pixpilot_shadcn_ui0.FileMetadata[];
13
+ onChange?: _pixpilot_shadcn_ui0.OnChangeMultipleFiles;
14
+ } & _pixpilot_shadcn_ui0.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui0.FileUploadInlineBaseProps & {
15
15
  multiple?: false;
16
- value?: _pixpilot_shadcn_ui366.FileMetadata | null;
17
- onChange?: _pixpilot_shadcn_ui366.OnChangeSingleFile;
18
- } & _pixpilot_shadcn_ui366.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
16
+ value?: _pixpilot_shadcn_ui0.FileMetadata | null;
17
+ onChange?: _pixpilot_shadcn_ui0.OnChangeSingleFile;
18
+ } & _pixpilot_shadcn_ui0.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
19
19
  //#endregion
20
20
  export { FileUploadInline$1 as FileUploadInline };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as _pixpilot_shadcn_ui0 from "@pixpilot/shadcn-ui";
2
+ import * as _pixpilot_shadcn_ui8 from "@pixpilot/shadcn-ui";
3
3
 
4
4
  //#region src/components/file-upload/file-upload.d.ts
5
5
 
@@ -7,14 +7,14 @@ import * as _pixpilot_shadcn_ui0 from "@pixpilot/shadcn-ui";
7
7
  * Formily-connected FileUploadInline component
8
8
  * Automatically connects shadcn FileUploadInline to Formily field state
9
9
  */
10
- declare const FileUpload: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui0.FileUploadInlineBaseProps & {
10
+ declare const FileUpload: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui8.FileUploadInlineBaseProps & {
11
11
  multiple: true;
12
- value?: _pixpilot_shadcn_ui0.FileMetadata[];
13
- onChange?: _pixpilot_shadcn_ui0.OnChangeMultipleFiles;
14
- } & _pixpilot_shadcn_ui0.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui0.FileUploadInlineBaseProps & {
12
+ value?: _pixpilot_shadcn_ui8.FileMetadata[];
13
+ onChange?: _pixpilot_shadcn_ui8.OnChangeMultipleFiles;
14
+ } & _pixpilot_shadcn_ui8.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui8.FileUploadInlineBaseProps & {
15
15
  multiple?: false;
16
- value?: _pixpilot_shadcn_ui0.FileMetadata | null;
17
- onChange?: _pixpilot_shadcn_ui0.OnChangeSingleFile;
18
- } & _pixpilot_shadcn_ui0.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
16
+ value?: _pixpilot_shadcn_ui8.FileMetadata | null;
17
+ onChange?: _pixpilot_shadcn_ui8.OnChangeSingleFile;
18
+ } & _pixpilot_shadcn_ui8.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
19
19
  //#endregion
20
20
  export { FileUpload };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as _pixpilot_shadcn_ui374 from "@pixpilot/shadcn-ui";
2
+ import * as _pixpilot_shadcn_ui8 from "@pixpilot/shadcn-ui";
3
3
 
4
4
  //#region src/components/file-upload/file-upload.d.ts
5
5
 
@@ -7,14 +7,14 @@ import * as _pixpilot_shadcn_ui374 from "@pixpilot/shadcn-ui";
7
7
  * Formily-connected FileUploadInline component
8
8
  * Automatically connects shadcn FileUploadInline to Formily field state
9
9
  */
10
- declare const FileUpload$1: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui374.FileUploadInlineBaseProps & {
10
+ declare const FileUpload$1: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui8.FileUploadInlineBaseProps & {
11
11
  multiple: true;
12
- value?: _pixpilot_shadcn_ui374.FileMetadata[];
13
- onChange?: _pixpilot_shadcn_ui374.OnChangeMultipleFiles;
14
- } & _pixpilot_shadcn_ui374.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui374.FileUploadInlineBaseProps & {
12
+ value?: _pixpilot_shadcn_ui8.FileMetadata[];
13
+ onChange?: _pixpilot_shadcn_ui8.OnChangeMultipleFiles;
14
+ } & _pixpilot_shadcn_ui8.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui8.FileUploadInlineBaseProps & {
15
15
  multiple?: false;
16
- value?: _pixpilot_shadcn_ui374.FileMetadata | null;
17
- onChange?: _pixpilot_shadcn_ui374.OnChangeSingleFile;
18
- } & _pixpilot_shadcn_ui374.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
16
+ value?: _pixpilot_shadcn_ui8.FileMetadata | null;
17
+ onChange?: _pixpilot_shadcn_ui8.OnChangeSingleFile;
18
+ } & _pixpilot_shadcn_ui8.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
19
19
  //#endregion
20
20
  export { FileUpload$1 as FileUpload };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime1 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/form-grid.d.ts
5
5
  interface IFormGridProps extends React.HTMLAttributes<HTMLDivElement> {}
@@ -7,6 +7,6 @@ declare function FormGrid({
7
7
  className,
8
8
  children,
9
9
  ...rest
10
- }: IFormGridProps): react_jsx_runtime1.JSX.Element;
10
+ }: IFormGridProps): react_jsx_runtime0.JSX.Element;
11
11
  //#endregion
12
12
  export { FormGrid };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime3 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/form-grid.d.ts
5
5
  interface IFormGridProps extends React.HTMLAttributes<HTMLDivElement> {}
@@ -7,6 +7,6 @@ declare function FormGrid({
7
7
  className,
8
8
  children,
9
9
  ...rest
10
- }: IFormGridProps): react_jsx_runtime3.JSX.Element;
10
+ }: IFormGridProps): react_jsx_runtime1.JSX.Element;
11
11
  //#endregion
12
12
  export { FormGrid };
@@ -2,7 +2,7 @@ import { FormContextStates } from "./context/form-context.cjs";
2
2
  import "./context/index.cjs";
3
3
  import React from "react";
4
4
  import { Form } from "@formily/core";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/form.d.ts
8
8
  interface IFormProps extends FormContextStates {
@@ -25,6 +25,6 @@ declare function Form$1({
25
25
  onAutoSubmit,
26
26
  layout,
27
27
  settings
28
- }: IFormProps): react_jsx_runtime0.JSX.Element;
28
+ }: IFormProps): react_jsx_runtime1.JSX.Element;
29
29
  //#endregion
30
30
  export { Form$1 as Form };