Releases: composablehorizons/compose-unstyled
Releases · composablehorizons/compose-unstyled
1.38.1
1.38.0
What's new
- Introduce
imeAware
sheet property. This causes the sheet to move automatically if the ime is visible. (#83, #74) - Introduce
outline()
Modifier. Unlikeborder()
, this modifier does not affect layout or size. - Introduce
ProvideContentColor
andProvideTextStyle
. Those are helper functions to overrideLocalContentColor
andLocalTextStyle
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
- @LukasAnda made their first contribution in #94
Full Changelog: 1.37.0...1.38.0
1.37.0
1.36.1
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 createIndication
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
Introducing Theming
- c881c79 🆕 Introduce a new
buildTheme { }
function, which allows you to create themes according to your design system's tokens. For full documentation checkout: https://composeunstyled.com/theme
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
Installation
implementation("com.composables:core:1.35.0")
1.34.0
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 thecom.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
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
andTab
(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
🆕 Join the Discord
Come hang in the #compose-unstyled
channel in the Discord: http://composables.com/discord
What's new
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()
withrememberOverscrollEffect()
(22675c4)
Full Changelog: 1.31.1...1.32.0
1.31.1
Bug Fixes
- Fixed broken Bottom Sheet
offset
(#76 – thanks @carvalho2707)
Full Changelog: 1.31.0...1.31.1
1.31.0
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