Package-level declarations

Functions

Link copied to clipboard
fun CardTitle(title: String, modifier: ERROR CLASS: Symbol not found for Modifier = Modifier)

A card section title: a short accent bar followed by bold title text.

Link copied to clipboard
fun CircularProgressBarComponent(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier)

Renders a centered circular progress indicator that fills the available screen space.

Link copied to clipboard
fun InfoRow(label: String, value: String?, modifier: ERROR CLASS: Symbol not found for Modifier = Modifier)

A label/value row for displaying a single field. The label is muted and the value is emphasized and right-aligned. Renders nothing when value is null or blank, so sparse API responses simply omit missing fields.

Link copied to clipboard
fun MomoCard(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, content: ERROR CLASS: Symbol not found for androidx.compose.foundation.layout.ColumnScope.() -> Unit)

An elevated, rounded surface card used to group related content on a screen.

Link copied to clipboard
fun MomoScaffold(titleRes: Int, navController: ERROR CLASS: Symbol not found for NavController??, snackStateFlow: ERROR CLASS: Symbol not found for SharedFlow<io/rekast/sdk/sample/utils/SnackBarComponentConfiguration>, content: (ERROR CLASS: Symbol not found for PaddingValues) -> Unit)

Shared screen shell for the sample app. Wraps a themed Scaffold with the app TopBar, navigation Drawer, and snackbar host so every screen shares one consistent, dark-mode-aware chrome. Surfaces and the drawer follow MaterialTheme (MTN blue in light, deep neutral in dark).

Link copied to clipboard
fun PaymentDataScreenComponent(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, title: String, submitButtonText: String, phoneNumber: String, financialId: String, amount: String, paymentMessage: String, paymentNote: String, onRequestPayButtonClicked: () -> Unit, onPhoneNumberUpdated: (String) -> Unit, onFinancialIdUpdated: (String) -> Unit, onAmountUpdated: (String) -> Unit, onPayerMessageUpdated: (String) -> Unit, onPayerNoteUpdated: (String) -> Unit)

Renders a payment data capture form with fields for phone number, financial ID, amount, payment message, and payment note, along with a submit button.

Link copied to clipboard
fun RowDivider(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier)

A thin full-width divider used to separate rows inside a card.

Link copied to clipboard
fun SectionHeader(titleResId: Int, modifier: ERROR CLASS: Symbol not found for Modifier = Modifier)

Renders a bold section title followed by a full-width horizontal divider.

Link copied to clipboard
Link copied to clipboard
fun SnackBarComponent(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, snackBarHostState: ERROR CLASS: Symbol not found for SnackbarHostState, type: SnackBarType = SnackBarType.INFO)

Renders a SnackbarHost whose Snackbar is colored by its semantic type: green for SnackBarType.SUCCESS, red for SnackBarType.ERROR, and MTN blue for SnackBarType.INFO. The action label keeps the MTN yellow accent in all cases for brand consistency.

Link copied to clipboard
Link copied to clipboard
fun StatusPill(text: String, color: ERROR CLASS: Symbol not found for Color, modifier: ERROR CLASS: Symbol not found for Modifier = Modifier)

A pill-shaped status chip with a tinted background and matching label color.

Link copied to clipboard
fun textFieldDefaultsComponent(): ERROR CLASS: Symbol not found for TextFieldColors

Returns a theme-aware TextFieldColors configuration for text fields throughout the sample application. Container and indicator colors resolve from MaterialTheme so fields render correctly in both light and dark mode while keeping the MTN accent for focus and cursor.

Link copied to clipboard
fun textShapeDefaultComponent(): ERROR CLASS: Symbol not found for Shape

Returns the Shape applied to text fields throughout the sample application.