@pixpilot/formily-shadcn 0.16.3 → 0.16.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/form-grid.d.cts +2 -2
- package/dist/components/form-item/connected-form-item.d.cts +4 -4
- package/dist/components/form-item/connected-form-item.d.ts +4 -4
- package/dist/components/form.d.cts +2 -2
- package/dist/components/icon-picker.d.cts +3 -3
- package/dist/components/input.d.cts +2 -2
- package/dist/components/number-input.d.cts +2 -2
- package/dist/components/row.d.cts +2 -2
- package/dist/components/schema-field/schema-field-basics.cjs +32 -32
- package/dist/components/schema-field/schema-field-basics.d.cts +338 -338
- package/dist/components/schema-field/schema-field-basics.d.ts +333 -333
- package/dist/components/schema-field/schema-field-basics.js +32 -32
- package/dist/components/schema-field/schema-field-extended.d.cts +482 -468
- package/dist/components/schema-field/schema-field-extended.d.ts +482 -468
- package/dist/components/schema-field/schema-field.cjs +15 -9
- package/dist/components/schema-field/schema-field.d.cts +399 -385
- package/dist/components/schema-field/schema-field.d.ts +395 -381
- package/dist/components/schema-field/schema-field.js +15 -9
- package/dist/components/slider/index.cjs +2 -0
- package/dist/components/slider/index.d.cts +2 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.js +2 -0
- package/dist/components/slider/map-props.cjs +26 -0
- package/dist/components/slider/map-props.js +24 -0
- package/dist/components/slider/slider-input.cjs +12 -0
- package/dist/components/slider/slider-input.d.cts +7 -0
- package/dist/components/slider/slider-input.d.ts +7 -0
- package/dist/components/slider/slider-input.js +9 -0
- package/dist/components/slider/slider.cjs +16 -0
- package/dist/components/slider/slider.d.cts +11 -0
- package/dist/components/slider/slider.d.ts +11 -0
- package/dist/components/slider/slider.js +13 -0
- package/dist/components/switch.d.cts +2 -2
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/tags-input-inline.d.cts +2 -2
- package/dist/components/tags-input-inline.d.ts +2 -2
- package/dist/components/textarea.d.cts +2 -2
- package/dist/components/textarea.d.ts +2 -2
- package/dist/index.cjs +4 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/package.json +5 -5
- package/dist/components/slider.cjs +0 -40
- package/dist/components/slider.d.cts +0 -12
- package/dist/components/slider.d.ts +0 -12
- package/dist/components/slider.js +0 -36
|
@@ -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/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_runtime1.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { FormGrid };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FormItemProps } from "./form-item-types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react1453 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/form-item/connected-form-item.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* FormItem component connected to Formily field state.
|
|
7
7
|
* Automatically maps field validation state to component props.
|
|
8
8
|
*/
|
|
9
|
-
declare const FormItem:
|
|
10
|
-
children?:
|
|
11
|
-
}>, "ref"> &
|
|
9
|
+
declare const FormItem: react1453.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
10
|
+
children?: react1453.ReactNode | undefined;
|
|
11
|
+
}>, "ref"> & react1453.RefAttributes<unknown>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { FormItem };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FormItemProps } from "./form-item-types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react1453 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/form-item/connected-form-item.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* FormItem component connected to Formily field state.
|
|
7
7
|
* Automatically maps field validation state to component props.
|
|
8
8
|
*/
|
|
9
|
-
declare const FormItem:
|
|
10
|
-
children?:
|
|
11
|
-
}>, "ref"> &
|
|
9
|
+
declare const FormItem: react1453.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
10
|
+
children?: react1453.ReactNode | undefined;
|
|
11
|
+
}>, "ref"> & react1453.RefAttributes<unknown>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { FormItem };
|
|
@@ -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
|
|
5
|
+
import * as react_jsx_runtime0 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):
|
|
28
|
+
}: IFormProps): react_jsx_runtime0.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Form$1 as Form };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react4 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:
|
|
11
|
+
declare const IconPicker: react4.ForwardRefExoticComponent<Partial<Omit<IconPickerProps, "providers"> & {
|
|
12
12
|
providers?: IconProviderProps[];
|
|
13
|
-
}> &
|
|
13
|
+
}> & react4.RefAttributes<unknown>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { IconPicker };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react6 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/input.d.ts
|
|
4
4
|
|
|
@@ -6,6 +6,6 @@ import * as react8 from "react";
|
|
|
6
6
|
* Formily-connected Input component
|
|
7
7
|
* Automatically connects shadcn Input to Formily field state
|
|
8
8
|
*/
|
|
9
|
-
declare const Input:
|
|
9
|
+
declare const Input: react6.ForwardRefExoticComponent<Omit<Partial<react6.ClassAttributes<HTMLInputElement> & react6.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react6.RefAttributes<unknown>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Input };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react10 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/number-input.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Formily-connected Number Input component
|
|
6
6
|
*/
|
|
7
|
-
declare const NumberInput:
|
|
7
|
+
declare const NumberInput: react10.ForwardRefExoticComponent<Omit<Partial<react10.ClassAttributes<HTMLInputElement> & react10.InputHTMLAttributes<HTMLInputElement>>, "ref"> & react10.RefAttributes<unknown>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { NumberInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 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_runtime3.JSX.Element;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { Row };
|
|
@@ -33,62 +33,62 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
33
33
|
|
|
34
34
|
//#region src/components/schema-field/schema-field-basics.tsx
|
|
35
35
|
const basicComponentRegistry = {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Input: {
|
|
39
|
-
component: require_input.Input,
|
|
36
|
+
ArrayCards: {
|
|
37
|
+
component: require_array_cards.ArrayCards,
|
|
40
38
|
decorator: "FormItem"
|
|
41
39
|
},
|
|
42
|
-
|
|
43
|
-
component:
|
|
40
|
+
ArrayCollapse: {
|
|
41
|
+
component: require_array_collapse.ArrayCollapse,
|
|
44
42
|
decorator: "FormItem"
|
|
45
43
|
},
|
|
46
|
-
|
|
47
|
-
component:
|
|
44
|
+
ArrayDialog: {
|
|
45
|
+
component: require_array_dialog.ArrayDialog,
|
|
48
46
|
decorator: "FormItem"
|
|
49
47
|
},
|
|
50
|
-
|
|
51
|
-
component:
|
|
48
|
+
ArrayPopover: {
|
|
49
|
+
component: require_array_popover.ArrayPopover,
|
|
52
50
|
decorator: "FormItem"
|
|
53
51
|
},
|
|
54
|
-
|
|
55
|
-
component:
|
|
52
|
+
Checkbox: {
|
|
53
|
+
component: require_checkbox.Checkbox,
|
|
56
54
|
decorator: "FormItem"
|
|
57
55
|
},
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
Column: { component: require_column.Column },
|
|
57
|
+
DatePicker: {
|
|
58
|
+
component: require_date_picker.DatePicker,
|
|
60
59
|
decorator: "FormItem"
|
|
61
60
|
},
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
FormGrid: { component: require_form_grid.FormGrid },
|
|
62
|
+
FormItem: { component: require_connected_form_item.FormItem },
|
|
63
|
+
Hidden: { component: require_hidden.Hidden },
|
|
64
|
+
Input: {
|
|
65
|
+
component: require_input.Input,
|
|
64
66
|
decorator: "FormItem"
|
|
65
67
|
},
|
|
66
|
-
|
|
67
|
-
component:
|
|
68
|
+
NumberInput: {
|
|
69
|
+
component: require_number_input.NumberInput,
|
|
68
70
|
decorator: "FormItem"
|
|
69
71
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
FormGrid: { component: require_form_grid.FormGrid },
|
|
73
|
-
Separator: { component: require_separator.Separator },
|
|
74
|
-
ArrayCards: {
|
|
75
|
-
component: require_array_cards.ArrayCards,
|
|
72
|
+
ObjectContainer: {
|
|
73
|
+
component: require_object_container.ObjectContainer,
|
|
76
74
|
decorator: "FormItem"
|
|
77
75
|
},
|
|
78
|
-
|
|
79
|
-
component:
|
|
76
|
+
Radio: {
|
|
77
|
+
component: require_radio.ConnectedRadio,
|
|
80
78
|
decorator: "FormItem"
|
|
81
79
|
},
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
Row: { component: require_row.Row },
|
|
81
|
+
Select: {
|
|
82
|
+
component: require_select.Select,
|
|
84
83
|
decorator: "FormItem"
|
|
85
84
|
},
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
Separator: { component: require_separator.Separator },
|
|
86
|
+
Switch: {
|
|
87
|
+
component: require_switch.Switch,
|
|
88
88
|
decorator: "FormItem"
|
|
89
89
|
},
|
|
90
|
-
|
|
91
|
-
component:
|
|
90
|
+
Textarea: {
|
|
91
|
+
component: require_textarea.Textarea,
|
|
92
92
|
decorator: "FormItem"
|
|
93
93
|
}
|
|
94
94
|
};
|