Compare commits

..

15 Commits

9 changed files with 48 additions and 10 deletions

View File

@@ -1,5 +1,30 @@
# Changelog # Changelog
## 0.7.4
* `Kotlin`: `1.9.21`
* `Compose`: `1.5.11`
## 0.7.3
* `Kotlin`: `1.9.20`
* `Compose`: `1.5.10`
## 0.7.2
* `Kotlin`: `1.9.10`
* `Compose`: `1.5.1`
## 0.7.1
* Type of `animation` parameter in `Alert` has been changed according to docs: now it is `Boolean`
* Add tooltip `JS` part support
## 0.7.0
* `Kotlin`: `1.8.20`
* `Compose`: `1.4.0`
## 0.6.2 ## 0.6.2
* `Compose`: `1.3.1` * `Compose`: `1.3.1`

View File

@@ -7,4 +7,4 @@ kotlin.incremental.js=true
# Project data # Project data
group=dev.inmo group=dev.inmo
version=0.6.2 version=0.7.4

View File

@@ -1,8 +1,8 @@
[versions] [versions]
kt = "1.8.10" kt = "1.9.21"
jb-compose = "1.3.1" jb-compose = "1.5.11"
jb-dokka = "1.8.10" jb-dokka = "1.9.10"
gh-release = "2.4.1" gh-release = "2.4.1"
[libraries] [libraries]

View File

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View File

@@ -1,7 +1,7 @@
apply plugin: 'maven-publish' apply plugin: 'maven-publish'
task javadocsJar(type: Jar) { task javadocsJar(type: Jar) {
classifier = 'javadoc' archiveClassifier = 'javadoc'
} }
publishing { publishing {
@@ -84,4 +84,10 @@ if (project.hasProperty("signing.gnupg.keyName")) {
dependsOn(it) dependsOn(it)
} }
} }
// Workaround to make android sign operations depend on signing tasks
project.getTasks().withType(AbstractPublishToMaven.class).configureEach {
def signingTasks = project.getTasks().withType(Sign.class)
mustRunAfter(signingTasks)
}
} }

View File

@@ -1,3 +1 @@
rootProject.name = 'kjsuikit' rootProject.name = 'kjsuikit'
enableFeaturePreview("VERSION_CATALOGS")

View File

@@ -12,7 +12,7 @@ import org.w3c.dom.HTMLDivElement
@Composable @Composable
fun Alert( fun Alert(
attrs: Attrs<HTMLDivElement> = Attrs.empty(), attrs: Attrs<HTMLDivElement> = Attrs.empty(),
animation: UIKitAnimation? = UIKitAnimation.Fade, animation: Boolean = true,
duration: Milliseconds? = null, duration: Milliseconds? = null,
selClose: String? = null, selClose: String? = null,
content: ContentBuilder<HTMLDivElement> content: ContentBuilder<HTMLDivElement>
@@ -22,7 +22,7 @@ fun Alert(
include(UIKitAlert) include(UIKitAlert)
buildAndAddAttribute("uk-alert") { buildAndAddAttribute("uk-alert") {
"animation" to animation ?.classes ?.firstOrNull() "animation" to animation
"duration" to duration "duration" to duration
"sel-close" to selClose "sel-close" to selClose
} }

View File

@@ -17,4 +17,7 @@ external interface UIKit {
fun dropdown(element: Element, options: DropdownOptions = definedExternally): Dropdown fun dropdown(element: Element, options: DropdownOptions = definedExternally): Dropdown
fun dropdown(selector: String, options: DropdownOptions = definedExternally): Dropdown? fun dropdown(selector: String, options: DropdownOptions = definedExternally): Dropdown?
fun tooltip(element: Element): UIKitTooltip
fun tooltip(selector: String): UIKitTooltip?
} }

View File

@@ -0,0 +1,6 @@
package dev.inmo.jsuikit.types
external interface UIKitTooltip {
fun show()
fun hide()
}