Releases: huanshankeji/compose-multiplatform-html-unified
Releases · huanshankeji/compose-multiplatform-html-unified
v0.5.0
What's Changed
Important changes:
-
This library is renamed from Compose Multiplatform Material to Compose Multiplatform HTML Unified which better describes its purpose since this release. The Maven coordinates have changed accordingly. Please adapt to these changes following the updated README.md.
-
replace the terms "Androidx"/"androidx"/"AndroidxCommon"/"androidxCommon" with Compose UI / "ComposeUi" / "composeUi" at appropriate places, both in docs and in code
This introduces some breaking changes. Please adapt accordingly. We are sorry for the inconvenience.
Functional change:
- delegate
Spacerjust toDivBoxon JS DOM because the KobwebSpacerhas a different semantic from the Compose UI one
Miscellaneous changes:
- bump Kotlin to 2.1.0, Compose Multiplatform to 1.7.1, and Kobweb to 0.20.0
- add a "side by side" demo hosted at https://huanshankeji.github.io/compose-multiplatform-html-unified/
- add CODE_OF_CONDUCT.md and CONTRIBUTING.md
- use the Kotlin binary compatibility validator
- run IntelliJ IDEA Code Cleanup and Reformat Code for the whole project
v0.4.0
- 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
LoadingStatehere from Compose HTML Material - add color parameters to the text composables
- rename
InlineTexttoTaglessText - add the
alphamodifiers - add a
hiddenmodifier - add the
clickablemodifier and replaceonClickwith it - add the
PaddingValuestype - add a
BoxWithConstraintslayout composable that's still buggy on JS DOM - add
flex-basis: 0to the weight modifiers on JS DOM to make them consistent with theandroidx.composebehavior - split the
paddingmodifiers intoouterPaddingandinnerPadding - add the
VerticalScrollBoxandHorizontalScrollBoxcomposables as (better) alternatives to the*Scrollmodifiers
Material 2
- revamp
TopAppBarScaffoldto 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
onClickcallbacks are not passed on JS DOM
- fix bugs that the action buttons don't show and their
- add the
SnackbarHost(the Material 3 snackbar is not available in Material Web yet) - add
RadioGroupColumnand improveRadioRowon JS DOM - add a platform-specific implementation for
com.huanshankeji.compose.material2.ext.IconButtonon 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, andExposedDropdownMenuWithTextField - add the progress indicator composables
LinearProgressIndicatorandCircularProgressIndicator - 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
typeattribute is set - make multiline text fields work on JS DOM
- add an
isInteractiveJsDomparameter 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