add support of UIKitInverse and UIKitOverlay

This commit is contained in:
InsanusMokrassar 2022-03-24 17:23:52 +06:00
parent 7fb24d1999
commit 8497739c10
3 changed files with 27 additions and 0 deletions

View File

@ -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

View File

@ -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")
}

View 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")
)
}