mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-11-23 10:38:45 +00:00
remove redundant package names in calls
This commit is contained in:
parent
a70256cdaf
commit
8aaa83f57d
@ -1,5 +1,6 @@
|
||||
package dev.inmo.jsuikit
|
||||
|
||||
import dev.inmo.jsuikit.modifers.AttributeValue
|
||||
import org.jetbrains.compose.web.attributes.AttrsBuilder
|
||||
|
||||
class UIKitAttributeValueBuilder {
|
||||
@ -11,7 +12,7 @@ class UIKitAttributeValueBuilder {
|
||||
}
|
||||
}
|
||||
|
||||
infix fun String.to(other: dev.inmo.jsuikit.modifers.AttributeValue?) {
|
||||
infix fun String.to(other: AttributeValue?) {
|
||||
this to other ?.name
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
package dev.inmo.jsuikit.modifers
|
||||
|
||||
sealed class UIKitAnimation (name: String) : UIKitModifier, dev.inmo.jsuikit.modifers.AttributeValue(name) {
|
||||
sealed class UIKitAnimation (name: String) : UIKitModifier, AttributeValue(name) {
|
||||
override val classes: Array<String> = arrayOf("uk-animation-$name")
|
||||
|
||||
object Fade : UIKitAnimation("fade")
|
||||
|
@ -7,7 +7,7 @@ sealed class UIKitDropdown(classname: String) : UIKitModifier {
|
||||
|
||||
object Grid : UIKitDropdown("uk-dropdown-grid")
|
||||
|
||||
sealed class Position(name: String) : dev.inmo.jsuikit.modifers.AttributeValue(name) {
|
||||
sealed class Position(name: String) : AttributeValue(name) {
|
||||
|
||||
sealed class Bottom(name: String) : Position("bottom-$name") {
|
||||
|
||||
@ -45,14 +45,14 @@ sealed class UIKitDropdown(classname: String) : UIKitModifier {
|
||||
|
||||
}
|
||||
|
||||
sealed class Mode(name: String) : dev.inmo.jsuikit.modifers.AttributeValue(name) {
|
||||
sealed class Mode(name: String) : AttributeValue(name) {
|
||||
|
||||
object Click : Mode("click")
|
||||
object Hover : Mode("hover")
|
||||
|
||||
}
|
||||
|
||||
sealed class Flip(name: String) : dev.inmo.jsuikit.modifers.AttributeValue(name) {
|
||||
sealed class Flip(name: String) : AttributeValue(name) {
|
||||
|
||||
object True : Flip("true")
|
||||
object False : Flip("false")
|
||||
|
Loading…
Reference in New Issue
Block a user