Skip to content

Commit

Permalink
Seskar 2.52.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aerialist7 committed May 2, 2024
1 parent 0e812fb commit 0bf020b
Show file tree
Hide file tree
Showing 243 changed files with 5 additions and 1,038 deletions.
15 changes: 3 additions & 12 deletions buildSrc/src/main/kotlin/karakum/mui/Generator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,7 @@ external interface TransitionCreateOptions {

// language=kotlin
private val MATERIAL_SIZE = """
@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual()
@JsVirtual
sealed external interface Size {
companion object {
@JsValue("small")
Expand Down Expand Up @@ -431,12 +428,8 @@ private fun generateMaterialDeclarations(
"Size" to MATERIAL_SIZE,
"Orientation" to MATERIAL_ORIENTATION,
).forEach { (name, body) ->
val annotations = if (name == MUI) {
"@file:Suppress(\n\"NESTED_CLASS_IN_EXTERNAL_INTERFACE\",\n\"NAME_CONTAINS_ILLEGAL_CHARS\",)"
} else ""

targetDir.resolve("$name.kt")
.writeText(fileContent(annotations, body, Package.material))
.writeText(fileContent(body = body, pkg = Package.material))
}
}

Expand Down Expand Up @@ -719,10 +712,8 @@ private fun generate(
.writeText(fileContent(body = classes, pkg = pkg))

if (mui != null) {
val muiAnnotations =
"@file:Suppress(\n\"NESTED_CLASS_IN_EXTERNAL_INTERFACE\",)"
targetDir.resolve("$componentName.mui.kt")
.writeText(fileContent(annotations = muiAnnotations, body = mui, pkg = pkg))
.writeText(fileContent(body = mui, pkg = pkg))
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions buildSrc/src/main/kotlin/karakum/mui/UnionConverter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ internal fun convertUnion(
.joinToString("\n")

return """
@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface $name {
companion object {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
kotlin.version=1.9.23
kotlin-wrappers.version=1.0.0-pre.737
kfc.version=7.58.0
seskar.version=2.44.0
seskar.version=2.52.0
# MUI Deps
mui-material.version=5.15.16
mui-icons-material.version=5.15.16
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Badge.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Button.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/FormControl.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Input.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Menu.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/MenuButton.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/MenuItem.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Modal.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Option.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/OptionGroup.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
3 changes: 0 additions & 3 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Orientation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ package mui.base
import seskar.js.JsValue
import seskar.js.JsVirtual

@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface Orientation {
companion object {
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Popper.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
3 changes: 0 additions & 3 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Popper.types.ext.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ package mui.base
import seskar.js.JsValue
import seskar.js.JsVirtual

@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface PopperDirection {
companion object {
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Select.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Slider.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Snackbar.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Switch.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Tab.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/TabPanel.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/TablePagination.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/Tabs.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
4 changes: 0 additions & 4 deletions mui-kotlin/src/jsMain/kotlin/mui/base/TabsList.mui.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Automatically generated - do not modify!

@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)

package mui.base

import seskar.js.JsValue
Expand Down
3 changes: 0 additions & 3 deletions mui-kotlin/src/jsMain/kotlin/mui/base/common.types.ext.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ package mui.base
import seskar.js.JsValue
import seskar.js.JsVirtual

@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface ItemAriaLabelType {
companion object {
Expand Down
18 changes: 0 additions & 18 deletions mui-kotlin/src/jsMain/kotlin/mui/base/useAutocomplete.ext.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ package mui.base
import seskar.js.JsValue
import seskar.js.JsVirtual

@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface AutocompleteHighlightChangeReason {
companion object {
Expand All @@ -25,9 +22,6 @@ sealed external interface AutocompleteHighlightChangeReason {
}
}

@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface AutocompleteChangeReason {
companion object {
Expand All @@ -48,9 +42,6 @@ sealed external interface AutocompleteChangeReason {
}
}

@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface AutocompleteCloseReason {
companion object {
Expand All @@ -74,9 +65,6 @@ sealed external interface AutocompleteCloseReason {
}
}

@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface AutocompleteInputChangeReason {
companion object {
Expand All @@ -91,9 +79,6 @@ sealed external interface AutocompleteInputChangeReason {
}
}

@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface MatchFrom {
companion object {
Expand All @@ -105,9 +90,6 @@ sealed external interface MatchFrom {
}
}

@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface BlurOnSelect {
companion object {
Expand Down
6 changes: 0 additions & 6 deletions mui-kotlin/src/jsMain/kotlin/mui/base/useList.types.ext.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ package mui.base
import seskar.js.JsValue
import seskar.js.JsVirtual

@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface FocusManagementType {
companion object {
Expand All @@ -19,9 +16,6 @@ sealed external interface FocusManagementType {
}
}

@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface SelectionMode {
companion object {
Expand Down
3 changes: 0 additions & 3 deletions mui-kotlin/src/jsMain/kotlin/mui/base/useSlider.types.ext.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ package mui.base
import seskar.js.JsValue
import seskar.js.JsVirtual

@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface Axis {
companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ package mui.base
import seskar.js.JsValue
import seskar.js.JsVirtual

@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface SnackbarCloseReason {
companion object {
Expand Down
3 changes: 0 additions & 3 deletions mui-kotlin/src/jsMain/kotlin/mui/base/useTabs.types.ext.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ package mui.base
import seskar.js.JsValue
import seskar.js.JsVirtual

@Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
@JsVirtual
sealed external interface useTabsDirection {
companion object {
Expand Down
Loading

0 comments on commit 0bf020b

Please sign in to comment.