@mantis-core/ui 0.5.0 → 0.7.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 (378) hide show
  1. package/CHANGELOG.md +155 -0
  2. package/COMPONENTS.md +71 -73
  3. package/README.md +19 -6
  4. package/bin/mantis-llm.mjs +242 -0
  5. package/catalog.json +3031 -0
  6. package/dist/components/Buttons/Button.d.ts +39 -9
  7. package/dist/components/Buttons/Button.d.ts.map +1 -1
  8. package/dist/components/Buttons/Button.js +21 -13
  9. package/dist/components/Buttons/Button.js.map +1 -1
  10. package/dist/components/Forms/AutoCompleteField.d.ts +60 -0
  11. package/dist/components/Forms/AutoCompleteField.d.ts.map +1 -0
  12. package/dist/components/Forms/AutoCompleteField.js +125 -0
  13. package/dist/components/Forms/AutoCompleteField.js.map +1 -0
  14. package/dist/components/Forms/CKEditorInput.d.ts +5 -2
  15. package/dist/components/Forms/CKEditorInput.d.ts.map +1 -1
  16. package/dist/components/Forms/CKEditorInput.js +5 -2
  17. package/dist/components/Forms/CKEditorInput.js.map +1 -1
  18. package/dist/components/Forms/CheckboxField.d.ts +14 -0
  19. package/dist/components/Forms/CheckboxField.d.ts.map +1 -0
  20. package/dist/components/Forms/CheckboxField.js +26 -0
  21. package/dist/components/Forms/CheckboxField.js.map +1 -0
  22. package/dist/components/Forms/ColorPickerInput.d.ts +27 -8
  23. package/dist/components/Forms/ColorPickerInput.d.ts.map +1 -1
  24. package/dist/components/Forms/ColorPickerInput.js +57 -11
  25. package/dist/components/Forms/ColorPickerInput.js.map +1 -1
  26. package/dist/components/Forms/DateField.d.ts +68 -0
  27. package/dist/components/Forms/DateField.d.ts.map +1 -0
  28. package/dist/components/Forms/DateField.js +108 -0
  29. package/dist/components/Forms/DateField.js.map +1 -0
  30. package/dist/components/Forms/DatePresets.d.ts.map +1 -1
  31. package/dist/components/Forms/DatePresets.js +6 -3
  32. package/dist/components/Forms/DatePresets.js.map +1 -1
  33. package/dist/components/Forms/FieldShell.d.ts +24 -0
  34. package/dist/components/Forms/FieldShell.d.ts.map +1 -0
  35. package/dist/components/Forms/FieldShell.js +39 -0
  36. package/dist/components/Forms/FieldShell.js.map +1 -0
  37. package/dist/components/Forms/FileDropzone.d.ts +4 -2
  38. package/dist/components/Forms/FileDropzone.d.ts.map +1 -1
  39. package/dist/components/Forms/FileDropzone.js.map +1 -1
  40. package/dist/components/Forms/FormActionsBar.js +2 -2
  41. package/dist/components/Forms/FormActionsBar.js.map +1 -1
  42. package/dist/components/Forms/FormWizard.d.ts +1 -1
  43. package/dist/components/Forms/FormWizard.d.ts.map +1 -1
  44. package/dist/components/Forms/FormWizard.js +4 -5
  45. package/dist/components/Forms/FormWizard.js.map +1 -1
  46. package/dist/components/Forms/HiddenField.d.ts +12 -6
  47. package/dist/components/Forms/HiddenField.d.ts.map +1 -1
  48. package/dist/components/Forms/HiddenField.js +14 -5
  49. package/dist/components/Forms/HiddenField.js.map +1 -1
  50. package/dist/components/Forms/MaskField.d.ts +28 -0
  51. package/dist/components/Forms/MaskField.d.ts.map +1 -0
  52. package/dist/components/Forms/MaskField.js +74 -0
  53. package/dist/components/Forms/MaskField.js.map +1 -0
  54. package/dist/components/Forms/NumberField.d.ts +14 -0
  55. package/dist/components/Forms/NumberField.d.ts.map +1 -0
  56. package/dist/components/Forms/NumberField.js +51 -0
  57. package/dist/components/Forms/NumberField.js.map +1 -0
  58. package/dist/components/Forms/OtpInput.d.ts +23 -8
  59. package/dist/components/Forms/OtpInput.d.ts.map +1 -1
  60. package/dist/components/Forms/OtpInput.js +37 -8
  61. package/dist/components/Forms/OtpInput.js.map +1 -1
  62. package/dist/components/Forms/PasswordInput.d.ts +22 -9
  63. package/dist/components/Forms/PasswordInput.d.ts.map +1 -1
  64. package/dist/components/Forms/PasswordInput.js +63 -28
  65. package/dist/components/Forms/PasswordInput.js.map +1 -1
  66. package/dist/components/Forms/PhoneInput.d.ts +16 -8
  67. package/dist/components/Forms/PhoneInput.d.ts.map +1 -1
  68. package/dist/components/Forms/PhoneInput.js +13 -6
  69. package/dist/components/Forms/PhoneInput.js.map +1 -1
  70. package/dist/components/Forms/RadioGroup.d.ts +34 -13
  71. package/dist/components/Forms/RadioGroup.d.ts.map +1 -1
  72. package/dist/components/Forms/RadioGroup.js +49 -6
  73. package/dist/components/Forms/RadioGroup.js.map +1 -1
  74. package/dist/components/Forms/RangeSlider.d.ts +26 -11
  75. package/dist/components/Forms/RangeSlider.d.ts.map +1 -1
  76. package/dist/components/Forms/RangeSlider.js +40 -7
  77. package/dist/components/Forms/RangeSlider.js.map +1 -1
  78. package/dist/components/Forms/RatingInput.d.ts +24 -8
  79. package/dist/components/Forms/RatingInput.d.ts.map +1 -1
  80. package/dist/components/Forms/RatingInput.js +41 -9
  81. package/dist/components/Forms/RatingInput.js.map +1 -1
  82. package/dist/components/Forms/SearchInput.d.ts +18 -10
  83. package/dist/components/Forms/SearchInput.d.ts.map +1 -1
  84. package/dist/components/Forms/SearchInput.js +44 -23
  85. package/dist/components/Forms/SearchInput.js.map +1 -1
  86. package/dist/components/Forms/SelectField.d.ts +41 -0
  87. package/dist/components/Forms/SelectField.d.ts.map +1 -0
  88. package/dist/components/Forms/SelectField.js +110 -0
  89. package/dist/components/Forms/SelectField.js.map +1 -0
  90. package/dist/components/Forms/SwitchField.d.ts +14 -0
  91. package/dist/components/Forms/SwitchField.d.ts.map +1 -0
  92. package/dist/components/Forms/SwitchField.js +26 -0
  93. package/dist/components/Forms/SwitchField.js.map +1 -0
  94. package/dist/components/Forms/TagsInput.d.ts +29 -8
  95. package/dist/components/Forms/TagsInput.d.ts.map +1 -1
  96. package/dist/components/Forms/TagsInput.js +53 -9
  97. package/dist/components/Forms/TagsInput.js.map +1 -1
  98. package/dist/components/Forms/TextArea.d.ts +13 -10
  99. package/dist/components/Forms/TextArea.d.ts.map +1 -1
  100. package/dist/components/Forms/TextArea.js +27 -9
  101. package/dist/components/Forms/TextArea.js.map +1 -1
  102. package/dist/components/Forms/TextField.d.ts +14 -0
  103. package/dist/components/Forms/TextField.d.ts.map +1 -0
  104. package/dist/components/Forms/TextField.js +29 -0
  105. package/dist/components/Forms/TextField.js.map +1 -0
  106. package/dist/components/Forms/ToggleInlineButton.d.ts +33 -12
  107. package/dist/components/Forms/ToggleInlineButton.d.ts.map +1 -1
  108. package/dist/components/Forms/ToggleInlineButton.js +56 -6
  109. package/dist/components/Forms/ToggleInlineButton.js.map +1 -1
  110. package/dist/components/Forms/UploadFilesPreview.js +3 -3
  111. package/dist/components/Forms/UploadFilesPreview.js.map +1 -1
  112. package/dist/components/Forms/field-typing.test-d.d.ts +2 -0
  113. package/dist/components/Forms/field-typing.test-d.d.ts.map +1 -0
  114. package/dist/components/Forms/field-typing.test-d.js +24 -0
  115. package/dist/components/Forms/field-typing.test-d.js.map +1 -0
  116. package/dist/components/Forms/useFieldController.d.ts +85 -0
  117. package/dist/components/Forms/useFieldController.d.ts.map +1 -0
  118. package/dist/components/Forms/useFieldController.js +54 -0
  119. package/dist/components/Forms/useFieldController.js.map +1 -0
  120. package/dist/components/Loaders/Loading.d.ts.map +1 -1
  121. package/dist/components/Loaders/Loading.js +3 -2
  122. package/dist/components/Loaders/Loading.js.map +1 -1
  123. package/dist/components/Tables/ActionColumn.d.ts +20 -4
  124. package/dist/components/Tables/ActionColumn.d.ts.map +1 -1
  125. package/dist/components/Tables/ActionColumn.js +24 -5
  126. package/dist/components/Tables/ActionColumn.js.map +1 -1
  127. package/dist/components/Tables/FilterPannel.d.ts +9 -2
  128. package/dist/components/Tables/FilterPannel.d.ts.map +1 -1
  129. package/dist/components/Tables/FilterPannel.js +15 -11
  130. package/dist/components/Tables/FilterPannel.js.map +1 -1
  131. package/dist/components/Tables/IndexColumn.d.ts +12 -3
  132. package/dist/components/Tables/IndexColumn.d.ts.map +1 -1
  133. package/dist/components/Tables/IndexColumn.js +21 -5
  134. package/dist/components/Tables/IndexColumn.js.map +1 -1
  135. package/dist/components/Tables/MantisDataTable.d.ts +45 -0
  136. package/dist/components/Tables/MantisDataTable.d.ts.map +1 -0
  137. package/dist/components/Tables/MantisDataTable.js +63 -0
  138. package/dist/components/Tables/MantisDataTable.js.map +1 -0
  139. package/dist/components/Tables/MenuButton.d.ts +28 -7
  140. package/dist/components/Tables/MenuButton.d.ts.map +1 -1
  141. package/dist/components/Tables/MenuButton.js +20 -10
  142. package/dist/components/Tables/MenuButton.js.map +1 -1
  143. package/dist/components/Tables/PaginatedTable.d.ts +26 -17
  144. package/dist/components/Tables/PaginatedTable.d.ts.map +1 -1
  145. package/dist/components/Tables/PaginatedTable.js +24 -22
  146. package/dist/components/Tables/PaginatedTable.js.map +1 -1
  147. package/dist/components/Tables/cell-presets.d.ts +35 -0
  148. package/dist/components/Tables/cell-presets.d.ts.map +1 -0
  149. package/dist/components/Tables/cell-presets.js +40 -0
  150. package/dist/components/Tables/cell-presets.js.map +1 -0
  151. package/dist/components/Tables/columns.d.ts +40 -0
  152. package/dist/components/Tables/columns.d.ts.map +1 -0
  153. package/dist/components/Tables/columns.js +2 -0
  154. package/dist/components/Tables/columns.js.map +1 -0
  155. package/dist/components/Tables/filters/MultiSelectFilter.d.ts +24 -6
  156. package/dist/components/Tables/filters/MultiSelectFilter.d.ts.map +1 -1
  157. package/dist/components/Tables/filters/MultiSelectFilter.js +19 -6
  158. package/dist/components/Tables/filters/MultiSelectFilter.js.map +1 -1
  159. package/dist/components/auth/ChangePasswordForm.d.ts.map +1 -1
  160. package/dist/components/auth/ChangePasswordForm.js +12 -12
  161. package/dist/components/auth/ChangePasswordForm.js.map +1 -1
  162. package/dist/components/auth/ForgotPasswordForm.d.ts.map +1 -1
  163. package/dist/components/auth/ForgotPasswordForm.js +7 -5
  164. package/dist/components/auth/ForgotPasswordForm.js.map +1 -1
  165. package/dist/components/auth/LoginForm.d.ts +2 -2
  166. package/dist/components/auth/LoginForm.d.ts.map +1 -1
  167. package/dist/components/auth/LoginForm.js +15 -15
  168. package/dist/components/auth/LoginForm.js.map +1 -1
  169. package/dist/components/auth/ResetPasswordForm.d.ts.map +1 -1
  170. package/dist/components/auth/ResetPasswordForm.js +11 -12
  171. package/dist/components/auth/ResetPasswordForm.js.map +1 -1
  172. package/dist/components/auth/UserMenu.d.ts +11 -1
  173. package/dist/components/auth/UserMenu.d.ts.map +1 -1
  174. package/dist/components/auth/UserMenu.js +30 -87
  175. package/dist/components/auth/UserMenu.js.map +1 -1
  176. package/dist/components/data/Timeline.d.ts +2 -2
  177. package/dist/components/data/Timeline.d.ts.map +1 -1
  178. package/dist/components/data/Timeline.js +17 -17
  179. package/dist/components/data/Timeline.js.map +1 -1
  180. package/dist/components/feedback/Avatar.d.ts +4 -2
  181. package/dist/components/feedback/Avatar.d.ts.map +1 -1
  182. package/dist/components/feedback/Avatar.js +4 -4
  183. package/dist/components/feedback/Avatar.js.map +1 -1
  184. package/dist/components/feedback/CardSkeleton.d.ts.map +1 -1
  185. package/dist/components/feedback/CardSkeleton.js +3 -3
  186. package/dist/components/feedback/CardSkeleton.js.map +1 -1
  187. package/dist/components/feedback/TableSkeleton.d.ts.map +1 -1
  188. package/dist/components/feedback/TableSkeleton.js +3 -3
  189. package/dist/components/feedback/TableSkeleton.js.map +1 -1
  190. package/dist/components/feedback/Tag.d.ts +4 -2
  191. package/dist/components/feedback/Tag.d.ts.map +1 -1
  192. package/dist/components/feedback/Tag.js +4 -4
  193. package/dist/components/feedback/Tag.js.map +1 -1
  194. package/dist/components/navigation/CommandPalette.d.ts.map +1 -1
  195. package/dist/components/navigation/CommandPalette.js +5 -2
  196. package/dist/components/navigation/CommandPalette.js.map +1 -1
  197. package/dist/components/navigation/PageTabs.d.ts +10 -8
  198. package/dist/components/navigation/PageTabs.d.ts.map +1 -1
  199. package/dist/components/navigation/PageTabs.js +17 -13
  200. package/dist/components/navigation/PageTabs.js.map +1 -1
  201. package/dist/components/overlays/Drawer.d.ts +16 -3
  202. package/dist/components/overlays/Drawer.d.ts.map +1 -1
  203. package/dist/components/overlays/Drawer.js +9 -5
  204. package/dist/components/overlays/Drawer.js.map +1 -1
  205. package/dist/components/overlays/Modal.d.ts +18 -3
  206. package/dist/components/overlays/Modal.d.ts.map +1 -1
  207. package/dist/components/overlays/Modal.js +13 -5
  208. package/dist/components/overlays/Modal.js.map +1 -1
  209. package/dist/components/pages/app-shell/AppShell.d.ts.map +1 -1
  210. package/dist/components/pages/app-shell/AppShell.js +6 -6
  211. package/dist/components/pages/app-shell/AppShell.js.map +1 -1
  212. package/dist/components/ui/ConfirmDialog.d.ts +1 -2
  213. package/dist/components/ui/ConfirmDialog.d.ts.map +1 -1
  214. package/dist/components/ui/ConfirmDialog.js +10 -4
  215. package/dist/components/ui/ConfirmDialog.js.map +1 -1
  216. package/dist/components/ui/DataState.js +2 -2
  217. package/dist/components/ui/DataState.js.map +1 -1
  218. package/dist/index.d.ts +71 -42
  219. package/dist/index.d.ts.map +1 -1
  220. package/dist/index.js +114 -22
  221. package/dist/index.js.map +1 -1
  222. package/docs/README.md +1 -1
  223. package/docs/components/action-column.md +33 -7
  224. package/docs/components/admin-page-configurator.md +24 -5
  225. package/docs/components/admin-page-header.md +21 -3
  226. package/docs/components/admin-page-layout-shell.md +18 -4
  227. package/docs/components/admin-page-layout.md +34 -5
  228. package/docs/components/app-shell.md +31 -6
  229. package/docs/components/auto-complete-field.md +60 -0
  230. package/docs/components/avatar.md +18 -8
  231. package/docs/components/bar-chart.md +25 -7
  232. package/docs/components/breadcrumbs.md +15 -2
  233. package/docs/components/button.md +34 -15
  234. package/docs/components/card-skeleton.md +9 -3
  235. package/docs/components/change-password-form.md +23 -4
  236. package/docs/components/checkbox-field.md +38 -0
  237. package/docs/components/ckeditor-input.md +40 -8
  238. package/docs/components/color-picker-input.md +19 -8
  239. package/docs/components/command-palette.md +23 -2
  240. package/docs/components/confirm-dialog.md +36 -9
  241. package/docs/components/data-state.md +31 -6
  242. package/docs/components/date-field.md +39 -0
  243. package/docs/components/date-presets.md +19 -5
  244. package/docs/components/description-list.md +20 -2
  245. package/docs/components/dirty-form-guard.md +16 -4
  246. package/docs/components/donut-chart.md +24 -7
  247. package/docs/components/drawer.md +27 -8
  248. package/docs/components/empty-state.md +12 -2
  249. package/docs/components/error-boundary.md +16 -2
  250. package/docs/components/error-message.md +22 -3
  251. package/docs/components/field-shell.md +47 -0
  252. package/docs/components/file-dropzone.md +22 -6
  253. package/docs/components/filter-pannel.md +34 -7
  254. package/docs/components/forgot-password-form.md +23 -5
  255. package/docs/components/form-actions-bar.md +21 -2
  256. package/docs/components/form-field-render.md +36 -8
  257. package/docs/components/form-section.md +13 -1
  258. package/docs/components/form-wizard.md +34 -5
  259. package/docs/components/hidden-field.md +22 -6
  260. package/docs/components/index-column.md +25 -5
  261. package/docs/components/line-chart.md +25 -7
  262. package/docs/components/loading.md +14 -5
  263. package/docs/components/login-form.md +31 -6
  264. package/docs/components/mantis-data-table.md +61 -0
  265. package/docs/components/map-picker-client.md +29 -8
  266. package/docs/components/map-picker-osm.md +27 -9
  267. package/docs/components/map-picker.md +25 -4
  268. package/docs/components/mask-field.md +31 -0
  269. package/docs/components/menu-button.md +22 -7
  270. package/docs/components/modal.md +34 -9
  271. package/docs/components/multi-select-filter.md +25 -7
  272. package/docs/components/number-field.md +40 -0
  273. package/docs/components/otp-input.md +20 -7
  274. package/docs/components/page-tabs.md +23 -4
  275. package/docs/components/page-title.md +6 -1
  276. package/docs/components/paginated-table.md +36 -13
  277. package/docs/components/pagination.md +20 -7
  278. package/docs/components/password-input.md +20 -8
  279. package/docs/components/phone-input.md +17 -7
  280. package/docs/components/radio-group.md +39 -9
  281. package/docs/components/range-slider.md +18 -6
  282. package/docs/components/rating-input.md +19 -8
  283. package/docs/components/render-field.md +31 -3
  284. package/docs/components/reset-password-form.md +24 -4
  285. package/docs/components/rich-text-preview.md +17 -5
  286. package/docs/components/search-input.md +18 -7
  287. package/docs/components/select-field.md +55 -0
  288. package/docs/components/stat-card.md +14 -3
  289. package/docs/components/status-badge.md +17 -7
  290. package/docs/components/switch-field.md +32 -0
  291. package/docs/components/table-filter-field.md +22 -4
  292. package/docs/components/table-skeleton.md +9 -3
  293. package/docs/components/table-toolbar.md +18 -5
  294. package/docs/components/tag.md +16 -7
  295. package/docs/components/tags-input.md +21 -8
  296. package/docs/components/text-area.md +18 -8
  297. package/docs/components/text-field.md +32 -0
  298. package/docs/components/timeline.md +19 -3
  299. package/docs/components/toggle-inline-button.md +42 -10
  300. package/docs/components/upload-files-preview.md +23 -2
  301. package/docs/components/use-field-controller.md +58 -0
  302. package/docs/components/user-menu.md +26 -6
  303. package/docs/contracts/dependency-map.md +50 -52
  304. package/docs/contracts/field-controller.md +138 -0
  305. package/docs/contracts/style-imports.md +1 -20
  306. package/llms.txt +70 -72
  307. package/package.json +48 -11
  308. package/dist/components/Forms/AsyncSelect.d.ts +0 -20
  309. package/dist/components/Forms/AsyncSelect.d.ts.map +0 -1
  310. package/dist/components/Forms/AsyncSelect.js +0 -77
  311. package/dist/components/Forms/AsyncSelect.js.map +0 -1
  312. package/dist/components/Forms/Combobox.d.ts +0 -10
  313. package/dist/components/Forms/Combobox.d.ts.map +0 -1
  314. package/dist/components/Forms/Combobox.js +0 -11
  315. package/dist/components/Forms/Combobox.js.map +0 -1
  316. package/dist/components/Forms/CurrencyInput.d.ts +0 -12
  317. package/dist/components/Forms/CurrencyInput.d.ts.map +0 -1
  318. package/dist/components/Forms/CurrencyInput.js +0 -9
  319. package/dist/components/Forms/CurrencyInput.js.map +0 -1
  320. package/dist/components/Forms/DateInput.d.ts +0 -10
  321. package/dist/components/Forms/DateInput.d.ts.map +0 -1
  322. package/dist/components/Forms/DateInput.js +0 -11
  323. package/dist/components/Forms/DateInput.js.map +0 -1
  324. package/dist/components/Forms/DateRangeInput.d.ts +0 -10
  325. package/dist/components/Forms/DateRangeInput.d.ts.map +0 -1
  326. package/dist/components/Forms/DateRangeInput.js +0 -13
  327. package/dist/components/Forms/DateRangeInput.js.map +0 -1
  328. package/dist/components/Forms/DropDown.d.ts +0 -10
  329. package/dist/components/Forms/DropDown.d.ts.map +0 -1
  330. package/dist/components/Forms/DropDown.js +0 -11
  331. package/dist/components/Forms/DropDown.js.map +0 -1
  332. package/dist/components/Forms/MultiSelect.d.ts +0 -10
  333. package/dist/components/Forms/MultiSelect.d.ts.map +0 -1
  334. package/dist/components/Forms/MultiSelect.js +0 -13
  335. package/dist/components/Forms/MultiSelect.js.map +0 -1
  336. package/dist/components/Forms/NumberInput.d.ts +0 -10
  337. package/dist/components/Forms/NumberInput.d.ts.map +0 -1
  338. package/dist/components/Forms/NumberInput.js +0 -16
  339. package/dist/components/Forms/NumberInput.js.map +0 -1
  340. package/dist/components/Forms/Select.d.ts +0 -15
  341. package/dist/components/Forms/Select.d.ts.map +0 -1
  342. package/dist/components/Forms/Select.js +0 -48
  343. package/dist/components/Forms/Select.js.map +0 -1
  344. package/dist/components/Forms/Switch.d.ts +0 -18
  345. package/dist/components/Forms/Switch.d.ts.map +0 -1
  346. package/dist/components/Forms/Switch.js +0 -30
  347. package/dist/components/Forms/Switch.js.map +0 -1
  348. package/dist/components/Forms/TextInput.d.ts +0 -11
  349. package/dist/components/Forms/TextInput.d.ts.map +0 -1
  350. package/dist/components/Forms/TextInput.js +0 -12
  351. package/dist/components/Forms/TextInput.js.map +0 -1
  352. package/dist/components/Forms/TimePicker.d.ts +0 -13
  353. package/dist/components/Forms/TimePicker.d.ts.map +0 -1
  354. package/dist/components/Forms/TimePicker.js +0 -19
  355. package/dist/components/Forms/TimePicker.js.map +0 -1
  356. package/dist/components/Forms/Toggle.d.ts +0 -14
  357. package/dist/components/Forms/Toggle.d.ts.map +0 -1
  358. package/dist/components/Forms/Toggle.js +0 -10
  359. package/dist/components/Forms/Toggle.js.map +0 -1
  360. package/dist/components/Forms/types.d.ts +0 -9
  361. package/dist/components/Forms/types.d.ts.map +0 -1
  362. package/dist/components/Forms/types.js +0 -2
  363. package/dist/components/Forms/types.js.map +0 -1
  364. package/docs/components/async-select.md +0 -27
  365. package/docs/components/combobox.md +0 -19
  366. package/docs/components/currency-input.md +0 -21
  367. package/docs/components/date-input.md +0 -21
  368. package/docs/components/date-range-input.md +0 -20
  369. package/docs/components/drop-down.md +0 -26
  370. package/docs/components/multi-select.md +0 -22
  371. package/docs/components/number-input.md +0 -21
  372. package/docs/components/select.md +0 -28
  373. package/docs/components/switch.md +0 -24
  374. package/docs/components/text-input.md +0 -24
  375. package/docs/components/time-picker.md +0 -25
  376. package/docs/components/toggle.md +0 -24
  377. package/docs/contracts/component-doc-schema.md +0 -78
  378. package/docs/contracts/controller-props.md +0 -28
package/CHANGELOG.md ADDED
@@ -0,0 +1,155 @@
1
+ # @mantis-core/ui
2
+
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fbd4637: Add the `mantis-llm` CLI (`pnpm exec mantis-llm`) so consuming projects can wire LLM discovery in one command.
8
+
9
+ - New `bin` shipped with the package: `mantis-llm` writes/updates a managed pointer block into the consuming project's `CLAUDE.md` / `AGENTS.md` (creating them if missing, idempotent), so any LLM working in that repo discovers the installed `@mantis-core/*` docs in `node_modules` without being told each session.
10
+ - The block carries the key usage rules inline (import from `@mantis-core/ui`, flat `FieldControllerProps`, mount providers when `next-core` is present) plus per-package pointers — all conditioned on which `@mantis-core/*` packages are actually installed.
11
+ - `--check` fails (exit ≠0) when the block is missing or stale, for use in a consumer's CI; `--files=` targets specific files.
12
+ - Tightened the published `files` allowlist so internal contributor docs (`STORYBOOK_*`, `component-doc-schema.md`) no longer ship to consumers, while all consumer-facing docs (`components/`, `field-controller.md`, `style-imports.md`, `dependency-map.md`) still do.
13
+
14
+ ## 0.6.0
15
+
16
+ ### Minor Changes
17
+
18
+ - 4fbdfb2: PrimeReact 11 migration + LLM-first documentation.
19
+
20
+ **Breaking (PrimeReact 10 → 11):**
21
+
22
+ - **Forms** now use a flattened `FieldControllerProps` API — wrappers take `name`/`control`/`rules`/`label`
23
+ directly, there is no `controller={{ ... }}` object prop and `ControllerProps` is removed. See
24
+ `docs/contracts/field-controller.md`.
25
+ - **`@mantis-core/ui` removed react-select and react-datepicker.** The `Select`, `AsyncSelect`, `MultiSelect`,
26
+ `Combobox`, `DropDown`, `DateInput`, `DateRangeInput`, `TimePicker`, `CurrencyInput`, `Toggle`, `TextInput`,
27
+ and `NumberInput` components are gone — use `SelectField` / `AutoCompleteField` (async + creatable),
28
+ `DateField` (single/range/time), `NumberField` (`mode="currency"`), `TextField`, `SwitchField`.
29
+ - **Tables** are descriptor-driven: `MantisDataTable` / `PaginatedTable` take `rows` + `columns` (`ColumnDef[]`)
30
+ and `paginator`, replacing the old `value`/`totalRecords`/`lazy` children API. Adds cell presets and a
31
+ headless pager.
32
+ - **`@mantis-core/next-core`** ships native PrimeReact 11 theming (`./theme`: `MantisThemeProvider`, presets,
33
+ `buildPreset`, config persistence) and a native toast host (`MantisToaster` / `useMantisToasts`);
34
+ `react-hot-toast` is retired. `MantisCoreBaseProvider` still mounts the PrimeReact 10 provider
35
+ (`primereact/api`) — `primereact` remains a required peer — while `MantisThemeProvider` mounts the
36
+ PrimeReact 11 provider.
37
+ - **`@mantis-core/styles`** removed the dead `select`, `select-button`, `date-picker`, `switch`, and `buttons`
38
+ SCSS partials (component colors now come from the PrimeReact 11 preset).
39
+ - **`@mantis-core/nuqs`** now requires `react ^19` and exports `useDataTableQuery` (headless pagination +
40
+ sorting + filtering with optional URL sync).
41
+
42
+ **Peer dependencies:** `@primereact/ui`, `@primereact/core`, `@primereact/types` `11.0.0-rc.1`,
43
+ `@primeuix/themes` `3.0.0-rc.1`, `@primeicons/react` `8.0.0-rc.1`.
44
+
45
+ **LLM-first docs (consumable from `node_modules`):** every package ships an `llms.txt` (exports `./llms.txt`);
46
+ `@mantis-core/ui` ships `catalog.json` (exports `./catalog.json`) plus per-component docs; `@mantis-core/next-core`
47
+ ships `docs/setup.md`. A CI gate (`check:doc-examples`) type-checks every documentation example against source.
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [4fbdfb2]
52
+ - @mantis-core/utils@0.5.1
53
+
54
+ ## 0.5.0
55
+
56
+ ### Minor Changes
57
+
58
+ - b553a87: Component docs are now LLM-first and single-source: each component is one `docs/components/<name>.md` with YAML frontmatter, and `catalog.json`, `COMPONENTS.md`, `llms.txt`, `dependency-map.md`, and `style-imports.md` are generated from them via `pnpm gen:catalog` (with `pnpm check:catalog` as a drift guard wired into the release gate).
59
+
60
+ - The package now ships `llms.txt` (LLM entry-point) and a complete per-component doc set so documentation is visible at install time.
61
+ - 9 components that were documented in prose but absent from the catalog are now first-class catalog entries.
62
+ - Removed the dead `PRIMEREACT_MAPPING.md` redirect stub.
63
+
64
+ ## 0.4.0
65
+
66
+ ### Minor Changes
67
+
68
+ - b3beda0: Add reusable Auth UI components: PasswordInput, LoginForm, ForgotPasswordForm, ResetPasswordForm, ChangePasswordForm, UserMenu
69
+ - 68f6475: Add reusable chart components (LineChart, BarChart, DonutChart) powered by chart.js + react-chartjs-2. Generic, extensible wrappers for building any dashboard — zero-config defaults, fully overridable options, color palette, className passthrough, and TypeScript strict types.
70
+ - 9ea7de9: Add P1 UI coverage (no new dependencies; PrimeReact/lucide-react wrappers, all extensible per the contribution contract):
71
+
72
+ - Feedback: `EmptyState`, `ErrorBoundary`, `TableSkeleton`, `CardSkeleton`, `Avatar`, `Tag`.
73
+ - Overlays: `Drawer` (Sidebar), `Modal` (Dialog).
74
+ - Form inputs: `Combobox`, `TagsInput`, `OtpInput`, `ColorPickerInput`, `RatingInput`, `DatePresets`.
75
+ - Navigation: `PageTabs`, `CommandPalette` (+ `useCommandPalette` hook).
76
+ - Data display: `StatCard`, `Timeline`, `DescriptionList`.
77
+ - `AppShell` gains optional `collapsible` / `defaultCollapsed` (backward-compatible collapsible sidebar).
78
+
79
+ - 3a759d1: Add react-hook-form rule builders via `@mantis-core/ui/validation`: `requiredRule`, `notEmptyRule`, `emailRule`, `phoneRule`, `cedulaRule`, `rucRule`, `minLengthRule`, `maxLengthRule`. Optional Zod resolver re-export via `@mantis-core/ui/validation/zod`.
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies [3a759d1]
84
+ - @mantis-core/utils@0.5.0
85
+
86
+ ## 0.3.0
87
+
88
+ ### Minor Changes
89
+
90
+ - 8a85ace: Add reusable layout + form inputs (no new dependencies — all on existing PrimeReact peers):
91
+
92
+ - Layout: `AppShell` (config-driven sidebar + topbar + mobile drawer) and a standalone `Breadcrumbs` component under `components/pages/app-shell`. `AdminPageHeader` now reuses `Breadcrumbs` (single source).
93
+ - Form inputs (Controller pattern): `RadioGroup`, `SearchInput` (debounced, optional controller), `DateRangeInput`, `RangeSlider`, `PhoneInput`, `CurrencyInput`.
94
+ - Multi-step forms: `FormWizard` (PrimeReact `Steps` + react-hook-form, per-step validation; composes inside an existing `FormProvider`).
95
+
96
+ All importable by path, e.g. `@mantis-core/ui/components/Forms/CurrencyInput`, `@mantis-core/ui/components/pages/app-shell/AppShell`.
97
+
98
+ ## 0.2.0
99
+
100
+ ### Minor Changes
101
+
102
+ - 83d6e71: Harden package publishing and quality gates across the monorepo.
103
+
104
+ - add `prepack` and `prepublishOnly` scripts to guarantee build artifacts before publish
105
+ - add package metadata (`license`, `engines`, and `sideEffects` for TS packages)
106
+ - add package test coverage with Vitest and include tests in release checks
107
+ - add tarball content validation script to ensure npm packages include expected build outputs
108
+ - decouple `@mantis-core/ui` from `@mantis-core/supabase-core` by consuming pagination helper from `@mantis-core/utils`
109
+ - expose `getPaginationRange` from `@mantis-core/utils`
110
+ - add reusable `StatusBadge`, `DataState`, and `ConfirmDialog` components to `@mantis-core/ui`
111
+ - add form primitives in `@mantis-core/ui`: `AsyncSelect`, `FormActionsBar`, `DirtyFormGuard`, and `FileDropzone`
112
+
113
+ ### Patch Changes
114
+
115
+ - Updated dependencies [83d6e71]
116
+ - @mantis-core/utils@0.4.0
117
+
118
+ ## 0.1.3
119
+
120
+ ### Patch Changes
121
+
122
+ - 83d6e71: Harden package publishing and quality gates across the monorepo.
123
+
124
+ - add `prepack` and `prepublishOnly` scripts to guarantee build artifacts before publish
125
+ - add package metadata (`license`, `engines`, and `sideEffects` for TS packages)
126
+ - add package test coverage with Vitest and include tests in release checks
127
+ - add tarball content validation script to ensure npm packages include expected build outputs
128
+ - decouple `@mantis-core/ui` from `@mantis-core/supabase-core` by consuming pagination helper from `@mantis-core/utils`
129
+ - expose `getPaginationRange` from `@mantis-core/utils`
130
+
131
+ - Updated dependencies [83d6e71]
132
+ - @mantis-core/utils@0.3.0
133
+
134
+ ## 0.1.2
135
+
136
+ ### Patch Changes
137
+
138
+ - Updated dependencies [05ef1e4]
139
+ - @mantis-core/utils@0.2.0
140
+
141
+ ## 0.1.1
142
+
143
+ ### Patch Changes
144
+
145
+ - chore: prepare @mantis-core packages for npm release
146
+
147
+ - add npm metadata (`repository`, `bugs`, `homepage`, `keywords`) in all packages
148
+ - add `prepack` build script in all packages
149
+ - include `COMPONENTS.md` in `@mantis-core/ui` published files
150
+ - enforce `npm pack --dry-run` in release quality gates
151
+ - enable npm provenance in release workflow
152
+
153
+ - Updated dependencies
154
+ - @mantis-core/supabase-core@0.1.1
155
+ - @mantis-core/utils@0.1.1
package/COMPONENTS.md CHANGED
@@ -6,59 +6,57 @@ One doc per component under [`docs/components/`](./docs/components). Edit those
6
6
 
7
7
  ## forms
8
8
 
9
- - [AsyncSelect](./docs/components/async-select.md) — Searchable select that loads options asynchronously via loadOptions callback.
10
- - [CKEditorInput](./docs/components/ckeditor-input.md) — Rich-text WYSIWYG editor (CKEditor 5) wired to react-hook-form; emits HTML string.
11
- - [ColorPickerInput](./docs/components/color-picker-input.md) — Color picker (PrimeReact ColorPicker, hex format) wired to react-hook-form.
12
- - [Combobox](./docs/components/combobox.md) — Autocomplete text input (PrimeReact AutoComplete) wired to react-hook-form; pass suggestions via the suggestions prop.
13
- - [CurrencyInput](./docs/components/currency-input.md) — Numeric input pre-configured for currency display (mode=currency).
14
- - [DateInput](./docs/components/date-input.md) — Single date picker (PrimeReact Calendar, locale=es, format=dd/mm/yy).
15
- - [DatePresets](./docs/components/date-presets.md) — Row of preset buttons (Hoy, 7 días, 30 días, Este mes) that fire onChange with a [Date, Date] range; pair with DateRangeInput.
16
- - [DateRangeInput](./docs/components/date-range-input.md) — Date range picker that stores [startDate, endDate] array; selectionMode is locked to 'range'.
17
- - [DirtyFormGuard](./docs/components/dirty-form-guard.md) — Blocks navigation when a react-hook-form has unsaved changes; also available as useDirtyFormGuard hook.
18
- - [DropDown](./docs/components/drop-down.md) — PrimeReact Dropdown (single select with filter) wired to react-hook-form; use when you need PrimeReact styling over react-select.
19
- - [ErrorMessage](./docs/components/error-message.md) — Displays a validation error string; use standalone when not using FormFieldRender.
20
- - [FileDropzone](./docs/components/file-dropzone.md) — Drag-and-drop file input with validation (type, size, count); supports react-hook-form mode and plain controlled mode.
9
+ - [AutoCompleteField](./docs/components/auto-complete-field.md) — Async (or sync) autocomplete text field wired to react-hook-form via `loadOptions`, with optional free-text `creatable` mode. Absorbs the former AsyncSelect + Combobox.
10
+ - [CheckboxField](./docs/components/checkbox-field.md) — Single boolean checkbox wired to react-hook-form.
11
+ - [CKEditorInput](./docs/components/ckeditor-input.md) — Rich-text WYSIWYG editor (CKEditor 5) wired to react-hook-form; emits an HTML string.
12
+ - [ColorPickerInput](./docs/components/color-picker-input.md) — RHF-bound color picker over PR11's compound InputColor (area + sliders + swatch + eyedropper + hex input); value is a hex string.
13
+ - [DateField](./docs/components/date-field.md) — Single date, date-range, or time-only picker wired to react-hook-form; one wrapper covers all three via `selectionMode`/`timeOnly`/`showTime`.
14
+ - [DatePresets](./docs/components/date-presets.md) — Row of quick-range preset buttons (Today, 7 days, 30 days, This month) that fire onChange with a [Date, Date] tuple. Not RHF-bound — pair with a `DateField` in `selectionMode="range"`.
15
+ - [DirtyFormGuard](./docs/components/dirty-form-guard.md) — Blocks tab-close/reload when a react-hook-form has unsaved changes; render it declaratively, or use the underlying useDirtyFormGuard hook to also guard programmatic navigation.
16
+ - [ErrorMessage](./docs/components/error-message.md) — Standalone validation-error text for one named react-hook-form field, read from form context; use when composing a custom layout instead of FormFieldRender.
17
+ - [FieldShell](./docs/components/field-shell.md) — Presentation primitive for label + addon + help/error composition around one input; every FieldControllerProps-based field wrapper renders it internally — reach for it directly only when hand-building a new wrapper (see field-controller.md).
18
+ - [FileDropzone](./docs/components/file-dropzone.md) — Drag-and-drop file input with validation (type, size, count); supports a react-hook-form binding or plain controlled value/onChange.
21
19
  - [FormActionsBar](./docs/components/form-actions-bar.md) — Sticky-capable action bar with primary/secondary buttons and optional left/right slots for form pages.
22
- - [FormFieldRender](./docs/components/form-field-render.md) — Wrapper that renders a label, the input slot, and a validation error message; use to compose any form control.
23
- - [FormWizard](./docs/components/form-wizard.md) — Multi-step form navigator with step indicator and per-step validation; must render inside a FormProvider, parent owns the <form onSubmit>.
24
- - [HiddenField](./docs/components/hidden-field.md) — Registers a hidden value in react-hook-form without rendering any UI.
25
- - [MultiSelect](./docs/components/multi-select.md) — Multi-value select (PrimeReact) wired to react-hook-form.
26
- - [NumberInput](./docs/components/number-input.md) — Numeric input (integer or decimal) wired to react-hook-form.
27
- - [OtpInput](./docs/components/otp-input.md) — One-time password input (PrimeReact InputOtp) wired to react-hook-form.
28
- - [PasswordInput](./docs/components/password-input.md) — Password field with show/hide toggle; Controller pattern, same API as TextInput.
29
- - [PhoneInput](./docs/components/phone-input.md) — Masked phone number input; default mask (999) 999-9999.
30
- - [RadioGroup](./docs/components/radio-group.md) — Renders a set of radio buttons from an options array; value is the selected option's value.
31
- - [RangeSlider](./docs/components/range-slider.md) — Dual-handle range slider that stores a [min, max] tuple; backed by PrimeReact Slider.
32
- - [RatingInput](./docs/components/rating-input.md) — Star rating input (PrimeReact Rating) wired to react-hook-form; stores numeric value.
33
- - [RenderField](./docs/components/render-field.md) — Low-level escape hatch: connects any custom UI to react-hook-form via a render prop.
34
- - [SearchInput](./docs/components/search-input.md) — Debounced text input that calls onSearch instead of using react-hook-form; ideal for live table/list filtering.
35
- - [Select](./docs/components/select.md) — Single-value searchable select (react-select); supports creatable mode.
36
- - [Switch](./docs/components/switch.md) — Toggle/boolean switch wired to react-hook-form.
37
- - [TagsInput](./docs/components/tags-input.md) — Chip/tags input (PrimeReact Chips) wired to react-hook-form; stores value as string[].
20
+ - [FormFieldRender](./docs/components/form-field-render.md) — Composes a label, a render-prop input slot, and an inline ErrorMessage for one field; use to wrap a custom/non-Mantis input with the same label+error layout as the field wrappers.
21
+ - [FormWizard](./docs/components/form-wizard.md) — Multi-step form navigator with a PR11 Stepper step indicator and per-step field validation; must render inside a FormProvider, parent owns the <form onSubmit>.
22
+ - [HiddenField](./docs/components/hidden-field.md) — Registers a react-hook-form value with no visible UI.
23
+ - [MaskField](./docs/components/mask-field.md) — Generic masked text input (digit/letter/alphanumeric tokens) wired to react-hook-form; value is the masked display string.
24
+ - [NumberField](./docs/components/number-field.md) — Numeric input (integer, decimal, or currency) wired to react-hook-form.
25
+ - [OtpInput](./docs/components/otp-input.md) — RHF-bound one-time-password input over PR11's compound InputOtp; renders `length` segmented boxes.
26
+ - [PasswordInput](./docs/components/password-input.md) — RHF-bound password field over PR11 InputPassword with a native show/hide toggle and a lightweight strength meter.
27
+ - [PhoneInput](./docs/components/phone-input.md) — Phone-number preset of MaskField; defaults to a US-style (999) 999-9999 mask.
28
+ - [RadioGroup](./docs/components/radio-group.md) — Single-choice radio group over PR11's RadioButtonGroup; value is the selected option's value.
29
+ - [RangeSlider](./docs/components/range-slider.md) — RHF-bound slider over PR11's compound Slider; single-handle by default, dual-handle range when the field holds a [number, number] tuple.
30
+ - [RatingInput](./docs/components/rating-input.md) — RHF-bound star rating over PR11's compound Rating; stores a numeric value.
31
+ - [RenderField](./docs/components/render-field.md) — Low-level escape hatch wrapping react-hook-form's Controller via a render prop; use to wire any custom or third-party input without building a full FieldControllerProps wrapper.
32
+ - [SearchInput](./docs/components/search-input.md) — RHF-bound search box over PR11 InputText with a search icon and a debounced onSearch callback; ideal for live table/list filtering.
33
+ - [SelectField](./docs/components/select-field.md) — Single- or multi-select dropdown wired to react-hook-form over PR11's portal-based Select; pass `multiple` for array-value mode. Absorbs the former Select/DropDown/MultiSelect.
34
+ - [SwitchField](./docs/components/switch-field.md) — Boolean on/off toggle wired to react-hook-form.
35
+ - [TagsInput](./docs/components/tags-input.md) — RHF-bound tag/chip input over PR11's compound InputTags; stores value as string[].
38
36
  - [TextArea](./docs/components/text-area.md) — Multi-line text field wired to react-hook-form.
39
- - [TextInput](./docs/components/text-input.md) — Single-line text field wired to react-hook-form.
40
- - [TimePicker](./docs/components/time-picker.md) — Time-only picker (15-min intervals) wired to react-hook-form; renders as a styled InputText trigger.
41
- - [Toggle](./docs/components/toggle.md) — Checkbox-based boolean toggle wired to react-hook-form with configurable on/off labels.
42
- - [ToggleInlineButton](./docs/components/toggle-inline-button.md) — Segmented button group (single or multi-select) wired to react-hook-form via a controller prop.
43
- - [UploadFilesPreview](./docs/components/upload-files-preview.md) — Drag-and-drop upload zone with live preview grid, drag-to-reorder, and async upload queue; designed for image galleries.
37
+ - [TextField](./docs/components/text-field.md) — Single-line text field wired to react-hook-form.
38
+ - [ToggleInlineButton](./docs/components/toggle-inline-button.md) — Segmented single- or multi-choice control over PR11's ToggleButtonGroup; pass `multiple` for array-value mode.
39
+ - [UploadFilesPreview](./docs/components/upload-files-preview.md) — Drag-and-drop upload zone with live preview grid, drag-to-reorder, and async upload queue; designed for image galleries, not react-hook-form bound.
40
+ - [useFieldController](./docs/components/use-field-controller.md) — Hook every RHF field wrapper calls internally to wire useController + a stable id/aria/disabled/error-message resolution; call it directly only when hand-building a new field wrapper (see field-controller.md).
44
41
 
45
42
  ## tables
46
43
 
47
- - [ActionColumn](./docs/components/action-column.md) — Factory function that returns a PrimeReact Column with a dropdown action menu; call as ActionColumn(itemsFn, props).
48
- - [FilterPannel](./docs/components/filter-pannel.md) — Slide-in sidebar filter panel for tables; wraps children in FormProvider and calls onApplyFilter with cleaned form data.
49
- - [IndexColumn](./docs/components/index-column.md) — Returns a PrimeReact Column that renders the row's 1-based visual index; call as IndexColumn(colProps).
50
- - [MenuButton](./docs/components/menu-button.md) — Dropdown button with a list of actions; used inside table rows.
51
- - [MultiSelectFilter](./docs/components/multi-select-filter.md) — PrimeReact MultiSelect wired for use as a DataTable column filter template.
52
- - [PaginatedTable](./docs/components/paginated-table.md) — Generic server-side paginated DataTable with built-in index column, action column, and Mantis Core CSS. Wraps PrimeReact DataTable.
53
- - [TableFilterField](./docs/components/table-filter-field.md) — Wraps a form control inside FilterPannel with a label; provides consistent layout.
54
- - [TableToolbar](./docs/components/table-toolbar.md) — Header bar above a table showing title, record count, and action buttons slot.
44
+ - [ActionColumn](./docs/components/action-column.md) — Factory that returns a row-action `ColumnDef` for MantisDataTable/PaginatedTable's `columns` array; each row's `body` renders a `MenuButton` populated by `items(row)`.
45
+ - [FilterPannel](./docs/components/filter-pannel.md) — Slide-in filter sidebar for tables; wraps RHF-bound filter fields in their own `FormProvider` and calls `onApplyFilter` with the cleaned form data.
46
+ - [IndexColumn](./docs/components/index-column.md) — Factory that returns a 1-based row-number `ColumnDef` for MantisDataTable/PaginatedTable's `columns` array.
47
+ - [MantisDataTable](./docs/components/mantis-data-table.md) — The 90% shortcut over PR11's compound DataTable — one flat `columns: ColumnDef[]` array renders the whole TableContainer→Table→THead→TBody→EmptyTBody tree with striped rows + gridlines. Default table for any grid; drop to `PaginatedTable` for pagination + index/action columns baked in.
48
+ - [MenuButton](./docs/components/menu-button.md) — Row-action overlay menu a trigger button that opens a popup list of actions; used inside `actionColumn`/table row cells, or standalone.
49
+ - [MultiSelectFilter](./docs/components/multi-select-filter.md) — Multi-value header filter over the themed PR11 `Select` (multiple mode) — drops into a `ColumnDef`'s `filterElement` escape hatch when a column needs array-valued filtering instead of the scalar `filters` map.
50
+ - [PaginatedTable](./docs/components/paginated-table.md) — Thin preset over MantisDataTable with `paginator` on by default plus optional index/action columns — the default table shell for admin list pages.
51
+ - [TableFilterField](./docs/components/table-filter-field.md) — Wraps a form control with a `<label>` inside a `FilterPannel`, providing consistent layout.
52
+ - [TableToolbar](./docs/components/table-toolbar.md) — Header bar above a table showing title, record-count meta, and an action buttons slot.
55
53
 
56
54
  ## pages
57
55
 
58
- - [AdminPageConfigurator](./docs/components/admin-page-configurator.md) — Sets the page title, description, and breadcrumbs in the admin layout shell via context; wrap each page's content with this.
59
- - [AdminPageHeader](./docs/components/admin-page-header.md) — Gradient page header with title, optional description, breadcrumbs, and right-side actions slot; rendered by AdminPageLayoutShell — avoid rendering directly inside feature views.
60
- - [AdminPageLayout](./docs/components/admin-page-layout.md) — Overview of the admin page layout system — Provider, Configurator, and Shell exports that together compose admin pages.
61
- - [AdminPageLayoutShell](./docs/components/admin-page-layout-shell.md) — Root layout shell for admin pages; renders AdminPageHeader from context set by AdminPageConfigurator and provides the layout grid.
56
+ - [AdminPageConfigurator](./docs/components/admin-page-configurator.md) — Sets the page title, description, breadcrumbs, and actions in the admin layout shell via context; wrap each page's content with this.
57
+ - [AdminPageHeader](./docs/components/admin-page-header.md) — Gradient page header with title, optional description, breadcrumbs, and a right-side actions slot; rendered by AdminPageLayoutShell — avoid rendering directly inside feature views.
58
+ - [AdminPageLayout](./docs/components/admin-page-layout.md) — Overview of the admin page layout system — a context Provider plus a Configurator and a Shell that together compose admin pages without prop-drilling page title/description/breadcrumbs/actions.
59
+ - [AdminPageLayoutShell](./docs/components/admin-page-layout-shell.md) — Root layout shell for admin pages; renders AdminPageHeader from context set by AdminPageConfigurator and provides the page grid/max-width.
62
60
  - [AppShell](./docs/components/app-shell.md) — Full-page app shell with responsive sidebar nav, topbar, and mobile drawer; use as the root layout wrapper for authenticated pages.
63
61
  - [Breadcrumbs](./docs/components/breadcrumbs.md) — Standalone breadcrumb nav; renders nothing when items is empty.
64
62
  - [FormSection](./docs/components/form-section.md) — Bordered card section with a header (title + description + icon) and a padded body; groups related form fields.
@@ -66,55 +64,55 @@ One doc per component under [`docs/components/`](./docs/components). Edit those
66
64
 
67
65
  ## maps
68
66
 
69
- - [MapPicker](./docs/components/map-picker.md) — Interactive Leaflet map that lets the user click to select a lat/lng coordinate; SSR-safe via next/dynamic.
70
- - [MapPickerClient](./docs/components/map-picker-client.md) — Client-only Leaflet map that lets the user click to pick a coordinate; controlled via initialLat/initialLng.
71
- - [MapPickerOSM](./docs/components/map-picker-osm.md) — Script-injected Leaflet map (no SSR bundle cost) with click/drag marker and a save-location button.
67
+ - [MapPicker](./docs/components/map-picker.md) — SSR-safe entry point for the Leaflet lat/lng picker; lazy-loads MapPickerClient via next/dynamic (ssr:false).
68
+ - [MapPickerClient](./docs/components/map-picker-client.md) — Client-only react-leaflet map (click-to-pick marker); the piece MapPicker lazy-loads. Use directly only if you already own the ssr:false boundary.
69
+ - [MapPickerOSM](./docs/components/map-picker-osm.md) — Script-injected Leaflet map (no react-leaflet/SSR bundle cost) with a draggable marker and an explicit "save location" button.
72
70
 
73
71
  ## overlays
74
72
 
75
- - [Drawer](./docs/components/drawer.md) — Slide-in side panel (PrimeReact Sidebar wrapper); defaults to right position.
76
- - [Modal](./docs/components/modal.md) — Dialog/modal (PrimeReact Dialog wrapper); dismissable mask and non-draggable by default.
73
+ - [Drawer](./docs/components/drawer.md) — Controlled slide-in side panel; composes PR11's headless Drawer compound (Root/Portal/Backdrop/Popup/Header/Content/Footer no Positioner, unlike Dialog) behind a simple `open`/`side`/`title`/`footer` API.
74
+ - [Modal](./docs/components/modal.md) — Controlled dialog/modal; composes PR11's headless Dialog compound (Root/Portal/Backdrop/Positioner/Popup/Header/Content/Footer) behind a simple `open`/`title`/`footer` API.
77
75
 
78
76
  ## navigation
79
77
 
80
- - [CommandPalette](./docs/components/command-palette.md) — Keyboard-driven command search overlay (Ctrl+K); pair with useCommandPalette hook to wire the shortcut.
81
- - [PageTabs](./docs/components/page-tabs.md) — Tab menu bar for page-level navigation; auto-detects active tab from Next.js pathname when tabs have href.
78
+ - [CommandPalette](./docs/components/command-palette.md) — Keyboard-driven command search overlay (Ctrl/Cmd+K); pair with the `useCommandPalette` hook to wire the shortcut.
79
+ - [PageTabs](./docs/components/page-tabs.md) — Page-level navigation tab bar (no panels) over PR11's Tabs compound; each tab navigates via `href` (Next.js router) or runs a `command`. Active tab is derived from the current pathname.
82
80
 
83
81
  ## data
84
82
 
85
83
  - [DescriptionList](./docs/components/description-list.md) — Grid-based label/value list for detail views; supports 1, 2, or 3 columns.
86
84
  - [StatCard](./docs/components/stat-card.md) — KPI card showing a metric label, large value, optional icon, trend indicator, and footer.
87
- - [Timeline](./docs/components/timeline.md) — Vertical event timeline backed by PrimeReact Timeline; items render title, description, date, and optional icon.
85
+ - [Timeline](./docs/components/timeline.md) — Vertical event timeline backed by the PR11 Timeline compound; items render a title, description, date, and optional icon/color.
88
86
 
89
87
  ## feedback
90
88
 
91
- - [Avatar](./docs/components/avatar.md) — User avatar that auto-generates initials from a name when no image is supplied; wraps PrimeReact Avatar.
92
- - [CardSkeleton](./docs/components/card-skeleton.md) — Animated skeleton for card grid layouts while data loads.
93
- - [ConfirmDialog](./docs/components/confirm-dialog.md) — Modal confirmation dialog with confirm/cancel buttons and severity-aware styling.
94
- - [DataState](./docs/components/data-state.md) — Full-area empty/error/loading state placeholder for data-fetching views.
89
+ - [Avatar](./docs/components/avatar.md) — User avatar that renders an image or auto-derived initials; composes the PR11 headless Avatar (Root/Image/Fallback).
90
+ - [CardSkeleton](./docs/components/card-skeleton.md) — Animated skeleton for card-grid layouts while data loads; composes the PR11 Skeleton primitive.
91
+ - [ConfirmDialog](./docs/components/confirm-dialog.md) — Confirm/cancel dialog for destructive or non-trivial actions; composed from the migrated Modal + Button.
92
+ - [DataState](./docs/components/data-state.md) — Loading/empty/error/ready placeholder for data-fetching views; renders `children` unchanged when `status="ready"`, otherwise a titled state panel.
95
93
  - [EmptyState](./docs/components/empty-state.md) — Centered empty-state placeholder with icon, title, optional description, and action button.
96
- - [ErrorBoundary](./docs/components/error-boundary.md) — React error boundary; renders fallback UI on uncaught errors; fallback can be a ReactNode or render function.
97
- - [Loading](./docs/components/loading.md) — Full-screen loading overlay with animated spinner; renders children when loading=false.
98
- - [Pagination](./docs/components/pagination.md) — Standalone pagination control; use when not relying on PaginatedTable's built-in paginator.
99
- - [RichTextPreview](./docs/components/rich-text-preview.md) — Safely renders a CKEditor HTML string with correct CKEditor content styles.
100
- - [StatusBadge](./docs/components/status-badge.md) — Colored pill badge to communicate a status or label with semantic tone.
101
- - [TableSkeleton](./docs/components/table-skeleton.md) — Animated skeleton placeholder that mimics a table grid while data loads.
102
- - [Tag](./docs/components/tag.md) — Styled label chip (PrimeReact Tag wrapper with Mantis Core CSS); use for status labels, categories, or counts.
94
+ - [ErrorBoundary](./docs/components/error-boundary.md) — React class error boundary; renders fallback UI on uncaught render errors in its children.
95
+ - [Loading](./docs/components/loading.md) — Full-screen loading overlay with a themed spinner; renders children unchanged when not loading.
96
+ - [Pagination](./docs/components/pagination.md) — Standalone page-number control (custom Tailwind markup, not PrimeReact Paginator); use when not relying on PaginatedTable's built-in paginator.
97
+ - [RichTextPreview](./docs/components/rich-text-preview.md) — Safely renders a CKEditor HTML string (sanitized by default) with CKEditor content styles applied.
98
+ - [StatusBadge](./docs/components/status-badge.md) — Colored pill badge to communicate a status with semantic tone (e.g. a lead or property status).
99
+ - [TableSkeleton](./docs/components/table-skeleton.md) — Animated skeleton placeholder that mimics a table grid while data loads; composes the PR11 Skeleton primitive.
100
+ - [Tag](./docs/components/tag.md) — Styled label chip for status labels, categories, or counts; wraps the PR11 Tag primitive.
103
101
 
104
102
  ## auth
105
103
 
106
- - [ChangePasswordForm](./docs/components/change-password-form.md) — Current + new + confirm password form for authenticated users.
107
- - [ForgotPasswordForm](./docs/components/forgot-password-form.md) — Email-only form to trigger password reset; caller owns the reset logic.
108
- - [LoginForm](./docs/components/login-form.md) — Self-contained login form with email/username + password fields; pass onSubmit to wire signIn/Supabase from the app layer.
109
- - [ResetPasswordForm](./docs/components/reset-password-form.md) — New password + confirm form; caller owns token validation and API call.
110
- - [UserMenu](./docs/components/user-menu.md) — Topbar user avatar + dropdown with custom nav items and sign-out; no auth lib coupling.
104
+ - [ChangePasswordForm](./docs/components/change-password-form.md) — Current + new + confirm password form for an authenticated user changing their own password.
105
+ - [ForgotPasswordForm](./docs/components/forgot-password-form.md) — Email-only form to trigger a password-reset email; caller owns the actual reset request.
106
+ - [LoginForm](./docs/components/login-form.md) — Self-contained login form (identifier + password) built on migrated TextField/PasswordInput/Button; pass onSubmit to wire signIn/Supabase from the app layer.
107
+ - [ResetPasswordForm](./docs/components/reset-password-form.md) — New password + confirm-password form for a reset-token flow; caller owns token validation and the API call.
108
+ - [UserMenu](./docs/components/user-menu.md) — Topbar avatar-triggered dropdown (custom nav items + sign-out); no auth-lib coupling.
111
109
 
112
110
  ## buttons
113
111
 
114
- - [Button](./docs/components/button.md) — Primary action button; wraps PrimeReact Button with Mantis Core variant tokens and optional Next.js href navigation.
112
+ - [Button](./docs/components/button.md) — Primary action button; wraps PR11's `@primereact/ui/button`, mapping the Mantis semantic `variant` to PR11 `severity` and restoring the `label`/`icon`/`loading` affordances PR11 dropped. Supports `href` for Next.js client navigation.
115
113
 
116
114
  ## charts
117
115
 
118
- - [BarChart](./docs/components/bar-chart.md) — Categorical comparisons rendered as a bar chart. Same prop shape as LineChart.
119
- - [DonutChart](./docs/components/donut-chart.md) — Part-to-whole breakdown rendered as a doughnut chart.
120
- - [LineChart](./docs/components/line-chart.md) — Time-series or trend data rendered as a line chart. Zero-config defaults with full options override.
116
+ - [BarChart](./docs/components/bar-chart.md) — Categorical comparisons rendered as a bar chart, zero-config over chart.js defaults.
117
+ - [DonutChart](./docs/components/donut-chart.md) — Part-to-whole breakdown rendered as a doughnut chart, zero-config over chart.js defaults.
118
+ - [LineChart](./docs/components/line-chart.md) — Time-series/trend data rendered as a line chart, zero-config over chart.js defaults.
package/README.md CHANGED
@@ -9,7 +9,7 @@ Reusable React component library for Mantis Core applications.
9
9
  ## Scope
10
10
 
11
11
  - Reusable React components and helper types.
12
- - Wrappers around PrimeReact, `react-select`, CKEditor, and Leaflet where Mantis needs a stable contract.
12
+ - Wrappers around PrimeReact 11, CKEditor, and Leaflet where Mantis needs a stable contract.
13
13
  - Components that optionally consume the visual contracts defined in `@mantis-core/styles`.
14
14
 
15
15
  ## Out of Scope
@@ -33,14 +33,14 @@ Required peers:
33
33
  - `primeicons`
34
34
  - `react-hook-form`
35
35
 
36
- Some exports also require optional peers already pulled by this package surface, such as CKEditor, `react-select`, `react-datepicker`, `leaflet`, and `react-leaflet`.
36
+ Some exports also require optional peers already pulled by this package surface, such as CKEditor, `leaflet`, `react-leaflet`, `chart.js`, and `react-chartjs-2`.
37
37
 
38
38
  ## Import Strategy
39
39
 
40
40
  Preferred:
41
41
 
42
42
  ```ts
43
- import { PaginatedTable, TableToolbar, TextInput } from "@mantis-core/ui";
43
+ import { PaginatedTable, TableToolbar, TextField } from "@mantis-core/ui";
44
44
  ```
45
45
 
46
46
  Supported subpaths:
@@ -73,7 +73,20 @@ Example:
73
73
 
74
74
  - [docs/README.md](./docs/README.md): package documentation index
75
75
  - [COMPONENTS.md](./COMPONENTS.md): lightweight component index
76
- - [PRIMEREACT_MAPPING.md](./PRIMEREACT_MAPPING.md): lightweight dependency-map pointer
76
+ - [docs/contracts/dependency-map.md](./docs/contracts/dependency-map.md): which underlying PrimeReact 11 module each component wraps (generated via `pnpm gen:catalog`)
77
+
78
+ ## LLM discovery
79
+
80
+ This package ships `llms.txt` (component index), `catalog.json` (machine-readable catalog), and
81
+ per-component `docs/` as published files, so a consuming app's LLM can read them straight from
82
+ `node_modules/@mantis-core/ui/`. To point the LLM at them, run once per consuming project:
83
+
84
+ ```bash
85
+ pnpm exec mantis-llm # or: npx mantis-llm · yarn mantis-llm
86
+ ```
87
+
88
+ This writes a managed pointer block into the project's `CLAUDE.md` / `AGENTS.md` (idempotent;
89
+ `--check` for CI). See the "LLM discovery" section in the repo root `docs/consumir/GETTING_STARTED.md`.
77
90
 
78
91
  ## Public API Summary
79
92
 
@@ -81,7 +94,7 @@ Main export groups:
81
94
 
82
95
  - Buttons: `Button`
83
96
  - Loaders: `Loading`
84
- - Forms: `TextInput`, `TextArea`, `NumberInput`, `DropDown`, `DateInput`, `Select`, `AsyncSelect`, `Switch`, `Toggle`, `ToggleInlineButton`, `CKEditorInput`, `FileDropzone`, `UploadFilesPreview`
97
+ - Forms: `TextField`, `TextArea`, `NumberField`, `SelectField`, `AutoCompleteField`, `DateField`, `CheckboxField`, `SwitchField`, `RadioGroup`, `ToggleInlineButton`, `CKEditorInput`, `FileDropzone`, `UploadFilesPreview` — every field wrapper extends `FieldControllerProps` (flat `name`/`control`/`rules`/`label`, no `controller={{...}}` object); see `docs/contracts/field-controller.md`
85
98
  - Form helpers: `RenderField`, `FormFieldRender`, `FormActionsBar`, `DirtyFormGuard`, `useDirtyFormGuard`, `ErrorMessage`, `HiddenField`
86
99
  - Tables: `PaginatedTable`, `TableToolbar`, `TableFilterField`, `ActionColumn`, `MenuButton`, `IndexColumn`, `FilterPannel`, `MultiSelectFilter`
87
100
  - Page layout: `AdminPageConfigurator`, `AdminPageLayoutProvider`, `useAdminPageLayout`, `AdminPageLayoutShell`, `AdminPageHeader`, `FormSection`, `PageTitle`
@@ -93,7 +106,7 @@ Main export groups:
93
106
  1. Keep new exports domain-agnostic.
94
107
  2. Keep the public API anchored in `src/index.ts`.
95
108
  3. Document new exports in `COMPONENTS.md`.
96
- 4. Update `PRIMEREACT_MAPPING.md` when the underlying implementation library changes.
109
+ 4. Run `pnpm gen:catalog` to regenerate `docs/contracts/dependency-map.md` (and `catalog.json`) when the underlying implementation library changes — edit the per-component `.md` in `docs/components/`, not the generated files.
97
110
  5. Preserve the `mantis-core-*` style contract where shared styles are intended.
98
111
 
99
112
  ## Local Validation