@pixpilot/formily-shadcn 0.8.3 → 0.9.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/README.md +1 -42
- 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-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/date-picker.d.ts +3 -3
- 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/icon-picker.d.ts +3 -3
- package/dist/components/input.d.ts +2 -2
- package/dist/components/json-schema-form-renderer.cjs +2 -1
- package/dist/components/json-schema-form-renderer.js +2 -1
- package/dist/components/number-input.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 +439 -0
- package/dist/components/schema-field/schema-field-basics.d.ts +439 -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 +704 -0
- package/dist/components/schema-field/schema-field-extended.d.ts +704 -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 +481 -0
- package/dist/components/schema-field/schema-field.d.ts +481 -0
- package/dist/components/schema-field/schema-field.js +19 -0
- package/dist/components/separator.d.cts +3 -3
- package/dist/components/separator.d.ts +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 +8 -8
- 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
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
import { ArrayComponentProps, ComposedArrayProps } from "../array-base/types.js";
|
|
2
|
+
import "../array-base/index.js";
|
|
3
|
+
import { Column } from "../column.js";
|
|
4
|
+
import { FormGrid } from "../form-grid.js";
|
|
5
|
+
import { FormItemProps } from "../form-item.js";
|
|
6
|
+
import { Row } from "../row.js";
|
|
7
|
+
import { ObjectContainerProps } from "../object-container.js";
|
|
8
|
+
import * as _formily_react23 from "@formily/react";
|
|
9
|
+
import * as react878 from "react";
|
|
10
|
+
import * as _formily_core1 from "@formily/core";
|
|
11
|
+
import * as _radix_ui_react_checkbox20 from "@radix-ui/react-checkbox";
|
|
12
|
+
import * as react_day_picker20 from "react-day-picker";
|
|
13
|
+
import * as _radix_ui_react_switch20 from "@radix-ui/react-switch";
|
|
14
|
+
import * as _radix_ui_react_separator20 from "@radix-ui/react-separator";
|
|
15
|
+
|
|
16
|
+
//#region src/components/schema-field/schema-field-basics.d.ts
|
|
17
|
+
declare const SchemaFieldBasicComponents: {
|
|
18
|
+
FormItem: react878.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
19
|
+
children?: react878.ReactNode | undefined;
|
|
20
|
+
}>, "ref"> & react878.RefAttributes<unknown>>;
|
|
21
|
+
Hidden: react878.ForwardRefExoticComponent<Partial<{
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
value?: string;
|
|
24
|
+
}> & react878.RefAttributes<unknown>>;
|
|
25
|
+
Input: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
26
|
+
Textarea: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLTextAreaElement> & react878.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
27
|
+
NumberInput: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
28
|
+
Checkbox: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox20.CheckboxProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
29
|
+
Radio: react878.FC;
|
|
30
|
+
Select: react878.FC;
|
|
31
|
+
Switch: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch20.SwitchProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
32
|
+
DatePicker: react878.ForwardRefExoticComponent<Partial<{
|
|
33
|
+
value?: Date;
|
|
34
|
+
onChange?: (date: Date | undefined) => void;
|
|
35
|
+
placeholder?: string;
|
|
36
|
+
} & Omit<{
|
|
37
|
+
value?: Date;
|
|
38
|
+
onChange?: (date: Date | undefined) => void;
|
|
39
|
+
placeholder?: string;
|
|
40
|
+
} & Omit<react_day_picker20.DayPickerProps & {
|
|
41
|
+
buttonVariant?: React.ComponentProps<typeof void 0>["variant"];
|
|
42
|
+
}, "onSelect" | "selected" | "mode">, "onSelect" | "selected" | "mode">> & react878.RefAttributes<unknown>>;
|
|
43
|
+
Row: typeof Row;
|
|
44
|
+
Column: typeof Column;
|
|
45
|
+
FormGrid: typeof FormGrid;
|
|
46
|
+
Separator: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator20.SeparatorProps & react878.RefAttributes<HTMLDivElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
47
|
+
ArrayCards: ComposedArrayProps;
|
|
48
|
+
ArrayDialog: react878.FC<ArrayComponentProps>;
|
|
49
|
+
ArrayCollapse: react878.FC<ArrayComponentProps & {
|
|
50
|
+
defaultActiveKey?: Array<string | number>;
|
|
51
|
+
mode?: "accordion" | "multiple";
|
|
52
|
+
}>;
|
|
53
|
+
ArrayPopover: react878.FC<ArrayComponentProps>;
|
|
54
|
+
ObjectContainer: react878.FC<ObjectContainerProps>;
|
|
55
|
+
};
|
|
56
|
+
declare const SchemaFieldBasics: {
|
|
57
|
+
<Decorator extends _formily_react23.JSXComponent, Component extends _formily_react23.JSXComponent>(props: _formily_react23.ISchemaFieldProps<Decorator, Component, _formily_core1.ObjectField<Decorator, Component>>): JSX.Element;
|
|
58
|
+
displayName: string;
|
|
59
|
+
Markup: {
|
|
60
|
+
<Decorator_1 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord", Component_1 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord">(props: _formily_react23.ISchemaMarkupFieldProps<{
|
|
61
|
+
FormItem: react878.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
62
|
+
children?: react878.ReactNode | undefined;
|
|
63
|
+
}>, "ref"> & react878.RefAttributes<unknown>>;
|
|
64
|
+
Hidden: react878.ForwardRefExoticComponent<Partial<{
|
|
65
|
+
children?: React.ReactNode;
|
|
66
|
+
value?: string;
|
|
67
|
+
}> & react878.RefAttributes<unknown>>;
|
|
68
|
+
Input: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
69
|
+
Textarea: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLTextAreaElement> & react878.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
70
|
+
NumberInput: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
71
|
+
Checkbox: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox20.CheckboxProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
72
|
+
Radio: react878.FC;
|
|
73
|
+
Select: react878.FC;
|
|
74
|
+
Switch: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch20.SwitchProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
75
|
+
DatePicker: react878.ForwardRefExoticComponent<Partial<{
|
|
76
|
+
value?: Date;
|
|
77
|
+
onChange?: (date: Date | undefined) => void;
|
|
78
|
+
placeholder?: string;
|
|
79
|
+
} & Omit<{
|
|
80
|
+
value?: Date;
|
|
81
|
+
onChange?: (date: Date | undefined) => void;
|
|
82
|
+
placeholder?: string;
|
|
83
|
+
} & Omit<react_day_picker20.DayPickerProps & {
|
|
84
|
+
buttonVariant?: React.ComponentProps<typeof void 0>["variant"];
|
|
85
|
+
}, "onSelect" | "selected" | "mode">, "onSelect" | "selected" | "mode">> & react878.RefAttributes<unknown>>;
|
|
86
|
+
Row: typeof Row;
|
|
87
|
+
Column: typeof Column;
|
|
88
|
+
FormGrid: typeof FormGrid;
|
|
89
|
+
Separator: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator20.SeparatorProps & react878.RefAttributes<HTMLDivElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
90
|
+
ArrayCards: ComposedArrayProps;
|
|
91
|
+
ArrayDialog: react878.FC<ArrayComponentProps>;
|
|
92
|
+
ArrayCollapse: react878.FC<ArrayComponentProps & {
|
|
93
|
+
defaultActiveKey?: Array<string | number>;
|
|
94
|
+
mode?: "accordion" | "multiple";
|
|
95
|
+
}>;
|
|
96
|
+
ArrayPopover: react878.FC<ArrayComponentProps>;
|
|
97
|
+
ObjectContainer: react878.FC<ObjectContainerProps>;
|
|
98
|
+
}, Component_1, Decorator_1>): JSX.Element;
|
|
99
|
+
displayName: string;
|
|
100
|
+
};
|
|
101
|
+
String: {
|
|
102
|
+
<Decorator_2 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord", Component_2 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord">(props: _formily_react23.ISchemaTypeFieldProps<{
|
|
103
|
+
FormItem: react878.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
104
|
+
children?: react878.ReactNode | undefined;
|
|
105
|
+
}>, "ref"> & react878.RefAttributes<unknown>>;
|
|
106
|
+
Hidden: react878.ForwardRefExoticComponent<Partial<{
|
|
107
|
+
children?: React.ReactNode;
|
|
108
|
+
value?: string;
|
|
109
|
+
}> & react878.RefAttributes<unknown>>;
|
|
110
|
+
Input: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
111
|
+
Textarea: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLTextAreaElement> & react878.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
112
|
+
NumberInput: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
113
|
+
Checkbox: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox20.CheckboxProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
114
|
+
Radio: react878.FC;
|
|
115
|
+
Select: react878.FC;
|
|
116
|
+
Switch: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch20.SwitchProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
117
|
+
DatePicker: react878.ForwardRefExoticComponent<Partial<{
|
|
118
|
+
value?: Date;
|
|
119
|
+
onChange?: (date: Date | undefined) => void;
|
|
120
|
+
placeholder?: string;
|
|
121
|
+
} & Omit<{
|
|
122
|
+
value?: Date;
|
|
123
|
+
onChange?: (date: Date | undefined) => void;
|
|
124
|
+
placeholder?: string;
|
|
125
|
+
} & Omit<react_day_picker20.DayPickerProps & {
|
|
126
|
+
buttonVariant?: React.ComponentProps<typeof void 0>["variant"];
|
|
127
|
+
}, "onSelect" | "selected" | "mode">, "onSelect" | "selected" | "mode">> & react878.RefAttributes<unknown>>;
|
|
128
|
+
Row: typeof Row;
|
|
129
|
+
Column: typeof Column;
|
|
130
|
+
FormGrid: typeof FormGrid;
|
|
131
|
+
Separator: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator20.SeparatorProps & react878.RefAttributes<HTMLDivElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
132
|
+
ArrayCards: ComposedArrayProps;
|
|
133
|
+
ArrayDialog: react878.FC<ArrayComponentProps>;
|
|
134
|
+
ArrayCollapse: react878.FC<ArrayComponentProps & {
|
|
135
|
+
defaultActiveKey?: Array<string | number>;
|
|
136
|
+
mode?: "accordion" | "multiple";
|
|
137
|
+
}>;
|
|
138
|
+
ArrayPopover: react878.FC<ArrayComponentProps>;
|
|
139
|
+
ObjectContainer: react878.FC<ObjectContainerProps>;
|
|
140
|
+
}, Component_2, Decorator_2>): JSX.Element;
|
|
141
|
+
displayName: string;
|
|
142
|
+
};
|
|
143
|
+
Object: {
|
|
144
|
+
<Decorator_3 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord", Component_3 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord">(props: _formily_react23.ISchemaTypeFieldProps<{
|
|
145
|
+
FormItem: react878.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
146
|
+
children?: react878.ReactNode | undefined;
|
|
147
|
+
}>, "ref"> & react878.RefAttributes<unknown>>;
|
|
148
|
+
Hidden: react878.ForwardRefExoticComponent<Partial<{
|
|
149
|
+
children?: React.ReactNode;
|
|
150
|
+
value?: string;
|
|
151
|
+
}> & react878.RefAttributes<unknown>>;
|
|
152
|
+
Input: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
153
|
+
Textarea: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLTextAreaElement> & react878.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
154
|
+
NumberInput: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
155
|
+
Checkbox: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox20.CheckboxProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
156
|
+
Radio: react878.FC;
|
|
157
|
+
Select: react878.FC;
|
|
158
|
+
Switch: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch20.SwitchProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
159
|
+
DatePicker: react878.ForwardRefExoticComponent<Partial<{
|
|
160
|
+
value?: Date;
|
|
161
|
+
onChange?: (date: Date | undefined) => void;
|
|
162
|
+
placeholder?: string;
|
|
163
|
+
} & Omit<{
|
|
164
|
+
value?: Date;
|
|
165
|
+
onChange?: (date: Date | undefined) => void;
|
|
166
|
+
placeholder?: string;
|
|
167
|
+
} & Omit<react_day_picker20.DayPickerProps & {
|
|
168
|
+
buttonVariant?: React.ComponentProps<typeof void 0>["variant"];
|
|
169
|
+
}, "onSelect" | "selected" | "mode">, "onSelect" | "selected" | "mode">> & react878.RefAttributes<unknown>>;
|
|
170
|
+
Row: typeof Row;
|
|
171
|
+
Column: typeof Column;
|
|
172
|
+
FormGrid: typeof FormGrid;
|
|
173
|
+
Separator: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator20.SeparatorProps & react878.RefAttributes<HTMLDivElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
174
|
+
ArrayCards: ComposedArrayProps;
|
|
175
|
+
ArrayDialog: react878.FC<ArrayComponentProps>;
|
|
176
|
+
ArrayCollapse: react878.FC<ArrayComponentProps & {
|
|
177
|
+
defaultActiveKey?: Array<string | number>;
|
|
178
|
+
mode?: "accordion" | "multiple";
|
|
179
|
+
}>;
|
|
180
|
+
ArrayPopover: react878.FC<ArrayComponentProps>;
|
|
181
|
+
ObjectContainer: react878.FC<ObjectContainerProps>;
|
|
182
|
+
}, Component_3, Decorator_3>): JSX.Element;
|
|
183
|
+
displayName: string;
|
|
184
|
+
};
|
|
185
|
+
Array: {
|
|
186
|
+
<Decorator_4 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord", Component_4 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord">(props: _formily_react23.ISchemaTypeFieldProps<{
|
|
187
|
+
FormItem: react878.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
188
|
+
children?: react878.ReactNode | undefined;
|
|
189
|
+
}>, "ref"> & react878.RefAttributes<unknown>>;
|
|
190
|
+
Hidden: react878.ForwardRefExoticComponent<Partial<{
|
|
191
|
+
children?: React.ReactNode;
|
|
192
|
+
value?: string;
|
|
193
|
+
}> & react878.RefAttributes<unknown>>;
|
|
194
|
+
Input: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
195
|
+
Textarea: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLTextAreaElement> & react878.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
196
|
+
NumberInput: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
197
|
+
Checkbox: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox20.CheckboxProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
198
|
+
Radio: react878.FC;
|
|
199
|
+
Select: react878.FC;
|
|
200
|
+
Switch: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch20.SwitchProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
201
|
+
DatePicker: react878.ForwardRefExoticComponent<Partial<{
|
|
202
|
+
value?: Date;
|
|
203
|
+
onChange?: (date: Date | undefined) => void;
|
|
204
|
+
placeholder?: string;
|
|
205
|
+
} & Omit<{
|
|
206
|
+
value?: Date;
|
|
207
|
+
onChange?: (date: Date | undefined) => void;
|
|
208
|
+
placeholder?: string;
|
|
209
|
+
} & Omit<react_day_picker20.DayPickerProps & {
|
|
210
|
+
buttonVariant?: React.ComponentProps<typeof void 0>["variant"];
|
|
211
|
+
}, "onSelect" | "selected" | "mode">, "onSelect" | "selected" | "mode">> & react878.RefAttributes<unknown>>;
|
|
212
|
+
Row: typeof Row;
|
|
213
|
+
Column: typeof Column;
|
|
214
|
+
FormGrid: typeof FormGrid;
|
|
215
|
+
Separator: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator20.SeparatorProps & react878.RefAttributes<HTMLDivElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
216
|
+
ArrayCards: ComposedArrayProps;
|
|
217
|
+
ArrayDialog: react878.FC<ArrayComponentProps>;
|
|
218
|
+
ArrayCollapse: react878.FC<ArrayComponentProps & {
|
|
219
|
+
defaultActiveKey?: Array<string | number>;
|
|
220
|
+
mode?: "accordion" | "multiple";
|
|
221
|
+
}>;
|
|
222
|
+
ArrayPopover: react878.FC<ArrayComponentProps>;
|
|
223
|
+
ObjectContainer: react878.FC<ObjectContainerProps>;
|
|
224
|
+
}, Component_4, Decorator_4>): JSX.Element;
|
|
225
|
+
displayName: string;
|
|
226
|
+
};
|
|
227
|
+
Boolean: {
|
|
228
|
+
<Decorator_5 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord", Component_5 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord">(props: _formily_react23.ISchemaTypeFieldProps<{
|
|
229
|
+
FormItem: react878.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
230
|
+
children?: react878.ReactNode | undefined;
|
|
231
|
+
}>, "ref"> & react878.RefAttributes<unknown>>;
|
|
232
|
+
Hidden: react878.ForwardRefExoticComponent<Partial<{
|
|
233
|
+
children?: React.ReactNode;
|
|
234
|
+
value?: string;
|
|
235
|
+
}> & react878.RefAttributes<unknown>>;
|
|
236
|
+
Input: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
237
|
+
Textarea: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLTextAreaElement> & react878.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
238
|
+
NumberInput: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
239
|
+
Checkbox: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox20.CheckboxProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
240
|
+
Radio: react878.FC;
|
|
241
|
+
Select: react878.FC;
|
|
242
|
+
Switch: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch20.SwitchProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
243
|
+
DatePicker: react878.ForwardRefExoticComponent<Partial<{
|
|
244
|
+
value?: Date;
|
|
245
|
+
onChange?: (date: Date | undefined) => void;
|
|
246
|
+
placeholder?: string;
|
|
247
|
+
} & Omit<{
|
|
248
|
+
value?: Date;
|
|
249
|
+
onChange?: (date: Date | undefined) => void;
|
|
250
|
+
placeholder?: string;
|
|
251
|
+
} & Omit<react_day_picker20.DayPickerProps & {
|
|
252
|
+
buttonVariant?: React.ComponentProps<typeof void 0>["variant"];
|
|
253
|
+
}, "onSelect" | "selected" | "mode">, "onSelect" | "selected" | "mode">> & react878.RefAttributes<unknown>>;
|
|
254
|
+
Row: typeof Row;
|
|
255
|
+
Column: typeof Column;
|
|
256
|
+
FormGrid: typeof FormGrid;
|
|
257
|
+
Separator: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator20.SeparatorProps & react878.RefAttributes<HTMLDivElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
258
|
+
ArrayCards: ComposedArrayProps;
|
|
259
|
+
ArrayDialog: react878.FC<ArrayComponentProps>;
|
|
260
|
+
ArrayCollapse: react878.FC<ArrayComponentProps & {
|
|
261
|
+
defaultActiveKey?: Array<string | number>;
|
|
262
|
+
mode?: "accordion" | "multiple";
|
|
263
|
+
}>;
|
|
264
|
+
ArrayPopover: react878.FC<ArrayComponentProps>;
|
|
265
|
+
ObjectContainer: react878.FC<ObjectContainerProps>;
|
|
266
|
+
}, Component_5, Decorator_5>): JSX.Element;
|
|
267
|
+
displayName: string;
|
|
268
|
+
};
|
|
269
|
+
Date: {
|
|
270
|
+
<Decorator_6 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord", Component_6 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord">(props: _formily_react23.ISchemaTypeFieldProps<{
|
|
271
|
+
FormItem: react878.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
272
|
+
children?: react878.ReactNode | undefined;
|
|
273
|
+
}>, "ref"> & react878.RefAttributes<unknown>>;
|
|
274
|
+
Hidden: react878.ForwardRefExoticComponent<Partial<{
|
|
275
|
+
children?: React.ReactNode;
|
|
276
|
+
value?: string;
|
|
277
|
+
}> & react878.RefAttributes<unknown>>;
|
|
278
|
+
Input: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
279
|
+
Textarea: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLTextAreaElement> & react878.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
280
|
+
NumberInput: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
281
|
+
Checkbox: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox20.CheckboxProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
282
|
+
Radio: react878.FC;
|
|
283
|
+
Select: react878.FC;
|
|
284
|
+
Switch: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch20.SwitchProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
285
|
+
DatePicker: react878.ForwardRefExoticComponent<Partial<{
|
|
286
|
+
value?: Date;
|
|
287
|
+
onChange?: (date: Date | undefined) => void;
|
|
288
|
+
placeholder?: string;
|
|
289
|
+
} & Omit<{
|
|
290
|
+
value?: Date;
|
|
291
|
+
onChange?: (date: Date | undefined) => void;
|
|
292
|
+
placeholder?: string;
|
|
293
|
+
} & Omit<react_day_picker20.DayPickerProps & {
|
|
294
|
+
buttonVariant?: React.ComponentProps<typeof void 0>["variant"];
|
|
295
|
+
}, "onSelect" | "selected" | "mode">, "onSelect" | "selected" | "mode">> & react878.RefAttributes<unknown>>;
|
|
296
|
+
Row: typeof Row;
|
|
297
|
+
Column: typeof Column;
|
|
298
|
+
FormGrid: typeof FormGrid;
|
|
299
|
+
Separator: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator20.SeparatorProps & react878.RefAttributes<HTMLDivElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
300
|
+
ArrayCards: ComposedArrayProps;
|
|
301
|
+
ArrayDialog: react878.FC<ArrayComponentProps>;
|
|
302
|
+
ArrayCollapse: react878.FC<ArrayComponentProps & {
|
|
303
|
+
defaultActiveKey?: Array<string | number>;
|
|
304
|
+
mode?: "accordion" | "multiple";
|
|
305
|
+
}>;
|
|
306
|
+
ArrayPopover: react878.FC<ArrayComponentProps>;
|
|
307
|
+
ObjectContainer: react878.FC<ObjectContainerProps>;
|
|
308
|
+
}, Component_6, Decorator_6>): JSX.Element;
|
|
309
|
+
displayName: string;
|
|
310
|
+
};
|
|
311
|
+
DateTime: {
|
|
312
|
+
<Decorator_7 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord", Component_7 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord">(props: _formily_react23.ISchemaTypeFieldProps<{
|
|
313
|
+
FormItem: react878.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
314
|
+
children?: react878.ReactNode | undefined;
|
|
315
|
+
}>, "ref"> & react878.RefAttributes<unknown>>;
|
|
316
|
+
Hidden: react878.ForwardRefExoticComponent<Partial<{
|
|
317
|
+
children?: React.ReactNode;
|
|
318
|
+
value?: string;
|
|
319
|
+
}> & react878.RefAttributes<unknown>>;
|
|
320
|
+
Input: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
321
|
+
Textarea: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLTextAreaElement> & react878.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
322
|
+
NumberInput: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
323
|
+
Checkbox: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox20.CheckboxProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
324
|
+
Radio: react878.FC;
|
|
325
|
+
Select: react878.FC;
|
|
326
|
+
Switch: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch20.SwitchProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
327
|
+
DatePicker: react878.ForwardRefExoticComponent<Partial<{
|
|
328
|
+
value?: Date;
|
|
329
|
+
onChange?: (date: Date | undefined) => void;
|
|
330
|
+
placeholder?: string;
|
|
331
|
+
} & Omit<{
|
|
332
|
+
value?: Date;
|
|
333
|
+
onChange?: (date: Date | undefined) => void;
|
|
334
|
+
placeholder?: string;
|
|
335
|
+
} & Omit<react_day_picker20.DayPickerProps & {
|
|
336
|
+
buttonVariant?: React.ComponentProps<typeof void 0>["variant"];
|
|
337
|
+
}, "onSelect" | "selected" | "mode">, "onSelect" | "selected" | "mode">> & react878.RefAttributes<unknown>>;
|
|
338
|
+
Row: typeof Row;
|
|
339
|
+
Column: typeof Column;
|
|
340
|
+
FormGrid: typeof FormGrid;
|
|
341
|
+
Separator: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator20.SeparatorProps & react878.RefAttributes<HTMLDivElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
342
|
+
ArrayCards: ComposedArrayProps;
|
|
343
|
+
ArrayDialog: react878.FC<ArrayComponentProps>;
|
|
344
|
+
ArrayCollapse: react878.FC<ArrayComponentProps & {
|
|
345
|
+
defaultActiveKey?: Array<string | number>;
|
|
346
|
+
mode?: "accordion" | "multiple";
|
|
347
|
+
}>;
|
|
348
|
+
ArrayPopover: react878.FC<ArrayComponentProps>;
|
|
349
|
+
ObjectContainer: react878.FC<ObjectContainerProps>;
|
|
350
|
+
}, Component_7, Decorator_7>): JSX.Element;
|
|
351
|
+
displayName: string;
|
|
352
|
+
};
|
|
353
|
+
Void: {
|
|
354
|
+
<Decorator_8 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord", Component_8 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord">(props: _formily_react23.ISchemaTypeFieldProps<{
|
|
355
|
+
FormItem: react878.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
356
|
+
children?: react878.ReactNode | undefined;
|
|
357
|
+
}>, "ref"> & react878.RefAttributes<unknown>>;
|
|
358
|
+
Hidden: react878.ForwardRefExoticComponent<Partial<{
|
|
359
|
+
children?: React.ReactNode;
|
|
360
|
+
value?: string;
|
|
361
|
+
}> & react878.RefAttributes<unknown>>;
|
|
362
|
+
Input: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
363
|
+
Textarea: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLTextAreaElement> & react878.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
364
|
+
NumberInput: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
365
|
+
Checkbox: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox20.CheckboxProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
366
|
+
Radio: react878.FC;
|
|
367
|
+
Select: react878.FC;
|
|
368
|
+
Switch: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch20.SwitchProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
369
|
+
DatePicker: react878.ForwardRefExoticComponent<Partial<{
|
|
370
|
+
value?: Date;
|
|
371
|
+
onChange?: (date: Date | undefined) => void;
|
|
372
|
+
placeholder?: string;
|
|
373
|
+
} & Omit<{
|
|
374
|
+
value?: Date;
|
|
375
|
+
onChange?: (date: Date | undefined) => void;
|
|
376
|
+
placeholder?: string;
|
|
377
|
+
} & Omit<react_day_picker20.DayPickerProps & {
|
|
378
|
+
buttonVariant?: React.ComponentProps<typeof void 0>["variant"];
|
|
379
|
+
}, "onSelect" | "selected" | "mode">, "onSelect" | "selected" | "mode">> & react878.RefAttributes<unknown>>;
|
|
380
|
+
Row: typeof Row;
|
|
381
|
+
Column: typeof Column;
|
|
382
|
+
FormGrid: typeof FormGrid;
|
|
383
|
+
Separator: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator20.SeparatorProps & react878.RefAttributes<HTMLDivElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
384
|
+
ArrayCards: ComposedArrayProps;
|
|
385
|
+
ArrayDialog: react878.FC<ArrayComponentProps>;
|
|
386
|
+
ArrayCollapse: react878.FC<ArrayComponentProps & {
|
|
387
|
+
defaultActiveKey?: Array<string | number>;
|
|
388
|
+
mode?: "accordion" | "multiple";
|
|
389
|
+
}>;
|
|
390
|
+
ArrayPopover: react878.FC<ArrayComponentProps>;
|
|
391
|
+
ObjectContainer: react878.FC<ObjectContainerProps>;
|
|
392
|
+
}, Component_8, Decorator_8>): JSX.Element;
|
|
393
|
+
displayName: string;
|
|
394
|
+
};
|
|
395
|
+
Number: {
|
|
396
|
+
<Decorator_9 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord", Component_9 extends "Radio" | "FormItem" | "Hidden" | "Input" | "Textarea" | "NumberInput" | "Checkbox" | "Select" | "Switch" | "DatePicker" | "Row" | "Column" | "FormGrid" | "Separator" | "ArrayCards" | "ArrayDialog" | "ArrayCollapse" | "ArrayPopover" | "ObjectContainer" | "FormItem.$$typeof" | "Hidden.$$typeof" | "Input.$$typeof" | "Textarea.$$typeof" | "NumberInput.$$typeof" | "Checkbox.$$typeof" | "Switch.$$typeof" | "DatePicker.$$typeof" | "Separator.$$typeof" | "ArrayCards.Addition" | "ArrayCards.Remove" | "ArrayCards.MoveUp" | "ArrayCards.MoveDown" | "ArrayCards.Edit" | "ArrayCards.Index" | "ArrayCards.Empty" | "ArrayCards.Copy" | "ArrayCards.Label" | "ArrayCards.useArray" | "ArrayCards.useIndex" | "ArrayCards.useRecord">(props: _formily_react23.ISchemaTypeFieldProps<{
|
|
397
|
+
FormItem: react878.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
398
|
+
children?: react878.ReactNode | undefined;
|
|
399
|
+
}>, "ref"> & react878.RefAttributes<unknown>>;
|
|
400
|
+
Hidden: react878.ForwardRefExoticComponent<Partial<{
|
|
401
|
+
children?: React.ReactNode;
|
|
402
|
+
value?: string;
|
|
403
|
+
}> & react878.RefAttributes<unknown>>;
|
|
404
|
+
Input: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
405
|
+
Textarea: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLTextAreaElement> & react878.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
406
|
+
NumberInput: react878.ForwardRefExoticComponent<Omit<Partial<react878.ClassAttributes<HTMLInputElement> & react878.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
407
|
+
Checkbox: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox20.CheckboxProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
408
|
+
Radio: react878.FC;
|
|
409
|
+
Select: react878.FC;
|
|
410
|
+
Switch: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch20.SwitchProps & react878.RefAttributes<HTMLButtonElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
411
|
+
DatePicker: react878.ForwardRefExoticComponent<Partial<{
|
|
412
|
+
value?: Date;
|
|
413
|
+
onChange?: (date: Date | undefined) => void;
|
|
414
|
+
placeholder?: string;
|
|
415
|
+
} & Omit<{
|
|
416
|
+
value?: Date;
|
|
417
|
+
onChange?: (date: Date | undefined) => void;
|
|
418
|
+
placeholder?: string;
|
|
419
|
+
} & Omit<react_day_picker20.DayPickerProps & {
|
|
420
|
+
buttonVariant?: React.ComponentProps<typeof void 0>["variant"];
|
|
421
|
+
}, "onSelect" | "selected" | "mode">, "onSelect" | "selected" | "mode">> & react878.RefAttributes<unknown>>;
|
|
422
|
+
Row: typeof Row;
|
|
423
|
+
Column: typeof Column;
|
|
424
|
+
FormGrid: typeof FormGrid;
|
|
425
|
+
Separator: react878.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator20.SeparatorProps & react878.RefAttributes<HTMLDivElement>>, "ref"> & react878.RefAttributes<unknown>>;
|
|
426
|
+
ArrayCards: ComposedArrayProps;
|
|
427
|
+
ArrayDialog: react878.FC<ArrayComponentProps>;
|
|
428
|
+
ArrayCollapse: react878.FC<ArrayComponentProps & {
|
|
429
|
+
defaultActiveKey?: Array<string | number>;
|
|
430
|
+
mode?: "accordion" | "multiple";
|
|
431
|
+
}>;
|
|
432
|
+
ArrayPopover: react878.FC<ArrayComponentProps>;
|
|
433
|
+
ObjectContainer: react878.FC<ObjectContainerProps>;
|
|
434
|
+
}, Component_9, Decorator_9>): JSX.Element;
|
|
435
|
+
displayName: string;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
//#endregion
|
|
439
|
+
export { SchemaFieldBasicComponents, SchemaFieldBasics };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ArrayCards } from "../array-cards/array-cards.js";
|
|
2
|
+
import "../array-cards/index.js";
|
|
3
|
+
import { ArrayCollapse } from "../array-collapse/array-collapse.js";
|
|
4
|
+
import "../array-collapse/index.js";
|
|
5
|
+
import { Checkbox } from "../checkbox.js";
|
|
6
|
+
import { Column } from "../column.js";
|
|
7
|
+
import { DatePicker } from "../date-picker.js";
|
|
8
|
+
import { FormGrid } from "../form-grid.js";
|
|
9
|
+
import { FormItem } from "../form-item.js";
|
|
10
|
+
import { Input } from "../input.js";
|
|
11
|
+
import { ArrayDialog } from "../array-dialog/array-dialog.js";
|
|
12
|
+
import "../array-dialog/index.js";
|
|
13
|
+
import { ArrayPopover } from "../array-popover/array-popover.js";
|
|
14
|
+
import "../array-popover/index.js";
|
|
15
|
+
import { Hidden } from "../hidden.js";
|
|
16
|
+
import { NumberInput } from "../number-input.js";
|
|
17
|
+
import { ObjectContainer } from "../object-container.js";
|
|
18
|
+
import { ConnectedRadio } from "../radio.js";
|
|
19
|
+
import { Row } from "../row.js";
|
|
20
|
+
import { Select } from "../select.js";
|
|
21
|
+
import { Separator } from "../separator.js";
|
|
22
|
+
import { Switch } from "../switch.js";
|
|
23
|
+
import { Textarea } from "../textarea.js";
|
|
24
|
+
import { createSchemaField } from "@formily/react";
|
|
25
|
+
|
|
26
|
+
//#region src/components/schema-field/schema-field-basics.tsx
|
|
27
|
+
const SchemaFieldBasicComponents = {
|
|
28
|
+
FormItem,
|
|
29
|
+
Hidden,
|
|
30
|
+
Input,
|
|
31
|
+
Textarea,
|
|
32
|
+
NumberInput,
|
|
33
|
+
Checkbox,
|
|
34
|
+
Radio: ConnectedRadio,
|
|
35
|
+
Select,
|
|
36
|
+
Switch,
|
|
37
|
+
DatePicker,
|
|
38
|
+
Row,
|
|
39
|
+
Column,
|
|
40
|
+
FormGrid,
|
|
41
|
+
Separator,
|
|
42
|
+
ArrayCards,
|
|
43
|
+
ArrayDialog,
|
|
44
|
+
ArrayCollapse,
|
|
45
|
+
ArrayPopover,
|
|
46
|
+
ObjectContainer
|
|
47
|
+
};
|
|
48
|
+
const SchemaFieldBasics = createSchemaField({ components: SchemaFieldBasicComponents });
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { SchemaFieldBasicComponents, SchemaFieldBasics };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_file_upload = require('../file-upload/file-upload.cjs');
|
|
3
|
+
const require_file_upload_inline = require('../file-upload/file-upload-inline.cjs');
|
|
4
|
+
require('../file-upload/index.cjs');
|
|
5
|
+
const require_icon_picker = require('../icon-picker.cjs');
|
|
6
|
+
const require_schema_field = require('./schema-field.cjs');
|
|
7
|
+
const require_rich_text_editor = require('../rich-text-editor.cjs');
|
|
8
|
+
require('./index.cjs');
|
|
9
|
+
let __formily_react = require("@formily/react");
|
|
10
|
+
__formily_react = require_rolldown_runtime.__toESM(__formily_react);
|
|
11
|
+
|
|
12
|
+
//#region src/components/schema-field/schema-field-extended.tsx
|
|
13
|
+
const schemaFieldExtendedComponents = {
|
|
14
|
+
...require_schema_field.schemaFieldComponents,
|
|
15
|
+
FileUploadInline: require_file_upload_inline.FileUploadInline,
|
|
16
|
+
IconPicker: require_icon_picker.IconPicker,
|
|
17
|
+
FileUpload: require_file_upload.FileUpload,
|
|
18
|
+
RichTextEditor: require_rich_text_editor.RichTextEditor
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* SchemaField with all Shadcn Formily components pre-registered
|
|
22
|
+
* Use this to render forms from JSON Schema
|
|
23
|
+
*/
|
|
24
|
+
const SchemaFieldExtended = (0, __formily_react.createSchemaField)({ components: schemaFieldExtendedComponents });
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.SchemaFieldExtended = SchemaFieldExtended;
|
|
28
|
+
exports.schemaFieldExtendedComponents = schemaFieldExtendedComponents;
|