Skip to content

Releases: huanshankeji/compose-html-material

v0.5.0

21 Mar 07:55

Choose a tag to compare

What's Changed

Added

  • Add all remaining Material Web components including labs components (#20, #21):
    • Badge (MdBadge)
    • Chips (MdChipSet, MdAssistChip, MdFilterChip, MdInputChip, MdSuggestionChip)
    • Dialog (MdDialog)
    • Divider (MdDivider)
    • Item (MdItem)
    • Navigation Drawer (MdNavigationDrawer, MdNavigationDrawerModal)
    • Radio (MdRadio)
    • Segmented Button (MdOutlinedSegmentedButton, MdOutlinedSegmentedButtonSet)
    • Select (MdFilledSelect, MdOutlinedSelect, MdSelectOption)
    • Slider (MdSlider)
    • Tabs (MdTabs, MdPrimaryTab, MdSecondaryTab)
  • Add the compose-html-material3-maicol07-material-web-additions module with snackbar and top app bar components (MdSnackbar, MdSmallTopAppBar, MdCenterAlignedTopAppBar, MdMediumTopAppBar, MdLargeTopAppBar) based on maicol07's Material Web Additions (#32).
  • Add content parameter to MdCheckbox and MdSwitch (#19).
  • Add @ExperimentalComposeHtmlMaterialApi opt-in annotation for experimental APIs.
  • Add the extracted SlotScope interface and slot enums for type-safe component slot management.
  • Add the extracted IMdItemScope interface with common slots for item components.
  • Add some event attribute extensions in compose-html-common and compose-html-material3.

Changed

  • Bump dependencies to the latest.
    • Kotlin 2.3.20
    • Compose Multiplatform 1.10.3
    • Kobweb 0.24.0
    • Gradle 9.4.1
  • Support ES2015 compilation target by replacing require() with ES module imports (#18).
  • Improve Material 3 component wrappers with enums and consistent patterns (#22):
    • Use enums for slot values instead of slotEq... functions.
    • Revamp some APIs with new official Compose HTML typealiases and reorganize toElementScopeContent functions.
    • Reuse MenuPositioning for SelectMenuAlign.

Fixed

  • Fix MdMenuArgs bugs and add missing attrs = null defaults across components (#30).
  • Fix the bug that the legacy module was still published.
  • Fix a bug caused by a typo "typehead" → "typeahead".

Internal

  • Enable Gradle Configuration Cache.
  • Bump Dokka to 2.1.0.
  • Use the Kotlin binary compatibility validator.
  • Add API documentation generated by Dokka hosted on GitHub Pages (#8).
  • Add CODE_OF_CONDUCT.md and CONTRIBUTING.md.
  • Remove the Maven repository for Kobweb since it's published to Maven Central now.
  • Refactor CI to use extracted actions (#15).
  • Onboard with GitHub Copilot.
  • Revert the changes made due to Kotlin 2.0.0's type inference issue (#14).

New Contributors

  • @OpenWaygate made their first contribution in #15
  • @Copilot made their first contribution in #17

Full Changelog: v0.4.0...v0.5.0

v0.4.0

20 Oct 08:31

Choose a tag to compare

What's Changed

  • bump Kotlin to 2.0.10 and Compose to 1.7.0
  • Add the menu composables MdMenu, MdMenuItem, and MdSubMenu
  • Add the progress composables MdLinearProgress and MdCircularProgress
  • LoadingState is removed and moved to compose-multiplatform-material
  • add a TextareaInputType for the text field
  • the legacy modules are no longer published
  • fix a bug that the AttrsScope<*>.disabled function recursively calls itself

v0.3.0

09 May 15:57

Choose a tag to compare

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

v0.2.2

15 Mar 15:06

Choose a tag to compare

v0.2.2 release

v0.2.1

10 Mar 17:21

Choose a tag to compare

Merge branch 'main' into release

v0.2.1 release (This commit supersedes the previous release commit.)

There are no functional changes. The dependent Compose Multiplatform is bumped to 1.3.1.

v0.2.0

10 Jan 12:45

Choose a tag to compare

Merge branch 'main' into release

v0.2.0 release

v0.1.0-compose-1.1.1

02 Jun 07:25

Choose a tag to compare

v0.1.0-compose-1.1.1 release