-
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.
mui-icons-material.version=5.16.0 mui-system.version=5.16.0 mui-lab.version=5.0.0-alpha.171
- Loading branch information
1 parent
1081ce5
commit 7707035
Showing
7 changed files
with
125 additions
and
52 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
8 changes: 8 additions & 0 deletions
8
buildSrc/src/main/kotlin/karakum/mui/adapters/InitColorSchemeScript.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package karakum.mui.adapters | ||
|
||
fun String.adaptInitColorSchemeScript(): String { | ||
return replace( | ||
oldValue = "declare const _default: typeof SystemInitColorSchemeScript;", | ||
newValue = "", | ||
) | ||
} |
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
11 changes: 11 additions & 0 deletions
11
mui-kotlin/src/jsMain/kotlin/mui/material/InitColorSchemeScript.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Automatically generated - do not modify! | ||
|
||
@file:JsModule("@mui/material/InitColorSchemeScript") | ||
|
||
package mui.material | ||
|
||
import mui.system.InitColorSchemeScriptProps | ||
|
||
|
||
@JsName("default") | ||
external val InitColorSchemeScript: react.FC<InitColorSchemeScriptProps> |
52 changes: 52 additions & 0 deletions
52
mui-kotlin/src/jsMain/kotlin/mui/system/InitColorSchemeScript.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Automatically generated - do not modify! | ||
|
||
package mui.system | ||
|
||
external interface InitColorSchemeScriptProps : react.Props { | ||
/** | ||
* The mode to be used for the first visit | ||
* @default 'light' | ||
*/ | ||
var defaultMode: Union? /* 'light' | 'dark' | 'system' */ | ||
|
||
/** | ||
* The default color scheme to be used on the light mode | ||
* @default 'light' | ||
*/ | ||
var defaultLightColorScheme: String? | ||
|
||
/** | ||
* The default color scheme to be used on the dark mode | ||
* * @default 'dark' | ||
*/ | ||
var defaultDarkColorScheme: String? | ||
|
||
/** | ||
* The node (provided as string) used to attach the color-scheme attribute | ||
* @default 'document.documentElement' | ||
*/ | ||
var colorSchemeNode: String? | ||
|
||
/** | ||
* localStorage key used to store `mode` | ||
* @default 'mode' | ||
*/ | ||
var modeStorageKey: String? | ||
|
||
/** | ||
* localStorage key used to store `colorScheme` | ||
* @default 'color-scheme' | ||
*/ | ||
var colorSchemeStorageKey: String? | ||
|
||
/** | ||
* DOM attribute for applying color scheme | ||
* @default 'data-color-scheme' | ||
*/ | ||
var attribute: String? | ||
|
||
/** | ||
* Nonce string to pass to the inline script for CSP headers | ||
*/ | ||
var nonce: String? | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.