global changes in packages

This commit is contained in:
InsanusMokrassar 2022-01-12 16:27:49 +06:00
parent a68b4c7d8e
commit 6c5dbdba87
44 changed files with 57 additions and 54 deletions

View File

@ -1,5 +1,7 @@
## 0.0.3
__Global changes in packages__
## 0.0.2
* Name of project has been changed: `jsuikitkotlin` -> `kjsuikit`

View File

@ -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
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
}

View File

@ -1,4 +0,0 @@
package dev.inmo.jsuikit.defaults.modifers
inline val UIKit
get() = js("UIkit")

View File

@ -1,3 +0,0 @@
package dev.inmo.jsuikit.defaults.utils
typealias Milliseconds = Long

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import androidx.compose.web.events.SyntheticMouseEvent

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffectResult

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import org.jetbrains.compose.web.dom.Hr

View File

@ -1,8 +1,9 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import dev.inmo.jsuikit.buildAndAddAttribute
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.Div
import org.w3c.dom.HTMLDivElement

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import dev.inmo.jsuikit.defaults.modifers.*

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import androidx.compose.runtime.snapshots.SnapshotStateList

View File

@ -1,8 +1,9 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import dev.inmo.jsuikit.buildAndAddAttribute
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.w3c.dom.HTMLLIElement
import org.w3c.dom.HTMLUListElement

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import dev.inmo.jsuikit.defaults.modifers.*

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.Composable
import androidx.compose.runtime.snapshots.SnapshotStateList

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults
package dev.inmo.jsuikit.elements
import androidx.compose.runtime.*
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier

View File

@ -1,3 +1,3 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class AttributeValue(val name: String)

View File

@ -0,0 +1,4 @@
package dev.inmo.jsuikit.modifers
inline val UIKit
get() = js("UIkit")

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitAlign(classnameSuffix: String) : UIKitModifier {
override val classes: Array<String> = arrayOf("uk-align-$classnameSuffix")

View File

@ -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")
object Fade : UIKitAnimation("fade")

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitBackground(suffix: String) : UIKitModifier {
override val classes: Array<String> = arrayOf("uk-background-$suffix")

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitButton(suffix: String) : UIKitModifier {
override val classes: Array<String> = arrayOf("uk-button-$suffix")

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitDropdown(classname: String) : UIKitModifier {
override val classes: Array<String> = arrayOf(classname)
@ -7,7 +7,7 @@ sealed class UIKitDropdown(classname: String) : UIKitModifier {
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") {
@ -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 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 False : Flip("false")

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitExtension(classname: String) : UIKitModifier {
override val classes: Array<String> = arrayOf(classname)

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitFlex(suffix: String) : UIKitModifier {
override val classes: Array<String> = arrayOf("uk-flex-$suffix")

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitGrid(suffix: String) : UIKitModifier {
override val classes: Array<String> = arrayOf("uk-grid-$suffix")

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitIconType(suffix: String?) : UIKitModifier {
override val classes: Array<String> = suffix ?.let {

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitMargin(val classname: String) : UIKitModifier {
override val classes: Array<String> = arrayOf(classname)

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
import org.jetbrains.compose.web.attributes.AttrsBuilder

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitNav(classname: String) : UIKitModifier {
override val classes: Array<String> = arrayOf(classname)

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitNavbar(suffix: String) : UIKitModifier {
override val classes: Array<String> = arrayOf("uk-navbar-$suffix")

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitPadding(suffix: String?) : UIKitModifier {
override val classes: Array<String> = arrayOf("uk-padding${suffix ?.let { "-$it" } ?: ""}")

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitPosition(classname: String) : UIKitModifier {
override val classes: Array<String> = arrayOf(classname)

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitScreenSizeModifier(val name: String) {
class UIKitScreenSizeModifierModified (

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitTable(suffix: String) : UIKitModifier {
override val classes: Array<String> = arrayOf("uk-table-$suffix")

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitText(suffix: String) : UIKitModifier {
override val classes: Array<String> = arrayOf("uk-text-$suffix")

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
class UIKitTooltipModifier(
text: String,

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitUtility(classname: String) : UIKitModifier {
override val classes: Array<String> = arrayOf(classname)

View File

@ -1,4 +1,4 @@
package dev.inmo.jsuikit.defaults.modifers
package dev.inmo.jsuikit.modifers
sealed class UIKitWidth(classname: String) : UIKitModifier {
override val classes: Array<String> = arrayOf("uk-width-$classname")

View File

@ -0,0 +1,3 @@
package dev.inmo.jsuikit.utils
typealias Milliseconds = Long