diff --git a/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/utils/Extension.kt b/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/utils/Extension.kt index 5963af6..fd386f0 100644 --- a/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/utils/Extension.kt +++ b/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/utils/Extension.kt @@ -27,8 +27,8 @@ import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.TextUnit import androidx.compose.ui.unit.isSpecified -inline fun Dp.orElse() = if (isSpecified) this else null +internal inline fun Dp.orElse() = if (isSpecified) this else null -inline fun Color.orElse() = if (isSpecified) this else null +internal inline fun Color.orElse() = if (isSpecified) this else null -inline fun TextUnit.orElse() = if (isSpecified) this else null \ No newline at end of file +internal inline fun TextUnit.orElse() = if (isSpecified) this else null \ No newline at end of file diff --git a/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/utils/Modifier.kt b/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/utils/Modifier.kt index 2116659..6974af5 100644 --- a/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/utils/Modifier.kt +++ b/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/utils/Modifier.kt @@ -33,7 +33,8 @@ import androidx.compose.ui.graphics.Shape import androidx.compose.ui.unit.dp @Stable -fun Modifier.status(enabled: Boolean) = if (enabled) this else alpha(0.5f) +internal fun Modifier.status(enabled: Boolean) = if (enabled) this else alpha(0.5f) @Stable -fun Modifier.borderOrNot(border: BorderStroke, shape: Shape = RectangleShape) = border.takeIf { it.width > 0.dp }?.let { border(it, shape) } ?: this \ No newline at end of file +internal fun Modifier.borderOrNot(border: BorderStroke, shape: Shape = RectangleShape) = + border.takeIf { it.width > 0.dp }?.let { border(it, shape) } ?: this \ No newline at end of file