forked from keystonejs/keystone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export components from admin-ui and fix Relationship field use of Cre…
…ateItemModel (keystonejs#1880) * export some components for consuming in custom pages provide every field with createItemModal prop which can be used for rendering CreateItemModel by all field (custom fields) fixes keystonejs#1719 * update export format * Update .changeset/big-bugs-kick.md changelevel set to minor instead of patch Co-Authored-By: Jess Telford <[email protected]> * fix case for CreateItemModal prop * chane changeset level * more exports pass List/ListLayout props to ListTable * format changeset
- Loading branch information
1 parent
15e8d58
commit 1a723a5
Showing
8 changed files
with
404 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
'@keystonejs/app-admin-ui': minor | ||
'@keystonejs/fields': minor | ||
--- | ||
|
||
Replaced `RelationShip` field's implementation of `CreateItemModel` with a prop provided by `admin-ui` | ||
|
||
Exported following components from `admin-ui` which can be used outside of `admin-ui` to have same look and feel when working with Lists. One simple use is in custom pages where this can be customized differently than core list pages | ||
|
||
* `List` | ||
* `ListData` | ||
* `ListLayout` | ||
* `ListManage` | ||
* `FieldSelect` | ||
* `Search` | ||
* `ActiveFilters` | ||
* `Pagination` | ||
* `CreateItemModal` | ||
* `DeleteItemModal` | ||
* `DeleteManyItemsModal` | ||
* `ListTable` | ||
* `PageLoading` | ||
* `ToastContainer` | ||
* `UpdateManyItemsModal` | ||
* `Popout` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
export { default as ListData, List, ListLayout } from './client/pages/List/index'; | ||
export { default as ListManage } from './client/pages/List/Management'; | ||
export { default as FieldSelect } from './client/pages/List/FieldSelect'; | ||
export { default as Search } from './client/pages/List/Search'; | ||
export { default as ActiveFilters } from './client/pages/List/Filters/ActiveFilters'; | ||
export { default as Pagination, getPaginationLabel } from './client/pages/List/Pagination'; | ||
export { default as ListTable } from './client/components/ListTable'; | ||
export { default as CreateItemModal } from './client/components/CreateItemModal'; | ||
export { default as DeleteItemModal } from './client/components/DeleteItemModal'; | ||
export { default as DeleteManyItemsModal } from './client/components/DeleteManyItemsModal'; | ||
export { default as PageLoading } from './client/components/PageLoading'; | ||
export { default as ToastContainer } from './client/components/ToastContainer'; | ||
export { default as UpdateManyItemsModal } from './client/components/UpdateManyItemsModal'; | ||
export { Popout } from './client/components/Popout'; | ||
export { useAdminMeta } from './client/providers/AdminMeta'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.