Skip to content

Commit

Permalink
mui-x-tree-view.version=7.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aerialist7 committed Jun 2, 2024
1 parent 78f2fc0 commit 8ff1674
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 8 deletions.
3 changes: 3 additions & 0 deletions buildSrc/src/main/kotlin/karakum/mui/KotlinType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ internal fun kotlinType(
if (refResult != type)
return "react.Ref<${kotlinType(refResult)}>"

if (type.startsWith("TreeViewExperimentalFeatures<"))
return "Any? /* $type */"

if (type.startsWith("React.ElementType<"))
return type.replace("React.ElementType", ELEMENT_TYPE)
.replace("<TransitionProps>", "<mui.material.transitions.TransitionProps>")
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mui-base.version=5.0.0-beta.47
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=7.5.1
mui-x-tree-view.version=7.6.1
# Flags
org.gradle.jvmargs=-Xms2g -Xmx4g
org.gradle.parallel=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ external interface RichTreeViewProps : RichTreeViewPropsBase {
* The ref object that allows Tree View manipulation. Can be instantiated with `useTreeViewApiRef()`.
*/
var apiRef: react.Ref<*>?

/**
* Unstable features, breaking changes might be introduced.
* For each feature, if the flag is not explicitly set to `true`,
* the feature will be fully disabled and any property / method call will not have any effect.
*/
var experimentalFeatures: Any? /* TreeViewExperimentalFeatures<DefaultTreeViewPlugins> */
}

external interface RichTreeViewSlots {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ external interface SimpleTreeViewProps :
* The ref object that allows Tree View manipulation. Can be instantiated with `useTreeViewApiRef()`.
*/
var apiRef: react.Ref<*>?

/**
* Unstable features, breaking changes might be introduced.
* For each feature, if the flag is not explicitly set to `true`,
* the feature will be fully disabled and any property / method call will not have any effect.
*/
var experimentalFeatures: Any? /* TreeViewExperimentalFeatures<SimpleTreeViewPlugins> */
}

external interface SimpleTreeViewSlots {
Expand Down
2 changes: 2 additions & 0 deletions mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeItem.types.kt
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,6 @@ external interface TreeItemOwnerState {
var selected: Boolean

var disabled: Boolean

var indentationAtItemLevel: Boolean
}
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8ff1674

Please sign in to comment.