-
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
ed54a12
commit 03e3e40
Showing
21 changed files
with
318 additions
and
95 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
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
buildSrc/src/main/kotlin/karakum/mui/adapters/treeview/RichTreeView.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 @@ | ||
package karakum.mui.adapters.treeview | ||
|
||
fun String.adaptRichTreeView(): String = this | ||
.replace( | ||
oldValue = " | React.JSXElementConstructor<TreeItem2Props>", | ||
newValue = "", | ||
) | ||
.replace( | ||
oldValue = ": RichTreeViewSlotProps<R, Multiple>", | ||
newValue = ": RichTreeViewSlotProps", | ||
) |
7 changes: 7 additions & 0 deletions
7
buildSrc/src/main/kotlin/karakum/mui/adapters/treeview/TreeItem.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,7 @@ | ||
package karakum.mui.adapters.treeview | ||
|
||
fun String.adaptTreeItem(): String = this | ||
.replace( | ||
oldValue = "TreeViewItemId", | ||
newValue = "string", | ||
) |
16 changes: 16 additions & 0 deletions
16
buildSrc/src/main/kotlin/karakum/mui/adapters/treeview/TreeView.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,16 @@ | ||
package karakum.mui.adapters.treeview | ||
|
||
fun String.adaptTreeView(): String = this | ||
.replace( | ||
oldValue = """export interface TreeViewProps<Multiple extends boolean | undefined> extends SimpleTreeViewProps<Multiple> { | ||
} | ||
export interface TreeViewSlots extends SimpleTreeViewSlots { | ||
} | ||
export interface TreeViewSlotProps extends SimpleTreeViewSlotProps { | ||
} | ||
export type SingleSelectTreeViewProps = SimpleTreeViewProps<false>; | ||
export type MultiSelectTreeViewProps = SimpleTreeViewProps<true>; | ||
""", | ||
newValue = """export interface TreeViewProps<Multiple extends boolean | undefined> extends SimpleTreeViewProps<Multiple> { | ||
}""", | ||
) |
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
14 changes: 14 additions & 0 deletions
14
mui-kotlin/src/jsMain/kotlin/muix/tree/view/RichTreeView.classes.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,14 @@ | ||
// Automatically generated - do not modify! | ||
|
||
@file:JsModule("@mui/x-tree-view/RichTreeView") | ||
|
||
package muix.tree.view | ||
|
||
import web.cssom.ClassName | ||
|
||
sealed external interface RichTreeViewClasses { | ||
/** Styles applied to the root element. */ | ||
val root: ClassName | ||
} | ||
|
||
external val richTreeViewClasses: RichTreeViewClasses |
17 changes: 17 additions & 0 deletions
17
mui-kotlin/src/jsMain/kotlin/muix/tree/view/RichTreeView.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,17 @@ | ||
// Automatically generated - do not modify! | ||
|
||
@file:JsModule("@mui/x-tree-view/RichTreeView") | ||
|
||
package muix.tree.view | ||
|
||
/** | ||
* | ||
* Demos: | ||
* | ||
* - [Tree View](https://mui.com/x/react-tree-view/) | ||
* | ||
* API: | ||
* | ||
* - [RichTreeView API](https://mui.com/x/api/tree-view/rich-tree-view/) | ||
*/ | ||
external val RichTreeView: react.FC<RichTreeViewProps> |
60 changes: 60 additions & 0 deletions
60
mui-kotlin/src/jsMain/kotlin/muix/tree/view/RichTreeView.types.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,60 @@ | ||
// Automatically generated - do not modify! | ||
|
||
package muix.tree.view | ||
|
||
import mui.material.styles.Theme | ||
import mui.system.SxProps | ||
import web.cssom.ClassName | ||
|
||
external interface RichTreeViewProps : RichTreeViewPropsBase { | ||
/** | ||
* Overridable component slots. | ||
* @default {} | ||
*/ | ||
var slots: RichTreeViewSlots? | ||
|
||
/** | ||
* The props used for each component slot. | ||
* @default {} | ||
*/ | ||
var slotProps: RichTreeViewSlotProps? | ||
|
||
/** | ||
* The ref object that allows Tree View manipulation. Can be instantiated with `useTreeViewApiRef()`. | ||
*/ | ||
var apiRef: react.Ref<*>? | ||
} | ||
|
||
external interface RichTreeViewSlots { | ||
/** | ||
* Element rendered at the root. | ||
* @default RichTreeViewRoot | ||
*/ | ||
var root: react.ElementType<*>? | ||
|
||
/** | ||
* Custom component for the item. | ||
* @default TreeItem. | ||
*/ | ||
var item: react.ComponentType<TreeItemProps>? | ||
} | ||
|
||
external interface RichTreeViewSlotProps : react.Props { | ||
var root: react.Props? | ||
|
||
var item: react.Props? | ||
} | ||
|
||
external interface RichTreeViewPropsBase : react.dom.html.HTMLAttributes<web.html.HTMLUListElement> { | ||
override var className: ClassName? | ||
|
||
/** | ||
* Override or extend the styles applied to the component. | ||
*/ | ||
var classes: RichTreeViewClasses? | ||
|
||
/** | ||
* The system prop that allows defining system overrides as well as additional CSS styles. | ||
*/ | ||
var sx: SxProps<Theme>? | ||
} |
14 changes: 14 additions & 0 deletions
14
mui-kotlin/src/jsMain/kotlin/muix/tree/view/SimpleTreeView.classes.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,14 @@ | ||
// Automatically generated - do not modify! | ||
|
||
@file:JsModule("@mui/x-tree-view/SimpleTreeView") | ||
|
||
package muix.tree.view | ||
|
||
import web.cssom.ClassName | ||
|
||
sealed external interface SimpleTreeViewClasses { | ||
/** Styles applied to the root element. */ | ||
val root: ClassName | ||
} | ||
|
||
external val simpleTreeViewClasses: SimpleTreeViewClasses |
17 changes: 17 additions & 0 deletions
17
mui-kotlin/src/jsMain/kotlin/muix/tree/view/SimpleTreeView.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,17 @@ | ||
// Automatically generated - do not modify! | ||
|
||
@file:JsModule("@mui/x-tree-view/SimpleTreeView") | ||
|
||
package muix.tree.view | ||
|
||
/** | ||
* | ||
* Demos: | ||
* | ||
* - [Tree View](https://mui.com/x/react-tree-view/) | ||
* | ||
* API: | ||
* | ||
* - [SimpleTreeView API](https://mui.com/x/api/tree-view/simple-tree-view/) | ||
*/ | ||
external val SimpleTreeView: react.FC<SimpleTreeViewProps> |
56 changes: 56 additions & 0 deletions
56
mui-kotlin/src/jsMain/kotlin/muix/tree/view/SimpleTreeView.types.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,56 @@ | ||
// Automatically generated - do not modify! | ||
|
||
package muix.tree.view | ||
|
||
import mui.material.styles.Theme | ||
import mui.system.SxProps | ||
import web.cssom.ClassName | ||
|
||
external interface SimpleTreeViewProps : | ||
react.PropsWithChildren, | ||
react.PropsWithClassName, | ||
mui.system.PropsWithSx { | ||
/** | ||
* The content of the component. | ||
*/ | ||
override var children: react.ReactNode? | ||
|
||
/** | ||
* Overridable component slots. | ||
*/ | ||
var slots: SimpleTreeViewSlots? | ||
|
||
/** | ||
* The props used for each component slot. | ||
*/ | ||
var slotProps: SimpleTreeViewSlotProps? | ||
|
||
override var className: ClassName? | ||
|
||
/** | ||
* Override or extend the styles applied to the component. | ||
*/ | ||
var classes: SimpleTreeViewClasses? | ||
|
||
/** | ||
* The system prop that allows defining system overrides as well as additional CSS styles. | ||
*/ | ||
override var sx: SxProps<Theme>? | ||
|
||
/** | ||
* The ref object that allows Tree View manipulation. Can be instantiated with `useTreeViewApiRef()`. | ||
*/ | ||
var apiRef: react.Ref<*>? | ||
} | ||
|
||
external interface SimpleTreeViewSlots { | ||
/** | ||
* Element rendered at the root. | ||
* @default SimpleTreeViewRoot | ||
*/ | ||
var root: react.ElementType<*>? | ||
} | ||
|
||
external interface SimpleTreeViewSlotProps : react.Props { | ||
var root: react.Props? | ||
} |
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
Oops, something went wrong.