Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
data class JchuExpandableDescriptionConfig(val defaultExpanded: Boolean = false, val maxCollapsedLines: Int = 3, val minCharactersForExpansion: Int = 100, val animationDurationMs: Int = 300, val enableHapticFeedback: Boolean = true, val textAlign: TextAlign = TextAlign.Start)
Android defaults copied from iNook's Compose implementation.
Link copied to clipboard
class JchuLegacyExpandableDescriptionColors(val contentColor: Color = Color(0xFF8B7E6D), val gradientColor: Color = Color(0xFF8B7E6D), val containerColor: Color = Color(0xFF8B7E6D))
Functions
Link copied to clipboard
fun BlurText(text: CharSequence, @FontRes font: Int, modifier: Modifier = Modifier, color: Color = Color.Unspecified, fontSize: TextUnit = TextUnit.Unspecified, textAlign: TextAlign? = null, overflow: TextOverflow = TextOverflow.Ellipsis, maxLines: Int = Int.MAX_VALUE, blurRadius: Dp = Dp.Unspecified, blurEnabled: Boolean = false)
Link copied to clipboard
fun JchuExpandableDescription(image: String, description: String?, modifier: Modifier = Modifier, shape: Shape = RoundedCornerShape(10.dp), config: JchuExpandableDescriptionConfig = JchuExpandableDescriptionConfig(), title: String = "Description", colors: JchuExpandableDescriptionColors = JchuExpandableDescriptionColors.default(), onExpandedChange: (Boolean) -> Unit? = null)
Link copied to clipboard
fun JchuExpandableDescriptionAction(image: String, description: String?, action: String, modifier: Modifier = Modifier, shape: Shape = RoundedCornerShape(10.dp), config: JchuExpandableDescriptionConfig = JchuExpandableDescriptionConfig(), title: String = "Description", colors: JchuExpandableDescriptionColors = JchuExpandableDescriptionColors.default(), onExpandedChange: (Boolean) -> Unit? = null, onActionClick: () -> Unit? = null)
Link copied to clipboard
fun JchuExpandableDescriptionGallery(description: String?, images: List<String>, modifier: Modifier = Modifier, shape: Shape = RoundedCornerShape(10.dp), config: JchuExpandableDescriptionConfig = JchuExpandableDescriptionConfig(), title: String = "Description", colors: JchuExpandableDescriptionColors = JchuExpandableDescriptionColors.default(), onExpandedChange: (Boolean) -> Unit? = null, onImageClick: (String, Int) -> Unit? = null)
Link copied to clipboard
fun JchuExpandableText(text: String, expanded: Boolean, onExpandedChange: (Boolean) -> Unit, modifier: Modifier = Modifier, collapsedMaxLines: Int = 3, expandLabel: String = "Show more", collapseLabel: String = "Show less", style: TextStyle = MaterialTheme.typography.bodyMedium, color: Color = MaterialTheme.colorScheme.onSurface)
Displays text with a caller-controlled expanded state.
Link copied to clipboard
fun JchuLegacyExpandableDescription(image: String, description: String?, modifier: Modifier = Modifier, shape: Shape = RoundedCornerShape(10.dp), defaultExpandState: Boolean = false, title: String = "Description", colors: JchuLegacyExpandableDescriptionColors = JchuLegacyExpandableDescriptionColors())
Literal port of the first-generation iNook expandable description.
Link copied to clipboard
fun JchuLegacySimpleDescription(modifier: Modifier = Modifier, image: String, title: String, description: String, shape: Shape = 10.cornerRadius(), colors: JchuLegacyExpandableDescriptionColors = JchuLegacyExpandableDescriptionColors())
Literal port of iNook's static first-generation description card.
Link copied to clipboard
fun JchuLegacySimpleExpandableText(description: String?, modifier: Modifier = Modifier, defaultExpandState: Boolean = false)
Link copied to clipboard
fun JchuSimpleExpandableText(description: String?, modifier: Modifier = Modifier, config: JchuExpandableDescriptionConfig = JchuExpandableDescriptionConfig(), colors: JchuExpandableDescriptionColors = JchuExpandableDescriptionColors.default(), onExpandedChange: (Boolean) -> Unit? = null)