Add conditional DnD support (#5641)
* Add conditional DnD support to Table component
* fix: Correct the logic for disabling drag and drop
* refactor
* fix: Custom hooks order with React rules of hooks
* fix: function naming
* fix: Check for the existence of dragAndDropHooks
* fix: lint
* fix: format
* Refactor drag disablement logic in draggable item and collection state hooks
* modified the condition of disabled flag
* Add test for DraggableTable with selection
* Add isDisabled prop support to useDroppableCollectionState
* Refactor draggable list naming for clarity
* fix lint
* fix lint
* Revert "Refactor draggable list naming for clarity"
This reverts commit 9433c63630b900651cb8aa0bba72b033373bffe6
* Refactor draggable list naming for clarity
* Update packages/react-aria-components/src/Table.tsx
Co-authored-by: Daniel Lu <danilu@adobe.com>
* Clean up isDisabled prop handling
* fix lint
---------
Co-authored-by: Daniel Lu <danilu@adobe.com>
Co-authored-by: Daniel Lu <dl1644@gmail.com>
Co-authored-by: Reid Barber <reid@reidbarber.com>
Co-authored-by: Robert Snow <rsnow@adobe.com>