Skip to content

Latest commit

 

History

History
211 lines (177 loc) · 21.5 KB

CHANGELOG.md

File metadata and controls

211 lines (177 loc) · 21.5 KB

Changelog

[2.9.2] - February 24th, 2025

  • [BREAKING] ExpandableCard property headerIconSize has been renamed to headerToggleIconSize.
  • Card, ExpandableCard and CardTip now support customizing the shadow color when elevation is enabled.
  • Padding for the Card header and footer can now be customized.
  • Added a new Modifier extension to apply a mesh gradient background to a composable.

[2.9.1] - February 3rd, 2025

  • [BREAKING] ExpandableCard and CardTip now use their own Defaults objects (ExpandableCardDefaults and CardTipDefaults, respectively) for color and size customization.
  • [BREAKING] Card color and size customization methods have been renamed to CardDefaults.colors() and CardDefaults.sizes().
  • [FIX] Card layout has been improved to fix incorrect padding.

[2.9.0] - January 24, 2025

  • Added Snackbar composable to easily customize the default snackbar.
  • Added RadioButton composable with automatic icon toggling when tapping on the radio button.
  • Added PaywallProductCard component to easily display the main information of a purchasable product on a paywall.
  • Added applySpanStyle() String and AnnotatedString extension functions to apply a given SpanStyle to specified substrings within the main string, returning an AnnotatedString.
  • Added onLifecycleEvents LifecycleOwner extension function to observe lifecycle events within a Composable and execute corresponding callbacks when events occur.

[2.8.1] - January 13, 2025

  • Add support for JVM targets.

[2.8.0] - January 12, 2025

  • AlertDialog now uses Material 3 for non-iOS targets and Cupertino for iOS target (via UIKit).
  • CarouselDashes - Auto-switch to next dash animation can now be disabled using animated = false.
  • Update Kotlin to 2.1.0.
  • Update Compose Multiplatform to 1.7.3.
  • Update Gradle to 8.11.1.
  • New basic sample apps on Android and iOS to showcase CZAN. For now, only Button and AlertDialog are added to the sample.

[2.7.0] - December 16, 2024

  • [BREAKING] 🍎 Removed Cupertino look & feel on iOS due to compose-cupertino being incompatible with Compose >= 1.7.0 (and apparently not maintained anymore).
  • Added a new LinearProgressBar constructor for creating indeterminate progress bars.
  • Authentication buttons now properly reflect the disabled state.
  • TextField now allows customization of keyboard capitalization, defaulting to KeyboardCapitalization.Sentences, which capitalizes the first letter of each sentence.

[2.6.0] - November 26, 2024

  • [BREAKING] Removed extension function StateFlow.collectAsStateMultiplatform. Use StateFlow.collectAsStateWithLifecycle() instead.
  • Added new composables: DashedLine and Slider.
  • SharedFlow.subscribe() now collects only when the lifecycle is STARTED.
  • Carousel now includes customization of page spacing.
  • Card, ExpandableCard, and CardTip sizes are now encapsulated within a CardSizes object.
  • TopBar offers more customization, including a TopBarWithCustomIcon() and granular color customization for title, navigationIcon, and actionIcon.
  • [FIX] Resolved UI glitches in LinearProgressBar and CarouselDash after upgrading to CMP 1.7.0.

[2.5.0] - October 16, 2024

  • Update Compose Multiplatform to 1.7.0.

[2.4.0] - October 16, 2024

  • Added support for KS and WasmJS targets, enabling CZAN on the web.
  • Added automatic documentation deployment on czan.dev.
  • Button now includes a loading state with animations, displaying ... when loading.
  • AuthenticationButtons now have a flag to enable or disable them.
  • Added onHoldTouch() Modifier extension function to handle tap events when the user holds the composable.
  • [FIX] Corrected border color for outlined buttons to use MaterialTheme.colorScheme.outline.
  • Update Kotlin to 2.0.21.
  • Update Gradle to 8.7.0.

[2.3.3] - September 26, 2024

  • [BREAKING] NavigationBars now have a mandatory icon parameter and an optional label.
  • [BREAKING] Chip now includes distinct click callbacks: onClick for the entire chip and onCloseClick for the close icon.
  • Added Color.parseColor(hex: String) extension function to convert hex colors to Color:
val colorNoHashNoAlpha: Color = Color.parseColor("00FF00")
val colorNoHashWithAlpha: Color = Color.parseColor("FF00FF00")
val colorWithHashNoAlpha: Color = Color.parseColor("#00FF00")
val colorWithHashWithAlpha: Color = Color.parseColor("#FF00FF00")
val light_myNewColor = Color(0xFF...)
val dark_myNewColor = Color(0xFF...)
val myNewColor = colorResource(colorLight = light_myNewColor, colorDark = dark_myNewColor)

Text(color = myNewColor, ...)

[2.3.2] - August 28, 2024

SimpleTopBar(
    modifier = modifier,
    title = "Screen title",
    // ...
    actions = {
        TopBarAction(icon = Res.drawable.profile, onClick = onProfileClicked, contentDescription = stringResource(resource = Res.string.topbar_action_profile))
    }
)

[2.3.1] - August 1, 2024

[2.3.0] - May 28, 2024

  • Official support for Kotlin 2.0.

[2.2.1] - Apr 28, 2024

  • Added CardTip composable for displaying small tip messages with a leading icon.
  • Added Checkbox composable with optional text.
  • Added LeadingIconText composable for displaying text with a leading icon.
  • Added ExpandableNumericKeyboard for showing or hiding the numeric keyboard.
  • [FIX] Resolved padding issues in Button between text and leading icon.
  • [FIX] Removed decimal separator in NumericKeyboard when deleting the last decimal.
  • [FIX] Fixed incorrect decimal handling in NumericKeyboard when allowDecimals = false.

[2.2.0] - April 5, 2024

  • Added ContextMenu composable, adapting the look & feel of the target platform: Material3 for Android, Cupertino for iOS.
  • Added NumericKeyboard composable for handling numeric inputs.
  • Button now supports DrawableResource for leading and trailing icons.
  • Improved state management for Card to prevent state loss during recomposition.
  • TextField now offers three sizes: Small, Regular, Big (TextFieldSize).

[2.1.2] - March 20, 2024

[2.1.1] - March 6, 2024

  • Update Compose Multiplatform to version 1.6.0.
  • Dependencies are now managed through a Bill of Materials (BoM): kmp-bom.
  • [FIX] Removed unused dependency placeholder-material3 that was preventing CZAN from functioning on Android.

[2.1.0] - February 22, 2024

  • [BREAKING] Introduced the Compose Cupertino library to adapt the app's look & feel to the targeted platform (Material 3 for Android and Cupertino for iOS). Follow the provided instructions to properly set up your app's theme.
  • Added Scaffold composable, which wraps the Material3 Scaffold class to automatically use the platform's look & feel.
  • Added NavigationBar composable, which wraps the Material3 NavigationBar class to automatically use the platform's look & feel.
  • Added NavigationBarItem composable, which wraps the Material3 NavigationBarItem class to automatically use the platform's look & feel.

[2.0.2] - February 19, 2024

  • Added a new implementation of Icon that accepts a Painter as a parameter:
fun Icon(
    modifier: Modifier = Modifier,
    painter: Painter,
    tint: Color = LocalContentColor.current,
    contentDescription: String? = null
)
  • Update Compose Multiplatform to version 1.6.0-rc02.

[2.0.1] - February 2, 2024

  • Added BoxWithAnimatedBorder composable, which wraps a given composable with a surface featuring colored animated borders.
  • Added new Kotlin extension functions to enhance functionality.

[2.0.0] - January 8, 2025

  • [BREAKING]: Migrated from JitPack to Maven Central. Update your dependency to:
implementation("io.github.tweener:czan:2.0.0")
  • 🎉 CZAN is now compatible with Compose Multiplatform!
  • Replaced Glide with Coil for image fetching due to technical challenges with Compose Multiplatform.

[1.1.4] - December 28, 2023

  • Added more customization options to Chip.
  • Added more customization options to Chip.
  • Increased text sizes for Button for better readability.

[1.1.3] - December 19, 2023

  • [BREAKING]: Removed the @UIModePreviews annotation; replaced by the official @PreviewLightDark annotation in Compose.
  • Added Chip composable, which wraps the Material3 InputChip.

[1.1.2] - December 13, 2023

  • Updated Image composable to include a wrapper for Material3's Image with imageVector support.

[1.1.1] - December 13, 2023

  • Added Icon atom to wrap Material3 Icon.
  • Updated Image composable to support various image types, including drawable resources, bitmaps, and URLs (via Glide).

[1.1.0] - November 27, 2023

  • Updated packages hierarchy to apply atomic design system guidelines.

[1.0.6] - November 27, 2023

  • Renamed repository to c-zan-android.
  • Updated all references from "Cezanne" to "Czan".

[1.0.5] - November 3, 2023

  • Added Glide dependency.
  • Added Image composable to load image URLs.

[1.0.4] - October 20, 2023

[1.0.3] - October 12, 2023

  • Updated SystemBarsSystemUI to allow customization.

[1.0.2] - October 10, 2023

  • Added OutlineText component.

[1.0.1] - October 10, 2023

  • Allowed color customization for the CenterAlignedTopAppBar component.

[1.0.0] - September 27, 2023

  • First release of the Design System Cezanne for Android.