@pixpilot/formily-shadcn 2.2.0 → 2.2.2
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/array-toggle-group/ArrayToggleGroup.d.ts +2 -2
- package/dist/components/column/Column.d.cts +2 -2
- package/dist/components/column/Column.d.ts +2 -2
- package/dist/components/date-picker/DatePicker.d.cts +3 -3
- package/dist/components/date-picker/DatePicker.d.ts +3 -3
- package/dist/components/dialog-item/BaseDialogItem.cjs +1 -1
- package/dist/components/dialog-item/BaseDialogItem.js +1 -1
- package/dist/components/dialog-item/ConnectedDialogItem.d.cts +4 -4
- package/dist/components/dialog-item/ConnectedDialogItem.d.ts +4 -4
- package/dist/components/drawer-item/ConnectedDrawerItem.d.ts +4 -4
- package/dist/components/form/Form.d.ts +2 -2
- package/dist/components/form-grid/FormGrid.d.cts +2 -2
- package/dist/components/form-grid/FormGrid.d.ts +2 -2
- package/dist/components/popover-item/ConnectedPopoverItem.d.ts +4 -4
- package/dist/components/radio/Radio.d.cts +2 -2
- package/dist/components/radio/Radio.d.ts +2 -2
- package/dist/components/row/Row.d.cts +2 -2
- package/dist/components/row/Row.d.ts +2 -2
- package/dist/components/schema-field/schema-field-basics.d.ts +380 -380
- package/dist/components/schema-field/schema-field-extended.d.cts +9 -9
- package/dist/components/schema-field/schema-field-extended.d.ts +534 -534
- package/dist/components/schema-field/schema-field.d.ts +467 -467
- package/package.json +8 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _formily_react0 from "@formily/react";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ToggleGroupProps } from "@pixpilot/shadcn-ui";
|
|
4
4
|
|
|
@@ -60,6 +60,6 @@ interface ArrayToggleGroupProps extends Omit<ToggleGroupProps, 'value' | 'onChan
|
|
|
60
60
|
* };
|
|
61
61
|
* ```
|
|
62
62
|
*/
|
|
63
|
-
declare const ArrayToggleGroup: React.MemoExoticComponent<
|
|
63
|
+
declare const ArrayToggleGroup: React.MemoExoticComponent<_formily_react0.ReactFC<Omit<ArrayToggleGroupProps, "ref">>>;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { ArrayToggleGroup, ArrayToggleGroupProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/column/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_runtime4.JSX.Element;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { Column, IColumnProps };
|
|
@@ -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/column/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_runtime0.JSX.Element;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { Column, IColumnProps };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react2 from "react";
|
|
2
2
|
import { DatePickerProps } from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/date-picker/DatePicker.d.ts
|
|
5
5
|
|
|
6
|
-
declare const DatePicker:
|
|
6
|
+
declare const DatePicker: react2.ForwardRefExoticComponent<Partial<{
|
|
7
7
|
value?: Date;
|
|
8
8
|
onChange?: (date: Date | undefined) => void;
|
|
9
9
|
placeholder?: string;
|
|
10
|
-
} & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> &
|
|
10
|
+
} & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> & react2.RefAttributes<unknown>>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { DatePicker };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react0 from "react";
|
|
2
2
|
import { DatePickerProps } from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/date-picker/DatePicker.d.ts
|
|
5
5
|
|
|
6
|
-
declare const DatePicker$1:
|
|
6
|
+
declare const DatePicker$1: react0.ForwardRefExoticComponent<Partial<{
|
|
7
7
|
value?: Date;
|
|
8
8
|
onChange?: (date: Date | undefined) => void;
|
|
9
9
|
placeholder?: string;
|
|
10
|
-
} & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> &
|
|
10
|
+
} & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> & react0.RefAttributes<unknown>>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { DatePicker$1 as DatePicker };
|
|
@@ -84,7 +84,7 @@ const BaseDialogItem = ({ children, label, description, trigger: triggerProp, op
|
|
|
84
84
|
}),
|
|
85
85
|
open && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn_ui.DialogBody, {
|
|
86
86
|
...slots?.body,
|
|
87
|
-
className: (0, __pixpilot_shadcn.cn)("grid
|
|
87
|
+
className: (0, __pixpilot_shadcn.cn)("grid", gapClass, slots?.body?.className),
|
|
88
88
|
children: [children, feedbackText != null && feedbackText !== "" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
89
89
|
className: (0, __pixpilot_shadcn.cn)("text-[0.8rem]", feedbackStatus === "error" && "text-destructive font-medium", feedbackStatus === "warning" && "text-amber-600", feedbackStatus === "success" && "text-green-600"),
|
|
90
90
|
children: feedbackText
|
|
@@ -79,7 +79,7 @@ const BaseDialogItem = ({ children, label, description, trigger: triggerProp, op
|
|
|
79
79
|
}),
|
|
80
80
|
open && /* @__PURE__ */ jsxs(DialogBody, {
|
|
81
81
|
...slots?.body,
|
|
82
|
-
className: cn$1("grid
|
|
82
|
+
className: cn$1("grid", gapClass, slots?.body?.className),
|
|
83
83
|
children: [children, feedbackText != null && feedbackText !== "" && /* @__PURE__ */ jsx("p", {
|
|
84
84
|
className: cn$1("text-[0.8rem]", feedbackStatus === "error" && "text-destructive font-medium", feedbackStatus === "warning" && "text-amber-600", feedbackStatus === "success" && "text-green-600"),
|
|
85
85
|
children: feedbackText
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DialogItemProps } from "./BaseDialogItem.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react0 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/dialog-item/ConnectedDialogItem.d.ts
|
|
5
5
|
|
|
@@ -8,8 +8,8 @@ import * as react1 from "react";
|
|
|
8
8
|
* Maps field label, description, and validation state onto the decorator the
|
|
9
9
|
* same way FormItem does.
|
|
10
10
|
*/
|
|
11
|
-
declare const DialogItem:
|
|
12
|
-
children?:
|
|
13
|
-
}>, "ref"> &
|
|
11
|
+
declare const DialogItem: react0.ForwardRefExoticComponent<Omit<Partial<DialogItemProps & {
|
|
12
|
+
children?: react0.ReactNode | undefined;
|
|
13
|
+
}>, "ref"> & react0.RefAttributes<unknown>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { DialogItem };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DialogItemProps } from "./BaseDialogItem.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react1 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/dialog-item/ConnectedDialogItem.d.ts
|
|
5
5
|
|
|
@@ -8,8 +8,8 @@ import * as react1577 from "react";
|
|
|
8
8
|
* Maps field label, description, and validation state onto the decorator the
|
|
9
9
|
* same way FormItem does.
|
|
10
10
|
*/
|
|
11
|
-
declare const DialogItem:
|
|
12
|
-
children?:
|
|
13
|
-
}>, "ref"> &
|
|
11
|
+
declare const DialogItem: react1.ForwardRefExoticComponent<Omit<Partial<DialogItemProps & {
|
|
12
|
+
children?: react1.ReactNode | undefined;
|
|
13
|
+
}>, "ref"> & react1.RefAttributes<unknown>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { DialogItem };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DrawerItemProps } from "./BaseDrawerItem.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react4 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/drawer-item/ConnectedDrawerItem.d.ts
|
|
5
5
|
|
|
@@ -8,8 +8,8 @@ import * as react1580 from "react";
|
|
|
8
8
|
* Maps field label, description, and validation state onto the decorator the
|
|
9
9
|
* same way FormItem does.
|
|
10
10
|
*/
|
|
11
|
-
declare const DrawerItem:
|
|
12
|
-
children?:
|
|
13
|
-
}>, "ref"> &
|
|
11
|
+
declare const DrawerItem: react4.ForwardRefExoticComponent<Omit<Partial<DrawerItemProps & {
|
|
12
|
+
children?: react4.ReactNode | undefined;
|
|
13
|
+
}>, "ref"> & react4.RefAttributes<unknown>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { DrawerItem };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormContextStates } from "../context/form-context.js";
|
|
2
2
|
import "../context/index.js";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
5
5
|
import { Form } from "@formily/core";
|
|
6
6
|
|
|
7
7
|
//#region src/components/form/Form.d.ts
|
|
@@ -27,6 +27,6 @@ declare function Form$1({
|
|
|
27
27
|
onAutoSubmit,
|
|
28
28
|
layout,
|
|
29
29
|
settings
|
|
30
|
-
}: IFormProps):
|
|
30
|
+
}: IFormProps): react_jsx_runtime1.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { Form$1 as Form, IFormProps };
|
|
@@ -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/form-grid/FormGrid.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_runtime2.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { FormGrid, IFormGridProps };
|
|
@@ -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/FormGrid.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, IFormGridProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PopoverItemProps } from "./BasePopoverItem.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react7 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/popover-item/ConnectedPopoverItem.d.ts
|
|
5
5
|
|
|
@@ -8,8 +8,8 @@ import * as react0 from "react";
|
|
|
8
8
|
* Maps field label, description, and validation state onto the decorator the
|
|
9
9
|
* same way FormItem does.
|
|
10
10
|
*/
|
|
11
|
-
declare const PopoverItem:
|
|
12
|
-
children?:
|
|
13
|
-
}>, "ref"> &
|
|
11
|
+
declare const PopoverItem: react7.ForwardRefExoticComponent<Omit<Partial<PopoverItemProps & {
|
|
12
|
+
children?: react7.ReactNode | undefined;
|
|
13
|
+
}>, "ref"> & react7.RefAttributes<unknown>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { PopoverItem };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, FC } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
import { RadioGroup } from "@pixpilot/shadcn";
|
|
4
4
|
|
|
5
5
|
//#region src/components/radio/Radio.d.ts
|
|
@@ -15,7 +15,7 @@ type RadioProps = {
|
|
|
15
15
|
/**
|
|
16
16
|
* Radio component with options rendering
|
|
17
17
|
*/
|
|
18
|
-
declare function Radio(props: RadioProps):
|
|
18
|
+
declare function Radio(props: RadioProps): react_jsx_runtime3.JSX.Element;
|
|
19
19
|
declare namespace Radio {
|
|
20
20
|
var displayName: string;
|
|
21
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, FC } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
import { RadioGroup } from "@pixpilot/shadcn";
|
|
4
4
|
|
|
5
5
|
//#region src/components/radio/Radio.d.ts
|
|
@@ -15,7 +15,7 @@ type RadioProps = {
|
|
|
15
15
|
/**
|
|
16
16
|
* Radio component with options rendering
|
|
17
17
|
*/
|
|
18
|
-
declare function Radio(props: RadioProps):
|
|
18
|
+
declare function Radio(props: RadioProps): react_jsx_runtime2.JSX.Element;
|
|
19
19
|
declare namespace Radio {
|
|
20
20
|
var displayName: string;
|
|
21
21
|
}
|
|
@@ -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/row/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_runtime0.JSX.Element;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { IRowProps, Row };
|
|
@@ -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/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 { IRowProps, Row };
|