diff --git a/README.md b/README.md index 64cb062480..219566d954 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ [![JetBrains incubator](https://img.shields.io/badge/JetBrains-incubator-yellow)](https://github.com/JetBrains#jetbrains-on-github) [![CI checks](https://img.shields.io/github/actions/workflow/status/JetBrains/jewel/build.yml?logo=github)](https://github.com/JetBrains/jewel/actions/workflows/build.yml) [![Licensed under Apache 2.0](https://img.shields.io/github/license/JetBrains/jewel)](https://github.com/JetBrains/jewel/blob/main/LICENSE) [![Latest release](https://img.shields.io/github/v/release/JetBrains/jewel?include_prereleases&label=Latest%20Release&logo=github)](https://github.com/JetBrains/jewel/releases/latest) - # Jewel: a Compose for Desktop theme Jewel logo @@ -10,15 +9,52 @@ desktop-optimized theme and set of components. > [!WARNING] > -> This project is in active development, and caution is advised when considering it for production uses. You _can_, -> but you should expect APIs to change often, things to move around and/or break, and all that jazz. Binary -> compatibility is not currently guaranteed across releases, but it is an eventual aim for 1.0, if it is possible. +> This project is in active development, and caution is advised when considering it for production uses. You _can_ use +> it, but you should expect APIs to change often, things to move around and/or break, and all that jazz. Binary +> compatibility is not guaranteed across releases, and APIs are still in flux and subject to change. +> +> Writing 3rd party IntelliJ Plugins in Compose for Desktop is currently **not officially supported** by the IntelliJ +> Platform. It should work, but your mileage may vary, and if things break you're on your own. > -> Use at your own risk! (but have fun if you do!) +> Use at your own risk! + +Jewel provides an implementation of the IntelliJ Platform themes that can be used in any Compose for Desktop +application. Additionally, it has a Swing LaF Bridge that only works in the IntelliJ Platform (i.e., used to create IDE +plugins), but automatically mirrors the current Swing LaF into Compose for a native-looking, consistent UI. + +## Getting started + +To use Jewel in your app, you only need to add the relevant dependency. There are two scenarios: standalone Compose for +Desktop app, and IntelliJ Platform plugin. + +For now, Jewel artifacts aren't available on Maven Central. You need to add a custom Maven repository to your build: + +```kotlin +repositories { + maven("https://packages.jetbrains.team/maven/p/kpm/public/") + // Any other repositories you need (e.g., mavenCentral()) +} +``` + +If you're writing a **standalone app**, then you should depend on the `int-ui-standalone` artifact: + +```kotlin +dependencies { + implementation("org.jetbrains.jewel:jewel-int-ui-standalone:[jewel version]") + + // Optional, for custom decorated windows: + implementation("org.jetbrains.jewel:jewel-int-ui-decorated-window:[jewel version]") +} +``` + +For an **IntelliJ Platform plugin**, then you should depend on the appropriate `ide-laf-bridge` artifact: -Jewel provides stand-alone implementations of the IntelliJ Platform themes that can be used in any Compose for Desktop -application, and a Swing LaF Bridge that only works in the IntelliJ Platform (i.e., used to create IDE plugins), but -automatically mirrors the current Swing LaF into Compose for a native-looking, consistent UI. +```kotlin +dependencies { + // The platform version is a supported major IJP version (e.g., 232 or 233 for 2023.2 and 2023.3 respectively) + implementation("org.jetbrains.jewel:jewel-ide-laf-bridge-platform-specific:[jewel version]-ij-[platform version]") +} +``` ## Project structure @@ -26,15 +62,27 @@ The project is split in modules: 1. `buildSrc` contains the build logic, including: * The `jewel` and `jewel-publish` configuration plugins + * The `jewel-check-public-api` and `jewel-linting` configuration plugins * The Theme Palette generator plugin -2. `core` contains the foundational Jewel functionality, including the components and their styling primitives -3. `int-ui` implements the standalone version of the IntelliJ New UI, which implements the - ["Int UI" design system](https://www.figma.com/community/file/1227732692272811382/int-ui-kit), and can be used - anywhere -4. `ide-laf-bridge` contains the Swing LaF bridge to use in IntelliJ Platform plugins (see more below) -5. `samples` contains the example apps, which showcase the available components: - 1. `standalone` is a regular CfD app, using the predefined "base" theme definitions - 2. `ide-plugin` is an IntelliJ plugin, adding some UI to the IDE, and showcasing the use of the Swing Bridge + * The Studio Releases generator plugin +2. `foundation` contains the foundational Jewel functionality: + * Basic components without strong styling (e.g., `SelectableLazyColumn`, `BasicLazyTree`) + * The `JewelTheme` interface with a few basic composition locals + * The state management primitives + * The Jewel annotations + * A few other primitives +3. `ui` contains all the styled components and custom painters logic +4. `decorated-window` contains basic, unstyled functionality to have custom window decoration on the JetBrains Runtime +5. `int-ui` contains two modules: + * `int-ui-standalone` has a standalone version of the Int UI styling values that can be used in any Compose for + Desktop app + * `int-ui-decorated-window` has a standalone version of the Int UI styling values for the custom window decoration + that can be used in any Compose for Desktop app +6. `ide-laf-bridge` contains the Swing LaF bridge to use in IntelliJ Platform plugins (see more below) + * The `ide-laf-bridge-*` sub-modules contain code that is specific to a certain IntelliJ Platform version +7. `samples` contains the example apps, which showcase the available components: + * `standalone` is a regular CfD app, using the standalone theme definitions and custom window decoration + * `ide-plugin` is an IntelliJ plugin that showcases the use of the Swing Bridge ### Int UI Standalone theme @@ -46,31 +94,137 @@ to your heart's content. By default, it matches the official Int UI specs. > as it has extra features and patches for UI functionalities that aren't available in other JDKs. > We **do not support** running Jewel on any other JDK. +To use Jewel components in a non-IntelliJ Platform environment, you need to wrap your UI hierarchy in a `IntUiTheme` +composable: + +```kotlin +IntUiTheme(isDark = false) { + // ... +} +``` + +If you want more control over the theming, you can use other `IntUiTheme` overloads, like the standalone sample does. + +#### Custom window decoration + +The JetBrains Runtime allows windows to have a custom decoration instead of the regular title bar. + +![A screenshot of the custom window decoration in the standalone sample](art/docs/custom-chrome.png) + +The standalone sample app shows how to easily get something that looks like a JetBrains IDE; if you want to go _very_ +custom, you only need to depend on the `decorated-window` module, which contains all the required primitives, but not +the Int UI styling. + +To get an IntelliJ-like custom title bar, you need to pass the window decoration styling to your theme call, and add the +`DecoratedWindow` composable at the top level of the theme: + +```kotlin +IntUiTheme( + themeDefinition, + componentStyling = { + themeDefinition.decoratedWindowComponentStyling( + titleBarStyle = TitleBarStyle.light() + ) + }, +) { + DecoratedWindow( + onCloseRequest = { exitApplication() }, + ) { + // ... + } +} +``` + ### The Swing Bridge -Jewel includes a crucial element for proper integration with the IDE: a bridge between the Swing components, theme -and LaF, and the Compose world. +Jewel includes a crucial element for proper integration with the IDE: a bridge between the Swing components — theme +and LaF — and the Compose world. This bridge ensures that we pick up the colours, typography, metrics, and images as defined in the current IntelliJ -theme, and apply them to the Compose components as well — at least for themes that use the -standard [IntelliJ theming](https://plugins.jetbrains.com/docs/intellij/themes-getting-started.html) mechanisms. +theme, and apply them to the Compose components as well. This means Jewel will automatically adapt to IntelliJ Platform +themes that use the [standard theming](https://plugins.jetbrains.com/docs/intellij/themes-getting-started.html) +mechanisms. > [!NOTE] > IntelliJ themes that use non-standard mechanisms (such as providing custom UI implementations for Swing components) -> are not, and will never, be supported. +> are not, and can never, be supported. -If you're writing an IntelliJ Platform plugin, you should use the `SwingBridgeTheme` instead of a standalone theme. +If you're writing an IntelliJ Platform plugin, you should use the `SwingBridgeTheme` instead of the standalone theme: + +```kotlin +SwingBridgeTheme { + // ... +} +``` #### Accessing icons -When you want to draw an icon from the resources, you should use a `PainterProvider`. Reading an icon from the IDE is -as easy as using the `retrieveStatefulIcon()` and `retrieveStatelessIcon()`: +When you want to draw an icon from the resources, you can either use the `Icon` composable and pass it the resource path +and the corresponding class to look up the classpath from, or go one lever deeper and use the lower level, +`Painter`-based API. + +The `Icon` approach looks like this: + +```kotlin +// Load the "close" icon from the IDE's AllIcons class +Icon( + "actions/close.svg", + iconClass = AllIcons::class.java, + contentDescription = "Close", +) +``` + +To obtain a `Painter`, instead, you'd use: + +```kotlin +val painterProvider = rememberResourcePainterProvider( + path = "actions/close.svg", + iconClass = AllIcons::class.java +) +val painter by painterProvider.getPainter() +``` + +#### Icon runtime patching + +Jewel emulates the under-the-hood machinations that happen in the IntelliJ Platform when loading icons. Specifically, +the resource will be subject to some transformations before being loaded. + +For example, in the IDE, if New UI is active, the icon path may be replaced with a different one. Some key colors in SVG +icons will also be replaced based on the current theme. See +[the docs](https://plugins.jetbrains.com/docs/intellij/work-with-icons-and-images.html#new-ui-icons). + +Beyond that, even in standalone, Jewel will pick up icons with the appropriate dark/light variant for the current theme, +and for bitmap icons it will try to pick the 2x variants based on the `LocalDensity`. + +If you have a _stateful_ icon, that is if you need to display different icons based on some state, you can use the +`PainterProvider.getPainter(PainterHint...)` overload. You can then use one of the state-mapping `PainterHint` to let +Jewel load the appropriate icon automatically: ```kotlin -val svgLoader = service().svgLoader -val painterProvider = retrieveStatelessIcon("icons/bot-toolwindow.svg", svgLoader, iconData) +// myState implements SelectableComponentState and has a ToggleableState property +val myPainter by myPainterProvider.getPainter( + if (myState.toggleableState == ToggleableState.Indeterminate) { + IndeterminateHint + } else { + PainterHint.None + }, + Selected(myState), + Stateful(myState), +) ``` +Where the `IndeterminateHint` looks like this: + +```kotlin +private object IndeterminateHint : PainterSuffixHint() { + override fun suffix(): String = "Indeterminate" +} +``` + +Assuming the PainterProvider has a base path of `components/myIcon.svg`, Jewel will automatically translate it to the +right path based on the state. If you want to learn more about this system, look at the `PainterHint` interface and its +implementations. + ### Swing interoperability As this is Compose for Desktop, you get a good degree of interoperability with Swing. To avoid glitches and z-order @@ -79,7 +233,7 @@ issues, you should enable the before you initialize Compose content. The `ToolWindow.addComposeTab()` extension function provided by the `ide-laf-bridge` module will take care of that for -you, but if you want to also enable it in other scenarios and in standalone applications, you can call the +you. However, if you want to also enable it in other scenarios and in standalone applications, you can call the `enableNewSwingCompositing()` function in your Compose entry points (that is, right before creating a `ComposePanel`). > [!NOTE] @@ -94,20 +248,21 @@ If you don't already have access to the Kotlin Slack, you can request it [here](https://surveys.jetbrains.com/s3/kotlin-slack-sign-up). ## License + Jewel is licensed under the [Apache 2.0 license](https://github.com/JetBrains/jewel/blob/main/LICENSE). ``` - Copyright 2022–3 JetBrains s.r.o. +Copyright 2022–3 JetBrains s.r.o. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. ``` diff --git a/art/docs/custom-chrome.png b/art/docs/custom-chrome.png new file mode 100644 index 0000000000..a8a331a18f Binary files /dev/null and b/art/docs/custom-chrome.png differ diff --git a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/DecoratedWindow.kt b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/DecoratedWindow.kt index 9f3ea21d3e..521e0e795b 100644 --- a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/DecoratedWindow.kt +++ b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/DecoratedWindow.kt @@ -32,7 +32,7 @@ import androidx.compose.ui.window.WindowState import androidx.compose.ui.window.rememberWindowState import com.jetbrains.JBR import org.jetbrains.jewel.foundation.Stroke -import org.jetbrains.jewel.foundation.border +import org.jetbrains.jewel.foundation.modifier.border import org.jetbrains.jewel.foundation.theme.JewelTheme import org.jetbrains.jewel.window.styling.DecoratedWindowStyle import org.jetbrains.jewel.window.utils.DesktopPlatform diff --git a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.Linux.kt b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.Linux.kt index 6e05f29c2b..839882a16b 100644 --- a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.Linux.kt +++ b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.Linux.kt @@ -26,7 +26,8 @@ import java.awt.Frame import java.awt.event.MouseEvent import java.awt.event.WindowEvent -@Composable internal fun DecoratedWindowScope.TitleBarOnLinux( +@Composable +internal fun DecoratedWindowScope.TitleBarOnLinux( modifier: Modifier = Modifier, gradientStartColor: Color = Color.Unspecified, style: TitleBarStyle = JewelTheme.defaultTitleBarStyle, @@ -72,7 +73,8 @@ import java.awt.event.WindowEvent } } -@Composable private fun TitleBarScope.CloseButton( +@Composable +private fun TitleBarScope.CloseButton( onClick: () -> Unit, state: DecoratedWindowState, style: TitleBarStyle = JewelTheme.defaultTitleBarStyle, @@ -80,7 +82,8 @@ import java.awt.event.WindowEvent ControlButton(onClick, state, style.icons.closeButton, "Close", style, style.paneCloseButtonStyle) } -@Composable private fun TitleBarScope.ControlButton( +@Composable +private fun TitleBarScope.ControlButton( onClick: () -> Unit, state: DecoratedWindowState, painterProvider: PainterProvider, diff --git a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.MacOS.kt b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.MacOS.kt index 6b5397c54a..d81074faa7 100644 --- a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.MacOS.kt +++ b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.MacOS.kt @@ -55,7 +55,8 @@ private class NewFullscreenControlsNode( var newControls: Boolean, ) : Modifier.Node() -@Composable internal fun DecoratedWindowScope.TitleBarOnMacOs( +@Composable +internal fun DecoratedWindowScope.TitleBarOnMacOs( modifier: Modifier = Modifier, gradientStartColor: Color = Color.Unspecified, style: TitleBarStyle = JewelTheme.defaultTitleBarStyle, diff --git a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.Windows.kt b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.Windows.kt index f7185c64cf..6897c351b5 100644 --- a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.Windows.kt +++ b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.Windows.kt @@ -17,7 +17,8 @@ import org.jetbrains.jewel.foundation.theme.JewelTheme import org.jetbrains.jewel.ui.util.isDark import org.jetbrains.jewel.window.styling.TitleBarStyle -@Composable internal fun DecoratedWindowScope.TitleBarOnWindows( +@Composable +internal fun DecoratedWindowScope.TitleBarOnWindows( modifier: Modifier = Modifier, gradientStartColor: Color = Color.Unspecified, style: TitleBarStyle = JewelTheme.defaultTitleBarStyle, diff --git a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.kt b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.kt index 63d95f77d5..4a2a8174c5 100644 --- a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.kt +++ b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.kt @@ -70,7 +70,8 @@ internal const val TITLE_BAR_BORDER_LAYOUT_ID = "__TITLE_BAR_BORDER__" } } -@Composable internal fun DecoratedWindowScope.TitleBarImpl( +@Composable +internal fun DecoratedWindowScope.TitleBarImpl( modifier: Modifier = Modifier, gradientStartColor: Color = Color.Unspecified, style: TitleBarStyle = JewelTheme.defaultTitleBarStyle, @@ -224,7 +225,8 @@ internal class TitleBarMeasurePolicy( } } -@Composable internal fun rememberTitleBarMeasurePolicy( +@Composable +internal fun rememberTitleBarMeasurePolicy( window: Window, state: DecoratedWindowState, applyTitleBar: (Dp, DecoratedWindowState) -> PaddingValues, diff --git a/foundation/api/foundation.api b/foundation/api/foundation.api index 8fa1c415fa..e2173d4eae 100644 --- a/foundation/api/foundation.api +++ b/foundation/api/foundation.api @@ -13,14 +13,6 @@ public final class org/jetbrains/jewel/foundation/BorderColors { public final class org/jetbrains/jewel/foundation/BorderColors$Companion { } -public final class org/jetbrains/jewel/foundation/BorderKt { - public static final fun border (Landroidx/compose/ui/Modifier;Lorg/jetbrains/jewel/foundation/Stroke;Landroidx/compose/ui/graphics/Shape;)Landroidx/compose/ui/Modifier; - public static final fun border-AkepmR4 (Landroidx/compose/ui/Modifier;Lorg/jetbrains/jewel/foundation/Stroke$Alignment;FLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Shape;F)Landroidx/compose/ui/Modifier; - public static synthetic fun border-AkepmR4$default (Landroidx/compose/ui/Modifier;Lorg/jetbrains/jewel/foundation/Stroke$Alignment;FLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Shape;FILjava/lang/Object;)Landroidx/compose/ui/Modifier; - public static final fun border-QWjY48E (Landroidx/compose/ui/Modifier;Lorg/jetbrains/jewel/foundation/Stroke$Alignment;FJLandroidx/compose/ui/graphics/Shape;F)Landroidx/compose/ui/Modifier; - public static synthetic fun border-QWjY48E$default (Landroidx/compose/ui/Modifier;Lorg/jetbrains/jewel/foundation/Stroke$Alignment;FJLandroidx/compose/ui/graphics/Shape;FILjava/lang/Object;)Landroidx/compose/ui/Modifier; -} - public final class org/jetbrains/jewel/foundation/CompatibilityKt { public static final fun enableNewSwingCompositing ()V } @@ -248,7 +240,7 @@ public final class org/jetbrains/jewel/foundation/lazy/SelectableColumnOnKeyEven } public final class org/jetbrains/jewel/foundation/lazy/SelectableLazyColumnKt { - public static final fun SelectableLazyColumn (Landroidx/compose/ui/Modifier;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Landroidx/compose/foundation/layout/PaddingValues;ZLkotlin/jvm/functions/Function1;Landroidx/compose/foundation/layout/Arrangement$Vertical;Landroidx/compose/ui/Alignment$Horizontal;Landroidx/compose/foundation/gestures/FlingBehavior;Lorg/jetbrains/jewel/foundation/tree/KeyBindingActions;Lorg/jetbrains/jewel/foundation/tree/PointerEventActions;Landroidx/compose/foundation/interaction/MutableInteractionSource;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;III)V + public static final fun SelectableLazyColumn (Landroidx/compose/ui/Modifier;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Landroidx/compose/foundation/layout/PaddingValues;ZLkotlin/jvm/functions/Function1;Landroidx/compose/foundation/layout/Arrangement$Vertical;Landroidx/compose/ui/Alignment$Horizontal;Landroidx/compose/foundation/gestures/FlingBehavior;Lorg/jetbrains/jewel/foundation/lazy/tree/KeyBindingActions;Lorg/jetbrains/jewel/foundation/lazy/tree/PointerEventActions;Landroidx/compose/foundation/interaction/MutableInteractionSource;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;III)V } public abstract interface class org/jetbrains/jewel/foundation/lazy/SelectableLazyItemScope : androidx/compose/foundation/lazy/LazyItemScope { @@ -333,187 +325,35 @@ public final class org/jetbrains/jewel/foundation/lazy/SelectionMode : java/lang public static fun values ()[Lorg/jetbrains/jewel/foundation/lazy/SelectionMode; } -public final class org/jetbrains/jewel/foundation/modifier/OnHoverModifierKt { - public static final fun onHover (Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;)Landroidx/compose/ui/Modifier; -} - -public final class org/jetbrains/jewel/foundation/state/CommonStateBitMask { - public static final field $stable I - public static final field FIRST_AVAILABLE_OFFSET I - public static final field INSTANCE Lorg/jetbrains/jewel/foundation/state/CommonStateBitMask; - public final fun getActive-s-VKNKU ()J - public final fun getEnabled-s-VKNKU ()J - public final fun getFocused-s-VKNKU ()J - public final fun getHovered-s-VKNKU ()J - public final fun getIndeterminate-s-VKNKU ()J - public final fun getPressed-s-VKNKU ()J - public final fun getSelected-s-VKNKU ()J -} - -public abstract interface class org/jetbrains/jewel/foundation/state/FocusableComponentState : org/jetbrains/jewel/foundation/state/InteractiveComponentState { - public abstract fun chooseValue (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Landroidx/compose/runtime/Composer;I)Ljava/lang/Object; - public abstract fun isFocused ()Z -} - -public final class org/jetbrains/jewel/foundation/state/FocusableComponentState$DefaultImpls { - public static fun chooseValue (Lorg/jetbrains/jewel/foundation/state/FocusableComponentState;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Landroidx/compose/runtime/Composer;I)Ljava/lang/Object; -} - -public abstract interface class org/jetbrains/jewel/foundation/state/InteractiveComponentState { - public abstract fun isActive ()Z - public abstract fun isEnabled ()Z - public abstract fun isHovered ()Z - public abstract fun isPressed ()Z -} - -public abstract interface class org/jetbrains/jewel/foundation/state/SelectableComponentState : org/jetbrains/jewel/foundation/state/FocusableComponentState { - public abstract fun isSelected ()Z -} - -public final class org/jetbrains/jewel/foundation/state/SelectableComponentState$DefaultImpls { - public static fun chooseValue (Lorg/jetbrains/jewel/foundation/state/SelectableComponentState;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Landroidx/compose/runtime/Composer;I)Ljava/lang/Object; -} - -public abstract interface class org/jetbrains/jewel/foundation/state/ToggleableComponentState : org/jetbrains/jewel/foundation/state/SelectableComponentState { - public static final field Companion Lorg/jetbrains/jewel/foundation/state/ToggleableComponentState$Companion; - public abstract fun getToggleableState ()Landroidx/compose/ui/state/ToggleableState; -} - -public final class org/jetbrains/jewel/foundation/state/ToggleableComponentState$Companion { - public final fun readToggleableState-VKZWuLQ (J)Landroidx/compose/ui/state/ToggleableState; -} - -public final class org/jetbrains/jewel/foundation/state/ToggleableComponentState$DefaultImpls { - public static fun chooseValue (Lorg/jetbrains/jewel/foundation/state/ToggleableComponentState;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Landroidx/compose/runtime/Composer;I)Ljava/lang/Object; -} - -public abstract interface class org/jetbrains/jewel/foundation/theme/JewelTheme { - public static final field Companion Lorg/jetbrains/jewel/foundation/theme/JewelTheme$Companion; -} - -public final class org/jetbrains/jewel/foundation/theme/JewelTheme$Companion { - public final fun getContentColor (Landroidx/compose/runtime/Composer;I)J - public final fun getGlobalColors (Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/foundation/GlobalColors; - public final fun getGlobalMetrics (Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/foundation/GlobalMetrics; - public final fun getTextStyle (Landroidx/compose/runtime/Composer;I)Landroidx/compose/ui/text/TextStyle; - public final fun isDark (Landroidx/compose/runtime/Composer;I)Z - public final fun isSwingCompatMode (Landroidx/compose/runtime/Composer;I)Z -} - -public final class org/jetbrains/jewel/foundation/theme/JewelThemeKt { - public static final fun JewelTheme (Lorg/jetbrains/jewel/foundation/theme/ThemeDefinition;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;I)V - public static final fun JewelTheme (Lorg/jetbrains/jewel/foundation/theme/ThemeDefinition;ZLkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;I)V - public static final fun OverrideDarkMode (ZLkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;I)V - public static final fun getLocalColorPalette ()Landroidx/compose/runtime/ProvidableCompositionLocal; - public static final fun getLocalContentColor ()Landroidx/compose/runtime/ProvidableCompositionLocal; - public static final fun getLocalIconData ()Landroidx/compose/runtime/ProvidableCompositionLocal; - public static final fun getLocalTextStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; -} - -public final class org/jetbrains/jewel/foundation/theme/ThemeColorPalette { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/foundation/theme/ThemeColorPalette$Companion; - public fun (Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/Map;)V - public final fun blue-vNxB06k (I)J - public final fun blueOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; - public fun equals (Ljava/lang/Object;)Z - public final fun getBlue ()Ljava/util/List; - public final fun getGreen ()Ljava/util/List; - public final fun getGrey ()Ljava/util/List; - public final fun getOrange ()Ljava/util/List; - public final fun getPurple ()Ljava/util/List; - public final fun getRawMap ()Ljava/util/Map; - public final fun getRed ()Ljava/util/List; - public final fun getTeal ()Ljava/util/List; - public final fun getYellow ()Ljava/util/List; - public final fun green-vNxB06k (I)J - public final fun greenOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; - public final fun grey-vNxB06k (I)J - public final fun greyOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; - public fun hashCode ()I - public final fun lookup-ijrfgN4 (Ljava/lang/String;)Landroidx/compose/ui/graphics/Color; - public final fun orange-vNxB06k (I)J - public final fun orangeOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; - public final fun purple-vNxB06k (I)J - public final fun purpleOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; - public final fun red-vNxB06k (I)J - public final fun redOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; - public final fun teal-vNxB06k (I)J - public final fun tealOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; - public fun toString ()Ljava/lang/String; - public final fun yellow-vNxB06k (I)J - public final fun yellowOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; -} - -public final class org/jetbrains/jewel/foundation/theme/ThemeColorPalette$Companion { - public final fun getEmpty ()Lorg/jetbrains/jewel/foundation/theme/ThemeColorPalette; -} - -public final class org/jetbrains/jewel/foundation/theme/ThemeDefinition { - public static final field $stable I - public synthetic fun (ZLorg/jetbrains/jewel/foundation/GlobalColors;Lorg/jetbrains/jewel/foundation/GlobalMetrics;Landroidx/compose/ui/text/TextStyle;JLorg/jetbrains/jewel/foundation/theme/ThemeColorPalette;Lorg/jetbrains/jewel/foundation/theme/ThemeIconData;Lkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public final fun getColorPalette ()Lorg/jetbrains/jewel/foundation/theme/ThemeColorPalette; - public final fun getContentColor-0d7_KjU ()J - public final fun getDefaultTextStyle ()Landroidx/compose/ui/text/TextStyle; - public final fun getGlobalColors ()Lorg/jetbrains/jewel/foundation/GlobalColors; - public final fun getGlobalMetrics ()Lorg/jetbrains/jewel/foundation/GlobalMetrics; - public final fun getIconData ()Lorg/jetbrains/jewel/foundation/theme/ThemeIconData; - public fun hashCode ()I - public final fun isDark ()Z - public fun toString ()Ljava/lang/String; -} - -public abstract interface class org/jetbrains/jewel/foundation/theme/ThemeDescriptor { - public abstract fun getColors ()Lorg/jetbrains/jewel/foundation/theme/ThemeColorPalette; - public abstract fun getIconData ()Lorg/jetbrains/jewel/foundation/theme/ThemeIconData; - public abstract fun getName ()Ljava/lang/String; - public abstract fun isDark ()Z -} - -public final class org/jetbrains/jewel/foundation/theme/ThemeIconData { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/foundation/theme/ThemeIconData$Companion; - public fun (Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;)V - public final fun getColorPalette ()Ljava/util/Map; - public final fun getIconOverrides ()Ljava/util/Map; - public final fun getSelectionColorPalette ()Ljava/util/Map; - public final fun selectionColorMapping ()Ljava/util/Map; -} - -public final class org/jetbrains/jewel/foundation/theme/ThemeIconData$Companion { - public final fun getEmpty ()Lorg/jetbrains/jewel/foundation/theme/ThemeIconData; -} - -public final class org/jetbrains/jewel/foundation/tree/BasicLazyTreeKt { - public static final fun BasicLazyTree-orM9XXQ (Lorg/jetbrains/jewel/foundation/tree/Tree;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;Lkotlin/jvm/functions/Function1;JJJFLandroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;FFLorg/jetbrains/jewel/foundation/tree/TreeState;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;JLorg/jetbrains/jewel/foundation/tree/KeyBindingActions;Lorg/jetbrains/jewel/foundation/tree/PointerEventActions;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;IIII)V +public final class org/jetbrains/jewel/foundation/lazy/tree/BasicLazyTreeKt { + public static final fun BasicLazyTree-orM9XXQ (Lorg/jetbrains/jewel/foundation/lazy/tree/Tree;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;Lkotlin/jvm/functions/Function1;JJJFLandroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;FFLorg/jetbrains/jewel/foundation/lazy/tree/TreeState;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;JLorg/jetbrains/jewel/foundation/lazy/tree/KeyBindingActions;Lorg/jetbrains/jewel/foundation/lazy/tree/PointerEventActions;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;IIII)V } -public final class org/jetbrains/jewel/foundation/tree/BuildTreeKt { - public static final fun asTree (Ljava/io/File;Lkotlin/jvm/functions/Function1;)Lorg/jetbrains/jewel/foundation/tree/Tree; - public static final fun asTree (Ljava/nio/file/Path;Lkotlin/jvm/functions/Function1;)Lorg/jetbrains/jewel/foundation/tree/Tree; - public static synthetic fun asTree$default (Ljava/io/File;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lorg/jetbrains/jewel/foundation/tree/Tree; - public static synthetic fun asTree$default (Ljava/nio/file/Path;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lorg/jetbrains/jewel/foundation/tree/Tree; - public static final fun buildTree (Lkotlin/jvm/functions/Function1;)Lorg/jetbrains/jewel/foundation/tree/Tree; +public final class org/jetbrains/jewel/foundation/lazy/tree/BuildTreeKt { + public static final fun asTree (Ljava/io/File;Lkotlin/jvm/functions/Function1;)Lorg/jetbrains/jewel/foundation/lazy/tree/Tree; + public static final fun asTree (Ljava/nio/file/Path;Lkotlin/jvm/functions/Function1;)Lorg/jetbrains/jewel/foundation/lazy/tree/Tree; + public static synthetic fun asTree$default (Ljava/io/File;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lorg/jetbrains/jewel/foundation/lazy/tree/Tree; + public static synthetic fun asTree$default (Ljava/nio/file/Path;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lorg/jetbrains/jewel/foundation/lazy/tree/Tree; + public static final fun buildTree (Lkotlin/jvm/functions/Function1;)Lorg/jetbrains/jewel/foundation/lazy/tree/Tree; } -public final class org/jetbrains/jewel/foundation/tree/ChildrenGeneratorScope : org/jetbrains/jewel/foundation/tree/TreeGeneratorScope { +public final class org/jetbrains/jewel/foundation/lazy/tree/ChildrenGeneratorScope : org/jetbrains/jewel/foundation/lazy/tree/TreeGeneratorScope { public static final field $stable I - public fun (Lorg/jetbrains/jewel/foundation/tree/Tree$Element$Node;)V - public fun add (Lorg/jetbrains/jewel/foundation/tree/TreeBuilder$Element;)V + public fun (Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element$Node;)V + public fun add (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeBuilder$Element;)V public fun addLeaf (Ljava/lang/Object;Ljava/lang/Object;)V public fun addNode (Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)V - public final fun getParent ()Lorg/jetbrains/jewel/foundation/tree/ChildrenGeneratorScope$ParentInfo; + public final fun getParent ()Lorg/jetbrains/jewel/foundation/lazy/tree/ChildrenGeneratorScope$ParentInfo; } -public final class org/jetbrains/jewel/foundation/tree/ChildrenGeneratorScope$ParentInfo { +public final class org/jetbrains/jewel/foundation/lazy/tree/ChildrenGeneratorScope$ParentInfo { public static final field $stable I public fun (Ljava/lang/Object;II)V public final fun component1 ()Ljava/lang/Object; public final fun component2 ()I public final fun component3 ()I - public final fun copy (Ljava/lang/Object;II)Lorg/jetbrains/jewel/foundation/tree/ChildrenGeneratorScope$ParentInfo; - public static synthetic fun copy$default (Lorg/jetbrains/jewel/foundation/tree/ChildrenGeneratorScope$ParentInfo;Ljava/lang/Object;IIILjava/lang/Object;)Lorg/jetbrains/jewel/foundation/tree/ChildrenGeneratorScope$ParentInfo; + public final fun copy (Ljava/lang/Object;II)Lorg/jetbrains/jewel/foundation/lazy/tree/ChildrenGeneratorScope$ParentInfo; + public static synthetic fun copy$default (Lorg/jetbrains/jewel/foundation/lazy/tree/ChildrenGeneratorScope$ParentInfo;Ljava/lang/Object;IIILjava/lang/Object;)Lorg/jetbrains/jewel/foundation/lazy/tree/ChildrenGeneratorScope$ParentInfo; public fun equals (Ljava/lang/Object;)Z public final fun getData ()Ljava/lang/Object; public final fun getDepth ()I @@ -522,18 +362,18 @@ public final class org/jetbrains/jewel/foundation/tree/ChildrenGeneratorScope$Pa public fun toString ()Ljava/lang/String; } -public class org/jetbrains/jewel/foundation/tree/DefaultMacOsTreeColumnKeybindings : org/jetbrains/jewel/foundation/tree/DefaultTreeViewKeybindings { +public class org/jetbrains/jewel/foundation/lazy/tree/DefaultMacOsTreeColumnKeybindings : org/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewKeybindings { public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/foundation/tree/DefaultMacOsTreeColumnKeybindings$Companion; + public static final field Companion Lorg/jetbrains/jewel/foundation/lazy/tree/DefaultMacOsTreeColumnKeybindings$Companion; public fun ()V public fun isKeyboardMultiSelectionKeyPressed-5xRPYO0 (I)Z public fun isKeyboardMultiSelectionKeyPressed-ZmokQxo (Ljava/lang/Object;)Z } -public final class org/jetbrains/jewel/foundation/tree/DefaultMacOsTreeColumnKeybindings$Companion : org/jetbrains/jewel/foundation/tree/DefaultMacOsTreeColumnKeybindings { +public final class org/jetbrains/jewel/foundation/lazy/tree/DefaultMacOsTreeColumnKeybindings$Companion : org/jetbrains/jewel/foundation/lazy/tree/DefaultMacOsTreeColumnKeybindings { } -public final class org/jetbrains/jewel/foundation/tree/DefaultSelectableLazyColumnEventAction : org/jetbrains/jewel/foundation/tree/PointerEventActions { +public final class org/jetbrains/jewel/foundation/lazy/tree/DefaultSelectableLazyColumnEventAction : org/jetbrains/jewel/foundation/lazy/tree/PointerEventActions { public static final field $stable I public fun ()V public fun handlePointerEventPress (Landroidx/compose/ui/input/pointer/PointerEvent;Lorg/jetbrains/jewel/foundation/lazy/SelectableColumnKeybindings;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;Ljava/util/List;Ljava/lang/Object;)V @@ -541,7 +381,7 @@ public final class org/jetbrains/jewel/foundation/tree/DefaultSelectableLazyColu public fun toggleKeySelection (Ljava/lang/Object;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V } -public class org/jetbrains/jewel/foundation/tree/DefaultSelectableLazyColumnKeyActions : org/jetbrains/jewel/foundation/tree/KeyBindingActions { +public class org/jetbrains/jewel/foundation/lazy/tree/DefaultSelectableLazyColumnKeyActions : org/jetbrains/jewel/foundation/lazy/tree/KeyBindingActions { public static final field $stable I public fun ()V public fun getActions ()Lorg/jetbrains/jewel/foundation/lazy/SelectableColumnOnKeyEvent; @@ -549,19 +389,19 @@ public class org/jetbrains/jewel/foundation/tree/DefaultSelectableLazyColumnKeyA public fun handleOnKeyEvent-jhbQyNo (Ljava/lang/Object;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;)Lkotlin/jvm/functions/Function1; } -public final class org/jetbrains/jewel/foundation/tree/DefaultTreeViewKeyActions : org/jetbrains/jewel/foundation/tree/DefaultSelectableLazyColumnKeyActions { +public final class org/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewKeyActions : org/jetbrains/jewel/foundation/lazy/tree/DefaultSelectableLazyColumnKeyActions { public static final field $stable I - public fun (Lorg/jetbrains/jewel/foundation/tree/TreeState;)V + public fun (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeState;)V public synthetic fun getActions ()Lorg/jetbrains/jewel/foundation/lazy/SelectableColumnOnKeyEvent; - public fun getActions ()Lorg/jetbrains/jewel/foundation/tree/DefaultTreeViewOnKeyEvent; + public fun getActions ()Lorg/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewOnKeyEvent; public synthetic fun getKeybindings ()Lorg/jetbrains/jewel/foundation/lazy/SelectableColumnKeybindings; - public fun getKeybindings ()Lorg/jetbrains/jewel/foundation/tree/TreeViewKeybindings; + public fun getKeybindings ()Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewKeybindings; public fun handleOnKeyEvent-jhbQyNo (Ljava/lang/Object;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;)Lkotlin/jvm/functions/Function1; } -public class org/jetbrains/jewel/foundation/tree/DefaultTreeViewKeybindings : org/jetbrains/jewel/foundation/lazy/DefaultSelectableColumnKeybindings, org/jetbrains/jewel/foundation/tree/TreeViewKeybindings { +public class org/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewKeybindings : org/jetbrains/jewel/foundation/lazy/DefaultSelectableColumnKeybindings, org/jetbrains/jewel/foundation/lazy/tree/TreeViewKeybindings { public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/foundation/tree/DefaultTreeViewKeybindings$Companion; + public static final field Companion Lorg/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewKeybindings$Companion; public fun ()V public fun edit-ZmokQxo (Ljava/lang/Object;)Ljava/lang/Boolean; public fun extendSelectionToChild-ZmokQxo (Ljava/lang/Object;)Ljava/lang/Boolean; @@ -574,18 +414,18 @@ public class org/jetbrains/jewel/foundation/tree/DefaultTreeViewKeybindings : or public fun selectPreviousSibling-ZmokQxo (Ljava/lang/Object;)Ljava/lang/Void; } -public final class org/jetbrains/jewel/foundation/tree/DefaultTreeViewKeybindings$Companion : org/jetbrains/jewel/foundation/tree/DefaultTreeViewKeybindings { +public final class org/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewKeybindings$Companion : org/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewKeybindings { } -public final class org/jetbrains/jewel/foundation/tree/DefaultTreeViewKeybindingsKt { +public final class org/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewKeybindingsKt { public static final fun getDefaultWindowsTreeViewClickModifierHandler ()Lkotlin/jvm/functions/Function1; } -public class org/jetbrains/jewel/foundation/tree/DefaultTreeViewOnKeyEvent : org/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent { +public class org/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewOnKeyEvent : org/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent { public static final field $stable I - public fun (Lorg/jetbrains/jewel/foundation/tree/TreeViewKeybindings;Lorg/jetbrains/jewel/foundation/tree/TreeState;)V + public fun (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewKeybindings;Lorg/jetbrains/jewel/foundation/lazy/tree/TreeState;)V public synthetic fun getKeybindings ()Lorg/jetbrains/jewel/foundation/lazy/SelectableColumnKeybindings; - public fun getKeybindings ()Lorg/jetbrains/jewel/foundation/tree/TreeViewKeybindings; + public fun getKeybindings ()Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewKeybindings; public fun onEdit ()V public fun onExtendSelectionToFirst (Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V public fun onExtendSelectionToLastItem (Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V @@ -604,124 +444,124 @@ public class org/jetbrains/jewel/foundation/tree/DefaultTreeViewOnKeyEvent : org public fun onSelectPreviousItem (Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V } -public final class org/jetbrains/jewel/foundation/tree/DefaultTreeViewPointerEventAction : org/jetbrains/jewel/foundation/tree/PointerEventActions { +public final class org/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewPointerEventAction : org/jetbrains/jewel/foundation/lazy/tree/PointerEventActions { public static final field $stable I - public fun (Lorg/jetbrains/jewel/foundation/tree/TreeState;)V + public fun (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeState;)V public fun handlePointerEventPress (Landroidx/compose/ui/input/pointer/PointerEvent;Lorg/jetbrains/jewel/foundation/lazy/SelectableColumnKeybindings;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;Ljava/util/List;Ljava/lang/Object;)V public fun onExtendSelectionToKey (Ljava/lang/Object;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;)V public fun toggleKeySelection (Ljava/lang/Object;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V } -public abstract interface class org/jetbrains/jewel/foundation/tree/KeyBindingActions { +public abstract interface class org/jetbrains/jewel/foundation/lazy/tree/KeyBindingActions { public abstract fun getActions ()Lorg/jetbrains/jewel/foundation/lazy/SelectableColumnOnKeyEvent; public abstract fun getKeybindings ()Lorg/jetbrains/jewel/foundation/lazy/SelectableColumnKeybindings; public abstract fun handleOnKeyEvent-jhbQyNo (Ljava/lang/Object;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;)Lkotlin/jvm/functions/Function1; } -public abstract interface class org/jetbrains/jewel/foundation/tree/PointerEventActions { +public abstract interface class org/jetbrains/jewel/foundation/lazy/tree/PointerEventActions { public abstract fun handlePointerEventPress (Landroidx/compose/ui/input/pointer/PointerEvent;Lorg/jetbrains/jewel/foundation/lazy/SelectableColumnKeybindings;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;Ljava/util/List;Ljava/lang/Object;)V public abstract fun onExtendSelectionToKey (Ljava/lang/Object;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;)V public abstract fun toggleKeySelection (Ljava/lang/Object;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V } -public final class org/jetbrains/jewel/foundation/tree/PointerEventActions$DefaultImpls { - public static fun handlePointerEventPress (Lorg/jetbrains/jewel/foundation/tree/PointerEventActions;Landroidx/compose/ui/input/pointer/PointerEvent;Lorg/jetbrains/jewel/foundation/lazy/SelectableColumnKeybindings;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;Ljava/util/List;Ljava/lang/Object;)V - public static fun onExtendSelectionToKey (Lorg/jetbrains/jewel/foundation/tree/PointerEventActions;Ljava/lang/Object;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;)V - public static fun toggleKeySelection (Lorg/jetbrains/jewel/foundation/tree/PointerEventActions;Ljava/lang/Object;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V +public final class org/jetbrains/jewel/foundation/lazy/tree/PointerEventActions$DefaultImpls { + public static fun handlePointerEventPress (Lorg/jetbrains/jewel/foundation/lazy/tree/PointerEventActions;Landroidx/compose/ui/input/pointer/PointerEvent;Lorg/jetbrains/jewel/foundation/lazy/SelectableColumnKeybindings;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;Ljava/util/List;Ljava/lang/Object;)V + public static fun onExtendSelectionToKey (Lorg/jetbrains/jewel/foundation/lazy/tree/PointerEventActions;Ljava/lang/Object;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Lorg/jetbrains/jewel/foundation/lazy/SelectionMode;)V + public static fun toggleKeySelection (Lorg/jetbrains/jewel/foundation/lazy/tree/PointerEventActions;Ljava/lang/Object;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V } -public final class org/jetbrains/jewel/foundation/tree/Tree { +public final class org/jetbrains/jewel/foundation/lazy/tree/Tree { public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/foundation/tree/Tree$Companion; + public static final field Companion Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Companion; public final fun getRoots ()Ljava/util/List; public final fun isEmpty ()Z public final fun walkBreadthFirst ()Lkotlin/sequences/Sequence; public final fun walkDepthFirst ()Lkotlin/sequences/Sequence; } -public final class org/jetbrains/jewel/foundation/tree/Tree$Companion { +public final class org/jetbrains/jewel/foundation/lazy/tree/Tree$Companion { } -public abstract interface class org/jetbrains/jewel/foundation/tree/Tree$Element { +public abstract interface class org/jetbrains/jewel/foundation/lazy/tree/Tree$Element { public abstract fun getChildIndex ()I public abstract fun getData ()Ljava/lang/Object; public abstract fun getDepth ()I public abstract fun getId ()Ljava/lang/Object; - public abstract fun getNext ()Lorg/jetbrains/jewel/foundation/tree/Tree$Element; - public abstract fun getParent ()Lorg/jetbrains/jewel/foundation/tree/Tree$Element; - public abstract fun getPrevious ()Lorg/jetbrains/jewel/foundation/tree/Tree$Element; + public abstract fun getNext ()Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element; + public abstract fun getParent ()Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element; + public abstract fun getPrevious ()Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element; public abstract fun nextElementsIterable ()Ljava/lang/Iterable; public abstract fun path ()Ljava/util/List; public abstract fun previousElementsIterable ()Ljava/lang/Iterable; - public abstract fun setNext (Lorg/jetbrains/jewel/foundation/tree/Tree$Element;)V - public abstract fun setPrevious (Lorg/jetbrains/jewel/foundation/tree/Tree$Element;)V + public abstract fun setNext (Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;)V + public abstract fun setPrevious (Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;)V } -public final class org/jetbrains/jewel/foundation/tree/Tree$Element$DefaultImpls { - public static fun nextElementsIterable (Lorg/jetbrains/jewel/foundation/tree/Tree$Element;)Ljava/lang/Iterable; - public static fun path (Lorg/jetbrains/jewel/foundation/tree/Tree$Element;)Ljava/util/List; - public static fun previousElementsIterable (Lorg/jetbrains/jewel/foundation/tree/Tree$Element;)Ljava/lang/Iterable; +public final class org/jetbrains/jewel/foundation/lazy/tree/Tree$Element$DefaultImpls { + public static fun nextElementsIterable (Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;)Ljava/lang/Iterable; + public static fun path (Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;)Ljava/util/List; + public static fun previousElementsIterable (Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;)Ljava/lang/Iterable; } -public final class org/jetbrains/jewel/foundation/tree/Tree$Element$Leaf : org/jetbrains/jewel/foundation/tree/Tree$Element { +public final class org/jetbrains/jewel/foundation/lazy/tree/Tree$Element$Leaf : org/jetbrains/jewel/foundation/lazy/tree/Tree$Element { public static final field $stable I - public fun (Ljava/lang/Object;IILorg/jetbrains/jewel/foundation/tree/Tree$Element;Lorg/jetbrains/jewel/foundation/tree/Tree$Element;Lorg/jetbrains/jewel/foundation/tree/Tree$Element;Ljava/lang/Object;)V + public fun (Ljava/lang/Object;IILorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;Ljava/lang/Object;)V public fun getChildIndex ()I public fun getData ()Ljava/lang/Object; public fun getDepth ()I public fun getId ()Ljava/lang/Object; - public fun getNext ()Lorg/jetbrains/jewel/foundation/tree/Tree$Element; - public fun getParent ()Lorg/jetbrains/jewel/foundation/tree/Tree$Element; - public fun getPrevious ()Lorg/jetbrains/jewel/foundation/tree/Tree$Element; + public fun getNext ()Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element; + public fun getParent ()Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element; + public fun getPrevious ()Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element; public fun nextElementsIterable ()Ljava/lang/Iterable; public fun path ()Ljava/util/List; public fun previousElementsIterable ()Ljava/lang/Iterable; - public fun setNext (Lorg/jetbrains/jewel/foundation/tree/Tree$Element;)V - public fun setPrevious (Lorg/jetbrains/jewel/foundation/tree/Tree$Element;)V + public fun setNext (Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;)V + public fun setPrevious (Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;)V } -public final class org/jetbrains/jewel/foundation/tree/Tree$Element$Node : org/jetbrains/jewel/foundation/tree/Tree$Element { +public final class org/jetbrains/jewel/foundation/lazy/tree/Tree$Element$Node : org/jetbrains/jewel/foundation/lazy/tree/Tree$Element { public static final field $stable I - public fun (Ljava/lang/Object;IILorg/jetbrains/jewel/foundation/tree/Tree$Element;Lkotlin/jvm/functions/Function1;Lorg/jetbrains/jewel/foundation/tree/Tree$Element;Lorg/jetbrains/jewel/foundation/tree/Tree$Element;Ljava/lang/Object;)V + public fun (Ljava/lang/Object;IILorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;Lkotlin/jvm/functions/Function1;Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;Ljava/lang/Object;)V public final fun close ()V public fun getChildIndex ()I public final fun getChildren ()Ljava/util/List; public fun getData ()Ljava/lang/Object; public fun getDepth ()I public fun getId ()Ljava/lang/Object; - public fun getNext ()Lorg/jetbrains/jewel/foundation/tree/Tree$Element; - public fun getParent ()Lorg/jetbrains/jewel/foundation/tree/Tree$Element; - public fun getPrevious ()Lorg/jetbrains/jewel/foundation/tree/Tree$Element; + public fun getNext ()Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element; + public fun getParent ()Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element; + public fun getPrevious ()Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element; public fun nextElementsIterable ()Ljava/lang/Iterable; public final fun open (Z)V - public static synthetic fun open$default (Lorg/jetbrains/jewel/foundation/tree/Tree$Element$Node;ZILjava/lang/Object;)V + public static synthetic fun open$default (Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element$Node;ZILjava/lang/Object;)V public fun path ()Ljava/util/List; public fun previousElementsIterable ()Ljava/lang/Iterable; - public fun setNext (Lorg/jetbrains/jewel/foundation/tree/Tree$Element;)V - public fun setPrevious (Lorg/jetbrains/jewel/foundation/tree/Tree$Element;)V + public fun setNext (Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;)V + public fun setPrevious (Lorg/jetbrains/jewel/foundation/lazy/tree/Tree$Element;)V } -public final class org/jetbrains/jewel/foundation/tree/TreeBuilder : org/jetbrains/jewel/foundation/tree/TreeGeneratorScope { +public final class org/jetbrains/jewel/foundation/lazy/tree/TreeBuilder : org/jetbrains/jewel/foundation/lazy/tree/TreeGeneratorScope { public static final field $stable I public fun ()V - public fun add (Lorg/jetbrains/jewel/foundation/tree/TreeBuilder$Element;)V + public fun add (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeBuilder$Element;)V public fun addLeaf (Ljava/lang/Object;Ljava/lang/Object;)V public fun addNode (Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)V - public final fun build ()Lorg/jetbrains/jewel/foundation/tree/Tree; + public final fun build ()Lorg/jetbrains/jewel/foundation/lazy/tree/Tree; } -public abstract class org/jetbrains/jewel/foundation/tree/TreeBuilder$Element { +public abstract class org/jetbrains/jewel/foundation/lazy/tree/TreeBuilder$Element { public static final field $stable I public abstract fun getId ()Ljava/lang/Object; } -public final class org/jetbrains/jewel/foundation/tree/TreeBuilder$Element$Leaf : org/jetbrains/jewel/foundation/tree/TreeBuilder$Element { +public final class org/jetbrains/jewel/foundation/lazy/tree/TreeBuilder$Element$Leaf : org/jetbrains/jewel/foundation/lazy/tree/TreeBuilder$Element { public static final field $stable I public fun (Ljava/lang/Object;Ljava/lang/Object;)V public final fun component1 ()Ljava/lang/Object; public final fun component2 ()Ljava/lang/Object; - public final fun copy (Ljava/lang/Object;Ljava/lang/Object;)Lorg/jetbrains/jewel/foundation/tree/TreeBuilder$Element$Leaf; - public static synthetic fun copy$default (Lorg/jetbrains/jewel/foundation/tree/TreeBuilder$Element$Leaf;Ljava/lang/Object;Ljava/lang/Object;ILjava/lang/Object;)Lorg/jetbrains/jewel/foundation/tree/TreeBuilder$Element$Leaf; + public final fun copy (Ljava/lang/Object;Ljava/lang/Object;)Lorg/jetbrains/jewel/foundation/lazy/tree/TreeBuilder$Element$Leaf; + public static synthetic fun copy$default (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeBuilder$Element$Leaf;Ljava/lang/Object;Ljava/lang/Object;ILjava/lang/Object;)Lorg/jetbrains/jewel/foundation/lazy/tree/TreeBuilder$Element$Leaf; public fun equals (Ljava/lang/Object;)Z public final fun getData ()Ljava/lang/Object; public fun getId ()Ljava/lang/Object; @@ -729,14 +569,14 @@ public final class org/jetbrains/jewel/foundation/tree/TreeBuilder$Element$Leaf public fun toString ()Ljava/lang/String; } -public final class org/jetbrains/jewel/foundation/tree/TreeBuilder$Element$Node : org/jetbrains/jewel/foundation/tree/TreeBuilder$Element { +public final class org/jetbrains/jewel/foundation/lazy/tree/TreeBuilder$Element$Node : org/jetbrains/jewel/foundation/lazy/tree/TreeBuilder$Element { public static final field $stable I public fun (Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)V public final fun component1 ()Ljava/lang/Object; public final fun component2 ()Ljava/lang/Object; public final fun component3 ()Lkotlin/jvm/functions/Function1; - public final fun copy (Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Lorg/jetbrains/jewel/foundation/tree/TreeBuilder$Element$Node; - public static synthetic fun copy$default (Lorg/jetbrains/jewel/foundation/tree/TreeBuilder$Element$Node;Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lorg/jetbrains/jewel/foundation/tree/TreeBuilder$Element$Node; + public final fun copy (Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Lorg/jetbrains/jewel/foundation/lazy/tree/TreeBuilder$Element$Node; + public static synthetic fun copy$default (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeBuilder$Element$Node;Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lorg/jetbrains/jewel/foundation/lazy/tree/TreeBuilder$Element$Node; public fun equals (Ljava/lang/Object;)Z public final fun getChildrenGenerator ()Lkotlin/jvm/functions/Function1; public final fun getData ()Ljava/lang/Object; @@ -745,14 +585,14 @@ public final class org/jetbrains/jewel/foundation/tree/TreeBuilder$Element$Node public fun toString ()Ljava/lang/String; } -public final class org/jetbrains/jewel/foundation/tree/TreeElementState : org/jetbrains/jewel/foundation/state/InteractiveComponentState, org/jetbrains/jewel/foundation/state/SelectableComponentState { - public static final field Companion Lorg/jetbrains/jewel/foundation/tree/TreeElementState$Companion; - public static final synthetic fun box-impl (J)Lorg/jetbrains/jewel/foundation/tree/TreeElementState; +public final class org/jetbrains/jewel/foundation/lazy/tree/TreeElementState : org/jetbrains/jewel/foundation/state/InteractiveComponentState, org/jetbrains/jewel/foundation/state/SelectableComponentState { + public static final field Companion Lorg/jetbrains/jewel/foundation/lazy/tree/TreeElementState$Companion; + public static final synthetic fun box-impl (J)Lorg/jetbrains/jewel/foundation/lazy/tree/TreeElementState; public fun chooseValue (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Landroidx/compose/runtime/Composer;I)Ljava/lang/Object; public static fun chooseValue-impl (JLjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Landroidx/compose/runtime/Composer;I)Ljava/lang/Object; public static fun constructor-impl (J)J - public static final fun copy-ZVebPRw (JZZZZZZZ)J - public static synthetic fun copy-ZVebPRw$default (JZZZZZZZILjava/lang/Object;)J + public static final fun copy-do3-xvo (JZZZZZZZ)J + public static synthetic fun copy-do3-xvo$default (JZZZZZZZILjava/lang/Object;)J public fun equals (Ljava/lang/Object;)Z public static fun equals-impl (JLjava/lang/Object;)Z public static final fun equals-impl0 (JJ)Z @@ -777,27 +617,27 @@ public final class org/jetbrains/jewel/foundation/tree/TreeElementState : org/je public final synthetic fun unbox-impl ()J } -public final class org/jetbrains/jewel/foundation/tree/TreeElementState$Companion { - public final fun of-ZVebPRw (ZZZZZZZ)J - public static synthetic fun of-ZVebPRw$default (Lorg/jetbrains/jewel/foundation/tree/TreeElementState$Companion;ZZZZZZZILjava/lang/Object;)J +public final class org/jetbrains/jewel/foundation/lazy/tree/TreeElementState$Companion { + public final fun of-do3-xvo (ZZZZZZZ)J + public static synthetic fun of-do3-xvo$default (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeElementState$Companion;ZZZZZZZILjava/lang/Object;)J } -public abstract interface class org/jetbrains/jewel/foundation/tree/TreeGeneratorScope { - public abstract fun add (Lorg/jetbrains/jewel/foundation/tree/TreeBuilder$Element;)V +public abstract interface class org/jetbrains/jewel/foundation/lazy/tree/TreeGeneratorScope { + public abstract fun add (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeBuilder$Element;)V public abstract fun addLeaf (Ljava/lang/Object;Ljava/lang/Object;)V public abstract fun addNode (Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)V } -public final class org/jetbrains/jewel/foundation/tree/TreeGeneratorScope$DefaultImpls { - public static synthetic fun addLeaf$default (Lorg/jetbrains/jewel/foundation/tree/TreeGeneratorScope;Ljava/lang/Object;Ljava/lang/Object;ILjava/lang/Object;)V - public static synthetic fun addNode$default (Lorg/jetbrains/jewel/foundation/tree/TreeGeneratorScope;Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V +public final class org/jetbrains/jewel/foundation/lazy/tree/TreeGeneratorScope$DefaultImpls { + public static synthetic fun addLeaf$default (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeGeneratorScope;Ljava/lang/Object;Ljava/lang/Object;ILjava/lang/Object;)V + public static synthetic fun addNode$default (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeGeneratorScope;Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V } -public final class org/jetbrains/jewel/foundation/tree/TreeKt { - public static final fun emptyTree ()Lorg/jetbrains/jewel/foundation/tree/Tree; +public final class org/jetbrains/jewel/foundation/lazy/tree/TreeKt { + public static final fun emptyTree ()Lorg/jetbrains/jewel/foundation/lazy/tree/Tree; } -public final class org/jetbrains/jewel/foundation/tree/TreeState : androidx/compose/foundation/gestures/ScrollableState, org/jetbrains/jewel/foundation/lazy/SelectableScope { +public final class org/jetbrains/jewel/foundation/lazy/tree/TreeState : androidx/compose/foundation/gestures/ScrollableState, org/jetbrains/jewel/foundation/lazy/SelectableScope { public static final field $stable I public fun (Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V public fun dispatchRawDelta (F)F @@ -813,11 +653,11 @@ public final class org/jetbrains/jewel/foundation/tree/TreeState : androidx/comp public final fun toggleNode (Ljava/lang/Object;)V } -public final class org/jetbrains/jewel/foundation/tree/TreeStateKt { - public static final fun rememberTreeState (Landroidx/compose/foundation/lazy/LazyListState;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/foundation/tree/TreeState; +public final class org/jetbrains/jewel/foundation/lazy/tree/TreeStateKt { + public static final fun rememberTreeState (Landroidx/compose/foundation/lazy/LazyListState;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/foundation/lazy/tree/TreeState; } -public abstract interface class org/jetbrains/jewel/foundation/tree/TreeViewKeybindings : org/jetbrains/jewel/foundation/lazy/SelectableColumnKeybindings { +public abstract interface class org/jetbrains/jewel/foundation/lazy/tree/TreeViewKeybindings : org/jetbrains/jewel/foundation/lazy/SelectableColumnKeybindings { public abstract fun extendSelectionToChild-ZmokQxo (Ljava/lang/Object;)Ljava/lang/Boolean; public abstract fun extendSelectionToParent-ZmokQxo (Ljava/lang/Object;)Ljava/lang/Boolean; public abstract fun selectChild-ZmokQxo (Ljava/lang/Object;)Ljava/lang/Boolean; @@ -826,31 +666,191 @@ public abstract interface class org/jetbrains/jewel/foundation/tree/TreeViewKeyb public abstract fun selectPreviousSibling-ZmokQxo (Ljava/lang/Object;)Ljava/lang/Boolean; } -public final class org/jetbrains/jewel/foundation/tree/TreeViewKeybindings$DefaultImpls { - public static fun isKeyboardCtrlMetaKeyPressed-ZmokQxo (Lorg/jetbrains/jewel/foundation/tree/TreeViewKeybindings;Ljava/lang/Object;)Z - public static fun isKeyboardMultiSelectionKeyPressed-5xRPYO0 (Lorg/jetbrains/jewel/foundation/tree/TreeViewKeybindings;I)Z - public static fun isKeyboardMultiSelectionKeyPressed-ZmokQxo (Lorg/jetbrains/jewel/foundation/tree/TreeViewKeybindings;Ljava/lang/Object;)Z +public final class org/jetbrains/jewel/foundation/lazy/tree/TreeViewKeybindings$DefaultImpls { + public static fun isKeyboardCtrlMetaKeyPressed-ZmokQxo (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewKeybindings;Ljava/lang/Object;)Z + public static fun isKeyboardMultiSelectionKeyPressed-5xRPYO0 (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewKeybindings;I)Z + public static fun isKeyboardMultiSelectionKeyPressed-ZmokQxo (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewKeybindings;Ljava/lang/Object;)Z } -public abstract interface class org/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent : org/jetbrains/jewel/foundation/lazy/SelectableColumnOnKeyEvent { +public abstract interface class org/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent : org/jetbrains/jewel/foundation/lazy/SelectableColumnOnKeyEvent { public abstract fun onSelectChild (Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V public abstract fun onSelectParent (Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V } -public final class org/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent$DefaultImpls { - public static fun onEdit (Lorg/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent;)V - public static fun onExtendSelectionToFirst (Lorg/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V - public static fun onExtendSelectionToLastItem (Lorg/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V - public static fun onExtendSelectionWithNextItem (Lorg/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V - public static fun onExtendSelectionWithPreviousItem (Lorg/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V - public static fun onScrollPageDownAndExtendSelection (Lorg/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V - public static fun onScrollPageDownAndSelectItem (Lorg/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V - public static fun onScrollPageUpAndExtendSelection (Lorg/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V - public static fun onScrollPageUpAndSelectItem (Lorg/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V - public static fun onSelectAll (Lorg/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V - public static fun onSelectFirstItem (Lorg/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V - public static fun onSelectLastItem (Lorg/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V - public static fun onSelectNextItem (Lorg/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V - public static fun onSelectPreviousItem (Lorg/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V +public final class org/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent$DefaultImpls { + public static fun onEdit (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent;)V + public static fun onExtendSelectionToFirst (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V + public static fun onExtendSelectionToLastItem (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V + public static fun onExtendSelectionWithNextItem (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V + public static fun onExtendSelectionWithPreviousItem (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V + public static fun onScrollPageDownAndExtendSelection (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V + public static fun onScrollPageDownAndSelectItem (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V + public static fun onScrollPageUpAndExtendSelection (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V + public static fun onScrollPageUpAndSelectItem (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V + public static fun onSelectAll (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V + public static fun onSelectFirstItem (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V + public static fun onSelectLastItem (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V + public static fun onSelectNextItem (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V + public static fun onSelectPreviousItem (Lorg/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent;Ljava/util/List;Lorg/jetbrains/jewel/foundation/lazy/SelectableLazyListState;)V +} + +public final class org/jetbrains/jewel/foundation/modifier/BorderKt { + public static final fun border (Landroidx/compose/ui/Modifier;Lorg/jetbrains/jewel/foundation/Stroke;Landroidx/compose/ui/graphics/Shape;)Landroidx/compose/ui/Modifier; + public static final fun border-AkepmR4 (Landroidx/compose/ui/Modifier;Lorg/jetbrains/jewel/foundation/Stroke$Alignment;FLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Shape;F)Landroidx/compose/ui/Modifier; + public static synthetic fun border-AkepmR4$default (Landroidx/compose/ui/Modifier;Lorg/jetbrains/jewel/foundation/Stroke$Alignment;FLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Shape;FILjava/lang/Object;)Landroidx/compose/ui/Modifier; + public static final fun border-QWjY48E (Landroidx/compose/ui/Modifier;Lorg/jetbrains/jewel/foundation/Stroke$Alignment;FJLandroidx/compose/ui/graphics/Shape;F)Landroidx/compose/ui/Modifier; + public static synthetic fun border-QWjY48E$default (Landroidx/compose/ui/Modifier;Lorg/jetbrains/jewel/foundation/Stroke$Alignment;FJLandroidx/compose/ui/graphics/Shape;FILjava/lang/Object;)Landroidx/compose/ui/Modifier; +} + +public final class org/jetbrains/jewel/foundation/modifier/OnHoverModifierKt { + public static final fun onHover (Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;)Landroidx/compose/ui/Modifier; +} + +public final class org/jetbrains/jewel/foundation/state/CommonStateBitMask { + public static final field $stable I + public static final field FIRST_AVAILABLE_OFFSET I + public static final field INSTANCE Lorg/jetbrains/jewel/foundation/state/CommonStateBitMask; + public final fun getActive-s-VKNKU ()J + public final fun getEnabled-s-VKNKU ()J + public final fun getFocused-s-VKNKU ()J + public final fun getHovered-s-VKNKU ()J + public final fun getIndeterminate-s-VKNKU ()J + public final fun getPressed-s-VKNKU ()J + public final fun getSelected-s-VKNKU ()J +} + +public abstract interface class org/jetbrains/jewel/foundation/state/FocusableComponentState : org/jetbrains/jewel/foundation/state/InteractiveComponentState { + public abstract fun chooseValue (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Landroidx/compose/runtime/Composer;I)Ljava/lang/Object; + public abstract fun isFocused ()Z +} + +public final class org/jetbrains/jewel/foundation/state/FocusableComponentState$DefaultImpls { + public static fun chooseValue (Lorg/jetbrains/jewel/foundation/state/FocusableComponentState;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Landroidx/compose/runtime/Composer;I)Ljava/lang/Object; +} + +public abstract interface class org/jetbrains/jewel/foundation/state/InteractiveComponentState { + public abstract fun isActive ()Z + public abstract fun isEnabled ()Z + public abstract fun isHovered ()Z + public abstract fun isPressed ()Z +} + +public abstract interface class org/jetbrains/jewel/foundation/state/SelectableComponentState : org/jetbrains/jewel/foundation/state/FocusableComponentState { + public abstract fun isSelected ()Z +} + +public final class org/jetbrains/jewel/foundation/state/SelectableComponentState$DefaultImpls { + public static fun chooseValue (Lorg/jetbrains/jewel/foundation/state/SelectableComponentState;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Landroidx/compose/runtime/Composer;I)Ljava/lang/Object; +} + +public abstract interface class org/jetbrains/jewel/foundation/state/ToggleableComponentState : org/jetbrains/jewel/foundation/state/SelectableComponentState { + public static final field Companion Lorg/jetbrains/jewel/foundation/state/ToggleableComponentState$Companion; + public abstract fun getToggleableState ()Landroidx/compose/ui/state/ToggleableState; +} + +public final class org/jetbrains/jewel/foundation/state/ToggleableComponentState$Companion { + public final fun readToggleableState-VKZWuLQ (J)Landroidx/compose/ui/state/ToggleableState; +} + +public final class org/jetbrains/jewel/foundation/state/ToggleableComponentState$DefaultImpls { + public static fun chooseValue (Lorg/jetbrains/jewel/foundation/state/ToggleableComponentState;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Landroidx/compose/runtime/Composer;I)Ljava/lang/Object; +} + +public abstract interface class org/jetbrains/jewel/foundation/theme/JewelTheme { + public static final field Companion Lorg/jetbrains/jewel/foundation/theme/JewelTheme$Companion; +} + +public final class org/jetbrains/jewel/foundation/theme/JewelTheme$Companion { + public final fun getContentColor (Landroidx/compose/runtime/Composer;I)J + public final fun getGlobalColors (Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/foundation/GlobalColors; + public final fun getGlobalMetrics (Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/foundation/GlobalMetrics; + public final fun getTextStyle (Landroidx/compose/runtime/Composer;I)Landroidx/compose/ui/text/TextStyle; + public final fun isDark (Landroidx/compose/runtime/Composer;I)Z + public final fun isSwingCompatMode (Landroidx/compose/runtime/Composer;I)Z +} + +public final class org/jetbrains/jewel/foundation/theme/JewelThemeKt { + public static final fun JewelTheme (Lorg/jetbrains/jewel/foundation/theme/ThemeDefinition;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;I)V + public static final fun JewelTheme (Lorg/jetbrains/jewel/foundation/theme/ThemeDefinition;ZLkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;I)V + public static final fun OverrideDarkMode (ZLkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;I)V + public static final fun getLocalColorPalette ()Landroidx/compose/runtime/ProvidableCompositionLocal; + public static final fun getLocalContentColor ()Landroidx/compose/runtime/ProvidableCompositionLocal; + public static final fun getLocalIconData ()Landroidx/compose/runtime/ProvidableCompositionLocal; + public static final fun getLocalTextStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; +} + +public final class org/jetbrains/jewel/foundation/theme/ThemeColorPalette { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/foundation/theme/ThemeColorPalette$Companion; + public fun (Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/Map;)V + public final fun blue-vNxB06k (I)J + public final fun blueOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; + public fun equals (Ljava/lang/Object;)Z + public final fun getBlue ()Ljava/util/List; + public final fun getGreen ()Ljava/util/List; + public final fun getGrey ()Ljava/util/List; + public final fun getOrange ()Ljava/util/List; + public final fun getPurple ()Ljava/util/List; + public final fun getRawMap ()Ljava/util/Map; + public final fun getRed ()Ljava/util/List; + public final fun getTeal ()Ljava/util/List; + public final fun getYellow ()Ljava/util/List; + public final fun green-vNxB06k (I)J + public final fun greenOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; + public final fun grey-vNxB06k (I)J + public final fun greyOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; + public fun hashCode ()I + public final fun lookup-ijrfgN4 (Ljava/lang/String;)Landroidx/compose/ui/graphics/Color; + public final fun orange-vNxB06k (I)J + public final fun orangeOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; + public final fun purple-vNxB06k (I)J + public final fun purpleOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; + public final fun red-vNxB06k (I)J + public final fun redOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; + public final fun teal-vNxB06k (I)J + public final fun tealOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; + public fun toString ()Ljava/lang/String; + public final fun yellow-vNxB06k (I)J + public final fun yellowOrNull-ijrfgN4 (I)Landroidx/compose/ui/graphics/Color; +} + +public final class org/jetbrains/jewel/foundation/theme/ThemeColorPalette$Companion { + public final fun getEmpty ()Lorg/jetbrains/jewel/foundation/theme/ThemeColorPalette; +} + +public final class org/jetbrains/jewel/foundation/theme/ThemeDefinition { + public static final field $stable I + public synthetic fun (ZLorg/jetbrains/jewel/foundation/GlobalColors;Lorg/jetbrains/jewel/foundation/GlobalMetrics;Landroidx/compose/ui/text/TextStyle;JLorg/jetbrains/jewel/foundation/theme/ThemeColorPalette;Lorg/jetbrains/jewel/foundation/theme/ThemeIconData;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColorPalette ()Lorg/jetbrains/jewel/foundation/theme/ThemeColorPalette; + public final fun getContentColor-0d7_KjU ()J + public final fun getDefaultTextStyle ()Landroidx/compose/ui/text/TextStyle; + public final fun getGlobalColors ()Lorg/jetbrains/jewel/foundation/GlobalColors; + public final fun getGlobalMetrics ()Lorg/jetbrains/jewel/foundation/GlobalMetrics; + public final fun getIconData ()Lorg/jetbrains/jewel/foundation/theme/ThemeIconData; + public fun hashCode ()I + public final fun isDark ()Z + public fun toString ()Ljava/lang/String; +} + +public abstract interface class org/jetbrains/jewel/foundation/theme/ThemeDescriptor { + public abstract fun getColors ()Lorg/jetbrains/jewel/foundation/theme/ThemeColorPalette; + public abstract fun getIconData ()Lorg/jetbrains/jewel/foundation/theme/ThemeIconData; + public abstract fun getName ()Ljava/lang/String; + public abstract fun isDark ()Z +} + +public final class org/jetbrains/jewel/foundation/theme/ThemeIconData { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/foundation/theme/ThemeIconData$Companion; + public fun (Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;)V + public final fun getColorPalette ()Ljava/util/Map; + public final fun getIconOverrides ()Ljava/util/Map; + public final fun getSelectionColorPalette ()Ljava/util/Map; + public final fun selectionColorMapping ()Ljava/util/Map; +} + +public final class org/jetbrains/jewel/foundation/theme/ThemeIconData$Companion { + public final fun getEmpty ()Lorg/jetbrains/jewel/foundation/theme/ThemeIconData; } diff --git a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/SelectableLazyColumn.kt b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/SelectableLazyColumn.kt index 2e50e999d5..2982ff9f0c 100644 --- a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/SelectableLazyColumn.kt +++ b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/SelectableLazyColumn.kt @@ -25,10 +25,10 @@ import androidx.compose.ui.input.pointer.pointerInput import androidx.compose.ui.unit.dp import kotlinx.coroutines.launch import org.jetbrains.jewel.foundation.lazy.SelectableLazyListScopeContainer.Entry -import org.jetbrains.jewel.foundation.tree.DefaultSelectableLazyColumnEventAction -import org.jetbrains.jewel.foundation.tree.DefaultSelectableLazyColumnKeyActions -import org.jetbrains.jewel.foundation.tree.KeyBindingActions -import org.jetbrains.jewel.foundation.tree.PointerEventActions +import org.jetbrains.jewel.foundation.lazy.tree.DefaultSelectableLazyColumnEventAction +import org.jetbrains.jewel.foundation.lazy.tree.DefaultSelectableLazyColumnKeyActions +import org.jetbrains.jewel.foundation.lazy.tree.KeyBindingActions +import org.jetbrains.jewel.foundation.lazy.tree.PointerEventActions /** * A composable that displays a scrollable and selectable list of items in diff --git a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/BasicLazyTree.kt b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/BasicLazyTree.kt similarity index 99% rename from foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/BasicLazyTree.kt rename to foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/BasicLazyTree.kt index 6e7fda8cb9..da2ebdbf24 100644 --- a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/BasicLazyTree.kt +++ b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/BasicLazyTree.kt @@ -1,4 +1,4 @@ -package org.jetbrains.jewel.foundation.tree +package org.jetbrains.jewel.foundation.lazy.tree import androidx.compose.foundation.background import androidx.compose.foundation.clickable diff --git a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/BuildTree.kt b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/BuildTree.kt similarity index 99% rename from foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/BuildTree.kt rename to foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/BuildTree.kt index b7c99d8d0a..ad97b8d95d 100644 --- a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/BuildTree.kt +++ b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/BuildTree.kt @@ -1,4 +1,4 @@ -package org.jetbrains.jewel.foundation.tree +package org.jetbrains.jewel.foundation.lazy.tree import java.io.File import java.nio.file.Path diff --git a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/DefaultTreeViewKeybindings.kt b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewKeybindings.kt similarity index 98% rename from foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/DefaultTreeViewKeybindings.kt rename to foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewKeybindings.kt index 1c6d0e976a..fa5015dcbb 100644 --- a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/DefaultTreeViewKeybindings.kt +++ b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewKeybindings.kt @@ -1,4 +1,4 @@ -package org.jetbrains.jewel.foundation.tree +package org.jetbrains.jewel.foundation.lazy.tree import androidx.compose.ui.input.key.Key import androidx.compose.ui.input.key.KeyEvent diff --git a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/DefaultTreeViewOnKeyEvent.kt b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewOnKeyEvent.kt similarity index 98% rename from foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/DefaultTreeViewOnKeyEvent.kt rename to foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewOnKeyEvent.kt index be23f6538b..c4d4bc9376 100644 --- a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/DefaultTreeViewOnKeyEvent.kt +++ b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/DefaultTreeViewOnKeyEvent.kt @@ -1,4 +1,4 @@ -package org.jetbrains.jewel.foundation.tree +package org.jetbrains.jewel.foundation.lazy.tree import org.jetbrains.jewel.foundation.lazy.SelectableLazyListKey import org.jetbrains.jewel.foundation.lazy.SelectableLazyListState diff --git a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/KeyBindingActions.kt b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/KeyBindingActions.kt similarity index 99% rename from foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/KeyBindingActions.kt rename to foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/KeyBindingActions.kt index fb336c3050..a7def175e9 100644 --- a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/KeyBindingActions.kt +++ b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/KeyBindingActions.kt @@ -1,4 +1,4 @@ -package org.jetbrains.jewel.foundation.tree +package org.jetbrains.jewel.foundation.lazy.tree import androidx.compose.ui.input.key.KeyEvent import androidx.compose.ui.input.key.KeyEventType diff --git a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/Tree.kt b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/Tree.kt similarity index 97% rename from foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/Tree.kt rename to foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/Tree.kt index 89649c200a..927dc5927e 100644 --- a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/Tree.kt +++ b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/Tree.kt @@ -1,6 +1,6 @@ -package org.jetbrains.jewel.foundation.tree +package org.jetbrains.jewel.foundation.lazy.tree -import org.jetbrains.jewel.foundation.tree.Tree.Element.Node +import org.jetbrains.jewel.foundation.lazy.tree.Tree.Element.Node @Suppress("UNCHECKED_CAST") fun emptyTree() = Tree.EMPTY as Tree diff --git a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/TreeState.kt b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/TreeState.kt similarity index 96% rename from foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/TreeState.kt rename to foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/TreeState.kt index a970b46d6a..43bce01fa2 100644 --- a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/TreeState.kt +++ b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/TreeState.kt @@ -1,4 +1,4 @@ -package org.jetbrains.jewel.foundation.tree +package org.jetbrains.jewel.foundation.lazy.tree import androidx.compose.foundation.gestures.ScrollableState import androidx.compose.foundation.lazy.LazyListState diff --git a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent.kt b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent.kt similarity index 91% rename from foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent.kt rename to foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent.kt index 56eb3912ea..e1807eee09 100644 --- a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/tree/TreeViewOnKeyEvent.kt +++ b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/lazy/tree/TreeViewOnKeyEvent.kt @@ -1,4 +1,4 @@ -package org.jetbrains.jewel.foundation.tree +package org.jetbrains.jewel.foundation.lazy.tree import org.jetbrains.jewel.foundation.lazy.SelectableColumnOnKeyEvent import org.jetbrains.jewel.foundation.lazy.SelectableLazyListKey diff --git a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/Border.kt b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/modifier/Border.kt similarity index 98% rename from foundation/src/main/kotlin/org/jetbrains/jewel/foundation/Border.kt rename to foundation/src/main/kotlin/org/jetbrains/jewel/foundation/modifier/Border.kt index b3a5643d0e..6d44f0add5 100644 --- a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/Border.kt +++ b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/modifier/Border.kt @@ -1,4 +1,4 @@ -package org.jetbrains.jewel.foundation +package org.jetbrains.jewel.foundation.modifier import androidx.compose.foundation.border import androidx.compose.foundation.shape.RoundedCornerShape @@ -36,6 +36,10 @@ import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.isUnspecified import androidx.compose.ui.unit.takeOrElse import androidx.compose.ui.unit.toSize +import org.jetbrains.jewel.foundation.Stroke +import org.jetbrains.jewel.foundation.grow +import org.jetbrains.jewel.foundation.hasAtLeastOneNonRoundedCorner +import org.jetbrains.jewel.foundation.shrink import kotlin.math.ceil import kotlin.math.max import kotlin.math.min diff --git a/int-ui/int-ui-standalone/api/int-ui-standalone.api b/int-ui/int-ui-standalone/api/int-ui-standalone.api index 3a235de02e..acd492f65f 100644 --- a/int-ui/int-ui-standalone/api/int-ui-standalone.api +++ b/int-ui/int-ui-standalone/api/int-ui-standalone.api @@ -337,6 +337,7 @@ public final class org/jetbrains/jewel/intui/standalone/theme/IntUiGlobalMetrics public final class org/jetbrains/jewel/intui/standalone/theme/IntUiThemeKt { public static final fun IntUiTheme (Lorg/jetbrains/jewel/foundation/theme/ThemeDefinition;Lkotlin/jvm/functions/Function2;ZLkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;II)V + public static final fun IntUiTheme (ZZLkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;II)V public static final fun darkComponentStyling (Lorg/jetbrains/jewel/foundation/theme/JewelTheme$Companion;Lorg/jetbrains/jewel/ui/component/styling/CheckboxStyle;Lorg/jetbrains/jewel/ui/component/styling/ChipStyle;Lorg/jetbrains/jewel/ui/component/styling/CircularProgressStyle;Lorg/jetbrains/jewel/ui/component/styling/ButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Lorg/jetbrains/jewel/ui/component/styling/DividerStyle;Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Lorg/jetbrains/jewel/ui/component/styling/GroupHeaderStyle;Lorg/jetbrains/jewel/ui/component/styling/HorizontalProgressBarStyle;Lorg/jetbrains/jewel/ui/component/styling/IconButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/LabelledTextFieldStyle;Lorg/jetbrains/jewel/ui/component/styling/LazyTreeStyle;Lorg/jetbrains/jewel/ui/component/styling/LinkStyle;Lorg/jetbrains/jewel/ui/component/styling/MenuStyle;Lorg/jetbrains/jewel/ui/component/styling/ButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/RadioButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/ScrollbarStyle;Lorg/jetbrains/jewel/ui/component/styling/TextAreaStyle;Lorg/jetbrains/jewel/ui/component/styling/TextFieldStyle;Lorg/jetbrains/jewel/ui/component/styling/TooltipStyle;Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle;Landroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/ui/ComponentStyling; public static final fun darkThemeDefinition-RFMEUTM (Lorg/jetbrains/jewel/foundation/theme/JewelTheme$Companion;Lorg/jetbrains/jewel/foundation/GlobalColors;Lorg/jetbrains/jewel/foundation/GlobalMetrics;Lorg/jetbrains/jewel/foundation/theme/ThemeColorPalette;Lorg/jetbrains/jewel/foundation/theme/ThemeIconData;Landroidx/compose/ui/text/TextStyle;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/foundation/theme/ThemeDefinition; public static final fun defaultComponentStyling (Lorg/jetbrains/jewel/foundation/theme/JewelTheme$Companion;Lorg/jetbrains/jewel/foundation/theme/ThemeDefinition;Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/ui/ComponentStyling; diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxStyling.kt index 965d3f49f0..4a1b8c82fc 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxStyling.kt @@ -60,14 +60,10 @@ fun CheckboxMetrics.Companion.defaults( @Composable fun CheckboxIcons.Companion.light( - checkbox: PainterProvider = checkbox("com/intellij/ide/ui/laf/icons/intellij/checkBox.svg"), + checkbox: PainterProvider = standalonePainterProvider("com/intellij/ide/ui/laf/icons/intellij/checkBox.svg"), ) = CheckboxIcons(checkbox) @Composable fun CheckboxIcons.Companion.dark( - checkbox: PainterProvider = checkbox("com/intellij/ide/ui/laf/icons/darcula/checkBox.svg"), + checkbox: PainterProvider = standalonePainterProvider("com/intellij/ide/ui/laf/icons/darcula/checkBox.svg"), ) = CheckboxIcons(checkbox) - -@Composable -private fun checkbox(basePath: String): PainterProvider = - standalonePainterProvider(basePath) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/theme/IntUiTheme.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/theme/IntUiTheme.kt index db03557277..42d9421dba 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/theme/IntUiTheme.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/theme/IntUiTheme.kt @@ -178,6 +178,27 @@ fun JewelTheme.Companion.lightComponentStyling( undecoratedDropdownStyle = undecoratedDropdownStyle, ) +@Composable +fun IntUiTheme( + isDark: Boolean = false, + swingCompatMode: Boolean = false, + content: @Composable () -> Unit, +) { + val themeDefinition = + if (isDark) { + JewelTheme.darkThemeDefinition() + } else { + JewelTheme.lightThemeDefinition() + } + + IntUiTheme( + theme = themeDefinition, + componentStyling = { emptyArray() }, + swingCompatMode = swingCompatMode, + content = content, + ) +} + @Composable fun IntUiTheme( theme: ThemeDefinition, diff --git a/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/ComponentShowcaseTab.kt b/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/ComponentShowcaseTab.kt index f6617726af..4f2ad890a7 100644 --- a/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/ComponentShowcaseTab.kt +++ b/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/ComponentShowcaseTab.kt @@ -28,8 +28,8 @@ import com.intellij.ui.JBColor import icons.JewelIcons import org.jetbrains.jewel.bridge.theme.SwingBridgeTheme import org.jetbrains.jewel.bridge.toComposeColor +import org.jetbrains.jewel.foundation.lazy.tree.buildTree import org.jetbrains.jewel.foundation.theme.JewelTheme -import org.jetbrains.jewel.foundation.tree.buildTree import org.jetbrains.jewel.ui.component.CheckboxRow import org.jetbrains.jewel.ui.component.CircularProgressIndicator import org.jetbrains.jewel.ui.component.CircularProgressIndicatorBig @@ -43,7 +43,8 @@ import org.jetbrains.jewel.ui.component.Text import org.jetbrains.jewel.ui.component.TextField import org.jetbrains.jewel.ui.component.Tooltip -@Composable internal fun ComponentShowcaseTab() { +@Composable +internal fun ComponentShowcaseTab() { SwingBridgeTheme { val bgColor by remember(JewelTheme.isDark) { mutableStateOf(JBColor.PanelBackground.toComposeColor()) } @@ -58,7 +59,8 @@ import org.jetbrains.jewel.ui.component.Tooltip } } -@Composable private fun RowScope.ColumnOne() { +@Composable +private fun RowScope.ColumnOne() { Column( Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(16.dp), @@ -167,7 +169,8 @@ import org.jetbrains.jewel.ui.component.Tooltip } } -@Composable private fun RowScope.ColumnTwo() { +@Composable +private fun RowScope.ColumnTwo() { Column( Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(16.dp), diff --git a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/components/Borders.kt b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/components/Borders.kt index c20e57253a..2b196e9dd3 100644 --- a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/components/Borders.kt +++ b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/components/Borders.kt @@ -16,7 +16,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.RectangleShape import androidx.compose.ui.unit.dp import org.jetbrains.jewel.foundation.Stroke -import org.jetbrains.jewel.foundation.border +import org.jetbrains.jewel.foundation.modifier.border import org.jetbrains.jewel.foundation.theme.JewelTheme import org.jetbrains.jewel.ui.component.GroupHeader import org.jetbrains.jewel.ui.component.OutlinedButton diff --git a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/components/ChipsAndTree.kt b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/components/ChipsAndTree.kt index 133931556d..8d907ffe88 100644 --- a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/components/ChipsAndTree.kt +++ b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/components/ChipsAndTree.kt @@ -23,8 +23,8 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.dp import org.jetbrains.jewel.foundation.lazy.SelectableLazyColumn +import org.jetbrains.jewel.foundation.lazy.tree.buildTree import org.jetbrains.jewel.foundation.theme.JewelTheme -import org.jetbrains.jewel.foundation.tree.buildTree import org.jetbrains.jewel.ui.component.Chip import org.jetbrains.jewel.ui.component.GroupHeader import org.jetbrains.jewel.ui.component.LazyTree diff --git a/ui/api/ui.api b/ui/api/ui.api index 1e6b5df87b..ea2c0b6809 100644 --- a/ui/api/ui.api +++ b/ui/api/ui.api @@ -320,7 +320,7 @@ public final class org/jetbrains/jewel/ui/component/LabelledTextFieldKt { } public final class org/jetbrains/jewel/ui/component/LazyTreeKt { - public static final fun LazyTree (Lorg/jetbrains/jewel/foundation/tree/Tree;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Lorg/jetbrains/jewel/foundation/tree/TreeState;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lorg/jetbrains/jewel/foundation/tree/KeyBindingActions;Lorg/jetbrains/jewel/ui/component/styling/LazyTreeStyle;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V + public static final fun LazyTree (Lorg/jetbrains/jewel/foundation/lazy/tree/Tree;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Lorg/jetbrains/jewel/foundation/lazy/tree/TreeState;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lorg/jetbrains/jewel/foundation/lazy/tree/KeyBindingActions;Lorg/jetbrains/jewel/ui/component/styling/LazyTreeStyle;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V } public final class org/jetbrains/jewel/ui/component/LinearProgressBarKt { @@ -1298,7 +1298,7 @@ public final class org/jetbrains/jewel/ui/component/styling/LazyTreeColors { public static final field $stable I public static final field Companion Lorg/jetbrains/jewel/ui/component/styling/LazyTreeColors$Companion; public synthetic fun (JJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun contentFor-iZdlh1w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public final fun contentFor-EWxiZrY (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; public fun equals (Ljava/lang/Object;)Z public final fun getContent-0d7_KjU ()J public final fun getContentFocused-0d7_KjU ()J diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/Outline.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/Outline.kt index 46cdf10f45..0fa31fcc66 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/Outline.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/Outline.kt @@ -5,7 +5,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Shape import androidx.compose.ui.unit.Dp import org.jetbrains.jewel.foundation.Stroke -import org.jetbrains.jewel.foundation.border +import org.jetbrains.jewel.foundation.modifier.border import org.jetbrains.jewel.foundation.state.FocusableComponentState import org.jetbrains.jewel.foundation.theme.JewelTheme import org.jetbrains.jewel.ui.util.thenIf diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Button.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Button.kt index 04d9738306..5294d20390 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Button.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Button.kt @@ -28,7 +28,7 @@ import androidx.compose.ui.graphics.takeOrElse import androidx.compose.ui.semantics.Role import androidx.compose.ui.text.TextStyle import org.jetbrains.jewel.foundation.Stroke -import org.jetbrains.jewel.foundation.border +import org.jetbrains.jewel.foundation.modifier.border import org.jetbrains.jewel.foundation.state.CommonStateBitMask.Active import org.jetbrains.jewel.foundation.state.CommonStateBitMask.Enabled import org.jetbrains.jewel.foundation.state.CommonStateBitMask.Focused diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Chip.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Chip.kt index a480b848cf..c101c68cb4 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Chip.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Chip.kt @@ -26,7 +26,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.isUnspecified import androidx.compose.ui.semantics.Role import org.jetbrains.jewel.foundation.Stroke -import org.jetbrains.jewel.foundation.border +import org.jetbrains.jewel.foundation.modifier.border import org.jetbrains.jewel.foundation.state.CommonStateBitMask.Active import org.jetbrains.jewel.foundation.state.CommonStateBitMask.Enabled import org.jetbrains.jewel.foundation.state.CommonStateBitMask.Focused diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Dropdown.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Dropdown.kt index 4e2215637e..304e3731b2 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Dropdown.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Dropdown.kt @@ -37,7 +37,7 @@ import androidx.compose.ui.semantics.Role import androidx.compose.ui.window.Popup import androidx.compose.ui.window.PopupProperties import org.jetbrains.jewel.foundation.Stroke -import org.jetbrains.jewel.foundation.border +import org.jetbrains.jewel.foundation.modifier.border import org.jetbrains.jewel.foundation.state.CommonStateBitMask.Active import org.jetbrains.jewel.foundation.state.CommonStateBitMask.Enabled import org.jetbrains.jewel.foundation.state.CommonStateBitMask.Focused diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/InputField.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/InputField.kt index 016048e55d..488432fd9a 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/InputField.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/InputField.kt @@ -23,7 +23,7 @@ import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.input.TextFieldValue import androidx.compose.ui.text.input.VisualTransformation import org.jetbrains.jewel.foundation.Stroke -import org.jetbrains.jewel.foundation.border +import org.jetbrains.jewel.foundation.modifier.border import org.jetbrains.jewel.foundation.state.CommonStateBitMask.Active import org.jetbrains.jewel.foundation.state.CommonStateBitMask.Enabled import org.jetbrains.jewel.foundation.state.CommonStateBitMask.Focused diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/LazyTree.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/LazyTree.kt index f041230f9a..e93d8b37fa 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/LazyTree.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/LazyTree.kt @@ -7,15 +7,15 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.takeOrElse import org.jetbrains.jewel.foundation.ExperimentalJewelApi import org.jetbrains.jewel.foundation.lazy.SelectableLazyItemScope +import org.jetbrains.jewel.foundation.lazy.tree.BasicLazyTree +import org.jetbrains.jewel.foundation.lazy.tree.DefaultTreeViewKeyActions +import org.jetbrains.jewel.foundation.lazy.tree.KeyBindingActions +import org.jetbrains.jewel.foundation.lazy.tree.Tree +import org.jetbrains.jewel.foundation.lazy.tree.TreeElementState +import org.jetbrains.jewel.foundation.lazy.tree.TreeState +import org.jetbrains.jewel.foundation.lazy.tree.rememberTreeState import org.jetbrains.jewel.foundation.theme.JewelTheme import org.jetbrains.jewel.foundation.theme.LocalContentColor -import org.jetbrains.jewel.foundation.tree.BasicLazyTree -import org.jetbrains.jewel.foundation.tree.DefaultTreeViewKeyActions -import org.jetbrains.jewel.foundation.tree.KeyBindingActions -import org.jetbrains.jewel.foundation.tree.Tree -import org.jetbrains.jewel.foundation.tree.TreeElementState -import org.jetbrains.jewel.foundation.tree.TreeState -import org.jetbrains.jewel.foundation.tree.rememberTreeState import org.jetbrains.jewel.ui.component.styling.LazyTreeStyle import org.jetbrains.jewel.ui.theme.treeStyle diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Menu.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Menu.kt index 5fef49ac37..5f5dc37751 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Menu.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Menu.kt @@ -61,7 +61,7 @@ import androidx.compose.ui.unit.dp import androidx.compose.ui.window.Popup import androidx.compose.ui.window.PopupProperties import org.jetbrains.jewel.foundation.Stroke -import org.jetbrains.jewel.foundation.border +import org.jetbrains.jewel.foundation.modifier.border import org.jetbrains.jewel.foundation.modifier.onHover import org.jetbrains.jewel.foundation.state.CommonStateBitMask.Active import org.jetbrains.jewel.foundation.state.CommonStateBitMask.Enabled diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/LazyTreeStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/LazyTreeStyling.kt index 85aa12c8ce..b43b930c14 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/LazyTreeStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/LazyTreeStyling.kt @@ -10,7 +10,7 @@ import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import org.jetbrains.jewel.foundation.GenerateDataFunctions -import org.jetbrains.jewel.foundation.tree.TreeElementState +import org.jetbrains.jewel.foundation.lazy.tree.TreeElementState import org.jetbrains.jewel.ui.painter.PainterProvider @Stable