mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-11-26 12:08:46 +00:00
add support of UIKitInverse and UIKitOverlay
This commit is contained in:
parent
7fb24d1999
commit
8497739c10
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
## 0.0.46
|
## 0.0.46
|
||||||
|
|
||||||
|
* Add support of `UIKitOverlay`
|
||||||
|
* Add support of `UIKitInverse`
|
||||||
|
|
||||||
## 0.0.45
|
## 0.0.45
|
||||||
|
|
||||||
* Add support of containers in `UIKitContainer` modifiers and `Container` function
|
* Add support of containers in `UIKitContainer` modifiers and `Container` function
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
package dev.inmo.jsuikit.modifiers
|
||||||
|
|
||||||
|
sealed class UIKitInverse(classname: String) : UIKitModifier {
|
||||||
|
override val classes: Array<String> = arrayOf(classname)
|
||||||
|
|
||||||
|
object Light : UIKitInverse("uk-light")
|
||||||
|
object Dark : UIKitInverse("uk-dark")
|
||||||
|
}
|
16
src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitOverlay.kt
Normal file
16
src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitOverlay.kt
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package dev.inmo.jsuikit.modifiers
|
||||||
|
|
||||||
|
sealed class UIKitOverlay(
|
||||||
|
override val classes: Array<String> = emptyArray(),
|
||||||
|
override val otherAttrs: Map<String, String> = emptyMap()
|
||||||
|
) : UIKitModifier {
|
||||||
|
|
||||||
|
object Default : UIKitOverlay(arrayOf("uk-overlay-default"))
|
||||||
|
object Primary : UIKitOverlay(arrayOf("uk-overlay-primary"))
|
||||||
|
object Icon : UIKitOverlay(arrayOf("uk-overlay-icon"))
|
||||||
|
|
||||||
|
companion object : UIKitOverlay(
|
||||||
|
arrayOf("uk-overlay")
|
||||||
|
)
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user