mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-11-30 05:58:45 +00:00
add support of sections
This commit is contained in:
parent
29efe4b5cd
commit
3afe6c2815
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
## 0.1.3
|
## 0.1.3
|
||||||
|
|
||||||
|
* Add support of sections
|
||||||
* Improve support of navbars
|
* Improve support of navbars
|
||||||
|
|
||||||
## 0.1.2
|
## 0.1.2
|
||||||
|
23
src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitSection.kt
Normal file
23
src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitSection.kt
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
package dev.inmo.jsuikit.modifiers
|
||||||
|
|
||||||
|
sealed class UIKitSection(vararg classes: String) : UIKitModifier {
|
||||||
|
override val classes: Array<String> = classes as Array<String>
|
||||||
|
|
||||||
|
sealed class Style(suffix: String) : UIKitSection("uk-section-$suffix") {
|
||||||
|
object Default : Style("default")
|
||||||
|
object Muted : Style("muted")
|
||||||
|
object Primary : Style("primary")
|
||||||
|
object Secondary : Style("secondary")
|
||||||
|
}
|
||||||
|
|
||||||
|
sealed class Size(suffix: String) : UIKitSection("uk-section-$suffix") {
|
||||||
|
object XSmall : Size("xsmall")
|
||||||
|
object Small : Size("small")
|
||||||
|
object Large : Size("large")
|
||||||
|
object XLarge : Size("xlarge")
|
||||||
|
}
|
||||||
|
|
||||||
|
object Overlap : UIKitSection("uk-section-overlap")
|
||||||
|
|
||||||
|
companion object : UIKitSection("uk-section")
|
||||||
|
}
|
@ -38,7 +38,10 @@ sealed class UIKitUtility(classname: String) : UIKitModifier {
|
|||||||
object Width : Responsive("width")
|
object Width : Responsive("width")
|
||||||
object Height : Responsive("height")
|
object Height : Responsive("height")
|
||||||
}
|
}
|
||||||
object PreserveWidth : UIKitUtility("uk-preserve-width")
|
sealed class Preserve(suffix: String) : UIKitUtility("uk-preserve-$suffix") {
|
||||||
|
object Width : Preserve("width")
|
||||||
|
object Color : Preserve("color")
|
||||||
|
}
|
||||||
|
|
||||||
sealed class Border(suffix: String) : UIKitUtility("uk-border-$suffix") {
|
sealed class Border(suffix: String) : UIKitUtility("uk-border-$suffix") {
|
||||||
object Rounded : Border("rounded")
|
object Rounded : Border("rounded")
|
||||||
@ -112,4 +115,8 @@ sealed class UIKitUtility(classname: String) : UIKitModifier {
|
|||||||
|
|
||||||
object Open : UIKitUtility("uk-open")
|
object Open : UIKitUtility("uk-open")
|
||||||
object Link : UIKitUtility("uk-link")
|
object Link : UIKitUtility("uk-link")
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
val PreserveWidth = Preserve.Width
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user