@pixpilot/formily-shadcn 0.8.4 → 0.9.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/README.md +1 -42
- package/dist/components/array-base/components/addition.cjs +2 -2
- package/dist/components/array-base/components/addition.d.cts +3 -2
- package/dist/components/array-base/components/addition.d.ts +3 -2
- package/dist/components/array-base/components/addition.js +2 -2
- package/dist/components/array-base/components/array-item-label.cjs +4 -7
- package/dist/components/array-base/components/array-item-label.js +4 -6
- package/dist/components/array-base/components/empty.cjs +2 -2
- package/dist/components/array-base/components/empty.d.cts +9 -0
- package/dist/components/array-base/components/empty.d.ts +9 -0
- package/dist/components/array-base/components/empty.js +2 -2
- package/dist/components/array-base/components/get-array-components.cjs +1 -1
- package/dist/components/array-base/components/get-array-components.js +1 -1
- package/dist/components/array-base/components/types.d.cts +2 -1
- package/dist/components/array-base/components/types.d.ts +2 -1
- package/dist/components/array-base/components/use-array-components-registry.cjs +5 -8
- package/dist/components/array-base/components/use-array-components-registry.d.cts +1 -0
- package/dist/components/array-base/components/use-array-components-registry.d.ts +1 -0
- package/dist/components/array-base/components/use-array-components-registry.js +5 -8
- package/dist/components/array-base/types.d.cts +2 -2
- package/dist/components/array-base/types.d.ts +2 -2
- package/dist/components/array-cards/array-cards.cjs +1 -4
- package/dist/components/array-cards/array-cards.js +1 -4
- package/dist/components/array-cards/item.cjs +5 -12
- package/dist/components/array-cards/item.js +5 -12
- package/dist/components/array-collapse/array-collapse.cjs +1 -4
- package/dist/components/array-collapse/array-collapse.js +1 -4
- package/dist/components/array-collapse/item.cjs +1 -4
- package/dist/components/array-collapse/item.js +1 -4
- package/dist/components/array-common/list-item.cjs +0 -4
- package/dist/components/array-common/list-item.js +1 -5
- package/dist/components/array-dialog/array-dialog.cjs +2 -5
- package/dist/components/array-dialog/array-dialog.js +2 -5
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/column.d.ts +2 -2
- package/dist/components/date-picker.d.cts +2 -8
- package/dist/components/date-picker.d.ts +5 -11
- package/dist/components/file-upload/file-upload-inline.d.cts +8 -8
- package/dist/components/file-upload/file-upload-inline.d.ts +8 -8
- package/dist/components/file-upload/file-upload.d.cts +8 -8
- package/dist/components/file-upload/file-upload.d.ts +8 -8
- package/dist/components/form-grid.d.ts +2 -2
- package/dist/components/icon-picker.d.ts +3 -3
- package/dist/components/json-schema-form-renderer.cjs +2 -1
- package/dist/components/json-schema-form-renderer.js +2 -1
- package/dist/components/radio.d.cts +2 -2
- package/dist/components/radio.d.ts +2 -2
- package/dist/components/row.d.ts +2 -2
- package/dist/components/schema-field/index.cjs +3 -0
- package/dist/components/schema-field/index.d.cts +3 -0
- package/dist/components/schema-field/index.d.ts +3 -0
- package/dist/components/schema-field/index.js +3 -0
- package/dist/components/schema-field/schema-field-basics.cjs +54 -0
- package/dist/components/schema-field/schema-field-basics.d.cts +379 -0
- package/dist/components/schema-field/schema-field-basics.d.ts +379 -0
- package/dist/components/schema-field/schema-field-basics.js +51 -0
- package/dist/components/schema-field/schema-field-extended.cjs +28 -0
- package/dist/components/schema-field/schema-field-extended.d.cts +643 -0
- package/dist/components/schema-field/schema-field-extended.d.ts +643 -0
- package/dist/components/schema-field/schema-field-extended.js +25 -0
- package/dist/components/schema-field/schema-field.cjs +23 -0
- package/dist/components/schema-field/schema-field.d.cts +420 -0
- package/dist/components/schema-field/schema-field.d.ts +420 -0
- package/dist/components/schema-field/schema-field.js +19 -0
- package/dist/components/separator.d.cts +3 -3
- package/dist/components/slider.d.cts +2 -2
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/switch.d.cts +3 -3
- package/dist/components/switch.d.ts +3 -3
- package/dist/components/tags-input-inline.d.cts +3 -3
- package/dist/components/tags-input-inline.d.ts +3 -3
- package/dist/components/textarea.d.cts +2 -2
- package/dist/index.cjs +12 -7
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +8 -6
- package/dist/utils/transform-schema.cjs +1 -1
- package/dist/utils/transform-schema.js +1 -1
- package/package.json +9 -9
- package/dist/_virtual/rolldown_runtime.js +0 -24
- package/dist/components/array-base/components/title.cjs +0 -17
- package/dist/components/array-base/components/title.js +0 -14
- package/dist/components/schema-field-extended.cjs +0 -25
- package/dist/components/schema-field-extended.d.cts +0 -630
- package/dist/components/schema-field-extended.d.ts +0 -630
- package/dist/components/schema-field-extended.js +0 -23
- package/dist/components/schema-field.cjs +0 -61
- package/dist/components/schema-field.d.cts +0 -471
- package/dist/components/schema-field.d.ts +0 -471
- package/dist/components/schema-field.js +0 -57
|
@@ -25,7 +25,7 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
25
25
|
const ArrayDialogBase = (0, __formily_react.observer)((props) => {
|
|
26
26
|
const schema = (0, __formily_react.useFieldSchema)();
|
|
27
27
|
const { onAdd, onRemove, onMoveDown, onMoveUp, onEdit, className } = props;
|
|
28
|
-
const { activeItemManager, handleAdd, handleEdit, isNewItem, handleSaveClick, handleCancelClick
|
|
28
|
+
const { activeItemManager, handleAdd, handleEdit, isNewItem, handleSaveClick, handleCancelClick } = require_use_array_editor.useArrayEditor({
|
|
29
29
|
onAdd,
|
|
30
30
|
onEdit
|
|
31
31
|
});
|
|
@@ -40,10 +40,7 @@ const ArrayDialogBase = (0, __formily_react.observer)((props) => {
|
|
|
40
40
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_array_items_list.ArrayItemsList, {
|
|
41
41
|
className,
|
|
42
42
|
isNewItem,
|
|
43
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AddButton, {
|
|
44
|
-
schema,
|
|
45
|
-
basePath: field.address.toString()
|
|
46
|
-
})
|
|
43
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AddButton, { schema })
|
|
47
44
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_edit_dialog.EditDialog, {
|
|
48
45
|
onSave: handleSaveClick,
|
|
49
46
|
onCancel: handleCancelClick,
|
|
@@ -21,7 +21,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
21
21
|
const ArrayDialogBase = observer((props) => {
|
|
22
22
|
const schema = useFieldSchema();
|
|
23
23
|
const { onAdd, onRemove, onMoveDown, onMoveUp, onEdit, className } = props;
|
|
24
|
-
const { activeItemManager, handleAdd, handleEdit, isNewItem, handleSaveClick, handleCancelClick
|
|
24
|
+
const { activeItemManager, handleAdd, handleEdit, isNewItem, handleSaveClick, handleCancelClick } = useArrayEditor({
|
|
25
25
|
onAdd,
|
|
26
26
|
onEdit
|
|
27
27
|
});
|
|
@@ -36,10 +36,7 @@ const ArrayDialogBase = observer((props) => {
|
|
|
36
36
|
children: [/* @__PURE__ */ jsx(ArrayItemsList, {
|
|
37
37
|
className,
|
|
38
38
|
isNewItem,
|
|
39
|
-
children: /* @__PURE__ */ jsx(AddButton, {
|
|
40
|
-
schema,
|
|
41
|
-
basePath: field.address.toString()
|
|
42
|
-
})
|
|
39
|
+
children: /* @__PURE__ */ jsx(AddButton, { schema })
|
|
43
40
|
}), /* @__PURE__ */ jsx(EditDialog, {
|
|
44
41
|
onSave: handleSaveClick,
|
|
45
42
|
onCancel: handleCancelClick,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react7 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:
|
|
9
|
+
declare const Checkbox: react7.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox0.CheckboxProps & react7.RefAttributes<HTMLButtonElement>>, "ref"> & react7.RefAttributes<unknown>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Checkbox };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 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):
|
|
39
|
+
}: IColumnProps): react_jsx_runtime2.JSX.Element;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { Column };
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import * as react2 from "react";
|
|
2
|
-
import
|
|
2
|
+
import { DatePickerProps } from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/date-picker.d.ts
|
|
5
5
|
declare const DatePicker: react2.ForwardRefExoticComponent<Partial<{
|
|
6
6
|
value?: Date;
|
|
7
7
|
onChange?: (date: Date | undefined) => void;
|
|
8
8
|
placeholder?: string;
|
|
9
|
-
} & Omit<
|
|
10
|
-
value?: Date;
|
|
11
|
-
onChange?: (date: Date | undefined) => void;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
} & Omit<react_day_picker0.DayPickerProps & {
|
|
14
|
-
buttonVariant?: React.ComponentProps<typeof void 0>["variant"];
|
|
15
|
-
}, "onSelect" | "selected" | "mode">, "onSelect" | "selected" | "mode">> & react2.RefAttributes<unknown>>;
|
|
9
|
+
} & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> & react2.RefAttributes<unknown>>;
|
|
16
10
|
//#endregion
|
|
17
11
|
export { DatePicker };
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as react5 from "react";
|
|
2
|
+
import { DatePickerProps } from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/date-picker.d.ts
|
|
5
|
-
declare const DatePicker:
|
|
5
|
+
declare const DatePicker$1: react5.ForwardRefExoticComponent<Partial<{
|
|
6
6
|
value?: Date;
|
|
7
7
|
onChange?: (date: Date | undefined) => void;
|
|
8
8
|
placeholder?: string;
|
|
9
|
-
} & Omit<
|
|
10
|
-
value?: Date;
|
|
11
|
-
onChange?: (date: Date | undefined) => void;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
} & Omit<react_day_picker0.DayPickerProps & {
|
|
14
|
-
buttonVariant?: React.ComponentProps<typeof void 0>["variant"];
|
|
15
|
-
}, "onSelect" | "selected" | "mode">, "onSelect" | "selected" | "mode">> & react6.RefAttributes<unknown>>;
|
|
9
|
+
} & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> & react5.RefAttributes<unknown>>;
|
|
16
10
|
//#endregion
|
|
17
|
-
export { DatePicker };
|
|
11
|
+
export { DatePicker$1 as DatePicker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _pixpilot_shadcn_ui8 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_ui190 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<
|
|
10
|
+
declare const FileUploadInline: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui8.FileUploadInlineBaseProps & {
|
|
11
11
|
multiple: true;
|
|
12
|
-
value?:
|
|
13
|
-
onChange?:
|
|
14
|
-
} &
|
|
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?:
|
|
17
|
-
onChange?:
|
|
18
|
-
} &
|
|
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 { FileUploadInline };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _pixpilot_shadcn_ui8 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_ui190 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<
|
|
10
|
+
declare const FileUploadInline$1: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui8.FileUploadInlineBaseProps & {
|
|
11
11
|
multiple: true;
|
|
12
|
-
value?:
|
|
13
|
-
onChange?:
|
|
14
|
-
} &
|
|
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?:
|
|
17
|
-
onChange?:
|
|
18
|
-
} &
|
|
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 { FileUploadInline$1 as FileUploadInline };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _pixpilot_shadcn_ui0 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_ui198 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<
|
|
10
|
+
declare const FileUpload: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui0.FileUploadInlineBaseProps & {
|
|
11
11
|
multiple: true;
|
|
12
|
-
value?:
|
|
13
|
-
onChange?:
|
|
14
|
-
} &
|
|
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?:
|
|
17
|
-
onChange?:
|
|
18
|
-
} &
|
|
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 { FileUpload };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _pixpilot_shadcn_ui0 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_ui198 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<
|
|
10
|
+
declare const FileUpload$1: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui0.FileUploadInlineBaseProps & {
|
|
11
11
|
multiple: true;
|
|
12
|
-
value?:
|
|
13
|
-
onChange?:
|
|
14
|
-
} &
|
|
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?:
|
|
17
|
-
onChange?:
|
|
18
|
-
} &
|
|
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 { FileUpload$1 as FileUpload };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
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):
|
|
10
|
+
}: IFormGridProps): react_jsx_runtime0.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { FormGrid };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react3 from "react";
|
|
2
2
|
import { IconPickerProps, IconProviderProps } from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/icon-picker.d.ts
|
|
@@ -8,8 +8,8 @@ import { IconPickerProps, IconProviderProps } from "@pixpilot/shadcn-ui";
|
|
|
8
8
|
* Automatically connects to Formily field state
|
|
9
9
|
* Supports both static and async icon providers
|
|
10
10
|
*/
|
|
11
|
-
declare const IconPicker$1:
|
|
11
|
+
declare const IconPicker$1: react3.ForwardRefExoticComponent<Partial<Omit<IconPickerProps, "providers"> & {
|
|
12
12
|
providers?: IconProviderProps[];
|
|
13
|
-
}> &
|
|
13
|
+
}> & react3.RefAttributes<unknown>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { IconPicker$1 as IconPicker };
|
|
@@ -2,7 +2,8 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_transform_schema = require('../utils/transform-schema.cjs');
|
|
3
3
|
require('../utils/index.cjs');
|
|
4
4
|
const require_form = require('./form.cjs');
|
|
5
|
-
const require_schema_field = require('./schema-field.cjs');
|
|
5
|
+
const require_schema_field = require('./schema-field/schema-field.cjs');
|
|
6
|
+
require('./schema-field/index.cjs');
|
|
6
7
|
let react = require("react");
|
|
7
8
|
react = require_rolldown_runtime.__toESM(react);
|
|
8
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { transformSchema } from "../utils/transform-schema.js";
|
|
2
2
|
import "../utils/index.js";
|
|
3
3
|
import { Form as Form$1 } from "./form.js";
|
|
4
|
-
import { SchemaField } from "./schema-field.js";
|
|
4
|
+
import { SchemaField } from "./schema-field/schema-field.js";
|
|
5
|
+
import "./schema-field/index.js";
|
|
5
6
|
import React, { useMemo } from "react";
|
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
8
|
import { createForm } from "@formily/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC } from "react";
|
|
2
2
|
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
import { RadioGroup } from "@pixpilot/shadcn";
|
|
4
4
|
|
|
@@ -11,7 +11,7 @@ type RadioProps = {
|
|
|
11
11
|
options?: RadioGroupOption[];
|
|
12
12
|
value?: string;
|
|
13
13
|
onChange?: (value: string) => void;
|
|
14
|
-
} & Omit<
|
|
14
|
+
} & Omit<React.ComponentType<typeof RadioGroup>, 'value' | 'onValueChange' | 'children'>;
|
|
15
15
|
/**
|
|
16
16
|
* Radio component with options rendering
|
|
17
17
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC } from "react";
|
|
2
2
|
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
import { RadioGroup } from "@pixpilot/shadcn";
|
|
4
4
|
|
|
@@ -11,7 +11,7 @@ type RadioProps = {
|
|
|
11
11
|
options?: RadioGroupOption[];
|
|
12
12
|
value?: string;
|
|
13
13
|
onChange?: (value: string) => void;
|
|
14
|
-
} & Omit<
|
|
14
|
+
} & Omit<React.ComponentType<typeof RadioGroup>, 'value' | 'onValueChange' | 'children'>;
|
|
15
15
|
/**
|
|
16
16
|
* Radio component with options rendering
|
|
17
17
|
*/
|
package/dist/components/row.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/row.d.ts
|
|
5
5
|
interface IRowProps {
|
|
@@ -36,6 +36,6 @@ interface IRowProps {
|
|
|
36
36
|
declare function Row({
|
|
37
37
|
className,
|
|
38
38
|
children
|
|
39
|
-
}: IRowProps):
|
|
39
|
+
}: IRowProps): react_jsx_runtime1.JSX.Element;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { Row };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_array_cards = require('../array-cards/array-cards.cjs');
|
|
3
|
+
require('../array-cards/index.cjs');
|
|
4
|
+
const require_array_collapse = require('../array-collapse/array-collapse.cjs');
|
|
5
|
+
require('../array-collapse/index.cjs');
|
|
6
|
+
const require_checkbox = require('../checkbox.cjs');
|
|
7
|
+
const require_column = require('../column.cjs');
|
|
8
|
+
const require_date_picker = require('../date-picker.cjs');
|
|
9
|
+
const require_form_grid = require('../form-grid.cjs');
|
|
10
|
+
const require_form_item = require('../form-item.cjs');
|
|
11
|
+
const require_input = require('../input.cjs');
|
|
12
|
+
const require_array_dialog = require('../array-dialog/array-dialog.cjs');
|
|
13
|
+
require('../array-dialog/index.cjs');
|
|
14
|
+
const require_array_popover = require('../array-popover/array-popover.cjs');
|
|
15
|
+
require('../array-popover/index.cjs');
|
|
16
|
+
const require_hidden = require('../hidden.cjs');
|
|
17
|
+
const require_number_input = require('../number-input.cjs');
|
|
18
|
+
const require_object_container = require('../object-container.cjs');
|
|
19
|
+
const require_radio = require('../radio.cjs');
|
|
20
|
+
const require_row = require('../row.cjs');
|
|
21
|
+
const require_select = require('../select.cjs');
|
|
22
|
+
const require_separator = require('../separator.cjs');
|
|
23
|
+
const require_switch = require('../switch.cjs');
|
|
24
|
+
const require_textarea = require('../textarea.cjs');
|
|
25
|
+
let __formily_react = require("@formily/react");
|
|
26
|
+
__formily_react = require_rolldown_runtime.__toESM(__formily_react);
|
|
27
|
+
|
|
28
|
+
//#region src/components/schema-field/schema-field-basics.tsx
|
|
29
|
+
const SchemaFieldBasicComponents = {
|
|
30
|
+
FormItem: require_form_item.FormItem,
|
|
31
|
+
Hidden: require_hidden.Hidden,
|
|
32
|
+
Input: require_input.Input,
|
|
33
|
+
Textarea: require_textarea.Textarea,
|
|
34
|
+
NumberInput: require_number_input.NumberInput,
|
|
35
|
+
Checkbox: require_checkbox.Checkbox,
|
|
36
|
+
Radio: require_radio.ConnectedRadio,
|
|
37
|
+
Select: require_select.Select,
|
|
38
|
+
Switch: require_switch.Switch,
|
|
39
|
+
DatePicker: require_date_picker.DatePicker,
|
|
40
|
+
Row: require_row.Row,
|
|
41
|
+
Column: require_column.Column,
|
|
42
|
+
FormGrid: require_form_grid.FormGrid,
|
|
43
|
+
Separator: require_separator.Separator,
|
|
44
|
+
ArrayCards: require_array_cards.ArrayCards,
|
|
45
|
+
ArrayDialog: require_array_dialog.ArrayDialog,
|
|
46
|
+
ArrayCollapse: require_array_collapse.ArrayCollapse,
|
|
47
|
+
ArrayPopover: require_array_popover.ArrayPopover,
|
|
48
|
+
ObjectContainer: require_object_container.ObjectContainer
|
|
49
|
+
};
|
|
50
|
+
const SchemaFieldBasics = (0, __formily_react.createSchemaField)({ components: SchemaFieldBasicComponents });
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
exports.SchemaFieldBasicComponents = SchemaFieldBasicComponents;
|
|
54
|
+
exports.SchemaFieldBasics = SchemaFieldBasics;
|