@pixpilot/formily-shadcn 1.11.9 → 1.11.12
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.cjs +2 -1
- package/dist/components/Form.d.cts +4 -2
- package/dist/components/Form.d.ts +2 -0
- package/dist/components/Form.js +2 -1
- package/dist/components/FormGrid.d.cts +2 -2
- package/dist/components/IconToggle.d.cts +2 -2
- package/dist/components/Input.d.cts +3 -3
- package/dist/components/Rating.d.cts +4 -4
- package/dist/components/Separator.d.cts +2 -2
- package/dist/components/Switch.d.cts +2 -2
- package/dist/components/TagsInputInline.d.cts +2 -2
- package/dist/components/array-toggle-group/ArrayToggleGroup.d.cts +2 -2
- package/dist/components/number/NumberInput.d.cts +3 -3
- package/dist/components/schema-field/schema-field-basics.d.cts +303 -303
- package/dist/components/schema-field/schema-field-extended.d.cts +501 -501
- package/dist/components/schema-field/schema-field.d.cts +412 -412
- package/dist/components/slider/Slider.d.cts +3 -3
- package/dist/components/slider/SliderSelect.d.cts +3 -3
- package/package.json +5 -5
package/dist/components/Form.cjs
CHANGED
|
@@ -15,7 +15,7 @@ __pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
|
15
15
|
/**
|
|
16
16
|
* Form component - wraps FormProvider and provides form context
|
|
17
17
|
*/
|
|
18
|
-
function Form({ form, className, style, children, onSubmit, onAutoSubmit, layout, settings }) {
|
|
18
|
+
function Form({ form, id, className, style, children, onSubmit, onAutoSubmit, layout, settings }) {
|
|
19
19
|
const handleSubmit = (e) => {
|
|
20
20
|
e.preventDefault();
|
|
21
21
|
form.submit((values) => {
|
|
@@ -34,6 +34,7 @@ function Form({ form, className, style, children, onSubmit, onAutoSubmit, layout
|
|
|
34
34
|
form,
|
|
35
35
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FormItemContainer.FormItemContainer, {
|
|
36
36
|
as: "form",
|
|
37
|
+
id,
|
|
37
38
|
className: (0, __pixpilot_shadcn.cn)(className),
|
|
38
39
|
style,
|
|
39
40
|
onSubmit: handleSubmit,
|
|
@@ -2,11 +2,12 @@ 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_runtime1 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/Form.d.ts
|
|
8
8
|
interface IFormProps extends FormContextStates {
|
|
9
9
|
form: Form;
|
|
10
|
+
id?: string;
|
|
10
11
|
className?: string;
|
|
11
12
|
style?: React.CSSProperties;
|
|
12
13
|
children?: React.ReactNode;
|
|
@@ -18,6 +19,7 @@ interface IFormProps extends FormContextStates {
|
|
|
18
19
|
*/
|
|
19
20
|
declare function Form$1({
|
|
20
21
|
form,
|
|
22
|
+
id,
|
|
21
23
|
className,
|
|
22
24
|
style,
|
|
23
25
|
children,
|
|
@@ -25,6 +27,6 @@ declare function Form$1({
|
|
|
25
27
|
onAutoSubmit,
|
|
26
28
|
layout,
|
|
27
29
|
settings
|
|
28
|
-
}: IFormProps):
|
|
30
|
+
}: IFormProps): react_jsx_runtime1.JSX.Element;
|
|
29
31
|
//#endregion
|
|
30
32
|
export { Form$1 as Form };
|
|
@@ -7,6 +7,7 @@ import { Form } from "@formily/core";
|
|
|
7
7
|
//#region src/components/Form.d.ts
|
|
8
8
|
interface IFormProps extends FormContextStates {
|
|
9
9
|
form: Form;
|
|
10
|
+
id?: string;
|
|
10
11
|
className?: string;
|
|
11
12
|
style?: React.CSSProperties;
|
|
12
13
|
children?: React.ReactNode;
|
|
@@ -18,6 +19,7 @@ interface IFormProps extends FormContextStates {
|
|
|
18
19
|
*/
|
|
19
20
|
declare function Form$1({
|
|
20
21
|
form,
|
|
22
|
+
id,
|
|
21
23
|
className,
|
|
22
24
|
style,
|
|
23
25
|
children,
|
package/dist/components/Form.js
CHANGED
|
@@ -10,7 +10,7 @@ import { cn } from "@pixpilot/shadcn";
|
|
|
10
10
|
/**
|
|
11
11
|
* Form component - wraps FormProvider and provides form context
|
|
12
12
|
*/
|
|
13
|
-
function Form({ form, className, style, children, onSubmit, onAutoSubmit, layout, settings }) {
|
|
13
|
+
function Form({ form, id, className, style, children, onSubmit, onAutoSubmit, layout, settings }) {
|
|
14
14
|
const handleSubmit = (e) => {
|
|
15
15
|
e.preventDefault();
|
|
16
16
|
form.submit((values) => {
|
|
@@ -29,6 +29,7 @@ function Form({ form, className, style, children, onSubmit, onAutoSubmit, layout
|
|
|
29
29
|
form,
|
|
30
30
|
children: /* @__PURE__ */ jsx(FormItemContainer, {
|
|
31
31
|
as: "form",
|
|
32
|
+
id,
|
|
32
33
|
className: cn(className),
|
|
33
34
|
style,
|
|
34
35
|
onSubmit: handleSubmit,
|
|
@@ -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/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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react9 from "react";
|
|
2
2
|
import * as _pixpilot_shadcn_ui0 from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/IconToggle.d.ts
|
|
@@ -6,6 +6,6 @@ import * as _pixpilot_shadcn_ui0 from "@pixpilot/shadcn-ui";
|
|
|
6
6
|
* Formily-connected IconToggle component
|
|
7
7
|
* Toggle button with customizable icons for boolean values
|
|
8
8
|
*/
|
|
9
|
-
declare const IconToggle:
|
|
9
|
+
declare const IconToggle: react9.ForwardRefExoticComponent<Omit<Partial<Omit<_pixpilot_shadcn_ui0.IconToggleProps, "ref"> & react9.RefAttributes<HTMLButtonElement>>, "ref"> & react9.RefAttributes<unknown>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { IconToggle };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react12 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Input.d.ts
|
|
4
4
|
|
|
@@ -6,12 +6,12 @@ import * as react9 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: react12.ForwardRefExoticComponent<Omit<Partial<react12.ClassAttributes<HTMLInputElement> & react12.InputHTMLAttributes<HTMLInputElement> & {
|
|
10
10
|
prefix?: React.ReactNode;
|
|
11
11
|
suffix?: React.ReactNode;
|
|
12
12
|
groupClassName?: string;
|
|
13
13
|
prefixClassName?: string;
|
|
14
14
|
suffixClassName?: string;
|
|
15
|
-
}>, "ref"> &
|
|
15
|
+
}>, "ref"> & react12.RefAttributes<unknown>>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { Input };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react6 from "react";
|
|
2
2
|
import * as _pixpilot_shadcn_ui0 from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Rating.d.ts
|
|
@@ -6,8 +6,8 @@ import * as _pixpilot_shadcn_ui0 from "@pixpilot/shadcn-ui";
|
|
|
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: react6.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui0.RatingProps & {
|
|
10
|
+
children?: react6.ReactNode | undefined;
|
|
11
|
+
}> & react6.RefAttributes<unknown>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Rating };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react18 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: react18.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator0.SeparatorProps & react18.RefAttributes<HTMLDivElement>>, "ref"> & react18.RefAttributes<unknown>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Separator };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react21 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: react21.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch0.SwitchProps & react21.RefAttributes<HTMLButtonElement>>, "ref"> & react21.RefAttributes<unknown>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Switch };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react16 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: react16.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui1.TagsInputProps> & react16.RefAttributes<unknown>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { TagsInputInLine };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _formily_react102 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_react102.ReactFC<Omit<ArrayToggleGroupProps, "ref">>>;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { ArrayToggleGroup, ArrayToggleGroupProps };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react1879 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: react1879.ForwardRefExoticComponent<Omit<Partial<react1879.ClassAttributes<HTMLInputElement> & react1879.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"> & react1879.RefAttributes<unknown>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { NumberInput };
|