mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-06-03 00:15:20 +00:00
Compare commits
No commits in common. "29fe133777070f685e6b2d6616997e182287f424" and "665432cdce6d6e6c6c8e54c1ba35b76c9cea10bf" have entirely different histories.
29fe133777
...
665432cdce
|
@ -1,10 +1,5 @@
|
|||
# Changelog
|
||||
|
||||
## 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`
|
||||
|
|
|
@ -7,4 +7,4 @@ kotlin.incremental.js=true
|
|||
# Project data
|
||||
|
||||
group=dev.inmo
|
||||
version=0.7.1
|
||||
version=0.7.0
|
||||
|
|
|
@ -12,7 +12,7 @@ import org.w3c.dom.HTMLDivElement
|
|||
@Composable
|
||||
fun Alert(
|
||||
attrs: Attrs<HTMLDivElement> = Attrs.empty(),
|
||||
animation: Boolean = true,
|
||||
animation: UIKitAnimation? = UIKitAnimation.Fade,
|
||||
duration: Milliseconds? = null,
|
||||
selClose: String? = null,
|
||||
content: ContentBuilder<HTMLDivElement>
|
||||
|
@ -22,7 +22,7 @@ fun Alert(
|
|||
include(UIKitAlert)
|
||||
|
||||
buildAndAddAttribute("uk-alert") {
|
||||
"animation" to animation
|
||||
"animation" to animation ?.classes ?.firstOrNull()
|
||||
"duration" to duration
|
||||
"sel-close" to selClose
|
||||
}
|
||||
|
|
|
@ -17,7 +17,4 @@ external interface UIKit {
|
|||
|
||||
fun dropdown(element: Element, options: DropdownOptions = definedExternally): Dropdown
|
||||
fun dropdown(selector: String, options: DropdownOptions = definedExternally): Dropdown?
|
||||
|
||||
fun tooltip(element: Element): UIKitTooltip
|
||||
fun tooltip(selector: String): UIKitTooltip?
|
||||
}
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
package dev.inmo.jsuikit.types
|
||||
|
||||
external interface UIKitTooltip {
|
||||
fun show()
|
||||
fun hide()
|
||||
}
|
Loading…
Reference in New Issue
Block a user