@pixpilot/formily-shadcn 0.13.4 → 0.14.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.
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/column.d.ts +2 -2
- package/dist/components/date-picker.d.ts +3 -3
- package/dist/components/form-grid.d.ts +2 -2
- package/dist/components/input.d.ts +2 -2
- package/dist/components/number-input.d.ts +2 -2
- package/dist/components/radio.d.ts +2 -2
- package/dist/components/row.d.ts +2 -2
- package/dist/components/schema-field/schema-field-extended.d.cts +9 -9
- package/dist/components/schema-field/schema-field-extended.d.ts +478 -478
- package/dist/components/schema-field/schema-field.d.ts +258 -258
- package/dist/components/separator.d.ts +2 -2
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/tags-input-inline.d.ts +2 -2
- package/dist/components/textarea.d.ts +2 -2
- package/dist/index.cjs +4 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/utils/array-item-editor-utils.d.cts +1 -0
- package/dist/utils/array-item-editor-utils.d.ts +1 -0
- package/dist/utils/extract-fields-decorators.d.cts +1 -0
- package/dist/utils/extract-fields-decorators.d.ts +1 -0
- package/dist/utils/for-each-schema.d.cts +1 -0
- package/dist/utils/for-each-schema.d.ts +1 -0
- package/dist/utils/get-array-item-info.d.cts +1 -0
- package/dist/utils/get-array-item-info.d.ts +1 -0
- package/dist/utils/get-default-value.d.cts +1 -0
- package/dist/utils/get-default-value.d.ts +1 -0
- package/dist/utils/has-array-item-errors.d.cts +1 -0
- package/dist/utils/has-array-item-errors.d.ts +1 -0
- package/dist/utils/has-error.d.cts +1 -0
- package/dist/utils/has-error.d.ts +1 -0
- package/dist/utils/index.d.cts +11 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/transform-schema.d.cts +6 -0
- package/dist/utils/transform-schema.d.ts +6 -0
- package/dist/utils/use-array-item-editor.d.cts +1 -0
- package/dist/utils/use-array-item-editor.d.ts +1 -0
- package/dist/utils/validate-array-item-fields.d.cts +1 -0
- package/dist/utils/validate-array-item-fields.d.ts +1 -0
- package/dist/utils/validate-schema-components.d.cts +1 -0
- package/dist/utils/validate-schema-components.d.ts +1 -0
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react19 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: react19.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator0.SeparatorProps & react19.RefAttributes<HTMLDivElement>>, "ref"> & react19.RefAttributes<unknown>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Separator };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react14 from "react";
|
|
2
2
|
import { SliderProps } from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/slider.d.ts
|
|
@@ -7,6 +7,6 @@ import { SliderProps } from "@pixpilot/shadcn-ui";
|
|
|
7
7
|
* Formily-connected Slider component
|
|
8
8
|
* Range input for selecting numeric values
|
|
9
9
|
*/
|
|
10
|
-
declare const Slider$1:
|
|
10
|
+
declare const Slider$1: react14.ForwardRefExoticComponent<Omit<Partial<SliderProps>, "ref"> & react14.RefAttributes<unknown>>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Slider$1 as Slider };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react16 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: react16.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch0.SwitchProps & react16.RefAttributes<HTMLButtonElement>>, "ref"> & react16.RefAttributes<unknown>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Switch };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react22 from "react";
|
|
2
2
|
import * as _pixpilot_shadcn_ui0 from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tags-input-inline.d.ts
|
|
@@ -10,6 +10,6 @@ import * as _pixpilot_shadcn_ui0 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: react22.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui0.TagsInputProps> & react22.RefAttributes<unknown>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { TagsInputInLine };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
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:
|
|
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 };
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_transform_schema = require('./utils/transform-schema.cjs');
|
|
3
|
+
require('./utils/index.cjs');
|
|
2
4
|
const require_array_base = require('./components/array-base/array-base.cjs');
|
|
3
5
|
require('./components/array-base/index.cjs');
|
|
4
6
|
const require_array_cards = require('./components/array-cards/array-cards.cjs');
|
|
@@ -117,4 +119,5 @@ Object.defineProperty(exports, 'createForm', {
|
|
|
117
119
|
exports.defaultComponentRegistry = require_schema_field.defaultComponentRegistry;
|
|
118
120
|
exports.defaultComponents = require_schema_field.defaultComponents;
|
|
119
121
|
exports.extendedComponentRegistry = require_schema_field_extended.extendedComponentRegistry;
|
|
120
|
-
exports.extendedComponents = require_schema_field_extended.extendedComponents;
|
|
122
|
+
exports.extendedComponents = require_schema_field_extended.extendedComponents;
|
|
123
|
+
exports.transformSchema = require_transform_schema.transformSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -41,6 +41,8 @@ import { Slider } from "./components/slider.cjs";
|
|
|
41
41
|
import { Switch } from "./components/switch.cjs";
|
|
42
42
|
import { TagsInputInLine } from "./components/tags-input-inline.cjs";
|
|
43
43
|
import { Textarea } from "./components/textarea.cjs";
|
|
44
|
+
import { transformSchema } from "./utils/transform-schema.cjs";
|
|
45
|
+
import "./utils/index.cjs";
|
|
44
46
|
import { Field, FormConsumer, FormProvider, ISchema, ObjectField, VoidField } from "@formily/react";
|
|
45
47
|
import { Form as IForm, createForm } from "@formily/core";
|
|
46
|
-
export { ArrayBase, type ArrayBaseMixins, ArrayCards, ArrayCollapse, AvatarUpload, Checkbox, Column, Combobox, ConnectedRadio, DatePicker, Field, FileUpload, FileUploadInline, Form, FormConsumer, FormGrid, FormItem, type FormLayoutOptions, FormProvider, type IArrayBaseOperationProps, type IArrayBaseProps, type IForm, type ISchema, IconPicker, Input, JsonSchemaForm, JsonSchemaFormBasic, JsonSchemaFormComponent, JsonSchemaFormComponents, JsonSchemaFormExtended, JsonSchemaFormProps, JsonSchemaFormRenderer, JsonSchemaFormRendererProps, NumberInput, ObjectField, Radio, RichTextEditor, Row, SchemaField, SchemaFieldBasics, SchemaFieldExtended, Select, Separator, Slider, Switch, TagsInputInLine, Textarea, VoidField, basicComponentRegistry, basicComponents, createForm, defaultComponentRegistry, defaultComponents, extendedComponentRegistry, extendedComponents };
|
|
48
|
+
export { ArrayBase, type ArrayBaseMixins, ArrayCards, ArrayCollapse, AvatarUpload, Checkbox, Column, Combobox, ConnectedRadio, DatePicker, Field, FileUpload, FileUploadInline, Form, FormConsumer, FormGrid, FormItem, type FormLayoutOptions, FormProvider, type IArrayBaseOperationProps, type IArrayBaseProps, type IForm, type ISchema, IconPicker, Input, JsonSchemaForm, JsonSchemaFormBasic, JsonSchemaFormComponent, JsonSchemaFormComponents, JsonSchemaFormExtended, JsonSchemaFormProps, JsonSchemaFormRenderer, JsonSchemaFormRendererProps, NumberInput, ObjectField, Radio, RichTextEditor, Row, SchemaField, SchemaFieldBasics, SchemaFieldExtended, Select, Separator, Slider, Switch, TagsInputInLine, Textarea, VoidField, basicComponentRegistry, basicComponents, createForm, defaultComponentRegistry, defaultComponents, extendedComponentRegistry, extendedComponents, transformSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ import { Slider } from "./components/slider.js";
|
|
|
41
41
|
import { Switch } from "./components/switch.js";
|
|
42
42
|
import { TagsInputInLine } from "./components/tags-input-inline.js";
|
|
43
43
|
import { Textarea } from "./components/textarea.js";
|
|
44
|
+
import { transformSchema } from "./utils/transform-schema.js";
|
|
45
|
+
import "./utils/index.js";
|
|
44
46
|
import { Field, FormConsumer, FormProvider, ISchema, ObjectField, VoidField } from "@formily/react";
|
|
45
47
|
import { Form as IForm, createForm } from "@formily/core";
|
|
46
|
-
export { ArrayBase, type ArrayBaseMixins, ArrayCards, ArrayCollapse, AvatarUpload, Checkbox, Column, Combobox, ConnectedRadio, DatePicker, Field, FileUpload, FileUploadInline, Form, FormConsumer, FormGrid, FormItem, type FormLayoutOptions, FormProvider, type IArrayBaseOperationProps, type IArrayBaseProps, type IForm, type ISchema, IconPicker, Input, JsonSchemaForm, JsonSchemaFormBasic, JsonSchemaFormComponent, JsonSchemaFormComponents, JsonSchemaFormExtended, JsonSchemaFormProps, JsonSchemaFormRenderer, JsonSchemaFormRendererProps, NumberInput, ObjectField, Radio, RichTextEditor, Row, SchemaField, SchemaFieldBasics, SchemaFieldExtended, Select, Separator, Slider, Switch, TagsInputInLine, Textarea, VoidField, basicComponentRegistry, basicComponents, createForm, defaultComponentRegistry, defaultComponents, extendedComponentRegistry, extendedComponents };
|
|
48
|
+
export { ArrayBase, type ArrayBaseMixins, ArrayCards, ArrayCollapse, AvatarUpload, Checkbox, Column, Combobox, ConnectedRadio, DatePicker, Field, FileUpload, FileUploadInline, Form, FormConsumer, FormGrid, FormItem, type FormLayoutOptions, FormProvider, type IArrayBaseOperationProps, type IArrayBaseProps, type IForm, type ISchema, IconPicker, Input, JsonSchemaForm, JsonSchemaFormBasic, JsonSchemaFormComponent, JsonSchemaFormComponents, JsonSchemaFormExtended, JsonSchemaFormProps, JsonSchemaFormRenderer, JsonSchemaFormRendererProps, NumberInput, ObjectField, Radio, RichTextEditor, Row, SchemaField, SchemaFieldBasics, SchemaFieldExtended, Select, Separator, Slider, Switch, TagsInputInLine, Textarea, VoidField, basicComponentRegistry, basicComponents, createForm, defaultComponentRegistry, defaultComponents, extendedComponentRegistry, extendedComponents, transformSchema };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { transformSchema } from "./utils/transform-schema.js";
|
|
2
|
+
import "./utils/index.js";
|
|
1
3
|
import { ArrayBase } from "./components/array-base/array-base.js";
|
|
2
4
|
import "./components/array-base/index.js";
|
|
3
5
|
import { ArrayCards } from "./components/array-cards/array-cards.js";
|
|
@@ -40,4 +42,4 @@ import "./components/json-schema-form-renderer/index.js";
|
|
|
40
42
|
import { Field, FormConsumer, FormProvider, ObjectField, VoidField } from "@formily/react";
|
|
41
43
|
import { createForm } from "@formily/core";
|
|
42
44
|
|
|
43
|
-
export { ArrayBase, ArrayCards, ArrayCollapse, AvatarUpload, Checkbox, Column, Combobox, ConnectedRadio, DatePicker, Field, FileUpload, FileUploadInline, Form, FormConsumer, FormGrid, FormItem, FormProvider, IconPicker, Input, JsonSchemaForm, JsonSchemaFormBasic, JsonSchemaFormExtended, JsonSchemaFormRenderer, NumberInput, ObjectField, Radio, RichTextEditor, Row, SchemaField, SchemaFieldBasics, SchemaFieldExtended, Select, Separator, Slider, Switch, TagsInputInLine, Textarea, VoidField, basicComponentRegistry, basicComponents, createForm, defaultComponentRegistry, defaultComponents, extendedComponentRegistry, extendedComponents };
|
|
45
|
+
export { ArrayBase, ArrayCards, ArrayCollapse, AvatarUpload, Checkbox, Column, Combobox, ConnectedRadio, DatePicker, Field, FileUpload, FileUploadInline, Form, FormConsumer, FormGrid, FormItem, FormProvider, IconPicker, Input, JsonSchemaForm, JsonSchemaFormBasic, JsonSchemaFormExtended, JsonSchemaFormRenderer, NumberInput, ObjectField, Radio, RichTextEditor, Row, SchemaField, SchemaFieldBasics, SchemaFieldExtended, Select, Separator, Slider, Switch, TagsInputInLine, Textarea, VoidField, basicComponentRegistry, basicComponents, createForm, defaultComponentRegistry, defaultComponents, extendedComponentRegistry, extendedComponents, transformSchema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ArrayField } from "@formily/core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ArrayField } from "@formily/core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React from "react";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React from "react";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Schema } from "@formily/react";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Schema } from "@formily/react";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ArrayField } from "@formily/core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ArrayField } from "@formily/core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Schema } from "@formily/react";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Schema } from "@formily/react";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ArrayField } from "@formily/core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ArrayField } from "@formily/core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@formily/core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@formily/core";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./array-item-editor-utils.cjs";
|
|
2
|
+
import "./extract-fields-decorators.cjs";
|
|
3
|
+
import "./for-each-schema.cjs";
|
|
4
|
+
import "./get-array-item-info.cjs";
|
|
5
|
+
import "./get-default-value.cjs";
|
|
6
|
+
import "./has-array-item-errors.cjs";
|
|
7
|
+
import "./has-error.cjs";
|
|
8
|
+
import { transformSchema } from "./transform-schema.cjs";
|
|
9
|
+
import "./use-array-item-editor.cjs";
|
|
10
|
+
import "./validate-array-item-fields.cjs";
|
|
11
|
+
import "./validate-schema-components.cjs";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./array-item-editor-utils.js";
|
|
2
|
+
import "./extract-fields-decorators.js";
|
|
3
|
+
import "./for-each-schema.js";
|
|
4
|
+
import "./get-array-item-info.js";
|
|
5
|
+
import "./get-default-value.js";
|
|
6
|
+
import "./has-array-item-errors.js";
|
|
7
|
+
import "./has-error.js";
|
|
8
|
+
import { transformSchema } from "./transform-schema.js";
|
|
9
|
+
import "./use-array-item-editor.js";
|
|
10
|
+
import "./validate-array-item-fields.js";
|
|
11
|
+
import "./validate-schema-components.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ArrayField } from "@formily/core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ArrayField } from "@formily/core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ArrayField } from "@formily/core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ArrayField } from "@formily/core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ISchema } from "@formily/react";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ISchema } from "@formily/react";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixpilot/formily-shadcn",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.14.0",
|
|
5
5
|
"description": "Formily integration for shadcn/ui components",
|
|
6
6
|
"author": "m.doaie <m.doaie@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"json-schema-traverse": "^1.0.0",
|
|
41
41
|
"lucide-react": "^0.554.0",
|
|
42
42
|
"pretty-bytes": "^7.1.0",
|
|
43
|
-
"@pixpilot/shadcn": "0.
|
|
44
|
-
"@pixpilot/shadcn
|
|
43
|
+
"@pixpilot/shadcn-ui": "0.8.0",
|
|
44
|
+
"@pixpilot/shadcn": "0.4.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@storybook/react": "^10.1.8",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"react-dom": "19.2.0",
|
|
55
55
|
"tsdown": "^0.15.12",
|
|
56
56
|
"typescript": "^5.9.3",
|
|
57
|
-
"@internal/eslint-config": "0.3.0",
|
|
58
57
|
"@internal/prettier-config": "0.0.1",
|
|
58
|
+
"@internal/eslint-config": "0.3.0",
|
|
59
59
|
"@internal/tsconfig": "0.1.0",
|
|
60
60
|
"@internal/tsdown-config": "0.1.0",
|
|
61
61
|
"@internal/vitest-config": "0.1.0"
|