Skip to content

Commit 17aa1f4

Browse files
refactor(design-system): rework on SwipeableRow to include Dismiss, Reveal and Reset behaviours; ditch out from M3 implementation (#10679)
2 parents d708b7c + 2bbca23 commit 17aa1f4

12 files changed

Lines changed: 1463 additions & 427 deletions

File tree

app-ui-catalog/src/main/kotlin/net/thunderbird/ui/catalog/ui/page/molecule/CatalogMoleculeContent.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import net.thunderbird.ui.catalog.ui.page.molecule.CatalogMoleculePage.STATE
1111
import net.thunderbird.ui.catalog.ui.page.molecule.CatalogMoleculePage.SWIPEABLE_ROW
1212
import net.thunderbird.ui.catalog.ui.page.molecule.CatalogMoleculePage.TAB_ROW
1313
import net.thunderbird.ui.catalog.ui.page.molecule.items.PullToRefresh
14+
import net.thunderbird.ui.catalog.ui.page.molecule.items.SwipeableRowItems
1415
import net.thunderbird.ui.catalog.ui.page.molecule.items.inputItems
1516
import net.thunderbird.ui.catalog.ui.page.molecule.items.stateItems
16-
import net.thunderbird.ui.catalog.ui.page.molecule.items.swipeableRowItems
1717
import net.thunderbird.ui.catalog.ui.page.molecule.items.tabRowItems
1818

1919
@Composable
@@ -32,13 +32,13 @@ fun CatalogMoleculeContent(
3232
INPUT -> inputItems()
3333
STATE -> stateItems()
3434
TAB_ROW -> tabRowItems()
35-
SWIPEABLE_ROW -> swipeableRowItems()
3635
else -> throw IllegalArgumentException("Unknown page: $it")
3736
}
3837
},
3938
onRenderFullScreenPage = { page ->
4039
when (page) {
4140
PULL_TO_REFRESH -> PullToRefresh()
41+
SWIPEABLE_ROW -> SwipeableRowItems()
4242
else -> throw IllegalArgumentException("Unknown page: $page")
4343
}
4444
},

app-ui-catalog/src/main/kotlin/net/thunderbird/ui/catalog/ui/page/molecule/CatalogMoleculePage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ enum class CatalogMoleculePage(
1111
STATE("States"),
1212
PULL_TO_REFRESH("Pull to refresh", isFullScreen = true),
1313
TAB_ROW("Tab Rows"),
14-
SWIPEABLE_ROW("Swipeable Rows"),
14+
SWIPEABLE_ROW("Swipeable Rows", isFullScreen = true),
1515
;
1616

1717
override fun toString(): String {

0 commit comments

Comments
 (0)