diff --git a/CHANGELOG.md b/CHANGELOG.md index d204cf5..8ca5595 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.0.18 + +* Add base companion for `UIKitFlex` with result class `uk-flex` + ## 0.0.17 * In `DefaultTable` `headingCustomizer` has been renamed to `headerCellCustomizer` diff --git a/gradle.properties b/gradle.properties index 9e81911..2c7e560 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,4 +9,4 @@ android.enableJetifier=true # Project data group=dev.inmo -version=0.0.17 +version=0.0.18 diff --git a/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitFlex.kt b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitFlex.kt index a1f3d0d..3a7fa11 100644 --- a/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitFlex.kt +++ b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitFlex.kt @@ -1,7 +1,7 @@ package dev.inmo.jsuikit.modifiers -sealed class UIKitFlex(suffix: String) : UIKitModifier { - override val classes: Array = arrayOf("uk-flex-$suffix") +sealed class UIKitFlex(suffix: String?) : UIKitModifier { + override val classes: Array = arrayOf("uk-flex${suffix ?.let { "-$it" } ?: ""}") object Inline : UIKitFlex("inline") @@ -76,4 +76,6 @@ sealed class UIKitFlex(suffix: String) : UIKitModifier { object NoWrap : UIKitFlex("nowrap") + companion object : UIKitFlex(null) + }