Package-level declarations

Functions

Link copied to clipboard
fun <LABEL : Any, ITEM : Any> PilotPicker(pilotPicker: PilotPicker<LABEL, ITEM>, expanded: Boolean, onExpandedChange: (Boolean) -> Unit, modifier: Modifier = Modifier, dropDownModifier: Modifier = Modifier, dismissOnItemClick: Boolean = false, colors: MenuItemColors = MenuDefaults.itemColors(), itemColors: @Composable (label: LABEL) -> Unit, item: @Composable (item: ITEM) -> Unit)
Link copied to clipboard
fun PilotRichText(richText: PilotRichText, modifier: Modifier = Modifier, color: Color = Color.Unspecified, fontSize: TextUnit = TextUnit.Unspecified, fontStyle: FontStyle? = null, fontWeight: FontWeight? = null, fontFamily: FontFamily? = null, letterSpacing: TextUnit = TextUnit.Unspecified, textDecoration: TextDecoration? = null, textAlign: TextAlign? = null, lineHeight: TextUnit = TextUnit.Unspecified, overflow: TextOverflow = TextOverflow.Clip, softWrap: Boolean = true, maxLines: Int = Int.MAX_VALUE, minLines: Int = 1, onTextLayout: (TextLayoutResult) -> Unit = {}, style: TextStyle = LocalTextStyle.current, inlineTextContent: (PilotRichText.Content.Image) -> InlineTextContent = { image -> val placeholderSize = fontSize.takeOrElse { style.fontSize }.takeOrElse { 14.sp } defaultImageInlineTextContent( image = image, placeholder = Placeholder( // 1.5f gives us a little extra horizontal padding by default width = placeholderSize * 1.5f, height = placeholderSize, placeholderVerticalAlign = PlaceholderVerticalAlign.Center, ), ) })
Link copied to clipboard
fun PilotTextField(pilotTextField: PilotTextField, modifier: Modifier = Modifier, textStyle: TextStyle = LocalTextStyle.current, placeHolderStyle: TextStyle = LocalTextStyle.current, label: @Composable () -> Unit? = null, leadingIcon: @Composable () -> Unit? = null, trailingIcon: @Composable () -> Unit? = null, prefix: @Composable () -> Unit? = null, suffix: @Composable () -> Unit? = null, supportingText: @Composable () -> Unit? = null, isError: Boolean = false, keyboardActions: KeyboardActions = KeyboardActions(), singleLine: Boolean = false, maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE, minLines: Int = 1, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, shape: Shape = TextFieldDefaults.shape, colors: TextFieldColors = TextFieldDefaults.colors())