Merge pull request #3 from InsanusMokrassar/0.0.3

0.0.3
This commit is contained in:
InsanusMokrassar 2022-01-12 16:38:04 +06:00 committed by GitHub
commit 951a51a057
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
45 changed files with 80 additions and 74 deletions

View File

@ -1,3 +1,7 @@
## 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`

View File

@ -9,5 +9,5 @@ android.enableJetifier=true
# Project data # Project data
group=dev.inmo group=dev.inmo
version=0.0.2 version=0.0.3

View File

@ -1,6 +1,6 @@
package dev.inmo.jsuikit.defaults package dev.inmo.jsuikit
import dev.inmo.jsuikit.defaults.modifers.AttributeValue import dev.inmo.jsuikit.modifers.AttributeValue
import org.jetbrains.compose.web.attributes.AttrsBuilder import org.jetbrains.compose.web.attributes.AttrsBuilder
class UIKitAttributeValueBuilder { class UIKitAttributeValueBuilder {

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,8 +1,8 @@
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
import dev.inmo.jsuikit.defaults.modifers.* import dev.inmo.jsuikit.modifers.*
import org.jetbrains.compose.web.attributes.InputType import org.jetbrains.compose.web.attributes.InputType
import org.jetbrains.compose.web.attributes.disabled import org.jetbrains.compose.web.attributes.disabled
import org.jetbrains.compose.web.dom.* import org.jetbrains.compose.web.dom.*

View File

@ -1,9 +1,9 @@
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
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier import dev.inmo.jsuikit.modifers.UIKitModifier
import dev.inmo.jsuikit.defaults.modifers.include import dev.inmo.jsuikit.modifers.include
import org.jetbrains.compose.web.dom.* import org.jetbrains.compose.web.dom.*
import org.w3c.dom.HTMLElement import org.w3c.dom.HTMLElement
import org.w3c.dom.events.Event import org.w3c.dom.events.Event

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.Composable
import org.jetbrains.compose.web.dom.Hr 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 androidx.compose.runtime.Composable
import dev.inmo.jsuikit.defaults.modifers.* import dev.inmo.jsuikit.buildAndAddAttribute
import dev.inmo.jsuikit.defaults.utils.Milliseconds import dev.inmo.jsuikit.modifers.*
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

View File

@ -1,8 +1,8 @@
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.modifers.UIKitModifier
import dev.inmo.jsuikit.defaults.modifers.include import dev.inmo.jsuikit.modifers.include
import org.jetbrains.compose.web.dom.Div import org.jetbrains.compose.web.dom.Div
import org.jetbrains.compose.web.dom.ElementScope import org.jetbrains.compose.web.dom.ElementScope
import org.w3c.dom.HTMLDivElement import org.w3c.dom.HTMLDivElement

View File

@ -1,8 +1,8 @@
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.modifers.UIKitModifier
import dev.inmo.jsuikit.defaults.modifers.include import dev.inmo.jsuikit.modifers.include
import org.jetbrains.compose.web.dom.Div import org.jetbrains.compose.web.dom.Div
import org.jetbrains.compose.web.dom.ElementScope import org.jetbrains.compose.web.dom.ElementScope
import org.w3c.dom.HTMLDivElement import org.w3c.dom.HTMLDivElement

View File

@ -1,7 +1,7 @@
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.modifers.*
import org.jetbrains.compose.web.dom.Button import org.jetbrains.compose.web.dom.Button
import org.jetbrains.compose.web.dom.Span import org.jetbrains.compose.web.dom.Span
import org.w3c.dom.events.Event import org.w3c.dom.events.Event

View File

@ -1,8 +1,8 @@
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.modifers.UIKitModifier
import dev.inmo.jsuikit.defaults.modifers.include import dev.inmo.jsuikit.modifers.include
import org.jetbrains.compose.web.dom.Span import org.jetbrains.compose.web.dom.Span
import org.jetbrains.compose.web.dom.Text import org.jetbrains.compose.web.dom.Text

View File

@ -1,9 +1,9 @@
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
import dev.inmo.jsuikit.defaults.modifers.UIKitModifier import dev.inmo.jsuikit.modifers.UIKitModifier
import dev.inmo.jsuikit.defaults.modifers.include import dev.inmo.jsuikit.modifers.include
import org.jetbrains.compose.web.dom.* import org.jetbrains.compose.web.dom.*
import org.w3c.dom.HTMLUListElement import org.w3c.dom.HTMLUListElement

View File

@ -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.defaults.modifers.* import dev.inmo.jsuikit.buildAndAddAttribute
import dev.inmo.jsuikit.defaults.utils.Milliseconds import dev.inmo.jsuikit.modifers.*
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

View File

@ -1,8 +1,8 @@
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.modifers.UIKitModifier
import dev.inmo.jsuikit.defaults.modifers.include import dev.inmo.jsuikit.modifers.include
import org.jetbrains.compose.web.dom.Div import org.jetbrains.compose.web.dom.Div
import org.jetbrains.compose.web.dom.Nav import org.jetbrains.compose.web.dom.Nav

View File

@ -1,8 +1,8 @@
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.modifers.UIKitModifier
import dev.inmo.jsuikit.defaults.modifers.include import dev.inmo.jsuikit.modifers.include
import org.jetbrains.compose.web.attributes.AttrsBuilder import org.jetbrains.compose.web.attributes.AttrsBuilder
import org.jetbrains.compose.web.dom.* import org.jetbrains.compose.web.dom.*
import org.w3c.dom.HTMLLIElement import org.w3c.dom.HTMLLIElement

View File

@ -1,8 +1,8 @@
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.modifers.UIKitModifier
import dev.inmo.jsuikit.defaults.modifers.include import dev.inmo.jsuikit.modifers.include
import org.jetbrains.compose.web.dom.Progress import org.jetbrains.compose.web.dom.Progress
@Composable @Composable

View File

@ -1,7 +1,7 @@
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.modifers.*
import org.jetbrains.compose.web.dom.Div import org.jetbrains.compose.web.dom.Div
@Composable @Composable

View File

@ -1,8 +1,8 @@
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
import dev.inmo.jsuikit.defaults.modifers.* import dev.inmo.jsuikit.modifers.*
import org.jetbrains.compose.web.dom.* import org.jetbrains.compose.web.dom.*
@Composable @Composable

View File

@ -1,8 +1,8 @@
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.modifers.UIKitModifier
import dev.inmo.jsuikit.defaults.modifers.include import dev.inmo.jsuikit.modifers.include
import org.jetbrains.compose.web.attributes.* import org.jetbrains.compose.web.attributes.*
import org.jetbrains.compose.web.dom.Input import org.jetbrains.compose.web.dom.Input

View File

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

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 { sealed class UIKitAlign(classnameSuffix: String) : UIKitModifier {
override val classes: Array<String> = arrayOf("uk-align-$classnameSuffix") override val classes: Array<String> = arrayOf("uk-align-$classnameSuffix")

View File

@ -1,4 +1,4 @@
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, AttributeValue(name) {
override val classes: Array<String> = arrayOf("uk-animation-$name") override val classes: Array<String> = arrayOf("uk-animation-$name")

View File

@ -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")

View File

@ -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")

View File

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

View File

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

View File

@ -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")

View File

@ -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")

View File

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

View File

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

View File

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

View File

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

View File

@ -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")

View File

@ -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" } ?: ""}")

View File

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

View File

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

View File

@ -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")

View File

@ -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")

View File

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

View File

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