-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8cef7ef
commit f5cdc92
Showing
8 changed files
with
78 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package karakum.mui.adapters | ||
|
||
// TODO: Fix problem with incorrect comments processing for inline types | ||
fun String.adaptClasses(): String { | ||
return cleanupTreeItemContentClasses() | ||
} | ||
|
||
private fun String.cleanupTreeItemContentClasses(): String { | ||
return replace( | ||
""" | ||
classes: { | ||
/** Styles applied to the root element. */ | ||
root: string; | ||
/** State class applied to the content element when expanded. */ | ||
expanded: string; | ||
/** State class applied to the content element when selected. */ | ||
selected: string; | ||
/** State class applied to the content element when focused. */ | ||
focused: string; | ||
/** State class applied to the element when disabled. */ | ||
disabled: string; | ||
/** Styles applied to the tree item icon and collapse/expand icon. */ | ||
iconContainer: string; | ||
/** Styles applied to the label element. */ | ||
label: string; | ||
/** Styles applied to the checkbox element. */ | ||
checkbox: string; | ||
}; | ||
""", | ||
""" | ||
classes: { | ||
root: string; | ||
expanded: string; | ||
selected: string; | ||
focused: string; | ||
disabled: string; | ||
iconContainer: string; | ||
label: string; | ||
checkbox: string; | ||
}; | ||
""", | ||
) | ||
} |
3 changes: 1 addition & 2 deletions
3
buildSrc/src/main/kotlin/karakum/mui/adapters/ComponentsAndSlots.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.