mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
MTRH-1313 [jewel] Bring back function already used by Jewel users
252-only (cherry picked from commit 06208333bcc5755db0790ed2ffc75ce418523466) IJ-MR-170364 GitOrigin-RevId: 9dc831f5b51badf08c10f1a520c3d4574e58e7c4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0e231d8365
commit
bb64668d8a
@@ -137,6 +137,7 @@ org.jetbrains.jewel.ui.component.TabContentScope
|
||||
- tabContentAlpha-A_ZS63w(androidx.compose.ui.Modifier,J,androidx.compose.runtime.Composer,I):androidx.compose.ui.Modifier
|
||||
f:org.jetbrains.jewel.ui.component.TabStripKt
|
||||
- sf:TabStrip(java.util.List,org.jetbrains.jewel.ui.component.styling.TabStyle,androidx.compose.ui.Modifier,Z,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.runtime.Composer,I,I):V
|
||||
- sf:TabStrip(java.util.List,org.jetbrains.jewel.ui.component.styling.TabStyle,androidx.compose.ui.Modifier,Z,androidx.compose.runtime.Composer,I,I):V
|
||||
f:org.jetbrains.jewel.ui.component.TextContextMenu
|
||||
- androidx.compose.foundation.text.TextContextMenu
|
||||
- sf:$stable:I
|
||||
|
||||
@@ -1151,6 +1151,7 @@ public final class org/jetbrains/jewel/ui/component/TabState$Companion {
|
||||
|
||||
public final class org/jetbrains/jewel/ui/component/TabStripKt {
|
||||
public static final fun TabStrip (Ljava/util/List;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Landroidx/compose/ui/Modifier;ZLandroidx/compose/foundation/interaction/MutableInteractionSource;Landroidx/compose/runtime/Composer;II)V
|
||||
public static final fun TabStrip (Ljava/util/List;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Landroidx/compose/ui/Modifier;ZLandroidx/compose/runtime/Composer;II)V
|
||||
}
|
||||
|
||||
public final class org/jetbrains/jewel/ui/component/TabStripState : org/jetbrains/jewel/foundation/state/FocusableComponentState {
|
||||
|
||||
@@ -37,6 +37,7 @@ import androidx.compose.ui.semantics.CollectionInfo
|
||||
import androidx.compose.ui.semantics.collectionInfo
|
||||
import androidx.compose.ui.semantics.semantics
|
||||
import androidx.compose.ui.util.fastRoundToInt
|
||||
import org.jetbrains.jewel.foundation.ExperimentalJewelApi
|
||||
import org.jetbrains.jewel.foundation.GenerateDataFunctions
|
||||
import org.jetbrains.jewel.foundation.state.CommonStateBitMask
|
||||
import org.jetbrains.jewel.foundation.state.FocusableComponentState
|
||||
@@ -190,6 +191,16 @@ public fun TabStrip(
|
||||
}
|
||||
}
|
||||
|
||||
@ExperimentalJewelApi
|
||||
@Deprecated(
|
||||
"Use the version with explicit MutableInteractionSource",
|
||||
ReplaceWith("TabStrip(tabs, style, modifier, enabled, interactionSource)"),
|
||||
)
|
||||
@Composable
|
||||
public fun TabStrip(tabs: List<TabData>, style: TabStyle, modifier: Modifier = Modifier, enabled: Boolean = true) {
|
||||
TabStrip(tabs, style, modifier, enabled, remember { MutableInteractionSource() })
|
||||
}
|
||||
|
||||
@Immutable
|
||||
public sealed class TabData {
|
||||
public abstract val selected: Boolean
|
||||
|
||||
Reference in New Issue
Block a user