@pixpilot/formily-shadcn 1.14.2 → 1.15.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/array-base/mcp.js +53 -0
- package/dist/components/array-cards/Item.cjs +2 -3
- package/dist/components/array-cards/Item.js +2 -3
- package/dist/components/array-cards/mcp.js +54 -0
- package/dist/components/array-collapse/Item.cjs +2 -3
- package/dist/components/array-collapse/Item.js +2 -3
- package/dist/components/array-collapse/mcp.js +55 -0
- package/dist/components/array-common/ArrayItemDraftFields.cjs +1 -15
- package/dist/components/array-common/ArrayItemDraftFields.js +1 -15
- package/dist/components/array-common/ListItem.cjs +20 -30
- package/dist/components/array-common/ListItem.js +20 -30
- package/dist/components/array-common/array-mcp-props.js +26 -0
- package/dist/components/array-common/index.cjs +1 -0
- package/dist/components/array-common/index.js +1 -0
- package/dist/components/array-common/use-array-item-wrapper-props.cjs +35 -0
- package/dist/components/array-common/use-array-item-wrapper-props.js +32 -0
- package/dist/components/array-dialog/mcp.js +58 -0
- package/dist/components/array-inline/Item.cjs +2 -3
- package/dist/components/array-inline/Item.js +2 -3
- package/dist/components/array-inline/mcp.js +46 -0
- package/dist/components/array-popover/mcp.js +52 -0
- package/dist/components/array-sortable/mcp.js +44 -0
- package/dist/components/array-tags/mcp.js +70 -0
- package/dist/components/array-toggle-group/mcp.js +53 -0
- package/dist/components/{Checkbox.cjs → checkbox/Checkbox.cjs} +3 -3
- package/dist/components/checkbox/Checkbox.d.cts +12 -0
- package/dist/components/checkbox/Checkbox.d.ts +12 -0
- package/dist/components/{Checkbox.js → checkbox/Checkbox.js} +2 -2
- package/dist/components/checkbox/index.cjs +1 -0
- package/dist/components/checkbox/index.d.cts +1 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/checkbox/mcp.js +41 -0
- package/dist/components/color-picker/mcp.js +59 -0
- package/dist/components/{ColorSelect.cjs → color-select/ColorSelect.cjs} +2 -2
- package/dist/components/color-select/ColorSelect.d.cts +7 -0
- package/dist/components/color-select/ColorSelect.d.ts +7 -0
- package/dist/components/{ColorSelect.js → color-select/ColorSelect.js} +1 -1
- package/dist/components/color-select/index.cjs +1 -0
- package/dist/components/color-select/index.d.cts +1 -0
- package/dist/components/color-select/index.d.ts +1 -0
- package/dist/components/color-select/index.js +1 -0
- package/dist/components/color-select/mcp.js +46 -0
- package/dist/components/{Column.cjs → column/Column.cjs} +2 -2
- package/dist/components/{Column.d.cts → column/Column.d.cts} +2 -2
- package/dist/components/{Column.d.ts → column/Column.d.ts} +2 -2
- package/dist/components/{Column.js → column/Column.js} +1 -1
- package/dist/components/column/index.cjs +1 -0
- package/dist/components/column/index.d.cts +1 -0
- package/dist/components/column/index.d.ts +1 -0
- package/dist/components/column/index.js +1 -0
- package/dist/components/column/mcp.js +36 -0
- package/dist/components/{Combobox.cjs → combobox/Combobox.cjs} +2 -2
- package/dist/components/combobox/Combobox.d.cts +7 -0
- package/dist/components/combobox/Combobox.d.ts +7 -0
- package/dist/components/{Combobox.js → combobox/Combobox.js} +1 -1
- package/dist/components/combobox/index.cjs +1 -0
- package/dist/components/combobox/index.d.cts +1 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/combobox/mcp.js +48 -0
- package/dist/components/{DatePicker.cjs → date-picker/DatePicker.cjs} +2 -2
- package/dist/components/{DatePicker.d.cts → date-picker/DatePicker.d.cts} +5 -4
- package/dist/components/{DatePicker.d.ts → date-picker/DatePicker.d.ts} +5 -4
- package/dist/components/{DatePicker.js → date-picker/DatePicker.js} +1 -1
- package/dist/components/date-picker/index.cjs +1 -0
- package/dist/components/date-picker/index.d.cts +1 -0
- package/dist/components/date-picker/index.d.ts +1 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/date-picker/mcp.js +104 -0
- package/dist/components/file-upload/mcp.js +62 -0
- package/dist/components/{Form.cjs → form/Form.cjs} +6 -5
- package/dist/components/{Form.d.cts → form/Form.d.cts} +4 -4
- package/dist/components/{Form.d.ts → form/Form.d.ts} +4 -4
- package/dist/components/{Form.js → form/Form.js} +5 -4
- package/dist/components/form/index.cjs +1 -0
- package/dist/components/form/index.d.cts +1 -0
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/index.js +1 -0
- package/dist/components/form/mcp.js +31 -0
- package/dist/components/{FormGrid.cjs → form-grid/FormGrid.cjs} +2 -2
- package/dist/components/{FormGrid.d.cts → form-grid/FormGrid.d.cts} +2 -2
- package/dist/components/{FormGrid.d.ts → form-grid/FormGrid.d.ts} +2 -2
- package/dist/components/{FormGrid.js → form-grid/FormGrid.js} +1 -1
- package/dist/components/form-grid/index.cjs +1 -0
- package/dist/components/form-grid/index.d.cts +1 -0
- package/dist/components/form-grid/index.d.ts +1 -0
- package/dist/components/form-grid/index.js +1 -0
- package/dist/components/form-grid/mcp.js +35 -0
- package/dist/components/form-item/ConnectedFormItem.d.cts +4 -4
- package/dist/components/form-item/ConnectedFormItem.d.ts +4 -4
- package/dist/components/form-item/mcp.js +46 -0
- package/dist/components/{FormItemContainer.cjs → form-item-container/FormItemContainer.cjs} +5 -5
- package/dist/components/{FormItemContainer.js → form-item-container/FormItemContainer.js} +4 -4
- package/dist/components/form-item-container/index.cjs +1 -0
- package/dist/components/form-item-container/index.js +1 -0
- package/dist/components/form-item-container/mcp.js +36 -0
- package/dist/components/{Hidden.cjs → hidden/Hidden.cjs} +2 -2
- package/dist/components/hidden/Hidden.d.cts +9 -0
- package/dist/components/hidden/Hidden.d.ts +9 -0
- package/dist/components/{Hidden.js → hidden/Hidden.js} +1 -1
- package/dist/components/hidden/index.cjs +1 -0
- package/dist/components/hidden/index.d.cts +1 -0
- package/dist/components/hidden/index.d.ts +1 -0
- package/dist/components/hidden/index.js +1 -0
- package/dist/components/hidden/mcp.js +36 -0
- package/dist/components/{IconPicker.cjs → icon-picker/IconPicker.cjs} +4 -4
- package/dist/components/{IconPicker.d.cts → icon-picker/IconPicker.d.cts} +7 -7
- package/dist/components/icon-picker/IconPicker.d.ts +15 -0
- package/dist/components/{IconPicker.js → icon-picker/IconPicker.js} +3 -3
- package/dist/components/icon-picker/index.cjs +1 -0
- package/dist/components/icon-picker/index.d.cts +1 -0
- package/dist/components/icon-picker/index.d.ts +1 -0
- package/dist/components/icon-picker/index.js +1 -0
- package/dist/components/icon-picker/mcp.js +48 -0
- package/dist/components/{IconToggle.cjs → icon-toggle/IconToggle.cjs} +3 -3
- package/dist/components/icon-toggle/IconToggle.d.cts +12 -0
- package/dist/components/icon-toggle/IconToggle.d.ts +12 -0
- package/dist/components/{IconToggle.js → icon-toggle/IconToggle.js} +2 -2
- package/dist/components/icon-toggle/index.cjs +1 -0
- package/dist/components/icon-toggle/index.d.cts +1 -0
- package/dist/components/icon-toggle/index.d.ts +1 -0
- package/dist/components/icon-toggle/index.js +1 -0
- package/dist/components/icon-toggle/mcp.js +45 -0
- package/dist/components/{Input.cjs → input/Input.cjs} +2 -2
- package/dist/components/input/Input.d.cts +12 -0
- package/dist/components/input/Input.d.ts +12 -0
- package/dist/components/{Input.js → input/Input.js} +1 -1
- package/dist/components/input/index.cjs +1 -0
- package/dist/components/input/index.d.cts +1 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/index.js +1 -0
- package/dist/components/input/mcp.js +41 -0
- package/dist/components/json-schema-form-renderer/JsonSchemaFormRenderer.cjs +2 -1
- package/dist/components/json-schema-form-renderer/JsonSchemaFormRenderer.js +2 -1
- package/dist/components/json-schema-form-renderer/mcp.js +43 -0
- package/dist/components/json-schema-form-renderer/types.d.cts +2 -1
- package/dist/components/json-schema-form-renderer/types.d.ts +2 -1
- package/dist/components/number/NumberInput.d.cts +5 -9
- package/dist/components/number/NumberInput.d.ts +5 -9
- package/dist/components/number/index.d.cts +1 -1
- package/dist/components/number/index.d.ts +1 -1
- package/dist/components/number/mcp.js +40 -0
- package/dist/components/{ObjectContainer.cjs → object-container/ObjectContainer.cjs} +9 -8
- package/dist/components/{ObjectContainer.d.cts → object-container/ObjectContainer.d.cts} +2 -2
- package/dist/components/{ObjectContainer.d.ts → object-container/ObjectContainer.d.ts} +2 -2
- package/dist/components/{ObjectContainer.js → object-container/ObjectContainer.js} +8 -7
- package/dist/components/object-container/index.cjs +1 -0
- package/dist/components/object-container/index.js +1 -0
- package/dist/components/object-container/mcp.js +41 -0
- package/dist/components/{Radio.cjs → radio/Radio.cjs} +2 -2
- package/dist/components/{Radio.d.cts → radio/Radio.d.cts} +5 -5
- package/dist/components/{Radio.d.ts → radio/Radio.d.ts} +5 -5
- package/dist/components/{Radio.js → radio/Radio.js} +1 -1
- package/dist/components/radio/index.cjs +1 -0
- package/dist/components/radio/index.d.cts +1 -0
- package/dist/components/radio/index.d.ts +1 -0
- package/dist/components/radio/index.js +1 -0
- package/dist/components/radio/mcp.js +45 -0
- package/dist/components/{Rating.cjs → rating/Rating.cjs} +2 -2
- package/dist/components/rating/Rating.d.cts +12 -0
- package/dist/components/rating/Rating.d.ts +12 -0
- package/dist/components/{Rating.js → rating/Rating.js} +1 -1
- package/dist/components/rating/index.cjs +1 -0
- package/dist/components/rating/index.d.cts +1 -0
- package/dist/components/rating/index.d.ts +1 -0
- package/dist/components/rating/index.js +1 -0
- package/dist/components/rating/mcp.js +47 -0
- package/dist/components/{RichTextEditor.cjs → rich-text-editor/RichTextEditor.cjs} +4 -4
- package/dist/components/rich-text-editor/RichTextEditor.d.cts +7 -0
- package/dist/components/rich-text-editor/RichTextEditor.d.ts +7 -0
- package/dist/components/{RichTextEditor.js → rich-text-editor/RichTextEditor.js} +3 -3
- package/dist/components/rich-text-editor/index.cjs +1 -0
- package/dist/components/rich-text-editor/index.d.cts +1 -0
- package/dist/components/rich-text-editor/index.d.ts +1 -0
- package/dist/components/rich-text-editor/index.js +1 -0
- package/dist/components/rich-text-editor/mcp.js +49 -0
- package/dist/components/{Row.cjs → row/Row.cjs} +2 -2
- package/dist/components/{Row.d.cts → row/Row.d.cts} +2 -2
- package/dist/components/{Row.d.ts → row/Row.d.ts} +2 -2
- package/dist/components/{Row.js → row/Row.js} +1 -1
- package/dist/components/row/index.cjs +1 -0
- package/dist/components/row/index.d.cts +1 -0
- package/dist/components/row/index.d.ts +1 -0
- package/dist/components/row/index.js +1 -0
- package/dist/components/row/mcp.js +36 -0
- package/dist/components/schema-field/index.d.cts +1 -1
- package/dist/components/schema-field/index.d.ts +1 -1
- package/dist/components/schema-field/mcp.js +61 -0
- package/dist/components/schema-field/schema-field-basics.cjs +32 -16
- package/dist/components/schema-field/schema-field-basics.d.cts +282 -437
- package/dist/components/schema-field/schema-field-basics.d.ts +285 -440
- package/dist/components/schema-field/schema-field-basics.js +32 -16
- package/dist/components/schema-field/schema-field-extended.cjs +4 -2
- package/dist/components/schema-field/schema-field-extended.d.cts +435 -632
- package/dist/components/schema-field/schema-field-extended.d.ts +435 -632
- package/dist/components/schema-field/schema-field-extended.js +4 -2
- package/dist/components/schema-field/schema-field.cjs +8 -4
- package/dist/components/schema-field/schema-field.d.cts +371 -548
- package/dist/components/schema-field/schema-field.d.ts +374 -551
- package/dist/components/schema-field/schema-field.js +8 -4
- package/dist/components/{Select.cjs → select/Select.cjs} +3 -3
- package/dist/components/select/Select.d.cts +20 -0
- package/dist/components/select/Select.d.ts +20 -0
- package/dist/components/{Select.js → select/Select.js} +2 -2
- package/dist/components/select/index.cjs +1 -0
- package/dist/components/select/index.d.cts +1 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/select/mcp.js +49 -0
- package/dist/components/{Separator.cjs → separator/Separator.cjs} +2 -2
- package/dist/components/separator/Separator.d.cts +12 -0
- package/dist/components/separator/Separator.d.ts +12 -0
- package/dist/components/{Separator.js → separator/Separator.js} +1 -1
- package/dist/components/separator/index.cjs +1 -0
- package/dist/components/separator/index.d.cts +1 -0
- package/dist/components/separator/index.d.ts +1 -0
- package/dist/components/separator/index.js +1 -0
- package/dist/components/separator/mcp.js +40 -0
- package/dist/components/slider/Slider.d.cts +5 -4
- package/dist/components/slider/Slider.d.ts +5 -4
- package/dist/components/slider/SliderInput.d.cts +3 -3
- package/dist/components/slider/SliderInput.d.ts +3 -3
- package/dist/components/slider/SliderSelect.d.cts +4 -3
- package/dist/components/slider/SliderSelect.d.ts +4 -3
- package/dist/components/slider/index.d.cts +1 -1
- package/dist/components/slider/index.d.ts +1 -1
- package/dist/components/slider/mcp.js +50 -0
- package/dist/components/{Switch.cjs → switch/Switch.cjs} +3 -3
- package/dist/components/switch/Switch.d.cts +12 -0
- package/dist/components/switch/Switch.d.ts +12 -0
- package/dist/components/{Switch.js → switch/Switch.js} +2 -2
- package/dist/components/switch/index.cjs +1 -0
- package/dist/components/switch/index.d.cts +1 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/switch/mcp.js +41 -0
- package/dist/components/{TagsInputInline.cjs → tags-input-inline/TagsInputInline.cjs} +2 -2
- package/dist/components/tags-input-inline/TagsInputInline.d.cts +15 -0
- package/dist/components/tags-input-inline/TagsInputInline.d.ts +15 -0
- package/dist/components/{TagsInputInline.js → tags-input-inline/TagsInputInline.js} +1 -1
- package/dist/components/tags-input-inline/index.cjs +1 -0
- package/dist/components/tags-input-inline/index.d.cts +1 -0
- package/dist/components/tags-input-inline/index.d.ts +1 -0
- package/dist/components/tags-input-inline/index.js +1 -0
- package/dist/components/tags-input-inline/mcp.js +54 -0
- package/dist/components/{Textarea.cjs → textarea/Textarea.cjs} +2 -2
- package/dist/components/textarea/Textarea.d.cts +11 -0
- package/dist/components/textarea/Textarea.d.ts +11 -0
- package/dist/components/{Textarea.js → textarea/Textarea.js} +1 -1
- package/dist/components/textarea/index.cjs +1 -0
- package/dist/components/textarea/index.d.cts +1 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/textarea/mcp.js +36 -0
- package/dist/components/{ToggleButton.cjs → toggle-button/ToggleButton.cjs} +3 -3
- package/dist/components/toggle-button/ToggleButton.d.cts +12 -0
- package/dist/components/toggle-button/ToggleButton.d.ts +12 -0
- package/dist/components/{ToggleButton.js → toggle-button/ToggleButton.js} +2 -2
- package/dist/components/toggle-button/index.cjs +1 -0
- package/dist/components/toggle-button/index.d.cts +1 -0
- package/dist/components/toggle-button/index.d.ts +1 -0
- package/dist/components/toggle-button/index.js +1 -0
- package/dist/components/toggle-button/mcp.js +45 -0
- package/dist/components/{ToggleGroup.cjs → toggle-group/ToggleGroup.cjs} +5 -4
- package/dist/components/{ToggleGroup.d.cts → toggle-group/ToggleGroup.d.cts} +2 -2
- package/dist/components/{ToggleGroup.d.ts → toggle-group/ToggleGroup.d.ts} +2 -2
- package/dist/components/{ToggleGroup.js → toggle-group/ToggleGroup.js} +3 -3
- package/dist/components/toggle-group/index.cjs +1 -0
- package/dist/components/toggle-group/index.d.cts +1 -0
- package/dist/components/toggle-group/index.d.ts +1 -0
- package/dist/components/toggle-group/index.js +1 -0
- package/dist/components/toggle-group/mcp.js +52 -0
- package/dist/generated/mcp-registry.js +95 -0
- package/dist/index.cjs +44 -22
- package/dist/index.d.cts +46 -25
- package/dist/index.d.ts +46 -25
- package/dist/index.js +44 -22
- package/dist/mcp/src/search.js +81 -0
- package/dist/mcp/src/server.js +72 -0
- package/dist/mcp/src/utils.js +8 -0
- package/dist/mcp-server.js +18 -0
- package/package.json +11 -3
- package/dist/components/Checkbox.d.cts +0 -11
- package/dist/components/Checkbox.d.ts +0 -11
- package/dist/components/ColorSelect.d.cts +0 -6
- package/dist/components/ColorSelect.d.ts +0 -6
- package/dist/components/Combobox.d.cts +0 -6
- package/dist/components/Combobox.d.ts +0 -6
- package/dist/components/IconPicker.d.ts +0 -15
- package/dist/components/IconToggle.d.cts +0 -11
- package/dist/components/IconToggle.d.ts +0 -11
- package/dist/components/Input.d.cts +0 -17
- package/dist/components/Input.d.ts +0 -17
- package/dist/components/Rating.d.cts +0 -13
- package/dist/components/Rating.d.ts +0 -13
- package/dist/components/RichTextEditor.d.cts +0 -6
- package/dist/components/RichTextEditor.d.ts +0 -6
- package/dist/components/Select.d.cts +0 -6
- package/dist/components/Select.d.ts +0 -6
- package/dist/components/Separator.d.cts +0 -11
- package/dist/components/Separator.d.ts +0 -11
- package/dist/components/Switch.d.cts +0 -11
- package/dist/components/Switch.d.ts +0 -11
- package/dist/components/TagsInputInline.d.cts +0 -15
- package/dist/components/TagsInputInline.d.ts +0 -15
- package/dist/components/Textarea.d.cts +0 -9
- package/dist/components/Textarea.d.ts +0 -9
- package/dist/components/ToggleButton.d.cts +0 -11
- package/dist/components/ToggleButton.d.ts +0 -11
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/json-schema-form-renderer/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "JsonSchemaFormRenderer",
|
|
6
|
+
category: "Formily",
|
|
7
|
+
description: "A renderer that turns JSON schema into a Formily form using the built-in shadcn component registry.",
|
|
8
|
+
htmlElement: "form",
|
|
9
|
+
props: defineProps({
|
|
10
|
+
form: "Formily form instance created with createForm().",
|
|
11
|
+
layout: "Layout settings passed into the form context.",
|
|
12
|
+
components: "Component registry overrides merged with the defaults.",
|
|
13
|
+
schema: "JSON/Formily schema to render.",
|
|
14
|
+
onAutoSubmit: "Called after a successful form submission.",
|
|
15
|
+
settings: "Form settings passed into the form context."
|
|
16
|
+
}),
|
|
17
|
+
examples: [{
|
|
18
|
+
title: "Render JSON schema",
|
|
19
|
+
code: `<JsonSchemaFormRenderer form={form} schema={schema} />`
|
|
20
|
+
}, {
|
|
21
|
+
title: "JSON schema for form renderer",
|
|
22
|
+
code: `{
|
|
23
|
+
type: 'object',
|
|
24
|
+
properties: {
|
|
25
|
+
name: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
title: 'Name',
|
|
28
|
+
'x-decorator': 'FormItem',
|
|
29
|
+
'x-component': 'Input',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
}`
|
|
33
|
+
}],
|
|
34
|
+
keywords: [
|
|
35
|
+
"formily",
|
|
36
|
+
"json schema",
|
|
37
|
+
"renderer",
|
|
38
|
+
"form"
|
|
39
|
+
]
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
export { meta };
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { InputProps } from "@pixpilot/shadcn-ui";
|
|
2
3
|
|
|
3
4
|
//#region src/components/number/NumberInput.d.ts
|
|
5
|
+
type NumberInputProps = InputProps;
|
|
4
6
|
/**
|
|
5
7
|
* Formily-connected Number Input component
|
|
6
8
|
*/
|
|
7
|
-
declare const NumberInput:
|
|
8
|
-
prefix?: React.ReactNode;
|
|
9
|
-
suffix?: React.ReactNode;
|
|
10
|
-
groupClassName?: string;
|
|
11
|
-
prefixClassName?: string;
|
|
12
|
-
suffixClassName?: string;
|
|
13
|
-
}>, "ref"> & react31.RefAttributes<unknown>>;
|
|
9
|
+
declare const NumberInput: FC<NumberInputProps>;
|
|
14
10
|
//#endregion
|
|
15
|
-
export { NumberInput };
|
|
11
|
+
export { NumberInput, NumberInputProps };
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { InputProps } from "@pixpilot/shadcn-ui";
|
|
2
3
|
|
|
3
4
|
//#region src/components/number/NumberInput.d.ts
|
|
5
|
+
type NumberInputProps = InputProps;
|
|
4
6
|
/**
|
|
5
7
|
* Formily-connected Number Input component
|
|
6
8
|
*/
|
|
7
|
-
declare const NumberInput:
|
|
8
|
-
prefix?: React.ReactNode;
|
|
9
|
-
suffix?: React.ReactNode;
|
|
10
|
-
groupClassName?: string;
|
|
11
|
-
prefixClassName?: string;
|
|
12
|
-
suffixClassName?: string;
|
|
13
|
-
}>, "ref"> & react31.RefAttributes<unknown>>;
|
|
9
|
+
declare const NumberInput: FC<NumberInputProps>;
|
|
14
10
|
//#endregion
|
|
15
|
-
export { NumberInput };
|
|
11
|
+
export { NumberInput, NumberInputProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { NumberInput } from "./NumberInput.cjs";
|
|
1
|
+
import { NumberInput, NumberInputProps } from "./NumberInput.cjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { NumberInput } from "./NumberInput.js";
|
|
1
|
+
import { NumberInput, NumberInputProps } from "./NumberInput.js";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/number/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "NumberInput",
|
|
6
|
+
category: "Formily Inputs",
|
|
7
|
+
description: "A Formily-connected numeric input that maps form values through number input props.",
|
|
8
|
+
htmlElement: "input",
|
|
9
|
+
props: defineProps({
|
|
10
|
+
suffix: "Forwarded to the underlying UI component.",
|
|
11
|
+
groupClassName: "Forwarded to the underlying UI component.",
|
|
12
|
+
prefixClassName: "Forwarded to the underlying UI component.",
|
|
13
|
+
suffixClassName: "Forwarded to the underlying UI component."
|
|
14
|
+
}),
|
|
15
|
+
examples: [{
|
|
16
|
+
title: "Declarative schema field",
|
|
17
|
+
code: `<SchemaField.Number name="quantity" title="Quantity" x-decorator="FormItem" x-component="NumberInput" />`
|
|
18
|
+
}, {
|
|
19
|
+
title: "JSON schema for form renderer",
|
|
20
|
+
code: `{
|
|
21
|
+
type: 'object',
|
|
22
|
+
properties: {
|
|
23
|
+
quantity: {
|
|
24
|
+
type: 'number',
|
|
25
|
+
title: 'Quantity',
|
|
26
|
+
'x-decorator': 'FormItem',
|
|
27
|
+
'x-component': 'NumberInput',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
}`
|
|
31
|
+
}],
|
|
32
|
+
keywords: [
|
|
33
|
+
"formily",
|
|
34
|
+
"number",
|
|
35
|
+
"input"
|
|
36
|
+
]
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { meta };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
2
|
-
const require_resolve_responsive_space = require('
|
|
3
|
-
const require_use_description = require('
|
|
4
|
-
const require_use_form_context = require('
|
|
5
|
-
const require_use_label = require('
|
|
6
|
-
require('
|
|
7
|
-
const require_FormItemContainer = require('
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_resolve_responsive_space = require('../../utils/resolve-responsive-space.cjs');
|
|
3
|
+
const require_use_description = require('../../hooks/use-description.cjs');
|
|
4
|
+
const require_use_form_context = require('../../hooks/use-form-context.cjs');
|
|
5
|
+
const require_use_label = require('../../hooks/use-label.cjs');
|
|
6
|
+
require('../../hooks/index.cjs');
|
|
7
|
+
const require_FormItemContainer = require('../form-item-container/FormItemContainer.cjs');
|
|
8
|
+
require('../form-item-container/index.cjs');
|
|
8
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
10
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
10
11
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
11
12
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
12
13
|
|
|
13
|
-
//#region src/components/ObjectContainer.tsx
|
|
14
|
+
//#region src/components/object-container/ObjectContainer.tsx
|
|
14
15
|
/**
|
|
15
16
|
* Header gap spacing configuration
|
|
16
17
|
* Uses smaller gaps since headers have less content
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SyncReactNode } from "
|
|
1
|
+
import { SyncReactNode } from "../../types/react.cjs";
|
|
2
2
|
|
|
3
|
-
//#region src/components/ObjectContainer.d.ts
|
|
3
|
+
//#region src/components/object-container/ObjectContainer.d.ts
|
|
4
4
|
type ObjectContainerVariant = 'grouped' | 'flat';
|
|
5
5
|
interface ObjectContainerProps extends React.ComponentProps<'div'> {
|
|
6
6
|
label?: SyncReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SyncReactNode } from "
|
|
1
|
+
import { SyncReactNode } from "../../types/react.js";
|
|
2
2
|
|
|
3
|
-
//#region src/components/ObjectContainer.d.ts
|
|
3
|
+
//#region src/components/object-container/ObjectContainer.d.ts
|
|
4
4
|
type ObjectContainerVariant = 'grouped' | 'flat';
|
|
5
5
|
interface ObjectContainerProps extends React.ComponentProps<'div'> {
|
|
6
6
|
label?: SyncReactNode;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { resolveResponsiveGapClass, resolveSpacingClass } from "
|
|
2
|
-
import { useDescription } from "
|
|
3
|
-
import { useFormContext } from "
|
|
4
|
-
import { useLabel } from "
|
|
5
|
-
import "
|
|
6
|
-
import { FormItemContainer } from "
|
|
1
|
+
import { resolveResponsiveGapClass, resolveSpacingClass } from "../../utils/resolve-responsive-space.js";
|
|
2
|
+
import { useDescription } from "../../hooks/use-description.js";
|
|
3
|
+
import { useFormContext } from "../../hooks/use-form-context.js";
|
|
4
|
+
import { useLabel } from "../../hooks/use-label.js";
|
|
5
|
+
import "../../hooks/index.js";
|
|
6
|
+
import { FormItemContainer } from "../form-item-container/FormItemContainer.js";
|
|
7
|
+
import "../form-item-container/index.js";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle, cn } from "@pixpilot/shadcn";
|
|
9
10
|
|
|
10
|
-
//#region src/components/ObjectContainer.tsx
|
|
11
|
+
//#region src/components/object-container/ObjectContainer.tsx
|
|
11
12
|
/**
|
|
12
13
|
* Header gap spacing configuration
|
|
13
14
|
* Uses smaller gaps since headers have less content
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ObjectContainer = require('./ObjectContainer.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ObjectContainer } from "./ObjectContainer.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/object-container/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "ObjectContainer",
|
|
6
|
+
category: "Formily Layout",
|
|
7
|
+
description: "A Formily object wrapper that renders object title, description, children, and responsive spacing.",
|
|
8
|
+
htmlElement: "div",
|
|
9
|
+
props: defineProps({
|
|
10
|
+
label: "Label content or accessible label for the component.",
|
|
11
|
+
description: "Description content rendered with the component.",
|
|
12
|
+
variant: "Visual variant forwarded to the underlying UI component.",
|
|
13
|
+
slotProps: "Slot props for customizing internal rendered parts."
|
|
14
|
+
}),
|
|
15
|
+
examples: [{
|
|
16
|
+
title: "Declarative schema field",
|
|
17
|
+
code: `<SchemaField.String name="objectContainer" title="ObjectContainer" x-decorator="FormItem" x-component="ObjectContainer" />`
|
|
18
|
+
}, {
|
|
19
|
+
title: "JSON schema for form renderer",
|
|
20
|
+
code: `{
|
|
21
|
+
type: 'object',
|
|
22
|
+
properties: {
|
|
23
|
+
objectContainer: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
title: 'ObjectContainer',
|
|
26
|
+
'x-decorator': 'FormItem',
|
|
27
|
+
'x-component': 'ObjectContainer',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
}`
|
|
31
|
+
}],
|
|
32
|
+
keywords: [
|
|
33
|
+
"formily",
|
|
34
|
+
"object",
|
|
35
|
+
"container",
|
|
36
|
+
"layout"
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
export { meta };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
let __formily_react = require("@formily/react");
|
|
3
3
|
__formily_react = require_rolldown_runtime.__toESM(__formily_react);
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -6,7 +6,7 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
6
6
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
7
7
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
8
8
|
|
|
9
|
-
//#region src/components/Radio.tsx
|
|
9
|
+
//#region src/components/radio/Radio.tsx
|
|
10
10
|
/**
|
|
11
11
|
* Formily-connected Radio Group component
|
|
12
12
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { ComponentProps, FC } from "react";
|
|
2
2
|
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
import { RadioGroup } from "@pixpilot/shadcn";
|
|
4
4
|
|
|
5
|
-
//#region src/components/Radio.d.ts
|
|
5
|
+
//#region src/components/radio/Radio.d.ts
|
|
6
6
|
interface RadioGroupOption {
|
|
7
7
|
value: string;
|
|
8
8
|
label: string;
|
|
@@ -11,7 +11,7 @@ type RadioProps = {
|
|
|
11
11
|
options?: RadioGroupOption[];
|
|
12
12
|
value?: string;
|
|
13
13
|
onChange?: (value: string) => void;
|
|
14
|
-
} & Omit<
|
|
14
|
+
} & Omit<ComponentProps<typeof RadioGroup>, 'value' | 'onValueChange' | 'children'>;
|
|
15
15
|
/**
|
|
16
16
|
* Radio component with options rendering
|
|
17
17
|
*/
|
|
@@ -19,6 +19,6 @@ declare function Radio(props: RadioProps): react_jsx_runtime2.JSX.Element;
|
|
|
19
19
|
declare namespace Radio {
|
|
20
20
|
var displayName: string;
|
|
21
21
|
}
|
|
22
|
-
declare const ConnectedRadio: FC
|
|
22
|
+
declare const ConnectedRadio: FC<RadioProps>;
|
|
23
23
|
//#endregion
|
|
24
|
-
export { ConnectedRadio, Radio };
|
|
24
|
+
export { ConnectedRadio, Radio, RadioGroupOption, RadioProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { ComponentProps, FC } from "react";
|
|
2
2
|
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
import { RadioGroup } from "@pixpilot/shadcn";
|
|
4
4
|
|
|
5
|
-
//#region src/components/Radio.d.ts
|
|
5
|
+
//#region src/components/radio/Radio.d.ts
|
|
6
6
|
interface RadioGroupOption {
|
|
7
7
|
value: string;
|
|
8
8
|
label: string;
|
|
@@ -11,7 +11,7 @@ type RadioProps = {
|
|
|
11
11
|
options?: RadioGroupOption[];
|
|
12
12
|
value?: string;
|
|
13
13
|
onChange?: (value: string) => void;
|
|
14
|
-
} & Omit<
|
|
14
|
+
} & Omit<ComponentProps<typeof RadioGroup>, 'value' | 'onValueChange' | 'children'>;
|
|
15
15
|
/**
|
|
16
16
|
* Radio component with options rendering
|
|
17
17
|
*/
|
|
@@ -19,6 +19,6 @@ declare function Radio(props: RadioProps): react_jsx_runtime2.JSX.Element;
|
|
|
19
19
|
declare namespace Radio {
|
|
20
20
|
var displayName: string;
|
|
21
21
|
}
|
|
22
|
-
declare const ConnectedRadio: FC
|
|
22
|
+
declare const ConnectedRadio: FC<RadioProps>;
|
|
23
23
|
//#endregion
|
|
24
|
-
export { ConnectedRadio, Radio };
|
|
24
|
+
export { ConnectedRadio, Radio, RadioGroupOption, RadioProps };
|
|
@@ -2,7 +2,7 @@ import { connect } from "@formily/react";
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Label, RadioGroup, RadioGroupItem } from "@pixpilot/shadcn";
|
|
4
4
|
|
|
5
|
-
//#region src/components/Radio.tsx
|
|
5
|
+
//#region src/components/radio/Radio.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Formily-connected Radio Group component
|
|
8
8
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_Radio = require('./Radio.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ConnectedRadio, Radio, RadioGroupOption, RadioProps } from "./Radio.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ConnectedRadio, Radio, RadioGroupOption, RadioProps } from "./Radio.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ConnectedRadio, Radio } from "./Radio.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/radio/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "Radio",
|
|
6
|
+
category: "Formily Inputs",
|
|
7
|
+
description: "A Formily-connected radio group/selectable radio field that uses schema enum/dataSource options.",
|
|
8
|
+
htmlElement: "div",
|
|
9
|
+
props: defineProps({
|
|
10
|
+
value: "Controlled value for the underlying field UI. Usually supplied by Formily.",
|
|
11
|
+
required: "Marks the control as required for accessibility and UI state.",
|
|
12
|
+
disabled: "Disables user interaction. Usually also respects the Formily field disabled state.",
|
|
13
|
+
options: "Options supplied directly or resolved from schema enum/dataSource.",
|
|
14
|
+
asChild: "Renders behavior through the child element instead of the default element.",
|
|
15
|
+
loop: "Forwarded to the underlying UI component.",
|
|
16
|
+
orientation: "Forwarded to the underlying UI component.",
|
|
17
|
+
name: "Forwarded to the underlying UI component."
|
|
18
|
+
}),
|
|
19
|
+
examples: [{
|
|
20
|
+
title: "Declarative schema field",
|
|
21
|
+
code: `<SchemaField.String name="radio" title="Radio" x-decorator="FormItem" x-component="Radio" />`
|
|
22
|
+
}, {
|
|
23
|
+
title: "JSON schema for form renderer",
|
|
24
|
+
code: `{
|
|
25
|
+
type: 'object',
|
|
26
|
+
properties: {
|
|
27
|
+
radio: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
title: 'Radio',
|
|
30
|
+
'x-decorator': 'FormItem',
|
|
31
|
+
'x-component': 'Radio',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
}`
|
|
35
|
+
}],
|
|
36
|
+
keywords: [
|
|
37
|
+
"formily",
|
|
38
|
+
"radio",
|
|
39
|
+
"options",
|
|
40
|
+
"choice"
|
|
41
|
+
]
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { meta };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
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");
|
|
@@ -6,7 +6,7 @@ __pixpilot_shadcn_ui = require_rolldown_runtime.__toESM(__pixpilot_shadcn_ui);
|
|
|
6
6
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
7
7
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
8
8
|
|
|
9
|
-
//#region src/components/Rating.tsx
|
|
9
|
+
//#region src/components/rating/Rating.tsx
|
|
10
10
|
/**
|
|
11
11
|
* Formily-connected Rating component
|
|
12
12
|
* Automatically connects shadcn-ui Rating to Formily field state
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { RatingProps } from "@pixpilot/shadcn-ui";
|
|
3
|
+
|
|
4
|
+
//#region src/components/rating/Rating.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Formily-connected Rating component
|
|
8
|
+
* Automatically connects shadcn-ui Rating to Formily field state
|
|
9
|
+
*/
|
|
10
|
+
declare const Rating: FC<RatingProps>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Rating };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { RatingProps } from "@pixpilot/shadcn-ui";
|
|
3
|
+
|
|
4
|
+
//#region src/components/rating/Rating.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Formily-connected Rating component
|
|
8
|
+
* Automatically connects shadcn-ui Rating to Formily field state
|
|
9
|
+
*/
|
|
10
|
+
declare const Rating$1: FC<RatingProps>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Rating$1 as Rating };
|
|
@@ -2,7 +2,7 @@ import { connect, mapProps } from "@formily/react";
|
|
|
2
2
|
import { Rating } from "@pixpilot/shadcn-ui";
|
|
3
3
|
import { cn as cn$1 } from "@pixpilot/shadcn";
|
|
4
4
|
|
|
5
|
-
//#region src/components/Rating.tsx
|
|
5
|
+
//#region src/components/rating/Rating.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Formily-connected Rating component
|
|
8
8
|
* Automatically connects shadcn-ui Rating to Formily field state
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_Rating = require('./Rating.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Rating } from "./Rating.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Rating } from "./Rating.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Rating } from "./Rating.js";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/rating/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "Rating",
|
|
6
|
+
category: "Formily Inputs",
|
|
7
|
+
description: "A Formily-connected rating input for numeric score selection.",
|
|
8
|
+
htmlElement: "div",
|
|
9
|
+
props: defineProps({
|
|
10
|
+
value: "Controlled value for the underlying field UI. Usually supplied by Formily.",
|
|
11
|
+
required: "Marks the control as required for accessibility and UI state.",
|
|
12
|
+
disabled: "Disables user interaction. Usually also respects the Formily field disabled state.",
|
|
13
|
+
readOnly: "Makes the control read-only. Usually also respects the Formily field read-only state.",
|
|
14
|
+
options: "Options supplied directly or resolved from schema enum/dataSource.",
|
|
15
|
+
onValueChange: "Controlled value-change callback. Usually supplied by Formily.",
|
|
16
|
+
size: "Size forwarded to the underlying UI component.",
|
|
17
|
+
name: "Forwarded to the underlying UI component.",
|
|
18
|
+
max: "Forwarded to the underlying UI component.",
|
|
19
|
+
iconType: "Forwarded to the underlying UI component."
|
|
20
|
+
}),
|
|
21
|
+
examples: [{
|
|
22
|
+
title: "Declarative schema field",
|
|
23
|
+
code: `<SchemaField.Number name="score" title="Score" x-decorator="FormItem" x-component="Rating" />`
|
|
24
|
+
}, {
|
|
25
|
+
title: "JSON schema for form renderer",
|
|
26
|
+
code: `{
|
|
27
|
+
type: 'object',
|
|
28
|
+
properties: {
|
|
29
|
+
score: {
|
|
30
|
+
type: 'number',
|
|
31
|
+
title: 'Score',
|
|
32
|
+
'x-decorator': 'FormItem',
|
|
33
|
+
'x-component': 'Rating',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
}`
|
|
37
|
+
}],
|
|
38
|
+
keywords: [
|
|
39
|
+
"formily",
|
|
40
|
+
"rating",
|
|
41
|
+
"stars",
|
|
42
|
+
"score"
|
|
43
|
+
]
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { meta };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
2
|
-
const require_use_form_context = require('
|
|
3
|
-
require('
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_use_form_context = require('../../hooks/use-form-context.cjs');
|
|
3
|
+
require('../../hooks/index.cjs');
|
|
4
4
|
let __formily_react = require("@formily/react");
|
|
5
5
|
__formily_react = require_rolldown_runtime.__toESM(__formily_react);
|
|
6
6
|
let react = require("react");
|
|
@@ -10,7 +10,7 @@ __pixpilot_shadcn_ui = require_rolldown_runtime.__toESM(__pixpilot_shadcn_ui);
|
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
11
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
12
12
|
|
|
13
|
-
//#region src/components/RichTextEditor.tsx
|
|
13
|
+
//#region src/components/rich-text-editor/RichTextEditor.tsx
|
|
14
14
|
const RichTextEditorBase = (props) => {
|
|
15
15
|
const configRichTextEditor = require_use_form_context.useFormContext()?.settings?.richTextEditor;
|
|
16
16
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn_ui.RichTextEditor, {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { RichTextEditorProps } from "@pixpilot/shadcn-ui";
|
|
3
|
+
|
|
4
|
+
//#region src/components/rich-text-editor/RichTextEditor.d.ts
|
|
5
|
+
declare const RichTextEditor$1: FC<RichTextEditorProps>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { RichTextEditor$1 as RichTextEditor };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useFormContext } from "
|
|
2
|
-
import "
|
|
1
|
+
import { useFormContext } from "../../hooks/use-form-context.js";
|
|
2
|
+
import "../../hooks/index.js";
|
|
3
3
|
import { connect, mapProps } from "@formily/react";
|
|
4
4
|
import { useCallback, useMemo } from "react";
|
|
5
5
|
import { RichTextEditor } from "@pixpilot/shadcn-ui";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
|
-
//#region src/components/RichTextEditor.tsx
|
|
8
|
+
//#region src/components/rich-text-editor/RichTextEditor.tsx
|
|
9
9
|
const RichTextEditorBase = (props) => {
|
|
10
10
|
const configRichTextEditor = useFormContext()?.settings?.richTextEditor;
|
|
11
11
|
return /* @__PURE__ */ jsx(RichTextEditor, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_RichTextEditor = require('./RichTextEditor.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { RichTextEditor } from "./RichTextEditor.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { RichTextEditor } from "./RichTextEditor.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { RichTextEditor } from "./RichTextEditor.js";
|