@pixpilot/formily-shadcn 0.20.2 → 0.21.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 (38) hide show
  1. package/dist/components/checkbox.d.cts +2 -2
  2. package/dist/components/color-select.cjs +11 -0
  3. package/dist/components/color-select.d.cts +6 -0
  4. package/dist/components/color-select.d.ts +6 -0
  5. package/dist/components/color-select.js +8 -0
  6. package/dist/components/date-picker.d.cts +3 -3
  7. package/dist/components/form-grid.d.ts +2 -2
  8. package/dist/components/form-item/connected-form-item.d.cts +4 -4
  9. package/dist/components/form-item/connected-form-item.d.ts +4 -4
  10. package/dist/components/form.d.ts +2 -2
  11. package/dist/components/icon-picker.d.ts +3 -3
  12. package/dist/components/input.d.ts +3 -3
  13. package/dist/components/number/number-input.d.cts +3 -3
  14. package/dist/components/radio.d.ts +2 -2
  15. package/dist/components/row.d.ts +2 -2
  16. package/dist/components/schema-field/schema-field-basics.d.cts +248 -248
  17. package/dist/components/schema-field/schema-field-basics.d.ts +248 -248
  18. package/dist/components/schema-field/schema-field-extended.d.cts +548 -534
  19. package/dist/components/schema-field/schema-field-extended.d.ts +548 -534
  20. package/dist/components/schema-field/schema-field.cjs +5 -0
  21. package/dist/components/schema-field/schema-field.d.cts +327 -313
  22. package/dist/components/schema-field/schema-field.d.ts +322 -308
  23. package/dist/components/schema-field/schema-field.js +5 -0
  24. package/dist/components/slider/slider-input.d.cts +3 -3
  25. package/dist/components/slider/slider-input.d.ts +3 -3
  26. package/dist/components/slider/slider-select.d.cts +3 -3
  27. package/dist/components/slider/slider-select.d.ts +3 -3
  28. package/dist/components/slider/slider.d.cts +3 -3
  29. package/dist/components/slider/slider.d.ts +3 -3
  30. package/dist/components/switch.d.ts +2 -2
  31. package/dist/components/tags-input-inline.d.cts +2 -2
  32. package/dist/components/tags-input-inline.d.ts +2 -2
  33. package/dist/components/textarea.d.cts +2 -2
  34. package/dist/index.cjs +2 -0
  35. package/dist/index.d.cts +2 -1
  36. package/dist/index.d.ts +2 -1
  37. package/dist/index.js +2 -1
  38. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- import * as react1 from "react";
1
+ import * as react0 from "react";
2
2
  import * as _radix_ui_react_checkbox0 from "@radix-ui/react-checkbox";
3
3
 
4
4
  //#region src/components/checkbox.d.ts
@@ -6,6 +6,6 @@ import * as _radix_ui_react_checkbox0 from "@radix-ui/react-checkbox";
6
6
  * Formily-connected Checkbox component
7
7
  * Maps Formily field checked state to shadcn Checkbox
8
8
  */
9
- declare const Checkbox: react1.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox0.CheckboxProps & react1.RefAttributes<HTMLButtonElement>>, "ref"> & react1.RefAttributes<unknown>>;
9
+ declare const Checkbox: react0.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_checkbox0.CheckboxProps & react0.RefAttributes<HTMLButtonElement>>, "ref"> & react0.RefAttributes<unknown>>;
10
10
  //#endregion
11
11
  export { Checkbox };
@@ -0,0 +1,11 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ let __formily_react = require("@formily/react");
3
+ __formily_react = require_rolldown_runtime.__toESM(__formily_react);
4
+ let __pixpilot_shadcn_ui = require("@pixpilot/shadcn-ui");
5
+ __pixpilot_shadcn_ui = require_rolldown_runtime.__toESM(__pixpilot_shadcn_ui);
6
+
7
+ //#region src/components/color-select.tsx
8
+ const ColorSelect = (0, __formily_react.connect)(__pixpilot_shadcn_ui.ColorSelect, (0, __formily_react.mapProps)({ dataSource: "options" }));
9
+
10
+ //#endregion
11
+ exports.ColorSelect = ColorSelect;
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+
3
+ //#region src/components/color-select.d.ts
4
+ declare const ColorSelect: FC;
5
+ //#endregion
6
+ export { ColorSelect };
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+
3
+ //#region src/components/color-select.d.ts
4
+ declare const ColorSelect: FC;
5
+ //#endregion
6
+ export { ColorSelect };
@@ -0,0 +1,8 @@
1
+ import { connect, mapProps } from "@formily/react";
2
+ import { ColorSelect } from "@pixpilot/shadcn-ui";
3
+
4
+ //#region src/components/color-select.tsx
5
+ const ColorSelect$1 = connect(ColorSelect, mapProps({ dataSource: "options" }));
6
+
7
+ //#endregion
8
+ export { ColorSelect$1 as ColorSelect };
@@ -1,11 +1,11 @@
1
- import * as react0 from "react";
1
+ import * as react2 from "react";
2
2
  import { DatePickerProps } from "@pixpilot/shadcn-ui";
3
3
 
4
4
  //#region src/components/date-picker.d.ts
5
- declare const DatePicker: react0.ForwardRefExoticComponent<Partial<{
5
+ declare const DatePicker: react2.ForwardRefExoticComponent<Partial<{
6
6
  value?: Date;
7
7
  onChange?: (date: Date | undefined) => void;
8
8
  placeholder?: string;
9
- } & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> & react0.RefAttributes<unknown>>;
9
+ } & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> & react2.RefAttributes<unknown>>;
10
10
  //#endregion
11
11
  export { DatePicker };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime1 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/form-grid.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): react_jsx_runtime1.JSX.Element;
10
+ }: IFormGridProps): react_jsx_runtime0.JSX.Element;
11
11
  //#endregion
12
12
  export { FormGrid };
@@ -1,13 +1,13 @@
1
1
  import { FormItemProps } from "./form-item-types.cjs";
2
- import * as react1499 from "react";
2
+ import * as react1519 from "react";
3
3
 
4
4
  //#region src/components/form-item/connected-form-item.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: react1499.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
10
- children?: react1499.ReactNode | undefined;
11
- }>, "ref"> & react1499.RefAttributes<unknown>>;
9
+ declare const FormItem: react1519.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
10
+ children?: react1519.ReactNode | undefined;
11
+ }>, "ref"> & react1519.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 react1499 from "react";
2
+ import * as react1521 from "react";
3
3
 
4
4
  //#region src/components/form-item/connected-form-item.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: react1499.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
10
- children?: react1499.ReactNode | undefined;
11
- }>, "ref"> & react1499.RefAttributes<unknown>>;
9
+ declare const FormItem: react1521.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
10
+ children?: react1521.ReactNode | undefined;
11
+ }>, "ref"> & react1521.RefAttributes<unknown>>;
12
12
  //#endregion
13
13
  export { FormItem };
@@ -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 react_jsx_runtime0 from "react/jsx-runtime";
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.d.ts
@@ -25,6 +25,6 @@ declare function Form$1({
25
25
  onAutoSubmit,
26
26
  layout,
27
27
  settings
28
- }: IFormProps): react_jsx_runtime0.JSX.Element;
28
+ }: IFormProps): react_jsx_runtime1.JSX.Element;
29
29
  //#endregion
30
30
  export { Form$1 as Form };
@@ -1,4 +1,4 @@
1
- import * as react8 from "react";
1
+ import * as react4 from "react";
2
2
  import { IconPickerProps, IconProviderProps } from "@pixpilot/shadcn-ui";
3
3
 
4
4
  //#region src/components/icon-picker.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: react8.ForwardRefExoticComponent<Partial<Omit<IconPickerProps, "providers"> & {
11
+ declare const IconPicker$1: react4.ForwardRefExoticComponent<Partial<Omit<IconPickerProps, "providers"> & {
12
12
  providers?: IconProviderProps[];
13
- }> & react8.RefAttributes<unknown>>;
13
+ }> & react4.RefAttributes<unknown>>;
14
14
  //#endregion
15
15
  export { IconPicker$1 as IconPicker };
@@ -1,4 +1,4 @@
1
- import * as react4 from "react";
1
+ import * as react6 from "react";
2
2
 
3
3
  //#region src/components/input.d.ts
4
4
 
@@ -6,12 +6,12 @@ import * as react4 from "react";
6
6
  * Formily-connected Input component
7
7
  * Automatically connects shadcn Input to Formily field state
8
8
  */
9
- declare const Input: react4.ForwardRefExoticComponent<Omit<Partial<react4.ClassAttributes<HTMLInputElement> & react4.InputHTMLAttributes<HTMLInputElement> & {
9
+ declare const Input: react6.ForwardRefExoticComponent<Omit<Partial<react6.ClassAttributes<HTMLInputElement> & react6.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"> & react4.RefAttributes<unknown>>;
15
+ }>, "ref"> & react6.RefAttributes<unknown>>;
16
16
  //#endregion
17
17
  export { Input };
@@ -1,15 +1,15 @@
1
- import * as react24 from "react";
1
+ import * as react22 from "react";
2
2
 
3
3
  //#region src/components/number/number-input.d.ts
4
4
  /**
5
5
  * Formily-connected Number Input component
6
6
  */
7
- declare const NumberInput: react24.ForwardRefExoticComponent<Omit<Partial<react24.ClassAttributes<HTMLInputElement> & react24.InputHTMLAttributes<HTMLInputElement> & {
7
+ declare const NumberInput: react22.ForwardRefExoticComponent<Omit<Partial<react22.ClassAttributes<HTMLInputElement> & react22.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"> & react24.RefAttributes<unknown>>;
13
+ }>, "ref"> & react22.RefAttributes<unknown>>;
14
14
  //#endregion
15
15
  export { NumberInput };
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import * as react_jsx_runtime2 from "react/jsx-runtime";
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): react_jsx_runtime2.JSX.Element;
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 React from "react";
2
- import * as react_jsx_runtime3 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime2 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): react_jsx_runtime3.JSX.Element;
39
+ }: IRowProps): react_jsx_runtime2.JSX.Element;
40
40
  //#endregion
41
41
  export { Row };