Skip to content

Commit

Permalink
MUI Icons. Named export instead of default
Browse files Browse the repository at this point in the history
  • Loading branch information
aerialist7 committed May 5, 2024
1 parent ae84366 commit d25414d
Show file tree
Hide file tree
Showing 10,613 changed files with 10,683 additions and 21,225 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/karakum/mui/Generator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ private fun generateIconsMaterialDeclarations(

for ((name, body) in convertIcons(typesDir.resolve("index.d.ts"))) {
val annotations = if (name != "SvgIconComponent") {
moduleDeclaration(Package.iconsMaterial, null, name)
moduleDeclaration(Package.iconsMaterial, null, null)
} else ""

targetDir.resolve("$name.kt")
Expand Down Expand Up @@ -614,7 +614,7 @@ private fun String.isHookName(): Boolean {
private fun moduleDeclaration(
pkg: Package,
subpackage: String?,
componentName: String,
componentName: String?,
): String {
val moduleName = sequenceOf(
"@mui",
Expand Down
1 change: 0 additions & 1 deletion buildSrc/src/main/kotlin/karakum/mui/Icons.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ internal fun convertIcons(
IconConversionResult(
name = name,
body = """
@JsName("default")
external val $name: SvgIconComponent
""".trimIndent(),
)
Expand Down
3 changes: 1 addition & 2 deletions mui-icons-kotlin/src/jsMain/kotlin/mui/icons/material/Abc.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/Abc")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val Abc: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AbcOutlined")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AbcOutlined: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AbcRounded")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AbcRounded: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AbcSharp")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AbcSharp: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AbcTwoTone")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AbcTwoTone: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AcUnit")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AcUnit: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AcUnitOutlined")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AcUnitOutlined: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AcUnitRounded")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AcUnitRounded: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AcUnitSharp")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AcUnitSharp: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AcUnitTwoTone")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AcUnitTwoTone: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessAlarm")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessAlarm: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessAlarmOutlined")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessAlarmOutlined: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessAlarmRounded")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessAlarmRounded: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessAlarmSharp")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessAlarmSharp: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessAlarmTwoTone")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessAlarmTwoTone: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessAlarms")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessAlarms: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessAlarmsOutlined")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessAlarmsOutlined: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessAlarmsRounded")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessAlarmsRounded: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessAlarmsSharp")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessAlarmsSharp: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessAlarmsTwoTone")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessAlarmsTwoTone: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessTime")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessTime: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessTimeFilled")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessTimeFilled: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessTimeFilledOutlined")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessTimeFilledOutlined: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessTimeFilledRounded")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessTimeFilledRounded: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessTimeFilledSharp")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessTimeFilledSharp: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessTimeFilledTwoTone")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessTimeFilledTwoTone: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessTimeOutlined")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessTimeOutlined: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessTimeRounded")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessTimeRounded: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessTimeSharp")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessTimeSharp: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessTimeTwoTone")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessTimeTwoTone: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/Accessibility")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val Accessibility: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessibilityNew")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessibilityNew: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessibilityNewOutlined")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessibilityNewOutlined: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessibilityNewRounded")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessibilityNewRounded: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessibilityNewSharp")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessibilityNewSharp: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessibilityNewTwoTone")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessibilityNewTwoTone: SvgIconComponent
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Automatically generated - do not modify!

@file:JsModule("@mui/icons-material/AccessibilityOutlined")
@file:JsModule("@mui/icons-material")

package mui.icons.material

@JsName("default")
external val AccessibilityOutlined: SvgIconComponent
Loading

0 comments on commit d25414d

Please sign in to comment.