Skip to content

Releases: composablehorizons/compose-unstyled

1.38.1

25 Jul 03:38
Compare
Choose a tag to compare

Bug fixes

– Consume IME insets when imeAware is used aa8f1ee

1.38.0

24 Jul 10:36
Compare
Choose a tag to compare

What's new

  • Introduce imeAware sheet property. This causes the sheet to move automatically if the ime is visible. (#83, #74)
  • Introduce outline() Modifier. Unlike border(), this modifier does not affect layout or size.
  • Introduce ProvideContentColor and ProvideTextStyle. Those are helper functions to override LocalContentColor and LocalTextStyle respectfully.
  • Support dynamic detent heights by providing a SheetState#invalidateDetents(). Callers can use this new function to update their detents manually when needed (#79).

Bug Fixes

  • Fix bottom sheet crash on iOS by @LukasAnda in #94
  • Remove capping of sheet content height

Other

  • Remove ime example from demo app
  • Remove obsolete Box from BottomSheet component
  • Add project url

New Contributors

Full Changelog: 1.37.0...1.38.0

1.37.0

12 Jul 00:27
Compare
Choose a tag to compare

What's Changed

  • e5f9386 Introduce new ThemeOverride() function, that allows the user to override their theme tokens within composables
  • 9319b16 Add new textColor param to TextField

Bug Fixes

Installation

implementation("com.composables:core:1.37.0")

1.36.1

27 Jun 10:05
Compare
Choose a tag to compare

What's new

Introduce new APIs for RadioGroup, TabGroup and DropdownMenu (previously called "Menu"). These components are fully stateless and allow easier wrapping, when building custom design systems.

  • 273eb09 Introduce simplified RadioGroup component
  • 914b18c Introduce TabGroup component that does not use scopes
  • dfa3d88 Introduce stateless DropdownMenu component
  • Introduce ColoredIndication class to create Indication simpler

What's Changed

  • e1c679c Move Icon to com.composeunstyled package and deprecate old version
  • d097599 Deprecate Menu in favor of DropdownMenu
  • 7f8f9c7 Deprecate old RadioGroup and TabGroup
  • 063bb32 Add shape, backgroundColor, contentColor and contentPadding to MenuContent

Others

  • 3b6bec9 Use merge over copy when merging text styles
  • 6e59e0a Remove deprecated Menu overload
  • 32cf448 Give unique ids to each OverscrollSides

Installation

implementation("com.composables:core:1.36.1")

1.35.0 – Theming

26 Jun 14:07
Compare
Choose a tag to compare

Introducing Theming

Basic Example

// define the properties you care about
val colors = ThemeProperty<Color>("colors")
val accent = ThemeToken<Color>("accent")

// create a theme and assign values to tokens
val MyTheme = buildTheme {
    properties[colors] = mapOf(
        accent to Color.Black,
    )
}

// use the theme to style your app
@Composable
fun App() {
    MyTheme {
        Text("Hello Beautiful world!", color = Theme[colors][accent])
    }
}

What's Changed

  • a556cd1 Revert using softkeyboard insets on CMP

Technical

  • 5bf48c7 Replace update demo script with gradle task
  • b8fd539 Remove blocking of scrolling in js demo

Installation

implementation("com.composables:core:1.35.0")

1.34.0

23 Jun 08:13
Compare
Choose a tag to compare

What's Changed

  • 859f691 Introduce progress() function in sheets, that allows user to be explicit about the detents they need to monitor (thanks @makeevrserg)
  • 037fef0 Set useSoftwareKeyboardInset = true on CMP Modal so that the Modal behaves the same on both iOS and Android while the soft keyboard is toggled (thanks @arok)

Breaking

  • 9a8a3a7 Remove deprecated LocalModalWindow from com.composables.core package. Use the same Local from the com.composeunstyled package instead

Other

  • 1cfaf6a Replace individual sourceSets with "cmp" sourceSet
  • 0562624 Remove logs
  • e4ae774 Automate github release text
  • 2dc6f27 Remove development team from iOS demo app

Installation

implementation("com.composables:core:1.34.0")

1.33.0

17 Jun 14:58
Compare
Choose a tag to compare

What's new

  • Bottom Sheet's current detent will now update only when the sheet has reached a detent
  • Bottom Sheet's target detent will now correctly report the detent the sheet is heading to, instead of the closest detent (a9508d9)
    (2c4f806)
  • Added backgroundColor, contentColor, shape and contentPadding to Dialog, BottomSheet, ModalBottomSheet, TabList and Tab (08fcb08, bbb2ec2, c719098)
  • Default rememberRadioGroupState()'s initial value to null (a29f0b5)
  • Added contentPadding to TextInput() 3c56742

Breaking changes

  • Removed deprecated currentDetent setter API. Replace it with targetDetent instead. (abe370b)

Bug Fixes

  • BottomSheetState isIdle is not working with custom detents #86 (thanks @hannta)
  • Fix a bug where the focus ring would not go away after unfocused 23a4f94

Full Changelog: 1.32.0...1.33.0

1.32.0

13 Jun 08:03
Compare
Choose a tag to compare

🆕 Join the Discord

Come hang in the #compose-unstyled channel in the Discord: http://composables.com/discord

What's new

  • New slot based TextField API with finer styling and accessibility options. (605f612) (See Docs)

Improvements

  • Default all InteractionSources to null (f0ea6bb)
  • Make rememberDialogState default to initiallyVisible = false (be7902d)
  • Disable Bottom Sheet dragging if only one Detent is passed (fdd2132)
  • Upgrade Kotlin to 2.1.21 and Compose to 1.8.1
  • Replace usage of deprecated ScrollableDefaults.overscrollEffect() with rememberOverscrollEffect() (22675c4)

Full Changelog: 1.31.1...1.32.0

1.31.1

21 May 20:31
Compare
Choose a tag to compare

Bug Fixes

Full Changelog: 1.31.0...1.31.1

1.31.0

13 May 13:35
Compare
Choose a tag to compare

What's new

  • Updated CMP to 1.8.0 (#71 - thanks @tomekid)
  • Enabled StrongSkipping mode (3b4918d)
  • There is now a Demo app you can use as a sample (1a0d26b – See Demo.kt for the source)

Bug Fixes

  • Fixed a bug where even though ModalBottomSheetState#isIdle was true, its current and target detents were different. It is now always guaranteed they will match to avoid confusion (a6384a8)

Improvements

  • Removed composetheme and composeicons dependencies
  • Remove all demo modules for a single demo app. This has the benefit of having to download only one Compose Web app instead of multiple, hence improved docs UX.

Full Changelog: 1.30.0...1.31.0