Skip to content

Commit

Permalink
mui-x-tree-view.version=7.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aerialist7 committed Jun 21, 2024
1 parent 4b9bdff commit c59873f
Show file tree
Hide file tree
Showing 7 changed files with 343 additions and 306 deletions.
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/karakum/mui/KotlinType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ private val STANDARD_TYPE_MAP = mapOf(
"React.HTMLAttributes<HTMLDivElement>" to "react.dom.html.HTMLAttributes<web.html.HTMLDivElement>",
"Partial<React.HTMLAttributes<HTMLDivElement>>" to "react.dom.html.HTMLAttributes<web.html.HTMLDivElement>",
"React.HTMLAttributes<HTMLElement>" to "react.dom.html.HTMLAttributes<web.html.HTMLElement>",
"MuiCancellableEventHandler<React.KeyboardEvent<HTMLLIElement>>" to "react.dom.events.KeyboardEventHandler<web.html.HTMLLIElement>",

"NonNullable<React.HTMLAttributes<any>['tabIndex']>" to "Int",
"React.InputHTMLAttributes<unknown>['type']" to "InputType",
Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/karakum/mui/Overrides.kt
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ internal fun fixOverrides(

"TreeItem",
-> content
.override("onKeyDown")
.replace(
"var onFocus: Nothing?",
"@Deprecated(\"See documentation\")\noverride var onFocus: react.dom.events.FocusEventHandler<web.html.HTMLLIElement>?"
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.49
mui-system.version=5.15.20
mui-lab.version=5.0.0-alpha.170
mui-x-date-pickers.version=5.0.20
mui-x-tree-view.version=7.6.2
mui-x-tree-view.version=7.7.0
# Flags
org.gradle.jvmargs=-Xms2g -Xmx4g
org.gradle.parallel=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ external interface RichTreeViewProps : RichTreeViewPropsBase {
* 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> */
var experimentalFeatures: Any? /* TreeViewExperimentalFeatures<RichTreeViewPluginSignatures> */
}

external interface RichTreeViewSlots {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ external interface SimpleTreeViewProps :
* 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> */
var experimentalFeatures: Any? /* TreeViewExperimentalFeatures<SimpleTreeViewPluginSignatures> */
}

external interface SimpleTreeViewSlots {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ external interface TreeItemProps :
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
override var sx: SxProps<Theme>?

/**
* Callback fired when a key of the keyboard is pressed on the item.
*/
override var onKeyDown: react.dom.events.KeyboardEventHandler<web.html.HTMLLIElement>?
}

external interface TreeItemSlots {
Expand All @@ -97,7 +102,7 @@ external interface TreeItemSlots {
var icon: react.ElementType<*>?

/**
* The component that animates to appearance / disappearance of the item's children.
* The component that animates the appearance / disappearance of the item's children.
* @default TreeItem2Group
*/
var groupTransition: react.ElementType<*>?
Expand Down
Loading

0 comments on commit c59873f

Please sign in to comment.