From 2f521a45848d7cf0af4b179bef57a80e363c91b0 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 2 Aug 2022 18:40:17 +0600 Subject: [PATCH] improve grid attributes --- CHANGELOG.md | 2 ++ .../dev/inmo/jsuikit/modifiers/UIKitGrid.kt | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index af83c35..5ab560b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 0.1.10 +* `Grid` support improvements + ## 0.1.9 * `Artile` elements become supported diff --git a/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitGrid.kt b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitGrid.kt index 1de9752..0e4a3b0 100644 --- a/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitGrid.kt +++ b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitGrid.kt @@ -14,6 +14,24 @@ sealed class UIKitGrid(vararg classnames: String) : UIKitModifier { } + sealed class Column(classname: String) : UIKitGrid(classname) { + + object Small : Column("uk-grid-column-small") + object Medium : Column("uk-grid-column-medium") + object Large : Column("uk-grid-column-large") + object Collapse : Column("uk-grid-column-collapse") + + } + + sealed class Row(classname: String) : UIKitGrid(classname) { + + object Small : Row("uk-grid-row-small") + object Medium : Row("uk-grid-row-medium") + object Large : Row("uk-grid-row-large") + object Collapse : Row("uk-grid-row-collapse") + + } + object Divider : UIKitGrid("uk-grid-divider") object MatchHeight : UIKitGrid("uk-grid-match")