Package-level declarations

Types

Link copied to clipboard

Defaults for ActionView rendering

Link copied to clipboard
sealed class InputFieldSizes

Represents the size configurations for an input field.

Link copied to clipboard
sealed interface RadioListItemResult

Represents the result of a radio list item selection.

Link copied to clipboard
sealed interface RadioListItemType

Represents a sealed interface for various types of radio list items.

Functions

Link copied to clipboard
fun ActionView(modifier: <Error class: unknown class> = Modifier, icon: <Error class: unknown class>? = null, title: String, description: String? = null, endSlot: () -> Unit, onClick: () -> Unit)
fun ActionView(modifier: <Error class: unknown class> = Modifier, icon: <Error class: unknown class>? = null, title: String, description: String? = null, endLabel: String? = null, endLabelColor: <Error class: unknown class> = AnsaTheme.colors.text.secondary, onClick: () -> Unit)

An interactive component to trigger an action.

Link copied to clipboard
fun CardIcon(card: <Error class: unknown class>, modifier: <Error class: unknown class> = Modifier)

Renders the Card brand logo in an Image.

Link copied to clipboard
fun CardInfoIndicator(cardInfo: <Error class: unknown class>, modifier: <Error class: unknown class> = Modifier, expired: Boolean = false)

An indicator for a given Card, displayed as the brand logo and a excerpt of the card number.

Link copied to clipboard
Link copied to clipboard
fun IconButtonSmall(modifier: <Error class: unknown class> = Modifier, icon: <Error class: unknown class>, enabled: Boolean = true, onClick: () -> Unit = {})

A icon focused, small-sized Button.

Link copied to clipboard
fun InlineAlert(modifier: <Error class: unknown class> = Modifier, icon: <Error class: unknown class>, iconTint: <Error class: unknown class> = Color.Unspecified, iconBackground: <Error class: unknown class> = Color.Unspecified, borderColor: <Error class: unknown class> = Color.Unspecified, primaryText: String, secondaryText: String? = null)

An alert to bring attention to another element, inline with existing content.

Link copied to clipboard
fun PrimaryButtonLarge(text: String, onClick: () -> Unit, modifier: <Error class: unknown class> = Modifier, enabled: Boolean = true, leftIcon: <Error class: unknown class>? = null, rightIcon: <Error class: unknown class>? = null, isLoading: Boolean = false)

A large-sized Button themed based upon dev.ansa.sdk.ui.theme.colors.ButtonColors.primary.

Link copied to clipboard
fun PrimaryButtonSmall(text: String, modifier: <Error class: unknown class> = Modifier, enabled: Boolean = true, leftIcon: <Error class: unknown class>? = null, rightIcon: <Error class: unknown class>? = null, isLoading: Boolean = false, onClick: () -> Unit)

A small-sized Button themed based upon dev.ansa.sdk.ui.theme.colors.ButtonColors.primary.

Link copied to clipboard
fun RadioGroup(modifier: <Error class: unknown class> = Modifier, items: List<RadioListItemType>, initialSelected: RadioListItemType? = null, verticalArrangement: <Error class: unknown class> = Arrangement.Top, horizontalAlignment: <Error class: unknown class> = Alignment.Start, contentPadding: <Error class: unknown class> = PaddingValues(), onSelectionChanged: (Int, RadioListItemResult.Finalized) -> Unit)

A composable function that renders a group of radio buttons.

Link copied to clipboard
fun <Error class: unknown class>.radioGroup(items: List<RadioListItemType>, initialSelected: RadioListItemType? = null, verticalArrangement: <Error class: unknown class> = Arrangement.Top, horizontalAlignment: <Error class: unknown class> = Alignment.Start, contentPadding: <Error class: unknown class> = PaddingValues(), onSelectionChanged: (RadioListItemType, RadioListItemResult?) -> Unit)

Extension function for LazyListScope that adds a RadioGroup to a lazy list.

fun <T> <Error class: unknown class>.radioGroup(items: List<T>, initialSelected: T? = null, itemTypeFor: (T) -> RadioListItemType, verticalArrangement: <Error class: unknown class> = Arrangement.Top, horizontalAlignment: <Error class: unknown class> = Alignment.Start, contentPadding: <Error class: unknown class> = PaddingValues(), onSelectionChanged: (T, RadioListItemResult.Finalized) -> Unit)

Extension function for LazyListScope that adds a generic RadioGroup to a lazy list.

Link copied to clipboard
fun RadioListItem(modifier: <Error class: unknown class> = Modifier, type: RadioListItemType, isSelected: Boolean = false, onSelected: (RadioListItemResult) -> Unit)

Composable function for rendering a radio list item.

Link copied to clipboard
fun SecondaryButtonLarge(text: String, onClick: () -> Unit, modifier: <Error class: unknown class> = Modifier, enabled: Boolean = true, leftIcon: <Error class: unknown class>? = null, rightIcon: <Error class: unknown class>? = null, isLoading: Boolean = false)

A large-sized Button themed based upon dev.ansa.sdk.ui.theme.colors.ButtonColors.secondary.

Link copied to clipboard
fun TextInputField(modifier: <Error class: unknown class> = Modifier, hint: String = "", value: String, sizes: InputFieldSizes = InputFieldSizes.Small, textColor: <Error class: unknown class>? = null, enabled: Boolean = true, minLines: Int = 1, maxLines: Int = 1, keyboardOptions: <Error class: unknown class> = KeyboardOptions.Default, leadingIcon: <Error class: unknown class>? = null, trailingIcon: <Error class: unknown class>? = null, iconColor: <Error class: unknown class>? = null, focusRequester: <Error class: unknown class>? = null, onTrailingIconClick: () -> Unit? = null, onValueChange: (String) -> Unit)

Composable function that creates a text input field with leading and trailing icons.

fun TextInputField(modifier: <Error class: unknown class> = Modifier, hint: String = "", value: String, sizes: InputFieldSizes = InputFieldSizes.Small, textColor: <Error class: unknown class>? = null, enabled: Boolean = true, minLines: Int = 1, maxLines: Int = 1, keyboardOptions: <Error class: unknown class> = KeyboardOptions.Default, leading: (<Error class: unknown class>) -> Unit = {}, trailing: (<Error class: unknown class>, () -> Unit?) -> Unit = { _, _ -> }, iconColor: <Error class: unknown class>? = null, focusRequester: <Error class: unknown class>? = null, onTrailingIconClick: () -> Unit? = null, onValueChange: (String) -> Unit)

A lower-level version of TextInputField that allows for custom composable leading and trailing content.

Link copied to clipboard
fun ToggleItem(modifier: <Error class: unknown class> = Modifier, text: String, isChecked: Boolean, onCheckedChange: (Boolean) -> Unit)

A themed toggle (switch) with accompanying text, according to the AnsaTheme established.

Link copied to clipboard
fun ToggleSwitch(isChecked: Boolean, onCheckedChange: (Boolean) -> Unit?, modifier: <Error class: unknown class> = Modifier, enabled: Boolean = true)

A themed toggle (switch) according to the AnsaTheme established.

Link copied to clipboard
fun TransactionItem(transaction: <Error class: unknown class>, modifier: <Error class: unknown class> = Modifier)

A composable function that displays a transaction item.

fun TransactionItem(title: String, dateTime: String, amount: String, adjustment: <Error class: unknown class>, modifier: <Error class: unknown class> = Modifier)

A composable function that displays a transaction item with a title, date/time, amount, and balance adjustment indicator.