Skip to content

Commit

Permalink
kotlin.wrappers.version=0.0.1-pre.839
Browse files Browse the repository at this point in the history
kfc.version=13.2.0
seskar.version=3.60.0
  • Loading branch information
aerialist7 committed Dec 19, 2024
1 parent 7f514c7 commit d704a53
Show file tree
Hide file tree
Showing 7 changed files with 1,338 additions and 4,477 deletions.
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/karakum/mui/Override.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ internal val VAR_TYPE_MISMATCH_ON_OVERRIDE_FIX_REQUIRED = setOf(
"CardHeader",
"BottomNavigationAction",
"StepButton",
"SpeedDial",
"CardActionArea",
"Fab",
"IconButton",
Expand Down
53 changes: 27 additions & 26 deletions buildSrc/src/main/kotlin/karakum/mui/Overrides.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,112 +6,113 @@ internal fun fixOverrides(
): String =
when (name) {
"AlertTitle",
-> content
-> content
.override("classes")

"Autocomplete",
-> content
-> content
.override("disabled")
.override("readOnly")
.replaceFirst("var key: String", "override var key: react.Key? /* Key */")

"BottomNavigationAction",
-> content
-> content
.override("classes")
.override("value")

"StepButton",
-> content
-> content
.override("classes")

"Button",
-> content
-> content
.override("rootElementName")

"CardActionArea",
-> content
-> content
.override("classes")
.override("focusVisibleClassName")

"Fab",
-> content
-> content
.override("classes")
.override("disabled")
.override("disableRipple")

"IconButton",
-> content
-> content
.override("classes")
.override("disabled")

"CardHeader",
-> content
-> content
.override("title")

"Dialog",
-> content
-> content
.override("disableEscapeKeyDown")
.override("onBackdropClick")
.override("onClose")
.override("open")

"DialogTitle",
"DialogContentText",
-> content
-> content
.override("classes")

"Drawer",
-> content
-> content
.override("onClose")

"Popover",
-> content
-> content
.override("container")
.override("onClose")
.override("open")

"ToggleButton",
-> content
-> content
.override("disabled")
.override("value")

"SwipeableDrawer",
-> content
-> content
.override("open")

"MultiSelect",
-> content
-> content
.override("disabled")
.replace("disabled: Boolean", "disabled: Boolean?")
.replace("var component: dynamic", "var component: react.ElementType<*>?")

"Option",
-> content
-> content
.replace("var component: dynamic", "var component: react.ElementType<*>?")

"Select",
-> content
-> content
.replace("var component: dynamic", "var component: react.ElementType<*>?")

"TableCell",
-> content
-> content
.override("align")
.override("scope")

"SpeedDial",
-> content
-> content
.override("ariaLabel")
.override("hidden")

"Tab",
-> content
-> content
.override("value")
.override("slots")
.replace("slots: TabSlots?", "slots: ButtonSlots? /* TabSlots? */")
.override("slotProps")
.replace(": SlotProps?", ": ButtonOwnProps.SlotProps?")

"MenuItem",
-> content
-> content
.override("autoFocus")
.override("onClick")
.replace(
Expand All @@ -120,25 +121,25 @@ internal fun fixOverrides(
)

"TreeItem",
-> content
-> content
.override("onKeyDown")
.replace(
"var onFocus: Nothing?",
"@Deprecated(\"See documentation\")\noverride var onFocus: react.dom.events.FocusEventHandler<web.html.HTMLLIElement>?"
)

"TabScrollButton",
-> content
-> content
.override("disabled")
.override("classes")

"Tabs",
-> content
-> content
.override("centered")
.replaceFirst("centered: Boolean", "centered: Boolean?")

"createTheme",
-> {
-> {
if ("mui.system.ThemeOptions" !in content) {
content
} else {
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Deps
kotlin.version=2.0.21
kotlin.wrappers.version=0.0.1-pre.818
kfc.version=11.10.0
seskar.version=3.41.0
kotlin.wrappers.version=0.0.1-pre.839
kfc.version=13.2.0
seskar.version=3.60.0
# MUI Deps
mui-material.version=5.16.12
mui-icons-material.version=5.16.12
Expand Down
6 changes: 5 additions & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/material/SpeedDial.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

@file:JsModule("@mui/material/SpeedDial")

@file:Suppress(
"VAR_TYPE_MISMATCH_ON_OVERRIDE",
)

package mui.material

import mui.material.styles.Theme
Expand All @@ -26,7 +30,7 @@ external interface SpeedDialProps :
* The aria-label of the button element.
* Also used to provide the `id` for the `SpeedDial` element and its children.
*/
var ariaLabel: String
override var ariaLabel: String

/**
* The direction the actions open relative to the floating action button.
Expand Down
Loading

0 comments on commit d704a53

Please sign in to comment.