diff --git a/CHANGELOG.md b/CHANGELOG.md index 9651a6b..44505a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.0.46 + +* Add support of `UIKitOverlay` +* Add support of `UIKitInverse` + ## 0.0.45 * Add support of containers in `UIKitContainer` modifiers and `Container` function diff --git a/gradle.properties b/gradle.properties index a98b229..806b7cf 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,4 +9,4 @@ android.enableJetifier=true # Project data group=dev.inmo -version=0.0.45 +version=0.0.46 diff --git a/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitInverse.kt b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitInverse.kt new file mode 100644 index 0000000..ff533e8 --- /dev/null +++ b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitInverse.kt @@ -0,0 +1,8 @@ +package dev.inmo.jsuikit.modifiers + +sealed class UIKitInverse(classname: String) : UIKitModifier { + override val classes: Array = arrayOf(classname) + + object Light : UIKitInverse("uk-light") + object Dark : UIKitInverse("uk-dark") +} diff --git a/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitOverlay.kt b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitOverlay.kt new file mode 100644 index 0000000..726a507 --- /dev/null +++ b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitOverlay.kt @@ -0,0 +1,16 @@ +package dev.inmo.jsuikit.modifiers + +sealed class UIKitOverlay( + override val classes: Array = emptyArray(), + override val otherAttrs: Map = 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") + ) + +}