@pixpilot/formily-shadcn 2.2.1 → 2.2.3

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.
@@ -1,12 +1,12 @@
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/DatePicker.d.ts
5
5
 
6
- declare const DatePicker$1: react0.ForwardRefExoticComponent<Partial<{
6
+ declare const DatePicker$1: react2.ForwardRefExoticComponent<Partial<{
7
7
  value?: Date;
8
8
  onChange?: (date: Date | undefined) => void;
9
9
  placeholder?: string;
10
- } & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> & react0.RefAttributes<unknown>>;
10
+ } & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> & react2.RefAttributes<unknown>>;
11
11
  //#endregion
12
12
  export { DatePicker$1 as DatePicker };
@@ -84,7 +84,7 @@ const BaseDialogItem = ({ children, label, description, trigger: triggerProp, op
84
84
  }),
85
85
  open && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn_ui.DialogBody, {
86
86
  ...slots?.body,
87
- className: (0, __pixpilot_shadcn.cn)("grid py-1", gapClass, slots?.body?.className),
87
+ className: (0, __pixpilot_shadcn.cn)("grid", gapClass, slots?.body?.className),
88
88
  children: [children, feedbackText != null && feedbackText !== "" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
89
89
  className: (0, __pixpilot_shadcn.cn)("text-[0.8rem]", feedbackStatus === "error" && "text-destructive font-medium", feedbackStatus === "warning" && "text-amber-600", feedbackStatus === "success" && "text-green-600"),
90
90
  children: feedbackText
@@ -79,7 +79,7 @@ const BaseDialogItem = ({ children, label, description, trigger: triggerProp, op
79
79
  }),
80
80
  open && /* @__PURE__ */ jsxs(DialogBody, {
81
81
  ...slots?.body,
82
- className: cn$1("grid py-1", gapClass, slots?.body?.className),
82
+ className: cn$1("grid", gapClass, slots?.body?.className),
83
83
  children: [children, feedbackText != null && feedbackText !== "" && /* @__PURE__ */ jsx("p", {
84
84
  className: cn$1("text-[0.8rem]", feedbackStatus === "error" && "text-destructive font-medium", feedbackStatus === "warning" && "text-amber-600", feedbackStatus === "success" && "text-green-600"),
85
85
  children: feedbackText
@@ -1,5 +1,5 @@
1
1
  import { DialogItemProps } from "./BaseDialogItem.js";
2
- import * as react1 from "react";
2
+ import * as react0 from "react";
3
3
 
4
4
  //#region src/components/dialog-item/ConnectedDialogItem.d.ts
5
5
 
@@ -8,8 +8,8 @@ import * as react1 from "react";
8
8
  * Maps field label, description, and validation state onto the decorator the
9
9
  * same way FormItem does.
10
10
  */
11
- declare const DialogItem: react1.ForwardRefExoticComponent<Omit<Partial<DialogItemProps & {
12
- children?: react1.ReactNode | undefined;
13
- }>, "ref"> & react1.RefAttributes<unknown>>;
11
+ declare const DialogItem: react0.ForwardRefExoticComponent<Omit<Partial<DialogItemProps & {
12
+ children?: react0.ReactNode | undefined;
13
+ }>, "ref"> & react0.RefAttributes<unknown>>;
14
14
  //#endregion
15
15
  export { DialogItem };
@@ -2,7 +2,7 @@ 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 react_jsx_runtime1 from "react/jsx-runtime";
5
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/form/Form.d.ts
8
8
  interface IFormProps extends FormContextStates {
@@ -27,6 +27,6 @@ declare function Form$1({
27
27
  onAutoSubmit,
28
28
  layout,
29
29
  settings
30
- }: IFormProps): react_jsx_runtime1.JSX.Element;
30
+ }: IFormProps): react_jsx_runtime0.JSX.Element;
31
31
  //#endregion
32
32
  export { Form$1 as Form, IFormProps };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/form-grid/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): react_jsx_runtime0.JSX.Element;
10
+ }: IFormGridProps): react_jsx_runtime1.JSX.Element;
11
11
  //#endregion
12
12
  export { FormGrid, IFormGridProps };
@@ -17,6 +17,10 @@ const meta = {
17
17
  toolbarItems: "Forwarded to the underlying UI component.",
18
18
  tooltipMode: "Forwarded to the underlying UI component.",
19
19
  placeholder: "Placeholder text shown before a value is selected or entered.",
20
+ maxLength: {
21
+ description: "Maximum number of characters allowed. Input beyond the limit is rejected and a \"current / max\" counter is rendered below the content area. Counts plain text, not HTML markup. In schema forms pass it via `x-component-props.maxLength`.",
22
+ type: "number"
23
+ },
20
24
  allowLinkTarget: "Forwarded to the underlying UI component.",
21
25
  openOnClick: "Forwarded to the underlying UI component."
22
26
  }),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixpilot/formily-shadcn",
3
3
  "type": "module",
4
- "version": "2.2.1",
4
+ "version": "2.2.3",
5
5
  "description": "Formily integration for shadcn/ui components",
6
6
  "author": "m.doaie <m.doaie@hotmail.com>",
7
7
  "license": "MIT",
@@ -51,7 +51,7 @@
51
51
  "pretty-bytes": "^7.1.1",
52
52
  "zod": "^4.3.6",
53
53
  "@pixpilot/shadcn": "2.1.0",
54
- "@pixpilot/shadcn-ui": "3.6.1"
54
+ "@pixpilot/shadcn-ui": "3.8.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@storybook/react": "^8.6.18",
@@ -67,10 +67,10 @@
67
67
  "tsx": "^4.21.0",
68
68
  "typescript": "^5.9.3",
69
69
  "@internal/eslint-config": "0.3.0",
70
- "@internal/prettier-config": "0.0.1",
71
70
  "@internal/mcp": "0.0.0",
72
- "@internal/tsconfig": "0.1.0",
71
+ "@internal/prettier-config": "0.0.1",
73
72
  "@internal/tsdown-config": "0.1.0",
73
+ "@internal/tsconfig": "0.1.0",
74
74
  "@internal/vitest-config": "0.1.0"
75
75
  },
76
76
  "prettier": "@internal/prettier-config",