Package-level declarations

Main package of the design library.

Types

Link copied to clipboard

Icon Position indicates where an icon will be displayed in the component.

Link copied to clipboard

Label Position indicates where a label will be displayed in the component.

Link copied to clipboard

Orientation to be used with Skapa components Orientation.Horizontal and Orientation.Vertical

Functions

Link copied to clipboard

Checks if the LayoutDirection is Right-to-Left.

Link copied to clipboard
fun MeasureUnconstrainedViewWidth(value: String, style: TextStyle, content: @Composable (measuredWidth: Dp) -> Unit)

Measures a component width without displays to then use the result, e.g QuantityStepper, Carousel counter badge

Link copied to clipboard
fun <T> Modifier.thenCheckNull(nullable: T?, block: @Composable Modifier.(value: T) -> Modifier): Modifier

Applies the modifier provided if the nullable value is not null, uses Modifier.then() Example: Modifier.thenCheckNull("NotNull") { clickable(onClick = it) }

Link copied to clipboard

Applies the modifier provided if the @param boolean value is true, uses Modifier.then() Example: Modifier.thenCheckTrue("BooleanValue") { minimumTouchTargetSize() }

Link copied to clipboard
fun RowScope.VerticalAlignedLabel(label: String, style: TextStyle, indicatorHeight: Dp, offset: Dp, startPadding: Dp = SkapaSpacing.space100)

Measures the text to vertically align it to the indicator. This function is used only in PriceModule component for alignment of offerMessage