mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-11-23 02:28:47 +00:00
global changes in packages
This commit is contained in:
parent
a68b4c7d8e
commit
6c5dbdba87
@ -1,5 +1,7 @@
|
|||||||
## 0.0.3
|
## 0.0.3
|
||||||
|
|
||||||
|
__Global changes in packages__
|
||||||
|
|
||||||
## 0.0.2
|
## 0.0.2
|
||||||
|
|
||||||
* Name of project has been changed: `jsuikitkotlin` -> `kjsuikit`
|
* Name of project has been changed: `jsuikitkotlin` -> `kjsuikit`
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit
|
||||||
|
|
||||||
import dev.inmo.jsuikit.defaults.modifers.AttributeValue
|
|
||||||
import org.jetbrains.compose.web.attributes.AttrsBuilder
|
import org.jetbrains.compose.web.attributes.AttrsBuilder
|
||||||
|
|
||||||
class UIKitAttributeValueBuilder {
|
class UIKitAttributeValueBuilder {
|
||||||
@ -12,7 +11,7 @@ class UIKitAttributeValueBuilder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
infix fun String.to(other: AttributeValue?) {
|
infix fun String.to(other: dev.inmo.jsuikit.modifers.AttributeValue?) {
|
||||||
this to other ?.name
|
this to other ?.name
|
||||||
}
|
}
|
||||||
|
|
@ -1,4 +0,0 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
|
||||||
|
|
||||||
inline val UIKit
|
|
||||||
get() = js("UIkit")
|
|
@ -1,3 +0,0 @@
|
|||||||
package dev.inmo.jsuikit.defaults.utils
|
|
||||||
|
|
||||||
typealias Milliseconds = Long
|
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.web.events.SyntheticMouseEvent
|
import androidx.compose.web.events.SyntheticMouseEvent
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.DisposableEffectResult
|
import androidx.compose.runtime.DisposableEffectResult
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import org.jetbrains.compose.web.dom.Hr
|
import org.jetbrains.compose.web.dom.Hr
|
@ -1,8 +1,9 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
|
import dev.inmo.jsuikit.buildAndAddAttribute
|
||||||
import dev.inmo.jsuikit.defaults.modifers.*
|
import dev.inmo.jsuikit.defaults.modifers.*
|
||||||
import dev.inmo.jsuikit.defaults.utils.Milliseconds
|
import dev.inmo.jsuikit.utils.Milliseconds
|
||||||
import org.jetbrains.compose.web.dom.ContentBuilder
|
import org.jetbrains.compose.web.dom.ContentBuilder
|
||||||
import org.jetbrains.compose.web.dom.Div
|
import org.jetbrains.compose.web.dom.Div
|
||||||
import org.w3c.dom.HTMLDivElement
|
import org.w3c.dom.HTMLDivElement
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier
|
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier
|
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import dev.inmo.jsuikit.defaults.modifers.*
|
import dev.inmo.jsuikit.defaults.modifers.*
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier
|
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.snapshots.SnapshotStateList
|
import androidx.compose.runtime.snapshots.SnapshotStateList
|
@ -1,8 +1,9 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
|
import dev.inmo.jsuikit.buildAndAddAttribute
|
||||||
import dev.inmo.jsuikit.defaults.modifers.*
|
import dev.inmo.jsuikit.defaults.modifers.*
|
||||||
import dev.inmo.jsuikit.defaults.utils.Milliseconds
|
import dev.inmo.jsuikit.utils.Milliseconds
|
||||||
import org.jetbrains.compose.web.dom.*
|
import org.jetbrains.compose.web.dom.*
|
||||||
import org.w3c.dom.HTMLLIElement
|
import org.w3c.dom.HTMLLIElement
|
||||||
import org.w3c.dom.HTMLUListElement
|
import org.w3c.dom.HTMLUListElement
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier
|
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier
|
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier
|
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import dev.inmo.jsuikit.defaults.modifers.*
|
import dev.inmo.jsuikit.defaults.modifers.*
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.snapshots.SnapshotStateList
|
import androidx.compose.runtime.snapshots.SnapshotStateList
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
import androidx.compose.runtime.*
|
import androidx.compose.runtime.*
|
||||||
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier
|
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier
|
@ -1,3 +1,3 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class AttributeValue(val name: String)
|
sealed class AttributeValue(val name: String)
|
4
src/main/kotlin/dev/inmo/jsuikit/modifers/UIKit.kt
Normal file
4
src/main/kotlin/dev/inmo/jsuikit/modifers/UIKit.kt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
|
inline val UIKit
|
||||||
|
get() = js("UIkit")
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitAlign(classnameSuffix: String) : UIKitModifier {
|
sealed class UIKitAlign(classnameSuffix: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf("uk-align-$classnameSuffix")
|
override val classes: Array<String> = arrayOf("uk-align-$classnameSuffix")
|
@ -1,6 +1,6 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitAnimation (name: String) : UIKitModifier, AttributeValue(name) {
|
sealed class UIKitAnimation (name: String) : UIKitModifier, dev.inmo.jsuikit.modifers.AttributeValue(name) {
|
||||||
override val classes: Array<String> = arrayOf("uk-animation-$name")
|
override val classes: Array<String> = arrayOf("uk-animation-$name")
|
||||||
|
|
||||||
object Fade : UIKitAnimation("fade")
|
object Fade : UIKitAnimation("fade")
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitBackground(suffix: String) : UIKitModifier {
|
sealed class UIKitBackground(suffix: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf("uk-background-$suffix")
|
override val classes: Array<String> = arrayOf("uk-background-$suffix")
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitButton(suffix: String) : UIKitModifier {
|
sealed class UIKitButton(suffix: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf("uk-button-$suffix")
|
override val classes: Array<String> = arrayOf("uk-button-$suffix")
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitDropdown(classname: String) : UIKitModifier {
|
sealed class UIKitDropdown(classname: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf(classname)
|
override val classes: Array<String> = arrayOf(classname)
|
||||||
@ -7,7 +7,7 @@ sealed class UIKitDropdown(classname: String) : UIKitModifier {
|
|||||||
|
|
||||||
object Grid : UIKitDropdown("uk-dropdown-grid")
|
object Grid : UIKitDropdown("uk-dropdown-grid")
|
||||||
|
|
||||||
sealed class Position(name: String) : AttributeValue(name) {
|
sealed class Position(name: String) : dev.inmo.jsuikit.modifers.AttributeValue(name) {
|
||||||
|
|
||||||
sealed class Bottom(name: String) : Position("bottom-$name") {
|
sealed class Bottom(name: String) : Position("bottom-$name") {
|
||||||
|
|
||||||
@ -45,14 +45,14 @@ sealed class UIKitDropdown(classname: String) : UIKitModifier {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sealed class Mode(name: String) : AttributeValue(name) {
|
sealed class Mode(name: String) : dev.inmo.jsuikit.modifers.AttributeValue(name) {
|
||||||
|
|
||||||
object Click : Mode("click")
|
object Click : Mode("click")
|
||||||
object Hover : Mode("hover")
|
object Hover : Mode("hover")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sealed class Flip(name: String) : AttributeValue(name) {
|
sealed class Flip(name: String) : dev.inmo.jsuikit.modifers.AttributeValue(name) {
|
||||||
|
|
||||||
object True : Flip("true")
|
object True : Flip("true")
|
||||||
object False : Flip("false")
|
object False : Flip("false")
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitExtension(classname: String) : UIKitModifier {
|
sealed class UIKitExtension(classname: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf(classname)
|
override val classes: Array<String> = arrayOf(classname)
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitFlex(suffix: String) : UIKitModifier {
|
sealed class UIKitFlex(suffix: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf("uk-flex-$suffix")
|
override val classes: Array<String> = arrayOf("uk-flex-$suffix")
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitGrid(suffix: String) : UIKitModifier {
|
sealed class UIKitGrid(suffix: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf("uk-grid-$suffix")
|
override val classes: Array<String> = arrayOf("uk-grid-$suffix")
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitIconType(suffix: String?) : UIKitModifier {
|
sealed class UIKitIconType(suffix: String?) : UIKitModifier {
|
||||||
override val classes: Array<String> = suffix ?.let {
|
override val classes: Array<String> = suffix ?.let {
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitMargin(val classname: String) : UIKitModifier {
|
sealed class UIKitMargin(val classname: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf(classname)
|
override val classes: Array<String> = arrayOf(classname)
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
import org.jetbrains.compose.web.attributes.AttrsBuilder
|
import org.jetbrains.compose.web.attributes.AttrsBuilder
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitNav(classname: String) : UIKitModifier {
|
sealed class UIKitNav(classname: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf(classname)
|
override val classes: Array<String> = arrayOf(classname)
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitNavbar(suffix: String) : UIKitModifier {
|
sealed class UIKitNavbar(suffix: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf("uk-navbar-$suffix")
|
override val classes: Array<String> = arrayOf("uk-navbar-$suffix")
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitPadding(suffix: String?) : UIKitModifier {
|
sealed class UIKitPadding(suffix: String?) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf("uk-padding${suffix ?.let { "-$it" } ?: ""}")
|
override val classes: Array<String> = arrayOf("uk-padding${suffix ?.let { "-$it" } ?: ""}")
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitPosition(classname: String) : UIKitModifier {
|
sealed class UIKitPosition(classname: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf(classname)
|
override val classes: Array<String> = arrayOf(classname)
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitScreenSizeModifier(val name: String) {
|
sealed class UIKitScreenSizeModifier(val name: String) {
|
||||||
class UIKitScreenSizeModifierModified (
|
class UIKitScreenSizeModifierModified (
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitTable(suffix: String) : UIKitModifier {
|
sealed class UIKitTable(suffix: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf("uk-table-$suffix")
|
override val classes: Array<String> = arrayOf("uk-table-$suffix")
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitText(suffix: String) : UIKitModifier {
|
sealed class UIKitText(suffix: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf("uk-text-$suffix")
|
override val classes: Array<String> = arrayOf("uk-text-$suffix")
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
class UIKitTooltipModifier(
|
class UIKitTooltipModifier(
|
||||||
text: String,
|
text: String,
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitUtility(classname: String) : UIKitModifier {
|
sealed class UIKitUtility(classname: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf(classname)
|
override val classes: Array<String> = arrayOf(classname)
|
@ -1,4 +1,4 @@
|
|||||||
package dev.inmo.jsuikit.defaults.modifers
|
package dev.inmo.jsuikit.modifers
|
||||||
|
|
||||||
sealed class UIKitWidth(classname: String) : UIKitModifier {
|
sealed class UIKitWidth(classname: String) : UIKitModifier {
|
||||||
override val classes: Array<String> = arrayOf("uk-width-$classname")
|
override val classes: Array<String> = arrayOf("uk-width-$classname")
|
3
src/main/kotlin/dev/inmo/jsuikit/utils/Milliseconds.kt
Normal file
3
src/main/kotlin/dev/inmo/jsuikit/utils/Milliseconds.kt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package dev.inmo.jsuikit.utils
|
||||||
|
|
||||||
|
typealias Milliseconds = Long
|
Loading…
Reference in New Issue
Block a user