Commit 23b0f1b
feat(ui): export drag-and-drop components (#12626)
<!--
Thank you for the PR! Please go through the checklist below and make
sure you've completed all the steps.
Please review the
[CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md)
document in this repository if you haven't already.
The following items will ensure that your PR is handled as smoothly as
possible:
- PR Title must follow conventional commits format. For example, `feat:
my new feature`, `fix(plugin-seo): my fix`.
- Minimal description explained as if explained to someone not
immediately familiar with the code.
- Provide before/after screenshots or code diffs if applicable.
- Link any related issues/discussions from GitHub or Discord.
- Add review comments if necessary to explain to the reviewer the logic
behind a change
### What?
### Why?
### How?
Fixes #
-->
### What?
This PR exports the internal drag-and-drop components from `ui`.
### Why?
To allow end-users and plugin authors the capability of creating
drag-and-drop experiences within the admin ui by leveraging the existing
dnd components used by Payload.
### How?
Adds `DraggableSortable`, `DraggableSortableItem`, and
`useDraggableSortable` to the exports in the `ui` package.
---------
Co-authored-by: Paul Popus <paul@payloadcms.com>1 parent 2011f28 commit 23b0f1b
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
0 commit comments