Package-level declarations

Types

Link copied to clipboard

Visual defaults for ContractCallProgressBar; dark-theme friendly.

Link copied to clipboard

Holder for the contract-call stage stream. Pass report straight to a contract call's onProgress, render stage with ContractCallProgressBar, and call clear when the call finishes (typically in a finally).

Functions

Link copied to clipboard
fun ContractCallProgressBar(stage: ContractCallStage?, modifier: Modifier = Modifier, accent: Color = ContractCallProgressDefaults.Accent, trackColor: Color = ContractCallProgressDefaults.Track, labelColor: Color = ContractCallProgressDefaults.Label, showLabel: Boolean = true)

Stateless staged progress bar. Renders the stage's label above a slim, monotonic (never retreats), eased fill; hides itself when stage is null (no call in flight) and resets between calls.

Link copied to clipboard
fun Modifier.dappPressable(shape: Shape = RoundedCornerShape(12.dp), enabled: Boolean = true, selected: Boolean = false, pressedScale: Float = 0.96f, onClick: () -> Unit): Modifier

Clickable modifier with Material-3 interaction feedback for the panel's custom-drawn chips and pills (the ones built on Box/Row rather than a Material Button, which already has its own state layers).

Link copied to clipboard

Human-readable default label for a ContractCallStage; null if none applies.

Link copied to clipboard
fun PanelBar(network: MidnightNetwork = MidnightNetwork.UNDEPLOYED, onNetworkChange: (MidnightNetwork) -> Unit = {}, onSigilStatusChange: (SigilStatus) -> Unit = {}, modifier: Modifier = Modifier)

Top-of-screen row that hosts the panel chips: sigil identity on the left, wallet status on the right.

Link copied to clipboard

Maps a ContractCallStage to a 0..1 progress value for the bar.