-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TreeView] Create RichTreeViewPro
component
#12610
[TreeView] Create RichTreeViewPro
component
#12610
Conversation
RichTreeViewPro
component
Deploy preview: https://deploy-preview-12610--material-ui-x.netlify.app/ |
1577465
to
87ba21c
Compare
@@ -36,6 +36,7 @@ export const SimpleTreeViewRoot = styled('ul', { | |||
margin: 0, | |||
listStyle: 'none', | |||
outline: 0, | |||
position: 'relative', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need this for the RichTreeViewPro
otherwise the watermark is placed outside of the component.
I added it to RichTreeView
and SimpleTreeView
as well for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. 👍
The only thing to consider is the themeAugmentation
. 😉
packages/x-tree-view-pro/src/RichTreeViewPro/RichTreeViewPro.tsx
Outdated
Show resolved
Hide resolved
packages/x-tree-view-pro/src/RichTreeViewPro/RichTreeViewPro.types.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you considered adding this project to the createXTypeScriptProjects
list to track the exports
evolution? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would add the interfaces to the doc
We could add a "private" option (or check the package.json
) to only generate the exports
file, I do agree it would be useful.
I forgot to add it 😬 EDIT: Done |
Co-authored-by: Lukas <llukas.tyla@gmail.com> Signed-off-by: Flavien DELANGLE <flaviendelangle@gmail.com>
…ypes.ts Co-authored-by: Lukas <llukas.tyla@gmail.com> Signed-off-by: Flavien DELANGLE <flaviendelangle@gmail.com>
…ate-RichTreeViewPro
@@ -0,0 +1 @@ | |||
// Prefer to use `import type {} from '@mui/x-tree-view/themeAugmentation';` instead to avoid importing an empty file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick:
- @mui/x-tree-view/themeAugmentation
+ @mui/x-tree-view-pro/themeAugmentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Flavien DELANGLE <flaviendelangle@gmail.com> Co-authored-by: Lukas <llukas.tyla@gmail.com>
Signed-off-by: Flavien DELANGLE <flaviendelangle@gmail.com> Co-authored-by: Lukas <llukas.tyla@gmail.com>
Follow up on #12240