@pixpilot/formily-shadcn 0.43.0 → 0.44.1

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 (32) hide show
  1. package/dist/components/IconPicker.d.cts +3 -3
  2. package/dist/components/IconToggle.d.cts +2 -2
  3. package/dist/components/Input.d.cts +3 -3
  4. package/dist/components/Rating.cjs +8 -1
  5. package/dist/components/Rating.d.cts +3 -1
  6. package/dist/components/Rating.d.ts +3 -1
  7. package/dist/components/Rating.js +7 -1
  8. package/dist/components/Separator.d.cts +2 -2
  9. package/dist/components/Separator.d.ts +2 -2
  10. package/dist/components/Switch.d.cts +2 -2
  11. package/dist/components/Switch.d.ts +2 -2
  12. package/dist/components/TagsInputInline.d.cts +2 -2
  13. package/dist/components/TagsInputInline.d.ts +2 -2
  14. package/dist/components/Textarea.d.cts +2 -2
  15. package/dist/components/Textarea.d.ts +2 -2
  16. package/dist/components/form-item/ConnectedFormItem.d.cts +4 -4
  17. package/dist/components/form-item/ConnectedFormItem.d.ts +4 -4
  18. package/dist/components/number/NumberInput.d.cts +3 -3
  19. package/dist/components/number/NumberInput.d.ts +3 -3
  20. package/dist/components/schema-field/schema-field-basics.d.cts +270 -270
  21. package/dist/components/schema-field/schema-field-basics.d.ts +270 -270
  22. package/dist/components/schema-field/schema-field-extended.d.cts +452 -430
  23. package/dist/components/schema-field/schema-field-extended.d.ts +452 -430
  24. package/dist/components/schema-field/schema-field.d.cts +380 -358
  25. package/dist/components/schema-field/schema-field.d.ts +380 -358
  26. package/dist/components/slider/Slider.d.cts +3 -3
  27. package/dist/components/slider/Slider.d.ts +2 -2
  28. package/dist/components/slider/SliderInput.d.cts +2 -2
  29. package/dist/components/slider/SliderInput.d.ts +2 -2
  30. package/dist/components/slider/SliderSelect.d.cts +3 -3
  31. package/dist/components/slider/SliderSelect.d.ts +2 -2
  32. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import * as react4 from "react";
1
+ import * as react7 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: react7.ForwardRefExoticComponent<Partial<Omit<IconPickerProps, "providers"> & {
12
12
  providers?: IconProviderProps[];
13
- }> & react4.RefAttributes<unknown>>;
13
+ }> & react7.RefAttributes<unknown>>;
14
14
  //#endregion
15
15
  export { IconPicker };
@@ -1,4 +1,4 @@
1
- import * as react10 from "react";
1
+ import * as react4 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: react10.ForwardRefExoticComponent<Omit<Partial<Omit<_pixpilot_shadcn_ui0.IconToggleProps, "ref"> & react10.RefAttributes<HTMLButtonElement>>, "ref"> & react10.RefAttributes<unknown>>;
9
+ declare const IconToggle: react4.ForwardRefExoticComponent<Omit<Partial<Omit<_pixpilot_shadcn_ui0.IconToggleProps, "ref"> & react4.RefAttributes<HTMLButtonElement>>, "ref"> & react4.RefAttributes<unknown>>;
10
10
  //#endregion
11
11
  export { IconToggle };
@@ -1,4 +1,4 @@
1
- import * as react6 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 react6 from "react";
6
6
  * Formily-connected Input component
7
7
  * Automatically connects shadcn Input to Formily field state
8
8
  */
9
- declare const Input: react6.ForwardRefExoticComponent<Omit<Partial<react6.ClassAttributes<HTMLInputElement> & react6.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"> & react6.RefAttributes<unknown>>;
15
+ }>, "ref"> & react9.RefAttributes<unknown>>;
16
16
  //#endregion
17
17
  export { Input };
@@ -3,13 +3,20 @@ let __formily_react = require("@formily/react");
3
3
  __formily_react = require_rolldown_runtime.__toESM(__formily_react);
4
4
  let __pixpilot_shadcn_ui = require("@pixpilot/shadcn-ui");
5
5
  __pixpilot_shadcn_ui = require_rolldown_runtime.__toESM(__pixpilot_shadcn_ui);
6
+ let __pixpilot_shadcn = require("@pixpilot/shadcn");
7
+ __pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
6
8
 
7
9
  //#region src/components/Rating.tsx
8
10
  /**
9
11
  * Formily-connected Rating component
10
12
  * Automatically connects shadcn-ui Rating to Formily field state
11
13
  */
12
- const Rating = (0, __formily_react.connect)(__pixpilot_shadcn_ui.Rating, (0, __formily_react.mapProps)({ onInput: "onValueChange" }));
14
+ const Rating = (0, __formily_react.connect)(__pixpilot_shadcn_ui.Rating, (0, __formily_react.mapProps)({ onInput: "onValueChange" }, (props, _field) => {
15
+ return {
16
+ ...props,
17
+ className: (0, __pixpilot_shadcn.cn)("h-9 flex items-center", props.className)
18
+ };
19
+ }));
13
20
 
14
21
  //#endregion
15
22
  exports.Rating = Rating;
@@ -6,6 +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> & react13.RefAttributes<unknown>>;
9
+ declare const Rating: react13.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui0.RatingProps & {
10
+ children?: react13.ReactNode | undefined;
11
+ }> & react13.RefAttributes<unknown>>;
10
12
  //#endregion
11
13
  export { Rating };
@@ -6,6 +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: react13.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui0.RatingProps> & react13.RefAttributes<unknown>>;
9
+ declare const Rating$1: react13.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui0.RatingProps & {
10
+ children?: react13.ReactNode | undefined;
11
+ }> & react13.RefAttributes<unknown>>;
10
12
  //#endregion
11
13
  export { Rating$1 as Rating };
@@ -1,12 +1,18 @@
1
1
  import { connect, mapProps } from "@formily/react";
2
2
  import { Rating } from "@pixpilot/shadcn-ui";
3
+ import { cn as cn$1 } from "@pixpilot/shadcn";
3
4
 
4
5
  //#region src/components/Rating.tsx
5
6
  /**
6
7
  * Formily-connected Rating component
7
8
  * Automatically connects shadcn-ui Rating to Formily field state
8
9
  */
9
- const Rating$1 = connect(Rating, mapProps({ onInput: "onValueChange" }));
10
+ const Rating$1 = connect(Rating, mapProps({ onInput: "onValueChange" }, (props, _field) => {
11
+ return {
12
+ ...props,
13
+ className: cn$1("h-9 flex items-center", props.className)
14
+ };
15
+ }));
10
16
 
11
17
  //#endregion
12
18
  export { Rating$1 as Rating };
@@ -1,4 +1,4 @@
1
- import * as react15 from "react";
1
+ import * as react16 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: react15.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator0.SeparatorProps & react15.RefAttributes<HTMLDivElement>>, "ref"> & react15.RefAttributes<unknown>>;
9
+ declare const Separator: react16.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator0.SeparatorProps & react16.RefAttributes<HTMLDivElement>>, "ref"> & react16.RefAttributes<unknown>>;
10
10
  //#endregion
11
11
  export { Separator };
@@ -1,4 +1,4 @@
1
- import * as react15 from "react";
1
+ import * as react16 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: react15.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator0.SeparatorProps & react15.RefAttributes<HTMLDivElement>>, "ref"> & react15.RefAttributes<unknown>>;
9
+ declare const Separator: react16.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator0.SeparatorProps & react16.RefAttributes<HTMLDivElement>>, "ref"> & react16.RefAttributes<unknown>>;
10
10
  //#endregion
11
11
  export { Separator };
@@ -1,4 +1,4 @@
1
- import * as react20 from "react";
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: react20.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch0.SwitchProps & react20.RefAttributes<HTMLButtonElement>>, "ref"> & react20.RefAttributes<unknown>>;
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 react18 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: react18.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch0.SwitchProps & react18.RefAttributes<HTMLButtonElement>>, "ref"> & react18.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 react18 from "react";
1
+ import * as react19 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: react18.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui1.TagsInputProps> & react18.RefAttributes<unknown>>;
13
+ declare const TagsInputInLine: react19.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui1.TagsInputProps> & react19.RefAttributes<unknown>>;
14
14
  //#endregion
15
15
  export { TagsInputInLine };
@@ -1,4 +1,4 @@
1
- import * as react21 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: react21.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui1.TagsInputProps> & react21.RefAttributes<unknown>>;
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 react23 from "react";
1
+ import * as react24 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: react23.ForwardRefExoticComponent<Omit<Partial<react23.ClassAttributes<HTMLTextAreaElement> & react23.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react23.RefAttributes<unknown>>;
7
+ declare const Textarea: react24.ForwardRefExoticComponent<Omit<Partial<react24.ClassAttributes<HTMLTextAreaElement> & react24.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react24.RefAttributes<unknown>>;
8
8
  //#endregion
9
9
  export { Textarea };
@@ -1,9 +1,9 @@
1
- import * as react23 from "react";
1
+ import * as react24 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: react23.ForwardRefExoticComponent<Omit<Partial<react23.ClassAttributes<HTMLTextAreaElement> & react23.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react23.RefAttributes<unknown>>;
7
+ declare const Textarea: react24.ForwardRefExoticComponent<Omit<Partial<react24.ClassAttributes<HTMLTextAreaElement> & react24.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react24.RefAttributes<unknown>>;
8
8
  //#endregion
9
9
  export { Textarea };
@@ -1,13 +1,13 @@
1
1
  import { FormItemProps } from "./form-item-types.cjs";
2
- import * as react1702 from "react";
2
+ import * as react1725 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: react1702.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
10
- children?: react1702.ReactNode | undefined;
11
- }>, "ref"> & react1702.RefAttributes<unknown>>;
9
+ declare const FormItem: react1725.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
10
+ children?: react1725.ReactNode | undefined;
11
+ }>, "ref"> & react1725.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 react1702 from "react";
2
+ import * as react1725 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: react1702.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
10
- children?: react1702.ReactNode | undefined;
11
- }>, "ref"> & react1702.RefAttributes<unknown>>;
9
+ declare const FormItem: react1725.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
10
+ children?: react1725.ReactNode | undefined;
11
+ }>, "ref"> & react1725.RefAttributes<unknown>>;
12
12
  //#endregion
13
13
  export { FormItem };
@@ -1,15 +1,15 @@
1
- import * as react29 from "react";
1
+ import * as react30 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: react29.ForwardRefExoticComponent<Omit<Partial<react29.ClassAttributes<HTMLInputElement> & react29.InputHTMLAttributes<HTMLInputElement> & {
7
+ declare const NumberInput: react30.ForwardRefExoticComponent<Omit<Partial<react30.ClassAttributes<HTMLInputElement> & react30.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"> & react29.RefAttributes<unknown>>;
13
+ }>, "ref"> & react30.RefAttributes<unknown>>;
14
14
  //#endregion
15
15
  export { NumberInput };
@@ -1,15 +1,15 @@
1
- import * as react29 from "react";
1
+ import * as react30 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: react29.ForwardRefExoticComponent<Omit<Partial<react29.ClassAttributes<HTMLInputElement> & react29.InputHTMLAttributes<HTMLInputElement> & {
7
+ declare const NumberInput: react30.ForwardRefExoticComponent<Omit<Partial<react30.ClassAttributes<HTMLInputElement> & react30.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"> & react29.RefAttributes<unknown>>;
13
+ }>, "ref"> & react30.RefAttributes<unknown>>;
14
14
  //#endregion
15
15
  export { NumberInput };