From a7f8c6f068e1b7c34ae10942bbb294f27e1335e6 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 13 Jan 2022 13:49:41 +0600 Subject: [PATCH 1/2] start 0.0.6 --- CHANGELOG.md | 2 ++ gradle.properties | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cbff3bc..35229ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 0.0.6 + ## 0.0.5 All elements has changed their signatures: they all will accept an additional lambda for attributes configuration diff --git a/gradle.properties b/gradle.properties index 251705c..3518cb9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,5 +9,4 @@ android.enableJetifier=true # Project data group=dev.inmo -version=0.0.5 - +version=0.0.6 From 461b1e845c1126e4879b8d85119fa58649e454a3 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 13 Jan 2022 13:49:58 +0600 Subject: [PATCH 2/2] fixes in several signatures --- CHANGELOG.md | 2 ++ src/main/kotlin/dev/inmo/jsuikit/elements/List.kt | 4 ++-- src/main/kotlin/dev/inmo/jsuikit/elements/TextField.kt | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35229ac..c9e53de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## 0.0.6 +Changes in signatures of text field and list + ## 0.0.5 All elements has changed their signatures: they all will accept an additional lambda for attributes configuration diff --git a/src/main/kotlin/dev/inmo/jsuikit/elements/List.kt b/src/main/kotlin/dev/inmo/jsuikit/elements/List.kt index 1be8c0d..9772e8c 100644 --- a/src/main/kotlin/dev/inmo/jsuikit/elements/List.kt +++ b/src/main/kotlin/dev/inmo/jsuikit/elements/List.kt @@ -13,10 +13,10 @@ fun List( title: String, data: SnapshotStateList, titleModifiers: Array = emptyArray(), - titleCustomizer: AttrBuilderContext = {}, ulModifiers: Array = emptyArray(), - ulCustomizer: AttrBuilderContext = {}, besidesTitleAndList: (@Composable () -> Unit)? = null, + titleCustomizer: AttrBuilderContext = {}, + ulCustomizer: AttrBuilderContext = {}, elementAllocator: @Composable ElementScope.(T) -> Unit ) { H4({ include(*titleModifiers); titleCustomizer() }) { diff --git a/src/main/kotlin/dev/inmo/jsuikit/elements/TextField.kt b/src/main/kotlin/dev/inmo/jsuikit/elements/TextField.kt index f14bd92..1cefa8a 100644 --- a/src/main/kotlin/dev/inmo/jsuikit/elements/TextField.kt +++ b/src/main/kotlin/dev/inmo/jsuikit/elements/TextField.kt @@ -14,8 +14,8 @@ fun TextField( state: MutableState, disabledState: State? = null, placeholder: String? = null, + modifiers: Array = emptyArray(), attributesCustomizer: AttrBuilderContext = {}, - modifiers: Array = emptyArray() ) { Input(type) { classes("uk-input")