From d1c03e5c485a30919d833cf3717a8c6001793942 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 25 Jan 2022 11:22:36 +0600 Subject: [PATCH 1/2] start 0.0.18 --- CHANGELOG.md | 2 ++ gradle.properties | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d204cf5..884e330 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## 0.0.18 + ## 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 From 58f8f99e10ecf3343a85bec83953f79988ac3732 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 25 Jan 2022 11:24:58 +0600 Subject: [PATCH 2/2] add uk-flex to UIKitFlex base class --- CHANGELOG.md | 2 ++ src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitFlex.kt | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 884e330..8ca5595 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 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/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) + }