-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: replace DragAndDropTree with StudioDragAndDropTree (#14062)
- Loading branch information
Showing
46 changed files
with
107 additions
and
551 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
.../studio-components/src/components/StudioDragAndDropTree/StudioDragAndDropTree.stories.tsx
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,29 @@ | ||
import React, { type ReactNode } from 'react'; | ||
import type { Meta, StoryFn } from '@storybook/react'; | ||
import { StudioDragAndDropTree } from './index'; | ||
|
||
type Story = StoryFn<typeof StudioDragAndDropTree>; | ||
|
||
export const Preview: Story = (): React.ReactElement => ( | ||
<StudioDragAndDropTree.Provider onAdd={() => {}} onMove={() => {}} rootId='1'> | ||
<StudioDragAndDropTree.Root> | ||
<StudioDragAndDropTree.Item | ||
emptyMessage='Preview is not available in Storybook.' | ||
expandable={true} | ||
label='Label' | ||
labelWrapper={(children: ReactNode) => <div>{children}</div>} | ||
nodeId='Id' | ||
/> | ||
</StudioDragAndDropTree.Root> | ||
</StudioDragAndDropTree.Provider> | ||
); | ||
|
||
const meta: Meta = { | ||
title: 'Components/StudioDragAndDropTree', | ||
component: Preview, | ||
argTypes: {}, | ||
}; | ||
|
||
Preview.args = {}; | ||
|
||
export default meta; |
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
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
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
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
123 changes: 0 additions & 123 deletions
123
frontend/packages/shared/src/components/DragAndDropTree/DragAndDropTree.test.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.