mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-11-30 05:58:45 +00:00
upfill UIKitText
This commit is contained in:
parent
d9a01a8ab8
commit
a88562d3c4
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## 0.0.29
|
## 0.0.29
|
||||||
|
|
||||||
|
* Unfilling of `UIKitText`
|
||||||
|
|
||||||
## 0.0.28
|
## 0.0.28
|
||||||
|
|
||||||
* Fixes in `UIKitWidth`
|
* Fixes in `UIKitWidth`
|
||||||
|
@ -3,16 +3,34 @@ package dev.inmo.jsuikit.modifiers
|
|||||||
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")
|
||||||
|
|
||||||
object Lead : UIKitText("lead")
|
sealed class Style(suffix: String) : UIKitText(suffix) {
|
||||||
object Meta : UIKitText("meta")
|
object Lead : Style("lead")
|
||||||
|
object Meta : Style("meta")
|
||||||
sealed class Alignment(suffix: String) : UIKitText(suffix) {
|
object Italic : Style("italic")
|
||||||
object Left : Alignment("left")
|
|
||||||
object Right : Alignment("right")
|
|
||||||
object Center : Alignment("center")
|
|
||||||
object Justify : Alignment("justify")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sealed class Size(suffix: String) : UIKitText(suffix) {
|
||||||
|
object Small : Size("small")
|
||||||
|
object Default : Size("default")
|
||||||
|
object Large : Size("large")
|
||||||
|
}
|
||||||
|
|
||||||
|
sealed class Weight(suffix: String) : UIKitText(suffix) {
|
||||||
|
object Light : Weight("light")
|
||||||
|
object Normal : Weight("normal")
|
||||||
|
object Bold : Weight("bold")
|
||||||
|
object Lighter : Weight("lighter")
|
||||||
|
object Bolder : Weight("bolder")
|
||||||
|
}
|
||||||
|
|
||||||
|
sealed class Transform(suffix: String) : UIKitText(suffix) {
|
||||||
|
object Capitalize : Transform("capitalize")
|
||||||
|
object Uppercase : Transform("uppercase")
|
||||||
|
object Lowercase : Transform("lowercase")
|
||||||
|
}
|
||||||
|
|
||||||
|
object DecorationNone : UIKitText("decoration-none")
|
||||||
|
|
||||||
sealed class Color(suffix: String) : UIKitText(suffix) {
|
sealed class Color(suffix: String) : UIKitText(suffix) {
|
||||||
object Muted : Color("muted")
|
object Muted : Color("muted")
|
||||||
object Emphasis : Color("emphasis")
|
object Emphasis : Color("emphasis")
|
||||||
@ -22,4 +40,32 @@ sealed class UIKitText(suffix: String) : UIKitModifier {
|
|||||||
object Warning : Color("warning")
|
object Warning : Color("warning")
|
||||||
object Danger : Color("danger")
|
object Danger : Color("danger")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
object Background : UIKitText("background")
|
||||||
|
|
||||||
|
sealed class Alignment(suffix: String) : UIKitText(suffix) {
|
||||||
|
|
||||||
|
sealed class Horizontal(suffix: String) : Alignment(suffix) {
|
||||||
|
object Left : Horizontal("left")
|
||||||
|
object Right : Horizontal("right")
|
||||||
|
object Center : Horizontal("center")
|
||||||
|
object Justify : Horizontal("justify")
|
||||||
|
}
|
||||||
|
|
||||||
|
sealed class Vertical(suffix: String) : Alignment(suffix) {
|
||||||
|
object Top : Vertical("top")
|
||||||
|
object Middle : Vertical("middle")
|
||||||
|
object Bottom : Vertical("bottom")
|
||||||
|
object Baseline : Vertical("baseline")
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
sealed class Wrapping(suffix: String) : UIKitText(suffix) {
|
||||||
|
|
||||||
|
object Truncate : Wrapping("truncate")
|
||||||
|
object Break : Wrapping("break")
|
||||||
|
object NoWrap : Wrapping("nowrap")
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user