@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
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { useMergedSchemaComponents } from "../../hooks/use-merged-schema-components.js";
|
|
2
|
-
import { ColorSelect as ColorSelect$1 } from "../ColorSelect.js";
|
|
3
|
-
import
|
|
2
|
+
import { ColorSelect as ColorSelect$1 } from "../color-select/ColorSelect.js";
|
|
3
|
+
import "../color-select/index.js";
|
|
4
|
+
import { Combobox as Combobox$1 } from "../combobox/Combobox.js";
|
|
5
|
+
import "../combobox/index.js";
|
|
4
6
|
import { extractComponents } from "../../utils/extract-components.js";
|
|
5
7
|
import { useFormSchema } from "../../hooks/use-form-schema.js";
|
|
6
8
|
import { ColorPicker as ColorPicker$1 } from "../color-picker/ColorPicker.js";
|
|
7
|
-
import { Rating as Rating$1 } from "../Rating.js";
|
|
9
|
+
import { Rating as Rating$1 } from "../rating/Rating.js";
|
|
10
|
+
import "../rating/index.js";
|
|
8
11
|
import { Slider as Slider$1 } from "../slider/Slider.js";
|
|
9
12
|
import { SliderInput as SliderInput$1 } from "../slider/SliderInput.js";
|
|
10
13
|
import { SliderSelect as SliderSelect$1 } from "../slider/SliderSelect.js";
|
|
11
14
|
import "../slider/index.js";
|
|
12
|
-
import { TagsInputInLine } from "../TagsInputInline.js";
|
|
15
|
+
import { TagsInputInLine } from "../tags-input-inline/TagsInputInline.js";
|
|
16
|
+
import "../tags-input-inline/index.js";
|
|
13
17
|
import { basicComponentRegistry } from "./schema-field-basics.js";
|
|
14
18
|
import { createSchemaField } from "@formily/react";
|
|
15
19
|
import { TagsInput } from "@pixpilot/shadcn-ui";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
2
|
-
const require_resolve_field_options = require('
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_resolve_field_options = require('../../utils/resolve-field-options.cjs');
|
|
3
3
|
let __formily_react = require("@formily/react");
|
|
4
4
|
__formily_react = require_rolldown_runtime.__toESM(__formily_react);
|
|
5
5
|
let __pixpilot_shadcn_ui = require("@pixpilot/shadcn-ui");
|
|
@@ -7,7 +7,7 @@ __pixpilot_shadcn_ui = require_rolldown_runtime.__toESM(__pixpilot_shadcn_ui);
|
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
9
|
|
|
10
|
-
//#region src/components/Select.tsx
|
|
10
|
+
//#region src/components/select/Select.tsx
|
|
11
11
|
const SelectComponent = ({ mapOption, options,...props }) => {
|
|
12
12
|
const transformedOptions = require_resolve_field_options.resolveFieldOptions({
|
|
13
13
|
field: (0, __formily_react.useField)(),
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { SelectProps } from "@pixpilot/shadcn-ui";
|
|
3
|
+
|
|
4
|
+
//#region src/components/select/Select.d.ts
|
|
5
|
+
interface SelectProps$1 extends Omit<SelectProps, 'options'> {
|
|
6
|
+
options?: Array<{
|
|
7
|
+
value: string | number;
|
|
8
|
+
label: string;
|
|
9
|
+
}>;
|
|
10
|
+
mapOption?: (option: {
|
|
11
|
+
value: string | number;
|
|
12
|
+
label: string;
|
|
13
|
+
}) => {
|
|
14
|
+
value: string | number;
|
|
15
|
+
label: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
declare const Select: FC<SelectProps$1>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Select, SelectProps$1 as SelectProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { SelectProps } from "@pixpilot/shadcn-ui";
|
|
3
|
+
|
|
4
|
+
//#region src/components/select/Select.d.ts
|
|
5
|
+
interface SelectProps$1 extends Omit<SelectProps, 'options'> {
|
|
6
|
+
options?: Array<{
|
|
7
|
+
value: string | number;
|
|
8
|
+
label: string;
|
|
9
|
+
}>;
|
|
10
|
+
mapOption?: (option: {
|
|
11
|
+
value: string | number;
|
|
12
|
+
label: string;
|
|
13
|
+
}) => {
|
|
14
|
+
value: string | number;
|
|
15
|
+
label: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
declare const Select$1: FC<SelectProps$1>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Select$1 as Select, SelectProps$1 as SelectProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { resolveFieldOptions } from "
|
|
1
|
+
import { resolveFieldOptions } from "../../utils/resolve-field-options.js";
|
|
2
2
|
import { connect, mapProps, useField } from "@formily/react";
|
|
3
3
|
import { Select } from "@pixpilot/shadcn-ui";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
|
-
//#region src/components/Select.tsx
|
|
6
|
+
//#region src/components/select/Select.tsx
|
|
7
7
|
const SelectComponent = ({ mapOption, options,...props }) => {
|
|
8
8
|
const transformedOptions = resolveFieldOptions({
|
|
9
9
|
field: useField(),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_Select = require('./Select.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Select, SelectProps } from "./Select.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Select, SelectProps } from "./Select.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Select } from "./Select.js";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/select/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "Select",
|
|
6
|
+
category: "Formily Inputs",
|
|
7
|
+
description: "A Formily-connected select field that resolves schema enum/dataSource into shadcn select options.",
|
|
8
|
+
htmlElement: "button",
|
|
9
|
+
props: defineProps({
|
|
10
|
+
required: "Marks the control as required for accessibility and UI state.",
|
|
11
|
+
options: "Options supplied directly or resolved from schema enum/dataSource.",
|
|
12
|
+
placeholder: "Placeholder text shown before a value is selected or entered.",
|
|
13
|
+
autoComplete: "Forwarded to the underlying UI component.",
|
|
14
|
+
open: "Forwarded to the underlying UI component.",
|
|
15
|
+
defaultOpen: "Forwarded to the underlying UI component.",
|
|
16
|
+
onOpenChange: "Forwarded to the underlying UI component.",
|
|
17
|
+
contentProps: "Forwarded to the underlying UI component.",
|
|
18
|
+
keyboardMode: "Forwarded to the underlying UI component.",
|
|
19
|
+
position: "Forwarded to the underlying UI component.",
|
|
20
|
+
clearable: "Forwarded to the underlying UI component.",
|
|
21
|
+
mapOption: "Forwarded to the underlying UI component."
|
|
22
|
+
}),
|
|
23
|
+
examples: [{
|
|
24
|
+
title: "Declarative schema field",
|
|
25
|
+
code: `<SchemaField.String name="select" title="Select" x-decorator="FormItem" x-component="Select" />`
|
|
26
|
+
}, {
|
|
27
|
+
title: "JSON schema for form renderer",
|
|
28
|
+
code: `{
|
|
29
|
+
type: 'object',
|
|
30
|
+
properties: {
|
|
31
|
+
select: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
title: 'Select',
|
|
34
|
+
'x-decorator': 'FormItem',
|
|
35
|
+
'x-component': 'Select',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
}`
|
|
39
|
+
}],
|
|
40
|
+
keywords: [
|
|
41
|
+
"formily",
|
|
42
|
+
"select",
|
|
43
|
+
"dropdown",
|
|
44
|
+
"options"
|
|
45
|
+
]
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
export { meta };
|
|
@@ -1,10 +1,10 @@
|
|
|
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 = require("@pixpilot/shadcn");
|
|
5
5
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
6
6
|
|
|
7
|
-
//#region src/components/Separator.tsx
|
|
7
|
+
//#region src/components/separator/Separator.tsx
|
|
8
8
|
/**
|
|
9
9
|
* Formily-connected Separator component
|
|
10
10
|
* A visual divider for content sections
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentProps, FC } from "react";
|
|
2
|
+
import { Separator } from "@pixpilot/shadcn";
|
|
3
|
+
|
|
4
|
+
//#region src/components/separator/Separator.d.ts
|
|
5
|
+
type SeparatorProps = ComponentProps<typeof Separator>;
|
|
6
|
+
/**
|
|
7
|
+
* Formily-connected Separator component
|
|
8
|
+
* A visual divider for content sections
|
|
9
|
+
*/
|
|
10
|
+
declare const Separator$1: FC<SeparatorProps>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Separator$1 as Separator, SeparatorProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentProps, FC } from "react";
|
|
2
|
+
import { Separator } from "@pixpilot/shadcn";
|
|
3
|
+
|
|
4
|
+
//#region src/components/separator/Separator.d.ts
|
|
5
|
+
type SeparatorProps = ComponentProps<typeof Separator>;
|
|
6
|
+
/**
|
|
7
|
+
* Formily-connected Separator component
|
|
8
|
+
* A visual divider for content sections
|
|
9
|
+
*/
|
|
10
|
+
declare const Separator$1: FC<SeparatorProps>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Separator$1 as Separator, SeparatorProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { connect } from "@formily/react";
|
|
2
2
|
import { Separator } from "@pixpilot/shadcn";
|
|
3
3
|
|
|
4
|
-
//#region src/components/Separator.tsx
|
|
4
|
+
//#region src/components/separator/Separator.tsx
|
|
5
5
|
/**
|
|
6
6
|
* Formily-connected Separator component
|
|
7
7
|
* A visual divider for content sections
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_Separator = require('./Separator.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Separator, SeparatorProps } from "./Separator.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Separator, SeparatorProps } from "./Separator.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Separator } from "./Separator.js";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/separator/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "Separator",
|
|
6
|
+
category: "Formily Layout",
|
|
7
|
+
description: "A visual separator that can be used inside Formily schema layouts.",
|
|
8
|
+
htmlElement: "div",
|
|
9
|
+
props: defineProps({
|
|
10
|
+
asChild: "Renders behavior through the child element instead of the default element.",
|
|
11
|
+
orientation: "Forwarded to the underlying UI component.",
|
|
12
|
+
decorative: "Forwarded to the underlying UI component."
|
|
13
|
+
}),
|
|
14
|
+
examples: [{
|
|
15
|
+
title: "Declarative schema field",
|
|
16
|
+
code: `<SchemaField.String name="separator" title="Separator" x-decorator="FormItem" x-component="Separator" />`
|
|
17
|
+
}, {
|
|
18
|
+
title: "JSON schema for form renderer",
|
|
19
|
+
code: `{
|
|
20
|
+
type: 'object',
|
|
21
|
+
properties: {
|
|
22
|
+
separator: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
title: 'Separator',
|
|
25
|
+
'x-decorator': 'FormItem',
|
|
26
|
+
'x-component': 'Separator',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
}`
|
|
30
|
+
}],
|
|
31
|
+
keywords: [
|
|
32
|
+
"formily",
|
|
33
|
+
"separator",
|
|
34
|
+
"divider",
|
|
35
|
+
"layout"
|
|
36
|
+
]
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { meta };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { SliderProps, SliderProps as SliderProps$1 } from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/slider/Slider.d.ts
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Formily-connected Slider component
|
|
7
8
|
* Range input for selecting numeric values
|
|
8
9
|
*/
|
|
9
|
-
declare const Slider:
|
|
10
|
+
declare const Slider: FC<SliderProps>;
|
|
10
11
|
//#endregion
|
|
11
|
-
export { Slider };
|
|
12
|
+
export { Slider, type SliderProps$1 as SliderProps };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { SliderProps, SliderProps as SliderProps$1 } from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/slider/Slider.d.ts
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Formily-connected Slider component
|
|
7
8
|
* Range input for selecting numeric values
|
|
8
9
|
*/
|
|
9
|
-
declare const Slider$1:
|
|
10
|
+
declare const Slider$1: FC<SliderProps>;
|
|
10
11
|
//#endregion
|
|
11
|
-
export { Slider$1 as Slider };
|
|
12
|
+
export { Slider$1 as Slider, type SliderProps$1 as SliderProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { SliderInputProps } from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/slider/SliderInput.d.ts
|
|
5
|
-
declare const SliderInput:
|
|
5
|
+
declare const SliderInput: FC<SliderInputProps>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { SliderInput };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { SliderInputProps } from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/slider/SliderInput.d.ts
|
|
5
|
-
declare const SliderInput$1:
|
|
5
|
+
declare const SliderInput$1: FC<SliderInputProps>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { SliderInput$1 as SliderInput };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { SliderSelectProps } from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/slider/SliderSelect.d.ts
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Formily-connected SliderSelect component
|
|
7
8
|
* Discrete slider that maps between provided options
|
|
8
9
|
*/
|
|
9
|
-
declare const SliderSelect:
|
|
10
|
+
declare const SliderSelect: FC<SliderSelectProps>;
|
|
10
11
|
//#endregion
|
|
11
12
|
export { SliderSelect };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { SliderSelectProps } from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
4
|
//#region src/components/slider/SliderSelect.d.ts
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Formily-connected SliderSelect component
|
|
7
8
|
* Discrete slider that maps between provided options
|
|
8
9
|
*/
|
|
9
|
-
declare const SliderSelect$1:
|
|
10
|
+
declare const SliderSelect$1: FC<SliderSelectProps>;
|
|
10
11
|
//#endregion
|
|
11
12
|
export { SliderSelect$1 as SliderSelect };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/slider/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "Slider",
|
|
6
|
+
category: "Formily Inputs",
|
|
7
|
+
description: "A Formily-connected slider for numeric range-style input.",
|
|
8
|
+
htmlElement: "div",
|
|
9
|
+
props: defineProps({
|
|
10
|
+
onValueChange: "Controlled value-change callback. Usually supplied by Formily.",
|
|
11
|
+
form: "Formily form instance created with createForm().",
|
|
12
|
+
asChild: "Renders behavior through the child element instead of the default element.",
|
|
13
|
+
value: "Controlled value. Usually supplied by Formily.",
|
|
14
|
+
name: "HTML/form name forwarded to the underlying control.",
|
|
15
|
+
disabled: "Disables user interaction. Usually also respects the Formily field disabled state.",
|
|
16
|
+
min: "Minimum allowed numeric value.",
|
|
17
|
+
max: "Maximum allowed numeric value.",
|
|
18
|
+
inverted: "Forwarded to the underlying UI component.",
|
|
19
|
+
step: "Step interval for numeric changes.",
|
|
20
|
+
orientation: "Forwarded to the underlying UI component.",
|
|
21
|
+
minStepsBetweenThumbs: "Forwarded to the underlying UI component.",
|
|
22
|
+
onValueCommit: "Forwarded to the underlying UI component."
|
|
23
|
+
}),
|
|
24
|
+
examples: [{
|
|
25
|
+
title: "Declarative schema field",
|
|
26
|
+
code: `<SchemaField.Number name="volume" title="Volume" x-decorator="FormItem" x-component="Slider" />`
|
|
27
|
+
}, {
|
|
28
|
+
title: "JSON schema for form renderer",
|
|
29
|
+
code: `{
|
|
30
|
+
type: 'object',
|
|
31
|
+
properties: {
|
|
32
|
+
volume: {
|
|
33
|
+
type: 'number',
|
|
34
|
+
title: 'Volume',
|
|
35
|
+
'x-decorator': 'FormItem',
|
|
36
|
+
'x-component': 'Slider',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
}`
|
|
40
|
+
}],
|
|
41
|
+
keywords: [
|
|
42
|
+
"formily",
|
|
43
|
+
"slider",
|
|
44
|
+
"range",
|
|
45
|
+
"number"
|
|
46
|
+
]
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
export { meta };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
2
|
-
const require_formily_decorator = require('
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_formily_decorator = require('../../utils/formily-decorator.cjs');
|
|
3
3
|
let __formily_react = require("@formily/react");
|
|
4
4
|
__formily_react = require_rolldown_runtime.__toESM(__formily_react);
|
|
5
5
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
6
6
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
7
7
|
|
|
8
|
-
//#region src/components/Switch.tsx
|
|
8
|
+
//#region src/components/switch/Switch.tsx
|
|
9
9
|
/**
|
|
10
10
|
* Formily-connected Switch component
|
|
11
11
|
* Toggle switch for boolean values
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentProps, FC } from "react";
|
|
2
|
+
import { Switch } from "@pixpilot/shadcn";
|
|
3
|
+
|
|
4
|
+
//#region src/components/switch/Switch.d.ts
|
|
5
|
+
type SwitchProps = ComponentProps<typeof Switch>;
|
|
6
|
+
/**
|
|
7
|
+
* Formily-connected Switch component
|
|
8
|
+
* Toggle switch for boolean values
|
|
9
|
+
*/
|
|
10
|
+
declare const Switch$1: FC<SwitchProps>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Switch$1 as Switch, SwitchProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentProps, FC } from "react";
|
|
2
|
+
import { Switch } from "@pixpilot/shadcn";
|
|
3
|
+
|
|
4
|
+
//#region src/components/switch/Switch.d.ts
|
|
5
|
+
type SwitchProps = ComponentProps<typeof Switch>;
|
|
6
|
+
/**
|
|
7
|
+
* Formily-connected Switch component
|
|
8
|
+
* Toggle switch for boolean values
|
|
9
|
+
*/
|
|
10
|
+
declare const Switch$1: FC<SwitchProps>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Switch$1 as Switch, SwitchProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { setCheckboxDefaultDecoratorProps } from "
|
|
1
|
+
import { setCheckboxDefaultDecoratorProps } from "../../utils/formily-decorator.js";
|
|
2
2
|
import { connect, mapProps } from "@formily/react";
|
|
3
3
|
import { Switch } from "@pixpilot/shadcn";
|
|
4
4
|
|
|
5
|
-
//#region src/components/Switch.tsx
|
|
5
|
+
//#region src/components/switch/Switch.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Formily-connected Switch component
|
|
8
8
|
* Toggle switch for boolean values
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_Switch = require('./Switch.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Switch, SwitchProps } from "./Switch.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Switch, SwitchProps } from "./Switch.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Switch } from "./Switch.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/switch/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "Switch",
|
|
6
|
+
category: "Formily Inputs",
|
|
7
|
+
description: "A Formily-connected switch field that maps field value to checked state.",
|
|
8
|
+
htmlElement: "button",
|
|
9
|
+
props: defineProps({
|
|
10
|
+
required: "Marks the control as required for accessibility and UI state.",
|
|
11
|
+
asChild: "Renders behavior through the child element instead of the default element.",
|
|
12
|
+
checked: "Controlled checked state. Usually supplied by Formily.",
|
|
13
|
+
onCheckedChange: "Controlled checked-change callback. Usually supplied by Formily."
|
|
14
|
+
}),
|
|
15
|
+
examples: [{
|
|
16
|
+
title: "Declarative schema field",
|
|
17
|
+
code: `<SchemaField.Boolean name="published" title="Published" x-decorator="FormItem" x-component="Switch" />`
|
|
18
|
+
}, {
|
|
19
|
+
title: "JSON schema for form renderer",
|
|
20
|
+
code: `{
|
|
21
|
+
type: 'object',
|
|
22
|
+
properties: {
|
|
23
|
+
published: {
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
title: 'Published',
|
|
26
|
+
'x-decorator': 'FormItem',
|
|
27
|
+
'x-component': 'Switch',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
}`
|
|
31
|
+
}],
|
|
32
|
+
keywords: [
|
|
33
|
+
"formily",
|
|
34
|
+
"switch",
|
|
35
|
+
"boolean",
|
|
36
|
+
"toggle"
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
export { meta };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const require_rolldown_runtime = require('
|
|
4
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
let __formily_react = require("@formily/react");
|
|
6
6
|
__formily_react = require_rolldown_runtime.__toESM(__formily_react);
|
|
7
7
|
let __pixpilot_shadcn_ui = require("@pixpilot/shadcn-ui");
|
|
8
8
|
__pixpilot_shadcn_ui = require_rolldown_runtime.__toESM(__pixpilot_shadcn_ui);
|
|
9
9
|
|
|
10
|
-
//#region src/components/TagsInputInline.tsx
|
|
10
|
+
//#region src/components/tags-input-inline/TagsInputInline.tsx
|
|
11
11
|
/**
|
|
12
12
|
* Formily-connected TagsInputInLine component
|
|
13
13
|
* Automatically connects shadcn-ui TagsInputInLine to Formily field state
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { TagsInputProps } from "@pixpilot/shadcn-ui";
|
|
3
|
+
|
|
4
|
+
//#region src/components/tags-input-inline/TagsInputInline.d.ts
|
|
5
|
+
type TagsInputInLineProps = TagsInputProps;
|
|
6
|
+
/**
|
|
7
|
+
* Formily-connected TagsInputInLine component
|
|
8
|
+
* Automatically connects shadcn-ui TagsInputInLine to Formily field state
|
|
9
|
+
*
|
|
10
|
+
* Based on DiceUI's tags-input for inline tag editing with keyboard navigation
|
|
11
|
+
* and validation support.
|
|
12
|
+
*/
|
|
13
|
+
declare const TagsInputInLine: FC<TagsInputInLineProps>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { TagsInputInLine, TagsInputInLineProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { TagsInputProps } from "@pixpilot/shadcn-ui";
|
|
3
|
+
|
|
4
|
+
//#region src/components/tags-input-inline/TagsInputInline.d.ts
|
|
5
|
+
type TagsInputInLineProps = TagsInputProps;
|
|
6
|
+
/**
|
|
7
|
+
* Formily-connected TagsInputInLine component
|
|
8
|
+
* Automatically connects shadcn-ui TagsInputInLine to Formily field state
|
|
9
|
+
*
|
|
10
|
+
* Based on DiceUI's tags-input for inline tag editing with keyboard navigation
|
|
11
|
+
* and validation support.
|
|
12
|
+
*/
|
|
13
|
+
declare const TagsInputInLine: FC<TagsInputInLineProps>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { TagsInputInLine, TagsInputInLineProps };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { connect, mapProps } from "@formily/react";
|
|
5
5
|
import { TagsInput } from "@pixpilot/shadcn-ui";
|
|
6
6
|
|
|
7
|
-
//#region src/components/TagsInputInline.tsx
|
|
7
|
+
//#region src/components/tags-input-inline/TagsInputInline.tsx
|
|
8
8
|
/**
|
|
9
9
|
* Formily-connected TagsInputInLine component
|
|
10
10
|
* Automatically connects shadcn-ui TagsInputInLine to Formily field state
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_TagsInputInline = require('./TagsInputInline.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { TagsInputInLine, TagsInputInLineProps } from "./TagsInputInline.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { TagsInputInLine, TagsInputInLineProps } from "./TagsInputInline.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { TagsInputInLine } from "./TagsInputInline.js";
|