@pixpilot/formily-shadcn 0.53.1 → 1.0.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.
Files changed (49) hide show
  1. package/dist/components/IconPicker.d.cts +3 -3
  2. package/dist/components/IconPicker.d.ts +3 -3
  3. package/dist/components/IconToggle.cjs +1 -1
  4. package/dist/components/IconToggle.d.cts +2 -2
  5. package/dist/components/IconToggle.d.ts +2 -2
  6. package/dist/components/IconToggle.js +1 -1
  7. package/dist/components/Input.d.cts +3 -3
  8. package/dist/components/Input.d.ts +3 -3
  9. package/dist/components/Rating.d.cts +4 -4
  10. package/dist/components/Rating.d.ts +4 -4
  11. package/dist/components/Switch.d.ts +2 -2
  12. package/dist/components/TagsInputInline.d.ts +2 -2
  13. package/dist/components/ToggleButton.cjs +22 -0
  14. package/dist/components/ToggleButton.d.cts +11 -0
  15. package/dist/components/ToggleButton.d.ts +11 -0
  16. package/dist/components/ToggleButton.js +19 -0
  17. package/dist/components/array-base/components/Addition.cjs +1 -1
  18. package/dist/components/array-base/components/Addition.d.cts +2 -2
  19. package/dist/components/array-base/components/Addition.d.ts +2 -2
  20. package/dist/components/array-base/components/Addition.js +2 -2
  21. package/dist/components/array-base/types.d.cts +4 -4
  22. package/dist/components/array-base/types.d.ts +4 -4
  23. package/dist/components/file-upload/FileUpload.d.cts +8 -8
  24. package/dist/components/file-upload/FileUpload.d.ts +8 -8
  25. package/dist/components/file-upload/FileUploadInline.d.cts +8 -8
  26. package/dist/components/file-upload/FileUploadInline.d.ts +8 -8
  27. package/dist/components/form-item/ConnectedFormItem.d.cts +4 -4
  28. package/dist/components/form-item/ConnectedFormItem.d.ts +4 -4
  29. package/dist/components/number/NumberInput.d.cts +3 -3
  30. package/dist/components/number/NumberInput.d.ts +3 -3
  31. package/dist/components/schema-field/schema-field-basics.cjs +5 -0
  32. package/dist/components/schema-field/schema-field-basics.d.cts +306 -292
  33. package/dist/components/schema-field/schema-field-basics.d.ts +300 -286
  34. package/dist/components/schema-field/schema-field-basics.js +5 -0
  35. package/dist/components/schema-field/schema-field-extended.d.cts +630 -616
  36. package/dist/components/schema-field/schema-field-extended.d.ts +630 -616
  37. package/dist/components/schema-field/schema-field.d.cts +416 -402
  38. package/dist/components/schema-field/schema-field.d.ts +410 -396
  39. package/dist/components/slider/Slider.d.cts +3 -3
  40. package/dist/components/slider/Slider.d.ts +3 -3
  41. package/dist/components/slider/SliderInput.d.cts +3 -3
  42. package/dist/components/slider/SliderInput.d.ts +3 -3
  43. package/dist/components/slider/SliderSelect.d.cts +3 -3
  44. package/dist/components/slider/SliderSelect.d.ts +3 -3
  45. package/dist/index.cjs +2 -0
  46. package/dist/index.d.cts +2 -1
  47. package/dist/index.d.ts +2 -1
  48. package/dist/index.js +2 -1
  49. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import * as react4 from "react";
1
+ import * as react14 from "react";
2
2
  import { IconPickerProps, IconProviderProps } from "@pixpilot/shadcn-ui";
3
3
 
4
4
  //#region src/components/IconPicker.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: react4.ForwardRefExoticComponent<Partial<Omit<IconPickerProps, "providers"> & {
11
+ declare const IconPicker: react14.ForwardRefExoticComponent<Partial<Omit<IconPickerProps, "providers"> & {
12
12
  providers?: IconProviderProps[];
13
- }> & react4.RefAttributes<unknown>>;
13
+ }> & react14.RefAttributes<unknown>>;
14
14
  //#endregion
15
15
  export { IconPicker };
@@ -1,4 +1,4 @@
1
- import * as react7 from "react";
1
+ import * as react4 from "react";
2
2
  import { IconPickerProps, IconProviderProps } from "@pixpilot/shadcn-ui";
3
3
 
4
4
  //#region src/components/IconPicker.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$1: react7.ForwardRefExoticComponent<Partial<Omit<IconPickerProps, "providers"> & {
11
+ declare const IconPicker$1: react4.ForwardRefExoticComponent<Partial<Omit<IconPickerProps, "providers"> & {
12
12
  providers?: IconProviderProps[];
13
- }> & react7.RefAttributes<unknown>>;
13
+ }> & react4.RefAttributes<unknown>>;
14
14
  //#endregion
15
15
  export { IconPicker$1 as IconPicker };
@@ -12,7 +12,7 @@ __pixpilot_shadcn_ui = require_rolldown_runtime.__toESM(__pixpilot_shadcn_ui);
12
12
  */
13
13
  const IconToggle = (0, __formily_react.connect)(__pixpilot_shadcn_ui.IconToggle, (0, __formily_react.mapProps)({
14
14
  value: "checked",
15
- onInput: "onCheckedChange"
15
+ onInput: "onChange"
16
16
  }, (props, field) => {
17
17
  require_formily_decorator.setCheckboxDefaultDecoratorProps(field);
18
18
  return props;
@@ -1,4 +1,4 @@
1
- import * as react6 from "react";
1
+ import * as react11 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: react6.ForwardRefExoticComponent<Omit<Partial<Omit<_pixpilot_shadcn_ui0.IconToggleProps, "ref"> & react6.RefAttributes<HTMLButtonElement>>, "ref"> & react6.RefAttributes<unknown>>;
9
+ declare const IconToggle: react11.ForwardRefExoticComponent<Omit<Partial<Omit<_pixpilot_shadcn_ui0.IconToggleProps, "ref"> & react11.RefAttributes<HTMLButtonElement>>, "ref"> & react11.RefAttributes<unknown>>;
10
10
  //#endregion
11
11
  export { IconToggle };
@@ -1,4 +1,4 @@
1
- import * as react9 from "react";
1
+ import * as react6 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$1: react9.ForwardRefExoticComponent<Omit<Partial<Omit<_pixpilot_shadcn_ui0.IconToggleProps, "ref"> & react9.RefAttributes<HTMLButtonElement>>, "ref"> & react9.RefAttributes<unknown>>;
9
+ declare const IconToggle$1: react6.ForwardRefExoticComponent<Omit<Partial<Omit<_pixpilot_shadcn_ui0.IconToggleProps, "ref"> & react6.RefAttributes<HTMLButtonElement>>, "ref"> & react6.RefAttributes<unknown>>;
10
10
  //#endregion
11
11
  export { IconToggle$1 as IconToggle };
@@ -9,7 +9,7 @@ import { IconToggle } from "@pixpilot/shadcn-ui";
9
9
  */
10
10
  const IconToggle$1 = connect(IconToggle, mapProps({
11
11
  value: "checked",
12
- onInput: "onCheckedChange"
12
+ onInput: "onChange"
13
13
  }, (props, field) => {
14
14
  setCheckboxDefaultDecoratorProps(field);
15
15
  return props;
@@ -1,4 +1,4 @@
1
- import * as react9 from "react";
1
+ import * as react4 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: react9.ForwardRefExoticComponent<Omit<Partial<react9.ClassAttributes<HTMLInputElement> & react9.InputHTMLAttributes<HTMLInputElement> & {
9
+ declare const Input: react4.ForwardRefExoticComponent<Omit<Partial<react4.ClassAttributes<HTMLInputElement> & react4.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"> & react9.RefAttributes<unknown>>;
15
+ }>, "ref"> & react4.RefAttributes<unknown>>;
16
16
  //#endregion
17
17
  export { Input };
@@ -1,4 +1,4 @@
1
- import * as react12 from "react";
1
+ import * as react9 from "react";
2
2
 
3
3
  //#region src/components/Input.d.ts
4
4
 
@@ -6,12 +6,12 @@ import * as react12 from "react";
6
6
  * Formily-connected Input component
7
7
  * Automatically connects shadcn Input to Formily field state
8
8
  */
9
- declare const Input: react12.ForwardRefExoticComponent<Omit<Partial<react12.ClassAttributes<HTMLInputElement> & react12.InputHTMLAttributes<HTMLInputElement> & {
9
+ declare const Input: react9.ForwardRefExoticComponent<Omit<Partial<react9.ClassAttributes<HTMLInputElement> & react9.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"> & react12.RefAttributes<unknown>>;
15
+ }>, "ref"> & react9.RefAttributes<unknown>>;
16
16
  //#endregion
17
17
  export { Input };
@@ -1,4 +1,4 @@
1
- import * as react13 from "react";
1
+ import * as react8 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: react13.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui0.RatingProps & {
10
- children?: react13.ReactNode | undefined;
11
- }> & react13.RefAttributes<unknown>>;
9
+ declare const Rating: react8.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui0.RatingProps & {
10
+ children?: react8.ReactNode | undefined;
11
+ }> & react8.RefAttributes<unknown>>;
12
12
  //#endregion
13
13
  export { Rating };
@@ -1,4 +1,4 @@
1
- import * as react4 from "react";
1
+ import * as react13 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$1: react4.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui0.RatingProps & {
10
- children?: react4.ReactNode | undefined;
11
- }> & react4.RefAttributes<unknown>>;
9
+ declare const Rating$1: react13.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui0.RatingProps & {
10
+ children?: react13.ReactNode | undefined;
11
+ }> & react13.RefAttributes<unknown>>;
12
12
  //#endregion
13
13
  export { Rating$1 as Rating };
@@ -1,4 +1,4 @@
1
- import * as react21 from "react";
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: react21.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch0.SwitchProps & react21.RefAttributes<HTMLButtonElement>>, "ref"> & react21.RefAttributes<unknown>>;
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,4 +1,4 @@
1
- import * as react19 from "react";
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: react19.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui1.TagsInputProps> & react19.RefAttributes<unknown>>;
13
+ declare const TagsInputInLine: react22.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui1.TagsInputProps> & react22.RefAttributes<unknown>>;
14
14
  //#endregion
15
15
  export { TagsInputInLine };
@@ -0,0 +1,22 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_formily_decorator = require('../utils/formily-decorator.cjs');
3
+ let __formily_react = require("@formily/react");
4
+ __formily_react = require_rolldown_runtime.__toESM(__formily_react);
5
+ let __pixpilot_shadcn_ui = require("@pixpilot/shadcn-ui");
6
+ __pixpilot_shadcn_ui = require_rolldown_runtime.__toESM(__pixpilot_shadcn_ui);
7
+
8
+ //#region src/components/ToggleButton.tsx
9
+ /**
10
+ * Formily-connected IconToggle component
11
+ * Toggle button with customizable icons for boolean values
12
+ */
13
+ const ToggleButton = (0, __formily_react.connect)(__pixpilot_shadcn_ui.ToggleButton, (0, __formily_react.mapProps)({
14
+ value: "checked",
15
+ onInput: "onChange"
16
+ }, (props, field) => {
17
+ require_formily_decorator.setCheckboxDefaultDecoratorProps(field);
18
+ return props;
19
+ }));
20
+
21
+ //#endregion
22
+ exports.ToggleButton = ToggleButton;
@@ -0,0 +1,11 @@
1
+ import * as react28 from "react";
2
+ import * as _pixpilot_shadcn_ui2 from "@pixpilot/shadcn-ui";
3
+
4
+ //#region src/components/ToggleButton.d.ts
5
+ /**
6
+ * Formily-connected IconToggle component
7
+ * Toggle button with customizable icons for boolean values
8
+ */
9
+ declare const ToggleButton: react28.ForwardRefExoticComponent<Omit<Partial<Omit<_pixpilot_shadcn_ui2.ToggleButtonProps, "ref"> & react28.RefAttributes<HTMLButtonElement>>, "ref"> & react28.RefAttributes<unknown>>;
10
+ //#endregion
11
+ export { ToggleButton };
@@ -0,0 +1,11 @@
1
+ import * as react28 from "react";
2
+ import * as _pixpilot_shadcn_ui2 from "@pixpilot/shadcn-ui";
3
+
4
+ //#region src/components/ToggleButton.d.ts
5
+ /**
6
+ * Formily-connected IconToggle component
7
+ * Toggle button with customizable icons for boolean values
8
+ */
9
+ declare const ToggleButton$1: react28.ForwardRefExoticComponent<Omit<Partial<Omit<_pixpilot_shadcn_ui2.ToggleButtonProps, "ref"> & react28.RefAttributes<HTMLButtonElement>>, "ref"> & react28.RefAttributes<unknown>>;
10
+ //#endregion
11
+ export { ToggleButton$1 as ToggleButton };
@@ -0,0 +1,19 @@
1
+ import { setCheckboxDefaultDecoratorProps } from "../utils/formily-decorator.js";
2
+ import { connect, mapProps } from "@formily/react";
3
+ import { ToggleButton } from "@pixpilot/shadcn-ui";
4
+
5
+ //#region src/components/ToggleButton.tsx
6
+ /**
7
+ * Formily-connected IconToggle component
8
+ * Toggle button with customizable icons for boolean values
9
+ */
10
+ const ToggleButton$1 = connect(ToggleButton, mapProps({
11
+ value: "checked",
12
+ onInput: "onChange"
13
+ }, (props, field) => {
14
+ setCheckboxDefaultDecoratorProps(field);
15
+ return props;
16
+ }));
17
+
18
+ //#endregion
19
+ export { ToggleButton$1 as ToggleButton };
@@ -27,7 +27,7 @@ function ArrayAddition({ ref,...props }) {
27
27
  if (array.field?.pattern !== "editable" && array.field?.pattern !== "disabled") return null;
28
28
  const defaultLabel = props.title ?? self.title ?? props.children ?? "Add Item";
29
29
  const buttonLabel = isAtMax ? `Limit Reached (${currentLength}/${maxItems})` : defaultLabel;
30
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn_ui.Button, {
30
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn_ui.ButtonExtended, {
31
31
  type: "button",
32
32
  variant: fullWidth ? "ghost" : "outline",
33
33
  ...props,
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
- import { ButtonProps } from "@pixpilot/shadcn-ui";
2
+ import { ButtonExtendedProps } from "@pixpilot/shadcn-ui";
3
3
  import "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/array-base/components/Addition.d.ts
6
- interface IArrayBaseAdditionProps extends ButtonProps {
6
+ interface IArrayBaseAdditionProps extends ButtonExtendedProps {
7
7
  title?: string;
8
8
  method?: 'push' | 'unshift';
9
9
  defaultValue?: any;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
- import { ButtonProps } from "@pixpilot/shadcn-ui";
2
+ import { ButtonExtendedProps } from "@pixpilot/shadcn-ui";
3
3
  import "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/array-base/components/Addition.d.ts
6
- interface IArrayBaseAdditionProps extends ButtonProps {
6
+ interface IArrayBaseAdditionProps extends ButtonExtendedProps {
7
7
  title?: string;
8
8
  method?: 'push' | 'unshift';
9
9
  defaultValue?: any;
@@ -3,7 +3,7 @@ import { getDefaultValue } from "../../../utils/get-default-value.js";
3
3
  import "../../../utils/index.js";
4
4
  import { useField } from "@formily/react";
5
5
  import React from "react";
6
- import { Button, cn } from "@pixpilot/shadcn-ui";
6
+ import { ButtonExtended, cn } from "@pixpilot/shadcn-ui";
7
7
  import { PlusIcon } from "lucide-react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
 
@@ -21,7 +21,7 @@ function ArrayAddition({ ref,...props }) {
21
21
  if (array.field?.pattern !== "editable" && array.field?.pattern !== "disabled") return null;
22
22
  const defaultLabel = props.title ?? self.title ?? props.children ?? "Add Item";
23
23
  const buttonLabel = isAtMax ? `Limit Reached (${currentLength}/${maxItems})` : defaultLabel;
24
- return /* @__PURE__ */ jsxs(Button, {
24
+ return /* @__PURE__ */ jsxs(ButtonExtended, {
25
25
  type: "button",
26
26
  variant: fullWidth ? "ghost" : "outline",
27
27
  ...props,
@@ -1,6 +1,6 @@
1
1
  import { ArrayBaseComponents } from "./components/types.cjs";
2
2
  import { IArrayBaseContext } from "./array-context.cjs";
3
- import { ButtonProps } from "@pixpilot/shadcn-ui";
3
+ import { ButtonExtendedProps } from "@pixpilot/shadcn-ui";
4
4
 
5
5
  //#region src/components/array-base/types.d.ts
6
6
  interface ActionContext {
@@ -28,7 +28,7 @@ interface CustomAction {
28
28
  onClick: (event: React.MouseEvent<HTMLButtonElement>, ctx: ActionContext) => void;
29
29
  hidden?: boolean | ((ctx: ActionContext) => boolean);
30
30
  disabled?: boolean | ((ctx: ActionContext) => boolean);
31
- buttonProps?: Omit<ButtonProps, 'children' | 'onClick'>;
31
+ buttonProps?: Omit<ButtonExtendedProps, 'children' | 'onClick'>;
32
32
  }
33
33
  interface ToggleAction {
34
34
  type: 'toggle';
@@ -43,7 +43,7 @@ interface ToggleAction {
43
43
  onClick?: (event: React.MouseEvent<HTMLButtonElement>, context: ActionContext) => void;
44
44
  hidden?: boolean | ((ctx: ActionContext) => boolean);
45
45
  disabled?: boolean | ((ctx: ActionContext) => boolean);
46
- buttonProps?: Omit<ButtonProps, 'children' | 'onClick'>;
46
+ buttonProps?: Omit<ButtonExtendedProps, 'children' | 'onClick'>;
47
47
  }
48
48
  type ActionItem = BuiltInOperation | CustomAction | ToggleAction | OperationOverride;
49
49
  interface ArrayBaseMixins extends ArrayBaseComponents {
@@ -83,7 +83,7 @@ interface IArrayBaseProps {
83
83
  transformActions?: (actions: ActionItem[], context: TransformContext) => ActionItem[];
84
84
  description?: React.ReactNode;
85
85
  }
86
- interface IArrayBaseOperationProps extends ButtonProps {
86
+ interface IArrayBaseOperationProps extends ButtonExtendedProps {
87
87
  title?: string;
88
88
  index?: number;
89
89
  icon?: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import { ArrayBaseComponents } from "./components/types.js";
2
2
  import { IArrayBaseContext } from "./array-context.js";
3
- import { ButtonProps } from "@pixpilot/shadcn-ui";
3
+ import { ButtonExtendedProps } from "@pixpilot/shadcn-ui";
4
4
 
5
5
  //#region src/components/array-base/types.d.ts
6
6
  interface ActionContext {
@@ -28,7 +28,7 @@ interface CustomAction {
28
28
  onClick: (event: React.MouseEvent<HTMLButtonElement>, ctx: ActionContext) => void;
29
29
  hidden?: boolean | ((ctx: ActionContext) => boolean);
30
30
  disabled?: boolean | ((ctx: ActionContext) => boolean);
31
- buttonProps?: Omit<ButtonProps, 'children' | 'onClick'>;
31
+ buttonProps?: Omit<ButtonExtendedProps, 'children' | 'onClick'>;
32
32
  }
33
33
  interface ToggleAction {
34
34
  type: 'toggle';
@@ -43,7 +43,7 @@ interface ToggleAction {
43
43
  onClick?: (event: React.MouseEvent<HTMLButtonElement>, context: ActionContext) => void;
44
44
  hidden?: boolean | ((ctx: ActionContext) => boolean);
45
45
  disabled?: boolean | ((ctx: ActionContext) => boolean);
46
- buttonProps?: Omit<ButtonProps, 'children' | 'onClick'>;
46
+ buttonProps?: Omit<ButtonExtendedProps, 'children' | 'onClick'>;
47
47
  }
48
48
  type ActionItem = BuiltInOperation | CustomAction | ToggleAction | OperationOverride;
49
49
  interface ArrayBaseMixins extends ArrayBaseComponents {
@@ -83,7 +83,7 @@ interface IArrayBaseProps {
83
83
  transformActions?: (actions: ActionItem[], context: TransformContext) => ActionItem[];
84
84
  description?: React.ReactNode;
85
85
  }
86
- interface IArrayBaseOperationProps extends ButtonProps {
86
+ interface IArrayBaseOperationProps extends ButtonExtendedProps {
87
87
  title?: string;
88
88
  index?: number;
89
89
  icon?: React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as _pixpilot_shadcn_ui12 from "@pixpilot/shadcn-ui";
2
+ import * as _pixpilot_shadcn_ui13 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_ui12 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<_pixpilot_shadcn_ui12.FileUploadInlineBaseProps & _pixpilot_shadcn_ui12.FileUploadRootPropsBaseProps & {
10
+ declare const FileUpload: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui13.FileUploadInlineBaseProps & _pixpilot_shadcn_ui13.FileUploadRootPropsBaseProps & {
11
11
  multiple: true;
12
- value?: _pixpilot_shadcn_ui12.FileMetadata[];
13
- onChange?: _pixpilot_shadcn_ui12.OnChangeMultipleFiles;
14
- } & _pixpilot_shadcn_ui12.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui12.FileUploadInlineBaseProps & _pixpilot_shadcn_ui12.FileUploadRootPropsBaseProps & {
12
+ value?: _pixpilot_shadcn_ui13.FileMetadata[];
13
+ onChange?: _pixpilot_shadcn_ui13.OnChangeMultipleFiles;
14
+ } & _pixpilot_shadcn_ui13.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui13.FileUploadInlineBaseProps & _pixpilot_shadcn_ui13.FileUploadRootPropsBaseProps & {
15
15
  multiple?: false;
16
- value?: _pixpilot_shadcn_ui12.FileMetadata | null;
17
- onChange?: _pixpilot_shadcn_ui12.OnChangeSingleFile;
18
- } & _pixpilot_shadcn_ui12.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
16
+ value?: _pixpilot_shadcn_ui13.FileMetadata | null;
17
+ onChange?: _pixpilot_shadcn_ui13.OnChangeSingleFile;
18
+ } & _pixpilot_shadcn_ui13.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 _pixpilot_shadcn_ui12 from "@pixpilot/shadcn-ui";
2
+ import * as _pixpilot_shadcn_ui13 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_ui12 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$1: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui12.FileUploadInlineBaseProps & _pixpilot_shadcn_ui12.FileUploadRootPropsBaseProps & {
10
+ declare const FileUpload$1: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui13.FileUploadInlineBaseProps & _pixpilot_shadcn_ui13.FileUploadRootPropsBaseProps & {
11
11
  multiple: true;
12
- value?: _pixpilot_shadcn_ui12.FileMetadata[];
13
- onChange?: _pixpilot_shadcn_ui12.OnChangeMultipleFiles;
14
- } & _pixpilot_shadcn_ui12.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui12.FileUploadInlineBaseProps & _pixpilot_shadcn_ui12.FileUploadRootPropsBaseProps & {
12
+ value?: _pixpilot_shadcn_ui13.FileMetadata[];
13
+ onChange?: _pixpilot_shadcn_ui13.OnChangeMultipleFiles;
14
+ } & _pixpilot_shadcn_ui13.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui13.FileUploadInlineBaseProps & _pixpilot_shadcn_ui13.FileUploadRootPropsBaseProps & {
15
15
  multiple?: false;
16
- value?: _pixpilot_shadcn_ui12.FileMetadata | null;
17
- onChange?: _pixpilot_shadcn_ui12.OnChangeSingleFile;
18
- } & _pixpilot_shadcn_ui12.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
16
+ value?: _pixpilot_shadcn_ui13.FileMetadata | null;
17
+ onChange?: _pixpilot_shadcn_ui13.OnChangeSingleFile;
18
+ } & _pixpilot_shadcn_ui13.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
19
19
  //#endregion
20
20
  export { FileUpload$1 as FileUpload };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as _pixpilot_shadcn_ui2 from "@pixpilot/shadcn-ui";
2
+ import * as _pixpilot_shadcn_ui3 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_ui2 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<_pixpilot_shadcn_ui2.FileUploadInlineBaseProps & _pixpilot_shadcn_ui2.FileUploadRootPropsBaseProps & {
10
+ declare const FileUploadInline: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui3.FileUploadInlineBaseProps & _pixpilot_shadcn_ui3.FileUploadRootPropsBaseProps & {
11
11
  multiple: true;
12
- value?: _pixpilot_shadcn_ui2.FileMetadata[];
13
- onChange?: _pixpilot_shadcn_ui2.OnChangeMultipleFiles;
14
- } & _pixpilot_shadcn_ui2.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui2.FileUploadInlineBaseProps & _pixpilot_shadcn_ui2.FileUploadRootPropsBaseProps & {
12
+ value?: _pixpilot_shadcn_ui3.FileMetadata[];
13
+ onChange?: _pixpilot_shadcn_ui3.OnChangeMultipleFiles;
14
+ } & _pixpilot_shadcn_ui3.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui3.FileUploadInlineBaseProps & _pixpilot_shadcn_ui3.FileUploadRootPropsBaseProps & {
15
15
  multiple?: false;
16
- value?: _pixpilot_shadcn_ui2.FileMetadata | null;
17
- onChange?: _pixpilot_shadcn_ui2.OnChangeSingleFile;
18
- } & _pixpilot_shadcn_ui2.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
16
+ value?: _pixpilot_shadcn_ui3.FileMetadata | null;
17
+ onChange?: _pixpilot_shadcn_ui3.OnChangeSingleFile;
18
+ } & _pixpilot_shadcn_ui3.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
19
19
  //#endregion
20
20
  export { FileUploadInline };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as _pixpilot_shadcn_ui2 from "@pixpilot/shadcn-ui";
2
+ import * as _pixpilot_shadcn_ui3 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_ui2 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$1: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui2.FileUploadInlineBaseProps & _pixpilot_shadcn_ui2.FileUploadRootPropsBaseProps & {
10
+ declare const FileUploadInline$1: React.ForwardRefExoticComponent<(Omit<Partial<_pixpilot_shadcn_ui3.FileUploadInlineBaseProps & _pixpilot_shadcn_ui3.FileUploadRootPropsBaseProps & {
11
11
  multiple: true;
12
- value?: _pixpilot_shadcn_ui2.FileMetadata[];
13
- onChange?: _pixpilot_shadcn_ui2.OnChangeMultipleFiles;
14
- } & _pixpilot_shadcn_ui2.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui2.FileUploadInlineBaseProps & _pixpilot_shadcn_ui2.FileUploadRootPropsBaseProps & {
12
+ value?: _pixpilot_shadcn_ui3.FileMetadata[];
13
+ onChange?: _pixpilot_shadcn_ui3.OnChangeMultipleFiles;
14
+ } & _pixpilot_shadcn_ui3.FileUploadBaseProps>, "ref"> | Omit<Partial<_pixpilot_shadcn_ui3.FileUploadInlineBaseProps & _pixpilot_shadcn_ui3.FileUploadRootPropsBaseProps & {
15
15
  multiple?: false;
16
- value?: _pixpilot_shadcn_ui2.FileMetadata | null;
17
- onChange?: _pixpilot_shadcn_ui2.OnChangeSingleFile;
18
- } & _pixpilot_shadcn_ui2.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
16
+ value?: _pixpilot_shadcn_ui3.FileMetadata | null;
17
+ onChange?: _pixpilot_shadcn_ui3.OnChangeSingleFile;
18
+ } & _pixpilot_shadcn_ui3.FileUploadBaseProps>, "ref">) & React.RefAttributes<unknown>>;
19
19
  //#endregion
20
20
  export { FileUploadInline$1 as FileUploadInline };
@@ -1,13 +1,13 @@
1
1
  import { FormItemProps } from "./form-item-types.cjs";
2
- import * as react1822 from "react";
2
+ import * as react1922 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: react1822.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
10
- children?: react1822.ReactNode | undefined;
11
- }>, "ref"> & react1822.RefAttributes<unknown>>;
9
+ declare const FormItem: react1922.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
10
+ children?: react1922.ReactNode | undefined;
11
+ }>, "ref"> & react1922.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 react1822 from "react";
2
+ import * as react1924 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: react1822.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
10
- children?: react1822.ReactNode | undefined;
11
- }>, "ref"> & react1822.RefAttributes<unknown>>;
9
+ declare const FormItem: react1924.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
10
+ children?: react1924.ReactNode | undefined;
11
+ }>, "ref"> & react1924.RefAttributes<unknown>>;
12
12
  //#endregion
13
13
  export { FormItem };
@@ -1,15 +1,15 @@
1
- import * as react28 from "react";
1
+ import * as react31 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: react28.ForwardRefExoticComponent<Omit<Partial<react28.ClassAttributes<HTMLInputElement> & react28.InputHTMLAttributes<HTMLInputElement> & {
7
+ declare const NumberInput: react31.ForwardRefExoticComponent<Omit<Partial<react31.ClassAttributes<HTMLInputElement> & react31.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"> & react28.RefAttributes<unknown>>;
13
+ }>, "ref"> & react31.RefAttributes<unknown>>;
14
14
  //#endregion
15
15
  export { NumberInput };
@@ -1,15 +1,15 @@
1
- import * as react28 from "react";
1
+ import * as react31 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: react28.ForwardRefExoticComponent<Omit<Partial<react28.ClassAttributes<HTMLInputElement> & react28.InputHTMLAttributes<HTMLInputElement> & {
7
+ declare const NumberInput: react31.ForwardRefExoticComponent<Omit<Partial<react31.ClassAttributes<HTMLInputElement> & react31.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"> & react28.RefAttributes<unknown>>;
13
+ }>, "ref"> & react31.RefAttributes<unknown>>;
14
14
  //#endregion
15
15
  export { NumberInput };
@@ -34,6 +34,7 @@ const require_Select = require('../Select.cjs');
34
34
  const require_Separator = require('../Separator.cjs');
35
35
  const require_Switch = require('../Switch.cjs');
36
36
  const require_Textarea = require('../Textarea.cjs');
37
+ const require_ToggleButton = require('../ToggleButton.cjs');
37
38
  const require_ToggleGroup = require('../ToggleGroup.cjs');
38
39
  let __formily_react = require("@formily/react");
39
40
  __formily_react = require_rolldown_runtime.__toESM(__formily_react);
@@ -90,6 +91,10 @@ const basicComponentRegistry = {
90
91
  component: require_IconToggle.IconToggle,
91
92
  decorator: "FormItem"
92
93
  },
94
+ ToggleButton: {
95
+ component: require_ToggleButton.ToggleButton,
96
+ decorator: "FormItem"
97
+ },
93
98
  Input: {
94
99
  component: require_Input.Input,
95
100
  decorator: "FormItem"