@mantis-core/ui 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +144 -0
- package/COMPONENTS.md +71 -73
- package/README.md +13 -6
- package/catalog.json +3031 -0
- package/dist/components/Buttons/Button.d.ts +39 -9
- package/dist/components/Buttons/Button.d.ts.map +1 -1
- package/dist/components/Buttons/Button.js +21 -13
- package/dist/components/Buttons/Button.js.map +1 -1
- package/dist/components/Forms/AutoCompleteField.d.ts +60 -0
- package/dist/components/Forms/AutoCompleteField.d.ts.map +1 -0
- package/dist/components/Forms/AutoCompleteField.js +125 -0
- package/dist/components/Forms/AutoCompleteField.js.map +1 -0
- package/dist/components/Forms/CKEditorInput.d.ts +5 -2
- package/dist/components/Forms/CKEditorInput.d.ts.map +1 -1
- package/dist/components/Forms/CKEditorInput.js +5 -2
- package/dist/components/Forms/CKEditorInput.js.map +1 -1
- package/dist/components/Forms/CheckboxField.d.ts +14 -0
- package/dist/components/Forms/CheckboxField.d.ts.map +1 -0
- package/dist/components/Forms/CheckboxField.js +26 -0
- package/dist/components/Forms/CheckboxField.js.map +1 -0
- package/dist/components/Forms/ColorPickerInput.d.ts +27 -8
- package/dist/components/Forms/ColorPickerInput.d.ts.map +1 -1
- package/dist/components/Forms/ColorPickerInput.js +57 -11
- package/dist/components/Forms/ColorPickerInput.js.map +1 -1
- package/dist/components/Forms/DateField.d.ts +68 -0
- package/dist/components/Forms/DateField.d.ts.map +1 -0
- package/dist/components/Forms/DateField.js +108 -0
- package/dist/components/Forms/DateField.js.map +1 -0
- package/dist/components/Forms/DatePresets.d.ts.map +1 -1
- package/dist/components/Forms/DatePresets.js +6 -3
- package/dist/components/Forms/DatePresets.js.map +1 -1
- package/dist/components/Forms/FieldShell.d.ts +24 -0
- package/dist/components/Forms/FieldShell.d.ts.map +1 -0
- package/dist/components/Forms/FieldShell.js +39 -0
- package/dist/components/Forms/FieldShell.js.map +1 -0
- package/dist/components/Forms/FileDropzone.d.ts +4 -2
- package/dist/components/Forms/FileDropzone.d.ts.map +1 -1
- package/dist/components/Forms/FileDropzone.js.map +1 -1
- package/dist/components/Forms/FormActionsBar.js +2 -2
- package/dist/components/Forms/FormActionsBar.js.map +1 -1
- package/dist/components/Forms/FormWizard.d.ts +1 -1
- package/dist/components/Forms/FormWizard.d.ts.map +1 -1
- package/dist/components/Forms/FormWizard.js +4 -5
- package/dist/components/Forms/FormWizard.js.map +1 -1
- package/dist/components/Forms/HiddenField.d.ts +12 -6
- package/dist/components/Forms/HiddenField.d.ts.map +1 -1
- package/dist/components/Forms/HiddenField.js +14 -5
- package/dist/components/Forms/HiddenField.js.map +1 -1
- package/dist/components/Forms/MaskField.d.ts +28 -0
- package/dist/components/Forms/MaskField.d.ts.map +1 -0
- package/dist/components/Forms/MaskField.js +74 -0
- package/dist/components/Forms/MaskField.js.map +1 -0
- package/dist/components/Forms/NumberField.d.ts +14 -0
- package/dist/components/Forms/NumberField.d.ts.map +1 -0
- package/dist/components/Forms/NumberField.js +51 -0
- package/dist/components/Forms/NumberField.js.map +1 -0
- package/dist/components/Forms/OtpInput.d.ts +23 -8
- package/dist/components/Forms/OtpInput.d.ts.map +1 -1
- package/dist/components/Forms/OtpInput.js +37 -8
- package/dist/components/Forms/OtpInput.js.map +1 -1
- package/dist/components/Forms/PasswordInput.d.ts +22 -9
- package/dist/components/Forms/PasswordInput.d.ts.map +1 -1
- package/dist/components/Forms/PasswordInput.js +63 -28
- package/dist/components/Forms/PasswordInput.js.map +1 -1
- package/dist/components/Forms/PhoneInput.d.ts +16 -8
- package/dist/components/Forms/PhoneInput.d.ts.map +1 -1
- package/dist/components/Forms/PhoneInput.js +13 -6
- package/dist/components/Forms/PhoneInput.js.map +1 -1
- package/dist/components/Forms/RadioGroup.d.ts +34 -13
- package/dist/components/Forms/RadioGroup.d.ts.map +1 -1
- package/dist/components/Forms/RadioGroup.js +49 -6
- package/dist/components/Forms/RadioGroup.js.map +1 -1
- package/dist/components/Forms/RangeSlider.d.ts +26 -11
- package/dist/components/Forms/RangeSlider.d.ts.map +1 -1
- package/dist/components/Forms/RangeSlider.js +40 -7
- package/dist/components/Forms/RangeSlider.js.map +1 -1
- package/dist/components/Forms/RatingInput.d.ts +24 -8
- package/dist/components/Forms/RatingInput.d.ts.map +1 -1
- package/dist/components/Forms/RatingInput.js +41 -9
- package/dist/components/Forms/RatingInput.js.map +1 -1
- package/dist/components/Forms/SearchInput.d.ts +18 -10
- package/dist/components/Forms/SearchInput.d.ts.map +1 -1
- package/dist/components/Forms/SearchInput.js +44 -23
- package/dist/components/Forms/SearchInput.js.map +1 -1
- package/dist/components/Forms/SelectField.d.ts +41 -0
- package/dist/components/Forms/SelectField.d.ts.map +1 -0
- package/dist/components/Forms/SelectField.js +110 -0
- package/dist/components/Forms/SelectField.js.map +1 -0
- package/dist/components/Forms/SwitchField.d.ts +14 -0
- package/dist/components/Forms/SwitchField.d.ts.map +1 -0
- package/dist/components/Forms/SwitchField.js +26 -0
- package/dist/components/Forms/SwitchField.js.map +1 -0
- package/dist/components/Forms/TagsInput.d.ts +29 -8
- package/dist/components/Forms/TagsInput.d.ts.map +1 -1
- package/dist/components/Forms/TagsInput.js +53 -9
- package/dist/components/Forms/TagsInput.js.map +1 -1
- package/dist/components/Forms/TextArea.d.ts +13 -10
- package/dist/components/Forms/TextArea.d.ts.map +1 -1
- package/dist/components/Forms/TextArea.js +27 -9
- package/dist/components/Forms/TextArea.js.map +1 -1
- package/dist/components/Forms/TextField.d.ts +14 -0
- package/dist/components/Forms/TextField.d.ts.map +1 -0
- package/dist/components/Forms/TextField.js +29 -0
- package/dist/components/Forms/TextField.js.map +1 -0
- package/dist/components/Forms/ToggleInlineButton.d.ts +33 -12
- package/dist/components/Forms/ToggleInlineButton.d.ts.map +1 -1
- package/dist/components/Forms/ToggleInlineButton.js +56 -6
- package/dist/components/Forms/ToggleInlineButton.js.map +1 -1
- package/dist/components/Forms/UploadFilesPreview.js +3 -3
- package/dist/components/Forms/UploadFilesPreview.js.map +1 -1
- package/dist/components/Forms/field-typing.test-d.d.ts +2 -0
- package/dist/components/Forms/field-typing.test-d.d.ts.map +1 -0
- package/dist/components/Forms/field-typing.test-d.js +24 -0
- package/dist/components/Forms/field-typing.test-d.js.map +1 -0
- package/dist/components/Forms/useFieldController.d.ts +85 -0
- package/dist/components/Forms/useFieldController.d.ts.map +1 -0
- package/dist/components/Forms/useFieldController.js +54 -0
- package/dist/components/Forms/useFieldController.js.map +1 -0
- package/dist/components/Loaders/Loading.d.ts.map +1 -1
- package/dist/components/Loaders/Loading.js +3 -2
- package/dist/components/Loaders/Loading.js.map +1 -1
- package/dist/components/Tables/ActionColumn.d.ts +20 -4
- package/dist/components/Tables/ActionColumn.d.ts.map +1 -1
- package/dist/components/Tables/ActionColumn.js +24 -5
- package/dist/components/Tables/ActionColumn.js.map +1 -1
- package/dist/components/Tables/FilterPannel.d.ts +9 -2
- package/dist/components/Tables/FilterPannel.d.ts.map +1 -1
- package/dist/components/Tables/FilterPannel.js +15 -11
- package/dist/components/Tables/FilterPannel.js.map +1 -1
- package/dist/components/Tables/IndexColumn.d.ts +12 -3
- package/dist/components/Tables/IndexColumn.d.ts.map +1 -1
- package/dist/components/Tables/IndexColumn.js +21 -5
- package/dist/components/Tables/IndexColumn.js.map +1 -1
- package/dist/components/Tables/MantisDataTable.d.ts +45 -0
- package/dist/components/Tables/MantisDataTable.d.ts.map +1 -0
- package/dist/components/Tables/MantisDataTable.js +63 -0
- package/dist/components/Tables/MantisDataTable.js.map +1 -0
- package/dist/components/Tables/MenuButton.d.ts +28 -7
- package/dist/components/Tables/MenuButton.d.ts.map +1 -1
- package/dist/components/Tables/MenuButton.js +20 -10
- package/dist/components/Tables/MenuButton.js.map +1 -1
- package/dist/components/Tables/PaginatedTable.d.ts +26 -17
- package/dist/components/Tables/PaginatedTable.d.ts.map +1 -1
- package/dist/components/Tables/PaginatedTable.js +24 -22
- package/dist/components/Tables/PaginatedTable.js.map +1 -1
- package/dist/components/Tables/cell-presets.d.ts +35 -0
- package/dist/components/Tables/cell-presets.d.ts.map +1 -0
- package/dist/components/Tables/cell-presets.js +40 -0
- package/dist/components/Tables/cell-presets.js.map +1 -0
- package/dist/components/Tables/columns.d.ts +40 -0
- package/dist/components/Tables/columns.d.ts.map +1 -0
- package/dist/components/Tables/columns.js +2 -0
- package/dist/components/Tables/columns.js.map +1 -0
- package/dist/components/Tables/filters/MultiSelectFilter.d.ts +24 -6
- package/dist/components/Tables/filters/MultiSelectFilter.d.ts.map +1 -1
- package/dist/components/Tables/filters/MultiSelectFilter.js +19 -6
- package/dist/components/Tables/filters/MultiSelectFilter.js.map +1 -1
- package/dist/components/auth/ChangePasswordForm.d.ts.map +1 -1
- package/dist/components/auth/ChangePasswordForm.js +12 -12
- package/dist/components/auth/ChangePasswordForm.js.map +1 -1
- package/dist/components/auth/ForgotPasswordForm.d.ts.map +1 -1
- package/dist/components/auth/ForgotPasswordForm.js +7 -5
- package/dist/components/auth/ForgotPasswordForm.js.map +1 -1
- package/dist/components/auth/LoginForm.d.ts +2 -2
- package/dist/components/auth/LoginForm.d.ts.map +1 -1
- package/dist/components/auth/LoginForm.js +15 -15
- package/dist/components/auth/LoginForm.js.map +1 -1
- package/dist/components/auth/ResetPasswordForm.d.ts.map +1 -1
- package/dist/components/auth/ResetPasswordForm.js +11 -12
- package/dist/components/auth/ResetPasswordForm.js.map +1 -1
- package/dist/components/auth/UserMenu.d.ts +11 -1
- package/dist/components/auth/UserMenu.d.ts.map +1 -1
- package/dist/components/auth/UserMenu.js +30 -87
- package/dist/components/auth/UserMenu.js.map +1 -1
- package/dist/components/data/Timeline.d.ts +2 -2
- package/dist/components/data/Timeline.d.ts.map +1 -1
- package/dist/components/data/Timeline.js +17 -17
- package/dist/components/data/Timeline.js.map +1 -1
- package/dist/components/feedback/Avatar.d.ts +4 -2
- package/dist/components/feedback/Avatar.d.ts.map +1 -1
- package/dist/components/feedback/Avatar.js +4 -4
- package/dist/components/feedback/Avatar.js.map +1 -1
- package/dist/components/feedback/CardSkeleton.d.ts.map +1 -1
- package/dist/components/feedback/CardSkeleton.js +3 -3
- package/dist/components/feedback/CardSkeleton.js.map +1 -1
- package/dist/components/feedback/TableSkeleton.d.ts.map +1 -1
- package/dist/components/feedback/TableSkeleton.js +3 -3
- package/dist/components/feedback/TableSkeleton.js.map +1 -1
- package/dist/components/feedback/Tag.d.ts +4 -2
- package/dist/components/feedback/Tag.d.ts.map +1 -1
- package/dist/components/feedback/Tag.js +4 -4
- package/dist/components/feedback/Tag.js.map +1 -1
- package/dist/components/navigation/CommandPalette.d.ts.map +1 -1
- package/dist/components/navigation/CommandPalette.js +5 -2
- package/dist/components/navigation/CommandPalette.js.map +1 -1
- package/dist/components/navigation/PageTabs.d.ts +10 -8
- package/dist/components/navigation/PageTabs.d.ts.map +1 -1
- package/dist/components/navigation/PageTabs.js +17 -13
- package/dist/components/navigation/PageTabs.js.map +1 -1
- package/dist/components/overlays/Drawer.d.ts +16 -3
- package/dist/components/overlays/Drawer.d.ts.map +1 -1
- package/dist/components/overlays/Drawer.js +9 -5
- package/dist/components/overlays/Drawer.js.map +1 -1
- package/dist/components/overlays/Modal.d.ts +18 -3
- package/dist/components/overlays/Modal.d.ts.map +1 -1
- package/dist/components/overlays/Modal.js +13 -5
- package/dist/components/overlays/Modal.js.map +1 -1
- package/dist/components/pages/app-shell/AppShell.d.ts.map +1 -1
- package/dist/components/pages/app-shell/AppShell.js +6 -6
- package/dist/components/pages/app-shell/AppShell.js.map +1 -1
- package/dist/components/ui/ConfirmDialog.d.ts +1 -2
- package/dist/components/ui/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/ui/ConfirmDialog.js +10 -4
- package/dist/components/ui/ConfirmDialog.js.map +1 -1
- package/dist/components/ui/DataState.js +2 -2
- package/dist/components/ui/DataState.js.map +1 -1
- package/dist/index.d.ts +71 -42
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +114 -22
- package/dist/index.js.map +1 -1
- package/docs/README.md +1 -1
- package/docs/components/action-column.md +33 -7
- package/docs/components/admin-page-configurator.md +24 -5
- package/docs/components/admin-page-header.md +21 -3
- package/docs/components/admin-page-layout-shell.md +18 -4
- package/docs/components/admin-page-layout.md +34 -5
- package/docs/components/app-shell.md +31 -6
- package/docs/components/auto-complete-field.md +60 -0
- package/docs/components/avatar.md +18 -8
- package/docs/components/bar-chart.md +25 -7
- package/docs/components/breadcrumbs.md +15 -2
- package/docs/components/button.md +34 -15
- package/docs/components/card-skeleton.md +9 -3
- package/docs/components/change-password-form.md +23 -4
- package/docs/components/checkbox-field.md +38 -0
- package/docs/components/ckeditor-input.md +40 -8
- package/docs/components/color-picker-input.md +19 -8
- package/docs/components/command-palette.md +23 -2
- package/docs/components/confirm-dialog.md +36 -9
- package/docs/components/data-state.md +31 -6
- package/docs/components/date-field.md +39 -0
- package/docs/components/date-presets.md +19 -5
- package/docs/components/description-list.md +20 -2
- package/docs/components/dirty-form-guard.md +16 -4
- package/docs/components/donut-chart.md +24 -7
- package/docs/components/drawer.md +27 -8
- package/docs/components/empty-state.md +12 -2
- package/docs/components/error-boundary.md +16 -2
- package/docs/components/error-message.md +22 -3
- package/docs/components/field-shell.md +47 -0
- package/docs/components/file-dropzone.md +22 -6
- package/docs/components/filter-pannel.md +34 -7
- package/docs/components/forgot-password-form.md +23 -5
- package/docs/components/form-actions-bar.md +21 -2
- package/docs/components/form-field-render.md +36 -8
- package/docs/components/form-section.md +13 -1
- package/docs/components/form-wizard.md +34 -5
- package/docs/components/hidden-field.md +22 -6
- package/docs/components/index-column.md +25 -5
- package/docs/components/line-chart.md +25 -7
- package/docs/components/loading.md +14 -5
- package/docs/components/login-form.md +31 -6
- package/docs/components/mantis-data-table.md +61 -0
- package/docs/components/map-picker-client.md +29 -8
- package/docs/components/map-picker-osm.md +27 -9
- package/docs/components/map-picker.md +25 -4
- package/docs/components/mask-field.md +31 -0
- package/docs/components/menu-button.md +22 -7
- package/docs/components/modal.md +34 -9
- package/docs/components/multi-select-filter.md +25 -7
- package/docs/components/number-field.md +40 -0
- package/docs/components/otp-input.md +20 -7
- package/docs/components/page-tabs.md +23 -4
- package/docs/components/page-title.md +6 -1
- package/docs/components/paginated-table.md +36 -13
- package/docs/components/pagination.md +20 -7
- package/docs/components/password-input.md +20 -8
- package/docs/components/phone-input.md +17 -7
- package/docs/components/radio-group.md +39 -9
- package/docs/components/range-slider.md +18 -6
- package/docs/components/rating-input.md +19 -8
- package/docs/components/render-field.md +31 -3
- package/docs/components/reset-password-form.md +24 -4
- package/docs/components/rich-text-preview.md +17 -5
- package/docs/components/search-input.md +18 -7
- package/docs/components/select-field.md +55 -0
- package/docs/components/stat-card.md +14 -3
- package/docs/components/status-badge.md +17 -7
- package/docs/components/switch-field.md +32 -0
- package/docs/components/table-filter-field.md +22 -4
- package/docs/components/table-skeleton.md +9 -3
- package/docs/components/table-toolbar.md +18 -5
- package/docs/components/tag.md +16 -7
- package/docs/components/tags-input.md +21 -8
- package/docs/components/text-area.md +18 -8
- package/docs/components/text-field.md +32 -0
- package/docs/components/timeline.md +19 -3
- package/docs/components/toggle-inline-button.md +42 -10
- package/docs/components/upload-files-preview.md +23 -2
- package/docs/components/use-field-controller.md +58 -0
- package/docs/components/user-menu.md +26 -6
- package/docs/contracts/STORYBOOK_IMPLEMENTATION_AND_VOBO.md +92 -0
- package/docs/contracts/STORYBOOK_VOBO_LEDGER.md +195 -0
- package/docs/contracts/component-doc-schema.md +57 -15
- package/docs/contracts/dependency-map.md +50 -52
- package/docs/contracts/field-controller.md +138 -0
- package/docs/contracts/style-imports.md +1 -20
- package/llms.txt +70 -72
- package/package.json +39 -10
- package/dist/components/Forms/AsyncSelect.d.ts +0 -20
- package/dist/components/Forms/AsyncSelect.d.ts.map +0 -1
- package/dist/components/Forms/AsyncSelect.js +0 -77
- package/dist/components/Forms/AsyncSelect.js.map +0 -1
- package/dist/components/Forms/Combobox.d.ts +0 -10
- package/dist/components/Forms/Combobox.d.ts.map +0 -1
- package/dist/components/Forms/Combobox.js +0 -11
- package/dist/components/Forms/Combobox.js.map +0 -1
- package/dist/components/Forms/CurrencyInput.d.ts +0 -12
- package/dist/components/Forms/CurrencyInput.d.ts.map +0 -1
- package/dist/components/Forms/CurrencyInput.js +0 -9
- package/dist/components/Forms/CurrencyInput.js.map +0 -1
- package/dist/components/Forms/DateInput.d.ts +0 -10
- package/dist/components/Forms/DateInput.d.ts.map +0 -1
- package/dist/components/Forms/DateInput.js +0 -11
- package/dist/components/Forms/DateInput.js.map +0 -1
- package/dist/components/Forms/DateRangeInput.d.ts +0 -10
- package/dist/components/Forms/DateRangeInput.d.ts.map +0 -1
- package/dist/components/Forms/DateRangeInput.js +0 -13
- package/dist/components/Forms/DateRangeInput.js.map +0 -1
- package/dist/components/Forms/DropDown.d.ts +0 -10
- package/dist/components/Forms/DropDown.d.ts.map +0 -1
- package/dist/components/Forms/DropDown.js +0 -11
- package/dist/components/Forms/DropDown.js.map +0 -1
- package/dist/components/Forms/MultiSelect.d.ts +0 -10
- package/dist/components/Forms/MultiSelect.d.ts.map +0 -1
- package/dist/components/Forms/MultiSelect.js +0 -13
- package/dist/components/Forms/MultiSelect.js.map +0 -1
- package/dist/components/Forms/NumberInput.d.ts +0 -10
- package/dist/components/Forms/NumberInput.d.ts.map +0 -1
- package/dist/components/Forms/NumberInput.js +0 -16
- package/dist/components/Forms/NumberInput.js.map +0 -1
- package/dist/components/Forms/Select.d.ts +0 -15
- package/dist/components/Forms/Select.d.ts.map +0 -1
- package/dist/components/Forms/Select.js +0 -48
- package/dist/components/Forms/Select.js.map +0 -1
- package/dist/components/Forms/Switch.d.ts +0 -18
- package/dist/components/Forms/Switch.d.ts.map +0 -1
- package/dist/components/Forms/Switch.js +0 -30
- package/dist/components/Forms/Switch.js.map +0 -1
- package/dist/components/Forms/TextInput.d.ts +0 -11
- package/dist/components/Forms/TextInput.d.ts.map +0 -1
- package/dist/components/Forms/TextInput.js +0 -12
- package/dist/components/Forms/TextInput.js.map +0 -1
- package/dist/components/Forms/TimePicker.d.ts +0 -13
- package/dist/components/Forms/TimePicker.d.ts.map +0 -1
- package/dist/components/Forms/TimePicker.js +0 -19
- package/dist/components/Forms/TimePicker.js.map +0 -1
- package/dist/components/Forms/Toggle.d.ts +0 -14
- package/dist/components/Forms/Toggle.d.ts.map +0 -1
- package/dist/components/Forms/Toggle.js +0 -10
- package/dist/components/Forms/Toggle.js.map +0 -1
- package/dist/components/Forms/types.d.ts +0 -9
- package/dist/components/Forms/types.d.ts.map +0 -1
- package/dist/components/Forms/types.js +0 -2
- package/dist/components/Forms/types.js.map +0 -1
- package/docs/components/async-select.md +0 -27
- package/docs/components/combobox.md +0 -19
- package/docs/components/currency-input.md +0 -21
- package/docs/components/date-input.md +0 -21
- package/docs/components/date-range-input.md +0 -20
- package/docs/components/drop-down.md +0 -26
- package/docs/components/multi-select.md +0 -22
- package/docs/components/number-input.md +0 -21
- package/docs/components/select.md +0 -28
- package/docs/components/switch.md +0 -24
- package/docs/components/text-input.md +0 -24
- package/docs/components/time-picker.md +0 -25
- package/docs/components/toggle.md +0 -24
- package/docs/contracts/controller-props.md +0 -28
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# @mantis-core/ui
|
|
2
|
+
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4fbdfb2: PrimeReact 11 migration + LLM-first documentation.
|
|
8
|
+
|
|
9
|
+
**Breaking (PrimeReact 10 → 11):**
|
|
10
|
+
|
|
11
|
+
- **Forms** now use a flattened `FieldControllerProps` API — wrappers take `name`/`control`/`rules`/`label`
|
|
12
|
+
directly, there is no `controller={{ ... }}` object prop and `ControllerProps` is removed. See
|
|
13
|
+
`docs/contracts/field-controller.md`.
|
|
14
|
+
- **`@mantis-core/ui` removed react-select and react-datepicker.** The `Select`, `AsyncSelect`, `MultiSelect`,
|
|
15
|
+
`Combobox`, `DropDown`, `DateInput`, `DateRangeInput`, `TimePicker`, `CurrencyInput`, `Toggle`, `TextInput`,
|
|
16
|
+
and `NumberInput` components are gone — use `SelectField` / `AutoCompleteField` (async + creatable),
|
|
17
|
+
`DateField` (single/range/time), `NumberField` (`mode="currency"`), `TextField`, `SwitchField`.
|
|
18
|
+
- **Tables** are descriptor-driven: `MantisDataTable` / `PaginatedTable` take `rows` + `columns` (`ColumnDef[]`)
|
|
19
|
+
and `paginator`, replacing the old `value`/`totalRecords`/`lazy` children API. Adds cell presets and a
|
|
20
|
+
headless pager.
|
|
21
|
+
- **`@mantis-core/next-core`** ships native PrimeReact 11 theming (`./theme`: `MantisThemeProvider`, presets,
|
|
22
|
+
`buildPreset`, config persistence) and a native toast host (`MantisToaster` / `useMantisToasts`);
|
|
23
|
+
`react-hot-toast` is retired. `MantisCoreBaseProvider` still mounts the PrimeReact 10 provider
|
|
24
|
+
(`primereact/api`) — `primereact` remains a required peer — while `MantisThemeProvider` mounts the
|
|
25
|
+
PrimeReact 11 provider.
|
|
26
|
+
- **`@mantis-core/styles`** removed the dead `select`, `select-button`, `date-picker`, `switch`, and `buttons`
|
|
27
|
+
SCSS partials (component colors now come from the PrimeReact 11 preset).
|
|
28
|
+
- **`@mantis-core/nuqs`** now requires `react ^19` and exports `useDataTableQuery` (headless pagination +
|
|
29
|
+
sorting + filtering with optional URL sync).
|
|
30
|
+
|
|
31
|
+
**Peer dependencies:** `@primereact/ui`, `@primereact/core`, `@primereact/types` `11.0.0-rc.1`,
|
|
32
|
+
`@primeuix/themes` `3.0.0-rc.1`, `@primeicons/react` `8.0.0-rc.1`.
|
|
33
|
+
|
|
34
|
+
**LLM-first docs (consumable from `node_modules`):** every package ships an `llms.txt` (exports `./llms.txt`);
|
|
35
|
+
`@mantis-core/ui` ships `catalog.json` (exports `./catalog.json`) plus per-component docs; `@mantis-core/next-core`
|
|
36
|
+
ships `docs/setup.md`. A CI gate (`check:doc-examples`) type-checks every documentation example against source.
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- Updated dependencies [4fbdfb2]
|
|
41
|
+
- @mantis-core/utils@0.5.1
|
|
42
|
+
|
|
43
|
+
## 0.5.0
|
|
44
|
+
|
|
45
|
+
### Minor Changes
|
|
46
|
+
|
|
47
|
+
- 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).
|
|
48
|
+
|
|
49
|
+
- The package now ships `llms.txt` (LLM entry-point) and a complete per-component doc set so documentation is visible at install time.
|
|
50
|
+
- 9 components that were documented in prose but absent from the catalog are now first-class catalog entries.
|
|
51
|
+
- Removed the dead `PRIMEREACT_MAPPING.md` redirect stub.
|
|
52
|
+
|
|
53
|
+
## 0.4.0
|
|
54
|
+
|
|
55
|
+
### Minor Changes
|
|
56
|
+
|
|
57
|
+
- b3beda0: Add reusable Auth UI components: PasswordInput, LoginForm, ForgotPasswordForm, ResetPasswordForm, ChangePasswordForm, UserMenu
|
|
58
|
+
- 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.
|
|
59
|
+
- 9ea7de9: Add P1 UI coverage (no new dependencies; PrimeReact/lucide-react wrappers, all extensible per the contribution contract):
|
|
60
|
+
|
|
61
|
+
- Feedback: `EmptyState`, `ErrorBoundary`, `TableSkeleton`, `CardSkeleton`, `Avatar`, `Tag`.
|
|
62
|
+
- Overlays: `Drawer` (Sidebar), `Modal` (Dialog).
|
|
63
|
+
- Form inputs: `Combobox`, `TagsInput`, `OtpInput`, `ColorPickerInput`, `RatingInput`, `DatePresets`.
|
|
64
|
+
- Navigation: `PageTabs`, `CommandPalette` (+ `useCommandPalette` hook).
|
|
65
|
+
- Data display: `StatCard`, `Timeline`, `DescriptionList`.
|
|
66
|
+
- `AppShell` gains optional `collapsible` / `defaultCollapsed` (backward-compatible collapsible sidebar).
|
|
67
|
+
|
|
68
|
+
- 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`.
|
|
69
|
+
|
|
70
|
+
### Patch Changes
|
|
71
|
+
|
|
72
|
+
- Updated dependencies [3a759d1]
|
|
73
|
+
- @mantis-core/utils@0.5.0
|
|
74
|
+
|
|
75
|
+
## 0.3.0
|
|
76
|
+
|
|
77
|
+
### Minor Changes
|
|
78
|
+
|
|
79
|
+
- 8a85ace: Add reusable layout + form inputs (no new dependencies — all on existing PrimeReact peers):
|
|
80
|
+
|
|
81
|
+
- Layout: `AppShell` (config-driven sidebar + topbar + mobile drawer) and a standalone `Breadcrumbs` component under `components/pages/app-shell`. `AdminPageHeader` now reuses `Breadcrumbs` (single source).
|
|
82
|
+
- Form inputs (Controller pattern): `RadioGroup`, `SearchInput` (debounced, optional controller), `DateRangeInput`, `RangeSlider`, `PhoneInput`, `CurrencyInput`.
|
|
83
|
+
- Multi-step forms: `FormWizard` (PrimeReact `Steps` + react-hook-form, per-step validation; composes inside an existing `FormProvider`).
|
|
84
|
+
|
|
85
|
+
All importable by path, e.g. `@mantis-core/ui/components/Forms/CurrencyInput`, `@mantis-core/ui/components/pages/app-shell/AppShell`.
|
|
86
|
+
|
|
87
|
+
## 0.2.0
|
|
88
|
+
|
|
89
|
+
### Minor Changes
|
|
90
|
+
|
|
91
|
+
- 83d6e71: Harden package publishing and quality gates across the monorepo.
|
|
92
|
+
|
|
93
|
+
- add `prepack` and `prepublishOnly` scripts to guarantee build artifacts before publish
|
|
94
|
+
- add package metadata (`license`, `engines`, and `sideEffects` for TS packages)
|
|
95
|
+
- add package test coverage with Vitest and include tests in release checks
|
|
96
|
+
- add tarball content validation script to ensure npm packages include expected build outputs
|
|
97
|
+
- decouple `@mantis-core/ui` from `@mantis-core/supabase-core` by consuming pagination helper from `@mantis-core/utils`
|
|
98
|
+
- expose `getPaginationRange` from `@mantis-core/utils`
|
|
99
|
+
- add reusable `StatusBadge`, `DataState`, and `ConfirmDialog` components to `@mantis-core/ui`
|
|
100
|
+
- add form primitives in `@mantis-core/ui`: `AsyncSelect`, `FormActionsBar`, `DirtyFormGuard`, and `FileDropzone`
|
|
101
|
+
|
|
102
|
+
### Patch Changes
|
|
103
|
+
|
|
104
|
+
- Updated dependencies [83d6e71]
|
|
105
|
+
- @mantis-core/utils@0.4.0
|
|
106
|
+
|
|
107
|
+
## 0.1.3
|
|
108
|
+
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- 83d6e71: Harden package publishing and quality gates across the monorepo.
|
|
112
|
+
|
|
113
|
+
- add `prepack` and `prepublishOnly` scripts to guarantee build artifacts before publish
|
|
114
|
+
- add package metadata (`license`, `engines`, and `sideEffects` for TS packages)
|
|
115
|
+
- add package test coverage with Vitest and include tests in release checks
|
|
116
|
+
- add tarball content validation script to ensure npm packages include expected build outputs
|
|
117
|
+
- decouple `@mantis-core/ui` from `@mantis-core/supabase-core` by consuming pagination helper from `@mantis-core/utils`
|
|
118
|
+
- expose `getPaginationRange` from `@mantis-core/utils`
|
|
119
|
+
|
|
120
|
+
- Updated dependencies [83d6e71]
|
|
121
|
+
- @mantis-core/utils@0.3.0
|
|
122
|
+
|
|
123
|
+
## 0.1.2
|
|
124
|
+
|
|
125
|
+
### Patch Changes
|
|
126
|
+
|
|
127
|
+
- Updated dependencies [05ef1e4]
|
|
128
|
+
- @mantis-core/utils@0.2.0
|
|
129
|
+
|
|
130
|
+
## 0.1.1
|
|
131
|
+
|
|
132
|
+
### Patch Changes
|
|
133
|
+
|
|
134
|
+
- chore: prepare @mantis-core packages for npm release
|
|
135
|
+
|
|
136
|
+
- add npm metadata (`repository`, `bugs`, `homepage`, `keywords`) in all packages
|
|
137
|
+
- add `prepack` build script in all packages
|
|
138
|
+
- include `COMPONENTS.md` in `@mantis-core/ui` published files
|
|
139
|
+
- enforce `npm pack --dry-run` in release quality gates
|
|
140
|
+
- enable npm provenance in release workflow
|
|
141
|
+
|
|
142
|
+
- Updated dependencies
|
|
143
|
+
- @mantis-core/supabase-core@0.1.1
|
|
144
|
+
- @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
|
-
- [
|
|
10
|
-
- [
|
|
11
|
-
- [
|
|
12
|
-
- [
|
|
13
|
-
- [
|
|
14
|
-
- [
|
|
15
|
-
- [
|
|
16
|
-
- [
|
|
17
|
-
- [
|
|
18
|
-
- [
|
|
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) —
|
|
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
|
|
25
|
-
- [
|
|
26
|
-
- [
|
|
27
|
-
- [OtpInput](./docs/components/otp-input.md) —
|
|
28
|
-
- [PasswordInput](./docs/components/password-input.md) —
|
|
29
|
-
- [PhoneInput](./docs/components/phone-input.md) —
|
|
30
|
-
- [RadioGroup](./docs/components/radio-group.md) —
|
|
31
|
-
- [RangeSlider](./docs/components/range-slider.md) —
|
|
32
|
-
- [RatingInput](./docs/components/rating-input.md) —
|
|
33
|
-
- [RenderField](./docs/components/render-field.md) — Low-level escape hatch
|
|
34
|
-
- [SearchInput](./docs/components/search-input.md) —
|
|
35
|
-
- [
|
|
36
|
-
- [
|
|
37
|
-
- [TagsInput](./docs/components/tags-input.md) —
|
|
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
|
-
- [
|
|
40
|
-
- [
|
|
41
|
-
- [
|
|
42
|
-
- [
|
|
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
|
|
48
|
-
- [FilterPannel](./docs/components/filter-pannel.md) — Slide-in
|
|
49
|
-
- [IndexColumn](./docs/components/index-column.md) —
|
|
50
|
-
- [
|
|
51
|
-
- [
|
|
52
|
-
- [
|
|
53
|
-
- [
|
|
54
|
-
- [
|
|
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
|
|
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
|
|
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
|
|
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) —
|
|
70
|
-
- [MapPickerClient](./docs/components/map-picker-client.md) — Client-only
|
|
71
|
-
- [MapPickerOSM](./docs/components/map-picker-osm.md) — Script-injected Leaflet map (no SSR bundle cost) with
|
|
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) —
|
|
76
|
-
- [Modal](./docs/components/modal.md) —
|
|
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) —
|
|
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
|
|
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
|
|
92
|
-
- [CardSkeleton](./docs/components/card-skeleton.md) — Animated skeleton for card
|
|
93
|
-
- [ConfirmDialog](./docs/components/confirm-dialog.md) —
|
|
94
|
-
- [DataState](./docs/components/data-state.md) —
|
|
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
|
|
97
|
-
- [Loading](./docs/components/loading.md) — Full-screen loading overlay with
|
|
98
|
-
- [Pagination](./docs/components/pagination.md) — Standalone
|
|
99
|
-
- [RichTextPreview](./docs/components/rich-text-preview.md) — Safely renders a CKEditor HTML string with
|
|
100
|
-
- [StatusBadge](./docs/components/status-badge.md) — Colored pill badge to communicate a status
|
|
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
|
|
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
|
|
107
|
-
- [ForgotPasswordForm](./docs/components/forgot-password-form.md) — Email-only form to trigger password
|
|
108
|
-
- [LoginForm](./docs/components/login-form.md) — Self-contained login form
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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, `
|
|
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,
|
|
43
|
+
import { PaginatedTable, TableToolbar, TextField } from "@mantis-core/ui";
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
Supported subpaths:
|
|
@@ -73,7 +73,14 @@ Example:
|
|
|
73
73
|
|
|
74
74
|
- [docs/README.md](./docs/README.md): package documentation index
|
|
75
75
|
- [COMPONENTS.md](./COMPONENTS.md): lightweight component index
|
|
76
|
-
- [
|
|
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
|
+
`docs/` (per-component docs + contracts) as published files. A consuming app's LLM can read them
|
|
82
|
+
straight from `node_modules/@mantis-core/ui/` — see the "LLM discovery" section in the repo root
|
|
83
|
+
`docs/GETTING_STARTED.md` for the paste-ready pointer block.
|
|
77
84
|
|
|
78
85
|
## Public API Summary
|
|
79
86
|
|
|
@@ -81,7 +88,7 @@ Main export groups:
|
|
|
81
88
|
|
|
82
89
|
- Buttons: `Button`
|
|
83
90
|
- Loaders: `Loading`
|
|
84
|
-
- Forms: `
|
|
91
|
+
- 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
92
|
- Form helpers: `RenderField`, `FormFieldRender`, `FormActionsBar`, `DirtyFormGuard`, `useDirtyFormGuard`, `ErrorMessage`, `HiddenField`
|
|
86
93
|
- Tables: `PaginatedTable`, `TableToolbar`, `TableFilterField`, `ActionColumn`, `MenuButton`, `IndexColumn`, `FilterPannel`, `MultiSelectFilter`
|
|
87
94
|
- Page layout: `AdminPageConfigurator`, `AdminPageLayoutProvider`, `useAdminPageLayout`, `AdminPageLayoutShell`, `AdminPageHeader`, `FormSection`, `PageTitle`
|
|
@@ -93,7 +100,7 @@ Main export groups:
|
|
|
93
100
|
1. Keep new exports domain-agnostic.
|
|
94
101
|
2. Keep the public API anchored in `src/index.ts`.
|
|
95
102
|
3. Document new exports in `COMPONENTS.md`.
|
|
96
|
-
4.
|
|
103
|
+
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
104
|
5. Preserve the `mantis-core-*` style contract where shared styles are intended.
|
|
98
105
|
|
|
99
106
|
## Local Validation
|