Skip to content

Releases: huanshankeji/compose-multiplatform-material

v0.4.0

24 Oct 12:46
Compare
Choose a tag to compare
  • fix a bug that a dependent project might crash on Android and add the Android target explicitly for all modules
  • no longer publish the legacy module
  • bump Kotlin to 2.0.10, Compose Multiplatform to 1.7.0, Kobweb to 0.19.2, and our Compose HTML Material to 0.4.0

Common

  • add Arrangement.spacedBy
  • Move LoadingState here from Compose HTML Material
  • add color parameters to the text composables
  • rename InlineText to TaglessText
  • add the alpha modifiers
  • add a hidden modifier
  • add the clickable modifier and replace onClick with it
  • add the PaddingValues type
  • add a BoxWithConstraints layout composable that's still buggy on JS DOM
  • add flex-basis: 0 to the weight modifiers on JS DOM to make them consistent with the androidx.compose behavior
  • split the padding modifiers into outerPadding and innerPadding
  • add the VerticalScrollBox and HorizontalScrollBox composables as (better) alternatives to the *Scroll modifiers

Material 2

  • revamp TopAppBarScaffold to take a bottom bar, a floating action bottom, and a snackbar host, and fix some of its display issues on JS DOM
    • fix bugs that the action buttons don't show and their onClick callbacks are not passed on JS DOM
  • add the SnackbarHost (the Material 3 snackbar is not available in Material Web yet)
  • add RadioGroupColumn and improve RadioRow on JS DOM
  • add a platform-specific implementation for com.huanshankeji.compose.material2.ext.IconButton on JS DOM that's more idiomatic, and fix a bug that in some scenarios icons are not shown, by always importing "material-icons/iconfont/material-icons.css"

Material 3

  • add the menu composables DropdownMenu, DropdownMenuItem, ExposedDropdownMenuBox, and ExposedDropdownMenuWithTextField
  • add the progress indicator composables LinearProgressIndicator and CircularProgressIndicator
  • fix a bug in the text fields on JS DOM that causes the caret to be reset to the start whenever the value changes if the type attribute is set
  • make multiline text fields work on JS DOM
  • add an isInteractiveJsDom parameter to ListItemComponents

Navigation

  • initially support navigation

ViewModel

  • initially support ViewModel which delegates to raw UI state on Compose HTML / JS DOM

Demo

  • make the demo UI friendly on mobile

v0.3.0

10 May 05:04
Compare
Choose a tag to compare

Support Material 3. See the Updated README.md for more details.

v0.2.0

17 Apr 10:11
Compare
Choose a tag to compare

The project now depends on Kobweb Silk on Kotlin/JS (Compose HTML) and there is a universal multiplatform interface for Modifier, scopes, etc. akin to those in androidx.compose. Obsolete code including ModifierOrAttrsScope is moved to a legacy module.

v0.1.2

15 Mar 15:48
Compare
Choose a tag to compare
Merge branch 'main' into release

v0.1.2 release

v0.1.1

04 Jul 21:05
Compare
Choose a tag to compare
v0.1.1 release

There are no functional changes. Compose Multiplatform is bumped to 1.3.1 and KMDC is bumped to 0.1.0.

v0.1.0

10 Jan 13:00
Compare
Choose a tag to compare
Merge branch 'main' into release

v0.1.0 release (replacing the previous one)

The missing POM issue is fixed.