mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-11-26 12:08:46 +00:00
commit
d93517bf83
@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 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
|
||||||
|
@ -9,4 +9,4 @@ android.enableJetifier=true
|
|||||||
# Project data
|
# Project data
|
||||||
|
|
||||||
group=dev.inmo
|
group=dev.inmo
|
||||||
version=0.0.45
|
version=0.0.46
|
||||||
|
@ -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