@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.
Files changed (310) hide show
  1. package/dist/components/array-base/mcp.js +53 -0
  2. package/dist/components/array-cards/Item.cjs +2 -3
  3. package/dist/components/array-cards/Item.js +2 -3
  4. package/dist/components/array-cards/mcp.js +54 -0
  5. package/dist/components/array-collapse/Item.cjs +2 -3
  6. package/dist/components/array-collapse/Item.js +2 -3
  7. package/dist/components/array-collapse/mcp.js +55 -0
  8. package/dist/components/array-common/ArrayItemDraftFields.cjs +1 -15
  9. package/dist/components/array-common/ArrayItemDraftFields.js +1 -15
  10. package/dist/components/array-common/ListItem.cjs +20 -30
  11. package/dist/components/array-common/ListItem.js +20 -30
  12. package/dist/components/array-common/array-mcp-props.js +26 -0
  13. package/dist/components/array-common/index.cjs +1 -0
  14. package/dist/components/array-common/index.js +1 -0
  15. package/dist/components/array-common/use-array-item-wrapper-props.cjs +35 -0
  16. package/dist/components/array-common/use-array-item-wrapper-props.js +32 -0
  17. package/dist/components/array-dialog/mcp.js +58 -0
  18. package/dist/components/array-inline/Item.cjs +2 -3
  19. package/dist/components/array-inline/Item.js +2 -3
  20. package/dist/components/array-inline/mcp.js +46 -0
  21. package/dist/components/array-popover/mcp.js +52 -0
  22. package/dist/components/array-sortable/mcp.js +44 -0
  23. package/dist/components/array-tags/mcp.js +70 -0
  24. package/dist/components/array-toggle-group/mcp.js +53 -0
  25. package/dist/components/{Checkbox.cjs → checkbox/Checkbox.cjs} +3 -3
  26. package/dist/components/checkbox/Checkbox.d.cts +12 -0
  27. package/dist/components/checkbox/Checkbox.d.ts +12 -0
  28. package/dist/components/{Checkbox.js → checkbox/Checkbox.js} +2 -2
  29. package/dist/components/checkbox/index.cjs +1 -0
  30. package/dist/components/checkbox/index.d.cts +1 -0
  31. package/dist/components/checkbox/index.d.ts +1 -0
  32. package/dist/components/checkbox/index.js +1 -0
  33. package/dist/components/checkbox/mcp.js +41 -0
  34. package/dist/components/color-picker/mcp.js +59 -0
  35. package/dist/components/{ColorSelect.cjs → color-select/ColorSelect.cjs} +2 -2
  36. package/dist/components/color-select/ColorSelect.d.cts +7 -0
  37. package/dist/components/color-select/ColorSelect.d.ts +7 -0
  38. package/dist/components/{ColorSelect.js → color-select/ColorSelect.js} +1 -1
  39. package/dist/components/color-select/index.cjs +1 -0
  40. package/dist/components/color-select/index.d.cts +1 -0
  41. package/dist/components/color-select/index.d.ts +1 -0
  42. package/dist/components/color-select/index.js +1 -0
  43. package/dist/components/color-select/mcp.js +46 -0
  44. package/dist/components/{Column.cjs → column/Column.cjs} +2 -2
  45. package/dist/components/{Column.d.cts → column/Column.d.cts} +2 -2
  46. package/dist/components/{Column.d.ts → column/Column.d.ts} +2 -2
  47. package/dist/components/{Column.js → column/Column.js} +1 -1
  48. package/dist/components/column/index.cjs +1 -0
  49. package/dist/components/column/index.d.cts +1 -0
  50. package/dist/components/column/index.d.ts +1 -0
  51. package/dist/components/column/index.js +1 -0
  52. package/dist/components/column/mcp.js +36 -0
  53. package/dist/components/{Combobox.cjs → combobox/Combobox.cjs} +2 -2
  54. package/dist/components/combobox/Combobox.d.cts +7 -0
  55. package/dist/components/combobox/Combobox.d.ts +7 -0
  56. package/dist/components/{Combobox.js → combobox/Combobox.js} +1 -1
  57. package/dist/components/combobox/index.cjs +1 -0
  58. package/dist/components/combobox/index.d.cts +1 -0
  59. package/dist/components/combobox/index.d.ts +1 -0
  60. package/dist/components/combobox/index.js +1 -0
  61. package/dist/components/combobox/mcp.js +48 -0
  62. package/dist/components/{DatePicker.cjs → date-picker/DatePicker.cjs} +2 -2
  63. package/dist/components/{DatePicker.d.cts → date-picker/DatePicker.d.cts} +5 -4
  64. package/dist/components/{DatePicker.d.ts → date-picker/DatePicker.d.ts} +5 -4
  65. package/dist/components/{DatePicker.js → date-picker/DatePicker.js} +1 -1
  66. package/dist/components/date-picker/index.cjs +1 -0
  67. package/dist/components/date-picker/index.d.cts +1 -0
  68. package/dist/components/date-picker/index.d.ts +1 -0
  69. package/dist/components/date-picker/index.js +1 -0
  70. package/dist/components/date-picker/mcp.js +104 -0
  71. package/dist/components/file-upload/mcp.js +62 -0
  72. package/dist/components/{Form.cjs → form/Form.cjs} +6 -5
  73. package/dist/components/{Form.d.cts → form/Form.d.cts} +4 -4
  74. package/dist/components/{Form.d.ts → form/Form.d.ts} +4 -4
  75. package/dist/components/{Form.js → form/Form.js} +5 -4
  76. package/dist/components/form/index.cjs +1 -0
  77. package/dist/components/form/index.d.cts +1 -0
  78. package/dist/components/form/index.d.ts +1 -0
  79. package/dist/components/form/index.js +1 -0
  80. package/dist/components/form/mcp.js +31 -0
  81. package/dist/components/{FormGrid.cjs → form-grid/FormGrid.cjs} +2 -2
  82. package/dist/components/{FormGrid.d.cts → form-grid/FormGrid.d.cts} +2 -2
  83. package/dist/components/{FormGrid.d.ts → form-grid/FormGrid.d.ts} +2 -2
  84. package/dist/components/{FormGrid.js → form-grid/FormGrid.js} +1 -1
  85. package/dist/components/form-grid/index.cjs +1 -0
  86. package/dist/components/form-grid/index.d.cts +1 -0
  87. package/dist/components/form-grid/index.d.ts +1 -0
  88. package/dist/components/form-grid/index.js +1 -0
  89. package/dist/components/form-grid/mcp.js +35 -0
  90. package/dist/components/form-item/ConnectedFormItem.d.cts +4 -4
  91. package/dist/components/form-item/ConnectedFormItem.d.ts +4 -4
  92. package/dist/components/form-item/mcp.js +46 -0
  93. package/dist/components/{FormItemContainer.cjs → form-item-container/FormItemContainer.cjs} +5 -5
  94. package/dist/components/{FormItemContainer.js → form-item-container/FormItemContainer.js} +4 -4
  95. package/dist/components/form-item-container/index.cjs +1 -0
  96. package/dist/components/form-item-container/index.js +1 -0
  97. package/dist/components/form-item-container/mcp.js +36 -0
  98. package/dist/components/{Hidden.cjs → hidden/Hidden.cjs} +2 -2
  99. package/dist/components/hidden/Hidden.d.cts +9 -0
  100. package/dist/components/hidden/Hidden.d.ts +9 -0
  101. package/dist/components/{Hidden.js → hidden/Hidden.js} +1 -1
  102. package/dist/components/hidden/index.cjs +1 -0
  103. package/dist/components/hidden/index.d.cts +1 -0
  104. package/dist/components/hidden/index.d.ts +1 -0
  105. package/dist/components/hidden/index.js +1 -0
  106. package/dist/components/hidden/mcp.js +36 -0
  107. package/dist/components/{IconPicker.cjs → icon-picker/IconPicker.cjs} +4 -4
  108. package/dist/components/{IconPicker.d.cts → icon-picker/IconPicker.d.cts} +7 -7
  109. package/dist/components/icon-picker/IconPicker.d.ts +15 -0
  110. package/dist/components/{IconPicker.js → icon-picker/IconPicker.js} +3 -3
  111. package/dist/components/icon-picker/index.cjs +1 -0
  112. package/dist/components/icon-picker/index.d.cts +1 -0
  113. package/dist/components/icon-picker/index.d.ts +1 -0
  114. package/dist/components/icon-picker/index.js +1 -0
  115. package/dist/components/icon-picker/mcp.js +48 -0
  116. package/dist/components/{IconToggle.cjs → icon-toggle/IconToggle.cjs} +3 -3
  117. package/dist/components/icon-toggle/IconToggle.d.cts +12 -0
  118. package/dist/components/icon-toggle/IconToggle.d.ts +12 -0
  119. package/dist/components/{IconToggle.js → icon-toggle/IconToggle.js} +2 -2
  120. package/dist/components/icon-toggle/index.cjs +1 -0
  121. package/dist/components/icon-toggle/index.d.cts +1 -0
  122. package/dist/components/icon-toggle/index.d.ts +1 -0
  123. package/dist/components/icon-toggle/index.js +1 -0
  124. package/dist/components/icon-toggle/mcp.js +45 -0
  125. package/dist/components/{Input.cjs → input/Input.cjs} +2 -2
  126. package/dist/components/input/Input.d.cts +12 -0
  127. package/dist/components/input/Input.d.ts +12 -0
  128. package/dist/components/{Input.js → input/Input.js} +1 -1
  129. package/dist/components/input/index.cjs +1 -0
  130. package/dist/components/input/index.d.cts +1 -0
  131. package/dist/components/input/index.d.ts +1 -0
  132. package/dist/components/input/index.js +1 -0
  133. package/dist/components/input/mcp.js +41 -0
  134. package/dist/components/json-schema-form-renderer/JsonSchemaFormRenderer.cjs +2 -1
  135. package/dist/components/json-schema-form-renderer/JsonSchemaFormRenderer.js +2 -1
  136. package/dist/components/json-schema-form-renderer/mcp.js +43 -0
  137. package/dist/components/json-schema-form-renderer/types.d.cts +2 -1
  138. package/dist/components/json-schema-form-renderer/types.d.ts +2 -1
  139. package/dist/components/number/NumberInput.d.cts +5 -9
  140. package/dist/components/number/NumberInput.d.ts +5 -9
  141. package/dist/components/number/index.d.cts +1 -1
  142. package/dist/components/number/index.d.ts +1 -1
  143. package/dist/components/number/mcp.js +40 -0
  144. package/dist/components/{ObjectContainer.cjs → object-container/ObjectContainer.cjs} +9 -8
  145. package/dist/components/{ObjectContainer.d.cts → object-container/ObjectContainer.d.cts} +2 -2
  146. package/dist/components/{ObjectContainer.d.ts → object-container/ObjectContainer.d.ts} +2 -2
  147. package/dist/components/{ObjectContainer.js → object-container/ObjectContainer.js} +8 -7
  148. package/dist/components/object-container/index.cjs +1 -0
  149. package/dist/components/object-container/index.js +1 -0
  150. package/dist/components/object-container/mcp.js +41 -0
  151. package/dist/components/{Radio.cjs → radio/Radio.cjs} +2 -2
  152. package/dist/components/{Radio.d.cts → radio/Radio.d.cts} +5 -5
  153. package/dist/components/{Radio.d.ts → radio/Radio.d.ts} +5 -5
  154. package/dist/components/{Radio.js → radio/Radio.js} +1 -1
  155. package/dist/components/radio/index.cjs +1 -0
  156. package/dist/components/radio/index.d.cts +1 -0
  157. package/dist/components/radio/index.d.ts +1 -0
  158. package/dist/components/radio/index.js +1 -0
  159. package/dist/components/radio/mcp.js +45 -0
  160. package/dist/components/{Rating.cjs → rating/Rating.cjs} +2 -2
  161. package/dist/components/rating/Rating.d.cts +12 -0
  162. package/dist/components/rating/Rating.d.ts +12 -0
  163. package/dist/components/{Rating.js → rating/Rating.js} +1 -1
  164. package/dist/components/rating/index.cjs +1 -0
  165. package/dist/components/rating/index.d.cts +1 -0
  166. package/dist/components/rating/index.d.ts +1 -0
  167. package/dist/components/rating/index.js +1 -0
  168. package/dist/components/rating/mcp.js +47 -0
  169. package/dist/components/{RichTextEditor.cjs → rich-text-editor/RichTextEditor.cjs} +4 -4
  170. package/dist/components/rich-text-editor/RichTextEditor.d.cts +7 -0
  171. package/dist/components/rich-text-editor/RichTextEditor.d.ts +7 -0
  172. package/dist/components/{RichTextEditor.js → rich-text-editor/RichTextEditor.js} +3 -3
  173. package/dist/components/rich-text-editor/index.cjs +1 -0
  174. package/dist/components/rich-text-editor/index.d.cts +1 -0
  175. package/dist/components/rich-text-editor/index.d.ts +1 -0
  176. package/dist/components/rich-text-editor/index.js +1 -0
  177. package/dist/components/rich-text-editor/mcp.js +49 -0
  178. package/dist/components/{Row.cjs → row/Row.cjs} +2 -2
  179. package/dist/components/{Row.d.cts → row/Row.d.cts} +2 -2
  180. package/dist/components/{Row.d.ts → row/Row.d.ts} +2 -2
  181. package/dist/components/{Row.js → row/Row.js} +1 -1
  182. package/dist/components/row/index.cjs +1 -0
  183. package/dist/components/row/index.d.cts +1 -0
  184. package/dist/components/row/index.d.ts +1 -0
  185. package/dist/components/row/index.js +1 -0
  186. package/dist/components/row/mcp.js +36 -0
  187. package/dist/components/schema-field/index.d.cts +1 -1
  188. package/dist/components/schema-field/index.d.ts +1 -1
  189. package/dist/components/schema-field/mcp.js +61 -0
  190. package/dist/components/schema-field/schema-field-basics.cjs +32 -16
  191. package/dist/components/schema-field/schema-field-basics.d.cts +282 -437
  192. package/dist/components/schema-field/schema-field-basics.d.ts +285 -440
  193. package/dist/components/schema-field/schema-field-basics.js +32 -16
  194. package/dist/components/schema-field/schema-field-extended.cjs +4 -2
  195. package/dist/components/schema-field/schema-field-extended.d.cts +435 -632
  196. package/dist/components/schema-field/schema-field-extended.d.ts +435 -632
  197. package/dist/components/schema-field/schema-field-extended.js +4 -2
  198. package/dist/components/schema-field/schema-field.cjs +8 -4
  199. package/dist/components/schema-field/schema-field.d.cts +371 -548
  200. package/dist/components/schema-field/schema-field.d.ts +374 -551
  201. package/dist/components/schema-field/schema-field.js +8 -4
  202. package/dist/components/{Select.cjs → select/Select.cjs} +3 -3
  203. package/dist/components/select/Select.d.cts +20 -0
  204. package/dist/components/select/Select.d.ts +20 -0
  205. package/dist/components/{Select.js → select/Select.js} +2 -2
  206. package/dist/components/select/index.cjs +1 -0
  207. package/dist/components/select/index.d.cts +1 -0
  208. package/dist/components/select/index.d.ts +1 -0
  209. package/dist/components/select/index.js +1 -0
  210. package/dist/components/select/mcp.js +49 -0
  211. package/dist/components/{Separator.cjs → separator/Separator.cjs} +2 -2
  212. package/dist/components/separator/Separator.d.cts +12 -0
  213. package/dist/components/separator/Separator.d.ts +12 -0
  214. package/dist/components/{Separator.js → separator/Separator.js} +1 -1
  215. package/dist/components/separator/index.cjs +1 -0
  216. package/dist/components/separator/index.d.cts +1 -0
  217. package/dist/components/separator/index.d.ts +1 -0
  218. package/dist/components/separator/index.js +1 -0
  219. package/dist/components/separator/mcp.js +40 -0
  220. package/dist/components/slider/Slider.d.cts +5 -4
  221. package/dist/components/slider/Slider.d.ts +5 -4
  222. package/dist/components/slider/SliderInput.d.cts +3 -3
  223. package/dist/components/slider/SliderInput.d.ts +3 -3
  224. package/dist/components/slider/SliderSelect.d.cts +4 -3
  225. package/dist/components/slider/SliderSelect.d.ts +4 -3
  226. package/dist/components/slider/index.d.cts +1 -1
  227. package/dist/components/slider/index.d.ts +1 -1
  228. package/dist/components/slider/mcp.js +50 -0
  229. package/dist/components/{Switch.cjs → switch/Switch.cjs} +3 -3
  230. package/dist/components/switch/Switch.d.cts +12 -0
  231. package/dist/components/switch/Switch.d.ts +12 -0
  232. package/dist/components/{Switch.js → switch/Switch.js} +2 -2
  233. package/dist/components/switch/index.cjs +1 -0
  234. package/dist/components/switch/index.d.cts +1 -0
  235. package/dist/components/switch/index.d.ts +1 -0
  236. package/dist/components/switch/index.js +1 -0
  237. package/dist/components/switch/mcp.js +41 -0
  238. package/dist/components/{TagsInputInline.cjs → tags-input-inline/TagsInputInline.cjs} +2 -2
  239. package/dist/components/tags-input-inline/TagsInputInline.d.cts +15 -0
  240. package/dist/components/tags-input-inline/TagsInputInline.d.ts +15 -0
  241. package/dist/components/{TagsInputInline.js → tags-input-inline/TagsInputInline.js} +1 -1
  242. package/dist/components/tags-input-inline/index.cjs +1 -0
  243. package/dist/components/tags-input-inline/index.d.cts +1 -0
  244. package/dist/components/tags-input-inline/index.d.ts +1 -0
  245. package/dist/components/tags-input-inline/index.js +1 -0
  246. package/dist/components/tags-input-inline/mcp.js +54 -0
  247. package/dist/components/{Textarea.cjs → textarea/Textarea.cjs} +2 -2
  248. package/dist/components/textarea/Textarea.d.cts +11 -0
  249. package/dist/components/textarea/Textarea.d.ts +11 -0
  250. package/dist/components/{Textarea.js → textarea/Textarea.js} +1 -1
  251. package/dist/components/textarea/index.cjs +1 -0
  252. package/dist/components/textarea/index.d.cts +1 -0
  253. package/dist/components/textarea/index.d.ts +1 -0
  254. package/dist/components/textarea/index.js +1 -0
  255. package/dist/components/textarea/mcp.js +36 -0
  256. package/dist/components/{ToggleButton.cjs → toggle-button/ToggleButton.cjs} +3 -3
  257. package/dist/components/toggle-button/ToggleButton.d.cts +12 -0
  258. package/dist/components/toggle-button/ToggleButton.d.ts +12 -0
  259. package/dist/components/{ToggleButton.js → toggle-button/ToggleButton.js} +2 -2
  260. package/dist/components/toggle-button/index.cjs +1 -0
  261. package/dist/components/toggle-button/index.d.cts +1 -0
  262. package/dist/components/toggle-button/index.d.ts +1 -0
  263. package/dist/components/toggle-button/index.js +1 -0
  264. package/dist/components/toggle-button/mcp.js +45 -0
  265. package/dist/components/{ToggleGroup.cjs → toggle-group/ToggleGroup.cjs} +5 -4
  266. package/dist/components/{ToggleGroup.d.cts → toggle-group/ToggleGroup.d.cts} +2 -2
  267. package/dist/components/{ToggleGroup.d.ts → toggle-group/ToggleGroup.d.ts} +2 -2
  268. package/dist/components/{ToggleGroup.js → toggle-group/ToggleGroup.js} +3 -3
  269. package/dist/components/toggle-group/index.cjs +1 -0
  270. package/dist/components/toggle-group/index.d.cts +1 -0
  271. package/dist/components/toggle-group/index.d.ts +1 -0
  272. package/dist/components/toggle-group/index.js +1 -0
  273. package/dist/components/toggle-group/mcp.js +52 -0
  274. package/dist/generated/mcp-registry.js +95 -0
  275. package/dist/index.cjs +44 -22
  276. package/dist/index.d.cts +46 -25
  277. package/dist/index.d.ts +46 -25
  278. package/dist/index.js +44 -22
  279. package/dist/mcp/src/search.js +81 -0
  280. package/dist/mcp/src/server.js +72 -0
  281. package/dist/mcp/src/utils.js +8 -0
  282. package/dist/mcp-server.js +18 -0
  283. package/package.json +11 -3
  284. package/dist/components/Checkbox.d.cts +0 -11
  285. package/dist/components/Checkbox.d.ts +0 -11
  286. package/dist/components/ColorSelect.d.cts +0 -6
  287. package/dist/components/ColorSelect.d.ts +0 -6
  288. package/dist/components/Combobox.d.cts +0 -6
  289. package/dist/components/Combobox.d.ts +0 -6
  290. package/dist/components/IconPicker.d.ts +0 -15
  291. package/dist/components/IconToggle.d.cts +0 -11
  292. package/dist/components/IconToggle.d.ts +0 -11
  293. package/dist/components/Input.d.cts +0 -17
  294. package/dist/components/Input.d.ts +0 -17
  295. package/dist/components/Rating.d.cts +0 -13
  296. package/dist/components/Rating.d.ts +0 -13
  297. package/dist/components/RichTextEditor.d.cts +0 -6
  298. package/dist/components/RichTextEditor.d.ts +0 -6
  299. package/dist/components/Select.d.cts +0 -6
  300. package/dist/components/Select.d.ts +0 -6
  301. package/dist/components/Separator.d.cts +0 -11
  302. package/dist/components/Separator.d.ts +0 -11
  303. package/dist/components/Switch.d.cts +0 -11
  304. package/dist/components/Switch.d.ts +0 -11
  305. package/dist/components/TagsInputInline.d.cts +0 -15
  306. package/dist/components/TagsInputInline.d.ts +0 -15
  307. package/dist/components/Textarea.d.cts +0 -9
  308. package/dist/components/Textarea.d.ts +0 -9
  309. package/dist/components/ToggleButton.d.cts +0 -11
  310. 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 { Combobox as Combobox$1 } from "../Combobox.js";
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('../_virtual/rolldown_runtime.cjs');
2
- const require_resolve_field_options = require('../utils/resolve-field-options.cjs');
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 "../utils/resolve-field-options.js";
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('../_virtual/rolldown_runtime.cjs');
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 * as react1887 from "react";
2
- import * as _pixpilot_shadcn_ui291 from "@pixpilot/shadcn-ui";
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: react1887.ForwardRefExoticComponent<Omit<Partial<_pixpilot_shadcn_ui291.SliderProps>, "ref"> & react1887.RefAttributes<unknown>>;
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 * as react1401 from "react";
2
- import * as _pixpilot_shadcn_ui257 from "@pixpilot/shadcn-ui";
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: react1401.ForwardRefExoticComponent<Omit<Partial<_pixpilot_shadcn_ui257.SliderProps>, "ref"> & react1401.RefAttributes<unknown>>;
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 * as react1885 from "react";
2
- import * as _pixpilot_shadcn_ui290 from "@pixpilot/shadcn-ui";
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: react1885.ForwardRefExoticComponent<Omit<Partial<_pixpilot_shadcn_ui290.SliderInputProps>, "ref"> & react1885.RefAttributes<unknown>>;
5
+ declare const SliderInput: FC<SliderInputProps>;
6
6
  //#endregion
7
7
  export { SliderInput };
@@ -1,7 +1,7 @@
1
- import * as react1887 from "react";
2
- import * as _pixpilot_shadcn_ui291 from "@pixpilot/shadcn-ui";
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: react1887.ForwardRefExoticComponent<Omit<Partial<_pixpilot_shadcn_ui291.SliderInputProps>, "ref"> & react1887.RefAttributes<unknown>>;
5
+ declare const SliderInput$1: FC<SliderInputProps>;
6
6
  //#endregion
7
7
  export { SliderInput$1 as SliderInput };
@@ -1,11 +1,12 @@
1
- import * as react1883 from "react";
2
- import * as _pixpilot_shadcn_ui289 from "@pixpilot/shadcn-ui";
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: react1883.ForwardRefExoticComponent<Omit<Partial<_pixpilot_shadcn_ui289.SliderSelectProps>, "ref"> & react1883.RefAttributes<unknown>>;
10
+ declare const SliderSelect: FC<SliderSelectProps>;
10
11
  //#endregion
11
12
  export { SliderSelect };
@@ -1,11 +1,12 @@
1
- import * as react750 from "react";
2
- import * as _pixpilot_shadcn_ui157 from "@pixpilot/shadcn-ui";
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: react750.ForwardRefExoticComponent<Omit<Partial<_pixpilot_shadcn_ui157.SliderSelectProps>, "ref"> & react750.RefAttributes<unknown>>;
10
+ declare const SliderSelect$1: FC<SliderSelectProps>;
10
11
  //#endregion
11
12
  export { SliderSelect$1 as SliderSelect };
@@ -1,3 +1,3 @@
1
- import { Slider } from "./Slider.cjs";
1
+ import { Slider, SliderProps } from "./Slider.cjs";
2
2
  import { SliderInput } from "./SliderInput.cjs";
3
3
  import { SliderSelect } from "./SliderSelect.cjs";
@@ -1,3 +1,3 @@
1
- import { Slider } from "./Slider.js";
1
+ import { Slider, SliderProps } from "./Slider.js";
2
2
  import { SliderInput } from "./SliderInput.js";
3
3
  import { SliderSelect } from "./SliderSelect.js";
@@ -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('../_virtual/rolldown_runtime.cjs');
2
- const require_formily_decorator = require('../utils/formily-decorator.cjs');
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 "../utils/formily-decorator.js";
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('../_virtual/rolldown_runtime.cjs');
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";