@pixpilot/formily-shadcn 0.49.1 → 0.50.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/dist/components/ObjectContainer.cjs +30 -8
- package/dist/components/ObjectContainer.js +30 -8
- package/dist/components/Radio.d.cts +2 -2
- package/dist/components/Rating.d.cts +5 -5
- package/dist/components/Row.d.cts +2 -2
- package/dist/components/Separator.d.cts +2 -2
- package/dist/components/Switch.d.cts +2 -2
- package/dist/components/Switch.d.ts +2 -2
- package/dist/components/TagsInputInline.d.cts +3 -3
- package/dist/components/TagsInputInline.d.ts +2 -2
- package/dist/components/Textarea.d.cts +2 -2
- package/dist/components/context/form-context.d.cts +2 -0
- package/dist/components/context/form-context.d.ts +2 -0
- package/dist/components/file-upload/FileUpload.d.cts +8 -8
- package/dist/components/file-upload/FileUploadInline.d.cts +8 -8
- package/dist/components/form-item/ConnectedFormItem.d.cts +4 -4
- package/dist/components/number/NumberInput.d.cts +3 -3
- package/dist/components/schema-field/schema-field-basics.d.cts +292 -292
- package/dist/components/schema-field/schema-field-basics.d.ts +277 -277
- package/dist/components/schema-field/schema-field-extended.d.cts +607 -607
- package/dist/components/schema-field/schema-field-extended.d.ts +607 -607
- package/dist/components/schema-field/schema-field.d.cts +402 -402
- package/dist/components/schema-field/schema-field.d.ts +387 -387
- package/dist/components/slider/Slider.d.cts +3 -3
- package/dist/components/slider/Slider.d.ts +3 -3
- package/dist/components/slider/SliderInput.d.cts +3 -3
- package/dist/components/slider/SliderInput.d.ts +3 -3
- package/dist/components/slider/SliderSelect.d.cts +3 -3
- package/dist/components/slider/SliderSelect.d.ts +3 -3
- package/package.json +7 -7
|
@@ -23,6 +23,14 @@ const headerConfig = {
|
|
|
23
23
|
},
|
|
24
24
|
responsive: "gap-1.5 text-lg md:gap-2 md:text-xl lg:gap-2.5 lg:text-2xl"
|
|
25
25
|
};
|
|
26
|
+
const headerConfigFlat = {
|
|
27
|
+
fixed: {
|
|
28
|
+
sm: headerConfig.fixed.sm,
|
|
29
|
+
md: headerConfig.fixed.md,
|
|
30
|
+
lg: `${headerConfig.fixed.lg} gap-2`
|
|
31
|
+
},
|
|
32
|
+
responsive: `${headerConfig.responsive} lg:gap-2`
|
|
33
|
+
};
|
|
26
34
|
/**
|
|
27
35
|
* Card padding spacing configuration
|
|
28
36
|
* Controls vertical padding of the Card component
|
|
@@ -35,15 +43,23 @@ const cardPaddingConfig = {
|
|
|
35
43
|
},
|
|
36
44
|
responsive: "py-5 md:py-6 lg:py-7"
|
|
37
45
|
};
|
|
38
|
-
const
|
|
46
|
+
const cardPaddingConfigFlat = {
|
|
47
|
+
fixed: {
|
|
48
|
+
sm: "pt-6 first:!pt-0",
|
|
49
|
+
md: "pt-7 first:!pt-0",
|
|
50
|
+
lg: "pt-7 first:!pt-0"
|
|
51
|
+
},
|
|
52
|
+
responsive: "py-0 pt-6 md:pt-7 first:!pt-0"
|
|
53
|
+
};
|
|
54
|
+
const ObjectContainer = ({ className, children, label, description, variant: variantProp, slotProps,...rest }) => {
|
|
39
55
|
const effectiveLabel = require_use_label.useLabel(label);
|
|
40
56
|
const desc = require_use_description.useDescription(description);
|
|
41
|
-
const isFlat = variant === "flat";
|
|
42
57
|
const { layout } = require_use_form_context.useFormContext();
|
|
43
58
|
const { objectContainer, density } = layout || {};
|
|
59
|
+
const isFlat = (variantProp ?? objectContainer?.variant ?? "grouped") === "flat";
|
|
44
60
|
const gapClass = require_resolve_responsive_space.resolveResponsiveGapClass({ density });
|
|
45
|
-
const headerGapClass = require_resolve_responsive_space.resolveSpacingClass(density, headerConfig);
|
|
46
|
-
const cardPaddingClass = require_resolve_responsive_space.resolveSpacingClass(density, cardPaddingConfig);
|
|
61
|
+
const headerGapClass = require_resolve_responsive_space.resolveSpacingClass(density, isFlat ? headerConfigFlat : headerConfig);
|
|
62
|
+
const cardPaddingClass = require_resolve_responsive_space.resolveSpacingClass(density, isFlat ? cardPaddingConfigFlat : cardPaddingConfig);
|
|
47
63
|
const { card, content, description: contextDesc, header, title } = objectContainer || {};
|
|
48
64
|
const mergedCardProps = {
|
|
49
65
|
...card,
|
|
@@ -73,14 +89,20 @@ const ObjectContainer = ({ className, children, label, description, variant = "g
|
|
|
73
89
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.Card, {
|
|
74
90
|
...mergedCardProps,
|
|
75
91
|
...rest,
|
|
76
|
-
className: (0, __pixpilot_shadcn.cn)("relative", "form-object-card", "bg-transparent", gapClass, cardPaddingClass, isFlat && "border-0 shadow-none
|
|
92
|
+
className: (0, __pixpilot_shadcn.cn)("relative", "form-object-card", "bg-transparent", gapClass, cardPaddingClass, isFlat && "border-0 shadow-none ", className, mergedCardProps.className),
|
|
77
93
|
children: [(effectiveLabel != null || desc != null) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.CardHeader, {
|
|
78
94
|
...mergedHeaderProps,
|
|
79
95
|
className: (0, __pixpilot_shadcn.cn)("form-object-header", headerGapClass, mergedHeaderProps.className, isFlat && "px-0"),
|
|
80
|
-
children: [effectiveLabel != null && /* @__PURE__ */ (0, react_jsx_runtime.
|
|
96
|
+
children: [(effectiveLabel != null && effectiveLabel !== "" || mergedTitleProps.children !== null) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.CardTitle, {
|
|
81
97
|
...mergedTitleProps,
|
|
82
|
-
className: (0, __pixpilot_shadcn.cn)("form-object-title", mergedTitleProps.className),
|
|
83
|
-
children: effectiveLabel
|
|
98
|
+
className: (0, __pixpilot_shadcn.cn)("form-object-title flex items-center justify-between gap-4 w-full", mergedTitleProps.className),
|
|
99
|
+
children: [effectiveLabel != null && effectiveLabel !== "" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
100
|
+
className: "flex-1 truncate",
|
|
101
|
+
children: effectiveLabel
|
|
102
|
+
}), mergedTitleProps.children != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103
|
+
className: "flex items-center gap-2 shrink-0",
|
|
104
|
+
children: mergedTitleProps.children
|
|
105
|
+
})]
|
|
84
106
|
}), desc != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.CardDescription, {
|
|
85
107
|
...mergedDescProps,
|
|
86
108
|
className: (0, __pixpilot_shadcn.cn)("form-object-desc", mergedDescProps.className),
|
|
@@ -20,6 +20,14 @@ const headerConfig = {
|
|
|
20
20
|
},
|
|
21
21
|
responsive: "gap-1.5 text-lg md:gap-2 md:text-xl lg:gap-2.5 lg:text-2xl"
|
|
22
22
|
};
|
|
23
|
+
const headerConfigFlat = {
|
|
24
|
+
fixed: {
|
|
25
|
+
sm: headerConfig.fixed.sm,
|
|
26
|
+
md: headerConfig.fixed.md,
|
|
27
|
+
lg: `${headerConfig.fixed.lg} gap-2`
|
|
28
|
+
},
|
|
29
|
+
responsive: `${headerConfig.responsive} lg:gap-2`
|
|
30
|
+
};
|
|
23
31
|
/**
|
|
24
32
|
* Card padding spacing configuration
|
|
25
33
|
* Controls vertical padding of the Card component
|
|
@@ -32,15 +40,23 @@ const cardPaddingConfig = {
|
|
|
32
40
|
},
|
|
33
41
|
responsive: "py-5 md:py-6 lg:py-7"
|
|
34
42
|
};
|
|
35
|
-
const
|
|
43
|
+
const cardPaddingConfigFlat = {
|
|
44
|
+
fixed: {
|
|
45
|
+
sm: "pt-6 first:!pt-0",
|
|
46
|
+
md: "pt-7 first:!pt-0",
|
|
47
|
+
lg: "pt-7 first:!pt-0"
|
|
48
|
+
},
|
|
49
|
+
responsive: "py-0 pt-6 md:pt-7 first:!pt-0"
|
|
50
|
+
};
|
|
51
|
+
const ObjectContainer = ({ className, children, label, description, variant: variantProp, slotProps,...rest }) => {
|
|
36
52
|
const effectiveLabel = useLabel(label);
|
|
37
53
|
const desc = useDescription(description);
|
|
38
|
-
const isFlat = variant === "flat";
|
|
39
54
|
const { layout } = useFormContext();
|
|
40
55
|
const { objectContainer, density } = layout || {};
|
|
56
|
+
const isFlat = (variantProp ?? objectContainer?.variant ?? "grouped") === "flat";
|
|
41
57
|
const gapClass = resolveResponsiveGapClass({ density });
|
|
42
|
-
const headerGapClass = resolveSpacingClass(density, headerConfig);
|
|
43
|
-
const cardPaddingClass = resolveSpacingClass(density, cardPaddingConfig);
|
|
58
|
+
const headerGapClass = resolveSpacingClass(density, isFlat ? headerConfigFlat : headerConfig);
|
|
59
|
+
const cardPaddingClass = resolveSpacingClass(density, isFlat ? cardPaddingConfigFlat : cardPaddingConfig);
|
|
44
60
|
const { card, content, description: contextDesc, header, title } = objectContainer || {};
|
|
45
61
|
const mergedCardProps = {
|
|
46
62
|
...card,
|
|
@@ -70,14 +86,20 @@ const ObjectContainer = ({ className, children, label, description, variant = "g
|
|
|
70
86
|
return /* @__PURE__ */ jsxs(Card, {
|
|
71
87
|
...mergedCardProps,
|
|
72
88
|
...rest,
|
|
73
|
-
className: cn("relative", "form-object-card", "bg-transparent", gapClass, cardPaddingClass, isFlat && "border-0 shadow-none
|
|
89
|
+
className: cn("relative", "form-object-card", "bg-transparent", gapClass, cardPaddingClass, isFlat && "border-0 shadow-none ", className, mergedCardProps.className),
|
|
74
90
|
children: [(effectiveLabel != null || desc != null) && /* @__PURE__ */ jsxs(CardHeader, {
|
|
75
91
|
...mergedHeaderProps,
|
|
76
92
|
className: cn("form-object-header", headerGapClass, mergedHeaderProps.className, isFlat && "px-0"),
|
|
77
|
-
children: [effectiveLabel != null && /* @__PURE__ */
|
|
93
|
+
children: [(effectiveLabel != null && effectiveLabel !== "" || mergedTitleProps.children !== null) && /* @__PURE__ */ jsxs(CardTitle, {
|
|
78
94
|
...mergedTitleProps,
|
|
79
|
-
className: cn("form-object-title", mergedTitleProps.className),
|
|
80
|
-
children: effectiveLabel
|
|
95
|
+
className: cn("form-object-title flex items-center justify-between gap-4 w-full", mergedTitleProps.className),
|
|
96
|
+
children: [effectiveLabel != null && effectiveLabel !== "" && /* @__PURE__ */ jsx("span", {
|
|
97
|
+
className: "flex-1 truncate",
|
|
98
|
+
children: effectiveLabel
|
|
99
|
+
}), mergedTitleProps.children != null && /* @__PURE__ */ jsx("div", {
|
|
100
|
+
className: "flex items-center gap-2 shrink-0",
|
|
101
|
+
children: mergedTitleProps.children
|
|
102
|
+
})]
|
|
81
103
|
}), desc != null && /* @__PURE__ */ jsx(CardDescription, {
|
|
82
104
|
...mergedDescProps,
|
|
83
105
|
className: cn("form-object-desc", mergedDescProps.className),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { 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.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,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react25 from "react";
|
|
2
|
+
import * as _pixpilot_shadcn_ui1 from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Rating.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Formily-connected Rating component
|
|
7
7
|
* Automatically connects shadcn-ui Rating to Formily field state
|
|
8
8
|
*/
|
|
9
|
-
declare const Rating:
|
|
10
|
-
children?:
|
|
11
|
-
}> &
|
|
9
|
+
declare const Rating: react25.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui1.RatingProps & {
|
|
10
|
+
children?: react25.ReactNode | undefined;
|
|
11
|
+
}> & react25.RefAttributes<unknown>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Rating };
|
|
@@ -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/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_runtime4.JSX.Element;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { Row };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react13 from "react";
|
|
2
2
|
import * as _radix_ui_react_separator0 from "@radix-ui/react-separator";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Separator.d.ts
|
|
@@ -6,6 +6,6 @@ import * as _radix_ui_react_separator0 from "@radix-ui/react-separator";
|
|
|
6
6
|
* Formily-connected Separator component
|
|
7
7
|
* A visual divider for content sections
|
|
8
8
|
*/
|
|
9
|
-
declare const Separator:
|
|
9
|
+
declare const Separator: react13.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator0.SeparatorProps & react13.RefAttributes<HTMLDivElement>>, "ref"> & react13.RefAttributes<unknown>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Separator };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react16 from "react";
|
|
2
2
|
import * as _radix_ui_react_switch0 from "@radix-ui/react-switch";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Switch.d.ts
|
|
@@ -6,6 +6,6 @@ import * as _radix_ui_react_switch0 from "@radix-ui/react-switch";
|
|
|
6
6
|
* Formily-connected Switch component
|
|
7
7
|
* Toggle switch for boolean values
|
|
8
8
|
*/
|
|
9
|
-
declare const Switch:
|
|
9
|
+
declare const Switch: react16.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch0.SwitchProps & react16.RefAttributes<HTMLButtonElement>>, "ref"> & react16.RefAttributes<unknown>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Switch };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react19 from "react";
|
|
2
2
|
import * as _radix_ui_react_switch0 from "@radix-ui/react-switch";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Switch.d.ts
|
|
@@ -6,6 +6,6 @@ import * as _radix_ui_react_switch0 from "@radix-ui/react-switch";
|
|
|
6
6
|
* Formily-connected Switch component
|
|
7
7
|
* Toggle switch for boolean values
|
|
8
8
|
*/
|
|
9
|
-
declare const Switch:
|
|
9
|
+
declare const Switch: react19.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch0.SwitchProps & react19.RefAttributes<HTMLButtonElement>>, "ref"> & react19.RefAttributes<unknown>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Switch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react19 from "react";
|
|
2
|
+
import * as _pixpilot_shadcn_ui0 from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/TagsInputInline.d.ts
|
|
5
5
|
|
|
@@ -10,6 +10,6 @@ import * as _pixpilot_shadcn_ui1 from "@pixpilot/shadcn-ui";
|
|
|
10
10
|
* Based on DiceUI's tags-input for inline tag editing with keyboard navigation
|
|
11
11
|
* and validation support.
|
|
12
12
|
*/
|
|
13
|
-
declare const TagsInputInLine:
|
|
13
|
+
declare const TagsInputInLine: react19.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui0.TagsInputProps> & react19.RefAttributes<unknown>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { TagsInputInLine };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react22 from "react";
|
|
2
2
|
import * as _pixpilot_shadcn_ui1 from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/TagsInputInline.d.ts
|
|
@@ -10,6 +10,6 @@ import * as _pixpilot_shadcn_ui1 from "@pixpilot/shadcn-ui";
|
|
|
10
10
|
* Based on DiceUI's tags-input for inline tag editing with keyboard navigation
|
|
11
11
|
* and validation support.
|
|
12
12
|
*/
|
|
13
|
-
declare const TagsInputInLine:
|
|
13
|
+
declare const TagsInputInLine: react22.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui1.TagsInputProps> & react22.RefAttributes<unknown>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { TagsInputInLine };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react21 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Textarea.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Formily-connected Textarea component
|
|
6
6
|
*/
|
|
7
|
-
declare const Textarea:
|
|
7
|
+
declare const Textarea: react21.ForwardRefExoticComponent<Omit<Partial<react21.ClassAttributes<HTMLTextAreaElement> & react21.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react21.RefAttributes<unknown>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Textarea };
|
|
@@ -60,6 +60,8 @@ interface FormLayoutOptions {
|
|
|
60
60
|
};
|
|
61
61
|
/** Custom class names for ObjectContainer elements */
|
|
62
62
|
objectContainer?: {
|
|
63
|
+
/** Default visual style variant for ObjectContainer */
|
|
64
|
+
variant?: 'grouped' | 'flat';
|
|
63
65
|
card?: React.HTMLAttributes<HTMLDivElement>;
|
|
64
66
|
header?: React.HTMLAttributes<HTMLDivElement>;
|
|
65
67
|
title?: React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -60,6 +60,8 @@ interface FormLayoutOptions {
|
|
|
60
60
|
};
|
|
61
61
|
/** Custom class names for ObjectContainer elements */
|
|
62
62
|
objectContainer?: {
|
|
63
|
+
/** Default visual style variant for ObjectContainer */
|
|
64
|
+
variant?: 'grouped' | 'flat';
|
|
63
65
|
card?: React.HTMLAttributes<HTMLDivElement>;
|
|
64
66
|
header?: React.HTMLAttributes<HTMLDivElement>;
|
|
65
67
|
title?: React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _pixpilot_shadcn_ui10 from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/file-upload/FileUpload.d.ts
|
|
5
5
|
|
|
@@ -7,14 +7,14 @@ import * as _pixpilot_shadcn_ui431 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_ui10.FileUploadInlineBaseProps & {
|
|
11
11
|
multiple: true;
|
|
12
|
-
value?:
|
|
13
|
-
onChange?:
|
|
14
|
-
} &
|
|
12
|
+
value?: _pixpilot_shadcn_ui10.FileMetadata[];
|
|
13
|
+
onChange?: _pixpilot_shadcn_ui10.OnChangeMultipleFiles;
|
|
14
|
+
} & _pixpilot_shadcn_ui10.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui10.FileUploadInlineBaseProps & {
|
|
15
15
|
multiple?: false;
|
|
16
|
-
value?:
|
|
17
|
-
onChange?:
|
|
18
|
-
} &
|
|
16
|
+
value?: _pixpilot_shadcn_ui10.FileMetadata | null;
|
|
17
|
+
onChange?: _pixpilot_shadcn_ui10.OnChangeSingleFile;
|
|
18
|
+
} & _pixpilot_shadcn_ui10.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_ui2 from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/file-upload/FileUploadInline.d.ts
|
|
5
5
|
|
|
@@ -7,14 +7,14 @@ import * as _pixpilot_shadcn_ui423 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_ui2.FileUploadInlineBaseProps & {
|
|
11
11
|
multiple: true;
|
|
12
|
-
value?:
|
|
13
|
-
onChange?:
|
|
14
|
-
} &
|
|
12
|
+
value?: _pixpilot_shadcn_ui2.FileMetadata[];
|
|
13
|
+
onChange?: _pixpilot_shadcn_ui2.OnChangeMultipleFiles;
|
|
14
|
+
} & _pixpilot_shadcn_ui2.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui2.FileUploadInlineBaseProps & {
|
|
15
15
|
multiple?: false;
|
|
16
|
-
value?:
|
|
17
|
-
onChange?:
|
|
18
|
-
} &
|
|
16
|
+
value?: _pixpilot_shadcn_ui2.FileMetadata | null;
|
|
17
|
+
onChange?: _pixpilot_shadcn_ui2.OnChangeSingleFile;
|
|
18
|
+
} & _pixpilot_shadcn_ui2.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { FileUploadInline };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FormItemProps } from "./form-item-types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react1824 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/form-item/ConnectedFormItem.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: react1824.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
10
|
+
children?: react1824.ReactNode | undefined;
|
|
11
|
+
}>, "ref"> & react1824.RefAttributes<unknown>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { FormItem };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react36 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/number/NumberInput.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Formily-connected Number Input component
|
|
6
6
|
*/
|
|
7
|
-
declare const NumberInput:
|
|
7
|
+
declare const NumberInput: react36.ForwardRefExoticComponent<Omit<Partial<react36.ClassAttributes<HTMLInputElement> & react36.InputHTMLAttributes<HTMLInputElement> & {
|
|
8
8
|
prefix?: React.ReactNode;
|
|
9
9
|
suffix?: React.ReactNode;
|
|
10
10
|
groupClassName?: string;
|
|
11
11
|
prefixClassName?: string;
|
|
12
12
|
suffixClassName?: string;
|
|
13
|
-
}>, "ref"> &
|
|
13
|
+
}>, "ref"> & react36.RefAttributes<unknown>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { NumberInput };
|