diff --git a/buildSrc/src/main/kotlin/karakum/mui/Adapter.kt b/buildSrc/src/main/kotlin/karakum/mui/Adapter.kt index a1974b392..a16ae04ea 100644 --- a/buildSrc/src/main/kotlin/karakum/mui/Adapter.kt +++ b/buildSrc/src/main/kotlin/karakum/mui/Adapter.kt @@ -1,6 +1,9 @@ package karakum.mui import karakum.mui.adapters.* +import karakum.mui.adapters.treeview.adaptRichTreeView +import karakum.mui.adapters.treeview.adaptTreeItem +import karakum.mui.adapters.treeview.adaptTreeView fun String.adaptRawContent(): String = this .adaptComponentsAndSlots() @@ -16,3 +19,6 @@ fun String.adaptRawContent(): String = this .adaptBreadcrumbs() .adaptUseMenu() .adaptUseSlider() + .adaptRichTreeView() + .adaptTreeItem() + .adaptTreeView() diff --git a/buildSrc/src/main/kotlin/karakum/mui/Converter.kt b/buildSrc/src/main/kotlin/karakum/mui/Converter.kt index 9ecd262d3..83790fb0e 100644 --- a/buildSrc/src/main/kotlin/karakum/mui/Converter.kt +++ b/buildSrc/src/main/kotlin/karakum/mui/Converter.kt @@ -241,7 +241,11 @@ private fun findProps( ?.substringBefore(";\n}") ?: "" - val body = convertMembers(membersContent) + val body = if (source.startsWith("}")) + "" + else + convertMembers(membersContent) + return props( propsName = propsDeclaration, parentType = parentType, @@ -501,8 +505,8 @@ private fun findAdditionalProps( } when (interfaceName) { - "TreeViewPropsBase", - -> propsBody = propsBody.replace("var id:", "override var id:") + "RichTreeViewPropsBase", + -> propsBody = propsBody.replace("override var sx:", "var sx:") "CommonColors", "PaletteColor", @@ -664,7 +668,10 @@ private fun props( baseInterfaces += "PaperProps" if (propsName == "TreeViewProps") - baseInterfaces += "TreeViewPropsBase" + baseInterfaces += "SimpleTreeViewProps" + + if (propsName == "RichTreeViewProps") + baseInterfaces += "RichTreeViewPropsBase" if ( // TODO: Commented props has conflicts by intrinsic types diff --git a/buildSrc/src/main/kotlin/karakum/mui/Generator.kt b/buildSrc/src/main/kotlin/karakum/mui/Generator.kt index d77e09d3f..fc019e5b1 100644 --- a/buildSrc/src/main/kotlin/karakum/mui/Generator.kt +++ b/buildSrc/src/main/kotlin/karakum/mui/Generator.kt @@ -515,6 +515,7 @@ private fun generateTreeViewDeclarations( directories.asSequence() .filter { it.name.isComponentName() || it.name.isHookName() } .filter { !it.resolve("${it.name}.d.ts").readText().startsWith("export { default } from ") } + .filter { it.name !in setOf("TreeItem2", "TreeItem2Icon", "TreeItem2Provider", "useTreeItem2") } .onEach { when (it.name) { "TreeItem" -> { @@ -525,7 +526,7 @@ private fun generateTreeViewDeclarations( generate(typesFile, targetDir, Package.treeView) } - "TreeView" -> { + "TreeView", "SimpleTreeView", "RichTreeView" -> { val typesFile = it.resolve("${it.name}.types.d.ts") generate(typesFile, targetDir, Package.treeView) } diff --git a/buildSrc/src/main/kotlin/karakum/mui/KotlinType.kt b/buildSrc/src/main/kotlin/karakum/mui/KotlinType.kt index 7018957f7..bec6d7ea5 100644 --- a/buildSrc/src/main/kotlin/karakum/mui/KotlinType.kt +++ b/buildSrc/src/main/kotlin/karakum/mui/KotlinType.kt @@ -96,6 +96,10 @@ private val KNOWN_TYPE_SUFFIXES = setOf( it.capitalize() } +private val KNOWN_TYPE_PREFIX_MAP = mapOf( + "SlotComponentProps" to "react.Props", +) + private val STANDARD_TYPE_MAP = mapOf( "any" to "Any", "object" to "Any", @@ -173,6 +177,9 @@ private val STANDARD_TYPE_MAP = mapOf( "React.Ref" to "react.Ref<*>", "React.Ref" to "react.Ref<*>", + "SimpleTreeViewApiRef" to "react.Ref<*>", + "RichTreeViewApiRef" to "react.Ref<*>", + "React.AriaRole" to "react.dom.aria.AriaRole", "PaletteMode" to "mui.material.PaletteMode", @@ -345,6 +352,10 @@ internal fun kotlinType( if (KNOWN_TYPE_SUFFIXES.any { type.endsWith(it) } && " | " !in type && type != "Color") return type + val prefixToType = KNOWN_TYPE_PREFIX_MAP.filter { (prefix) -> type.startsWith(prefix) } + if (prefixToType.isNotEmpty()) + return prefixToType.values.single() + val promiseResult = type.removeSurrounding("Promise<", ">") if (promiseResult != type) return "$PROMISE<${kotlinType(promiseResult)}>" @@ -476,7 +487,7 @@ internal fun kotlinType( } } - if (name != null && name.endsWith("Props") && name != "componentsProps" && name != "slotProps") { + if (name != null && name.endsWith("Props") && name != "componentsProps") { val comment = type.split("\n") .map { it.trim() } .joinToString(" ") diff --git a/buildSrc/src/main/kotlin/karakum/mui/ParentType.kt b/buildSrc/src/main/kotlin/karakum/mui/ParentType.kt index fe7981ccb..425dcc98a 100644 --- a/buildSrc/src/main/kotlin/karakum/mui/ParentType.kt +++ b/buildSrc/src/main/kotlin/karakum/mui/ParentType.kt @@ -60,7 +60,7 @@ internal fun findParentType( "ListItemButtonBaseProps", "BaseTextFieldProps", "ListProps", - "TreeViewPropsBase", + "RichTreeViewPropsBase", "UseInputProps", "UseSwitchProps", "UsePaginationItem", diff --git a/buildSrc/src/main/kotlin/karakum/mui/adapters/treeview/RichTreeView.kt b/buildSrc/src/main/kotlin/karakum/mui/adapters/treeview/RichTreeView.kt new file mode 100644 index 000000000..cf6831b26 --- /dev/null +++ b/buildSrc/src/main/kotlin/karakum/mui/adapters/treeview/RichTreeView.kt @@ -0,0 +1,11 @@ +package karakum.mui.adapters.treeview + +fun String.adaptRichTreeView(): String = this + .replace( + oldValue = " | React.JSXElementConstructor", + newValue = "", + ) + .replace( + oldValue = ": RichTreeViewSlotProps", + newValue = ": RichTreeViewSlotProps", + ) diff --git a/buildSrc/src/main/kotlin/karakum/mui/adapters/treeview/TreeItem.kt b/buildSrc/src/main/kotlin/karakum/mui/adapters/treeview/TreeItem.kt new file mode 100644 index 000000000..812a71fbf --- /dev/null +++ b/buildSrc/src/main/kotlin/karakum/mui/adapters/treeview/TreeItem.kt @@ -0,0 +1,7 @@ +package karakum.mui.adapters.treeview + +fun String.adaptTreeItem(): String = this + .replace( + oldValue = "TreeViewItemId", + newValue = "string", + ) diff --git a/buildSrc/src/main/kotlin/karakum/mui/adapters/treeview/TreeView.kt b/buildSrc/src/main/kotlin/karakum/mui/adapters/treeview/TreeView.kt new file mode 100644 index 000000000..0f2ee1306 --- /dev/null +++ b/buildSrc/src/main/kotlin/karakum/mui/adapters/treeview/TreeView.kt @@ -0,0 +1,16 @@ +package karakum.mui.adapters.treeview + +fun String.adaptTreeView(): String = this + .replace( + oldValue = """export interface TreeViewProps extends SimpleTreeViewProps { +} +export interface TreeViewSlots extends SimpleTreeViewSlots { +} +export interface TreeViewSlotProps extends SimpleTreeViewSlotProps { +} +export type SingleSelectTreeViewProps = SimpleTreeViewProps; +export type MultiSelectTreeViewProps = SimpleTreeViewProps; +""", + newValue = """export interface TreeViewProps extends SimpleTreeViewProps { +}""", + ) diff --git a/gradle.properties b/gradle.properties index e38a9c892..d66e34497 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,7 +10,7 @@ mui-base.version=5.0.0-beta.45 mui-system.version=5.15.15 mui-lab.version=5.0.0-alpha.170 mui-x-date-pickers.version=5.0.20 -mui-x-tree-view.version=6.17.0 +mui-x-tree-view.version=7.0.0 # Flags org.gradle.jvmargs=-Xms2g -Xmx4g org.gradle.parallel=true diff --git a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/RichTreeView.classes.kt b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/RichTreeView.classes.kt new file mode 100644 index 000000000..34f05d420 --- /dev/null +++ b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/RichTreeView.classes.kt @@ -0,0 +1,14 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-tree-view/RichTreeView") + +package muix.tree.view + +import web.cssom.ClassName + +sealed external interface RichTreeViewClasses { + /** Styles applied to the root element. */ + val root: ClassName +} + +external val richTreeViewClasses: RichTreeViewClasses diff --git a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/RichTreeView.kt b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/RichTreeView.kt new file mode 100644 index 000000000..f4b55a44e --- /dev/null +++ b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/RichTreeView.kt @@ -0,0 +1,17 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-tree-view/RichTreeView") + +package muix.tree.view + +/** + * + * Demos: + * + * - [Tree View](https://mui.com/x/react-tree-view/) + * + * API: + * + * - [RichTreeView API](https://mui.com/x/api/tree-view/rich-tree-view/) + */ +external val RichTreeView: react.FC diff --git a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/RichTreeView.types.kt b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/RichTreeView.types.kt new file mode 100644 index 000000000..69a158271 --- /dev/null +++ b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/RichTreeView.types.kt @@ -0,0 +1,60 @@ +// Automatically generated - do not modify! + +package muix.tree.view + +import mui.material.styles.Theme +import mui.system.SxProps +import web.cssom.ClassName + +external interface RichTreeViewProps : RichTreeViewPropsBase { + /** + * Overridable component slots. + * @default {} + */ + var slots: RichTreeViewSlots? + + /** + * The props used for each component slot. + * @default {} + */ + var slotProps: RichTreeViewSlotProps? + + /** + * The ref object that allows Tree View manipulation. Can be instantiated with `useTreeViewApiRef()`. + */ + var apiRef: react.Ref<*>? +} + +external interface RichTreeViewSlots { + /** + * Element rendered at the root. + * @default RichTreeViewRoot + */ + var root: react.ElementType<*>? + + /** + * Custom component for the item. + * @default TreeItem. + */ + var item: react.ComponentType? +} + +external interface RichTreeViewSlotProps : react.Props { + var root: react.Props? + + var item: react.Props? +} + +external interface RichTreeViewPropsBase : react.dom.html.HTMLAttributes { + override var className: ClassName? + + /** + * Override or extend the styles applied to the component. + */ + var classes: RichTreeViewClasses? + + /** + * The system prop that allows defining system overrides as well as additional CSS styles. + */ + var sx: SxProps? +} diff --git a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/SimpleTreeView.classes.kt b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/SimpleTreeView.classes.kt new file mode 100644 index 000000000..fd0067dbd --- /dev/null +++ b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/SimpleTreeView.classes.kt @@ -0,0 +1,14 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-tree-view/SimpleTreeView") + +package muix.tree.view + +import web.cssom.ClassName + +sealed external interface SimpleTreeViewClasses { + /** Styles applied to the root element. */ + val root: ClassName +} + +external val simpleTreeViewClasses: SimpleTreeViewClasses diff --git a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/SimpleTreeView.kt b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/SimpleTreeView.kt new file mode 100644 index 000000000..26ee731b8 --- /dev/null +++ b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/SimpleTreeView.kt @@ -0,0 +1,17 @@ +// Automatically generated - do not modify! + +@file:JsModule("@mui/x-tree-view/SimpleTreeView") + +package muix.tree.view + +/** + * + * Demos: + * + * - [Tree View](https://mui.com/x/react-tree-view/) + * + * API: + * + * - [SimpleTreeView API](https://mui.com/x/api/tree-view/simple-tree-view/) + */ +external val SimpleTreeView: react.FC diff --git a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/SimpleTreeView.types.kt b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/SimpleTreeView.types.kt new file mode 100644 index 000000000..3a9950b98 --- /dev/null +++ b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/SimpleTreeView.types.kt @@ -0,0 +1,56 @@ +// Automatically generated - do not modify! + +package muix.tree.view + +import mui.material.styles.Theme +import mui.system.SxProps +import web.cssom.ClassName + +external interface SimpleTreeViewProps : + react.PropsWithChildren, + react.PropsWithClassName, + mui.system.PropsWithSx { + /** + * The content of the component. + */ + override var children: react.ReactNode? + + /** + * Overridable component slots. + */ + var slots: SimpleTreeViewSlots? + + /** + * The props used for each component slot. + */ + var slotProps: SimpleTreeViewSlotProps? + + override var className: ClassName? + + /** + * Override or extend the styles applied to the component. + */ + var classes: SimpleTreeViewClasses? + + /** + * The system prop that allows defining system overrides as well as additional CSS styles. + */ + override var sx: SxProps? + + /** + * The ref object that allows Tree View manipulation. Can be instantiated with `useTreeViewApiRef()`. + */ + var apiRef: react.Ref<*>? +} + +external interface SimpleTreeViewSlots { + /** + * Element rendered at the root. + * @default SimpleTreeViewRoot + */ + var root: react.ElementType<*>? +} + +external interface SimpleTreeViewSlotProps : react.Props { + var root: react.Props? +} diff --git a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeItem.classes.kt b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeItem.classes.kt index 51d61e95a..1d368200b 100644 --- a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeItem.classes.kt +++ b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeItem.classes.kt @@ -11,7 +11,7 @@ sealed external interface TreeItemClasses { val root: ClassName /** Styles applied to the transition component. */ - val group: ClassName + val groupTransition: ClassName /** Styles applied to the content element. */ val content: ClassName diff --git a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeItem.types.kt b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeItem.types.kt index 072ecad46..91ef33948 100644 --- a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeItem.types.kt +++ b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeItem.types.kt @@ -5,7 +5,6 @@ package muix.tree.view import mui.material.styles.Theme import mui.system.SxProps import web.cssom.ClassName -import web.html.HTMLElement external interface TreeItemProps : react.dom.html.HTMLAttributes, @@ -17,9 +16,6 @@ external interface TreeItemProps : */ override var children: react.ReactNode? - /** - * className applied to the root element. - */ override var className: ClassName? /** @@ -28,12 +24,19 @@ external interface TreeItemProps : var classes: TreeItemClasses? /** - * The icon used to collapse the node. + * Overridable component slots. + * @default {} + */ + var slots: TreeItemSlots? + + /** + * The props used for each component slot. + * @default {} */ - var collapseIcon: react.ReactNode? + var slotProps: TreeItemSlotProps? /** - * The component used for the content node. + * The component used to render the content of the item. * @default TreeItemContent */ var ContentComponent: react.ComponentType? @@ -41,63 +44,75 @@ external interface TreeItemProps : /** * Props applied to ContentComponent. */ - var ContentProps: react.dom.html.HTMLAttributes? + var ContentProps: react.Props? /* React.HTMLAttributes & { ref?: React.Ref; } */ /** - * If `true`, the node is disabled. + * If `true`, the item is disabled. * @default false */ var disabled: Boolean? /** - * The icon displayed next to an end node. + * This prop isn't supported. + * Use the `onItemFocus` callback on the tree if you need to monitor a item's focus. */ - var endIcon: react.ReactNode? + @Deprecated("See documentation") + override var onFocus: react.dom.events.FocusEventHandler? /** - * The icon used to expand the node. + * The tree item label. */ - var expandIcon: react.ReactNode? + var label: react.ReactNode? /** - * The icon to display next to the tree node's label. + * The id of the item. */ - var icon: react.ReactNode? + var itemId: String /** - * This prop isn't supported. - * Use the `onNodeFocus` callback on the tree if you need to monitor a node's focus. + * The system prop that allows defining system overrides as well as additional CSS styles. */ - @Deprecated("See documentation") - override var onFocus: react.dom.events.FocusEventHandler? + override var sx: SxProps? +} +external interface TreeItemSlots { /** - * The tree node label. + * The icon used to collapse the item. */ - var label: react.ReactNode? + var collapseIcon: react.ElementType<*>? /** - * The id of the node. + * The icon used to expand the item. */ - var nodeId: String + var expandIcon: react.ElementType<*>? /** - * The component used for the transition. - * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component. - * @default Collapse + * The icon displayed next to an end item. */ - var TransitionComponent: react.ComponentType? + var endIcon: react.ElementType<*>? /** - * Props applied to the transition element. - * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component. + * The icon to display next to the tree item's label. */ - var TransitionProps: mui.material.transitions.TransitionProps? + var icon: react.ElementType<*>? /** - * The system prop that allows defining system overrides as well as additional CSS styles. + * The component that animates to appearance / disappearance of the item's children. + * @default TreeItem2Group */ - override var sx: SxProps? + var groupTransition: react.ElementType<*>? +} + +external interface TreeItemSlotProps : react.Props { + var collapseIcon: react.Props? + + var expandIcon: react.Props? + + var endIcon: react.Props? + + var icon: react.Props? + + var groupTransition: react.Props? } external interface TreeItemOwnerState { diff --git a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeItemContent.kt b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeItemContent.kt index 22dfc2ce3..8569cd5b6 100644 --- a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeItemContent.kt +++ b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeItemContent.kt @@ -10,9 +10,6 @@ import web.html.HTMLElement external interface TreeItemContentProps : react.dom.html.HTMLAttributes, react.PropsWithClassName { - /** - * className applied to the root element. - */ override var className: ClassName? /** @@ -21,27 +18,27 @@ external interface TreeItemContentProps : var classes: dynamic /** - * The tree node label. + * The tree item label. */ var label: react.ReactNode? /** - * The id of the node. + * The id of the item. */ - var nodeId: String + var itemId: String /** - * The icon to display next to the tree node's label. + * The icon to display next to the tree item's label. */ var icon: react.ReactNode? /** - * The icon to display next to the tree node's label. Either an expansion or collapse icon. + * The icon to display next to the tree item's label. Either an expansion or collapse icon. */ var expansionIcon: react.ReactNode? /** - * The icon to display next to the tree node's label. Either a parent or end icon. + * The icon to display next to the tree item's label. Either a parent or end icon. */ var displayIcon: react.ReactNode? } diff --git a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeView.kt b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeView.kt index 16ec172d7..95abe0a34 100644 --- a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeView.kt +++ b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeView.kt @@ -5,6 +5,8 @@ package muix.tree.view /** + * This component has been deprecated in favor of the new `SimpleTreeView` component. + * You can have a look at how to migrate to the new component in the v7 [migration guide](https://mui.com/x/migration/migration-tree-view-v6/#use-simpletreeview-instead-of-treeview) * * Demos: * @@ -13,5 +15,7 @@ package muix.tree.view * API: * * - [TreeView API](https://mui.com/x/api/tree-view/tree-view/) + * + * @deprecated */ external val TreeView: react.FC diff --git a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeView.types.kt b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeView.types.kt index 5c84f3f23..918155f70 100644 --- a/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeView.types.kt +++ b/mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeView.types.kt @@ -2,34 +2,4 @@ package muix.tree.view -import mui.material.styles.Theme -import mui.system.SxProps -import web.cssom.ClassName - -external interface TreeViewProps : TreeViewPropsBase - -external interface TreeViewPropsBase : - react.dom.html.HTMLAttributes, - react.PropsWithChildren, - react.PropsWithClassName, - mui.system.PropsWithSx { - /** - * The content of the component. - */ - override var children: react.ReactNode? - - /** - * className applied to the root element. - */ - override var className: ClassName? - - /** - * Override or extend the styles applied to the component. - */ - var classes: TreeViewClasses? - - /** - * The system prop that allows defining system overrides as well as additional CSS styles. - */ - override var sx: SxProps? -} +external interface TreeViewProps : SimpleTreeViewProps diff --git a/package-lock.json b/package-lock.json index 9f369510b..7f8d36727 100644 --- a/package-lock.json +++ b/package-lock.json @@ -969,15 +969,16 @@ } }, "node_modules/@mui/x-tree-view": { - "version": "6.17.0", - "resolved": "https://registry.npmjs.org/@mui/x-tree-view/-/x-tree-view-6.17.0.tgz", - "integrity": "sha512-09dc2D+Rjg2z8KOaxbUXyPi0aw7fm2jurEtV8Xw48xJ00joLWd5QJm1/v4CarEvaiyhTQzHImNqdgeJW8ZQB6g==", - "dependencies": { - "@babel/runtime": "^7.23.2", - "@mui/base": "^5.0.0-beta.20", - "@mui/utils": "^5.14.14", - "@types/react-transition-group": "^4.4.8", - "clsx": "^2.0.0", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@mui/x-tree-view/-/x-tree-view-7.0.0.tgz", + "integrity": "sha512-9nus8fesjBT/V/SzjZKhABG3qvGtupkccoOnz43ebLts8MSYtR8jwnOMArwrVnzrEoaS4F4dv3M8SYVQkHWfaQ==", + "dependencies": { + "@babel/runtime": "^7.24.0", + "@mui/base": "^5.0.0-beta.40", + "@mui/system": "^5.15.14", + "@mui/utils": "^5.15.14", + "@types/react-transition-group": "^4.4.10", + "clsx": "^2.1.0", "prop-types": "^15.8.1", "react-transition-group": "^4.4.5" }, @@ -986,13 +987,12 @@ }, "funding": { "type": "opencollective", - "url": "https://opencollective.com/mui" + "url": "https://opencollective.com/mui-org" }, "peerDependencies": { "@emotion/react": "^11.9.0", "@emotion/styled": "^11.8.1", - "@mui/material": "^5.8.6", - "@mui/system": "^5.8.0", + "@mui/material": "^5.15.14", "react": "^17.0.0 || ^18.0.0", "react-dom": "^17.0.0 || ^18.0.0" } @@ -5319,7 +5319,7 @@ "@mui/material": "5.15.18", "@mui/system": "5.15.15", "@mui/x-date-pickers": "5.0.20", - "@mui/x-tree-view": "6.17.0", + "@mui/x-tree-view": "7.0.0", "@popperjs/core": "^2.11.8", "format-util": "^1.0.5", "react": "^18.3.1", @@ -5340,7 +5340,7 @@ "@mui/material": "5.15.18", "@mui/system": "5.15.15", "@mui/x-date-pickers": "5.0.20", - "@mui/x-tree-view": "6.17.0", + "@mui/x-tree-view": "7.0.0", "@popperjs/core": "^2.11.8", "format-util": "^1.0.5", "react": "^18.3.1",