Package-level declarations
Types
Link copied to clipboard
object AirwallexColor
Link copied to clipboard
object AirwallexThemeConfig
Global theme configuration for Airwallex SDK UI. Configure theme using setThemeColor() and setDarkMode(). Context is initialized lazily when AirwallexTheme is first rendered.
Link copied to clipboard
Link copied to clipboard
data class SheetDetails<ContentType : Any>(val contentType: ContentType, val sheetState: SheetState, val onDismissRequested: StandardBottomSheetDismissal)
Link copied to clipboard
Link copied to clipboard
data class StandardTextFieldOptions(val singleLine: Boolean = true, val inputType: StandardTextFieldOptions.InputType = InputType.NORMAL, val returnType: StandardTextFieldOptions.ReturnType = ReturnType.DONE)
Functions
Link copied to clipboard
Link copied to clipboard
fun LifecycleEffect(event: Lifecycle.Event = Lifecycle.Event.ON_ANY, skipCount: Int = 0, onEvent: (Lifecycle.Event) -> Unit)
Link copied to clipboard
Link copied to clipboard
fun <ContentType : Any> StandardBottomSheet(sheetContent: @Composable (SheetDetails<ContentType>) -> Unit, modifier: Modifier = Modifier, onDismiss: () -> Unit? = null, skipPartiallyExpanded: Boolean = false, content: @Composable (onPresentRequested: (ContentType) -> Unit) -> Unit)
Link copied to clipboard
fun StandardIcon(@DrawableRes drawableRes: Int, size: Dp, padding: Dp, modifier: Modifier = Modifier, tint: Color = AirwallexColor.theme, contentDescription: String? = null)
Link copied to clipboard
fun StandardSearchBar(text: String, onTextChanged: (String?) -> Unit, modifier: Modifier = Modifier, typeface: TextStyle = AirwallexTypography.Body200.toComposeTextStyle(), textColorStyle: Color = AirwallexColor.textPrimary, backgroundColorStyle: Color = AirwallexColor.backgroundSecondary, hint: String = "", singleLine: Boolean = true)
fun StandardSearchBar(value: String, onValueChange: (String?) -> Unit, modifier: Modifier = Modifier, textStyle: TextStyle, textColor: Color, backgroundColor: Color, hint: String = "", enabled: Boolean = true, singleLine: Boolean = true, maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE, minLines: Int = 1, visualTransformation: VisualTransformation = VisualTransformation.None, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
Link copied to clipboard
fun StandardSolidButton(modifier: Modifier = Modifier, onClick: () -> Unit, text: String, containerColor: Color = AirwallexColor.theme, contentColor: Color = Color.Unspecified, textColor: Color = AirwallexColor.textInverse, typography: AirwallexTypography = AirwallexTypography.Headline100, buttonHeight: Dp? = null, buttonWidth: Modifier.() -> Modifier = { this.fillMaxWidth() }, cornerRadius: Dp = 8.dp, enabled: Boolean = true)
Link copied to clipboard
fun StandardText(@StringRes textRes: Int, modifier: Modifier = Modifier, color: Color = Color.Black, typography: AirwallexTypography = AirwallexTypography.Body100, textAlign: TextAlign? = null, overflow: TextOverflow = TextOverflow.Clip, maxLines: Int = Int.MAX_VALUE)
fun StandardText(text: String, modifier: Modifier = Modifier, color: Color = Color.Black, typography: AirwallexTypography = AirwallexTypography.Body100, textAlign: TextAlign? = null, overflow: TextOverflow = TextOverflow.Clip, maxLines: Int = Int.MAX_VALUE)
Link copied to clipboard
fun StandardTextField(text: TextFieldValue, hint: String?, onTextChanged: (TextFieldValue) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, readOnly: Boolean = false, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, supportText: String? = null, errorText: String? = null, isError: Boolean = false, isFieldRequired: Boolean = false, options: StandardTextFieldOptions = StandardTextFieldOptions(), leadingAccessory: @Composable () -> Unit? = null, trailingAccessory: @Composable () -> Unit? = null, onFocusChanged: (Boolean) -> Unit? = null, onComplete: () -> Unit? = null, textStyle: TextStyle = MaterialTheme.typography.bodyMedium, shape: Shape = RoundedCornerShape(8.dp))
fun StandardTextField(text: String, hint: String?, onTextChanged: (String) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, readOnly: Boolean = false, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, supportText: String? = null, errorText: String? = null, isError: Boolean = false, isFieldRequired: Boolean = false, options: StandardTextFieldOptions = StandardTextFieldOptions(), leadingAccessory: @Composable () -> Unit? = null, trailingAccessory: @Composable () -> Unit? = null, onFocusChanged: (Boolean) -> Unit? = null, onComplete: () -> Unit? = null, textStyle: TextStyle = MaterialTheme.typography.bodyMedium, shape: Shape = RoundedCornerShape(8.dp))
Link copied to clipboard
fun TextFieldWithPickerButton(modifier: Modifier = Modifier, hint: String? = null, supportText: String? = null, errorText: String? = null, title: String?, isFieldRequired: Boolean = false, enabled: Boolean = true, onPresentRequested: () -> Unit, shape: Shape = RoundedCornerShape(8.dp), leadingAccessory: @Composable () -> Unit? = null)